@mitodl/smoot-design 5.0.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles/remoteTutorDrawer.es.js +10300 -10054
- package/dist/bundles/remoteTutorDrawer.umd.js +42 -43
- package/dist/cjs/bundles/RemoteTutorDrawer/RemoteTutorDrawer.d.ts +4 -1
- package/dist/cjs/bundles/RemoteTutorDrawer/RemoteTutorDrawer.js +84 -49
- package/dist/cjs/bundles/RemoteTutorDrawer/RemoteTutorDrawer.stories.js +135 -56
- package/dist/cjs/components/AiChat/AiChat.d.ts +2 -2
- package/dist/cjs/components/AiChat/AiChat.js +121 -122
- package/dist/cjs/components/AiChat/AiChat.stories.d.ts +6 -0
- package/dist/cjs/components/AiChat/AiChat.stories.js +139 -18
- package/dist/cjs/components/AiChat/AiChat.test.js +12 -2
- package/dist/cjs/components/AiChat/ChatTitle.d.ts +8 -0
- package/dist/cjs/components/AiChat/ChatTitle.js +43 -0
- package/dist/cjs/components/AiChat/EntryScreen.d.ts +11 -0
- package/dist/cjs/components/AiChat/EntryScreen.js +118 -0
- package/dist/cjs/components/AiChat/TimLogo.d.ts +5 -0
- package/dist/cjs/components/AiChat/TimLogo.js +15 -0
- package/dist/cjs/components/AiChat/types.d.ts +20 -18
- package/dist/cjs/components/AiChat/types.js +1 -1
- package/dist/cjs/components/Input/Input.js +1 -0
- package/dist/cjs/components/ScrollSnap/useScrollSnap.d.ts +6 -0
- package/dist/cjs/components/ScrollSnap/useScrollSnap.js +36 -0
- package/dist/esm/bundles/RemoteTutorDrawer/RemoteTutorDrawer.d.ts +4 -1
- package/dist/esm/bundles/RemoteTutorDrawer/RemoteTutorDrawer.js +86 -51
- package/dist/esm/bundles/RemoteTutorDrawer/RemoteTutorDrawer.stories.js +135 -56
- package/dist/esm/components/AiChat/AiChat.d.ts +2 -2
- package/dist/esm/components/AiChat/AiChat.js +119 -120
- package/dist/esm/components/AiChat/AiChat.stories.d.ts +6 -0
- package/dist/esm/components/AiChat/AiChat.stories.js +138 -17
- package/dist/esm/components/AiChat/AiChat.test.js +12 -2
- package/dist/esm/components/AiChat/ChatTitle.d.ts +8 -0
- package/dist/esm/components/AiChat/ChatTitle.js +40 -0
- package/dist/esm/components/AiChat/EntryScreen.d.ts +11 -0
- package/dist/esm/components/AiChat/EntryScreen.js +115 -0
- package/dist/esm/components/AiChat/TimLogo.d.ts +5 -0
- package/dist/esm/components/AiChat/TimLogo.js +13 -0
- package/dist/esm/components/AiChat/types.d.ts +20 -18
- package/dist/esm/components/AiChat/types.js +1 -1
- package/dist/esm/components/Input/Input.js +1 -0
- package/dist/esm/components/ScrollSnap/useScrollSnap.d.ts +6 -0
- package/dist/esm/components/ScrollSnap/useScrollSnap.js +33 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(ar,$n){typeof exports=="object"&&typeof module<"u"?$n(exports):typeof define=="function"&&define.amd?define(["exports"],$n):(ar=typeof globalThis<"u"?globalThis:ar||self,$n(ar.remoteTutorDrawer={}))})(this,function(ar){"use strict";var
|
|
1
|
+
(function(ar,$n){typeof exports=="object"&&typeof module<"u"?$n(exports):typeof define=="function"&&define.amd?define(["exports"],$n):(ar=typeof globalThis<"u"?globalThis:ar||self,$n(ar.remoteTutorDrawer={}))})(this,function(ar){"use strict";var FM=Object.defineProperty;var zM=(ar,$n,ir)=>$n in ar?FM(ar,$n,{enumerable:!0,configurable:!0,writable:!0,value:ir}):ar[$n]=ir;var ns=(ar,$n,ir)=>zM(ar,typeof $n!="symbol"?$n+"":$n,ir);function $n(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 ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tf={exports:{}},et={};/**
|
|
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 $p;function Y3(){if($p)return et;$p=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 S(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(){}},O=Object.assign,_={};function L(C,J,oe){this.props=C,this.context=J,this.refs=_,this.updater=oe||y}L.prototype.isReactComponent={},L.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")},L.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function R(){}R.prototype=L.prototype;function H(C,J,oe){this.props=C,this.context=J,this.refs=_,this.updater=oe||y}var k=H.prototype=new R;k.constructor=H,O(k,L.prototype),k.isPureReactComponent=!0;var P=Array.isArray,I={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function Y(C,J,oe,D,ce,Oe){return oe=Oe.ref,{$$typeof:e,type:C,key:J,ref:oe!==void 0?oe:null,props:Oe}}function ae(C,J){return Y(C.type,J,void 0,void 0,void 0,C.props)}function j(C){return typeof C=="object"&&C!==null&&C.$$typeof===e}function A(C){var J={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(oe){return J[oe]})}var V=/\/+/g;function K(C,J){return typeof C=="object"&&C!==null&&C.key!=null?A(""+C.key):J.toString(36)}function Q(){}function Z(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(Q,Q):(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 re(C,J,oe,D,ce){var Oe=typeof C;(Oe==="undefined"||Oe==="boolean")&&(C=null);var Se=!1;if(C===null)Se=!0;else switch(Oe){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(C.$$typeof){case e:case t:Se=!0;break;case b:return Se=C._init,re(Se(C._payload),J,oe,D,ce)}}if(Se)return ce=ce(C),Se=D===""?"."+K(C,0):D,P(ce)?(oe="",Se!=null&&(oe=Se.replace(V,"$&/")+"/"),re(ce,J,oe,"",function($e){return $e})):ce!=null&&(j(ce)&&(ce=ae(ce,oe+(ce.key==null||C&&C.key===ce.key?"":(""+ce.key).replace(V,"$&/")+"/")+Se)),J.push(ce)),1;Se=0;var tt=D===""?".":D+":";if(P(C))for(var Me=0;Me<C.length;Me++)D=C[Me],Oe=tt+K(D,Me),Se+=re(D,J,oe,Oe,ce);else if(Me=S(C),typeof Me=="function")for(C=Me.call(C),Me=0;!(D=C.next()).done;)D=D.value,Oe=tt+K(D,Me++),Se+=re(D,J,oe,Oe,ce);else if(Oe==="object"){if(typeof C.then=="function")return re(Z(C),J,oe,D,ce);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 Se}function X(C,J,oe){if(C==null)return C;var D=[],ce=0;return re(C,D,"","",function(Oe){return J.call(oe,Oe,ce++)}),D}function se(C){if(C._status===-1){var J=C._result;J=J(),J.then(function(oe){(C._status===0||C._status===-1)&&(C._status=1,C._result=oe)},function(oe){(C._status===0||C._status===-1)&&(C._status=2,C._result=oe)}),C._status===-1&&(C._status=0,C._result=J)}if(C._status===1)return C._result.default;throw C._result}var ne=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 be(){}return et.Children={map:X,forEach:function(C,J,oe){X(C,function(){J.apply(this,arguments)},oe)},count:function(C){var J=0;return X(C,function(){J++}),J},toArray:function(C){return X(C,function(J){return J})||[]},only:function(C){if(!j(C))throw Error("React.Children.only expected to receive a single React element child.");return C}},et.Component=L,et.Fragment=r,et.Profiler=l,et.PureComponent=H,et.StrictMode=i,et.Suspense=p,et.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,et.act=function(){throw Error("act(...) is not supported in production builds of React.")},et.cache=function(C){return function(){return C.apply(null,arguments)}},et.cloneElement=function(C,J,oe){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var D=O({},C.props),ce=C.key,Oe=void 0;if(J!=null)for(Se in J.ref!==void 0&&(Oe=void 0),J.key!==void 0&&(ce=""+J.key),J)!M.call(J,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&J.ref===void 0||(D[Se]=J[Se]);var Se=arguments.length-2;if(Se===1)D.children=oe;else if(1<Se){for(var tt=Array(Se),Me=0;Me<Se;Me++)tt[Me]=arguments[Me+2];D.children=tt}return Y(C.type,ce,void 0,void 0,Oe,D)},et.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},et.createElement=function(C,J,oe){var D,ce={},Oe=null;if(J!=null)for(D in J.key!==void 0&&(Oe=""+J.key),J)M.call(J,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(ce[D]=J[D]);var Se=arguments.length-2;if(Se===1)ce.children=oe;else if(1<Se){for(var tt=Array(Se),Me=0;Me<Se;Me++)tt[Me]=arguments[Me+2];ce.children=tt}if(C&&C.defaultProps)for(D in Se=C.defaultProps,Se)ce[D]===void 0&&(ce[D]=Se[D]);return Y(C,Oe,void 0,void 0,null,ce)},et.createRef=function(){return{current:null}},et.forwardRef=function(C){return{$$typeof:d,render:C}},et.isValidElement=j,et.lazy=function(C){return{$$typeof:b,_payload:{_status:-1,_result:C},_init:se}},et.memo=function(C,J){return{$$typeof:m,type:C,compare:J===void 0?null:J}},et.startTransition=function(C){var J=I.T,oe={};I.T=oe;try{var D=C(),ce=I.S;ce!==null&&ce(oe,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(be,ne)}catch(Oe){ne(Oe)}finally{I.T=J}},et.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},et.use=function(C){return I.H.use(C)},et.useActionState=function(C,J,oe){return I.H.useActionState(C,J,oe)},et.useCallback=function(C,J){return I.H.useCallback(C,J)},et.useContext=function(C){return I.H.useContext(C)},et.useDebugValue=function(){},et.useDeferredValue=function(C,J){return I.H.useDeferredValue(C,J)},et.useEffect=function(C,J){return I.H.useEffect(C,J)},et.useId=function(){return I.H.useId()},et.useImperativeHandle=function(C,J,oe){return I.H.useImperativeHandle(C,J,oe)},et.useInsertionEffect=function(C,J){return I.H.useInsertionEffect(C,J)},et.useLayoutEffect=function(C,J){return I.H.useLayoutEffect(C,J)},et.useMemo=function(C,J){return I.H.useMemo(C,J)},et.useOptimistic=function(C,J){return I.H.useOptimistic(C,J)},et.useReducer=function(C,J,oe){return I.H.useReducer(C,J,oe)},et.useRef=function(C){return I.H.useRef(C)},et.useState=function(C){return I.H.useState(C)},et.useSyncExternalStore=function(C,J,oe){return I.H.useSyncExternalStore(C,J,oe)},et.useTransition=function(){return I.H.useTransition()},et.version="19.0.0",et}var qp;function rs(){return qp||(qp=1,Tf.exports=Y3()),Tf.exports}var x=rs();const xt=ir(x),Gp=$n({__proto__:null,default:xt},[x]);var Sf={exports:{}},Wu={},Cf={exports:{}},Af={};/**
|
|
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 Xp;function j3(){return Xp||(Xp=1,function(e){function t(X,se){var ne=X.length;X.push(se);e:for(;0<ne;){var be=ne-1>>>1,C=X[be];if(0<l(C,se))X[be]=se,X[ne]=C,ne=be;else break e}}function r(X){return X.length===0?null:X[0]}function i(X){if(X.length===0)return null;var se=X[0],ne=X.pop();if(ne!==se){X[0]=ne;e:for(var be=0,C=X.length,J=C>>>1;be<J;){var oe=2*(be+1)-1,D=X[oe],ce=oe+1,Oe=X[ce];if(0>l(D,ne))ce<C&&0>l(Oe,D)?(X[be]=Oe,X[ce]=ne,be=ce):(X[be]=D,X[oe]=ne,be=oe);else if(ce<C&&0>l(Oe,ne))X[be]=Oe,X[ce]=ne,be=ce;else break e}}return se}function l(X,se){var ne=X.sortIndex-se.sortIndex;return ne!==0?ne:X.id-se.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,S=3,y=!1,O=!1,_=!1,L=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function k(X){for(var se=r(m);se!==null;){if(se.callback===null)i(m);else if(se.startTime<=X)i(m),se.sortIndex=se.expirationTime,t(p,se);else break;se=r(m)}}function P(X){if(_=!1,k(X),!O)if(r(p)!==null)O=!0,Z();else{var se=r(m);se!==null&&re(P,se.startTime-X)}}var I=!1,M=-1,Y=5,ae=-1;function j(){return!(e.unstable_now()-ae<Y)}function A(){if(I){var X=e.unstable_now();ae=X;var se=!0;try{e:{O=!1,_&&(_=!1,R(M),M=-1),y=!0;var ne=S;try{t:{for(k(X),E=r(p);E!==null&&!(E.expirationTime>X&&j());){var be=E.callback;if(typeof be=="function"){E.callback=null,S=E.priorityLevel;var C=be(E.expirationTime<=X);if(X=e.unstable_now(),typeof C=="function"){E.callback=C,k(X),se=!0;break t}E===r(p)&&i(p),k(X)}else i(p);E=r(p)}if(E!==null)se=!0;else{var J=r(m);J!==null&&re(P,J.startTime-X),se=!1}}break e}finally{E=null,S=ne,y=!1}se=void 0}}finally{se?V():I=!1}}}var V;if(typeof H=="function")V=function(){H(A)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,Q=K.port2;K.port1.onmessage=A,V=function(){Q.postMessage(null)}}else V=function(){L(A,0)};function Z(){I||(I=!0,V())}function re(X,se){M=L(function(){X(e.unstable_now())},se)}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(X){X.callback=null},e.unstable_continueExecution=function(){O||y||(O=!0,Z())},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return S},e.unstable_getFirstCallbackNode=function(){return r(p)},e.unstable_next=function(X){switch(S){case 1:case 2:case 3:var se=3;break;default:se=S}var ne=S;S=se;try{return X()}finally{S=ne}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,se){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var ne=S;S=X;try{return se()}finally{S=ne}},e.unstable_scheduleCallback=function(X,se,ne){var be=e.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?be+ne:be):ne=be,X){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=ne+C,X={id:b++,callback:se,priorityLevel:X,startTime:ne,expirationTime:C,sortIndex:-1},ne>be?(X.sortIndex=ne,t(m,X),r(p)===null&&X===r(m)&&(_?(R(M),M=-1):_=!0,re(P,ne-be))):(X.sortIndex=C,t(p,X),O||y||(O=!0,Z())),X},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(X){var se=S;return function(){var ne=S;S=se;try{return X.apply(this,arguments)}finally{S=ne}}}}(Af)),Af}var Qp;function V3(){return Qp||(Qp=1,Cf.exports=j3()),Cf.exports}var xf={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 Kp;function $3(){if(Kp)return Sn;Kp=1;var e=rs();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),S=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:S,fetchPriority:y}):b==="script"&&i.d.X(p,{crossOrigin:E,integrity:S,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.0.0",Sn}var Wp;function Zp(){if(Wp)return xf.exports;Wp=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(),xf.exports=$3(),xf.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
|
|
33
|
+
*/var Jp;function q3(){if(Jp)return Wu;Jp=1;var e=V3(),t=rs(),r=Zp();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"),O=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),k=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 Y=Symbol.for("react.client.reference");function ae(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===Y?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 O:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case R:return a=n.displayName||null,a!==null?a:ae(n.type)||"Memo";case H:a=n._payload,n=n._init;try{return ae(n(a))}catch{}}return null}var j=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.assign,V,K;function Q(n){if(V===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);V=a&&a[1]||"",K=-1<u.stack.indexOf(`
|
|
34
34
|
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
35
|
-
`+
|
|
35
|
+
`+V+n+K}var Z=!1;function re(n,a){if(!n||Z)return"";Z=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(ue){var W=ue}Reflect.construct(n,[],he)}else{try{he.call()}catch(ue){W=ue}n.call(he.prototype)}}else{try{throw Error()}catch(ue){W=ue}(he=n())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(ue){if(ue&&W&&typeof ue.stack=="string")return[ue.stack,W.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(),T=h[0],v=h[1];if(T&&v){var B=T.split(`
|
|
36
36
|
`),z=v.split(`
|
|
37
37
|
`);for(f=o=0;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;for(;f<z.length&&!z[f].includes("DetermineComponentFrameRoot");)f++;if(o===B.length||f===z.length)for(o=B.length-1,f=z.length-1;1<=o&&0<=f&&B[o]!==z[f];)f--;for(;1<=o&&0<=f;o--,f--)if(B[o]!==z[f]){if(o!==1||f!==1)do if(o--,f--,0>f||B[o]!==z[f]){var le=`
|
|
38
|
-
`+B[o].replace(" at new "," at ");return n.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",n.displayName)),le}while(1<=o&&0<=f);break}}}finally{Z=!1,Error.prepareStackTrace=u}return(u=n?n.displayName||n.name:"")?
|
|
38
|
+
`+B[o].replace(" at new "," at ");return n.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",n.displayName)),le}while(1<=o&&0<=f);break}}}finally{Z=!1,Error.prepareStackTrace=u}return(u=n?n.displayName||n.name:"")?Q(u):""}function X(n){switch(n.tag){case 26:case 27:case 5:return Q(n.type);case 16:return Q("Lazy");case 13:return Q("Suspense");case 19:return Q("SuspenseList");case 0:case 15:return n=re(n.type,!1),n;case 11:return n=re(n.type.render,!1),n;case 1:return n=re(n.type,!0),n;default:return""}}function se(n){try{var a="";do a+=X(n),n=n.return;while(n);return a}catch(u){return`
|
|
39
39
|
Error generating stack: `+u.message+`
|
|
40
|
-
`+u.stack}}function Q(n){var a=n,u=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,a.flags&4098&&(u=a.return),n=a.return;while(n)}return a.tag===3?u:null}function pe(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 A(n){if(Q(n)!==n)throw Error(i(188))}function ee(n){var a=n.alternate;if(!a){if(a=Q(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 A(f),n;if(h===o)return A(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 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 L=Array.isArray,se=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Oe={pending:!1,data:null,method:null,action:null},Se=[],et=-1;function Me(n){return{current:n}}function Ve(n){0>et||(n.current=Se[et],Se[et]=null,et--)}function _e(n,a){et++,Se[et]=n.current,n.current=a}var qe=Me(null),ve=Me(null),Re=Me(null),Ae=Me(null);function Be(n,a){switch(_e(Re,a),_e(ve,n),_e(qe,null),n=a.nodeType,n){case 9:case 11:a=(a=a.documentElement)&&(a=a.namespaceURI)?hA(a):0;break;default:if(n=n===8?a.parentNode:a,a=n.tagName,n=n.namespaceURI)n=hA(n),a=pA(n,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}Ve(qe),_e(qe,a)}function it(){Ve(qe),Ve(ve),Ve(Re)}function Ye(n){n.memoizedState!==null&&_e(Ae,n);var a=qe.current,u=pA(a,n.type);a!==u&&(_e(ve,n),_e(qe,u))}function Ue(n){ve.current===n&&(Ve(qe),Ve(ve)),Ae.current===n&&(Ve(Ae),Wo._currentValue=Oe)}var ct=Object.prototype.hasOwnProperty,At=e.unstable_scheduleCallback,rn=e.unstable_cancelCallback,_n=e.unstable_shouldYield,we=e.unstable_requestPaint,Ge=e.unstable_now,$t=e.unstable_getCurrentPriorityLevel,te=e.unstable_ImmediatePriority,fe=e.unstable_UserBlockingPriority,Ce=e.unstable_NormalPriority,He=e.unstable_LowPriority,nt=e.unstable_IdlePriority,Xe=e.log,xn=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 xe(n){if(typeof Xe=="function"&&xn(n),Ft&&typeof Ft.setStrictMode=="function")try{Ft.setStrictMode(an,n)}catch{}}var Fe=Math.clz32?Math.clz32:gr,Qe=Math.log,Ht=Math.LN2;function gr(n){return n>>>=0,n===0?32:31-(Qe(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,S=n.warmLanes;n=n.finishedLanes!==0;var v=u&134217727;return v!==0?(u=v&~f,u!==0?o=Qr(u):(h&=v,h!==0?o=Qr(h):n||(S=v&~S,S!==0&&(o=Qr(S))))):(v=u&~f,v!==0?o=Qr(v):h!==0?o=Qr(h):n||(S=u&~S,S!==0&&(o=Qr(S)))),o===0?0:a!==0&&a!==o&&!(a&f)&&(f=o&-o,S=a&-a,f>=S||f===32&&(S&4194176)!==0)?a:o}function uo(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function pw(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 iT(){var n=br;return br<<=1,!(br&4194176)&&(br=128),n}function uT(){var n=Xr;return Xr<<=1,!(Xr&62914560)&&(Xr=4194304),n}function Uh(n){for(var a=[],u=0;31>u;u++)a.push(n);return a}function lo(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function mw(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,z=n.hiddenUpdates;for(u=S&~u;0<u;){var le=31-Fe(u),de=1<<le;v[le]=0,B[le]=-1;var W=z[le];if(W!==null)for(z[le]=null,le=0;le<W.length;le++){var ie=W[le];ie!==null&&(ie.lane&=-536870913)}u&=~de}o!==0&&lT(n,o,0),h!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=h&~(S&~a))}function lT(n,a,u){n.pendingLanes|=a,n.suspendedLanes&=~a;var o=31-Fe(a);n.entangledLanes|=a,n.entanglements[o]=n.entanglements[o]|1073741824|u&4194218}function oT(n,a){var u=n.entangledLanes|=a;for(n=n.entanglements;u;){var o=31-Fe(u),f=1<<o;f&a|n[o]&a&&(n[o]|=a),u&=~f}}function sT(n){return n&=-n,2<n?8<n?n&134217727?32:268435456:8:2}function cT(){var n=se.p;return n!==0?n:(n=window.event,n===void 0?32:IA(n.type))}function gw(n,a){var u=se.p;try{return se.p=n,a()}finally{se.p=u}}var Ba=Math.random().toString(36).slice(2),vn="__reactFiber$"+Ba,Yn="__reactProps$"+Ba,mu="__reactContainer$"+Ba,Hh="__reactEvents$"+Ba,bw="__reactListeners$"+Ba,Ew="__reactHandles$"+Ba,fT="__reactResources$"+Ba,oo="__reactMarker$"+Ba;function Fh(n){delete n[vn],delete n[Yn],delete n[Hh],delete n[bw],delete n[Ew]}function Ei(n){var a=n[vn];if(a)return a;for(var u=n.parentNode;u;){if(a=u[mu]||u[vn]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(n=bA(n);n!==null;){if(u=n[vn])return u;n=bA(n)}return a}n=u,u=n.parentNode}return null}function gu(n){if(n=n[vn]||n[mu]){var a=n.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return n}return null}function so(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(i(33))}function bu(n){var a=n[fT];return a||(a=n[fT]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function hn(n){n[oo]=!0}var dT=new Set,hT={};function yi(n,a){Eu(n,a),Eu(n+"Capture",a)}function Eu(n,a){for(hT[n]=a,n=0;n<a.length;n++)dT.add(a[n])}var la=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yw=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]*$"),pT={},mT={};function Tw(n){return ct.call(mT,n)?!0:ct.call(pT,n)?!1:yw.test(n)?mT[n]=!0:(pT[n]=!0,!1)}function dc(n,a,u){if(Tw(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 hc(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 gT(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Sw(n){var a=gT(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 pc(n){n._valueTracker||(n._valueTracker=Sw(n))}function bT(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var u=a.getValue(),o="";return n&&(o=gT(n)?n.checked?"true":"false":n.value),n=o,n!==u?(a.setValue(n),!0):!1}function mc(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 Aw=/[\n"\\]/g;function yr(n){return n.replace(Aw,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function zh(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=""+Er(a)):n.value!==""+Er(a)&&(n.value=""+Er(a)):S!=="submit"&&S!=="reset"||n.removeAttribute("value"),a!=null?Yh(n,S,Er(a)):u!=null?Yh(n,S,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"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?n.name=""+Er(v):n.removeAttribute("name")}function ET(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?""+Er(u):"",a=a!=null?""+Er(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 Yh(n,a,u){a==="number"&&mc(n.ownerDocument)===n||n.defaultValue===""+u||(n.defaultValue=""+u)}function yu(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 yT(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 TT(n,a,u,o){if(a==null){if(o!=null){if(u!=null)throw Error(i(92));if(L(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 Tu(n,a){if(a){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===3){u.nodeValue=a;return}}n.textContent=a}var Cw=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 ST(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||Cw.has(a)?a==="float"?n.cssFloat=u:n[a]=(""+u).trim():n[a]=u+"px"}function AT(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&&ST(n,f,o)}else for(var h in a)a.hasOwnProperty(h)&&ST(n,h,a[h])}function jh(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 _w=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"]]),xw=/^[\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 gc(n){return xw.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var Vh=null;function $h(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Su=null,Au=null;function CT(n){var a=gu(n);if(a&&(n=a.stateNode)){var u=n[Yn]||null;e:switch(n=a.stateNode,a.type){case"input":if(zh(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[Yn]||null;if(!f)throw Error(i(90));zh(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&&bT(o)}break e;case"textarea":yT(n,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&yu(n,!!u.multiple,a,!1)}}}var qh=!1;function _T(n,a,u){if(qh)return n(a,u);qh=!0;try{var o=n(a);return o}finally{if(qh=!1,(Su!==null||Au!==null)&&(Jc(),Su&&(a=Su,n=Au,Au=Su=null,CT(a),n)))for(a=0;a<n.length;a++)CT(n[a])}}function co(n,a){var u=n.stateNode;if(u===null)return null;var o=u[Yn]||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 Gh=!1;if(la)try{var fo={};Object.defineProperty(fo,"passive",{get:function(){Gh=!0}}),window.addEventListener("test",fo,fo),window.removeEventListener("test",fo,fo)}catch{Gh=!1}var Pa=null,Xh=null,bc=null;function xT(){if(bc)return bc;var n,a=Xh,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 S=u-n;for(o=1;o<=S&&a[u-o]===f[h-o];o++);return bc=f.slice(n,1<o?1-o:void 0)}function Ec(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 yc(){return!0}function vT(){return!1}function jn(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)?yc:vT,this.isPropagationStopped=vT,this}return C(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=yc)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=yc)},persist:function(){},isPersistent:yc}),a}var Ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tc=jn(Ti),ho=C({},Ti,{view:0,detail:0}),vw=jn(ho),Qh,Kh,po,Sc=C({},ho,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zh,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!==po&&(po&&n.type==="mousemove"?(Qh=n.screenX-po.screenX,Kh=n.screenY-po.screenY):Kh=Qh=0,po=n),Qh)},movementY:function(n){return"movementY"in n?n.movementY:Kh}}),RT=jn(Sc),Rw=C({},Sc,{dataTransfer:0}),Ow=jn(Rw),Nw=C({},ho,{relatedTarget:0}),Wh=jn(Nw),kw=C({},Ti,{animationName:0,elapsedTime:0,pseudoElement:0}),Dw=jn(kw),Iw=C({},Ti,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Lw=jn(Iw),ww=C({},Ti,{data:0}),OT=jn(ww),Mw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bw={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"},Pw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Uw(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=Pw[n])?!!a[n]:!1}function Zh(){return Uw}var Hw=C({},ho,{key:function(n){if(n.key){var a=Mw[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=Ec(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?Bw[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zh,charCode:function(n){return n.type==="keypress"?Ec(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ec(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),Fw=jn(Hw),zw=C({},Sc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),NT=jn(zw),Yw=C({},ho,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zh}),jw=jn(Yw),Vw=C({},Ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),$w=jn(Vw),qw=C({},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}),Gw=jn(qw),Xw=C({},Ti,{newState:0,oldState:0}),Qw=jn(Xw),Kw=[9,13,27,32],Jh=la&&"CompositionEvent"in window,mo=null;la&&"documentMode"in document&&(mo=document.documentMode);var Ww=la&&"TextEvent"in window&&!mo,kT=la&&(!Jh||mo&&8<mo&&11>=mo),DT=" ",IT=!1;function LT(n,a){switch(n){case"keyup":return Kw.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wT(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Cu=!1;function Zw(n,a){switch(n){case"compositionend":return wT(a);case"keypress":return a.which!==32?null:(IT=!0,DT);case"textInput":return n=a.data,n===DT&&IT?null:n;default:return null}}function Jw(n,a){if(Cu)return n==="compositionend"||!Jh&<(n,a)?(n=xT(),bc=Xh=Pa=null,Cu=!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 kT&&a.locale!=="ko"?null:a.data;default:return null}}var eM={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 MT(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!eM[n.type]:a==="textarea"}function BT(n,a,u,o){Su?Au?Au.push(o):Au=[o]:Su=o,a=af(a,"onChange"),0<a.length&&(u=new Tc("onChange","change",null,u,o),n.push({event:u,listeners:a}))}var go=null,bo=null;function tM(n){oA(n,0)}function Ac(n){var a=so(n);if(bT(a))return n}function PT(n,a){if(n==="change")return a}var UT=!1;if(la){var e0;if(la){var t0="oninput"in document;if(!t0){var HT=document.createElement("div");HT.setAttribute("oninput","return;"),t0=typeof HT.oninput=="function"}e0=t0}else e0=!1;UT=e0&&(!document.documentMode||9<document.documentMode)}function FT(){go&&(go.detachEvent("onpropertychange",zT),bo=go=null)}function zT(n){if(n.propertyName==="value"&&Ac(bo)){var a=[];BT(a,bo,n,$h(n)),_T(tM,a)}}function nM(n,a,u){n==="focusin"?(FT(),go=a,bo=u,go.attachEvent("onpropertychange",zT)):n==="focusout"&&FT()}function rM(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Ac(bo)}function aM(n,a){if(n==="click")return Ac(a)}function iM(n,a){if(n==="input"||n==="change")return Ac(a)}function uM(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Jn=typeof Object.is=="function"?Object.is:uM;function Eo(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(!ct.call(a,f)||!Jn(n[f],a[f]))return!1}return!0}function YT(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function jT(n,a){var u=YT(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=YT(u)}}function VT(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?VT(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function $T(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=mc(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=mc(n.document)}return a}function n0(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 lM(n,a){var u=$T(a);a=n.focusedElem;var o=n.selectionRange;if(u!==a&&a&&a.ownerDocument&&VT(a.ownerDocument.documentElement,a)){if(o!==null&&n0(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=jT(a,h);var S=jT(a,o);f&&S&&(u.rangeCount!==1||u.anchorNode!==f.node||u.anchorOffset!==f.offset||u.focusNode!==S.node||u.focusOffset!==S.offset)&&(n=n.createRange(),n.setStart(f.node,f.offset),u.removeAllRanges(),h>o?(u.addRange(n),u.extend(S.node,S.offset)):(n.setEnd(S.node,S.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 oM=la&&"documentMode"in document&&11>=document.documentMode,_u=null,r0=null,yo=null,a0=!1;function qT(n,a,u){var o=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;a0||_u==null||_u!==mc(o)||(o=_u,"selectionStart"in o&&n0(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}),yo&&Eo(yo,o)||(yo=o,o=af(r0,"onSelect"),0<o.length&&(a=new Tc("onSelect","select",null,a,u),n.push({event:a,listeners:o}),a.target=_u)))}function Si(n,a){var u={};return u[n.toLowerCase()]=a.toLowerCase(),u["Webkit"+n]="webkit"+a,u["Moz"+n]="moz"+a,u}var xu={animationend:Si("Animation","AnimationEnd"),animationiteration:Si("Animation","AnimationIteration"),animationstart:Si("Animation","AnimationStart"),transitionrun:Si("Transition","TransitionRun"),transitionstart:Si("Transition","TransitionStart"),transitioncancel:Si("Transition","TransitionCancel"),transitionend:Si("Transition","TransitionEnd")},i0={},GT={};la&&(GT=document.createElement("div").style,"AnimationEvent"in window||(delete xu.animationend.animation,delete xu.animationiteration.animation,delete xu.animationstart.animation),"TransitionEvent"in window||delete xu.transitionend.transition);function Ai(n){if(i0[n])return i0[n];if(!xu[n])return n;var a=xu[n],u;for(u in a)if(a.hasOwnProperty(u)&&u in GT)return i0[n]=a[u];return n}var XT=Ai("animationend"),QT=Ai("animationiteration"),KT=Ai("animationstart"),sM=Ai("transitionrun"),cM=Ai("transitionstart"),fM=Ai("transitioncancel"),WT=Ai("transitionend"),ZT=new Map,JT="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){ZT.set(n,a),yi(a,[n])}var Tr=[],vu=0,u0=0;function Cc(){for(var n=vu,a=u0=vu=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 S=o.pending;S===null?f.next=f:(f.next=S.next,S.next=f),o.pending=f}h!==0&&e2(u,f,h)}}function _c(n,a,u,o){Tr[vu++]=n,Tr[vu++]=a,Tr[vu++]=u,Tr[vu++]=o,u0|=o,n.lanes|=o,n=n.alternate,n!==null&&(n.lanes|=o)}function l0(n,a,u,o){return _c(n,a,u,o),xc(n)}function Ua(n,a){return _c(n,null,null,a),xc(n)}function e2(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-Fe(u),h=h.hiddenUpdates,n=h[f],n===null?h[f]=[a]:n.push(a),a.lane=u|536870912)}function xc(n){if(50<Vo)throw Vo=0,hp=null,Error(i(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Ru={},t2=new WeakMap;function Sr(n,a){if(typeof n=="object"&&n!==null){var u=t2.get(n);return u!==void 0?u:(a={value:n,source:a,stack:oe(a)},t2.set(n,a),a)}return{value:n,source:a,stack:oe(a)}}var Ou=[],Nu=0,vc=null,Rc=0,Ar=[],Cr=0,Ci=null,sa=1,ca="";function _i(n,a){Ou[Nu++]=Rc,Ou[Nu++]=vc,vc=n,Rc=a}function n2(n,a,u){Ar[Cr++]=sa,Ar[Cr++]=ca,Ar[Cr++]=Ci,Ci=n;var o=sa;n=ca;var f=32-Fe(o)-1;o&=~(1<<f),u+=1;var h=32-Fe(a)+f;if(30<h){var S=f-f%5;h=(o&(1<<S)-1).toString(32),o>>=S,f-=S,sa=1<<32-Fe(a)+f|u<<f|o,ca=h+n}else sa=1<<h|u<<f|o,ca=n}function o0(n){n.return!==null&&(_i(n,1),n2(n,1,0))}function s0(n){for(;n===vc;)vc=Ou[--Nu],Ou[Nu]=null,Rc=Ou[--Nu],Ou[Nu]=null;for(;n===Ci;)Ci=Ar[--Cr],Ar[Cr]=null,ca=Ar[--Cr],Ar[Cr]=null,sa=Ar[--Cr],Ar[Cr]=null}var kn=null,bn=null,gt=!1,Ir=null,Kr=!1,c0=Error(i(519));function xi(n){var a=Error(i(418,""));throw Ao(Sr(a,n)),c0}function r2(n){var a=n.stateNode,u=n.type,o=n.memoizedProps;switch(a[vn]=n,a[Yn]=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<qo.length;u++)ft(qo[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),ET(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),pc(a);break;case"select":ft("invalid",a);break;case"textarea":ft("invalid",a),TT(a,o.value,o.defaultValue,o.children),pc(a)}u=o.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||o.suppressHydrationWarning===!0||dA(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=uf),a=!0):a=!1,a||xi(n)}function a2(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 To(n){if(n!==kn)return!1;if(!gt)return a2(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")||kp(n.type,n.memoizedProps)),u=!u),u&&(a=!0),a&&bn&&xi(n),a2(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){bn=wr(n.nextSibling);break e}a--}else u!=="$"&&u!=="$!"&&u!=="$?"||a++;n=n.nextSibling}bn=null}}else bn=kn?wr(n.stateNode.nextSibling):null;return!0}function So(){bn=kn=null,gt=!1}function Ao(n){Ir===null?Ir=[n]:Ir.push(n)}var Co=Error(i(460)),i2=Error(i(474)),f0={then:function(){}};function u2(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Oc(){}function l2(n,a,u){switch(u=n[u],u===void 0?n.push(a):u!==a&&(a.then(Oc,Oc),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,n===Co?Error(i(483)):n;default:if(typeof a.status=="string")a.then(Oc,Oc);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===Co?Error(i(483)):n}throw _o=a,Co}}var _o=null;function o2(){if(_o===null)throw Error(i(459));var n=_o;return _o=null,n}var ku=null,xo=0;function Nc(n){var a=xo;return xo+=1,ku===null&&(ku=[]),l2(ku,n,a)}function vo(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function kc(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 s2(n){var a=n._init;return a(n._payload)}function c2(n){function a(V,F){if(n){var G=V.deletions;G===null?(V.deletions=[F],V.flags|=16):G.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=Ka(V,F),V.index=0,V.sibling=null,V}function h(V,F,G){return V.index=G,n?(G=V.alternate,G!==null?(G=G.index,G<F?(V.flags|=33554434,F):G):(V.flags|=33554434,F)):(V.flags|=1048576,F)}function S(V){return n&&V.alternate===null&&(V.flags|=33554434),V}function v(V,F,G,ce){return F===null||F.tag!==6?(F=ip(G,V.mode,ce),F.return=V,F):(F=f(F,G),F.return=V,F)}function B(V,F,G,ce){var Ne=G.type;return Ne===p?le(V,F,G.props.children,ce,G.key):F!==null&&(F.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===H&&s2(Ne)===F.type)?(F=f(F,G.props),vo(F,G),F.return=V,F):(F=Xc(G.type,G.key,G.props,null,V.mode,ce),vo(F,G),F.return=V,F)}function z(V,F,G,ce){return F===null||F.tag!==4||F.stateNode.containerInfo!==G.containerInfo||F.stateNode.implementation!==G.implementation?(F=up(G,V.mode,ce),F.return=V,F):(F=f(F,G.children||[]),F.return=V,F)}function le(V,F,G,ce,Ne){return F===null||F.tag!==7?(F=Mi(G,V.mode,ce,Ne),F.return=V,F):(F=f(F,G),F.return=V,F)}function de(V,F,G){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return F=ip(""+F,V.mode,G),F.return=V,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case c:return G=Xc(F.type,F.key,F.props,null,V.mode,G),vo(G,F),G.return=V,G;case d:return F=up(F,V.mode,G),F.return=V,F;case H:var ce=F._init;return F=ce(F._payload),de(V,F,G)}if(L(F)||M(F))return F=Mi(F,V.mode,G,null),F.return=V,F;if(typeof F.then=="function")return de(V,Nc(F),G);if(F.$$typeof===y)return de(V,$c(V,F),G);kc(V,F)}return null}function W(V,F,G,ce){var Ne=F!==null?F.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return Ne!==null?null:v(V,F,""+G,ce);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case c:return G.key===Ne?B(V,F,G,ce):null;case d:return G.key===Ne?z(V,F,G,ce):null;case H:return Ne=G._init,G=Ne(G._payload),W(V,F,G,ce)}if(L(G)||M(G))return Ne!==null?null:le(V,F,G,ce,null);if(typeof G.then=="function")return W(V,F,Nc(G),ce);if(G.$$typeof===y)return W(V,F,$c(V,G),ce);kc(V,G)}return null}function ie(V,F,G,ce,Ne){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return V=V.get(G)||null,v(F,V,""+ce,Ne);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case c:return V=V.get(ce.key===null?G:ce.key)||null,B(F,V,ce,Ne);case d:return V=V.get(ce.key===null?G:ce.key)||null,z(F,V,ce,Ne);case H:var ut=ce._init;return ce=ut(ce._payload),ie(V,F,G,ce,Ne)}if(L(ce)||M(ce))return V=V.get(G)||null,le(F,V,ce,Ne,null);if(typeof ce.then=="function")return ie(V,F,G,Nc(ce),Ne);if(ce.$$typeof===y)return ie(V,F,G,$c(F,ce),Ne);kc(F,ce)}return null}function Ie(V,F,G,ce){for(var Ne=null,ut=null,Pe=F,ze=F=0,gn=null;Pe!==null&&ze<G.length;ze++){Pe.index>ze?(gn=Pe,Pe=null):gn=Pe.sibling;var bt=W(V,Pe,G[ze],ce);if(bt===null){Pe===null&&(Pe=gn);break}n&&Pe&&bt.alternate===null&&a(V,Pe),F=h(bt,F,ze),ut===null?Ne=bt:ut.sibling=bt,ut=bt,Pe=gn}if(ze===G.length)return u(V,Pe),gt&&_i(V,ze),Ne;if(Pe===null){for(;ze<G.length;ze++)Pe=de(V,G[ze],ce),Pe!==null&&(F=h(Pe,F,ze),ut===null?Ne=Pe:ut.sibling=Pe,ut=Pe);return gt&&_i(V,ze),Ne}for(Pe=o(Pe);ze<G.length;ze++)gn=ie(Pe,V,ze,G[ze],ce),gn!==null&&(n&&gn.alternate!==null&&Pe.delete(gn.key===null?ze:gn.key),F=h(gn,F,ze),ut===null?Ne=gn:ut.sibling=gn,ut=gn);return n&&Pe.forEach(function(ri){return a(V,ri)}),gt&&_i(V,ze),Ne}function $e(V,F,G,ce){if(G==null)throw Error(i(151));for(var Ne=null,ut=null,Pe=F,ze=F=0,gn=null,bt=G.next();Pe!==null&&!bt.done;ze++,bt=G.next()){Pe.index>ze?(gn=Pe,Pe=null):gn=Pe.sibling;var ri=W(V,Pe,bt.value,ce);if(ri===null){Pe===null&&(Pe=gn);break}n&&Pe&&ri.alternate===null&&a(V,Pe),F=h(ri,F,ze),ut===null?Ne=ri:ut.sibling=ri,ut=ri,Pe=gn}if(bt.done)return u(V,Pe),gt&&_i(V,ze),Ne;if(Pe===null){for(;!bt.done;ze++,bt=G.next())bt=de(V,bt.value,ce),bt!==null&&(F=h(bt,F,ze),ut===null?Ne=bt:ut.sibling=bt,ut=bt);return gt&&_i(V,ze),Ne}for(Pe=o(Pe);!bt.done;ze++,bt=G.next())bt=ie(Pe,V,ze,bt.value,ce),bt!==null&&(n&&bt.alternate!==null&&Pe.delete(bt.key===null?ze:bt.key),F=h(bt,F,ze),ut===null?Ne=bt:ut.sibling=bt,ut=bt);return n&&Pe.forEach(function(x9){return a(V,x9)}),gt&&_i(V,ze),Ne}function Xt(V,F,G,ce){if(typeof G=="object"&&G!==null&&G.type===p&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case c:e:{for(var Ne=G.key;F!==null;){if(F.key===Ne){if(Ne=G.type,Ne===p){if(F.tag===7){u(V,F.sibling),ce=f(F,G.props.children),ce.return=V,V=ce;break e}}else if(F.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===H&&s2(Ne)===F.type){u(V,F.sibling),ce=f(F,G.props),vo(ce,G),ce.return=V,V=ce;break e}u(V,F);break}else a(V,F);F=F.sibling}G.type===p?(ce=Mi(G.props.children,V.mode,ce,G.key),ce.return=V,V=ce):(ce=Xc(G.type,G.key,G.props,null,V.mode,ce),vo(ce,G),ce.return=V,V=ce)}return S(V);case d:e:{for(Ne=G.key;F!==null;){if(F.key===Ne)if(F.tag===4&&F.stateNode.containerInfo===G.containerInfo&&F.stateNode.implementation===G.implementation){u(V,F.sibling),ce=f(F,G.children||[]),ce.return=V,V=ce;break e}else{u(V,F);break}else a(V,F);F=F.sibling}ce=up(G,V.mode,ce),ce.return=V,V=ce}return S(V);case H:return Ne=G._init,G=Ne(G._payload),Xt(V,F,G,ce)}if(L(G))return Ie(V,F,G,ce);if(M(G)){if(Ne=M(G),typeof Ne!="function")throw Error(i(150));return G=Ne.call(G),$e(V,F,G,ce)}if(typeof G.then=="function")return Xt(V,F,Nc(G),ce);if(G.$$typeof===y)return Xt(V,F,$c(V,G),ce);kc(V,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,F!==null&&F.tag===6?(u(V,F.sibling),ce=f(F,G),ce.return=V,V=ce):(u(V,F),ce=ip(G,V.mode,ce),ce.return=V,V=ce),S(V)):u(V,F)}return function(V,F,G,ce){try{xo=0;var Ne=Xt(V,F,G,ce);return ku=null,Ne}catch(Pe){if(Pe===Co)throw Pe;var ut=Rr(29,Pe,null,V.mode);return ut.lanes=ce,ut.return=V,ut}finally{}}}var vi=c2(!0),f2=c2(!1),Du=Me(null),Dc=Me(0);function d2(n,a){n=Sa,_e(Dc,n),_e(Du,a),Sa=n|a.baseLanes}function d0(){_e(Dc,Sa),_e(Du,Du.current)}function h0(){Sa=Dc.current,Ve(Du),Ve(Dc)}var _r=Me(null),Wr=null;function Ha(n){var a=n.alternate;_e(sn,sn.current&1),_e(_r,n),Wr===null&&(a===null||Du.current!==null||a.memoizedState!==null)&&(Wr=n)}function h2(n){if(n.tag===22){if(_e(sn,sn.current),_e(_r,n),Wr===null){var a=n.alternate;a!==null&&a.memoizedState!==null&&(Wr=n)}}else Fa()}function Fa(){_e(sn,sn.current),_e(_r,_r.current)}function fa(n){Ve(_r),Wr===n&&(Wr=null),Ve(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)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 dM=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()})}},hM=e.unstable_scheduleCallback,pM=e.unstable_NormalPriority,cn={$$typeof:y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function p0(){return{controller:new dM,data:new Map,refCount:0}}function Ro(n){n.refCount--,n.refCount===0&&hM(pM,function(){n.controller.abort()})}var Oo=null,m0=0,Iu=0,Lu=null;function mM(n,a){if(Oo===null){var u=Oo=[];m0=0,Iu=Sp(),Lu={status:"pending",value:void 0,then:function(o){u.push(o)}}}return m0++,a.then(p2,p2),a}function p2(){if(--m0===0&&Oo!==null){Lu!==null&&(Lu.status="fulfilled");var n=Oo;Oo=null,Iu=0,Lu=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function gM(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 m2=$.S;$.S=function(n,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&mM(n,a),m2!==null&&m2(n,a)};var Ri=Me(null);function g0(){var n=Ri.current;return n!==null?n:wt.pooledCache}function Lc(n,a){a===null?_e(Ri,Ri.current):_e(Ri,a.pool)}function g2(){var n=g0();return n===null?null:{parent:cn._currentValue,pool:n}}var za=0,rt=null,Ct=null,un=null,wc=!1,wu=!1,Oi=!1,Mc=0,No=0,Mu=null,bM=0;function Wt(){throw Error(i(321))}function b0(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 E0(n,a,u,o,f,h){return za=h,rt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,$.H=n===null||n.memoizedState===null?Ni:Ya,Oi=!1,h=u(o,f),Oi=!1,wu&&(h=E2(a,u,o,f)),b2(n),h}function b2(n){$.H=Zr;var a=Ct!==null&&Ct.next!==null;if(za=0,un=Ct=rt=null,wc=!1,No=0,Mu=null,a)throw Error(i(300));n===null||pn||(n=n.dependencies,n!==null&&Vc(n)&&(pn=!0))}function E2(n,a,u,o){rt=n;var f=0;do{if(wu&&(Mu=null),No=0,wu=!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)}$.H=ki,h=a(u,o)}while(wu);return h}function EM(){var n=$.H,a=n.useState()[0];return a=typeof a.then=="function"?ko(a):a,n=n.useState()[0],(Ct!==null?Ct.memoizedState:null)!==n&&(rt.flags|=1024),a}function y0(){var n=Mc!==0;return Mc=0,n}function T0(n,a,u){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~u}function S0(n){if(wc){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}wc=!1}za=0,un=Ct=rt=null,wu=!1,No=Mc=0,Mu=null}function Vn(){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 Bc;Bc=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function ko(n){var a=No;return No+=1,Mu===null&&(Mu=[]),n=l2(Mu,n,a),a=rt,(un===null?a.memoizedState:un.next)===null&&(a=a.alternate,$.H=a===null||a.memoizedState===null?Ni:Ya),n}function Pc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return ko(n);if(n.$$typeof===y)return Rn(n)}throw Error(i(438,String(n)))}function A0(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=Bc(),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 Uc(n){var a=ln();return C0(a,Ct,n)}function C0(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,z=a,le=!1;do{var de=z.lane&-536870913;if(de!==z.lane?(ht&de)===de:(za&de)===de){var W=z.revertLane;if(W===0)B!==null&&(B=B.next={lane:0,revertLane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),de===Iu&&(le=!0);else if((za&W)===W){z=z.next,W===Iu&&(le=!0);continue}else de={lane:0,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},B===null?(v=B=de,S=h):B=B.next=de,rt.lanes|=W,Wa|=W;de=z.action,Oi&&u(h,de),h=z.hasEagerState?z.eagerState:u(h,de)}else W={lane:de,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},B===null?(v=B=W,S=h):B=B.next=W,rt.lanes|=de,Wa|=de;z=z.next}while(z!==null&&z!==a);if(B===null?S=h:B.next=v,!Jn(h,n.memoizedState)&&(pn=!0,le&&(u=Lu,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 _0(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 S=f=f.next;do h=n(h,S.action),S=S.next;while(S!==f);Jn(h,a.memoizedState)||(pn=!0),a.memoizedState=h,a.baseQueue===null&&(a.baseState=h),u.lastRenderedState=h}return[h,o]}function y2(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 S=!Jn((Ct||f).memoizedState,u);if(S&&(f.memoizedState=u,pn=!0),f=f.queue,R0(A2.bind(null,o,f,n),[n]),f.getSnapshot!==a||S||un!==null&&un.memoizedState.tag&1){if(o.flags|=2048,Bu(9,S2.bind(null,o,f,u,a),{destroy:void 0},null),wt===null)throw Error(i(349));h||za&60||T2(o,a,u)}return u}function T2(n,a,u){n.flags|=16384,n={getSnapshot:a,value:u},a=rt.updateQueue,a===null?(a=Bc(),rt.updateQueue=a,a.stores=[n]):(u=a.stores,u===null?a.stores=[n]:u.push(n))}function S2(n,a,u,o){a.value=u,a.getSnapshot=o,C2(a)&&_2(n)}function A2(n,a,u){return u(function(){C2(a)&&_2(n)})}function C2(n){var a=n.getSnapshot;n=n.value;try{var u=a();return!Jn(n,u)}catch{return!0}}function _2(n){var a=Ua(n,2);a!==null&&Dn(a,n,2)}function x0(n){var a=Vn();if(typeof n=="function"){var u=n;if(n=u(),Oi){xe(!0);try{u()}finally{xe(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:n},a}function x2(n,a,u,o){return n.baseState=u,C0(n,Ct,typeof o=="function"?o:da)}function yM(n,a,u,o,f){if(zc(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)}};$.T!==null?u(!0):h.isTransition=!1,o(h),u=a.pending,u===null?(h.next=a.pending=h,v2(a,h)):(h.next=u.next,a.pending=u.next=h)}}function v2(n,a){var u=a.action,o=a.payload,f=n.state;if(a.isTransition){var h=$.T,S={};$.T=S;try{var v=u(f,o),B=$.S;B!==null&&B(S,v),R2(n,a,v)}catch(z){v0(n,a,z)}finally{$.T=h}}else try{h=u(f,o),R2(n,a,h)}catch(z){v0(n,a,z)}}function R2(n,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(o){O2(n,a,o)},function(o){return v0(n,a,o)}):O2(n,a,u)}function O2(n,a,u){a.status="fulfilled",a.value=u,N2(a),n.state=u,a=n.pending,a!==null&&(u=a.next,u===a?n.pending=null:(u=u.next,a.next=u,v2(n,u)))}function v0(n,a,u){var o=n.pending;if(n.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=u,N2(a),a=a.next;while(a!==o)}n.action=null}function N2(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function k2(n,a){return a}function D2(n,a){if(gt){var u=wt.formState;if(u!==null){e:{var o=rt;if(gt){if(bn){t:{for(var f=bn,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){bn=wr(f.nextSibling),o=f.data==="F!";break e}}xi(o)}o=!1}o&&(a=u[0])}}return u=Vn(),u.memoizedState=u.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:k2,lastRenderedState:a},u.queue=o,u=Q2.bind(null,rt,o),o.dispatch=u,o=x0(!1),h=I0.bind(null,rt,!1,o.queue),o=Vn(),f={state:a,dispatch:null,action:n,pending:null},o.queue=f,u=yM.bind(null,rt,f,h,u),f.dispatch=u,o.memoizedState=n,[a,u,!1]}function I2(n){var a=ln();return L2(a,Ct,n)}function L2(n,a,u){a=C0(n,a,k2)[0],n=Uc(da)[0],a=typeof a=="object"&&a!==null&&typeof a.then=="function"?ko(a):a;var o=ln(),f=o.queue,h=f.dispatch;return u!==o.memoizedState&&(rt.flags|=2048,Bu(9,TM.bind(null,f,u),{destroy:void 0},null)),[a,h,n]}function TM(n,a){n.action=a}function w2(n){var a=ln(),u=Ct;if(u!==null)return L2(a,u,n);ln(),a=a.memoizedState,u=ln();var o=u.queue.dispatch;return u.memoizedState=n,[a,o,!1]}function Bu(n,a,u,o){return n={tag:n,create:a,inst:u,deps:o,next:null},a=rt.updateQueue,a===null&&(a=Bc(),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 M2(){return ln().memoizedState}function Hc(n,a,u,o){var f=Vn();rt.flags|=n,f.memoizedState=Bu(1|a,u,{destroy:void 0},o===void 0?null:o)}function Fc(n,a,u,o){var f=ln();o=o===void 0?null:o;var h=f.memoizedState.inst;Ct!==null&&o!==null&&b0(o,Ct.memoizedState.deps)?f.memoizedState=Bu(a,u,h,o):(rt.flags|=n,f.memoizedState=Bu(1|a,u,h,o))}function B2(n,a){Hc(8390656,8,n,a)}function R0(n,a){Fc(2048,8,n,a)}function P2(n,a){return Fc(4,2,n,a)}function U2(n,a){return Fc(4,4,n,a)}function H2(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 F2(n,a,u){u=u!=null?u.concat([n]):null,Fc(4,4,H2.bind(null,a,n),u)}function O0(){}function z2(n,a){var u=ln();a=a===void 0?null:a;var o=u.memoizedState;return a!==null&&b0(a,o[1])?o[0]:(u.memoizedState=[n,a],n)}function Y2(n,a){var u=ln();a=a===void 0?null:a;var o=u.memoizedState;if(a!==null&&b0(a,o[1]))return o[0];if(o=n(),Oi){xe(!0);try{n()}finally{xe(!1)}}return u.memoizedState=[o,a],o}function N0(n,a,u){return u===void 0||za&1073741824?n.memoizedState=a:(n.memoizedState=u,n=VS(),rt.lanes|=n,Wa|=n,u)}function j2(n,a,u,o){return Jn(u,a)?u:Du.current!==null?(n=N0(n,u,o),Jn(n,a)||(pn=!0),n):za&42?(n=VS(),rt.lanes|=n,Wa|=n,a):(pn=!0,n.memoizedState=u)}function V2(n,a,u,o,f){var h=se.p;se.p=h!==0&&8>h?h:8;var S=$.T,v={};$.T=v,I0(n,!1,a,u);try{var B=f(),z=$.S;if(z!==null&&z(v,B),B!==null&&typeof B=="object"&&typeof B.then=="function"){var le=gM(B,o);Do(n,a,le,rr(n))}else Do(n,a,o,rr(n))}catch(de){Do(n,a,{then:function(){},status:"rejected",reason:de},rr())}finally{se.p=h,$.T=S}}function SM(){}function k0(n,a,u,o){if(n.tag!==5)throw Error(i(476));var f=$2(n).queue;V2(n,f,a,Oe,u===null?SM:function(){return q2(n),u(o)})}function $2(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:Oe,baseState:Oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:Oe},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 q2(n){var a=$2(n).next.queue;Do(n,a,{},rr())}function D0(){return Rn(Wo)}function G2(){return ln().memoizedState}function X2(){return ln().memoizedState}function AM(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var u=rr();n=$a(u);var o=qa(a,n,u);o!==null&&(Dn(o,a,u),wo(o,a,u)),a={cache:p0()},n.payload=a;return}a=a.return}}function CM(n,a,u){var o=rr();u={lane:o,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},zc(n)?K2(a,u):(u=l0(n,a,u,o),u!==null&&(Dn(u,n,o),W2(u,a,o)))}function Q2(n,a,u){var o=rr();Do(n,a,u,o)}function Do(n,a,u,o){var f={lane:o,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(zc(n))K2(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 _c(n,a,f,0),wt===null&&Cc(),!1}catch{}finally{}if(u=l0(n,a,f,o),u!==null)return Dn(u,n,o),W2(u,a,o),!0}return!1}function I0(n,a,u,o){if(o={lane:2,revertLane:Sp(),action:o,hasEagerState:!1,eagerState:null,next:null},zc(n)){if(a)throw Error(i(479))}else a=l0(n,u,o,2),a!==null&&Dn(a,n,2)}function zc(n){var a=n.alternate;return n===rt||a!==null&&a===rt}function K2(n,a){wu=wc=!0;var u=n.pending;u===null?a.next=a:(a.next=u.next,u.next=a),n.pending=a}function W2(n,a,u){if(u&4194176){var o=a.lanes;o&=n.pendingLanes,u|=o,a.lanes=u,oT(n,u)}}var Zr={readContext:Rn,use:Pc,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 Ni={readContext:Rn,use:Pc,useCallback:function(n,a){return Vn().memoizedState=[n,a===void 0?null:a],n},useContext:Rn,useEffect:B2,useImperativeHandle:function(n,a,u){u=u!=null?u.concat([n]):null,Hc(4194308,4,H2.bind(null,a,n),u)},useLayoutEffect:function(n,a){return Hc(4194308,4,n,a)},useInsertionEffect:function(n,a){Hc(4,2,n,a)},useMemo:function(n,a){var u=Vn();a=a===void 0?null:a;var o=n();if(Oi){xe(!0);try{n()}finally{xe(!1)}}return u.memoizedState=[o,a],o},useReducer:function(n,a,u){var o=Vn();if(u!==void 0){var f=u(a);if(Oi){xe(!0);try{u(a)}finally{xe(!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=CM.bind(null,rt,n),[o.memoizedState,n]},useRef:function(n){var a=Vn();return n={current:n},a.memoizedState=n},useState:function(n){n=x0(n);var a=n.queue,u=Q2.bind(null,rt,a);return a.dispatch=u,[n.memoizedState,u]},useDebugValue:O0,useDeferredValue:function(n,a){var u=Vn();return N0(u,n,a)},useTransition:function(){var n=x0(!1);return n=V2.bind(null,rt,n.queue,!0,!1),Vn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,u){var o=rt,f=Vn();if(gt){if(u===void 0)throw Error(i(407));u=u()}else{if(u=a(),wt===null)throw Error(i(349));ht&60||T2(o,a,u)}f.memoizedState=u;var h={value:u,getSnapshot:a};return f.queue=h,B2(A2.bind(null,o,h,n),[n]),o.flags|=2048,Bu(9,S2.bind(null,o,h,u,a),{destroy:void 0},null),u},useId:function(){var n=Vn(),a=wt.identifierPrefix;if(gt){var u=ca,o=sa;u=(o&~(1<<32-Fe(o)-1)).toString(32)+u,a=":"+a+"R"+u,u=Mc++,0<u&&(a+="H"+u.toString(32)),a+=":"}else u=bM++,a=":"+a+"r"+u.toString(32)+":";return n.memoizedState=a},useCacheRefresh:function(){return Vn().memoizedState=AM.bind(null,rt)}};Ni.useMemoCache=A0,Ni.useHostTransitionStatus=D0,Ni.useFormState=D2,Ni.useActionState=D2,Ni.useOptimistic=function(n){var a=Vn();a.memoizedState=a.baseState=n;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=I0.bind(null,rt,!0,u),u.dispatch=a,[n,a]};var Ya={readContext:Rn,use:Pc,useCallback:z2,useContext:Rn,useEffect:R0,useImperativeHandle:F2,useInsertionEffect:P2,useLayoutEffect:U2,useMemo:Y2,useReducer:Uc,useRef:M2,useState:function(){return Uc(da)},useDebugValue:O0,useDeferredValue:function(n,a){var u=ln();return j2(u,Ct.memoizedState,n,a)},useTransition:function(){var n=Uc(da)[0],a=ln().memoizedState;return[typeof n=="boolean"?n:ko(n),a]},useSyncExternalStore:y2,useId:G2};Ya.useCacheRefresh=X2,Ya.useMemoCache=A0,Ya.useHostTransitionStatus=D0,Ya.useFormState=I2,Ya.useActionState=I2,Ya.useOptimistic=function(n,a){var u=ln();return x2(u,Ct,n,a)};var ki={readContext:Rn,use:Pc,useCallback:z2,useContext:Rn,useEffect:R0,useImperativeHandle:F2,useInsertionEffect:P2,useLayoutEffect:U2,useMemo:Y2,useReducer:_0,useRef:M2,useState:function(){return _0(da)},useDebugValue:O0,useDeferredValue:function(n,a){var u=ln();return Ct===null?N0(u,n,a):j2(u,Ct.memoizedState,n,a)},useTransition:function(){var n=_0(da)[0],a=ln().memoizedState;return[typeof n=="boolean"?n:ko(n),a]},useSyncExternalStore:y2,useId:G2};ki.useCacheRefresh=X2,ki.useMemoCache=A0,ki.useHostTransitionStatus=D0,ki.useFormState=w2,ki.useActionState=w2,ki.useOptimistic=function(n,a){var u=ln();return Ct!==null?x2(u,Ct,n,a):(u.baseState=n,[n,u.queue.dispatch])};function L0(n,a,u,o){a=n.memoizedState,u=u(o,a),u=u==null?a:C({},a,u),n.memoizedState=u,n.lanes===0&&(n.updateQueue.baseState=u)}var w0={isMounted:function(n){return(n=n._reactInternals)?Q(n)===n:!1},enqueueSetState:function(n,a,u){n=n._reactInternals;var o=rr(),f=$a(o);f.payload=a,u!=null&&(f.callback=u),a=qa(n,f,o),a!==null&&(Dn(a,n,o),wo(a,n,o))},enqueueReplaceState:function(n,a,u){n=n._reactInternals;var o=rr(),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),wo(a,n,o))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var u=rr(),o=$a(u);o.tag=2,a!=null&&(o.callback=a),a=qa(n,o,u),a!==null&&(Dn(a,n,u),wo(a,n,u))}};function Z2(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?!Eo(u,o)||!Eo(f,h):!0}function J2(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&&w0.enqueueReplaceState(a,a.state,null)}function Di(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=C({},u));for(var f in n)u[f]===void 0&&(u[f]=n[f])}return u}var Yc=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 eS(n){Yc(n)}function tS(n){console.error(n)}function nS(n){Yc(n)}function jc(n,a){try{var u=n.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function rS(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 M0(n,a,u){return u=$a(u),u.tag=3,u.payload={element:null},u.callback=function(){jc(n,a)},u}function aS(n){return n=$a(n),n.tag=3,n}function iS(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(){rS(a,u,o)}}var S=u.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(n.callback=function(){rS(a,u,o),typeof f!="function"&&(Za===null?Za=new Set([this]):Za.add(this));var v=o.stack;this.componentDidCatch(o.value,{componentStack:v!==null?v:""})})}function _M(n,a,u,o,f){if(u.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=u.alternate,a!==null&&Lo(a,u,f,!0),u=_r.current,u!==null){switch(u.tag){case 13:return Wr===null?gp():u.alternate===null&&Gt===0&&(Gt=3),u.flags&=-257,u.flags|=65536,u.lanes=f,o===f0?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([o]):a.add(o),Ep(n,o,f)),!1;case 22:return u.flags|=65536,o===f0?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)),Ep(n,o,f)),!1}throw Error(i(435,u.tag))}return Ep(n,o,f),gp(),!1}if(gt)return a=_r.current,a!==null?(!(a.flags&65536)&&(a.flags|=256),a.flags|=65536,a.lanes=f,o!==c0&&(n=Error(i(422),{cause:o}),Ao(Sr(n,u)))):(o!==c0&&(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=M0(n.stateNode,o,f),K0(n,f),Gt!==4&&(Gt=2)),!1;var h=Error(i(520),{cause:o});if(h=Sr(h,u),Yo===null?Yo=[h]:Yo.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=M0(u.stateNode,o,n),K0(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=aS(f),iS(f,n,u,o),K0(u,f),!1}u=u.return}while(u!==null);return!1}var uS=Error(i(461)),pn=!1;function En(n,a,u,o){a.child=n===null?f2(a,null,u,o):vi(a,n.child,u,o)}function lS(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 Li(a),o=E0(n,a,u,S,h,f),v=y0(),n!==null&&!pn?(T0(n,a,f),ha(n,a,f)):(gt&&v&&o0(a),a.flags|=1,En(n,a,o,f),a.child)}function oS(n,a,u,o,f){if(n===null){var h=u.type;return typeof h=="function"&&!ap(h)&&h.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=h,sS(n,a,h,o,f)):(n=Xc(u.type,null,o,a,a.mode,f),n.ref=a.ref,n.return=a,a.child=n)}if(h=n.child,!V0(n,f)){var S=h.memoizedProps;if(u=u.compare,u=u!==null?u:Eo,u(S,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 sS(n,a,u,o,f){if(n!==null){var h=n.memoizedProps;if(Eo(h,o)&&n.ref===a.ref)if(pn=!1,a.pendingProps=o=h,V0(n,f))n.flags&131072&&(pn=!0);else return a.lanes=n.lanes,ha(n,a,f)}return B0(n,a,u,o,f)}function cS(n,a,u){var o=a.pendingProps,f=o.children,h=(a.stateNode._pendingVisibility&2)!==0,S=n!==null?n.memoizedState:null;if(Io(n,a),o.mode==="hidden"||h){if(a.flags&128){if(o=S!==null?S.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 fS(n,a,o,u)}if(u&536870912)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&Lc(a,S!==null?S.cachePool:null),S!==null?d2(a,S):d0(),h2(a);else return a.lanes=a.childLanes=536870912,fS(n,a,S!==null?S.baseLanes|u:u,u)}else S!==null?(Lc(a,S.cachePool),d2(a,S),Fa(),a.memoizedState=null):(n!==null&&Lc(a,null),d0(),Fa());return En(n,a,f,u),a.child}function fS(n,a,u,o){var f=g0();return f=f===null?null:{parent:cn._currentValue,pool:f},a.memoizedState={baseLanes:u,cachePool:f},n!==null&&Lc(a,null),d0(),h2(a),n!==null&&Lo(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 B0(n,a,u,o,f){return Li(a),u=E0(n,a,u,o,void 0,f),o=y0(),n!==null&&!pn?(T0(n,a,f),ha(n,a,f)):(gt&&o&&o0(a),a.flags|=1,En(n,a,u,f),a.child)}function dS(n,a,u,o,f,h){return Li(a),a.updateQueue=null,u=E2(a,o,u,f),b2(n),o=y0(),n!==null&&!pn?(T0(n,a,h),ha(n,a,h)):(gt&&o&&o0(a),a.flags|=1,En(n,a,u,h),a.child)}function hS(n,a,u,o,f){if(Li(a),a.stateNode===null){var h=Ru,S=u.contextType;typeof S=="object"&&S!==null&&(h=Rn(S)),h=new u(o,h),a.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=w0,a.stateNode=h,h._reactInternals=a,h=a.stateNode,h.props=o,h.state=a.memoizedState,h.refs={},X0(a),S=u.contextType,h.context=typeof S=="object"&&S!==null?Rn(S):Ru,h.state=a.memoizedState,S=u.getDerivedStateFromProps,typeof S=="function"&&(L0(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&&w0.enqueueReplaceState(h,h.state,null),Bo(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=Di(u,v);h.props=B;var z=h.context,le=u.contextType;S=Ru,typeof le=="object"&&le!==null&&(S=Rn(le));var de=u.getDerivedStateFromProps;le=typeof de=="function"||typeof h.getSnapshotBeforeUpdate=="function",v=a.pendingProps!==v,le||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(v||z!==S)&&J2(a,h,o,S),Va=!1;var W=a.memoizedState;h.state=W,Bo(a,o,h,f),Mo(),z=a.memoizedState,v||W!==z||Va?(typeof de=="function"&&(L0(a,u,de,o),z=a.memoizedState),(B=Va||Z2(a,u,B,o,W,z,S))?(le||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=S,o=B):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{h=a.stateNode,Q0(n,a),S=a.memoizedProps,le=Di(u,S),h.props=le,de=a.pendingProps,W=h.context,z=u.contextType,B=Ru,typeof z=="object"&&z!==null&&(B=Rn(z)),v=u.getDerivedStateFromProps,(z=typeof v=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S!==de||W!==B)&&J2(a,h,o,B),Va=!1,W=a.memoizedState,h.state=W,Bo(a,o,h,f),Mo();var ie=a.memoizedState;S!==de||W!==ie||Va||n!==null&&n.dependencies!==null&&Vc(n.dependencies)?(typeof v=="function"&&(L0(a,u,v,o),ie=a.memoizedState),(le=Va||Z2(a,u,le,o,W,ie,B)||n!==null&&n.dependencies!==null&&Vc(n.dependencies))?(z||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(o,ie,B),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(o,ie,B)),typeof h.componentDidUpdate=="function"&&(a.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof h.componentDidUpdate!="function"||S===n.memoizedProps&&W===n.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||S===n.memoizedProps&&W===n.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=ie),h.props=o,h.state=ie,h.context=B,o=le):(typeof h.componentDidUpdate!="function"||S===n.memoizedProps&&W===n.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||S===n.memoizedProps&&W===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=vi(a,n.child,null,f),a.child=vi(a,null,u,f)):En(n,a,u,f),a.memoizedState=h.state,n=a.child):n=ha(n,a,f),n}function pS(n,a,u,o){return So(),a.flags|=256,En(n,a,u,o),a.child}var P0={dehydrated:null,treeContext:null,retryLane:0};function U0(n){return{baseLanes:n,cachePool:g2()}}function H0(n,a,u){return n=n!==null?n.childLanes&~u:0,a&&(n|=Or),n}function mS(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:(sn.current&2)!==0),S&&(f=!0,a.flags&=-129),S=(a.flags&32)!==0,a.flags&=-33,n===null){if(gt){if(f?Ha(a):Fa(),gt){var v=bn,B;if(B=v){e:{for(B=v,v=Kr;B.nodeType!==8;){if(!v){v=null;break e}if(B=wr(B.nextSibling),B===null){v=null;break e}}v=B}v!==null?(a.memoizedState={dehydrated:v,treeContext:Ci!==null?{id:sa,overflow:ca}:null,retryLane:536870912},B=Rr(18,null,null,0),B.stateNode=v,B.return=a,a.child=B,kn=a,bn=null,B=!0):B=!1}B||xi(a)}if(v=a.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return v.data==="$!"?a.lanes=16:a.lanes=536870912,null;fa(a)}return v=o.children,o=o.fallback,f?(Fa(),f=a.mode,v=z0({mode:"hidden",children:v},f),o=Mi(o,f,u,null),v.return=a,o.return=a,v.sibling=o,a.child=v,f=a.child,f.memoizedState=U0(u),f.childLanes=H0(n,S,u),a.memoizedState=P0,o):(Ha(a),F0(a,v))}if(B=n.memoizedState,B!==null&&(v=B.dehydrated,v!==null)){if(h)a.flags&256?(Ha(a),a.flags&=-257,a=Y0(n,a,u)):a.memoizedState!==null?(Fa(),a.child=n.child,a.flags|=128,a=null):(Fa(),f=o.fallback,v=a.mode,o=z0({mode:"visible",children:o.children},v),f=Mi(f,v,u,null),f.flags|=2,o.return=a,f.return=a,o.sibling=f,a.child=o,vi(a,n.child,null,u),o=a.child,o.memoizedState=U0(u),o.childLanes=H0(n,S,u),a.memoizedState=P0,a=f);else if(Ha(a),v.data==="$!"){if(S=v.nextSibling&&v.nextSibling.dataset,S)var z=S.dgst;S=z,o=Error(i(419)),o.stack="",o.digest=S,Ao({value:o,source:null,stack:null}),a=Y0(n,a,u)}else if(pn||Lo(n,a,u,!1),S=(u&n.childLanes)!==0,pn||S){if(S=wt,S!==null){if(o=u&-u,o&42)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&(S.suspendedLanes|u)?0:o,o!==0&&o!==B.retryLane)throw B.retryLane=o,Ua(n,o),Dn(S,n,o),uS}v.data==="$?"||gp(),a=Y0(n,a,u)}else v.data==="$?"?(a.flags|=128,a.child=n.child,a=HM.bind(null,n),v._reactRetry=a,a=null):(n=B.treeContext,bn=wr(v.nextSibling),kn=a,gt=!0,Ir=null,Kr=!1,n!==null&&(Ar[Cr++]=sa,Ar[Cr++]=ca,Ar[Cr++]=Ci,sa=n.id,ca=n.overflow,Ci=a),a=F0(a,o.children),a.flags|=4096);return a}return f?(Fa(),f=o.fallback,v=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=Mi(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=U0(u):(B=v.cachePool,B!==null?(z=cn._currentValue,B=B.parent!==z?{parent:z,pool:z}:B):B=g2(),v={baseLanes:v.baseLanes|u,cachePool:B}),f.memoizedState=v,f.childLanes=H0(n,S,u),a.memoizedState=P0,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&&(S=a.deletions,S===null?(a.deletions=[n],a.flags|=16):S.push(n)),a.child=u,a.memoizedState=null,u)}function F0(n,a){return a=z0({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function z0(n,a){return zS(n,a,0,null)}function Y0(n,a,u){return vi(a,n.child,null,u),n=F0(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function gS(n,a,u){n.lanes|=a;var o=n.alternate;o!==null&&(o.lanes|=a),q0(n.return,a,u)}function j0(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 bS(n,a,u){var o=a.pendingProps,f=o.revealOrder,h=o.tail;if(En(n,a,o.children,u),o=sn.current,o&2)o=o&1|2,a.flags|=128;else{if(n!==null&&n.flags&128)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&gS(n,u,a);else if(n.tag===19)gS(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(_e(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),j0(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}j0(a,!0,u,null,h);break;case"together":j0(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))if(n!==null){if(Lo(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 V0(n,a){return n.lanes&a?!0:(n=n.dependencies,!!(n!==null&&Vc(n)))}function xM(n,a,u){switch(a.tag){case 3:Be(a,a.stateNode.containerInfo),ja(a,cn,n.memoizedState.cache),So();break;case 27:case 5:Ye(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?mS(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||(Lo(n,a,u,!1),o=(u&a.childLanes)!==0),f){if(o)return bS(n,a,u);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),_e(sn,sn.current),o)break;return null;case 22:case 23:return a.lanes=0,cS(n,a,u);case 24:ja(a,cn,n.memoizedState.cache)}return ha(n,a,u)}function ES(n,a,u){if(n!==null)if(n.memoizedProps!==a.pendingProps)pn=!0;else{if(!V0(n,u)&&!(a.flags&128))return pn=!1,xM(n,a,u);pn=!!(n.flags&131072)}else pn=!1,gt&&a.flags&1048576&&n2(a,Rc,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")ap(o)?(n=Di(o,n),a.tag=1,a=hS(null,a,o,n,u)):(a.tag=0,a=B0(null,a,o,n,u));else{if(o!=null){if(f=o.$$typeof,f===O){a.tag=11,a=lS(null,a,o,n,u);break e}else if(f===R){a.tag=14,a=oS(null,a,o,n,u);break e}}throw a=ue(o)||o,Error(i(306,a,""))}}return a;case 0:return B0(n,a,a.type,a.pendingProps,u);case 1:return o=a.type,f=Di(o,a.pendingProps),hS(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,Q0(n,a),Bo(a,h,null,u);var S=a.memoizedState;if(h=S.cache,ja(a,cn,h),h!==f.cache&&G0(a,[cn],u,!0),Mo(),h=S.element,f.isDehydrated)if(f={element:h,isDehydrated:!1,cache:S.cache},a.updateQueue.baseState=f,a.memoizedState=f,a.flags&256){a=pS(n,a,h,u);break e}else if(h!==o){o=Sr(Error(i(424)),a),Ao(o),a=pS(n,a,h,u);break e}else for(bn=wr(a.stateNode.containerInfo.firstChild),kn=a,gt=!0,Ir=null,Kr=!0,u=f2(a,null,h,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(So(),h===o){a=ha(n,a,u);break e}En(n,a,h,u)}a=a.child}return a;case 26:return Io(n,a),n===null?(u=SA(a.type,null,a.pendingProps,null))?a.memoizedState=u:gt||(u=a.type,n=a.pendingProps,o=lf(Re.current).createElement(u),o[vn]=a,o[Yn]=n,yn(o,u,n),hn(o),a.stateNode=o):a.memoizedState=SA(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return Ye(a),n===null&>&&(o=a.stateNode=EA(a.type,a.pendingProps,Re.current),kn=a,Kr=!0,bn=wr(o.firstChild)),o=a.pendingProps.children,n!==null||gt?En(n,a,o,u):a.child=vi(a,null,o,u),Io(n,a),a.child;case 5:return n===null&>&&((f=o=bn)&&(o=t9(o,a.type,a.pendingProps,Kr),o!==null?(a.stateNode=o,kn=a,bn=wr(o.firstChild),Kr=!1,f=!0):f=!1),f||xi(a)),Ye(a),f=a.type,h=a.pendingProps,S=n!==null?n.memoizedProps:null,o=h.children,kp(f,h)?o=null:S!==null&&kp(f,S)&&(a.flags|=32),a.memoizedState!==null&&(f=E0(n,a,EM,null,null,u),Wo._currentValue=f),Io(n,a),En(n,a,o,u),a.child;case 6:return n===null&>&&((n=u=bn)&&(u=n9(u,a.pendingProps,Kr),u!==null?(a.stateNode=u,kn=a,bn=null,n=!0):n=!1),n||xi(a)),null;case 13:return mS(n,a,u);case 4:return Be(a,a.stateNode.containerInfo),o=a.pendingProps,n===null?a.child=vi(a,null,o,u):En(n,a,o,u),a.child;case 11:return lS(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,ja(a,a.type,o.value),En(n,a,o.children,u),a.child;case 9:return f=a.type._context,o=a.pendingProps.children,Li(a),f=Rn(f),o=o(f),a.flags|=1,En(n,a,o,u),a.child;case 14:return oS(n,a,a.type,a.pendingProps,u);case 15:return sS(n,a,a.type,a.pendingProps,u);case 19:return bS(n,a,u);case 22:return cS(n,a,u);case 24:return Li(a),o=Rn(cn),n===null?(f=g0(),f===null&&(f=wt,h=p0(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=u),f=h),a.memoizedState={parent:o,cache:f},X0(a),ja(a,cn,f)):(n.lanes&u&&(Q0(n,a),Bo(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),ja(a,cn,o)):(o=h.cache,ja(a,cn,o),o!==f.cache&&G0(a,[cn],u,!0))),En(n,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}var $0=Me(null),Ii=null,pa=null;function ja(n,a,u){_e($0,a._currentValue),a._currentValue=u}function ma(n){n._currentValue=$0.current,Ve($0)}function q0(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 G0(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),q0(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),q0(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 Lo(n,a,u,o){n=null;for(var f=a,h=!1;f!==null;){if(!h){if(f.flags&524288)h=!0;else if(f.flags&262144)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===Ae.current){if(S=f.alternate,S===null)throw Error(i(387));S.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(Wo):n=[Wo])}f=f.return}n!==null&&G0(a,n,u,o),a.flags|=262144}function Vc(n){for(n=n.firstContext;n!==null;){if(!Jn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Li(n){Ii=n,pa=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Rn(n){return yS(Ii,n)}function $c(n,a){return Ii===null&&Li(n),yS(n,a)}function yS(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 X0(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Q0(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){var f=o.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),o.pending=a,a=xc(n),e2(n,null,u),a}return _c(n,o,a,u),xc(n)}function wo(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,oT(n,u)}}function K0(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 W0=!1;function Mo(){if(W0){var n=Lu;if(n!==null)throw n}}function Bo(n,a,u,o){W0=!1;var f=n.updateQueue;Va=!1;var h=f.firstBaseUpdate,S=f.lastBaseUpdate,v=f.shared.pending;if(v!==null){f.shared.pending=null;var B=v,z=B.next;B.next=null,S===null?h=z:S.next=z,S=B;var le=n.alternate;le!==null&&(le=le.updateQueue,v=le.lastBaseUpdate,v!==S&&(v===null?le.firstBaseUpdate=z:v.next=z,le.lastBaseUpdate=B))}if(h!==null){var de=f.baseState;S=0,le=z=B=null,v=h;do{var W=v.lane&-536870913,ie=W!==v.lane;if(ie?(ht&W)===W:(o&W)===W){W!==0&&W===Iu&&(W0=!0),le!==null&&(le=le.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var Ie=n,$e=v;W=a;var Xt=u;switch($e.tag){case 1:if(Ie=$e.payload,typeof Ie=="function"){de=Ie.call(Xt,de,W);break e}de=Ie;break e;case 3:Ie.flags=Ie.flags&-65537|128;case 0:if(Ie=$e.payload,W=typeof Ie=="function"?Ie.call(Xt,de,W):Ie,W==null)break e;de=C({},de,W);break e;case 2:Va=!0}}W=v.callback,W!==null&&(n.flags|=64,ie&&(n.flags|=8192),ie=f.callbacks,ie===null?f.callbacks=[W]:ie.push(W))}else ie={lane:W,tag:v.tag,payload:v.payload,callback:v.callback,next:null},le===null?(z=le=ie,B=de):le=le.next=ie,S|=W;if(v=v.next,v===null){if(v=f.shared.pending,v===null)break;ie=v,v=ie.next,ie.next=null,f.lastBaseUpdate=ie,f.shared.pending=null}}while(!0);le===null&&(B=de),f.baseState=B,f.firstBaseUpdate=z,f.lastBaseUpdate=le,h===null&&(f.shared.lanes=0),Wa|=S,n.lanes=S,n.memoizedState=de}}function TS(n,a){if(typeof n!="function")throw Error(i(191,n));n.call(a)}function SS(n,a){var u=n.callbacks;if(u!==null)for(n.callbacks=null,n=0;n<u.length;n++)TS(u[n],a)}function Po(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){Nt(a,a.return,v)}}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 S=o.inst,v=S.destroy;if(v!==void 0){S.destroy=void 0,f=a;var B=u;try{v()}catch(z){Nt(f,B,z)}}}o=o.next}while(o!==h)}}catch(z){Nt(a,a.return,z)}}function AS(n){var a=n.updateQueue;if(a!==null){var u=n.stateNode;try{SS(a,u)}catch(o){Nt(n,n.return,o)}}}function CS(n,a,u){u.props=Di(n.type,n.memoizedProps),u.state=n.memoizedState;try{u.componentWillUnmount()}catch(o){Nt(n,a,o)}}function wi(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 er(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 _S(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 xS(n,a,u){try{var o=n.stateNode;KM(o,n.type,u,a),o[Yn]=a}catch(f){Nt(n,n.return,f)}}function vS(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27||n.tag===4}function Z0(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||vS(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 J0(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=uf));else if(o!==4&&o!==27&&(n=n.child,n!==null))for(J0(n,a,u),n=n.sibling;n!==null;)J0(n,a,u),n=n.sibling}function qc(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(qc(n,a,u),n=n.sibling;n!==null;)qc(n,a,u),n=n.sibling}var ga=!1,qt=!1,ep=!1,RS=typeof WeakSet=="function"?WeakSet:Set,mn=null,OS=!1;function vM(n,a){if(n=n.containerInfo,Op=hf,n=$T(n),n0(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,z=0,le=0,de=n,W=null;t:for(;;){for(var ie;de!==u||f!==0&&de.nodeType!==3||(v=S+f),de!==h||o!==0&&de.nodeType!==3||(B=S+o),de.nodeType===3&&(S+=de.nodeValue.length),(ie=de.firstChild)!==null;)W=de,de=ie;for(;;){if(de===n)break t;if(W===u&&++z===f&&(v=S),W===h&&++le===o&&(B=S),(ie=de.nextSibling)!==null)break;de=W,W=de.parentNode}de=ie}u=v===-1||B===-1?null:{start:v,end:B}}else u=null}u=u||{start:0,end:0}}else u=null;for(Np={focusedElem:n,selectionRange:u},hf=!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&&h!==null){n=void 0,u=a,f=h.memoizedProps,h=h.memoizedState,o=u.stateNode;try{var Ie=Di(u.type,f,u.elementType===u.type);n=o.getSnapshotBeforeUpdate(Ie,h),o.__reactInternalSnapshotBeforeUpdate=n}catch($e){Nt(u,u.return,$e)}}break;case 3:if(n&1024){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)throw Error(i(163))}if(n=a.sibling,n!==null){n.return=a.return,mn=n;break}mn=a.return}return Ie=OS,OS=!1,Ie}function NS(n,a,u){var o=u.flags;switch(u.tag){case 0:case 11:case 15:Ea(n,u),o&4&&Po(5,u);break;case 1:if(Ea(n,u),o&4)if(n=u.stateNode,a===null)try{n.componentDidMount()}catch(v){Nt(u,u.return,v)}else{var f=Di(u.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(f,a,n.__reactInternalSnapshotBeforeUpdate)}catch(v){Nt(u,u.return,v)}}o&64&&AS(u),o&512&&wi(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{SS(o,n)}catch(v){Nt(u,u.return,v)}}break;case 26:Ea(n,u),o&512&&wi(u,u.return);break;case 27:case 5:Ea(n,u),a===null&&o&4&&_S(u),o&512&&wi(u,u.return);break;case 12:Ea(n,u);break;case 13:Ea(n,u),o&4&&IS(n,u);break;case 22:if(f=u.memoizedState!==null||ga,!f){a=a!==null&&a.memoizedState!==null||qt;var h=ga,S=qt;ga=f,(qt=a)&&!S?Xa(n,u,(u.subtreeFlags&8772)!==0):Ea(n,u),ga=h,qt=S}o&512&&(u.memoizedProps.mode==="manual"?wi(u,u.return):er(u,u.return));break;default:Ea(n,u)}}function kS(n){var a=n.alternate;a!==null&&(n.alternate=null,kS(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&Fh(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,tr=!1;function ba(n,a,u){for(u=u.child;u!==null;)DS(n,a,u),u=u.sibling}function DS(n,a,u){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(an,u)}catch{}switch(u.tag){case 26:qt||er(u,a),ba(n,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:qt||er(u,a);var o=on,f=tr;for(on=u.stateNode,ba(n,a,u),u=u.stateNode,a=u.attributes;a.length;)u.removeAttributeNode(a[0]);Fh(u),on=o,tr=f;break;case 5:qt||er(u,a);case 6:f=on;var h=tr;if(on=null,ba(n,a,u),on=f,tr=h,on!==null)if(tr)try{n=on,o=u.stateNode,n.nodeType===8?n.parentNode.removeChild(o):n.removeChild(o)}catch(S){Nt(u,a,S)}else try{on.removeChild(u.stateNode)}catch(S){Nt(u,a,S)}break;case 18:on!==null&&(tr?(a=on,u=u.stateNode,a.nodeType===8?Ip(a.parentNode,u):a.nodeType===1&&Ip(a,u),ts(a)):Ip(on,u.stateNode));break;case 4:o=on,f=tr,on=u.stateNode.containerInfo,tr=!0,ba(n,a,u),on=o,tr=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||(er(u,a),o=u.stateNode,typeof o.componentWillUnmount=="function"&&CS(u,a,o)),ba(n,a,u);break;case 21:ba(n,a,u);break;case 22:qt||er(u,a),qt=(o=qt)||u.memoizedState!==null,ba(n,a,u),qt=o;break;default:ba(n,a,u)}}function IS(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{ts(n)}catch(u){Nt(a,a.return,u)}}function RM(n){switch(n.tag){case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new RS),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new RS),a;default:throw Error(i(435,n.tag))}}function tp(n,a){var u=RM(n);a.forEach(function(o){var f=FM.bind(null,n,o);u.has(o)||(u.add(o),o.then(f,f))})}function xr(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:case 5:on=v.stateNode,tr=!1;break e;case 3:on=v.stateNode.containerInfo,tr=!0;break e;case 4:on=v.stateNode.containerInfo,tr=!0;break e}v=v.return}if(on===null)throw Error(i(160));DS(h,S,f),on=null,tr=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)LS(a,n),a=a.sibling}var Lr=null;function LS(n,a){var u=n.alternate,o=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:xr(a,n),vr(n),o&4&&(Ga(3,n,n.return),Po(3,n),Ga(5,n,n.return));break;case 1:xr(a,n),vr(n),o&512&&(qt||u===null||er(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=Lr;if(xr(a,n),vr(n),o&512&&(qt||u===null||er(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[oo]||h[vn]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(o),f.head.insertBefore(h,f.querySelector("head > title"))),yn(h,o,u),h[vn]=n,hn(h),o=h;break e;case"link":var S=_A("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?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),yn(h,o,u),f.head.appendChild(h);break;case"meta":if(S=_A("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),yn(h,o,u),f.head.appendChild(h);break;default:throw Error(i(468,o))}h[vn]=n,hn(h),o=h}n.stateNode=o}else xA(f,n.type,n.stateNode);else n.stateNode=CA(f,o,n.memoizedProps);else h!==o?(h===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):h.count--,o===null?xA(f,n.type,n.stateNode):CA(f,o,n.memoizedProps)):o===null&&n.stateNode!==null&&xS(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,le=B.nodeName;B[oo]||le==="HEAD"||le==="BODY"||le==="SCRIPT"||le==="STYLE"||le==="LINK"&&B.rel.toLowerCase()==="stylesheet"||f.removeChild(B),B=z}for(var de=n.type,W=f.attributes;W.length;)f.removeAttributeNode(W[0]);yn(f,de,h),f[vn]=n,f[Yn]=h}catch(Ie){Nt(n,n.return,Ie)}}case 5:if(xr(a,n),vr(n),o&512&&(qt||u===null||er(u,u.return)),n.flags&32){f=n.stateNode;try{Tu(f,"")}catch(Ie){Nt(n,n.return,Ie)}}o&4&&n.stateNode!=null&&(f=n.memoizedProps,xS(n,f,u!==null?u.memoizedProps:f)),o&1024&&(ep=!0);break;case 6:if(xr(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(Ie){Nt(n,n.return,Ie)}}break;case 3:if(cf=null,f=Lr,Lr=of(a.containerInfo),xr(a,n),Lr=f,vr(n),o&4&&u!==null&&u.memoizedState.isDehydrated)try{ts(a.containerInfo)}catch(Ie){Nt(n,n.return,Ie)}ep&&(ep=!1,wS(n));break;case 4:o=Lr,Lr=of(n.stateNode.containerInfo),xr(a,n),vr(n),Lr=o;break;case 12:xr(a,n),vr(n);break;case 13:xr(a,n),vr(n),n.child.flags&8192&&n.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(cp=Ge()),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,tp(n,o)));break;case 22:if(o&512&&(qt||u===null||er(u,u.return)),B=n.memoizedState!==null,z=u!==null&&u.memoizedState!==null,le=ga,de=qt,ga=le||B,qt=de||z,xr(a,n),qt=de,ga=le,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||Pu(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{S=z.stateNode,v=z.memoizedProps.style;var ie=v!=null&&v.hasOwnProperty("display")?v.display:null;S.style.display=ie==null||typeof ie=="boolean"?"":(""+ie).trim()}}catch(Ie){Nt(z,z.return,Ie)}}}else if(a.tag===6){if(u===null){z=a;try{z.stateNode.nodeValue=B?"":z.memoizedProps}catch(Ie){Nt(z,z.return,Ie)}}}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,tp(n,u))));break;case 19:xr(a,n),vr(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,tp(n,o)));break;case 21:break;default:xr(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(vS(u)){var o=u;break e}u=u.return}throw Error(i(160))}switch(o.tag){case 27:var f=o.stateNode,h=Z0(n);qc(n,h,f);break;case 5:var S=o.stateNode;o.flags&32&&(Tu(S,""),o.flags&=-33);var v=Z0(n);qc(n,v,S);break;case 3:case 4:var B=o.stateNode.containerInfo,z=Z0(n);J0(n,z,B);break;default:throw Error(i(161))}}}catch(le){Nt(n,n.return,le)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function wS(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;wS(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;)NS(n,a.alternate,a),a=a.sibling}function Pu(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),Pu(a);break;case 1:er(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&CS(a,a.return,u),Pu(a);break;case 26:case 27:case 5:er(a,a.return),Pu(a);break;case 22:er(a,a.return),a.memoizedState===null&&Pu(a);break;default:Pu(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,S=h.flags;switch(h.tag){case 0:case 11:case 15:Xa(f,h,u),Po(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 v=o.stateNode;try{var B=f.shared.hiddenCallbacks;if(B!==null)for(f.shared.hiddenCallbacks=null,f=0;f<B.length;f++)TS(B[f],v)}catch(z){Nt(o,o.return,z)}}u&&S&64&&AS(h),wi(h,h.return);break;case 26:case 27:case 5:Xa(f,h,u),u&&o===null&&S&4&&_S(h),wi(h,h.return);break;case 12:Xa(f,h,u);break;case 13:Xa(f,h,u),u&&S&4&&IS(f,h);break;case 22:h.memoizedState===null&&Xa(f,h,u),wi(h,h.return);break;default:Xa(f,h,u)}a=a.sibling}}function np(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&&Ro(u))}function rp(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Ro(n))}function Qa(n,a,u,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)MS(n,a,u,o),a=a.sibling}function MS(n,a,u,o){var f=a.flags;switch(a.tag){case 0:case 11:case 15:Qa(n,a,u,o),f&2048&&Po(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&&Ro(n)));break;case 12:if(f&2048){Qa(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){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):Uo(n,a):h._visibility&4?Qa(n,a,u,o):(h._visibility|=4,Uu(n,a,u,o,(a.subtreeFlags&10256)!==0)),f&2048&&np(a.alternate,a);break;case 24:Qa(n,a,u,o),f&2048&&rp(a.alternate,a);break;default:Qa(n,a,u,o)}}function Uu(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,z=S.flags;switch(S.tag){case 0:case 11:case 15:Uu(h,S,v,B,f),Po(8,S);break;case 23:break;case 22:var le=S.stateNode;S.memoizedState!==null?le._visibility&4?Uu(h,S,v,B,f):Uo(h,S):(le._visibility|=4,Uu(h,S,v,B,f)),f&&z&2048&&np(S.alternate,S);break;case 24:Uu(h,S,v,B,f),f&&z&2048&&rp(S.alternate,S);break;default:Uu(h,S,v,B,f)}a=a.sibling}}function Uo(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:Uo(u,o),f&2048&&np(o.alternate,o);break;case 24:Uo(u,o),f&2048&&rp(o.alternate,o);break;default:Uo(u,o)}a=a.sibling}}var Ho=8192;function Hu(n){if(n.subtreeFlags&Ho)for(n=n.child;n!==null;)BS(n),n=n.sibling}function BS(n){switch(n.tag){case 26:Hu(n),n.flags&Ho&&n.memoizedState!==null&&m9(Lr,n.memoizedState,n.memoizedProps);break;case 5:Hu(n);break;case 3:case 4:var a=Lr;Lr=of(n.stateNode.containerInfo),Hu(n),Lr=a;break;case 22:n.memoizedState===null&&(a=n.alternate,a!==null&&a.memoizedState!==null?(a=Ho,Ho=16777216,Hu(n),Ho=a):Hu(n));break;default:Hu(n)}}function PS(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 Fo(n){var a=n.deletions;if(n.flags&16){if(a!==null)for(var u=0;u<a.length;u++){var o=a[u];mn=o,HS(o,n)}PS(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)US(n),n=n.sibling}function US(n){switch(n.tag){case 0:case 11:case 15:Fo(n),n.flags&2048&&Ga(9,n,n.return);break;case 3:Fo(n);break;case 12:Fo(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&4&&(n.return===null||n.return.tag!==13)?(a._visibility&=-5,Gc(n)):Fo(n);break;default:Fo(n)}}function Gc(n){var a=n.deletions;if(n.flags&16){if(a!==null)for(var u=0;u<a.length;u++){var o=a[u];mn=o,HS(o,n)}PS(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:Ga(8,a,a.return),Gc(a);break;case 22:u=a.stateNode,u._visibility&4&&(u._visibility&=-5,Gc(a));break;default:Gc(a)}n=n.sibling}}function HS(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:Ro(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(kS(o),o===u){mn=null;break e}if(f!==null){f.return=h,mn=f;break e}mn=h}}}function OM(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 OM(n,a,u,o)}function ap(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 FS(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 Xc(n,a,u,o,f,h){var S=0;if(o=n,typeof n=="function")ap(n)&&(S=1);else if(typeof n=="string")S=h9(n,u,qe.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case p:return Mi(u.children,f,h,a);case m:S=8,f|=24;break;case b:return n=Rr(12,u,a,f|2),n.elementType=b,n.lanes=h,n;case x:return n=Rr(13,u,a,f),n.elementType=x,n.lanes=h,n;case k:return n=Rr(19,u,a,f),n.elementType=k,n.lanes=h,n;case D:return zS(u,f,h,a);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case E:case y:S=10;break e;case T:S=9;break e;case O:S=11;break e;case R:S=14;break e;case H:S=16,o=null;break e}S=29,u=Error(i(130,n===null?"null":typeof n,"")),o=null}return a=Rr(S,u,a,f),a.elementType=n,a.type=o,a.lanes=h,a}function Mi(n,a,u,o){return n=Rr(7,n,o,a),n.lanes=u,n}function zS(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)){var S=Ua(h,2);S!==null&&(f._pendingVisibility|=2,Dn(S,h,2))}},attach:function(){var h=f._current;if(h===null)throw Error(i(456));if(f._pendingVisibility&2){var S=Ua(h,2);S!==null&&(f._pendingVisibility&=-3,Dn(S,h,2))}}};return n.stateNode=f,n}function ip(n,a,u){return n=Rr(6,n,null,a),n.lanes=u,n}function up(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 YS(n,a){if(a.type!=="stylesheet"||a.state.loading&4)n.flags&=-16777217;else if(n.flags|=16777216,!vA(a)){if(a=_r.current,a!==null&&((ht&4194176)===ht?Wr!==null:(ht&62914560)!==ht&&!(ht&536870912)||a!==Wr))throw _o=f0,i2;n.flags|=8192}}function Qc(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?uT():536870912,n.lanes|=a,zu|=a)}function zo(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 NM(n,a,u){var o=a.pendingProps;switch(s0(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)&&(To(a)?ya(a):n===null||n.memoizedState.isDehydrated&&!(a.flags&256)||(a.flags|=1024,Ir!==null&&(pp(Ir),Ir=null))),zt(a),null;case 26:return u=a.memoizedState,n===null?(ya(a),u!==null?(zt(a),YS(a,u)):(zt(a),a.flags&=-16777217)):u?u!==n.memoizedState?(ya(a),zt(a),YS(a,u)):(zt(a),a.flags&=-16777217):(n.memoizedProps!==o&&ya(a),zt(a),a.flags&=-16777217),null;case 27:Ue(a),u=Re.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=qe.current,To(a)?r2(a):(n=EA(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=qe.current,To(a))r2(a);else{switch(f=lf(Re.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[vn]=a,n[Yn]=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(yn(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=Re.current,To(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[vn]=a,n=!!(n.nodeValue===u||o!==null&&o.suppressHydrationWarning===!0||dA(n.nodeValue,u)),n||xi(a)}else n=lf(n).createTextNode(o),n[vn]=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=To(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[vn]=a}else So(),!(a.flags&128)&&(a.memoizedState=null),a.flags|=4;zt(a),f=!1}else Ir!==null&&(pp(Ir),Ir=null),f=!0;if(!f)return a.flags&256?(fa(a),a):(fa(a),null)}if(fa(a),a.flags&128)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),Qc(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(Ve(sn),f=a.memoizedState,f===null)return zt(a),null;if(o=(a.flags&128)!==0,h=f.rendering,h===null)if(o)zo(f,!1);else{if(Gt!==0||n!==null&&n.flags&128)for(n=a.child;n!==null;){if(h=Ic(n),h!==null){for(a.flags|=128,zo(f,!1),n=h.updateQueue,a.updateQueue=n,Qc(a,n),a.subtreeFlags=0,n=u,u=a.child;u!==null;)FS(u,n),u=u.sibling;return _e(sn,sn.current&1|2),a.child}n=n.sibling}f.tail!==null&&Ge()>Kc&&(a.flags|=128,o=!0,zo(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,Qc(a,n),zo(f,!0),f.tail===null&&f.tailMode==="hidden"&&!h.alternate&&!gt)return zt(a),null}else 2*Ge()-f.renderingStartTime>Kc&&u!==536870912&&(a.flags|=128,o=!0,zo(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=Ge(),a.sibling=null,n=sn.current,_e(sn,o?n&1|2:n&1),a):(zt(a),null);case 22:case 23:return fa(a),h0(),o=a.memoizedState!==null,n!==null?n.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?u&536870912&&!(a.flags&128)&&(zt(a),a.subtreeFlags&6&&(a.flags|=8192)):zt(a),u=a.updateQueue,u!==null&&Qc(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&&Ve(Ri),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 kM(n,a){switch(s0(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&&!(n&128)?(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));So()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return Ve(sn),null;case 4:return it(),null;case 10:return ma(a.type),null;case 22:case 23:return fa(a),h0(),n!==null&&Ve(Ri),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 jS(n,a){switch(s0(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:Ve(sn);break;case 10:ma(a.type);break;case 22:case 23:fa(a),h0(),n!==null&&Ve(Ri);break;case 24:ma(cn)}}var DM={getCacheForType:function(n){var a=Rn(cn),u=a.data.get(n);return u===void 0&&(u=n(),a.data.set(n,u)),u}},IM=typeof WeakMap=="function"?WeakMap:Map,Yt=0,wt=null,lt=null,ht=0,Mt=0,nr=null,Ta=!1,Fu=!1,lp=!1,Sa=0,Gt=0,Wa=0,Bi=0,op=0,Or=0,zu=0,Yo=null,Jr=null,sp=!1,cp=0,Kc=1/0,Wc=null,Za=null,Zc=!1,Pi=null,jo=0,fp=0,dp=null,Vo=0,hp=null;function rr(){if(Yt&2&&ht!==0)return ht&-ht;if($.T!==null){var n=Iu;return n!==0?n:Sp()}return cT()}function VS(){Or===0&&(Or=!(ht&536870912)||gt?iT():536870912);var n=_r.current;return n!==null&&(n.flags|=32),Or}function Dn(n,a,u){(n===wt&&Mt===2||n.cancelPendingCommit!==null)&&(Yu(n,0),Aa(n,ht,Or,!1)),lo(n,u),(!(Yt&2)||n!==wt)&&(n===wt&&(!(Yt&2)&&(Bi|=u),Gt===4&&Aa(n,ht,Or,!1)),ea(n))}function $S(n,a,u){if(Yt&6)throw Error(i(327));var o=!u&&(a&60)===0&&(a&n.expiredLanes)===0||uo(n,a),f=o?MM(n,a):bp(n,a,!0),h=o;do{if(f===0){Fu&&!o&&Aa(n,a,0,!1);break}else if(f===6)Aa(n,a,0,!Ta);else{if(u=n.current.alternate,h&&!LM(u)){f=bp(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=Yo;var B=v.current.memoizedState.isDehydrated;if(B&&(Yu(v,S).flags|=256),S=bp(v,S,!1),S!==2){if(lp&&!B){v.errorRecoveryDisabledLanes|=h,Bi|=h,f=4;break e}h=Jr,Jr=f,h!==null&&pp(h)}f=S}if(h=!1,f!==2)continue}}if(f===1){Yu(n,0),Aa(n,a,0,!0);break}e:{switch(o=n,f){case 0:case 1:throw Error(i(345));case 4:if((a&4194176)===a){Aa(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=cp+300-Ge(),10<h)){if(Aa(o,a,Or,!Ta),Ma(o,0)!==0)break e;o.timeoutHandle=mA(qS.bind(null,o,u,Jr,Wc,sp,a,Or,Bi,zu,Ta,2,-0,0),h);break e}qS(o,u,Jr,Wc,sp,a,Or,Bi,zu,Ta,0,-0,0)}}break}while(!0);ea(n)}function pp(n){Jr===null?Jr=n:Jr.push.apply(Jr,n)}function qS(n,a,u,o,f,h,S,v,B,z,le,de,W){var ie=a.subtreeFlags;if((ie&8192||(ie&16785408)===16785408)&&(Ko={stylesheets:null,count:0,unsuspend:p9},BS(a),a=g9(),a!==null)){n.cancelPendingCommit=a(JS.bind(null,n,u,o,f,S,v,B,1,de,W)),Aa(n,h,S,!z);return}JS(n,u,o,f,S,v,B,le,de,W)}function LM(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 Aa(n,a,u,o){a&=~op,a&=~Bi,n.suspendedLanes|=a,n.pingedLanes&=~a,o&&(n.warmLanes|=a),o=n.expirationTimes;for(var f=a;0<f;){var h=31-Fe(f),S=1<<h;o[h]=-1,f&=~S}u!==0&&lT(n,u,a)}function Jc(){return Yt&6?!0:($o(0),!1)}function mp(){if(lt!==null){if(Mt===0)var n=lt.return;else n=lt,pa=Ii=null,S0(n),ku=null,xo=0,n=lt;for(;n!==null;)jS(n.alternate,n),n=n.return;lt=null}}function Yu(n,a){n.finishedWork=null,n.finishedLanes=0;var u=n.timeoutHandle;u!==-1&&(n.timeoutHandle=-1,ZM(u)),u=n.cancelPendingCommit,u!==null&&(n.cancelPendingCommit=null,u()),mp(),wt=n,lt=u=Ka(n.current,null),ht=a,Mt=0,nr=null,Ta=!1,Fu=uo(n,a),lp=!1,zu=Or=op=Bi=Wa=Gt=0,Jr=Yo=null,sp=!1,a&8&&(a|=a&32);var o=n.entangledLanes;if(o!==0)for(n=n.entanglements,o&=a;0<o;){var f=31-Fe(o),h=1<<f;a|=n[f],o&=~h}return Sa=a,Cc(),u}function GS(n,a){rt=null,$.H=Zr,a===Co?(a=o2(),Mt=3):a===i2?(a=o2(),Mt=4):Mt=a===uS?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,nr=a,lt===null&&(Gt=1,jc(n,Sr(a,n.current)))}function XS(){var n=$.H;return $.H=Zr,n===null?Zr:n}function QS(){var n=$.A;return $.A=DM,n}function gp(){Gt=4,Ta||(ht&4194176)!==ht&&_r.current!==null||(Fu=!0),!(Wa&134217727)&&!(Bi&134217727)||wt===null||Aa(wt,ht,Or,!1)}function bp(n,a,u){var o=Yt;Yt|=2;var f=XS(),h=QS();(wt!==n||ht!==a)&&(Wc=null,Yu(n,a)),a=!1;var S=Gt;e:do try{if(Mt!==0&<!==null){var v=lt,B=nr;switch(Mt){case 8:mp(),S=6;break e;case 3:case 2:case 6:_r.current===null&&(a=!0);var z=Mt;if(Mt=0,nr=null,ju(n,v,B,z),u&&Fu){S=0;break e}break;default:z=Mt,Mt=0,nr=null,ju(n,v,B,z)}}wM(),S=Gt;break}catch(le){GS(n,le)}while(!0);return a&&n.shellSuspendCounter++,pa=Ii=null,Yt=o,$.H=f,$.A=h,lt===null&&(wt=null,ht=0,Cc()),S}function wM(){for(;lt!==null;)KS(lt)}function MM(n,a){var u=Yt;Yt|=2;var o=XS(),f=QS();wt!==n||ht!==a?(Wc=null,Kc=Ge()+500,Yu(n,a)):Fu=uo(n,a);e:do try{if(Mt!==0&<!==null){a=lt;var h=nr;t:switch(Mt){case 1:Mt=0,nr=null,ju(n,a,h,1);break;case 2:if(u2(h)){Mt=0,nr=null,WS(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:u2(h)?(Mt=0,nr=null,WS(a)):(Mt=0,nr=null,ju(n,a,h,7));break;case 5:var S=null;switch(lt.tag){case 26:S=lt.memoizedState;case 5:case 27:var v=lt;if(!S||vA(S)){Mt=0,nr=null;var B=v.sibling;if(B!==null)lt=B;else{var z=v.return;z!==null?(lt=z,ef(z)):lt=null}break t}}Mt=0,nr=null,ju(n,a,h,5);break;case 6:Mt=0,nr=null,ju(n,a,h,6);break;case 8:mp(),Gt=6;break e;default:throw Error(i(462))}}BM();break}catch(le){GS(n,le)}while(!0);return pa=Ii=null,$.H=o,$.A=f,Yt=u,lt!==null?0:(wt=null,ht=0,Cc(),Gt)}function BM(){for(;lt!==null&&!_n();)KS(lt)}function KS(n){var a=ES(n.alternate,n,Sa);n.memoizedProps=n.pendingProps,a===null?ef(n):lt=a}function WS(n){var a=n,u=a.alternate;switch(a.tag){case 15:case 0:a=dS(u,a,a.pendingProps,a.type,void 0,ht);break;case 11:a=dS(u,a,a.pendingProps,a.type.render,a.ref,ht);break;case 5:S0(a);default:jS(u,a),a=lt=FS(a,Sa),a=ES(u,a,Sa)}n.memoizedProps=n.pendingProps,a===null?ef(n):lt=a}function ju(n,a,u,o){pa=Ii=null,S0(a),ku=null,xo=0;var f=a.return;try{if(_M(n,f,a,u,ht)){Gt=1,jc(n,Sr(u,n.current)),lt=null;return}}catch(h){if(f!==null)throw lt=f,h;Gt=1,jc(n,Sr(u,n.current)),lt=null;return}a.flags&32768?(gt||o===1?n=!0:Fu||ht&536870912?n=!1:(Ta=n=!0,(o===2||o===3||o===6)&&(o=_r.current,o!==null&&o.tag===13&&(o.flags|=16384))),ZS(a,n)):ef(a)}function ef(n){var a=n;do{if(a.flags&32768){ZS(a,Ta);return}n=a.return;var u=NM(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 ZS(n,a){do{var u=kM(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 JS(n,a,u,o,f,h,S,v,B,z){var le=$.T,de=se.p;try{se.p=2,$.T=null,PM(n,a,u,o,de,f,h,S,v,B,z)}finally{$.T=le,se.p=de}}function PM(n,a,u,o,f,h,S,v){do Vu();while(Pi!==null);if(Yt&6)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|=u0,mw(n,o,z,h,S,v),n===wt&&(lt=wt=null,ht=0),!(B.subtreeFlags&10256)&&!(B.flags&10256)||Zc||(Zc=!0,fp=z,dp=u,zM(Ce,function(){return Vu(),null})),u=(B.flags&15990)!==0,B.subtreeFlags&15990||u?(u=$.T,$.T=null,h=se.p,se.p=2,S=Yt,Yt|=4,vM(n,B),LS(B,n),lM(Np,n.containerInfo),hf=!!Op,Np=Op=null,n.current=B,NS(n,B.alternate,B),we(),Yt=S,se.p=h,$.T=u):n.current=B,Zc?(Zc=!1,Pi=n,jo=o):eA(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 jo&3&&Vu(),z=n.pendingLanes,o&4194218&&z&42?n===hp?Vo++:(Vo=0,hp=n):Vo=0,$o(0),null}function eA(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Ro(a)))}function Vu(){if(Pi!==null){var n=Pi,a=fp;fp=0;var u=sT(jo),o=$.T,f=se.p;try{if(se.p=32>u?32:u,$.T=null,Pi===null)var h=!1;else{u=dp,dp=null;var S=Pi,v=jo;if(Pi=null,jo=0,Yt&6)throw Error(i(331));var B=Yt;if(Yt|=4,US(S.current),MS(S,S.current,v,u),Yt=B,$o(0,!1),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(an,S)}catch{}h=!0}return h}finally{se.p=f,$.T=o,eA(n,a)}}return!1}function tA(n,a,u){a=Sr(u,a),a=M0(n.stateNode,a,2),n=qa(n,a,2),n!==null&&(lo(n,2),ea(n))}function Nt(n,a,u){if(n.tag===3)tA(n,n,u);else for(;a!==null;){if(a.tag===3){tA(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=aS(2),o=qa(a,u,2),o!==null&&(iS(u,o,a,n),lo(o,2),ea(o));break}}a=a.return}}function Ep(n,a,u){var o=n.pingCache;if(o===null){o=n.pingCache=new IM;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)||(lp=!0,f.add(u),n=UM.bind(null,n,a,u),a.then(n,n))}function UM(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>Ge()-cp?!(Yt&2)&&Yu(n,0):op|=u,zu===ht&&(zu=0)),ea(n)}function nA(n,a){a===0&&(a=uT()),n=Ua(n,a),n!==null&&(lo(n,a),ea(n))}function HM(n){var a=n.memoizedState,u=0;a!==null&&(u=a.retryLane),nA(n,u)}function FM(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),nA(n,u)}function zM(n,a){return At(n,a)}var tf=null,$u=null,yp=!1,nf=!1,Tp=!1,Ui=0;function ea(n){n!==$u&&n.next===null&&($u===null?tf=$u=n:$u=$u.next=n),nf=!0,yp||(yp=!0,jM(YM))}function $o(n,a){if(!Tp&&nf){Tp=!0;do for(var u=!1,o=tf;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-Fe(42|n)+1)-1,h&=f&~(S&~v),h=h&201326677?h&201326677|1:h?h|2:0}h!==0&&(u=!0,iA(o,h))}else h=ht,h=Ma(o,o===wt?h:0),!(h&3)||uo(o,h)||(u=!0,iA(o,h));o=o.next}while(u);Tp=!1}}function YM(){nf=yp=!1;var n=0;Ui!==0&&(WM()&&(n=Ui),Ui=0);for(var a=Ge(),u=null,o=tf;o!==null;){var f=o.next,h=rA(o,a);h===0?(o.next=null,u===null?tf=f:u.next=f,f===null&&($u=u)):(u=o,(n!==0||h&3)&&(nf=!0)),o=f}$o(n)}function rA(n,a){for(var u=n.suspendedLanes,o=n.pingedLanes,f=n.expirationTimes,h=n.pendingLanes&-62914561;0<h;){var S=31-Fe(h),v=1<<S,B=f[S];B===-1?(!(v&u)||v&o)&&(f[S]=pw(v,a)):B<=a&&(n.expiredLanes|=v),h&=~v}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)||uo(n,u)){if(a=u&-u,a===n.callbackPriority)return a;switch(o!==null&&rn(o),sT(u)){case 2:case 8:u=fe;break;case 32:u=Ce;break;case 268435456:u=nt;break;default:u=Ce}return o=aA.bind(null,n),u=At(u,o),n.callbackPriority=a,n.callbackNode=u,a}return o!==null&&o!==null&&rn(o),n.callbackPriority=2,n.callbackNode=null,2}function aA(n,a){var u=n.callbackNode;if(Vu()&&n.callbackNode!==u)return null;var o=ht;return o=Ma(n,n===wt?o:0),o===0?null:($S(n,o,a),rA(n,Ge()),n.callbackNode!=null&&n.callbackNode===u?aA.bind(null,n):null)}function iA(n,a){if(Vu())return null;$S(n,a,!0)}function jM(n){JM(function(){Yt&6?At(te,n):n()})}function Sp(){return Ui===0&&(Ui=iT()),Ui}function uA(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:gc(""+n)}function lA(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 VM(n,a,u,o,f){if(a==="submit"&&u&&u.stateNode===f){var h=uA((f[Yn]||null).action),S=o.submitter;S&&(a=(a=S[Yn]||null)?uA(a.formAction):S.getAttribute("formAction"),a!==null&&(h=a,S=null));var v=new Tc("action","action",null,o,f);n.push({event:v,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Ui!==0){var B=S?lA(f,S):new FormData(f);k0(u,{pending:!0,data:B,method:f.method,action:h},null,B)}}else typeof h=="function"&&(v.preventDefault(),B=S?lA(f,S):new FormData(f),k0(u,{pending:!0,data:B,method:f.method,action:h},h,B))},currentTarget:f}]})}}for(var Ap=0;Ap<JT.length;Ap++){var Cp=JT[Ap],$M=Cp.toLowerCase(),qM=Cp[0].toUpperCase()+Cp.slice(1);Dr($M,"on"+qM)}Dr(XT,"onAnimationEnd"),Dr(QT,"onAnimationIteration"),Dr(KT,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(sM,"onTransitionRun"),Dr(cM,"onTransitionStart"),Dr(fM,"onTransitionCancel"),Dr(WT,"onTransitionEnd"),Eu("onMouseEnter",["mouseout","mouseover"]),Eu("onMouseLeave",["mouseout","mouseover"]),Eu("onPointerEnter",["pointerout","pointerover"]),Eu("onPointerLeave",["pointerout","pointerover"]),yi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),yi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),yi("onBeforeInput",["compositionend","keypress","textInput","paste"]),yi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),yi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),yi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qo="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(" "),GM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qo));function oA(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,z=v.currentTarget;if(v=v.listener,B!==h&&f.isPropagationStopped())break e;h=v,f.currentTarget=z;try{h(f)}catch(le){Yc(le)}f.currentTarget=null,h=B}else for(S=0;S<o.length;S++){if(v=o[S],B=v.instance,z=v.currentTarget,v=v.listener,B!==h&&f.isPropagationStopped())break e;h=v,f.currentTarget=z;try{h(f)}catch(le){Yc(le)}f.currentTarget=null,h=B}}}}function ft(n,a){var u=a[Hh];u===void 0&&(u=a[Hh]=new Set);var o=n+"__bubble";u.has(o)||(sA(a,n,2,!1),u.add(o))}function _p(n,a,u){var o=0;a&&(o|=4),sA(u,n,o,a)}var rf="_reactListening"+Math.random().toString(36).slice(2);function xp(n){if(!n[rf]){n[rf]=!0,dT.forEach(function(u){u!=="selectionchange"&&(GM.has(u)||_p(u,!1,n),_p(u,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[rf]||(a[rf]=!0,_p("selectionchange",!1,a))}}function sA(n,a,u,o){switch(IA(a)){case 2:var f=y9;break;case 8:f=T9;break;default:f=Up}u=f.bind(null,a,u,n),f=void 0,!Gh||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 vp(n,a,u,o,f){var h=o;if(!(a&1)&&!(a&2)&&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||v.nodeType===8&&v.parentNode===f)break;if(S===4)for(S=o.return;S!==null;){var B=S.tag;if((B===3||B===4)&&(B=S.stateNode.containerInfo,B===f||B.nodeType===8&&B.parentNode===f))return;S=S.return}for(;v!==null;){if(S=Ei(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}_T(function(){var z=h,le=$h(u),de=[];e:{var W=ZT.get(n);if(W!==void 0){var ie=Tc,Ie=n;switch(n){case"keypress":if(Ec(u)===0)break e;case"keydown":case"keyup":ie=Fw;break;case"focusin":Ie="focus",ie=Wh;break;case"focusout":Ie="blur",ie=Wh;break;case"beforeblur":case"afterblur":ie=Wh;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":ie=RT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=Ow;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=jw;break;case XT:case QT:case KT:ie=Dw;break;case WT:ie=$w;break;case"scroll":case"scrollend":ie=vw;break;case"wheel":ie=Gw;break;case"copy":case"cut":case"paste":ie=Lw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=NT;break;case"toggle":case"beforetoggle":ie=Qw}var $e=(a&4)!==0,Xt=!$e&&(n==="scroll"||n==="scrollend"),V=$e?W!==null?W+"Capture":null:W;$e=[];for(var F=z,G;F!==null;){var ce=F;if(G=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||G===null||V===null||(ce=co(F,V),ce!=null&&$e.push(Go(F,ce,G))),Xt)break;F=F.return}0<$e.length&&(W=new ie(W,Ie,null,u,le),de.push({event:W,listeners:$e}))}}if(!(a&7)){e:{if(W=n==="mouseover"||n==="pointerover",ie=n==="mouseout"||n==="pointerout",W&&u!==Vh&&(Ie=u.relatedTarget||u.fromElement)&&(Ei(Ie)||Ie[mu]))break e;if((ie||W)&&(W=le.window===le?le:(W=le.ownerDocument)?W.defaultView||W.parentWindow:window,ie?(Ie=u.relatedTarget||u.toElement,ie=z,Ie=Ie?Ei(Ie):null,Ie!==null&&(Xt=Q(Ie),$e=Ie.tag,Ie!==Xt||$e!==5&&$e!==27&&$e!==6)&&(Ie=null)):(ie=null,Ie=z),ie!==Ie)){if($e=RT,ce="onMouseLeave",V="onMouseEnter",F="mouse",(n==="pointerout"||n==="pointerover")&&($e=NT,ce="onPointerLeave",V="onPointerEnter",F="pointer"),Xt=ie==null?W:so(ie),G=Ie==null?W:so(Ie),W=new $e(ce,F+"leave",ie,u,le),W.target=Xt,W.relatedTarget=G,ce=null,Ei(le)===z&&($e=new $e(V,F+"enter",Ie,u,le),$e.target=G,$e.relatedTarget=Xt,ce=$e),Xt=ce,ie&&Ie)t:{for($e=ie,V=Ie,F=0,G=$e;G;G=qu(G))F++;for(G=0,ce=V;ce;ce=qu(ce))G++;for(;0<F-G;)$e=qu($e),F--;for(;0<G-F;)V=qu(V),G--;for(;F--;){if($e===V||V!==null&&$e===V.alternate)break t;$e=qu($e),V=qu(V)}$e=null}else $e=null;ie!==null&&cA(de,W,ie,$e,!1),Ie!==null&&Xt!==null&&cA(de,Xt,Ie,$e,!0)}}e:{if(W=z?so(z):window,ie=W.nodeName&&W.nodeName.toLowerCase(),ie==="select"||ie==="input"&&W.type==="file")var Ne=PT;else if(MT(W))if(UT)Ne=iM;else{Ne=rM;var ut=nM}else ie=W.nodeName,!ie||ie.toLowerCase()!=="input"||W.type!=="checkbox"&&W.type!=="radio"?z&&jh(z.elementType)&&(Ne=PT):Ne=aM;if(Ne&&(Ne=Ne(n,z))){BT(de,Ne,u,le);break e}ut&&ut(n,W,z),n==="focusout"&&z&&W.type==="number"&&z.memoizedProps.value!=null&&Yh(W,"number",W.value)}switch(ut=z?so(z):window,n){case"focusin":(MT(ut)||ut.contentEditable==="true")&&(_u=ut,r0=z,yo=null);break;case"focusout":yo=r0=_u=null;break;case"mousedown":a0=!0;break;case"contextmenu":case"mouseup":case"dragend":a0=!1,qT(de,u,le);break;case"selectionchange":if(oM)break;case"keydown":case"keyup":qT(de,u,le)}var Pe;if(Jh)e:{switch(n){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else Cu?LT(n,u)&&(ze="onCompositionEnd"):n==="keydown"&&u.keyCode===229&&(ze="onCompositionStart");ze&&(kT&&u.locale!=="ko"&&(Cu||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&Cu&&(Pe=xT()):(Pa=le,Xh="value"in Pa?Pa.value:Pa.textContent,Cu=!0)),ut=af(z,ze),0<ut.length&&(ze=new OT(ze,n,null,u,le),de.push({event:ze,listeners:ut}),Pe?ze.data=Pe:(Pe=wT(u),Pe!==null&&(ze.data=Pe)))),(Pe=Ww?Zw(n,u):Jw(n,u))&&(ze=af(z,"onBeforeInput"),0<ze.length&&(ut=new OT("onBeforeInput","beforeinput",null,u,le),de.push({event:ut,listeners:ze}),ut.data=Pe)),VM(de,n,z,u,le)}oA(de,a)})}function Go(n,a,u){return{instance:n,listener:a,currentTarget:u}}function af(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=co(n,u),f!=null&&o.unshift(Go(n,f,h)),f=co(n,a),f!=null&&o.push(Go(n,f,h))),n=n.return}return o}function qu(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function cA(n,a,u,o,f){for(var h=a._reactName,S=[];u!==null&&u!==o;){var v=u,B=v.alternate,z=v.stateNode;if(v=v.tag,B!==null&&B===o)break;v!==5&&v!==26&&v!==27||z===null||(B=z,f?(z=co(u,h),z!=null&&S.unshift(Go(u,z,B))):f||(z=co(u,h),z!=null&&S.push(Go(u,z,B)))),u=u.return}S.length!==0&&n.push({event:a,listeners:S})}var XM=/\r\n?/g,QM=/\u0000|\uFFFD/g;function fA(n){return(typeof n=="string"?n:""+n).replace(XM,`
|
|
41
|
-
`).replace(QM,"")}function dA(n,a){return a=fA(a),fA(n)===a}function uf(){}function _t(n,a,u,o,f,h){switch(u){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||Tu(n,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&Tu(n,""+o);break;case"className":hc(n,"class",o);break;case"tabIndex":hc(n,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":hc(n,u,o);break;case"style":AT(n,o,h);break;case"data":if(a!=="object"){hc(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=gc(""+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"&&_t(n,a,"name",f.name,f,null),_t(n,a,"formEncType",f.formEncType,f,null),_t(n,a,"formMethod",f.formMethod,f,null),_t(n,a,"formTarget",f.formTarget,f,null)):(_t(n,a,"encType",f.encType,f,null),_t(n,a,"method",f.method,f,null),_t(n,a,"target",f.target,f,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(u);break}o=gc(""+o),n.setAttribute(u,o);break;case"onClick":o!=null&&(n.onclick=uf);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=gc(""+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),dc(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":dc(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=_w.get(u)||u,dc(n,u,o))}}function Rp(n,a,u,o,f,h){switch(u){case"style":AT(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"?Tu(n,o):(typeof o=="number"||typeof o=="bigint")&&Tu(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=uf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hT.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[Yn]||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,""):dc(n,u,o)}}}function yn(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 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:_t(n,a,h,S,u,null)}}f&&_t(n,a,"srcSet",u.srcSet,u,null),o&&_t(n,a,"src",u.src,u,null);return;case"input":ft("invalid",n);var v=h=S=f=null,B=null,z=null;for(o in u)if(u.hasOwnProperty(o)){var le=u[o];if(le!=null)switch(o){case"name":f=le;break;case"type":S=le;break;case"checked":B=le;break;case"defaultChecked":z=le;break;case"value":h=le;break;case"defaultValue":v=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(i(137,a));break;default:_t(n,a,o,le,u,null)}}ET(n,h,v,B,z,S,f,!1),pc(n);return;case"select":ft("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:_t(n,a,f,v,u,null)}a=h,u=S,n.multiple=!!o,a!=null?yu(n,!!o,a,!1):u!=null&&yu(n,!!o,u,!0);return;case"textarea":ft("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:_t(n,a,S,v,u,null)}TT(n,o,f,h),pc(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:_t(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<qo.length;o++)ft(qo[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:_t(n,a,z,o,u,null)}return;default:if(jh(a)){for(le in u)u.hasOwnProperty(le)&&(o=u[le],o!==void 0&&Rp(n,a,le,o,u,void 0));return}}for(v in u)u.hasOwnProperty(v)&&(o=u[v],o!=null&&_t(n,a,v,o,u,null))}function KM(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,z=null,le=null;for(ie in u){var de=u[ie];if(u.hasOwnProperty(ie)&&de!=null)switch(ie){case"checked":break;case"value":break;case"defaultValue":B=de;default:o.hasOwnProperty(ie)||_t(n,a,ie,null,o,de)}}for(var W in o){var ie=o[W];if(de=u[W],o.hasOwnProperty(W)&&(ie!=null||de!=null))switch(W){case"type":h=ie;break;case"name":f=ie;break;case"checked":z=ie;break;case"defaultChecked":le=ie;break;case"value":S=ie;break;case"defaultValue":v=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(i(137,a));break;default:ie!==de&&_t(n,a,W,ie,o,de)}}zh(n,S,v,B,z,le,h,f);return;case"select":ie=S=v=W=null;for(h in u)if(B=u[h],u.hasOwnProperty(h)&&B!=null)switch(h){case"value":break;case"multiple":ie=B;default:o.hasOwnProperty(h)||_t(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":W=h;break;case"defaultValue":v=h;break;case"multiple":S=h;default:h!==B&&_t(n,a,f,h,o,B)}a=v,u=S,o=ie,W!=null?yu(n,!!u,W,!1):!!o!=!!u&&(a!=null?yu(n,!!u,a,!0):yu(n,!!u,u?[]:"",!1));return;case"textarea":ie=W=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:_t(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":W=f;break;case"defaultValue":ie=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(i(91));break;default:f!==h&&_t(n,a,S,f,o,h)}yT(n,W,ie);return;case"option":for(var Ie in u)if(W=u[Ie],u.hasOwnProperty(Ie)&&W!=null&&!o.hasOwnProperty(Ie))switch(Ie){case"selected":n.selected=!1;break;default:_t(n,a,Ie,null,o,W)}for(B in o)if(W=o[B],ie=u[B],o.hasOwnProperty(B)&&W!==ie&&(W!=null||ie!=null))switch(B){case"selected":n.selected=W&&typeof W!="function"&&typeof W!="symbol";break;default:_t(n,a,B,W,o,ie)}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 $e in u)W=u[$e],u.hasOwnProperty($e)&&W!=null&&!o.hasOwnProperty($e)&&_t(n,a,$e,null,o,W);for(z in o)if(W=o[z],ie=u[z],o.hasOwnProperty(z)&&W!==ie&&(W!=null||ie!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(i(137,a));break;default:_t(n,a,z,W,o,ie)}return;default:if(jh(a)){for(var Xt in u)W=u[Xt],u.hasOwnProperty(Xt)&&W!==void 0&&!o.hasOwnProperty(Xt)&&Rp(n,a,Xt,void 0,o,W);for(le in o)W=o[le],ie=u[le],!o.hasOwnProperty(le)||W===ie||W===void 0&&ie===void 0||Rp(n,a,le,W,o,ie);return}}for(var V in u)W=u[V],u.hasOwnProperty(V)&&W!=null&&!o.hasOwnProperty(V)&&_t(n,a,V,null,o,W);for(de in o)W=o[de],ie=u[de],!o.hasOwnProperty(de)||W===ie||W==null&&ie==null||_t(n,a,de,W,o,ie)}var Op=null,Np=null;function lf(n){return n.nodeType===9?n:n.ownerDocument}function hA(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 pA(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 kp(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 Dp=null;function WM(){var n=window.event;return n&&n.type==="popstate"?n===Dp?!1:(Dp=n,!0):(Dp=null,!1)}var mA=typeof setTimeout=="function"?setTimeout:void 0,ZM=typeof clearTimeout=="function"?clearTimeout:void 0,gA=typeof Promise=="function"?Promise:void 0,JM=typeof queueMicrotask=="function"?queueMicrotask:typeof gA<"u"?function(n){return gA.resolve(null).then(n).catch(e9)}:mA;function e9(n){setTimeout(function(){throw n})}function Ip(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),ts(a);return}o--}else u!=="$"&&u!=="$?"&&u!=="$!"||o++;u=f}while(u);ts(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),Fh(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}n.removeChild(u)}}function t9(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[oo])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 n9(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 bA(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 EA(n,a,u){switch(a=lf(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,yA=new Set;function of(n){return typeof n.getRootNode=="function"?n.getRootNode():n.ownerDocument}var Ca=se.d;se.d={f:r9,r:a9,D:i9,C:u9,L:l9,m:o9,X:c9,S:s9,M:f9};function r9(){var n=Ca.f(),a=Jc();return n||a}function a9(n){var a=gu(n);a!==null&&a.tag===5&&a.type==="form"?q2(a):Ca.r(n)}var Gu=typeof document>"u"?null:document;function TA(n,a,u){var o=Gu;if(o&&typeof a=="string"&&a){var f=yr(a);f='link[rel="'+n+'"][href="'+f+'"]',typeof u=="string"&&(f+='[crossorigin="'+u+'"]'),yA.has(f)||(yA.add(f),n={rel:n,crossOrigin:u,href:a},o.querySelector(f)===null&&(a=o.createElement("link"),yn(a,"link",n),hn(a),o.head.appendChild(a)))}}function i9(n){Ca.D(n),TA("dns-prefetch",n,null)}function u9(n,a){Ca.C(n,a),TA("preconnect",n,a)}function l9(n,a,u){Ca.L(n,a,u);var o=Gu;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=Xu(n);break;case"script":h=Qu(n)}Nr.has(h)||(n=C({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(Xo(h))||a==="script"&&o.querySelector(Qo(h))||(a=o.createElement("link"),yn(a,"link",n),hn(a),o.head.appendChild(a)))}}function o9(n,a){Ca.m(n,a);var u=Gu;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=Qu(n)}if(!Nr.has(h)&&(n=C({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(Qo(h)))return}o=u.createElement("link"),yn(o,"link",n),hn(o),u.head.appendChild(o)}}}function s9(n,a,u){Ca.S(n,a,u);var o=Gu;if(o&&n){var f=bu(o).hoistableStyles,h=Xu(n);a=a||"default";var S=f.get(h);if(!S){var v={loading:0,preload:null};if(S=o.querySelector(Xo(h)))v.loading=5;else{n=C({rel:"stylesheet",href:n,"data-precedence":a},u),(u=Nr.get(h))&&wp(n,u);var B=S=o.createElement("link");hn(B),yn(B,"link",n),B._p=new Promise(function(z,le){B.onload=z,B.onerror=le}),B.addEventListener("load",function(){v.loading|=1}),B.addEventListener("error",function(){v.loading|=2}),v.loading|=4,sf(S,a,o)}S={type:"stylesheet",instance:S,count:1,state:v},f.set(h,S)}}}function c9(n,a){Ca.X(n,a);var u=Gu;if(u&&n){var o=bu(u).hoistableScripts,f=Qu(n),h=o.get(f);h||(h=u.querySelector(Qo(f)),h||(n=C({src:n,async:!0},a),(a=Nr.get(f))&&Mp(n,a),h=u.createElement("script"),hn(h),yn(h,"link",n),u.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(f,h))}}function f9(n,a){Ca.M(n,a);var u=Gu;if(u&&n){var o=bu(u).hoistableScripts,f=Qu(n),h=o.get(f);h||(h=u.querySelector(Qo(f)),h||(n=C({src:n,async:!0,type:"module"},a),(a=Nr.get(f))&&Mp(n,a),h=u.createElement("script"),hn(h),yn(h,"link",n),u.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(f,h))}}function SA(n,a,u,o){var f=(f=Re.current)?of(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=Xu(u.href),u=bu(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=Xu(u.href);var h=bu(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(Xo(n)))&&!h._p&&(S.instance=h,S.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||d9(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=Qu(u),u=bu(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 Xu(n){return'href="'+yr(n)+'"'}function Xo(n){return'link[rel="stylesheet"]['+n+"]"}function AA(n){return C({},n,{"data-precedence":n.precedence,precedence:null})}function d9(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}),yn(a,"link",u),hn(a),n.head.appendChild(a))}function Qu(n){return'[src="'+yr(n)+'"]'}function Qo(n){return"script[async]"+n}function CA(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=C({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return o=(n.ownerDocument||n).createElement("style"),hn(o),yn(o,"style",f),sf(o,u.precedence,n),a.instance=o;case"stylesheet":f=Xu(u.href);var h=n.querySelector(Xo(f));if(h)return a.state.loading|=4,a.instance=h,hn(h),h;o=AA(u),(f=Nr.get(f))&&wp(o,f),h=(n.ownerDocument||n).createElement("link"),hn(h);var S=h;return S._p=new Promise(function(v,B){S.onload=v,S.onerror=B}),yn(h,"link",o),a.state.loading|=4,sf(h,u.precedence,n),a.instance=h;case"script":return h=Qu(u.src),(f=n.querySelector(Qo(h)))?(a.instance=f,hn(f),f):(o=u,(f=Nr.get(h))&&(o=C({},u),Mp(o,f)),n=n.ownerDocument||n,f=n.createElement("script"),hn(f),yn(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)&&(o=a.instance,a.state.loading|=4,sf(o,u.precedence,n));return a.instance}function sf(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 wp(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function Mp(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var cf=null;function _A(n,a,u){if(cf===null){var o=new Map,f=cf=new Map;f.set(u,o)}else f=cf,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[oo]||h[vn]||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 xA(n,a,u){n=n.ownerDocument||n,n.head.insertBefore(u,a==="title"?n.querySelector("head > title"):null)}function h9(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 vA(n){return!(n.type==="stylesheet"&&!(n.state.loading&3))}var Ko=null;function p9(){}function m9(n,a,u){if(Ko===null)throw Error(i(475));var o=Ko;if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&!(a.state.loading&4)){if(a.instance===null){var f=Xu(u.href),h=n.querySelector(Xo(f));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(o.count++,o=ff.bind(o),n.then(o,o)),a.state.loading|=4,a.instance=h,hn(h);return}h=n.ownerDocument||n,u=AA(u),(f=Nr.get(f))&&wp(u,f),h=h.createElement("link"),hn(h);var S=h;S._p=new Promise(function(v,B){S.onload=v,S.onerror=B}),yn(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)&&(o.count++,a=ff.bind(o),n.addEventListener("load",a),n.addEventListener("error",a))}}function g9(){if(Ko===null)throw Error(i(475));var n=Ko;return n.stylesheets&&n.count===0&&Bp(n,n.stylesheets),0<n.count?function(a){var u=setTimeout(function(){if(n.stylesheets&&Bp(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 ff(){if(this.count--,this.count===0){if(this.stylesheets)Bp(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var df=null;function Bp(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,df=new Map,a.forEach(b9,n),df=null,ff.call(n))}function b9(n,a){if(!(a.state.loading&4)){var u=df.get(n);if(u)var o=u.get(null);else{u=new Map,df.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=ff.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 Wo={$$typeof:y,Provider:null,Consumer:null,_currentValue:Oe,_currentValue2:Oe,_threadCount:0};function E9(n,a,u,o,f,h,S,v){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=Uh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uh(0),this.hiddenUpdates=Uh(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 RA(n,a,u,o,f,h,S,v,B,z,le,de){return n=new E9(n,a,u,S,v,B,z,de),a=1,h===!0&&(a|=24),h=Rr(3,null,null,a),n.current=h,h.stateNode=n,a=p0(),a.refCount++,n.pooledCache=a,a.refCount++,h.memoizedState={element:o,isDehydrated:u,cache:a},X0(h),n}function OA(n){return n?(n=Ru,n):Ru}function NA(n,a,u,o,f,h){f=OA(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),wo(u,n,a))}function kA(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var u=n.retryLane;n.retryLane=u!==0&&u<a?u:a}}function Pp(n,a){kA(n,a),(n=n.alternate)&&kA(n,a)}function DA(n){if(n.tag===13){var a=Ua(n,67108864);a!==null&&Dn(a,n,67108864),Pp(n,67108864)}}var hf=!0;function y9(n,a,u,o){var f=$.T;$.T=null;var h=se.p;try{se.p=2,Up(n,a,u,o)}finally{se.p=h,$.T=f}}function T9(n,a,u,o){var f=$.T;$.T=null;var h=se.p;try{se.p=8,Up(n,a,u,o)}finally{se.p=h,$.T=f}}function Up(n,a,u,o){if(hf){var f=Hp(o);if(f===null)vp(n,a,o,pf,u),LA(n,o);else if(A9(f,n,a,u,o))o.stopPropagation();else if(LA(n,o),a&4&&-1<S9.indexOf(n)){for(;f!==null;){var h=gu(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var S=Qr(h.pendingLanes);if(S!==0){var v=h;for(v.pendingLanes|=2,v.entangledLanes|=2;S;){var B=1<<31-Fe(S);v.entanglements[1]|=B,S&=~B}ea(h),!(Yt&6)&&(Kc=Ge()+500,$o(0))}}break;case 13:v=Ua(h,2),v!==null&&Dn(v,h,2),Jc(),Pp(h,2)}if(h=Hp(o),h===null&&vp(n,a,o,pf,u),h===f)break;f=h}f!==null&&o.stopPropagation()}else vp(n,a,o,null,u)}}function Hp(n){return n=$h(n),Fp(n)}var pf=null;function Fp(n){if(pf=null,n=Ei(n),n!==null){var a=Q(n);if(a===null)n=null;else{var u=a.tag;if(u===13){if(n=pe(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 pf=n,null}function IA(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 Ce:case He:return 32;case nt:return 268435456;default:return 32}default:return 32}}var zp=!1,Ja=null,ei=null,ti=null,Zo=new Map,Jo=new Map,ni=[],S9="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 LA(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":Zo.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jo.delete(a.pointerId)}}function es(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=gu(a),a!==null&&DA(a)),n):(n.eventSystemFlags|=o,a=n.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),n)}function A9(n,a,u,o,f){switch(a){case"focusin":return Ja=es(Ja,n,a,u,o,f),!0;case"dragenter":return ei=es(ei,n,a,u,o,f),!0;case"mouseover":return ti=es(ti,n,a,u,o,f),!0;case"pointerover":var h=f.pointerId;return Zo.set(h,es(Zo.get(h)||null,n,a,u,o,f)),!0;case"gotpointercapture":return h=f.pointerId,Jo.set(h,es(Jo.get(h)||null,n,a,u,o,f)),!0}return!1}function wA(n){var a=Ei(n.target);if(a!==null){var u=Q(a);if(u!==null){if(a=u.tag,a===13){if(a=pe(u),a!==null){n.blockedOn=a,gw(n.priority,function(){if(u.tag===13){var o=rr(),f=Ua(u,o);f!==null&&Dn(f,u,o),Pp(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 mf(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var u=Hp(n.nativeEvent);if(u===null){u=n.nativeEvent;var o=new u.constructor(u.type,u);Vh=o,u.target.dispatchEvent(o),Vh=null}else return a=gu(u),a!==null&&DA(a),n.blockedOn=u,!1;a.shift()}return!0}function MA(n,a,u){mf(n)&&u.delete(a)}function C9(){zp=!1,Ja!==null&&mf(Ja)&&(Ja=null),ei!==null&&mf(ei)&&(ei=null),ti!==null&&mf(ti)&&(ti=null),Zo.forEach(MA),Jo.forEach(MA)}function gf(n,a){n.blockedOn===a&&(n.blockedOn=null,zp||(zp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,C9)))}var bf=null;function BA(n){bf!==n&&(bf=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){bf===n&&(bf=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(Fp(o||u)===null)continue;break}var h=gu(u);h!==null&&(n.splice(a,3),a-=3,k0(h,{pending:!0,data:f,method:u.method,action:o},o,f))}}))}function ts(n){function a(B){return gf(B,n)}Ja!==null&&gf(Ja,n),ei!==null&&gf(ei,n),ti!==null&&gf(ti,n),Zo.forEach(a),Jo.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);)wA(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],S=f[Yn]||null;if(typeof h=="function")S||BA(u);else if(S){var v=null;if(h&&h.hasAttribute("formAction")){if(f=h,S=h[Yn]||null)v=S.formAction;else if(Fp(f)!==null)continue}else v=S.action;typeof v=="function"?u[o+1]=v:(u.splice(o,3),o-=3),BA(u)}}}function Yp(n){this._internalRoot=n}Ef.prototype.render=Yp.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(i(409));var u=a.current,o=rr();NA(u,o,n,a,null,null)},Ef.prototype.unmount=Yp.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;n.tag===0&&Vu(),NA(n.current,2,null,n,null,null),Jc(),a[mu]=null}};function Ef(n){this._internalRoot=n}Ef.prototype.unstable_scheduleHydration=function(n){if(n){var a=cT();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&&wA(n)}};var PA=t.version;if(PA!=="19.0.0")throw Error(i(527,PA,"19.0.0"));se.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=ee(a),n=n!==null?Te(n):null,n=n===null?null:n.stateNode,n};var _9={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:$,findFiberByHostInstance:Ei,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yf.isDisabled&&yf.supportsFiber)try{an=yf.inject(_9),Ft=yf}catch{}}return Ku.createRoot=function(n,a){if(!l(n))throw Error(i(299));var u=!1,o="",f=eS,h=tS,S=nS,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=RA(n,1,!1,null,null,u,o,f,h,S,v,null),n[mu]=a.current,xp(n.nodeType===8?n.parentNode:n),new Yp(a)},Ku.hydrateRoot=function(n,a,u){if(!l(n))throw Error(i(299));var o=!1,f="",h=eS,S=tS,v=nS,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&&(S=u.onCaughtError),u.onRecoverableError!==void 0&&(v=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(B=u.unstable_transitionCallbacks),u.formState!==void 0&&(z=u.formState)),a=RA(n,1,!0,a,u??null,o,f,h,S,v,B,z),a.context=OA(null),u=a.current,o=rr(),f=$a(o),f.callback=null,qa(u,f,o),a.current.lanes=o,lo(a,o),ea(a),n[mu]=a.current,xp(n),new Ef(a)},Ku.version="19.0.0",Ku}var Jp;function VA(){if(Jp)return Sf.exports;Jp=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Sf.exports=jA(),Sf.exports}var $A=VA();function as(){return as=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},as.apply(null,arguments)}function em(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var qA=/^((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)-.*))$/,GA=em(function(e){return qA.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function XA(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 QA(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 tm=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(QA(this));var l=this.tags[this.tags.length-1];if(this.isSpeedy){var s=XA(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-",_a="-moz-",De="-webkit-",nm="comm",is="rule",us="decl",KA="@import",xf="@keyframes",WA="@layer",ZA=Math.abs,Wu=String.fromCharCode,JA=Object.assign;function rm(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 am(e){return e.trim()}function im(e,t){return(e=t.exec(e))?e[0]:e}function Le(e,t,r){return e.replace(t,r)}function Zu(e,t){return e.indexOf(t)}function Bt(e,t){return e.charCodeAt(t)|0}function Ju(e,t,r){return e.slice(t,r)}function ur(e){return e.length}function vf(e){return e.length}function ls(e,t){return t.push(e),e}function um(e,t){return e.map(t).join("")}var os=1,Hi=1,lm=0,Sn=0,Zt=0,Fi="";function ss(e,t,r,i,l,s,c){return{value:e,root:t,parent:r,type:i,props:l,children:s,line:os,column:Hi,length:c,return:""}}function Mr(e,t){return JA(ss("",null,null,"",null,null,0),e,{length:-e.length},t)}function eC(){return Zt}function tC(){return Zt=Sn>0?Bt(Fi,--Sn):0,Hi--,Zt===10&&(Hi=1,os--),Zt}function On(){return Zt=Sn<lm?Bt(Fi,Sn++):0,Hi++,Zt===10&&(Hi=1,os++),Zt}function qn(){return Bt(Fi,Sn)}function cs(){return Sn}function zi(e,t){return Ju(Fi,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 Rf(e){return os=Hi=1,lm=ur(Fi=e),Sn=0,[]}function Of(e){return Fi="",e}function el(e){return am(zi(Sn-1,Nf(e===91?e+2:e===40?e+1:e)))}function nC(e){for(;(Zt=qn())&&Zt<33;)On();return ai(e)>2||ai(Zt)>3?"":" "}function rC(e,t){for(;--t&&On()&&!(Zt<48||Zt>102||Zt>57&&Zt<65||Zt>70&&Zt<97););return zi(e,cs()+(t<6&&qn()==32&&On()==32))}function Nf(e){for(;On();)switch(Zt){case e:return Sn;case 34:case 39:e!==34&&e!==39&&Nf(Zt);break;case 40:e===41&&Nf(e);break;case 92:On();break}return Sn}function aC(e,t){for(;On()&&e+Zt!==57;)if(e+Zt===84&&qn()===47)break;return"/*"+zi(t,Sn-1)+"*"+Wu(e===47?e:On())}function iC(e){for(;!ai(qn());)On();return zi(e,Sn)}function om(e){return Of(fs("",null,null,null,[""],e=Rf(e),0,[0],e))}function fs(e,t,r,i,l,s,c,d,p){for(var m=0,b=0,E=c,T=0,y=0,O=0,x=1,k=1,R=1,H=0,D="",P=l,I=s,M=i,Y=D;k;)switch(O=H,H=On()){case 40:if(O!=108&&Bt(Y,E-1)==58){Zu(Y+=Le(el(H),"&","&\f"),"&\f")!=-1&&(R=-1);break}case 34:case 39:case 91:Y+=el(H);break;case 9:case 10:case 13:case 32:Y+=nC(O);break;case 92:Y+=rC(cs()-1,7);continue;case 47:switch(qn()){case 42:case 47:ls(uC(aC(On(),cs()),t,r),p);break;default:Y+="/"}break;case 123*x:d[m++]=ur(Y)*R;case 125*x:case 59:case 0:switch(H){case 0:case 125:k=0;case 59+b:R==-1&&(Y=Le(Y,/\f/g,"")),y>0&&ur(Y)-E&&ls(y>32?cm(Y+";",i,r,E-1):cm(Le(Y," ","")+";",i,r,E-2),p);break;case 59:Y+=";";default:if(ls(M=sm(Y,t,r,m,b,l,d,D,P=[],I=[],E),s),H===123)if(b===0)fs(Y,t,M,M,P,s,E,d,I);else switch(T===99&&Bt(Y,3)===110?100:T){case 100:case 108:case 109:case 115:fs(e,M,M,i&&ls(sm(e,M,M,0,0,l,d,D,l,P=[],E),I),l,I,E,d,i?P:I);break;default:fs(Y,M,M,M,[""],I,0,d,I)}}m=b=y=0,x=R=1,D=Y="",E=c;break;case 58:E=1+ur(Y),y=O;default:if(x<1){if(H==123)--x;else if(H==125&&x++==0&&tC()==125)continue}switch(Y+=Wu(H),H*x){case 38:R=b>0?1:(Y+="\f",-1);break;case 44:d[m++]=(ur(Y)-1)*R,R=1;break;case 64:qn()===45&&(Y+=el(On())),T=qn(),b=E=ur(D=Y+=iC(cs())),H++;break;case 45:O===45&&ur(Y)==2&&(x=0)}}return s}function sm(e,t,r,i,l,s,c,d,p,m,b){for(var E=l-1,T=l===0?s:[""],y=vf(T),O=0,x=0,k=0;O<i;++O)for(var R=0,H=Ju(e,E+1,E=ZA(x=c[O])),D=e;R<y;++R)(D=am(x>0?T[R]+" "+H:Le(H,/&\f/g,T[R])))&&(p[k++]=D);return ss(e,t,r,l===0?is:d,p,m,b)}function uC(e,t,r){return ss(e,t,r,nm,Wu(eC()),Ju(e,2,-2),0)}function cm(e,t,r,i){return ss(e,t,r,us,Ju(e,0,i),Ju(e,i+1,-1),i)}function Br(e,t){for(var r="",i=vf(e),l=0;l<i;l++)r+=t(e[l],l,e,t)||"";return r}function fm(e,t,r,i){switch(e.type){case WA:if(e.children.length)break;case KA:case us:return e.return=e.return||e.value;case nm:return"";case xf:return e.return=e.value+"{"+Br(e.children,i)+"}";case is:e.value=e.props.join(",")}return ur(r=Br(e.children,i))?e.return=e.value+"{"+r+"}":""}function dm(e){var t=vf(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 hm(e){return function(t){t.root||(t=t.return)&&e(t)}}var lC=function(t,r,i){for(var l=0,s=0;l=s,s=qn(),l===38&&s===12&&(r[i]=1),!ai(s);)On();return zi(t,Sn)},oC=function(t,r){var i=-1,l=44;do switch(ai(l)){case 0:l===38&&qn()===12&&(r[i]=1),t[i]+=lC(Sn-1,r,i);break;case 2:t[i]+=el(l);break;case 4:if(l===44){t[++i]=qn()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Wu(l)}while(l=On());return t},sC=function(t,r){return Of(oC(Rf(t),r))},pm=new WeakMap,cC=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&&!pm.get(i))&&!l){pm.set(t,!0);for(var s=[],c=sC(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]}}},fC=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function mm(e,t){switch(rm(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+_a+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+Le(e,/(\w+).+(:[^]+)/,De+"box-$1$2"+pt+"flex-$1$2")+e;case 5443:return De+e+pt+"flex-item-"+Le(e,/flex-|-self/,"")+e;case 4675:return De+e+pt+"flex-line-pack"+Le(e,/align-content|flex-|-self/,"")+e;case 5548:return De+e+pt+Le(e,"shrink","negative")+e;case 5292:return De+e+pt+Le(e,"basis","preferred-size")+e;case 6060:return De+"box-"+Le(e,"-grow","")+De+e+pt+Le(e,"grow","positive")+e;case 4554:return De+Le(e,/([^-])(transform)/g,"$1"+De+"$2")+e;case 6187:return Le(Le(Le(e,/(zoom-|grab)/,De+"$1"),/(image-set)/,De+"$1"),e,"")+e;case 5495:case 3959:return Le(e,/(image-set\([^]*)/,De+"$1$`$1");case 4968:return Le(Le(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 Le(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(ur(e)-1-t>6)switch(Bt(e,t+1)){case 109:if(Bt(e,t+4)!==45)break;case 102:return Le(e,/(.+:)(.+)-([^]+)/,"$1"+De+"$2-$3$1"+_a+(Bt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zu(e,"stretch")?mm(Le(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bt(e,t+1)!==115)break;case 6444:switch(Bt(e,ur(e)-3-(~Zu(e,"!important")&&10))){case 107:return Le(e,":",":"+De)+e;case 101:return Le(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+Le(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return De+e+pt+Le(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return De+e+pt+Le(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return De+e+pt+e+e}return e}var dC=function(t,r,i,l){if(t.length>-1&&!t.return)switch(t.type){case us:t.return=mm(t.value,t.length);break;case xf:return Br([Mr(t,{value:Le(t.value,"@","@"+De)})],l);case is:if(t.length)return um(t.props,function(s){switch(im(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Br([Mr(t,{props:[Le(s,/:(read-\w+)/,":"+_a+"$1")]})],l);case"::placeholder":return Br([Mr(t,{props:[Le(s,/:(plac\w+)/,":"+De+"input-$1")]}),Mr(t,{props:[Le(s,/:(plac\w+)/,":"+_a+"$1")]}),Mr(t,{props:[Le(s,/:(plac\w+)/,pt+"input-$1")]})],l)}return""})}},hC=[dC],pC=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 k=x.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var l=t.stylisPlugins||hC,s={},c,d=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var k=x.getAttribute("data-emotion").split(" "),R=1;R<k.length;R++)s[k[R]]=!0;d.push(x)});var p,m=[cC,fC];{var b,E=[fm,hm(function(x){b.insert(x)})],T=dm(m.concat(l,E)),y=function(k){return Br(om(k),T)};p=function(k,R,H,D){b=H,y(k?k+"{"+R.styles+"}":R.styles),D&&(O.inserted[R.name]=!0)}}var O={key:r,sheet:new tm({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 O.sheet.hydrate(d),O},kf={exports:{}},yt={};/** @license React v16.13.1
|
|
40
|
+
`+u.stack}}function ne(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 be(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(ne(n)!==n)throw Error(i(188))}function J(n){var a=n.alternate;if(!a){if(a=ne(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,v=f.child;v;){if(v===u){T=!0,u=f,o=h;break}if(v===o){T=!0,o=f,u=h;break}v=v.sibling}if(!T){for(v=h.child;v;){if(v===u){T=!0,u=h,o=f;break}if(v===o){T=!0,o=h,u=f;break}v=v.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 oe(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=oe(n),a!==null)return a;n=n.sibling}return null}var D=Array.isArray,ce=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Oe={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),Re=Me(null),Ce=Me(null);function Be(n,a){switch(xe(Re,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(Re)}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),Wo._currentValue=Oe)}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,ee=e.unstable_ImmediatePriority,de=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 v=u&134217727;return v!==0?(u=v&~f,u!==0?o=Qr(u):(h&=v,h!==0?o=Qr(h):n||(T=v&~T,T!==0&&(o=Qr(T))))):(v=u&~f,v!==0?o=Qr(v):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 uo(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function OI(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 H0(n){for(var a=[],u=0;31>u;u++)a.push(n);return a}function lo(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function NI(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 v=n.entanglements,B=n.expirationTimes,z=n.hiddenUpdates;for(u=T&~u;0<u;){var le=31-ze(u),he=1<<le;v[le]=0,B[le]=-1;var W=z[le];if(W!==null)for(z[le]=null,le=0;le<W.length;le++){var ue=W[le];ue!==null&&(ue.lane&=-536870913)}u&=~he}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=ce.p;return n!==0?n:(n=window.event,n===void 0?32:M3(n.type))}function kI(n,a){var u=ce.p;try{return ce.p=n,a()}finally{ce.p=u}}var Ba=Math.random().toString(36).slice(2),Rn="__reactFiber$"+Ba,Yn="__reactProps$"+Ba,gu="__reactContainer$"+Ba,F0="__reactEvents$"+Ba,DI="__reactListeners$"+Ba,LI="__reactHandles$"+Ba,py="__reactResources$"+Ba,oo="__reactMarker$"+Ba;function z0(n){delete n[Rn],delete n[Yn],delete n[F0],delete n[DI],delete n[LI]}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 so(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[oo]=!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"),II=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 wI(n){return ct.call(Ey,n)?!0:ct.call(by,n)?!1:II.test(n)?Ey[n]=!0:(by[n]=!0,!1)}function dc(n,a,u){if(wI(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 hc(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 MI(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 pc(n){n._valueTracker||(n._valueTracker=MI(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 mc(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 BI=/[\n"\\]/g;function yr(n){return n.replace(BI,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Y0(n,a,u,o,f,h,T,v){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?j0(n,T,Er(a)):u!=null?j0(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"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?n.name=""+Er(v):n.removeAttribute("name")}function Sy(n,a,u,o,f,h,T,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?""+Er(u):"",a=a!=null?""+Er(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,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(n.name=T)}function j0(n,a,u){a==="number"&&mc(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(D(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 PI=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||PI.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 V0(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 UI=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"]]),HI=/^[\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 gc(n){return HI.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var $0=null;function q0(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[Yn]||null;e:switch(n=a.stateNode,a.type){case"input":if(Y0(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[Yn]||null;if(!f)throw Error(i(90));Y0(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 G0=!1;function Ry(n,a,u){if(G0)return n(a,u);G0=!0;try{var o=n(a);return o}finally{if(G0=!1,(Cu!==null||Au!==null)&&(Jc(),Cu&&(a=Cu,n=Au,Au=Cu=null,vy(a),n)))for(a=0;a<n.length;a++)vy(n[a])}}function co(n,a){var u=n.stateNode;if(u===null)return null;var o=u[Yn]||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 X0=!1;if(la)try{var fo={};Object.defineProperty(fo,"passive",{get:function(){X0=!0}}),window.addEventListener("test",fo,fo),window.removeEventListener("test",fo,fo)}catch{X0=!1}var Pa=null,Q0=null,bc=null;function Oy(){if(bc)return bc;var n,a=Q0,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 bc=f.slice(n,1<o?1-o:void 0)}function Ec(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 yc(){return!0}function Ny(){return!1}function jn(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 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)?yc:Ny,this.isPropagationStopped=Ny,this}return A(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=yc)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=yc)},persist:function(){},isPersistent:yc}),a}var Si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tc=jn(Si),ho=A({},Si,{view:0,detail:0}),FI=jn(ho),K0,W0,po,Sc=A({},ho,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:J0,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!==po&&(po&&n.type==="mousemove"?(K0=n.screenX-po.screenX,W0=n.screenY-po.screenY):W0=K0=0,po=n),K0)},movementY:function(n){return"movementY"in n?n.movementY:W0}}),ky=jn(Sc),zI=A({},Sc,{dataTransfer:0}),YI=jn(zI),jI=A({},ho,{relatedTarget:0}),Z0=jn(jI),VI=A({},Si,{animationName:0,elapsedTime:0,pseudoElement:0}),$I=jn(VI),qI=A({},Si,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),GI=jn(qI),XI=A({},Si,{data:0}),Dy=jn(XI),QI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},KI={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"},WI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ZI(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=WI[n])?!!a[n]:!1}function J0(){return ZI}var JI=A({},ho,{key:function(n){if(n.key){var a=QI[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=Ec(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?KI[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:J0,charCode:function(n){return n.type==="keypress"?Ec(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ec(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),ew=jn(JI),tw=A({},Sc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ly=jn(tw),nw=A({},ho,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:J0}),rw=jn(nw),aw=A({},Si,{propertyName:0,elapsedTime:0,pseudoElement:0}),iw=jn(aw),uw=A({},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}),lw=jn(uw),ow=A({},Si,{newState:0,oldState:0}),sw=jn(ow),cw=[9,13,27,32],eh=la&&"CompositionEvent"in window,mo=null;la&&"documentMode"in document&&(mo=document.documentMode);var fw=la&&"TextEvent"in window&&!mo,Iy=la&&(!eh||mo&&8<mo&&11>=mo),wy=" ",My=!1;function By(n,a){switch(n){case"keyup":return cw.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 dw(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 hw(n,a){if(xu)return n==="compositionend"||!eh&&By(n,a)?(n=Oy(),bc=Q0=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 pw={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"?!!pw[n.type]:a==="textarea"}function Hy(n,a,u,o){Cu?Au?Au.push(o):Au=[o]:Cu=o,a=af(a,"onChange"),0<a.length&&(u=new Tc("onChange","change",null,u,o),n.push({event:u,listeners:a}))}var go=null,bo=null;function mw(n){f3(n,0)}function Cc(n){var a=so(n);if(Ty(a))return n}function Fy(n,a){if(n==="change")return a}var zy=!1;if(la){var th;if(la){var nh="oninput"in document;if(!nh){var Yy=document.createElement("div");Yy.setAttribute("oninput","return;"),nh=typeof Yy.oninput=="function"}th=nh}else th=!1;zy=th&&(!document.documentMode||9<document.documentMode)}function jy(){go&&(go.detachEvent("onpropertychange",Vy),bo=go=null)}function Vy(n){if(n.propertyName==="value"&&Cc(bo)){var a=[];Hy(a,bo,n,q0(n)),Ry(mw,a)}}function gw(n,a,u){n==="focusin"?(jy(),go=a,bo=u,go.attachEvent("onpropertychange",Vy)):n==="focusout"&&jy()}function bw(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Cc(bo)}function Ew(n,a){if(n==="click")return Cc(a)}function yw(n,a){if(n==="input"||n==="change")return Cc(a)}function Tw(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Jn=typeof Object.is=="function"?Object.is:Tw;function Eo(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(!ct.call(a,f)||!Jn(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=mc(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=mc(n.document)}return a}function rh(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 Sw(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&&rh(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 Cw=la&&"documentMode"in document&&11>=document.documentMode,_u=null,ah=null,yo=null,ih=!1;function Qy(n,a,u){var o=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;ih||_u==null||_u!==mc(o)||(o=_u,"selectionStart"in o&&rh(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}),yo&&Eo(yo,o)||(yo=o,o=af(ah,"onSelect"),0<o.length&&(a=new Tc("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")},uh={},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(uh[n])return uh[n];if(!vu[n])return n;var a=vu[n],u;for(u in a)if(a.hasOwnProperty(u)&&u in Ky)return uh[n]=a[u];return n}var Wy=Ai("animationend"),Zy=Ai("animationiteration"),Jy=Ai("animationstart"),Aw=Ai("transitionrun"),xw=Ai("transitionstart"),_w=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,lh=0;function Ac(){for(var n=Ru,a=lh=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 xc(n,a,u,o){Tr[Ru++]=n,Tr[Ru++]=a,Tr[Ru++]=u,Tr[Ru++]=o,lh|=o,n.lanes|=o,n=n.alternate,n!==null&&(n.lanes|=o)}function oh(n,a,u,o){return xc(n,a,u,o),_c(n)}function Ua(n,a){return xc(n,null,null,a),_c(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 _c(n){if(50<Vo)throw Vo=0,pp=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,vc=null,Rc=0,Cr=[],Ar=0,xi=null,sa=1,ca="";function _i(n,a){Nu[ku++]=Rc,Nu[ku++]=vc,vc=n,Rc=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 sh(n){n.return!==null&&(_i(n,1),iT(n,1,0))}function ch(n){for(;n===vc;)vc=Nu[--ku],Nu[ku]=null,Rc=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,fh=Error(i(519));function vi(n){var a=Error(i(418,""));throw Co(Sr(a,n)),fh}function uT(n){var a=n.stateNode,u=n.type,o=n.memoizedProps;switch(a[Rn]=n,a[Yn]=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<qo.length;u++)ft(qo[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),pc(a);break;case"select":ft("invalid",a);break;case"textarea":ft("invalid",a),Ay(a,o.value,o.defaultValue,o.children),pc(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=uf),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 To(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")||Dp(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 So(){En=kn=null,gt=!1}function Co(n){Lr===null?Lr=[n]:Lr.push(n)}var Ao=Error(i(460)),oT=Error(i(474)),dh={then:function(){}};function sT(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Oc(){}function cT(n,a,u){switch(u=n[u],u===void 0?n.push(a):u!==a&&(a.then(Oc,Oc),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,n===Ao?Error(i(483)):n;default:if(typeof a.status=="string")a.then(Oc,Oc);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===Ao?Error(i(483)):n}throw xo=a,Ao}}var xo=null;function fT(){if(xo===null)throw Error(i(459));var n=xo;return xo=null,n}var Du=null,_o=0;function Nc(n){var a=_o;return _o+=1,Du===null&&(Du=[]),cT(Du,n,a)}function vo(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function kc(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 G=$.deletions;G===null?($.deletions=[F],$.flags|=16):G.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,G){return $.index=G,n?(G=$.alternate,G!==null?(G=G.index,G<F?($.flags|=33554434,F):G):($.flags|=33554434,F)):($.flags|=1048576,F)}function T($){return n&&$.alternate===null&&($.flags|=33554434),$}function v($,F,G,fe){return F===null||F.tag!==6?(F=up(G,$.mode,fe),F.return=$,F):(F=f(F,G),F.return=$,F)}function B($,F,G,fe){var Ne=G.type;return Ne===p?le($,F,G.props.children,fe,G.key):F!==null&&(F.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===H&&dT(Ne)===F.type)?(F=f(F,G.props),vo(F,G),F.return=$,F):(F=Xc(G.type,G.key,G.props,null,$.mode,fe),vo(F,G),F.return=$,F)}function z($,F,G,fe){return F===null||F.tag!==4||F.stateNode.containerInfo!==G.containerInfo||F.stateNode.implementation!==G.implementation?(F=lp(G,$.mode,fe),F.return=$,F):(F=f(F,G.children||[]),F.return=$,F)}function le($,F,G,fe,Ne){return F===null||F.tag!==7?(F=Bi(G,$.mode,fe,Ne),F.return=$,F):(F=f(F,G),F.return=$,F)}function he($,F,G){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return F=up(""+F,$.mode,G),F.return=$,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case c:return G=Xc(F.type,F.key,F.props,null,$.mode,G),vo(G,F),G.return=$,G;case d:return F=lp(F,$.mode,G),F.return=$,F;case H:var fe=F._init;return F=fe(F._payload),he($,F,G)}if(D(F)||M(F))return F=Bi(F,$.mode,G,null),F.return=$,F;if(typeof F.then=="function")return he($,Nc(F),G);if(F.$$typeof===y)return he($,$c($,F),G);kc($,F)}return null}function W($,F,G,fe){var Ne=F!==null?F.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return Ne!==null?null:v($,F,""+G,fe);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case c:return G.key===Ne?B($,F,G,fe):null;case d:return G.key===Ne?z($,F,G,fe):null;case H:return Ne=G._init,G=Ne(G._payload),W($,F,G,fe)}if(D(G)||M(G))return Ne!==null?null:le($,F,G,fe,null);if(typeof G.then=="function")return W($,F,Nc(G),fe);if(G.$$typeof===y)return W($,F,$c($,G),fe);kc($,G)}return null}function ue($,F,G,fe,Ne){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return $=$.get(G)||null,v(F,$,""+fe,Ne);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case c:return $=$.get(fe.key===null?G:fe.key)||null,B(F,$,fe,Ne);case d:return $=$.get(fe.key===null?G:fe.key)||null,z(F,$,fe,Ne);case H:var ut=fe._init;return fe=ut(fe._payload),ue($,F,G,fe,Ne)}if(D(fe)||M(fe))return $=$.get(G)||null,le(F,$,fe,Ne,null);if(typeof fe.then=="function")return ue($,F,G,Nc(fe),Ne);if(fe.$$typeof===y)return ue($,F,G,$c(F,fe),Ne);kc(F,fe)}return null}function Le($,F,G,fe){for(var Ne=null,ut=null,Pe=F,Ye=F=0,gn=null;Pe!==null&&Ye<G.length;Ye++){Pe.index>Ye?(gn=Pe,Pe=null):gn=Pe.sibling;var bt=W($,Pe,G[Ye],fe);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===G.length)return u($,Pe),gt&&_i($,Ye),Ne;if(Pe===null){for(;Ye<G.length;Ye++)Pe=he($,G[Ye],fe),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<G.length;Ye++)gn=ue(Pe,$,Ye,G[Ye],fe),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,G,fe){if(G==null)throw Error(i(151));for(var Ne=null,ut=null,Pe=F,Ye=F=0,gn=null,bt=G.next();Pe!==null&&!bt.done;Ye++,bt=G.next()){Pe.index>Ye?(gn=Pe,Pe=null):gn=Pe.sibling;var ri=W($,Pe,bt.value,fe);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=G.next())bt=he($,bt.value,fe),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=G.next())bt=ue(Pe,$,Ye,bt.value,fe),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(HM){return a($,HM)}),gt&&_i($,Ye),Ne}function Xt($,F,G,fe){if(typeof G=="object"&&G!==null&&G.type===p&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case c:e:{for(var Ne=G.key;F!==null;){if(F.key===Ne){if(Ne=G.type,Ne===p){if(F.tag===7){u($,F.sibling),fe=f(F,G.props.children),fe.return=$,$=fe;break e}}else if(F.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===H&&dT(Ne)===F.type){u($,F.sibling),fe=f(F,G.props),vo(fe,G),fe.return=$,$=fe;break e}u($,F);break}else a($,F);F=F.sibling}G.type===p?(fe=Bi(G.props.children,$.mode,fe,G.key),fe.return=$,$=fe):(fe=Xc(G.type,G.key,G.props,null,$.mode,fe),vo(fe,G),fe.return=$,$=fe)}return T($);case d:e:{for(Ne=G.key;F!==null;){if(F.key===Ne)if(F.tag===4&&F.stateNode.containerInfo===G.containerInfo&&F.stateNode.implementation===G.implementation){u($,F.sibling),fe=f(F,G.children||[]),fe.return=$,$=fe;break e}else{u($,F);break}else a($,F);F=F.sibling}fe=lp(G,$.mode,fe),fe.return=$,$=fe}return T($);case H:return Ne=G._init,G=Ne(G._payload),Xt($,F,G,fe)}if(D(G))return Le($,F,G,fe);if(M(G)){if(Ne=M(G),typeof Ne!="function")throw Error(i(150));return G=Ne.call(G),qe($,F,G,fe)}if(typeof G.then=="function")return Xt($,F,Nc(G),fe);if(G.$$typeof===y)return Xt($,F,$c($,G),fe);kc($,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,F!==null&&F.tag===6?(u($,F.sibling),fe=f(F,G),fe.return=$,$=fe):(u($,F),fe=up(G,$.mode,fe),fe.return=$,$=fe),T($)):u($,F)}return function($,F,G,fe){try{_o=0;var Ne=Xt($,F,G,fe);return Du=null,Ne}catch(Pe){if(Pe===Ao)throw Pe;var ut=Rr(29,Pe,null,$.mode);return ut.lanes=fe,ut.return=$,ut}finally{}}}var Ri=hT(!0),pT=hT(!1),Lu=Me(null),Dc=Me(0);function mT(n,a){n=Sa,xe(Dc,n),xe(Lu,a),Sa=n|a.baseLanes}function hh(){xe(Dc,Sa),xe(Lu,Lu.current)}function ph(){Sa=Dc.current,$e(Lu),$e(Dc)}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 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==="$?"||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 vw=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()})}},Rw=e.unstable_scheduleCallback,Ow=e.unstable_NormalPriority,cn={$$typeof:y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mh(){return{controller:new vw,data:new Map,refCount:0}}function Ro(n){n.refCount--,n.refCount===0&&Rw(Ow,function(){n.controller.abort()})}var Oo=null,gh=0,Iu=0,wu=null;function Nw(n,a){if(Oo===null){var u=Oo=[];gh=0,Iu=Cp(),wu={status:"pending",value:void 0,then:function(o){u.push(o)}}}return gh++,a.then(bT,bT),a}function bT(){if(--gh===0&&Oo!==null){wu!==null&&(wu.status="fulfilled");var n=Oo;Oo=null,Iu=0,wu=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function kw(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=j.S;j.S=function(n,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&Nw(n,a),ET!==null&&ET(n,a)};var Oi=Me(null);function bh(){var n=Oi.current;return n!==null?n:wt.pooledCache}function Ic(n,a){a===null?xe(Oi,Oi.current):xe(Oi,a.pool)}function yT(){var n=bh();return n===null?null:{parent:cn._currentValue,pool:n}}var za=0,rt=null,Ct=null,un=null,wc=!1,Mu=!1,Ni=!1,Mc=0,No=0,Bu=null,Dw=0;function Wt(){throw Error(i(321))}function Eh(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 yh(n,a,u,o,f,h){return za=h,rt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,j.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){j.H=Zr;var a=Ct!==null&&Ct.next!==null;if(za=0,un=Ct=rt=null,wc=!1,No=0,Bu=null,a)throw Error(i(300));n===null||pn||(n=n.dependencies,n!==null&&Vc(n)&&(pn=!0))}function ST(n,a,u,o){rt=n;var f=0;do{if(Mu&&(Bu=null),No=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)}j.H=Di,h=a(u,o)}while(Mu);return h}function Lw(){var n=j.H,a=n.useState()[0];return a=typeof a.then=="function"?ko(a):a,n=n.useState()[0],(Ct!==null?Ct.memoizedState:null)!==n&&(rt.flags|=1024),a}function Th(){var n=Mc!==0;return Mc=0,n}function Sh(n,a,u){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~u}function Ch(n){if(wc){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}wc=!1}za=0,un=Ct=rt=null,Mu=!1,No=Mc=0,Bu=null}function Vn(){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 Bc;Bc=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function ko(n){var a=No;return No+=1,Bu===null&&(Bu=[]),n=cT(Bu,n,a),a=rt,(un===null?a.memoizedState:un.next)===null&&(a=a.alternate,j.H=a===null||a.memoizedState===null?ki:Ya),n}function Pc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return ko(n);if(n.$$typeof===y)return On(n)}throw Error(i(438,String(n)))}function Ah(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=Bc(),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 Uc(n){var a=ln();return xh(a,Ct,n)}function xh(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 v=T=null,B=null,z=a,le=!1;do{var he=z.lane&-536870913;if(he!==z.lane?(ht&he)===he:(za&he)===he){var W=z.revertLane;if(W===0)B!==null&&(B=B.next={lane:0,revertLane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),he===Iu&&(le=!0);else if((za&W)===W){z=z.next,W===Iu&&(le=!0);continue}else he={lane:0,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},B===null?(v=B=he,T=h):B=B.next=he,rt.lanes|=W,Wa|=W;he=z.action,Ni&&u(h,he),h=z.hasEagerState?z.eagerState:u(h,he)}else W={lane:he,revertLane:z.revertLane,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},B===null?(v=B=W,T=h):B=B.next=W,rt.lanes|=he,Wa|=he;z=z.next}while(z!==null&&z!==a);if(B===null?T=h:B.next=v,!Jn(h,n.memoizedState)&&(pn=!0,le&&(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 _h(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);Jn(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=!Jn((Ct||f).memoizedState,u);if(T&&(f.memoizedState=u,pn=!0),f=f.queue,Oh(_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=Bc(),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!Jn(n,u)}catch{return!0}}function RT(n){var a=Ua(n,2);a!==null&&Dn(a,n,2)}function vh(n){var a=Vn();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,xh(n,Ct,typeof o=="function"?o:da)}function Iw(n,a,u,o,f){if(zc(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)}};j.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=j.T,T={};j.T=T;try{var v=u(f,o),B=j.S;B!==null&&B(T,v),kT(n,a,v)}catch(z){Rh(n,a,z)}finally{j.T=h}}else try{h=u(f,o),kT(n,a,h)}catch(z){Rh(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 Rh(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 Rh(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=Vn(),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=vh(!1),h=Ih.bind(null,rt,!1,o.queue),o=Vn(),f={state:a,dispatch:null,action:n,pending:null},o.queue=f,u=Iw.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=xh(n,a,IT)[0],n=Uc(da)[0],a=typeof a=="object"&&a!==null&&typeof a.then=="function"?ko(a):a;var o=ln(),f=o.queue,h=f.dispatch;return u!==o.memoizedState&&(rt.flags|=2048,Pu(9,ww.bind(null,f,u),{destroy:void 0},null)),[a,h,n]}function ww(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=Bc(),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 Hc(n,a,u,o){var f=Vn();rt.flags|=n,f.memoizedState=Pu(1|a,u,{destroy:void 0},o===void 0?null:o)}function Fc(n,a,u,o){var f=ln();o=o===void 0?null:o;var h=f.memoizedState.inst;Ct!==null&&o!==null&&Eh(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){Hc(8390656,8,n,a)}function Oh(n,a){Fc(2048,8,n,a)}function FT(n,a){return Fc(4,2,n,a)}function zT(n,a){return Fc(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,Fc(4,4,YT.bind(null,a,n),u)}function Nh(){}function VT(n,a){var u=ln();a=a===void 0?null:a;var o=u.memoizedState;return a!==null&&Eh(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&&Eh(a,o[1]))return o[0];if(o=n(),Ni){_e(!0);try{n()}finally{_e(!1)}}return u.memoizedState=[o,a],o}function kh(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 Jn(u,a)?u:Lu.current!==null?(n=kh(n,u,o),Jn(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=ce.p;ce.p=h!==0&&8>h?h:8;var T=j.T,v={};j.T=v,Ih(n,!1,a,u);try{var B=f(),z=j.S;if(z!==null&&z(v,B),B!==null&&typeof B=="object"&&typeof B.then=="function"){var le=kw(B,o);Do(n,a,le,rr(n))}else Do(n,a,o,rr(n))}catch(he){Do(n,a,{then:function(){},status:"rejected",reason:he},rr())}finally{ce.p=h,j.T=T}}function Mw(){}function Dh(n,a,u,o){if(n.tag!==5)throw Error(i(476));var f=XT(n).queue;GT(n,f,a,Oe,u===null?Mw:function(){return QT(n),u(o)})}function XT(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:Oe,baseState:Oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:Oe},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;Do(n,a,{},rr())}function Lh(){return On(Wo)}function KT(){return ln().memoizedState}function WT(){return ln().memoizedState}function Bw(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var u=rr();n=$a(u);var o=qa(a,n,u);o!==null&&(Dn(o,a,u),wo(o,a,u)),a={cache:mh()},n.payload=a;return}a=a.return}}function Pw(n,a,u){var o=rr();u={lane:o,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},zc(n)?JT(a,u):(u=oh(n,a,u,o),u!==null&&(Dn(u,n,o),eS(u,a,o)))}function ZT(n,a,u){var o=rr();Do(n,a,u,o)}function Do(n,a,u,o){var f={lane:o,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(zc(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,v=h(T,u);if(f.hasEagerState=!0,f.eagerState=v,Jn(v,T))return xc(n,a,f,0),wt===null&&Ac(),!1}catch{}finally{}if(u=oh(n,a,f,o),u!==null)return Dn(u,n,o),eS(u,a,o),!0}return!1}function Ih(n,a,u,o){if(o={lane:2,revertLane:Cp(),action:o,hasEagerState:!1,eagerState:null,next:null},zc(n)){if(a)throw Error(i(479))}else a=oh(n,u,o,2),a!==null&&Dn(a,n,2)}function zc(n){var a=n.alternate;return n===rt||a!==null&&a===rt}function JT(n,a){Mu=wc=!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:Pc,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:Pc,useCallback:function(n,a){return Vn().memoizedState=[n,a===void 0?null:a],n},useContext:On,useEffect:HT,useImperativeHandle:function(n,a,u){u=u!=null?u.concat([n]):null,Hc(4194308,4,YT.bind(null,a,n),u)},useLayoutEffect:function(n,a){return Hc(4194308,4,n,a)},useInsertionEffect:function(n,a){Hc(4,2,n,a)},useMemo:function(n,a){var u=Vn();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=Vn();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=Pw.bind(null,rt,n),[o.memoizedState,n]},useRef:function(n){var a=Vn();return n={current:n},a.memoizedState=n},useState:function(n){n=vh(n);var a=n.queue,u=ZT.bind(null,rt,a);return a.dispatch=u,[n.memoizedState,u]},useDebugValue:Nh,useDeferredValue:function(n,a){var u=Vn();return kh(u,n,a)},useTransition:function(){var n=vh(!1);return n=GT.bind(null,rt,n.queue,!0,!1),Vn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,u){var o=rt,f=Vn();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=Vn(),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=Mc++,0<u&&(a+="H"+u.toString(32)),a+=":"}else u=Dw++,a=":"+a+"r"+u.toString(32)+":";return n.memoizedState=a},useCacheRefresh:function(){return Vn().memoizedState=Bw.bind(null,rt)}};ki.useMemoCache=Ah,ki.useHostTransitionStatus=Lh,ki.useFormState=wT,ki.useActionState=wT,ki.useOptimistic=function(n){var a=Vn();a.memoizedState=a.baseState=n;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=Ih.bind(null,rt,!0,u),u.dispatch=a,[n,a]};var Ya={readContext:On,use:Pc,useCallback:VT,useContext:On,useEffect:Oh,useImperativeHandle:jT,useInsertionEffect:FT,useLayoutEffect:zT,useMemo:$T,useReducer:Uc,useRef:UT,useState:function(){return Uc(da)},useDebugValue:Nh,useDeferredValue:function(n,a){var u=ln();return qT(u,Ct.memoizedState,n,a)},useTransition:function(){var n=Uc(da)[0],a=ln().memoizedState;return[typeof n=="boolean"?n:ko(n),a]},useSyncExternalStore:CT,useId:KT};Ya.useCacheRefresh=WT,Ya.useMemoCache=Ah,Ya.useHostTransitionStatus=Lh,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:Pc,useCallback:VT,useContext:On,useEffect:Oh,useImperativeHandle:jT,useInsertionEffect:FT,useLayoutEffect:zT,useMemo:$T,useReducer:_h,useRef:UT,useState:function(){return _h(da)},useDebugValue:Nh,useDeferredValue:function(n,a){var u=ln();return Ct===null?kh(u,n,a):qT(u,Ct.memoizedState,n,a)},useTransition:function(){var n=_h(da)[0],a=ln().memoizedState;return[typeof n=="boolean"?n:ko(n),a]},useSyncExternalStore:CT,useId:KT};Di.useCacheRefresh=WT,Di.useMemoCache=Ah,Di.useHostTransitionStatus=Lh,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 wh(n,a,u,o){a=n.memoizedState,u=u(o,a),u=u==null?a:A({},a,u),n.memoizedState=u,n.lanes===0&&(n.updateQueue.baseState=u)}var Mh={isMounted:function(n){return(n=n._reactInternals)?ne(n)===n:!1},enqueueSetState:function(n,a,u){n=n._reactInternals;var o=rr(),f=$a(o);f.payload=a,u!=null&&(f.callback=u),a=qa(n,f,o),a!==null&&(Dn(a,n,o),wo(a,n,o))},enqueueReplaceState:function(n,a,u){n=n._reactInternals;var o=rr(),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),wo(a,n,o))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var u=rr(),o=$a(u);o.tag=2,a!=null&&(o.callback=a),a=qa(n,o,u),a!==null&&(Dn(a,n,u),wo(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?!Eo(u,o)||!Eo(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&&Mh.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=A({},u));for(var f in n)u[f]===void 0&&(u[f]=n[f])}return u}var Yc=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){Yc(n)}function aS(n){console.error(n)}function iS(n){Yc(n)}function jc(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 Bh(n,a,u){return u=$a(u),u.tag=3,u.payload={element:null},u.callback=function(){jc(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 v=o.stack;this.componentDidCatch(o.value,{componentStack:v!==null?v:""})})}function Uw(n,a,u,o,f){if(u.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=u.alternate,a!==null&&Io(a,u,f,!0),u=xr.current,u!==null){switch(u.tag){case 13:return Wr===null?bp():u.alternate===null&&Gt===0&&(Gt=3),u.flags&=-257,u.flags|=65536,u.lanes=f,o===dh?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([o]):a.add(o),yp(n,o,f)),!1;case 22:return u.flags|=65536,o===dh?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)),yp(n,o,f)),!1}throw Error(i(435,u.tag))}return yp(n,o,f),bp(),!1}if(gt)return a=xr.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,o!==fh&&(n=Error(i(422),{cause:o}),Co(Sr(n,u)))):(o!==fh&&(a=Error(i(423),{cause:o}),Co(Sr(a,u))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,o=Sr(o,u),f=Bh(n.stateNode,o,f),Wh(n,f),Gt!==4&&(Gt=2)),!1;var h=Error(i(520),{cause:o});if(h=Sr(h,u),Yo===null?Yo=[h]:Yo.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=Bh(u.stateNode,o,n),Wh(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),Wh(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 v in o)v!=="ref"&&(T[v]=o[v])}else T=o;return wi(a),o=yh(n,a,u,T,h,f),v=Th(),n!==null&&!pn?(Sh(n,a,f),ha(n,a,f)):(gt&&v&&sh(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"&&!ip(h)&&h.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=h,dS(n,a,h,o,f)):(n=Xc(u.type,null,o,a,a.mode,f),n.ref=a.ref,n.return=a,a.child=n)}if(h=n.child,!$h(n,f)){var T=h.memoizedProps;if(u=u.compare,u=u!==null?u:Eo,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(Eo(h,o)&&n.ref===a.ref)if(pn=!1,a.pendingProps=o=h,$h(n,f))(n.flags&131072)!==0&&(pn=!0);else return a.lanes=n.lanes,ha(n,a,f)}return Ph(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(Lo(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&&Ic(a,T!==null?T.cachePool:null),T!==null?mT(a,T):hh(),gT(a);else return a.lanes=a.childLanes=536870912,pS(n,a,T!==null?T.baseLanes|u:u,u)}else T!==null?(Ic(a,T.cachePool),mT(a,T),Fa(),a.memoizedState=null):(n!==null&&Ic(a,null),hh(),Fa());return yn(n,a,f,u),a.child}function pS(n,a,u,o){var f=bh();return f=f===null?null:{parent:cn._currentValue,pool:f},a.memoizedState={baseLanes:u,cachePool:f},n!==null&&Ic(a,null),hh(),gT(a),n!==null&&Io(n,a,o,!0),null}function Lo(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 Ph(n,a,u,o,f){return wi(a),u=yh(n,a,u,o,void 0,f),o=Th(),n!==null&&!pn?(Sh(n,a,f),ha(n,a,f)):(gt&&o&&sh(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=Th(),n!==null&&!pn?(Sh(n,a,h),ha(n,a,h)):(gt&&o&&sh(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=Mh,a.stateNode=h,h._reactInternals=a,h=a.stateNode,h.props=o,h.state=a.memoizedState,h.refs={},Qh(a),T=u.contextType,h.context=typeof T=="object"&&T!==null?On(T):Ou,h.state=a.memoizedState,T=u.getDerivedStateFromProps,typeof T=="function"&&(wh(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&&Mh.enqueueReplaceState(h,h.state,null),Bo(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=Li(u,v);h.props=B;var z=h.context,le=u.contextType;T=Ou,typeof le=="object"&&le!==null&&(T=On(le));var he=u.getDerivedStateFromProps;le=typeof he=="function"||typeof h.getSnapshotBeforeUpdate=="function",v=a.pendingProps!==v,le||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(v||z!==T)&&nS(a,h,o,T),Va=!1;var W=a.memoizedState;h.state=W,Bo(a,o,h,f),Mo(),z=a.memoizedState,v||W!==z||Va?(typeof he=="function"&&(wh(a,u,he,o),z=a.memoizedState),(B=Va||tS(a,u,B,o,W,z,T))?(le||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,Kh(n,a),T=a.memoizedProps,le=Li(u,T),h.props=le,he=a.pendingProps,W=h.context,z=u.contextType,B=Ou,typeof z=="object"&&z!==null&&(B=On(z)),v=u.getDerivedStateFromProps,(z=typeof v=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(T!==he||W!==B)&&nS(a,h,o,B),Va=!1,W=a.memoizedState,h.state=W,Bo(a,o,h,f),Mo();var ue=a.memoizedState;T!==he||W!==ue||Va||n!==null&&n.dependencies!==null&&Vc(n.dependencies)?(typeof v=="function"&&(wh(a,u,v,o),ue=a.memoizedState),(le=Va||tS(a,u,le,o,W,ue,B)||n!==null&&n.dependencies!==null&&Vc(n.dependencies))?(z||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(o,ue,B),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(o,ue,B)),typeof h.componentDidUpdate=="function"&&(a.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof h.componentDidUpdate!="function"||T===n.memoizedProps&&W===n.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&W===n.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=ue),h.props=o,h.state=ue,h.context=B,o=le):(typeof h.componentDidUpdate!="function"||T===n.memoizedProps&&W===n.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||T===n.memoizedProps&&W===n.memoizedState||(a.flags|=1024),o=!1)}return h=o,Lo(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 So(),a.flags|=256,yn(n,a,u,o),a.child}var Uh={dehydrated:null,treeContext:null,retryLane:0};function Hh(n){return{baseLanes:n,cachePool:yT()}}function Fh(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 v=En,B;if(B=v){e:{for(B=v,v=Kr;B.nodeType!==8;){if(!v){v=null;break e}if(B=wr(B.nextSibling),B===null){v=null;break e}}v=B}v!==null?(a.memoizedState={dehydrated:v,treeContext:xi!==null?{id:sa,overflow:ca}:null,retryLane:536870912},B=Rr(18,null,null,0),B.stateNode=v,B.return=a,a.child=B,kn=a,En=null,B=!0):B=!1}B||vi(a)}if(v=a.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return v.data==="$!"?a.lanes=16:a.lanes=536870912,null;fa(a)}return v=o.children,o=o.fallback,f?(Fa(),f=a.mode,v=Yh({mode:"hidden",children:v},f),o=Bi(o,f,u,null),v.return=a,o.return=a,v.sibling=o,a.child=v,f=a.child,f.memoizedState=Hh(u),f.childLanes=Fh(n,T,u),a.memoizedState=Uh,o):(Ha(a),zh(a,v))}if(B=n.memoizedState,B!==null&&(v=B.dehydrated,v!==null)){if(h)a.flags&256?(Ha(a),a.flags&=-257,a=jh(n,a,u)):a.memoizedState!==null?(Fa(),a.child=n.child,a.flags|=128,a=null):(Fa(),f=o.fallback,v=a.mode,o=Yh({mode:"visible",children:o.children},v),f=Bi(f,v,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=Hh(u),o.childLanes=Fh(n,T,u),a.memoizedState=Uh,a=f);else if(Ha(a),v.data==="$!"){if(T=v.nextSibling&&v.nextSibling.dataset,T)var z=T.dgst;T=z,o=Error(i(419)),o.stack="",o.digest=T,Co({value:o,source:null,stack:null}),a=jh(n,a,u)}else if(pn||Io(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}v.data==="$?"||bp(),a=jh(n,a,u)}else v.data==="$?"?(a.flags|=128,a.child=n.child,a=Jw.bind(null,n),v._reactRetry=a,a=null):(n=B.treeContext,En=wr(v.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=zh(a,o.children),a.flags|=4096);return a}return f?(Fa(),f=o.fallback,v=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,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=Hh(u):(B=v.cachePool,B!==null?(z=cn._currentValue,B=B.parent!==z?{parent:z,pool:z}:B):B=yT(),v={baseLanes:v.baseLanes|u,cachePool:B}),f.memoizedState=v,f.childLanes=Fh(n,T,u),a.memoizedState=Uh,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 zh(n,a){return a=Yh({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function Yh(n,a){return VS(n,a,0,null)}function jh(n,a,u){return Ri(a,n.child,null,u),n=zh(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),Gh(n.return,a,u)}function Vh(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&&Lc(n)===null&&(f=u),u=u.sibling;u=f,u===null?(f=a.child,a.child=null):(f=u.sibling,u.sibling=null),Vh(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}Vh(a,!0,u,null,h);break;case"together":Vh(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(Io(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 $h(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&Vc(n)))}function Hw(n,a,u){switch(a.tag){case 3:Be(a,a.stateNode.containerInfo),ja(a,cn,n.memoizedState.cache),So();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||(Io(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(!$h(n,u)&&(a.flags&128)===0)return pn=!1,Hw(n,a,u);pn=(n.flags&131072)!==0}else pn=!1,gt&&(a.flags&1048576)!==0&&iT(a,Rc,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")ip(o)?(n=Li(o,n),a.tag=1,a=gS(null,a,o,n,u)):(a.tag=0,a=Ph(null,a,o,n,u));else{if(o!=null){if(f=o.$$typeof,f===O){a.tag=11,a=cS(null,a,o,n,u);break e}else if(f===R){a.tag=14,a=fS(null,a,o,n,u);break e}}throw a=ae(o)||o,Error(i(306,a,""))}}return a;case 0:return Ph(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,Kh(n,a),Bo(a,h,null,u);var T=a.memoizedState;if(h=T.cache,ja(a,cn,h),h!==f.cache&&Xh(a,[cn],u,!0),Mo(),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),Co(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(So(),h===o){a=ha(n,a,u);break e}yn(n,a,h,u)}a=a.child}return a;case 26:return Lo(n,a),n===null?(u=x3(a.type,null,a.pendingProps,null))?a.memoizedState=u:gt||(u=a.type,n=a.pendingProps,o=lf(Re.current).createElement(u),o[Rn]=a,o[Yn]=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,Re.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),Lo(n,a),a.child;case 5:return n===null&>&&((f=o=En)&&(o=mM(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,Dp(f,h)?o=null:T!==null&&Dp(f,T)&&(a.flags|=32),a.memoizedState!==null&&(f=yh(n,a,Lw,null,null,u),Wo._currentValue=f),Lo(n,a),yn(n,a,o,u),a.child;case 6:return n===null&>&&((n=u=En)&&(u=gM(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=bh(),f===null&&(f=wt,h=mh(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=u),f=h),a.memoizedState={parent:o,cache:f},Qh(a),ja(a,cn,f)):((n.lanes&u)!==0&&(Kh(n,a),Bo(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),ja(a,cn,o)):(o=h.cache,ja(a,cn,o),o!==f.cache&&Xh(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 qh=Me(null),Ii=null,pa=null;function ja(n,a,u){xe(qh,a._currentValue),a._currentValue=u}function ma(n){n._currentValue=qh.current,$e(qh)}function Gh(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 Xh(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 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),Gh(h.return,u,n),o||(T=null);break e}h=v.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),Gh(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 Io(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 v=f.type;Jn(f.pendingProps.value,T.value)||(n!==null?n.push(v):n=[v])}}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(Wo):n=[Wo])}f=f.return}n!==null&&Xh(a,n,u,o),a.flags|=262144}function Vc(n){for(n=n.firstContext;n!==null;){if(!Jn(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 $c(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 Qh(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Kh(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=_c(n),rT(n,null,u),a}return xc(n,o,a,u),_c(n)}function wo(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 Wh(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 Zh=!1;function Mo(){if(Zh){var n=wu;if(n!==null)throw n}}function Bo(n,a,u,o){Zh=!1;var f=n.updateQueue;Va=!1;var h=f.firstBaseUpdate,T=f.lastBaseUpdate,v=f.shared.pending;if(v!==null){f.shared.pending=null;var B=v,z=B.next;B.next=null,T===null?h=z:T.next=z,T=B;var le=n.alternate;le!==null&&(le=le.updateQueue,v=le.lastBaseUpdate,v!==T&&(v===null?le.firstBaseUpdate=z:v.next=z,le.lastBaseUpdate=B))}if(h!==null){var he=f.baseState;T=0,le=z=B=null,v=h;do{var W=v.lane&-536870913,ue=W!==v.lane;if(ue?(ht&W)===W:(o&W)===W){W!==0&&W===Iu&&(Zh=!0),le!==null&&(le=le.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var Le=n,qe=v;W=a;var Xt=u;switch(qe.tag){case 1:if(Le=qe.payload,typeof Le=="function"){he=Le.call(Xt,he,W);break e}he=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=qe.payload,W=typeof Le=="function"?Le.call(Xt,he,W):Le,W==null)break e;he=A({},he,W);break e;case 2:Va=!0}}W=v.callback,W!==null&&(n.flags|=64,ue&&(n.flags|=8192),ue=f.callbacks,ue===null?f.callbacks=[W]:ue.push(W))}else ue={lane:W,tag:v.tag,payload:v.payload,callback:v.callback,next:null},le===null?(z=le=ue,B=he):le=le.next=ue,T|=W;if(v=v.next,v===null){if(v=f.shared.pending,v===null)break;ue=v,v=ue.next,ue.next=null,f.lastBaseUpdate=ue,f.shared.pending=null}}while(!0);le===null&&(B=he),f.baseState=B,f.firstBaseUpdate=z,f.lastBaseUpdate=le,h===null&&(f.shared.lanes=0),Wa|=T,n.lanes=T,n.memoizedState=he}}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 Po(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(v){Nt(a,a.return,v)}}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,v=T.destroy;if(v!==void 0){T.destroy=void 0,f=a;var B=u;try{v()}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 er(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;cM(o,n.type,u,a),o[Yn]=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 Jh(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 ep(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=uf));else if(o!==4&&o!==27&&(n=n.child,n!==null))for(ep(n,a,u),n=n.sibling;n!==null;)ep(n,a,u),n=n.sibling}function qc(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(qc(n,a,u),n=n.sibling;n!==null;)qc(n,a,u),n=n.sibling}var ga=!1,qt=!1,tp=!1,kS=typeof WeakSet=="function"?WeakSet:Set,mn=null,DS=!1;function Fw(n,a){if(n=n.containerInfo,Np=hf,n=Xy(n),rh(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,v=-1,B=-1,z=0,le=0,he=n,W=null;t:for(;;){for(var ue;he!==u||f!==0&&he.nodeType!==3||(v=T+f),he!==h||o!==0&&he.nodeType!==3||(B=T+o),he.nodeType===3&&(T+=he.nodeValue.length),(ue=he.firstChild)!==null;)W=he,he=ue;for(;;){if(he===n)break t;if(W===u&&++z===f&&(v=T),W===h&&++le===o&&(B=T),(ue=he.nextSibling)!==null)break;he=W,W=he.parentNode}he=ue}u=v===-1||B===-1?null:{start:v,end:B}}else u=null}u=u||{start:0,end:0}}else u=null;for(kp={focusedElem:n,selectionRange:u},hf=!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)wp(n);else if(u===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":wp(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&&Po(5,u);break;case 1:if(Ea(n,u),o&4)if(n=u.stateNode,a===null)try{n.componentDidMount()}catch(v){Nt(u,u.return,v)}else{var f=Li(u.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(f,a,n.__reactInternalSnapshotBeforeUpdate)}catch(v){Nt(u,u.return,v)}}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(v){Nt(u,u.return,v)}}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):er(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&&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 on=null,tr=!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||er(u,a),ba(n,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:qt||er(u,a);var o=on,f=tr;for(on=u.stateNode,ba(n,a,u),u=u.stateNode,a=u.attributes;a.length;)u.removeAttributeNode(a[0]);z0(u),on=o,tr=f;break;case 5:qt||er(u,a);case 6:f=on;var h=tr;if(on=null,ba(n,a,u),on=f,tr=h,on!==null)if(tr)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&&(tr?(a=on,u=u.stateNode,a.nodeType===8?Ip(a.parentNode,u):a.nodeType===1&&Ip(a,u),ts(a)):Ip(on,u.stateNode));break;case 4:o=on,f=tr,on=u.stateNode.containerInfo,tr=!0,ba(n,a,u),on=o,tr=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||(er(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||er(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{ts(n)}catch(u){Nt(a,a.return,u)}}function zw(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 np(n,a){var u=zw(n);a.forEach(function(o){var f=eM.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,v=T;e:for(;v!==null;){switch(v.tag){case 27:case 5:on=v.stateNode,tr=!1;break e;case 3:on=v.stateNode.containerInfo,tr=!0;break e;case 4:on=v.stateNode.containerInfo,tr=!0;break e}v=v.return}if(on===null)throw Error(i(160));wS(h,T,f),on=null,tr=!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),Po(3,n),Ga(5,n,n.return));break;case 1:_r(a,n),vr(n),o&512&&(qt||u===null||er(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||er(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[oo]||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 v=0;v<T.length;v++)if(h=T[v],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(v,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(v=0;v<T.length;v++)if(h=T[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)){T.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[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,le=B.nodeName;B[oo]||le==="HEAD"||le==="BODY"||le==="SCRIPT"||le==="STYLE"||le==="LINK"&&B.rel.toLowerCase()==="stylesheet"||f.removeChild(B),B=z}for(var he=n.type,W=f.attributes;W.length;)f.removeAttributeNode(W[0]);Tn(f,he,h),f[Rn]=n,f[Yn]=h}catch(Le){Nt(n,n.return,Le)}}case 5:if(_r(a,n),vr(n),o&512&&(qt||u===null||er(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&&(tp=!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(cf=null,f=Ir,Ir=of(a.containerInfo),_r(a,n),Ir=f,vr(n),o&4&&u!==null&&u.memoizedState.isDehydrated)try{ts(a.containerInfo)}catch(Le){Nt(n,n.return,Le)}tp&&(tp=!1,PS(n));break;case 4:o=Ir,Ir=of(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)&&(fp=Xe()),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,np(n,o)));break;case 22:if(o&512&&(qt||u===null||er(u,u.return)),B=n.memoizedState!==null,z=u!==null&&u.memoizedState!==null,le=ga,he=qt,ga=le||B,qt=he||z,_r(a,n),qt=he,ga=le,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,v=z.memoizedProps.style;var ue=v!=null&&v.hasOwnProperty("display")?v.display:null;T.style.display=ue==null||typeof ue=="boolean"?"":(""+ue).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,np(n,u))));break;case 19:_r(a,n),vr(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,np(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=Jh(n);qc(n,h,f);break;case 5:var T=o.stateNode;o.flags&32&&(Su(T,""),o.flags&=-33);var v=Jh(n);qc(n,v,T);break;case 3:case 4:var B=o.stateNode.containerInfo,z=Jh(n);ep(n,z,B);break;default:throw Error(i(161))}}}catch(le){Nt(n,n.return,le)}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:er(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:er(a,a.return),Uu(a);break;case 22:er(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),Po(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 v=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],v)}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 rp(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&&Ro(u))}function ap(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Ro(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&&Po(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&&Ro(n)));break;case 12:if(f&2048){Qa(n,a,u,o),n=a.stateNode;try{var h=a.memoizedProps,T=h.id,v=h.onPostCommit;typeof v=="function"&&v(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):Uo(n,a):h._visibility&4?Qa(n,a,u,o):(h._visibility|=4,Hu(n,a,u,o,(a.subtreeFlags&10256)!==0)),f&2048&&rp(a.alternate,a);break;case 24:Qa(n,a,u,o),f&2048&&ap(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,v=u,B=o,z=T.flags;switch(T.tag){case 0:case 11:case 15:Hu(h,T,v,B,f),Po(8,T);break;case 23:break;case 22:var le=T.stateNode;T.memoizedState!==null?le._visibility&4?Hu(h,T,v,B,f):Uo(h,T):(le._visibility|=4,Hu(h,T,v,B,f)),f&&z&2048&&rp(T.alternate,T);break;case 24:Hu(h,T,v,B,f),f&&z&2048&&ap(T.alternate,T);break;default:Hu(h,T,v,B,f)}a=a.sibling}}function Uo(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:Uo(u,o),f&2048&&rp(o.alternate,o);break;case 24:Uo(u,o),f&2048&&ap(o.alternate,o);break;default:Uo(u,o)}a=a.sibling}}var Ho=8192;function Fu(n){if(n.subtreeFlags&Ho)for(n=n.child;n!==null;)HS(n),n=n.sibling}function HS(n){switch(n.tag){case 26:Fu(n),n.flags&Ho&&n.memoizedState!==null&&NM(Ir,n.memoizedState,n.memoizedProps);break;case 5:Fu(n);break;case 3:case 4:var a=Ir;Ir=of(n.stateNode.containerInfo),Fu(n),Ir=a;break;case 22:n.memoizedState===null&&(a=n.alternate,a!==null&&a.memoizedState!==null?(a=Ho,Ho=16777216,Fu(n),Ho=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 Fo(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:Fo(n),n.flags&2048&&Ga(9,n,n.return);break;case 3:Fo(n);break;case 12:Fo(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&4&&(n.return===null||n.return.tag!==13)?(a._visibility&=-5,Gc(n)):Fo(n);break;default:Fo(n)}}function Gc(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),Gc(a);break;case 22:u=a.stateNode,u._visibility&4&&(u._visibility&=-5,Gc(a));break;default:Gc(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:Ro(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 Yw(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 Yw(n,a,u,o)}function ip(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 Xc(n,a,u,o,f,h){var T=0;if(o=n,typeof n=="function")ip(n)&&(T=1);else if(typeof n=="string")T=RM(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 k: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 O:T=11;break e;case R: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=k,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 up(n,a,u){return n=Rr(6,n,null,a),n.lanes=u,n}function lp(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 xo=dh,oT;n.flags|=8192}}function Qc(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?sy():536870912,n.lanes|=a,Yu|=a)}function zo(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 jw(n,a,u){var o=a.pendingProps;switch(ch(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)&&(To(a)?ya(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Lr!==null&&(mp(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=Re.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,To(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,To(a))uT(a);else{switch(f=lf(Re.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[Yn]=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=Re.current,To(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=lf(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=To(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 So(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;zt(a),f=!1}else Lr!==null&&(mp(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),Qc(a,a.updateQueue),zt(a),null;case 4:return it(),n===null&&vp(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)zo(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,zo(f,!1),n=h.updateQueue,a.updateQueue=n,Qc(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()>Kc&&(a.flags|=128,o=!0,zo(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,Qc(a,n),zo(f,!0),f.tail===null&&f.tailMode==="hidden"&&!h.alternate&&!gt)return zt(a),null}else 2*Xe()-f.renderingStartTime>Kc&&u!==536870912&&(a.flags|=128,o=!0,zo(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),ph(),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&&Qc(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 Vw(n,a){switch(ch(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));So()}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),ph(),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(ch(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),ph(),n!==null&&$e(Oi);break;case 24:ma(cn)}}var $w={getCacheForType:function(n){var a=On(cn),u=a.data.get(n);return u===void 0&&(u=n(),a.data.set(n,u)),u}},qw=typeof WeakMap=="function"?WeakMap:Map,Yt=0,wt=null,lt=null,ht=0,Mt=0,nr=null,Ta=!1,zu=!1,op=!1,Sa=0,Gt=0,Wa=0,Pi=0,sp=0,Or=0,Yu=0,Yo=null,Jr=null,cp=!1,fp=0,Kc=1/0,Wc=null,Za=null,Zc=!1,Ui=null,jo=0,dp=0,hp=null,Vo=0,pp=null;function rr(){if((Yt&2)!==0&&ht!==0)return ht&-ht;if(j.T!==null){var n=Iu;return n!==0?n:Cp()}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)),lo(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||uo(n,a),f=o?Qw(n,a):Ep(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&&!Gw(u)){f=Ep(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 v=n;f=Yo;var B=v.current.memoizedState.isDehydrated;if(B&&(ju(v,T).flags|=256),T=Ep(v,T,!1),T!==2){if(op&&!B){v.errorRecoveryDisabledLanes|=h,Pi|=h,f=4;break e}h=Jr,Jr=f,h!==null&&mp(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=fp+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,Wc,cp,a,Or,Pi,Yu,Ta,2,-0,0),h);break e}QS(o,u,Jr,Wc,cp,a,Or,Pi,Yu,Ta,0,-0,0)}}break}while(!0);ea(n)}function mp(n){Jr===null?Jr=n:Jr.push.apply(Jr,n)}function QS(n,a,u,o,f,h,T,v,B,z,le,he,W){var ue=a.subtreeFlags;if((ue&8192||(ue&16785408)===16785408)&&(Ko={stylesheets:null,count:0,unsuspend:OM},HS(a),a=kM(),a!==null)){n.cancelPendingCommit=a(n3.bind(null,n,u,o,f,T,v,B,1,he,W)),Ca(n,h,T,!z);return}n3(n,u,o,f,T,v,B,le,he,W)}function Gw(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 Ca(n,a,u,o){a&=~sp,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 Jc(){return(Yt&6)===0?($o(0),!1):!0}function gp(){if(lt!==null){if(Mt===0)var n=lt.return;else n=lt,pa=Ii=null,Ch(n),Du=null,_o=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,dM(u)),u=n.cancelPendingCommit,u!==null&&(n.cancelPendingCommit=null,u()),gp(),wt=n,lt=u=Ka(n.current,null),ht=a,Mt=0,nr=null,Ta=!1,zu=uo(n,a),op=!1,Yu=Or=sp=Pi=Wa=Gt=0,Jr=Yo=null,cp=!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,Ac(),u}function KS(n,a){rt=null,j.H=Zr,a===Ao?(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,nr=a,lt===null&&(Gt=1,jc(n,Sr(a,n.current)))}function WS(){var n=j.H;return j.H=Zr,n===null?Zr:n}function ZS(){var n=j.A;return j.A=$w,n}function bp(){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 Ep(n,a,u){var o=Yt;Yt|=2;var f=WS(),h=ZS();(wt!==n||ht!==a)&&(Wc=null,ju(n,a)),a=!1;var T=Gt;e:do try{if(Mt!==0&<!==null){var v=lt,B=nr;switch(Mt){case 8:gp(),T=6;break e;case 3:case 2:case 6:xr.current===null&&(a=!0);var z=Mt;if(Mt=0,nr=null,Vu(n,v,B,z),u&&zu){T=0;break e}break;default:z=Mt,Mt=0,nr=null,Vu(n,v,B,z)}}Xw(),T=Gt;break}catch(le){KS(n,le)}while(!0);return a&&n.shellSuspendCounter++,pa=Ii=null,Yt=o,j.H=f,j.A=h,lt===null&&(wt=null,ht=0,Ac()),T}function Xw(){for(;lt!==null;)JS(lt)}function Qw(n,a){var u=Yt;Yt|=2;var o=WS(),f=ZS();wt!==n||ht!==a?(Wc=null,Kc=Xe()+500,ju(n,a)):zu=uo(n,a);e:do try{if(Mt!==0&<!==null){a=lt;var h=nr;t:switch(Mt){case 1:Mt=0,nr=null,Vu(n,a,h,1);break;case 2:if(sT(h)){Mt=0,nr=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,nr=null,e3(a)):(Mt=0,nr=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 v=lt;if(!T||N3(T)){Mt=0,nr=null;var B=v.sibling;if(B!==null)lt=B;else{var z=v.return;z!==null?(lt=z,ef(z)):lt=null}break t}}Mt=0,nr=null,Vu(n,a,h,5);break;case 6:Mt=0,nr=null,Vu(n,a,h,6);break;case 8:gp(),Gt=6;break e;default:throw Error(i(462))}}Kw();break}catch(le){KS(n,le)}while(!0);return pa=Ii=null,j.H=o,j.A=f,Yt=u,lt!==null?0:(wt=null,ht=0,Ac(),Gt)}function Kw(){for(;lt!==null&&!_n();)JS(lt)}function JS(n){var a=SS(n.alternate,n,Sa);n.memoizedProps=n.pendingProps,a===null?ef(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:Ch(a);default:qS(u,a),a=lt=jS(a,Sa),a=SS(u,a,Sa)}n.memoizedProps=n.pendingProps,a===null?ef(n):lt=a}function Vu(n,a,u,o){pa=Ii=null,Ch(a),Du=null,_o=0;var f=a.return;try{if(Uw(n,f,a,u,ht)){Gt=1,jc(n,Sr(u,n.current)),lt=null;return}}catch(h){if(f!==null)throw lt=f,h;Gt=1,jc(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)):ef(a)}function ef(n){var a=n;do{if((a.flags&32768)!==0){t3(a,Ta);return}n=a.return;var u=jw(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=Vw(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,v,B,z){var le=j.T,he=ce.p;try{ce.p=2,j.T=null,Ww(n,a,u,o,he,f,h,T,v,B,z)}finally{j.T=le,ce.p=he}}function Ww(n,a,u,o,f,h,T,v){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|=lh,NI(n,o,z,h,T,v),n===wt&&(lt=wt=null,ht=0),(B.subtreeFlags&10256)===0&&(B.flags&10256)===0||Zc||(Zc=!0,dp=z,hp=u,tM(Ae,function(){return $u(),null})),u=(B.flags&15990)!==0,(B.subtreeFlags&15990)!==0||u?(u=j.T,j.T=null,h=ce.p,ce.p=2,T=Yt,Yt|=4,Fw(n,B),BS(B,n),Sw(kp,n.containerInfo),hf=!!Np,kp=Np=null,n.current=B,LS(n,B.alternate,B),we(),Yt=T,ce.p=h,j.T=u):n.current=B,Zc?(Zc=!1,Ui=n,jo=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(jo&3)!==0&&$u(),z=n.pendingLanes,(o&4194218)!==0&&(z&42)!==0?n===pp?Vo++:(Vo=0,pp=n):Vo=0,$o(0),null}function r3(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Ro(a)))}function $u(){if(Ui!==null){var n=Ui,a=dp;dp=0;var u=dy(jo),o=j.T,f=ce.p;try{if(ce.p=32>u?32:u,j.T=null,Ui===null)var h=!1;else{u=hp,hp=null;var T=Ui,v=jo;if(Ui=null,jo=0,(Yt&6)!==0)throw Error(i(331));var B=Yt;if(Yt|=4,zS(T.current),US(T,T.current,v,u),Yt=B,$o(0,!1),Ft&&typeof Ft.onPostCommitFiberRoot=="function")try{Ft.onPostCommitFiberRoot(an,T)}catch{}h=!0}return h}finally{ce.p=f,j.T=o,r3(n,a)}}return!1}function a3(n,a,u){a=Sr(u,a),a=Bh(n.stateNode,a,2),n=qa(n,a,2),n!==null&&(lo(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),lo(o,2),ea(o));break}}a=a.return}}function yp(n,a,u){var o=n.pingCache;if(o===null){o=n.pingCache=new qw;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)||(op=!0,f.add(u),n=Zw.bind(null,n,a,u),a.then(n,n))}function Zw(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()-fp?(Yt&2)===0&&ju(n,0):sp|=u,Yu===ht&&(Yu=0)),ea(n)}function i3(n,a){a===0&&(a=sy()),n=Ua(n,a),n!==null&&(lo(n,a),ea(n))}function Jw(n){var a=n.memoizedState,u=0;a!==null&&(u=a.retryLane),i3(n,u)}function eM(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 tM(n,a){return St(n,a)}var tf=null,qu=null,Tp=!1,nf=!1,Sp=!1,Hi=0;function ea(n){n!==qu&&n.next===null&&(qu===null?tf=qu=n:qu=qu.next=n),nf=!0,Tp||(Tp=!0,rM(nM))}function $o(n,a){if(!Sp&&nf){Sp=!0;do for(var u=!1,o=tf;o!==null;){if(n!==0){var f=o.pendingLanes;if(f===0)var h=0;else{var T=o.suspendedLanes,v=o.pingedLanes;h=(1<<31-ze(42|n)+1)-1,h&=f&~(T&~v),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||uo(o,h)||(u=!0,o3(o,h));o=o.next}while(u);Sp=!1}}function nM(){nf=Tp=!1;var n=0;Hi!==0&&(fM()&&(n=Hi),Hi=0);for(var a=Xe(),u=null,o=tf;o!==null;){var f=o.next,h=u3(o,a);h===0?(o.next=null,u===null?tf=f:u.next=f,f===null&&(qu=u)):(u=o,(n!==0||(h&3)!==0)&&(nf=!0)),o=f}$o(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),v=1<<T,B=f[T];B===-1?((v&u)===0||(v&o)!==0)&&(f[T]=OI(v,a)):B<=a&&(n.expiredLanes|=v),h&=~v}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||uo(n,u)){if(a=u&-u,a===n.callbackPriority)return a;switch(o!==null&&rn(o),dy(u)){case 2:case 8:u=de;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 rM(n){hM(function(){(Yt&6)!==0?St(ee,n):n()})}function Cp(){return Hi===0&&(Hi=oy()),Hi}function s3(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:gc(""+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 aM(n,a,u,o,f){if(a==="submit"&&u&&u.stateNode===f){var h=s3((f[Yn]||null).action),T=o.submitter;T&&(a=(a=T[Yn]||null)?s3(a.formAction):T.getAttribute("formAction"),a!==null&&(h=a,T=null));var v=new Tc("action","action",null,o,f);n.push({event:v,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Hi!==0){var B=T?c3(f,T):new FormData(f);Dh(u,{pending:!0,data:B,method:f.method,action:h},null,B)}}else typeof h=="function"&&(v.preventDefault(),B=T?c3(f,T):new FormData(f),Dh(u,{pending:!0,data:B,method:f.method,action:h},h,B))},currentTarget:f}]})}}for(var Ap=0;Ap<nT.length;Ap++){var xp=nT[Ap],iM=xp.toLowerCase(),uM=xp[0].toUpperCase()+xp.slice(1);Dr(iM,"on"+uM)}Dr(Wy,"onAnimationEnd"),Dr(Zy,"onAnimationIteration"),Dr(Jy,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(Aw,"onTransitionRun"),Dr(xw,"onTransitionStart"),Dr(_w,"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 qo="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(" "),lM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qo));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 v=o[T],B=v.instance,z=v.currentTarget;if(v=v.listener,B!==h&&f.isPropagationStopped())break e;h=v,f.currentTarget=z;try{h(f)}catch(le){Yc(le)}f.currentTarget=null,h=B}else for(T=0;T<o.length;T++){if(v=o[T],B=v.instance,z=v.currentTarget,v=v.listener,B!==h&&f.isPropagationStopped())break e;h=v,f.currentTarget=z;try{h(f)}catch(le){Yc(le)}f.currentTarget=null,h=B}}}}function ft(n,a){var u=a[F0];u===void 0&&(u=a[F0]=new Set);var o=n+"__bubble";u.has(o)||(d3(a,n,2,!1),u.add(o))}function _p(n,a,u){var o=0;a&&(o|=4),d3(u,n,o,a)}var rf="_reactListening"+Math.random().toString(36).slice(2);function vp(n){if(!n[rf]){n[rf]=!0,my.forEach(function(u){u!=="selectionchange"&&(lM.has(u)||_p(u,!1,n),_p(u,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[rf]||(a[rf]=!0,_p("selectionchange",!1,a))}}function d3(n,a,u,o){switch(M3(a)){case 2:var f=IM;break;case 8:f=wM;break;default:f=Hp}u=f.bind(null,a,u,n),f=void 0,!X0||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 Rp(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 v=o.stateNode.containerInfo;if(v===f||v.nodeType===8&&v.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(;v!==null;){if(T=yi(v),T===null)return;if(B=T.tag,B===5||B===6||B===26||B===27){o=h=T;continue e}v=v.parentNode}}o=o.return}Ry(function(){var z=h,le=q0(u),he=[];e:{var W=tT.get(n);if(W!==void 0){var ue=Tc,Le=n;switch(n){case"keypress":if(Ec(u)===0)break e;case"keydown":case"keyup":ue=ew;break;case"focusin":Le="focus",ue=Z0;break;case"focusout":Le="blur",ue=Z0;break;case"beforeblur":case"afterblur":ue=Z0;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":ue=ky;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ue=YI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ue=rw;break;case Wy:case Zy:case Jy:ue=$I;break;case eT:ue=iw;break;case"scroll":case"scrollend":ue=FI;break;case"wheel":ue=lw;break;case"copy":case"cut":case"paste":ue=GI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ue=Ly;break;case"toggle":case"beforetoggle":ue=sw}var qe=(a&4)!==0,Xt=!qe&&(n==="scroll"||n==="scrollend"),$=qe?W!==null?W+"Capture":null:W;qe=[];for(var F=z,G;F!==null;){var fe=F;if(G=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||G===null||$===null||(fe=co(F,$),fe!=null&&qe.push(Go(F,fe,G))),Xt)break;F=F.return}0<qe.length&&(W=new ue(W,Le,null,u,le),he.push({event:W,listeners:qe}))}}if((a&7)===0){e:{if(W=n==="mouseover"||n==="pointerover",ue=n==="mouseout"||n==="pointerout",W&&u!==$0&&(Le=u.relatedTarget||u.fromElement)&&(yi(Le)||Le[gu]))break e;if((ue||W)&&(W=le.window===le?le:(W=le.ownerDocument)?W.defaultView||W.parentWindow:window,ue?(Le=u.relatedTarget||u.toElement,ue=z,Le=Le?yi(Le):null,Le!==null&&(Xt=ne(Le),qe=Le.tag,Le!==Xt||qe!==5&&qe!==27&&qe!==6)&&(Le=null)):(ue=null,Le=z),ue!==Le)){if(qe=ky,fe="onMouseLeave",$="onMouseEnter",F="mouse",(n==="pointerout"||n==="pointerover")&&(qe=Ly,fe="onPointerLeave",$="onPointerEnter",F="pointer"),Xt=ue==null?W:so(ue),G=Le==null?W:so(Le),W=new qe(fe,F+"leave",ue,u,le),W.target=Xt,W.relatedTarget=G,fe=null,yi(le)===z&&(qe=new qe($,F+"enter",Le,u,le),qe.target=G,qe.relatedTarget=Xt,fe=qe),Xt=fe,ue&&Le)t:{for(qe=ue,$=Le,F=0,G=qe;G;G=Gu(G))F++;for(G=0,fe=$;fe;fe=Gu(fe))G++;for(;0<F-G;)qe=Gu(qe),F--;for(;0<G-F;)$=Gu($),G--;for(;F--;){if(qe===$||$!==null&&qe===$.alternate)break t;qe=Gu(qe),$=Gu($)}qe=null}else qe=null;ue!==null&&h3(he,W,ue,qe,!1),Le!==null&&Xt!==null&&h3(he,Xt,Le,qe,!0)}}e:{if(W=z?so(z):window,ue=W.nodeName&&W.nodeName.toLowerCase(),ue==="select"||ue==="input"&&W.type==="file")var Ne=Fy;else if(Uy(W))if(zy)Ne=yw;else{Ne=bw;var ut=gw}else ue=W.nodeName,!ue||ue.toLowerCase()!=="input"||W.type!=="checkbox"&&W.type!=="radio"?z&&V0(z.elementType)&&(Ne=Fy):Ne=Ew;if(Ne&&(Ne=Ne(n,z))){Hy(he,Ne,u,le);break e}ut&&ut(n,W,z),n==="focusout"&&z&&W.type==="number"&&z.memoizedProps.value!=null&&j0(W,"number",W.value)}switch(ut=z?so(z):window,n){case"focusin":(Uy(ut)||ut.contentEditable==="true")&&(_u=ut,ah=z,yo=null);break;case"focusout":yo=ah=_u=null;break;case"mousedown":ih=!0;break;case"contextmenu":case"mouseup":case"dragend":ih=!1,Qy(he,u,le);break;case"selectionchange":if(Cw)break;case"keydown":case"keyup":Qy(he,u,le)}var Pe;if(eh)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=le,Q0="value"in Pa?Pa.value:Pa.textContent,xu=!0)),ut=af(z,Ye),0<ut.length&&(Ye=new Dy(Ye,n,null,u,le),he.push({event:Ye,listeners:ut}),Pe?Ye.data=Pe:(Pe=Py(u),Pe!==null&&(Ye.data=Pe)))),(Pe=fw?dw(n,u):hw(n,u))&&(Ye=af(z,"onBeforeInput"),0<Ye.length&&(ut=new Dy("onBeforeInput","beforeinput",null,u,le),he.push({event:ut,listeners:Ye}),ut.data=Pe)),aM(he,n,z,u,le)}f3(he,a)})}function Go(n,a,u){return{instance:n,listener:a,currentTarget:u}}function af(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=co(n,u),f!=null&&o.unshift(Go(n,f,h)),f=co(n,a),f!=null&&o.push(Go(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 v=u,B=v.alternate,z=v.stateNode;if(v=v.tag,B!==null&&B===o)break;v!==5&&v!==26&&v!==27||z===null||(B=z,f?(z=co(u,h),z!=null&&T.unshift(Go(u,z,B))):f||(z=co(u,h),z!=null&&T.push(Go(u,z,B)))),u=u.return}T.length!==0&&n.push({event:a,listeners:T})}var oM=/\r\n?/g,sM=/\u0000|\uFFFD/g;function p3(n){return(typeof n=="string"?n:""+n).replace(oM,`
|
|
41
|
+
`).replace(sM,"")}function m3(n,a){return a=p3(a),p3(n)===a}function uf(){}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":hc(n,"class",o);break;case"tabIndex":hc(n,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":hc(n,u,o);break;case"style":_y(n,o,h);break;case"data":if(a!=="object"){hc(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=gc(""+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=gc(""+o),n.setAttribute(u,o);break;case"onClick":o!=null&&(n.onclick=uf);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=gc(""+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),dc(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":dc(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=UI.get(u)||u,dc(n,u,o))}}function Op(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=uf);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[Yn]||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,""):dc(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 v=h=T=f=null,B=null,z=null;for(o in u)if(u.hasOwnProperty(o)){var le=u[o];if(le!=null)switch(o){case"name":f=le;break;case"type":T=le;break;case"checked":B=le;break;case"defaultChecked":z=le;break;case"value":h=le;break;case"defaultValue":v=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(i(137,a));break;default:At(n,a,o,le,u,null)}}Sy(n,h,v,B,z,T,f,!1),pc(n);return;case"select":ft("invalid",n),o=T=h=null;for(f in u)if(u.hasOwnProperty(f)&&(v=u[f],v!=null))switch(f){case"value":h=v;break;case"defaultValue":T=v;break;case"multiple":o=v;default:At(n,a,f,v,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)&&(v=u[T],v!=null))switch(T){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:At(n,a,T,v,u,null)}Ay(n,o,f,h),pc(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<qo.length;o++)ft(qo[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(V0(a)){for(le in u)u.hasOwnProperty(le)&&(o=u[le],o!==void 0&&Op(n,a,le,o,u,void 0));return}}for(v in u)u.hasOwnProperty(v)&&(o=u[v],o!=null&&At(n,a,v,o,u,null))}function cM(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,v=null,B=null,z=null,le=null;for(ue in u){var he=u[ue];if(u.hasOwnProperty(ue)&&he!=null)switch(ue){case"checked":break;case"value":break;case"defaultValue":B=he;default:o.hasOwnProperty(ue)||At(n,a,ue,null,o,he)}}for(var W in o){var ue=o[W];if(he=u[W],o.hasOwnProperty(W)&&(ue!=null||he!=null))switch(W){case"type":h=ue;break;case"name":f=ue;break;case"checked":z=ue;break;case"defaultChecked":le=ue;break;case"value":T=ue;break;case"defaultValue":v=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(i(137,a));break;default:ue!==he&&At(n,a,W,ue,o,he)}}Y0(n,T,v,B,z,le,h,f);return;case"select":ue=T=v=W=null;for(h in u)if(B=u[h],u.hasOwnProperty(h)&&B!=null)switch(h){case"value":break;case"multiple":ue=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":W=h;break;case"defaultValue":v=h;break;case"multiple":T=h;default:h!==B&&At(n,a,f,h,o,B)}a=v,u=T,o=ue,W!=null?Tu(n,!!u,W,!1):!!o!=!!u&&(a!=null?Tu(n,!!u,a,!0):Tu(n,!!u,u?[]:"",!1));return;case"textarea":ue=W=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:At(n,a,v,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":W=f;break;case"defaultValue":ue=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,W,ue);return;case"option":for(var Le in u)if(W=u[Le],u.hasOwnProperty(Le)&&W!=null&&!o.hasOwnProperty(Le))switch(Le){case"selected":n.selected=!1;break;default:At(n,a,Le,null,o,W)}for(B in o)if(W=o[B],ue=u[B],o.hasOwnProperty(B)&&W!==ue&&(W!=null||ue!=null))switch(B){case"selected":n.selected=W&&typeof W!="function"&&typeof W!="symbol";break;default:At(n,a,B,W,o,ue)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var qe in u)W=u[qe],u.hasOwnProperty(qe)&&W!=null&&!o.hasOwnProperty(qe)&&At(n,a,qe,null,o,W);for(z in o)if(W=o[z],ue=u[z],o.hasOwnProperty(z)&&W!==ue&&(W!=null||ue!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(i(137,a));break;default:At(n,a,z,W,o,ue)}return;default:if(V0(a)){for(var Xt in u)W=u[Xt],u.hasOwnProperty(Xt)&&W!==void 0&&!o.hasOwnProperty(Xt)&&Op(n,a,Xt,void 0,o,W);for(le in o)W=o[le],ue=u[le],!o.hasOwnProperty(le)||W===ue||W===void 0&&ue===void 0||Op(n,a,le,W,o,ue);return}}for(var $ in u)W=u[$],u.hasOwnProperty($)&&W!=null&&!o.hasOwnProperty($)&&At(n,a,$,null,o,W);for(he in o)W=o[he],ue=u[he],!o.hasOwnProperty(he)||W===ue||W==null&&ue==null||At(n,a,he,W,o,ue)}var Np=null,kp=null;function lf(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 Dp(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 Lp=null;function fM(){var n=window.event;return n&&n.type==="popstate"?n===Lp?!1:(Lp=n,!0):(Lp=null,!1)}var E3=typeof setTimeout=="function"?setTimeout:void 0,dM=typeof clearTimeout=="function"?clearTimeout:void 0,y3=typeof Promise=="function"?Promise:void 0,hM=typeof queueMicrotask=="function"?queueMicrotask:typeof y3<"u"?function(n){return y3.resolve(null).then(n).catch(pM)}:E3;function pM(n){setTimeout(function(){throw n})}function Ip(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),ts(a);return}o--}else u!=="$"&&u!=="$?"&&u!=="$!"||o++;u=f}while(u);ts(a)}function wp(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":wp(u),z0(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}n.removeChild(u)}}function mM(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[oo])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 gM(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=lf(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 of(n){return typeof n.getRootNode=="function"?n.getRootNode():n.ownerDocument}var Aa=ce.d;ce.d={f:bM,r:EM,D:yM,C:TM,L:SM,m:CM,X:xM,S:AM,M:_M};function bM(){var n=Aa.f(),a=Jc();return n||a}function EM(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 yM(n){Aa.D(n),A3("dns-prefetch",n,null)}function TM(n,a){Aa.C(n,a),A3("preconnect",n,a)}function SM(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=A({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(Xo(h))||a==="script"&&o.querySelector(Qo(h))||(a=o.createElement("link"),Tn(a,"link",n),hn(a),o.head.appendChild(a)))}}function CM(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=A({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(Qo(h)))return}o=u.createElement("link"),Tn(o,"link",n),hn(o),u.head.appendChild(o)}}}function AM(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 v={loading:0,preload:null};if(T=o.querySelector(Xo(h)))v.loading=5;else{n=A({rel:"stylesheet",href:n,"data-precedence":a},u),(u=Nr.get(h))&&Mp(n,u);var B=T=o.createElement("link");hn(B),Tn(B,"link",n),B._p=new Promise(function(z,le){B.onload=z,B.onerror=le}),B.addEventListener("load",function(){v.loading|=1}),B.addEventListener("error",function(){v.loading|=2}),v.loading|=4,sf(T,a,o)}T={type:"stylesheet",instance:T,count:1,state:v},f.set(h,T)}}}function xM(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(Qo(f)),h||(n=A({src:n,async:!0},a),(a=Nr.get(f))&&Bp(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 _M(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(Qo(f)),h||(n=A({src:n,async:!0,type:"module"},a),(a=Nr.get(f))&&Bp(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=Re.current)?of(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(Xo(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||vM(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 Xo(n){return'link[rel="stylesheet"]['+n+"]"}function _3(n){return A({},n,{"data-precedence":n.precedence,precedence:null})}function vM(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 Qo(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=A({},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),sf(o,u.precedence,n),a.instance=o;case"stylesheet":f=Qu(u.href);var h=n.querySelector(Xo(f));if(h)return a.state.loading|=4,a.instance=h,hn(h),h;o=_3(u),(f=Nr.get(f))&&Mp(o,f),h=(n.ownerDocument||n).createElement("link"),hn(h);var T=h;return T._p=new Promise(function(v,B){T.onload=v,T.onerror=B}),Tn(h,"link",o),a.state.loading|=4,sf(h,u.precedence,n),a.instance=h;case"script":return h=Ku(u.src),(f=n.querySelector(Qo(h)))?(a.instance=f,hn(f),f):(o=u,(f=Nr.get(h))&&(o=A({},u),Bp(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,sf(o,u.precedence,n));return a.instance}function sf(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 v=o[T];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 Mp(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function Bp(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var cf=null;function R3(n,a,u){if(cf===null){var o=new Map,f=cf=new Map;f.set(u,o)}else f=cf,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[oo]||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 v=o.get(T);v?v.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 RM(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 Ko=null;function OM(){}function NM(n,a,u){if(Ko===null)throw Error(i(475));var o=Ko;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(Xo(f));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(o.count++,o=ff.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))&&Mp(u,f),h=h.createElement("link"),hn(h);var T=h;T._p=new Promise(function(v,B){T.onload=v,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=ff.bind(o),n.addEventListener("load",a),n.addEventListener("error",a))}}function kM(){if(Ko===null)throw Error(i(475));var n=Ko;return n.stylesheets&&n.count===0&&Pp(n,n.stylesheets),0<n.count?function(a){var u=setTimeout(function(){if(n.stylesheets&&Pp(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 ff(){if(this.count--,this.count===0){if(this.stylesheets)Pp(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var df=null;function Pp(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,df=new Map,a.forEach(DM,n),df=null,ff.call(n))}function DM(n,a){if(!(a.state.loading&4)){var u=df.get(n);if(u)var o=u.get(null);else{u=new Map,df.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=ff.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 Wo={$$typeof:y,Provider:null,Consumer:null,_currentValue:Oe,_currentValue2:Oe,_threadCount:0};function LM(n,a,u,o,f,h,T,v){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=H0(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=H0(0),this.hiddenUpdates=H0(null),this.identifierPrefix=o,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function k3(n,a,u,o,f,h,T,v,B,z,le,he){return n=new LM(n,a,u,T,v,B,z,he),a=1,h===!0&&(a|=24),h=Rr(3,null,null,a),n.current=h,h.stateNode=n,a=mh(),a.refCount++,n.pooledCache=a,a.refCount++,h.memoizedState={element:o,isDehydrated:u,cache:a},Qh(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),wo(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 Up(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),Up(n,67108864)}}var hf=!0;function IM(n,a,u,o){var f=j.T;j.T=null;var h=ce.p;try{ce.p=2,Hp(n,a,u,o)}finally{ce.p=h,j.T=f}}function wM(n,a,u,o){var f=j.T;j.T=null;var h=ce.p;try{ce.p=8,Hp(n,a,u,o)}finally{ce.p=h,j.T=f}}function Hp(n,a,u,o){if(hf){var f=Fp(o);if(f===null)Rp(n,a,o,pf,u),B3(n,o);else if(BM(f,n,a,u,o))o.stopPropagation();else if(B3(n,o),a&4&&-1<MM.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 v=h;for(v.pendingLanes|=2,v.entangledLanes|=2;T;){var B=1<<31-ze(T);v.entanglements[1]|=B,T&=~B}ea(h),(Yt&6)===0&&(Kc=Xe()+500,$o(0))}}break;case 13:v=Ua(h,2),v!==null&&Dn(v,h,2),Jc(),Up(h,2)}if(h=Fp(o),h===null&&Rp(n,a,o,pf,u),h===f)break;f=h}f!==null&&o.stopPropagation()}else Rp(n,a,o,null,u)}}function Fp(n){return n=q0(n),zp(n)}var pf=null;function zp(n){if(pf=null,n=yi(n),n!==null){var a=ne(n);if(a===null)n=null;else{var u=a.tag;if(u===13){if(n=be(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 pf=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 ee:return 2;case de:return 8;case Ae:case He:return 32;case nt:return 268435456;default:return 32}default:return 32}}var Yp=!1,Ja=null,ei=null,ti=null,Zo=new Map,Jo=new Map,ni=[],MM="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":Zo.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jo.delete(a.pointerId)}}function es(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 BM(n,a,u,o,f){switch(a){case"focusin":return Ja=es(Ja,n,a,u,o,f),!0;case"dragenter":return ei=es(ei,n,a,u,o,f),!0;case"mouseover":return ti=es(ti,n,a,u,o,f),!0;case"pointerover":var h=f.pointerId;return Zo.set(h,es(Zo.get(h)||null,n,a,u,o,f)),!0;case"gotpointercapture":return h=f.pointerId,Jo.set(h,es(Jo.get(h)||null,n,a,u,o,f)),!0}return!1}function P3(n){var a=yi(n.target);if(a!==null){var u=ne(a);if(u!==null){if(a=u.tag,a===13){if(a=be(u),a!==null){n.blockedOn=a,kI(n.priority,function(){if(u.tag===13){var o=rr(),f=Ua(u,o);f!==null&&Dn(f,u,o),Up(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 mf(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var u=Fp(n.nativeEvent);if(u===null){u=n.nativeEvent;var o=new u.constructor(u.type,u);$0=o,u.target.dispatchEvent(o),$0=null}else return a=bu(u),a!==null&&w3(a),n.blockedOn=u,!1;a.shift()}return!0}function U3(n,a,u){mf(n)&&u.delete(a)}function PM(){Yp=!1,Ja!==null&&mf(Ja)&&(Ja=null),ei!==null&&mf(ei)&&(ei=null),ti!==null&&mf(ti)&&(ti=null),Zo.forEach(U3),Jo.forEach(U3)}function gf(n,a){n.blockedOn===a&&(n.blockedOn=null,Yp||(Yp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,PM)))}var bf=null;function H3(n){bf!==n&&(bf=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){bf===n&&(bf=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(zp(o||u)===null)continue;break}var h=bu(u);h!==null&&(n.splice(a,3),a-=3,Dh(h,{pending:!0,data:f,method:u.method,action:o},o,f))}}))}function ts(n){function a(B){return gf(B,n)}Ja!==null&&gf(Ja,n),ei!==null&&gf(ei,n),ti!==null&&gf(ti,n),Zo.forEach(a),Jo.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[Yn]||null;if(typeof h=="function")T||H3(u);else if(T){var v=null;if(h&&h.hasAttribute("formAction")){if(f=h,T=h[Yn]||null)v=T.formAction;else if(zp(f)!==null)continue}else v=T.action;typeof v=="function"?u[o+1]=v:(u.splice(o,3),o-=3),H3(u)}}}function jp(n){this._internalRoot=n}Ef.prototype.render=jp.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(i(409));var u=a.current,o=rr();L3(u,o,n,a,null,null)},Ef.prototype.unmount=jp.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),Jc(),a[gu]=null}};function Ef(n){this._internalRoot=n}Ef.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"));ce.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?oe(n):null,n=n===null?null:n.stateNode,n};var UM={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:j,findFiberByHostInstance:yi,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yf.isDisabled&&yf.supportsFiber)try{an=yf.inject(UM),Ft=yf}catch{}}return Wu.createRoot=function(n,a){if(!l(n))throw Error(i(299));var u=!1,o="",f=rS,h=aS,T=iS,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&&(T=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(v=a.unstable_transitionCallbacks)),a=k3(n,1,!1,null,null,u,o,f,h,T,v,null),n[gu]=a.current,vp(n.nodeType===8?n.parentNode:n),new jp(a)},Wu.hydrateRoot=function(n,a,u){if(!l(n))throw Error(i(299));var o=!1,f="",h=rS,T=aS,v=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&&(v=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,v,B,z),a.context=D3(null),u=a.current,o=rr(),f=$a(o),f.callback=null,qa(u,f,o),a.current.lanes=o,lo(a,o),ea(a),n[gu]=a.current,vp(n),new Ef(a)},Wu.version="19.0.0",Wu}var em;function G3(){if(em)return Sf.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(),Sf.exports=q3(),Sf.exports}var X3=G3();function as(){return as=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},as.apply(null,arguments)}function tm(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=tm(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 nm=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-",rm="comm",is="rule",us="decl",J3="@import",_f="@keyframes",eC="@layer",tC=Math.abs,Zu=String.fromCharCode,nC=Object.assign;function am(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 im(e){return e.trim()}function um(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 ur(e){return e.length}function vf(e){return e.length}function ls(e,t){return t.push(e),e}function lm(e,t){return e.map(t).join("")}var os=1,Fi=1,om=0,Cn=0,Zt=0,zi="";function ss(e,t,r,i,l,s,c){return{value:e,root:t,parent:r,type:i,props:l,children:s,line:os,column:Fi,length:c,return:""}}function Mr(e,t){return nC(ss("",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,os--),Zt}function Nn(){return Zt=Cn<om?Bt(zi,Cn++):0,Fi++,Zt===10&&(Fi=1,os++),Zt}function qn(){return Bt(zi,Cn)}function cs(){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 Rf(e){return os=Fi=1,om=ur(zi=e),Cn=0,[]}function Of(e){return zi="",e}function tl(e){return im(Yi(Cn-1,Nf(e===91?e+2:e===40?e+1:e)))}function iC(e){for(;(Zt=qn())&&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,cs()+(t<6&&qn()==32&&Nn()==32))}function Nf(e){for(;Nn();)switch(Zt){case e:return Cn;case 34:case 39:e!==34&&e!==39&&Nf(Zt);break;case 40:e===41&&Nf(e);break;case 92:Nn();break}return Cn}function lC(e,t){for(;Nn()&&e+Zt!==57;)if(e+Zt===84&&qn()===47)break;return"/*"+Yi(t,Cn-1)+"*"+Zu(e===47?e:Nn())}function oC(e){for(;!ai(qn());)Nn();return Yi(e,Cn)}function sm(e){return Of(fs("",null,null,null,[""],e=Rf(e),0,[0],e))}function fs(e,t,r,i,l,s,c,d,p){for(var m=0,b=0,E=c,S=0,y=0,O=0,_=1,L=1,R=1,H=0,k="",P=l,I=s,M=i,Y=k;L;)switch(O=H,H=Nn()){case 40:if(O!=108&&Bt(Y,E-1)==58){Ju(Y+=Ie(tl(H),"&","&\f"),"&\f")!=-1&&(R=-1);break}case 34:case 39:case 91:Y+=tl(H);break;case 9:case 10:case 13:case 32:Y+=iC(O);break;case 92:Y+=uC(cs()-1,7);continue;case 47:switch(qn()){case 42:case 47:ls(sC(lC(Nn(),cs()),t,r),p);break;default:Y+="/"}break;case 123*_:d[m++]=ur(Y)*R;case 125*_:case 59:case 0:switch(H){case 0:case 125:L=0;case 59+b:R==-1&&(Y=Ie(Y,/\f/g,"")),y>0&&ur(Y)-E&&ls(y>32?fm(Y+";",i,r,E-1):fm(Ie(Y," ","")+";",i,r,E-2),p);break;case 59:Y+=";";default:if(ls(M=cm(Y,t,r,m,b,l,d,k,P=[],I=[],E),s),H===123)if(b===0)fs(Y,t,M,M,P,s,E,d,I);else switch(S===99&&Bt(Y,3)===110?100:S){case 100:case 108:case 109:case 115:fs(e,M,M,i&&ls(cm(e,M,M,0,0,l,d,k,l,P=[],E),I),l,I,E,d,i?P:I);break;default:fs(Y,M,M,M,[""],I,0,d,I)}}m=b=y=0,_=R=1,k=Y="",E=c;break;case 58:E=1+ur(Y),y=O;default:if(_<1){if(H==123)--_;else if(H==125&&_++==0&&aC()==125)continue}switch(Y+=Zu(H),H*_){case 38:R=b>0?1:(Y+="\f",-1);break;case 44:d[m++]=(ur(Y)-1)*R,R=1;break;case 64:qn()===45&&(Y+=tl(Nn())),S=qn(),b=E=ur(k=Y+=oC(cs())),H++;break;case 45:O===45&&ur(Y)==2&&(_=0)}}return s}function cm(e,t,r,i,l,s,c,d,p,m,b){for(var E=l-1,S=l===0?s:[""],y=vf(S),O=0,_=0,L=0;O<i;++O)for(var R=0,H=el(e,E+1,E=tC(_=c[O])),k=e;R<y;++R)(k=im(_>0?S[R]+" "+H:Ie(H,/&\f/g,S[R])))&&(p[L++]=k);return ss(e,t,r,l===0?is:d,p,m,b)}function sC(e,t,r){return ss(e,t,r,rm,Zu(rC()),el(e,2,-2),0)}function fm(e,t,r,i){return ss(e,t,r,us,el(e,0,i),el(e,i+1,-1),i)}function Br(e,t){for(var r="",i=vf(e),l=0;l<i;l++)r+=t(e[l],l,e,t)||"";return r}function dm(e,t,r,i){switch(e.type){case eC:if(e.children.length)break;case J3:case us:return e.return=e.return||e.value;case rm:return"";case _f:return e.return=e.value+"{"+Br(e.children,i)+"}";case is:e.value=e.props.join(",")}return ur(r=Br(e.children,i))?e.return=e.value+"{"+r+"}":""}function hm(e){var t=vf(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 pm(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=qn(),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&&qn()===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]=qn()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Zu(l)}while(l=Nn());return t},dC=function(t,r){return Of(fC(Rf(t),r))},mm=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&&!mm.get(i))&&!l){mm.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 gm(e,t){switch(am(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(ur(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")?gm(Ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bt(e,t+1)!==115)break;case 6444:switch(Bt(e,ur(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 us:t.return=gm(t.value,t.length);break;case _f:return Br([Mr(t,{value:Ie(t.value,"@","@"+De)})],l);case is:if(t.length)return lm(t.props,function(s){switch(um(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(" "),R=1;R<L.length;R++)s[L[R]]=!0;d.push(_)});var p,m=[hC,pC];{var b,E=[dm,pm(function(_){b.insert(_)})],S=hm(m.concat(l,E)),y=function(L){return Br(sm(L),S)};p=function(L,R,H,k){b=H,y(L?L+"{"+R.styles+"}":R.styles),k&&(O.inserted[R.name]=!0)}}var O={key:r,sheet:new nm({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 O.sheet.hydrate(d),O},kf={exports:{}},yt={};/** @license React v16.13.1
|
|
42
42
|
* react-is.production.min.js
|
|
43
43
|
*
|
|
44
44
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var gm;function mC(){if(gm)return yt;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,O=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,k=e?Symbol.for("react.fundamental"):60117,R=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 O: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=O,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)===O},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===T||typeof I=="object"&&I!==null&&(I.$$typeof===O||I.$$typeof===y||I.$$typeof===c||I.$$typeof===d||I.$$typeof===b||I.$$typeof===k||I.$$typeof===R||I.$$typeof===H||I.$$typeof===x)},yt.typeOf=D,yt}var bm;function gC(){return bm||(bm=1,kf.exports=mC()),kf.exports}var Df,Em;function bC(){if(Em)return Df;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(O){return e.isMemo(O)?l:s[O.$$typeof]||t}var d=Object.defineProperty,p=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,T=Object.prototype;function y(O,x,k){if(typeof x!="string"){if(T){var R=E(x);R&&R!==T&&y(O,R,k)}var H=p(x);m&&(H=H.concat(m(x)));for(var D=c(O),P=c(x),I=0;I<H.length;++I){var M=H[I];if(!r[M]&&!(k&&k[M])&&!(P&&P[M])&&!(D&&D[M])){var Y=b(x,M);try{d(O,M,Y)}catch{}}}}return O}return Df=y,Df}bC();var EC=!0;function yC(e,t,r){var i="";return r.split(" ").forEach(function(l){e[l]!==void 0?t.push(e[l]+";"):l&&(i+=l+" ")}),i}var ym=function(t,r,i){var l=t.key+"-"+r.name;(i===!1||EC===!1)&&t.registered[l]===void 0&&(t.registered[l]=r.styles)},Tm=function(t,r,i){ym(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 TC(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 SC={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},AC=/[A-Z]|^ms/g,CC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sm=function(t){return t.charCodeAt(1)===45},Am=function(t){return t!=null&&typeof t!="boolean"},If=em(function(e){return Sm(e)?e:e.replace(AC,"-$&").toLowerCase()}),Cm=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(CC,function(i,l,s){return Pr={name:l,styles:s,next:Pr},l})}return SC[t]!==1&&!Sm(t)&&typeof r=="number"&&r!==0?r+"px":r};function tl(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 _C(e,t,r)}case"function":{if(e!==void 0){var p=Pr,m=r(e);return Pr=p,tl(e,t,m)}break}}var b=r;if(t==null)return b;var E=t[b];return E!==void 0?E:b}function _C(e,t,r){var i="";if(Array.isArray(r))for(var l=0;l<r.length;l++)i+=tl(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]+"}":Am(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++)Am(c[p])&&(i+=If(s)+":"+Cm(s,c[p])+";");else{var m=tl(e,t,c);switch(s){case"animation":case"animationName":{i+=If(s)+":"+m+";";break}default:i+=s+"{"+m+"}"}}}return i}var _m=/label:\s*([^\s;{]+)\s*(;|$)/g,Pr;function ds(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+=tl(r,t,s);else{var c=s;l+=c[0]}for(var d=1;d<e.length;d++)if(l+=tl(r,t,e[d]),i){var p=s;l+=p[d]}_m.lastIndex=0;for(var m="",b;(b=_m.exec(l))!==null;)m+="-"+b[1];var E=TC(l)+m;return{name:E,styles:l,next:Pr}}var xC=function(t){return t()},xm=qp.useInsertionEffect?qp.useInsertionEffect:!1,vC=xm||xC,vm=xm||_.useLayoutEffect,Rm=_.createContext(typeof HTMLElement<"u"?pC({key:"css"}):null),RC=Rm.Provider,Om=function(t){return _.forwardRef(function(r,i){var l=_.useContext(Rm);return t(r,l,i)})},nl=_.createContext({}),OC=function(){return _.useContext(nl)},NC=Om(function(e,t){var r=e.styles,i=ds([r],void 0,_.useContext(nl)),l=_.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&&Tm(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 hs(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ds(t)}var Lf=function(){var t=hs.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_"}}},kC=GA,DC=function(t){return t!=="theme"},Nm=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?kC:DC},km=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},IC=function(t){var r=t.cache,i=t.serialized,l=t.isStringTag;return ym(r,i,l),vC(function(){return Tm(r,i,l)}),null},LC=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=km(t,r,i),p=d||Nm(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 T=b.length,y=1;y<T;y++)E.push(b[y],b[0][y])}var O=Om(function(x,k,R){var H=m&&x.as||l,D="",P=[],I=x;if(x.theme==null){I={};for(var M in x)I[M]=x[M];I.theme=_.useContext(nl)}typeof x.className=="string"?D=yC(k.registered,P,x.className):x.className!=null&&(D=x.className+" ");var Y=ds(E.concat(P),k.registered,I);D+=k.key+"-"+Y.name,c!==void 0&&(D+=" "+c);var ue=m&&d===void 0?Nm(H):p,$={};for(var C in x)m&&C==="as"||ue(C)&&($[C]=x[C]);return $.className=D,R&&($.ref=R),_.createElement(_.Fragment,null,_.createElement(IC,{cache:k,serialized:Y,isStringTag:typeof H=="string"}),_.createElement(H,$))});return O.displayName=s!==void 0?s:"Styled("+(typeof l=="string"?l:l.displayName||l.name||"Component")+")",O.defaultProps=t.defaultProps,O.__emotion_real=O,O.__emotion_base=l,O.__emotion_styles=E,O.__emotion_forwardProp=d,Object.defineProperty(O,"toString",{value:function(){return"."+c}}),O.withComponent=function(x,k){return e(x,as({},r,k,{shouldForwardProp:km(O,k,!0)})).apply(void 0,E)},O}},wC=["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"],tt=LC.bind();wC.forEach(function(e){tt[e]=tt(e)});function O9(){}function N9(){}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 Im(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const MC=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,BC=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,PC={};function Lm(e,t){return(PC.jsx?BC:MC).test(e)}const UC=/[ \t\n\f\r]/g;function HC(e){return typeof e=="object"?e.type==="text"?wm(e.value):!1:wm(e)}function wm(e){return e.replace(UC,"")===""}let rl=class{constructor(t,r,i){this.property=t,this.normal=r,i&&(this.space=i)}};rl.prototype.property={},rl.prototype.normal={},rl.prototype.space=null;function Mm(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 rl(r,i,t)}function wf(e){return e.toLowerCase()}let lr=class{constructor(t,r){this.property=t,this.attribute=r}};lr.prototype.space=null,lr.prototype.boolean=!1,lr.prototype.booleanish=!1,lr.prototype.overloadedBoolean=!1,lr.prototype.number=!1,lr.prototype.commaSeparated=!1,lr.prototype.spaceSeparated=!1,lr.prototype.commaOrSpaceSeparated=!1,lr.prototype.mustUseProperty=!1,lr.prototype.defined=!1;let FC=0;const Ke=ii(),Jt=ii(),Bm=ii(),be=ii(),kt=ii(),Yi=ii(),Gn=ii();function ii(){return 2**++FC}const Mf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ke,booleanish:Jt,commaOrSpaceSeparated:Gn,commaSeparated:Yi,number:be,overloadedBoolean:Bm,spaceSeparated:kt},Symbol.toStringTag,{value:"Module"})),Bf=Object.keys(Mf);let Pf=class extends lr{constructor(t,r,i,l){let s=-1;if(super(t,r),Pm(this,"space",l),typeof i=="number")for(;++s<Bf.length;){const c=Bf[s];Pm(this,Bf[s],(i&Mf[c])===Mf[c])}}};Pf.prototype.defined=!0;function Pm(e,t,r){r&&(e[t]=r)}const zC={}.hasOwnProperty;function ji(e){const t={},r={};let i;for(i in e.properties)if(zC.call(e.properties,i)){const l=e.properties[i],s=new Pf(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[wf(i)]=i,r[wf(s.attribute)]=i}return new rl(t,r,e.space)}const Um=ji({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}}),Hm=ji({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Fm(e,t){return t in e?e[t]:t}function zm(e,t){return Fm(e,t.toLowerCase())}const Ym=ji({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:zm,properties:{xmlns:null,xmlnsXLink:null}}),jm=ji({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}}),YC=ji({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:zm,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Yi,acceptCharset:kt,accessKey:kt,action:null,allow:null,allowFullScreen:Ke,allowPaymentRequest:Ke,allowUserMedia:Ke,alt:null,as:null,async:Ke,autoCapitalize:null,autoComplete:kt,autoFocus:Ke,autoPlay:Ke,blocking:kt,capture:null,charSet:null,checked:Ke,cite:null,className:kt,cols:be,colSpan:null,content:null,contentEditable:Jt,controls:Ke,controlsList:kt,coords:be|Yi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ke,defer:Ke,dir:null,dirName:null,disabled:Ke,download:Bm,draggable:Jt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ke,formTarget:null,headers:kt,height:be,hidden:Ke,high:be,href:null,hrefLang:null,htmlFor:kt,httpEquiv:kt,id:null,imageSizes:null,imageSrcSet:null,inert:Ke,inputMode:null,integrity:null,is:null,isMap:Ke,itemId:null,itemProp:kt,itemRef:kt,itemScope:Ke,itemType:kt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ke,low:be,manifest:null,max:null,maxLength:be,media:null,method:null,min:null,minLength:be,multiple:Ke,muted:Ke,name:null,nonce:null,noModule:Ke,noValidate:Ke,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ke,optimum:be,pattern:null,ping:kt,placeholder:null,playsInline:Ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ke,referrerPolicy:null,rel:kt,required:Ke,reversed:Ke,rows:be,rowSpan:be,sandbox:kt,scope:null,scoped:Ke,seamless:Ke,selected:Ke,shadowRootClonable:Ke,shadowRootDelegatesFocus:Ke,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:Ke,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:Ke,declare:Ke,event:null,face:null,frame:null,frameBorder:null,hSpace:be,leftMargin:be,link:null,longDesc:null,lowSrc:null,marginHeight:be,marginWidth:be,noResize:Ke,noHref:Ke,noShade:Ke,noWrap:Ke,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:Ke,disableRemotePlayback:Ke,prefix:null,property:null,results:be,security:null,unselectable:null}}),jC=ji({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:Fm,properties:{about:Gn,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:Ke,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:Yi,g2:Yi,glyphName:Yi,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:Gn,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:Gn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Gn,rev:Gn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Gn,requiredFeatures:Gn,requiredFonts:Gn,requiredFormats:Gn,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:Gn,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:Gn,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:Gn,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}}),VC=/^data[-\w.:]+$/i,Vm=/-[a-z]/g,$C=/[A-Z]/g;function qC(e,t){const r=wf(t);let i=t,l=lr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&VC.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(Vm,XC);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!Vm.test(s)){let c=s.replace($C,GC);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=Pf}return new l(i,t)}function GC(e){return"-"+e.toLowerCase()}function XC(e){return e.charAt(1).toUpperCase()}const QC={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"},KC=Mm([Hm,Um,Ym,jm,YC],"html"),Uf=Mm([Hm,Um,Ym,jm,jC],"svg");function $m(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function qm(e){return e.join(" ").trim()}var al={},Hf,Gm;function WC(){if(Gm)return Hf;Gm=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";Hf=function(x,k){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];k=k||{};var R=1,H=1;function D(J){var Z=J.match(t);Z&&(R+=Z.length);var re=J.lastIndexOf(p);H=~re?J.length-re:H+J.length}function P(){var J={line:R,column:H};return function(Z){return Z.position=new I(J),ue(),Z}}function I(J){this.start=J,this.end={line:R,column:H},this.source=k.source}I.prototype.content=x;function M(J){var Z=new Error(k.source+":"+R+":"+H+": "+J);if(Z.reason=J,Z.filename=k.source,Z.line=R,Z.column=H,Z.source=x,!k.silent)throw Z}function Y(J){var Z=J.exec(x);if(Z){var re=Z[0];return D(re),x=x.slice(re.length),Z}}function ue(){Y(r)}function $(J){var Z;for(J=J||[];Z=C();)Z!==!1&&J.push(Z);return J}function C(){var J=P();if(!(m!=x.charAt(0)||b!=x.charAt(1))){for(var Z=2;E!=x.charAt(Z)&&(b!=x.charAt(Z)||m!=x.charAt(Z+1));)++Z;if(Z+=2,E===x.charAt(Z-1))return M("End of comment missing");var re=x.slice(2,Z-2);return H+=2,D(re),x=x.slice(Z),H+=2,J({type:T,comment:re})}}function j(){var J=P(),Z=Y(i);if(Z){if(C(),!Y(l))return M("property missing ':'");var re=Y(s),X=J({type:y,property:O(Z[0].replace(e,E)),value:re?O(re[0].replace(e,E)):E});return Y(c),X}}function K(){var J=[];$(J);for(var Z;Z=j();)Z!==!1&&(J.push(Z),$(J));return J}return ue(),K()};function O(x){return x?x.replace(d,E):E}return Hf}var Xm;function ZC(){if(Xm)return al;Xm=1;var e=al.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(al,"__esModule",{value:!0}),al.default=r;var t=e(WC());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 al}var JC=ZC();const Qm=ir(JC),e3=Qm.default||Qm,ps=Km("end"),Ur=Km("start");function Km(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 t3(e){const t=Ur(e),r=ps(e);if(t&&r)return{start:t,end:r}}function il(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Wm(e.position):"start"in e||"end"in e?Wm(e):"line"in e||"column"in e?Ff(e):""}function Ff(e){return Zm(e&&e.line)+":"+Zm(e&&e.column)}function Wm(e){return Ff(e&&e.start)+"-"+Ff(e&&e.end)}function Zm(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=il(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,n3=new Map,r3=/[A-Z]/g,a3=/-([a-z])/g,i3=new Set(["table","tbody","thead","tfoot","tr"]),u3=new Set(["td","th"]),Jm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function l3(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=m3(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=p3(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"?Uf:KC,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=e1(l,e,void 0);return s&&typeof s!="string"?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}function e1(e,t,r){if(t.type==="element")return o3(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return s3(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return f3(e,t,r);if(t.type==="mdxjsEsm")return c3(e,t);if(t.type==="root")return d3(e,t,r);if(t.type==="text")return h3(e,t)}function o3(e,t,r){const i=e.schema;let l=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=Uf,e.schema=l),e.ancestors.push(t);const s=n1(e,t.tagName,!1),c=g3(e,t);let d=jf(e,t);return i3.has(t.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!HC(p):!0})),t1(e,c,s,t),Yf(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,r)}function s3(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)}ul(e,t.position)}function c3(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ul(e,t.position)}function f3(e,t,r){const i=e.schema;let l=i;t.name==="svg"&&i.space==="html"&&(l=Uf,e.schema=l),e.ancestors.push(t);const s=t.name===null?e.Fragment:n1(e,t.name,!0),c=b3(e,t),d=jf(e,t);return t1(e,c,s,t),Yf(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,r)}function d3(e,t,r){const i={};return Yf(i,jf(e,t)),e.create(t,e.Fragment,i,r)}function h3(e,t){return t.value}function t1(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 p3(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 m3(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 g3(e,t){const r={};let i,l;for(l in t.properties)if(l!=="children"&&zf.call(t.properties,l)){const s=E3(e,l,t.properties[l]);if(s){const[c,d]=s;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&u3.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 b3(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 ul(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 ul(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:n3;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=e1(e,s,c);d!==void 0&&r.push(d)}return r}function E3(e,t,r){const i=qC(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?Im(r):qm(r)),i.property==="style"){let l=typeof r=="object"?r:y3(e,String(r));return e.stylePropertyNameCase==="css"&&(l=T3(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?QC[i.property]||i.property:i.attribute,r]}}function y3(e,t){const r={};try{e3(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=Jm+"#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(a3,A3)),r[c]=s}}function n1(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);ul(e)}function ul(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=Jm+"#cannot-handle-mdx-estrees-without-createevaluater",r}function T3(e){const t={};let r;for(r in e)zf.call(e,r)&&(t[S3(r)]=e[r]);return t}function S3(e){let t=e.replace(r3,C3);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function A3(e,t){return t.toUpperCase()}function C3(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:{}},ll={};/**
|
|
48
|
+
*/var bm;function EC(){if(bm)return yt;bm=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,O=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,L=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,H=e?Symbol.for("react.scope"):60119;function k(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 O:case y:case c:return I;default:return M}}case r:return M}}}function P(I){return k(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=O,yt.Memo=y,yt.Portal=r,yt.Profiler=s,yt.StrictMode=l,yt.Suspense=E,yt.isAsyncMode=function(I){return P(I)||k(I)===p},yt.isConcurrentMode=P,yt.isContextConsumer=function(I){return k(I)===d},yt.isContextProvider=function(I){return k(I)===c},yt.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},yt.isForwardRef=function(I){return k(I)===b},yt.isFragment=function(I){return k(I)===i},yt.isLazy=function(I){return k(I)===O},yt.isMemo=function(I){return k(I)===y},yt.isPortal=function(I){return k(I)===r},yt.isProfiler=function(I){return k(I)===s},yt.isStrictMode=function(I){return k(I)===l},yt.isSuspense=function(I){return k(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===O||I.$$typeof===y||I.$$typeof===c||I.$$typeof===d||I.$$typeof===b||I.$$typeof===L||I.$$typeof===R||I.$$typeof===H||I.$$typeof===_)},yt.typeOf=k,yt}var Em;function yC(){return Em||(Em=1,kf.exports=EC()),kf.exports}var Df,ym;function TC(){if(ym)return Df;ym=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(O){return e.isMemo(O)?l:s[O.$$typeof]||t}var d=Object.defineProperty,p=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,S=Object.prototype;function y(O,_,L){if(typeof _!="string"){if(S){var R=E(_);R&&R!==S&&y(O,R,L)}var H=p(_);m&&(H=H.concat(m(_)));for(var k=c(O),P=c(_),I=0;I<H.length;++I){var M=H[I];if(!r[M]&&!(L&&L[M])&&!(P&&P[M])&&!(k&&k[M])){var Y=b(_,M);try{d(O,M,Y)}catch{}}}}return O}return Df=y,Df}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 Tm=function(t,r,i){var l=t.key+"-"+r.name;(i===!1||SC===!1)&&t.registered[l]===void 0&&(t.registered[l]=r.styles)},Sm=function(t,r,i){Tm(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,Cm=function(t){return t.charCodeAt(1)===45},Am=function(t){return t!=null&&typeof t!="boolean"},Lf=tm(function(e){return Cm(e)?e:e.replace(_C,"-$&").toLowerCase()}),xm=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&&!Cm(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]+"}":Am(d)&&(i+=Lf(s)+":"+xm(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++)Am(c[p])&&(i+=Lf(s)+":"+xm(s,c[p])+";");else{var m=nl(e,t,c);switch(s){case"animation":case"animationName":{i+=Lf(s)+":"+m+";";break}default:i+=s+"{"+m+"}"}}}return i}var _m=/label:\s*([^\s;{]+)\s*(;|$)/g,Pr;function ds(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]}_m.lastIndex=0;for(var m="",b;(b=_m.exec(l))!==null;)m+="-"+b[1];var E=AC(l)+m;return{name:E,styles:l,next:Pr}}var OC=function(t){return t()},vm=Gp.useInsertionEffect?Gp.useInsertionEffect:!1,NC=vm||OC,Rm=vm||x.useLayoutEffect,Om=x.createContext(typeof HTMLElement<"u"?bC({key:"css"}):null),kC=Om.Provider,Nm=function(t){return x.forwardRef(function(r,i){var l=x.useContext(Om);return t(r,l,i)})},rl=x.createContext({}),DC=function(){return x.useContext(rl)},LC=Nm(function(e,t){var r=e.styles,i=ds([r],void 0,x.useContext(rl)),l=x.useRef();return Rm(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]),Rm(function(){var s=l.current,c=s[0],d=s[1];if(d){s[1]=!1;return}if(i.next!==void 0&&Sm(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 hs(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ds(t)}var If=function(){var t=hs.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"},km=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?IC:wC},Dm=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 Tm(r,i,l),NC(function(){return Sm(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=Dm(t,r,i),p=d||km(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 O=Nm(function(_,L,R){var H=m&&_.as||l,k="",P=[],I=_;if(_.theme==null){I={};for(var M in _)I[M]=_[M];I.theme=x.useContext(rl)}typeof _.className=="string"?k=CC(L.registered,P,_.className):_.className!=null&&(k=_.className+" ");var Y=ds(E.concat(P),L.registered,I);k+=L.key+"-"+Y.name,c!==void 0&&(k+=" "+c);var ae=m&&d===void 0?km(H):p,j={};for(var A in _)m&&A==="as"||ae(A)&&(j[A]=_[A]);return j.className=k,R&&(j.ref=R),x.createElement(x.Fragment,null,x.createElement(MC,{cache:L,serialized:Y,isStringTag:typeof H=="string"}),x.createElement(H,j))});return O.displayName=s!==void 0?s:"Styled("+(typeof l=="string"?l:l.displayName||l.name||"Component")+")",O.defaultProps=t.defaultProps,O.__emotion_real=O,O.__emotion_base=l,O.__emotion_styles=E,O.__emotion_forwardProp=d,Object.defineProperty(O,"toString",{value:function(){return"."+c}}),O.withComponent=function(_,L){return e(_,as({},r,L,{shouldForwardProp:Dm(O,L,!0)})).apply(void 0,E)},O}},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 YM(){}function jM(){}function Lm(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 Im(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 wm(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"?Mm(e.value):!1:Mm(e)}function Mm(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 Bm(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 wf(e){return e.toLowerCase()}let lr=class{constructor(t,r){this.property=t,this.attribute=r}};lr.prototype.space=null,lr.prototype.boolean=!1,lr.prototype.booleanish=!1,lr.prototype.overloadedBoolean=!1,lr.prototype.number=!1,lr.prototype.commaSeparated=!1,lr.prototype.spaceSeparated=!1,lr.prototype.commaOrSpaceSeparated=!1,lr.prototype.mustUseProperty=!1,lr.prototype.defined=!1;let jC=0;const We=ii(),Jt=ii(),Pm=ii(),Ee=ii(),kt=ii(),ji=ii(),Gn=ii();function ii(){return 2**++jC}const Mf=Object.freeze(Object.defineProperty({__proto__:null,boolean:We,booleanish:Jt,commaOrSpaceSeparated:Gn,commaSeparated:ji,number:Ee,overloadedBoolean:Pm,spaceSeparated:kt},Symbol.toStringTag,{value:"Module"})),Bf=Object.keys(Mf);let Pf=class extends lr{constructor(t,r,i,l){let s=-1;if(super(t,r),Um(this,"space",l),typeof i=="number")for(;++s<Bf.length;){const c=Bf[s];Um(this,Bf[s],(i&Mf[c])===Mf[c])}}};Pf.prototype.defined=!0;function Um(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 Pf(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[wf(i)]=i,r[wf(s.attribute)]=i}return new al(t,r,e.space)}const Hm=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}}),Fm=Vi({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function zm(e,t){return t in e?e[t]:t}function Ym(e,t){return zm(e,t.toLowerCase())}const jm=Vi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ym,properties:{xmlns:null,xmlnsXLink:null}}),Vm=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:Ee,ariaColIndex:Ee,ariaColSpan:Ee,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:Ee,ariaLive:null,ariaModal:Jt,ariaMultiLine:Jt,ariaMultiSelectable:Jt,ariaOrientation:null,ariaOwns:kt,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:Jt,ariaReadOnly:Jt,ariaRelevant:null,ariaRequired:Jt,ariaRoleDescription:kt,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:Jt,ariaSetSize:Ee,ariaSort:null,ariaValueMax:Ee,ariaValueMin:Ee,ariaValueNow:Ee,ariaValueText:null,role:null}}),$C=Vi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ym,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:Ee,colSpan:null,content:null,contentEditable:Jt,controls:We,controlsList:kt,coords:Ee|ji,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:Pm,draggable:Jt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:We,formTarget:null,headers:kt,height:Ee,hidden:We,high:Ee,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:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,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:Ee,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:Ee,rowSpan:Ee,sandbox:kt,scope:null,scoped:We,seamless:We,selected:We,shadowRootClonable:We,shadowRootDelegatesFocus:We,shadowRootMode:null,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:Jt,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:We,useMap:null,value:Jt,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:kt,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:We,declare:We,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:We,noHref:We,noShade:We,noWrap:We,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:Jt,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:We,disableRemotePlayback:We,prefix:null,property:null,results:Ee,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:zm,properties:{about:Gn,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: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:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:We,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:ji,g2:ji,glyphName:ji,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:Gn,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:kt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Gn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Gn,rev:Gn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Gn,requiredFeatures:Gn,requiredFonts:Gn,requiredFormats:Gn,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:Gn,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:Gn,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:Gn,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}}),GC=/^data[-\w.:]+$/i,$m=/-[a-z]/g,XC=/[A-Z]/g;function QC(e,t){const r=wf(t);let i=t,l=lr;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($m,WC);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!$m.test(s)){let c=s.replace(XC,KC);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=Pf}return new l(i,t)}function KC(e){return"-"+e.toLowerCase()}function WC(e){return e.charAt(1).toUpperCase()}const ZC={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"},JC=Bm([Fm,Hm,jm,Vm,$C],"html"),Uf=Bm([Fm,Hm,jm,Vm,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 e6(){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 R=1,H=1;function k(Q){var Z=Q.match(t);Z&&(R+=Z.length);var re=Q.lastIndexOf(p);H=~re?Q.length-re:H+Q.length}function P(){var Q={line:R,column:H};return function(Z){return Z.position=new I(Q),ae(),Z}}function I(Q){this.start=Q,this.end={line:R,column:H},this.source=L.source}I.prototype.content=_;function M(Q){var Z=new Error(L.source+":"+R+":"+H+": "+Q);if(Z.reason=Q,Z.filename=L.source,Z.line=R,Z.column=H,Z.source=_,!L.silent)throw Z}function Y(Q){var Z=Q.exec(_);if(Z){var re=Z[0];return k(re),_=_.slice(re.length),Z}}function ae(){Y(r)}function j(Q){var Z;for(Q=Q||[];Z=A();)Z!==!1&&Q.push(Z);return Q}function A(){var Q=P();if(!(m!=_.charAt(0)||b!=_.charAt(1))){for(var Z=2;E!=_.charAt(Z)&&(b!=_.charAt(Z)||m!=_.charAt(Z+1));)++Z;if(Z+=2,E===_.charAt(Z-1))return M("End of comment missing");var re=_.slice(2,Z-2);return H+=2,k(re),_=_.slice(Z),H+=2,Q({type:S,comment:re})}}function V(){var Q=P(),Z=Y(i);if(Z){if(A(),!Y(l))return M("property missing ':'");var re=Y(s),X=Q({type:y,property:O(Z[0].replace(e,E)),value:re?O(re[0].replace(e,E)):E});return Y(c),X}}function K(){var Q=[];j(Q);for(var Z;Z=V();)Z!==!1&&(Q.push(Z),j(Q));return Q}return ae(),K()};function O(_){return _?_.replace(d,E):E}return Hf}var Qm;function t6(){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(e6());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 n6=t6();const Km=ir(n6),r6=Km.default||Km,ps=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 a6(e){const t=Ur(e),r=ps(e);if(t&&r)return{start:t,end:r}}function il(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=il(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,i6=new Map,u6=/[A-Z]/g,l6=/-([a-z])/g,o6=new Set(["table","tbody","thead","tfoot","tr"]),s6=new Set(["td","th"]),e1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function c6(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=E6(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=b6(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"?Uf:JC,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 f6(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return d6(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return p6(e,t,r);if(t.type==="mdxjsEsm")return h6(e,t);if(t.type==="root")return m6(e,t,r);if(t.type==="text")return g6(e,t)}function f6(e,t,r){const i=e.schema;let l=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=Uf,e.schema=l),e.ancestors.push(t);const s=r1(e,t.tagName,!1),c=y6(e,t);let d=jf(e,t);return o6.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 d6(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)}ul(e,t.position)}function h6(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ul(e,t.position)}function p6(e,t,r){const i=e.schema;let l=i;t.name==="svg"&&i.space==="html"&&(l=Uf,e.schema=l),e.ancestors.push(t);const s=t.name===null?e.Fragment:r1(e,t.name,!0),c=T6(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 m6(e,t,r){const i={};return Yf(i,jf(e,t)),e.create(t,e.Fragment,i,r)}function g6(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 b6(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 E6(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 y6(e,t){const r={};let i,l;for(l in t.properties)if(l!=="children"&&zf.call(t.properties,l)){const s=S6(e,l,t.properties[l]);if(s){const[c,d]=s;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&s6.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 T6(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 ul(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 ul(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: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 S6(e,t,r){const i=QC(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?Im(r):Gm(r)),i.property==="style"){let l=typeof r=="object"?r:C6(e,String(r));return e.stylePropertyNameCase==="css"&&(l=A6(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?ZC[i.property]||i.property:i.attribute,r]}}function C6(e,t){const r={};try{r6(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(l6,_6)),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=wm(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=wm(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);ul(e)}function ul(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 A6(e){const t={};let r;for(r in e)zf.call(e,r)&&(t[x6(r)]=e[r]);return t}function x6(e){let t=e.replace(u6,v6);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function _6(e,t){return t.toUpperCase()}function v6(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:{}},ll={};/**
|
|
50
50
|
* @license React
|
|
51
51
|
* react-jsx-runtime.production.js
|
|
52
52
|
*
|
|
@@ -54,20 +54,20 @@ Error generating stack: `+u.message+`
|
|
|
54
54
|
*
|
|
55
55
|
* This source code is licensed under the MIT license found in the
|
|
56
56
|
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/var r1;function _3(){if(r1)return ll;r1=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 ll.Fragment=t,ll.jsx=r,ll.jsxs=r,ll}var a1;function x3(){return a1||(a1=1,$f.exports=_3()),$f.exports}var me=x3();const v3={};function R3(e,t){const r=v3,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return i1(e,i,l)}function i1(e,t,r){if(O3(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 u1(e.children,t,r)}return Array.isArray(e)?u1(e,t,r):""}function u1(e,t,r){const i=[];let l=-1;for(;++l<e.length;)i[l]=i1(e[l],t,r);return i.join("")}function O3(e){return!!(e&&typeof e=="object")}const l1=document.createElement("i");function qf(e){const t="&"+e+";";l1.innerHTML=t;const r=l1.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 or(e,t){return e.length>0?(ta(e,e.length,0,t),e):t}const o1={}.hasOwnProperty;function N3(e){const t={};let r=-1;for(;++r<e.length;)k3(t,e[r]);return t}function k3(e,t){let r;for(r in t){const l=(o1.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r];let c;if(s)for(c in s){o1.call(l,c)||(l[c]=[]);const d=s[c];D3(l[c],Array.isArray(d)?d:d?[d]:[])}}}function D3(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 s1(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 Vi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Hr=xa(/[A-Za-z]/),Xn=xa(/[\dA-Za-z]/),I3=xa(/[#-'*+\--9=?A-Z^-~]/);function Gf(e){return e!==null&&(e<32||e===127)}const Xf=xa(/\d/),L3=xa(/[\dA-Fa-f]/),w3=xa(/[!-/:-@[-`{-~]/);function je(e){return e!==null&&e<-2}function In(e){return e!==null&&(e<0||e===32)}function Et(e){return e===-2||e===-1||e===32}const M3=xa(new RegExp("\\p{P}|\\p{S}","u")),B3=xa(/\s/);function xa(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function $i(e){const t=[];let r=-1,i=0,l=0;for(;++r<e.length;){const s=e.charCodeAt(r);let c="";if(s===37&&Xn(e.charCodeAt(r+1))&&Xn(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 P3={tokenize:U3};function U3(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 je(d)?(e.consume(d),e.exit("chunkText"),s):(e.consume(d),c)}}const H3={tokenize:F3},c1={tokenize:z3};function F3(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}R(i);let Y=P;for(;Y<t.events.length;)t.events[Y][1].end=Object.assign({},M),Y++;return ta(t.events,I+1,0,t.events.slice(P)),t.events.length=Y,m(D)}return d(D)}function m(D){if(i===r.length){if(!l)return T(D);if(l.currentConstruct&&l.currentConstruct.concrete)return O(D);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(c1,b,E)(D)}function b(D){return l&&H(),R(i),T(D)}function E(D){return t.parser.lazy[t.now().line]=i!==r.length,c=t.now().offset,O(D)}function T(D){return t.containerState={},e.attempt(c1,y,O)(D)}function y(D){return i++,r.push([t.currentConstruct,t.containerState]),T(D)}function O(D){if(D===null){l&&H(),R(0),e.consume(D);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:s,_tokenizer:l}),x(D)}function x(D){if(D===null){k(e.exit("chunkFlow"),!0),R(0),e.consume(D);return}return je(D)?(e.consume(D),k(e.exit("chunkFlow")),i=0,t.interrupt=void 0,d):(e.consume(D),x)}function k(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 Y=t.events.length;let ue=Y,$,C;for(;ue--;)if(t.events[ue][0]==="exit"&&t.events[ue][1].type==="chunkFlow"){if($){C=t.events[ue][1].end;break}$=!0}for(R(i),M=Y;M<t.events.length;)t.events[M][1].end=Object.assign({},C),M++;ta(t.events,ue+1,0,t.events.slice(Y)),t.events.length=M}}function R(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 z3(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 f1(e){if(e===null||In(e)||B3(e))return 1;if(M3(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:j3,resolveAll:Y3};function Y3(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),T=Object.assign({},e[r][1].start);d1(E,-p),d1(T,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:T},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=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,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 j3(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=f1(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=f1(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 d1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const V3={name:"autolink",tokenize:$3};function $3(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||Xn(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||Xn(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):I3(y)?(e.consume(y),m):r(y)}function b(y){return Xn(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||Xn(y))&&i++<63){const O=y===45?T:E;return e.consume(y),O}return r(y)}}const ms={tokenize:q3,partial:!0};function q3(e,t,r){return i;function i(s){return Et(s)?Dt(e,l,"linePrefix")(s):l(s)}function l(s){return s===null||je(s)?t(s):r(s)}}const h1={name:"blockQuote",tokenize:G3,continuation:{tokenize:X3},exit:Q3};function G3(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 X3(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(h1,t,r)(c)}}function Q3(e){e.exit("blockQuote")}const p1={name:"characterEscape",tokenize:K3};function K3(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 w3(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(s)}}const m1={name:"characterReference",tokenize:W3};function W3(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=Xn,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=L3,b):(e.enter("characterReferenceValue"),s=7,c=Xf,b(E))}function b(E){if(E===59&&l){const T=e.exit("characterReferenceValue");return c===Xn&&!qf(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 g1={tokenize:J3,partial:!0},b1={name:"codeFenced",tokenize:Z3,concrete:!0};function Z3(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 Y=i.events[i.events.length-1];return s=Y&&Y[1].type==="linePrefix"?Y[2].sliceSerialize(Y[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||je(M)?(e.exit("codeFencedFence"),i.interrupt?t(M):e.check(g1,x,P)(M)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),T(M))}function T(M){return M===null||je(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),T)}function y(M){return M===null||je(M)?E(M):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),O(M))}function O(M){return M===null||je(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),E(M)):M===96&&M===d?r(M):(e.consume(M),O)}function x(M){return e.attempt(l,P,k)(M)}function k(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),R}function R(M){return s>0&&Et(M)?Dt(e,H,"linePrefix",s+1)(M):H(M)}function H(M){return M===null||je(M)?e.check(g1,x,P)(M):(e.enter("codeFlowValue"),D(M))}function D(M){return M===null||je(M)?(e.exit("codeFlowValue"),H(M)):(e.consume(M),D)}function P(M){return e.exit("codeFenced"),t(M)}function I(M,Y,ue){let $=0;return C;function C(re){return M.enter("lineEnding"),M.consume(re),M.exit("lineEnding"),j}function j(re){return M.enter("codeFencedFence"),Et(re)?Dt(M,K,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(re):K(re)}function K(re){return re===d?(M.enter("codeFencedFenceSequence"),J(re)):ue(re)}function J(re){return re===d?($++,M.consume(re),J):$>=c?(M.exit("codeFencedFenceSequence"),Et(re)?Dt(M,Z,"whitespace")(re):Z(re)):ue(re)}function Z(re){return re===null||je(re)?(M.exit("codeFencedFence"),Y(re)):ue(re)}}}function J3(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:t_},e_={tokenize:n_,partial:!0};function t_(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):je(m)?e.attempt(e_,c,p)(m):(e.enter("codeFlowValue"),d(m))}function d(m){return m===null||je(m)?(e.exit("codeFlowValue"),c(m)):(e.consume(m),d)}function p(m){return e.exit("codeIndented"),t(m)}}function n_(e,t,r){const i=this;return l;function l(c){return i.parser.lazy[i.now().line]?r(c):je(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):je(c)?l(c):r(c)}}const r_={name:"codeText",tokenize:u_,resolve:a_,previous:i_};function a_(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 i_(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function u_(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)):je(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||je(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 l_{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&&ol(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),ol(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ol(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);ol(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ol(this.left,r.reverse())}}}function ol(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 E1(e){const t={};let r=-1,i,l,s,c,d,p,m;const b=new l_(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,o_(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 o_(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,T=-1,y=r,O=0,x=0;const k=[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,k.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):k.pop(),T=k.length;T--;){const R=d.slice(k[T],k[T+1]),H=s.pop();p.push([H,H+R.length-1]),e.splice(H,2,R)}for(p.reverse(),T=-1;++T<p.length;)m[O+p[T][0]]=O+p[T][1],O+=p[T][1]-p[T][0]-1;return m}const s_={tokenize:d_,resolve:f_},c_={tokenize:h_,partial:!0};function f_(e){return E1(e),e}function d_(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):je(d)?e.check(c_,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 h_(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||je(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 y1(e,t,r,i,l,s,c,d,p){const m=p||Number.POSITIVE_INFINITY;let b=0;return E;function E(R){return R===60?(e.enter(i),e.enter(l),e.enter(s),e.consume(R),e.exit(s),T):R===null||R===32||R===41||Gf(R)?r(R):(e.enter(i),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),x(R))}function T(R){return R===62?(e.enter(s),e.consume(R),e.exit(s),e.exit(l),e.exit(i),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),y(R))}function y(R){return R===62?(e.exit("chunkString"),e.exit(d),T(R)):R===null||R===60||je(R)?r(R):(e.consume(R),R===92?O:y)}function O(R){return R===60||R===62||R===92?(e.consume(R),y):y(R)}function x(R){return!b&&(R===null||R===41||In(R))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(i),t(R)):b<m&&R===40?(e.consume(R),b++,x):R===41?(e.consume(R),b--,x):R===null||R===32||R===40||Gf(R)?r(R):(e.consume(R),R===92?k:x)}function k(R){return R===40||R===41||R===92?(e.consume(R),x):x(R)}}function T1(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):je(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||je(y)||d++>999?(e.exit("chunkString"),b(y)):(e.consume(y),p||(p=!Et(y)),y===92?T:E)}function T(y){return y===91||y===92||y===93?(e.consume(y),d++,E):E(y)}}function S1(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):je(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),Dt(e,m,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(T))}function b(T){return T===c||T===null||je(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 sl(e,t){let r;return i;function i(l){return je(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 p_={name:"definition",tokenize:g_},m_={tokenize:b_,partial:!0};function g_(e,t,r){const i=this;let l;return s;function s(y){return e.enter("definition"),c(y)}function c(y){return T1.call(i,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function d(y){return l=Vi(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 In(y)?sl(e,m)(y):m(y)}function m(y){return y1(e,b,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function b(y){return e.attempt(m_,E,E)(y)}function E(y){return Et(y)?Dt(e,T,"whitespace")(y):T(y)}function T(y){return y===null||je(y)?(e.exit("definition"),i.parser.defined.push(l),t(y)):r(y)}}function b_(e,t,r){return i;function i(d){return In(d)?sl(e,l)(d):r(d)}function l(d){return S1(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||je(d)?t(d):r(d)}}const E_={name:"hardBreakEscape",tokenize:y_};function y_(e,t,r){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),l}function l(s){return je(s)?(e.exit("hardBreakEscape"),t(s)):r(s)}}const T_={name:"headingAtx",tokenize:A_,resolve:S_};function S_(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 A_(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||In(b)?(e.exit("atxHeadingSequence"),d(b)):r(b)}function d(b){return b===35?(e.enter("atxHeadingSequence"),p(b)):b===null||je(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||In(b)?(e.exit("atxHeadingText"),d(b)):(e.consume(b),m)}}const C_=["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"],__={name:"htmlFlow",tokenize:O_,resolveTo:R_,concrete:!0},x_={tokenize:k_,partial:!0},v_={tokenize:N_,partial:!0};function R_(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 O_(e,t,r){const i=this;let l,s,c,d,p;return m;function m(L){return b(L)}function b(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),E}function E(L){return L===33?(e.consume(L),T):L===47?(e.consume(L),s=!0,x):L===63?(e.consume(L),l=3,i.interrupt?t:A):Hr(L)?(e.consume(L),c=String.fromCharCode(L),k):r(L)}function T(L){return L===45?(e.consume(L),l=2,y):L===91?(e.consume(L),l=5,d=0,O):Hr(L)?(e.consume(L),l=4,i.interrupt?t:A):r(L)}function y(L){return L===45?(e.consume(L),i.interrupt?t:A):r(L)}function O(L){const se="CDATA[";return L===se.charCodeAt(d++)?(e.consume(L),d===se.length?i.interrupt?t:K:O):r(L)}function x(L){return Hr(L)?(e.consume(L),c=String.fromCharCode(L),k):r(L)}function k(L){if(L===null||L===47||L===62||In(L)){const se=L===47,Oe=c.toLowerCase();return!se&&!s&&A1.includes(Oe)?(l=1,i.interrupt?t(L):K(L)):C_.includes(c.toLowerCase())?(l=6,se?(e.consume(L),R):i.interrupt?t(L):K(L)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(L):s?H(L):D(L))}return L===45||Xn(L)?(e.consume(L),c+=String.fromCharCode(L),k):r(L)}function R(L){return L===62?(e.consume(L),i.interrupt?t:K):r(L)}function H(L){return Et(L)?(e.consume(L),H):C(L)}function D(L){return L===47?(e.consume(L),C):L===58||L===95||Hr(L)?(e.consume(L),P):Et(L)?(e.consume(L),D):C(L)}function P(L){return L===45||L===46||L===58||L===95||Xn(L)?(e.consume(L),P):I(L)}function I(L){return L===61?(e.consume(L),M):Et(L)?(e.consume(L),I):D(L)}function M(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),p=L,Y):Et(L)?(e.consume(L),M):ue(L)}function Y(L){return L===p?(e.consume(L),p=null,$):L===null||je(L)?r(L):(e.consume(L),Y)}function ue(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||In(L)?I(L):(e.consume(L),ue)}function $(L){return L===47||L===62||Et(L)?D(L):r(L)}function C(L){return L===62?(e.consume(L),j):r(L)}function j(L){return L===null||je(L)?K(L):Et(L)?(e.consume(L),j):r(L)}function K(L){return L===45&&l===2?(e.consume(L),X):L===60&&l===1?(e.consume(L),oe):L===62&&l===4?(e.consume(L),ee):L===63&&l===3?(e.consume(L),A):L===93&&l===5?(e.consume(L),pe):je(L)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(x_,Te,J)(L)):L===null||je(L)?(e.exit("htmlFlowData"),J(L)):(e.consume(L),K)}function J(L){return e.check(v_,Z,Te)(L)}function Z(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),re}function re(L){return L===null||je(L)?J(L):(e.enter("htmlFlowData"),K(L))}function X(L){return L===45?(e.consume(L),A):K(L)}function oe(L){return L===47?(e.consume(L),c="",Q):K(L)}function Q(L){if(L===62){const se=c.toLowerCase();return A1.includes(se)?(e.consume(L),ee):K(L)}return Hr(L)&&c.length<8?(e.consume(L),c+=String.fromCharCode(L),Q):K(L)}function pe(L){return L===93?(e.consume(L),A):K(L)}function A(L){return L===62?(e.consume(L),ee):L===45&&l===2?(e.consume(L),A):K(L)}function ee(L){return L===null||je(L)?(e.exit("htmlFlowData"),Te(L)):(e.consume(L),ee)}function Te(L){return e.exit("htmlFlow"),t(L)}}function N_(e,t,r){const i=this;return l;function l(c){return je(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 k_(e,t,r){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(ms,t,r)}}const D_={name:"htmlText",tokenize:I_};function I_(e,t,r){const i=this;let l,s,c;return d;function d(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),p}function p(A){return A===33?(e.consume(A),m):A===47?(e.consume(A),I):A===63?(e.consume(A),D):Hr(A)?(e.consume(A),ue):r(A)}function m(A){return A===45?(e.consume(A),b):A===91?(e.consume(A),s=0,O):Hr(A)?(e.consume(A),H):r(A)}function b(A){return A===45?(e.consume(A),y):r(A)}function E(A){return A===null?r(A):A===45?(e.consume(A),T):je(A)?(c=E,oe(A)):(e.consume(A),E)}function T(A){return A===45?(e.consume(A),y):E(A)}function y(A){return A===62?X(A):A===45?T(A):E(A)}function O(A){const ee="CDATA[";return A===ee.charCodeAt(s++)?(e.consume(A),s===ee.length?x:O):r(A)}function x(A){return A===null?r(A):A===93?(e.consume(A),k):je(A)?(c=x,oe(A)):(e.consume(A),x)}function k(A){return A===93?(e.consume(A),R):x(A)}function R(A){return A===62?X(A):A===93?(e.consume(A),R):x(A)}function H(A){return A===null||A===62?X(A):je(A)?(c=H,oe(A)):(e.consume(A),H)}function D(A){return A===null?r(A):A===63?(e.consume(A),P):je(A)?(c=D,oe(A)):(e.consume(A),D)}function P(A){return A===62?X(A):D(A)}function I(A){return Hr(A)?(e.consume(A),M):r(A)}function M(A){return A===45||Xn(A)?(e.consume(A),M):Y(A)}function Y(A){return je(A)?(c=Y,oe(A)):Et(A)?(e.consume(A),Y):X(A)}function ue(A){return A===45||Xn(A)?(e.consume(A),ue):A===47||A===62||In(A)?$(A):r(A)}function $(A){return A===47?(e.consume(A),X):A===58||A===95||Hr(A)?(e.consume(A),C):je(A)?(c=$,oe(A)):Et(A)?(e.consume(A),$):X(A)}function C(A){return A===45||A===46||A===58||A===95||Xn(A)?(e.consume(A),C):j(A)}function j(A){return A===61?(e.consume(A),K):je(A)?(c=j,oe(A)):Et(A)?(e.consume(A),j):$(A)}function K(A){return A===null||A===60||A===61||A===62||A===96?r(A):A===34||A===39?(e.consume(A),l=A,J):je(A)?(c=K,oe(A)):Et(A)?(e.consume(A),K):(e.consume(A),Z)}function J(A){return A===l?(e.consume(A),l=void 0,re):A===null?r(A):je(A)?(c=J,oe(A)):(e.consume(A),J)}function Z(A){return A===null||A===34||A===39||A===60||A===61||A===96?r(A):A===47||A===62||In(A)?$(A):(e.consume(A),Z)}function re(A){return A===47||A===62||In(A)?$(A):r(A)}function X(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):r(A)}function oe(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),Q}function Q(A){return Et(A)?Dt(e,pe,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):pe(A)}function pe(A){return e.enter("htmlTextData"),c(A)}}const Zf={name:"labelEnd",tokenize:U_,resolveTo:P_,resolveAll:B_},L_={tokenize:H_},w_={tokenize:F_},M_={tokenize:z_};function B_(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 P_(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=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]]),ta(e,s,e.length,d),e}function U_(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(Vi(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(L_,b,c?b:E)(T):T===91?e.attempt(w_,b,c?m:E)(T):c?b(T):E(T)}function m(T){return e.attempt(M_,b,E)(T)}function b(T){return t(T)}function E(T){return s._balanced=!0,r(T)}}function H_(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 In(E)?sl(e,s)(E):s(E)}function s(E){return E===41?b(E):y1(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(E)}function c(E){return In(E)?sl(e,p)(E):b(E)}function d(E){return r(E)}function p(E){return E===34||E===39||E===40?S1(e,m,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(E):b(E)}function m(E){return In(E)?sl(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 F_(e,t,r){const i=this;return l;function l(d){return T1.call(i,e,s,c,"reference","referenceMarker","referenceString")(d)}function s(d){return i.parser.defined.includes(Vi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function c(d){return r(d)}}function z_(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 Y_={name:"labelStartImage",tokenize:j_,resolveAll:Zf.resolveAll};function j_(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 V_={name:"labelStartLink",tokenize:$_,resolveAll:Zf.resolveAll};function $_(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:q_};function q_(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Dt(e,t,"linePrefix")}}const gs={name:"thematicBreak",tokenize:G_};function G_(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||je(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 Ln={name:"list",tokenize:K_,continuation:{tokenize:W_},exit:J_},X_={tokenize:ex,partial:!0},Q_={tokenize:Z_,partial:!0};function K_(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 O=i.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(O==="listUnordered"?!i.containerState.marker||y===i.containerState.marker:Xf(y)){if(i.containerState.type||(i.containerState.type=O,e.enter(O,{_container:!0})),O==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(gs,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(ms,i.interrupt?r:b,e.attempt(X_,T,E))}function b(y){return i.containerState.initialBlankLine=!0,s++,T(y)}function E(y){return Et(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 W_(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(ms,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(Q_,t,c)(d))}function c(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,Dt(e,e.attempt(Ln,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function Z_(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 J_(e){e.exit(this.containerState.type)}function ex(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 C1={name:"setextUnderline",tokenize:nx,resolveTo:tx};function tx(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 nx(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||je(m)?(e.exit("setextHeadingLine"),t(m)):r(m)}}const rx={tokenize:ax};function ax(e){const t=this,r=e.attempt(ms,i,e.attempt(this.parser.constructs.flowInitial,l,Dt(e,e.attempt(this.parser.constructs.flow,l,e.attempt(s_,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 ix={resolveAll:x1()},ux=_1("string"),lx=_1("text");function _1(e){return{tokenize:t,resolveAll:x1(e==="text"?ox: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 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 x1(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 ox(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 sx(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:Y(I),check:Y(M),interrupt:Y(M,{interrupt:!0})},m={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:y,sliceSerialize:T,now:O,defineSkip:x,write:E};let b=t.tokenize.call(m,p);return t.resolveAll&&s.push(t),m;function E(j){return c=or(c,j),k(),c[c.length-1]!==null?[]:(ue(t,0),m.events=Qf(s,m.events,m),m.events)}function T(j,K){return fx(y(j),K)}function y(j){return cx(c,j)}function O(){const{line:j,column:K,offset:J,_index:Z,_bufferIndex:re}=i;return{line:j,column:K,offset:J,_index:Z,_bufferIndex:re}}function x(j){l[j.line]=j.column,C()}function k(){let j;for(;i._index<c.length;){const K=c[i._index];if(typeof K=="string")for(j=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===j&&i._bufferIndex<K.length;)R(K.charCodeAt(i._bufferIndex));else R(K)}}function R(j){b=b(j)}function H(j){je(j)?(i.line++,i.column=1,i.offset+=j===-3?2:1,C()):j!==-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=j}function D(j,K){const J=K||{};return J.type=j,J.start=O(),m.events.push(["enter",J,m]),d.push(J),J}function P(j){const K=d.pop();return K.end=O(),m.events.push(["exit",K,m]),K}function I(j,K){ue(j,K.from)}function M(j,K){K.restore()}function Y(j,K){return J;function J(Z,re,X){let oe,Q,pe,A;return Array.isArray(Z)?Te(Z):"tokenize"in Z?Te([Z]):ee(Z);function ee(Se){return et;function et(Me){const Ve=Me!==null&&Se[Me],_e=Me!==null&&Se.null,qe=[...Array.isArray(Ve)?Ve:Ve?[Ve]:[],...Array.isArray(_e)?_e:_e?[_e]:[]];return Te(qe)(Me)}}function Te(Se){return oe=Se,Q=0,Se.length===0?X:L(Se[Q])}function L(Se){return et;function et(Me){return A=$(),pe=Se,Se.partial||(m.currentConstruct=Se),Se.name&&m.parser.constructs.disable.null.includes(Se.name)?Oe():Se.tokenize.call(K?Object.assign(Object.create(m),K):m,p,se,Oe)(Me)}}function se(Se){return j(pe,A),re}function Oe(Se){return A.restore(),++Q<oe.length?L(oe[Q]):X}}}function ue(j,K){j.resolveAll&&!s.includes(j)&&s.push(j),j.resolve&&ta(m.events,K,m.events.length-K,j.resolve(m.events.slice(K),m)),j.resolveTo&&(m.events=j.resolveTo(m.events,m))}function $(){const j=O(),K=m.previous,J=m.currentConstruct,Z=m.events.length,re=Array.from(d);return{restore:X,from:Z};function X(){i=j,m.previous=K,m.currentConstruct=J,m.events.length=Z,d=re,C()}}function C(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function cx(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 fx(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 R6(){if(a1)return ll;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 ll.Fragment=t,ll.jsx=r,ll.jsxs=r,ll}var i1;function O6(){return i1||(i1=1,$f.exports=R6()),$f.exports}var me=O6();const N6={};function k6(e,t){const r=N6,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(D6(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 D6(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 or(e,t){return e.length>0?(ta(e,e.length,0,t),e):t}const s1={}.hasOwnProperty;function L6(e){const t={};let r=-1;for(;++r<e.length;)I6(t,e[r]);return t}function I6(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];w6(l[c],Array.isArray(d)?d:d?[d]:[])}}}function w6(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]/),Xn=_a(/[\dA-Za-z]/),M6=_a(/[#-'*+\--9=?A-Z^-~]/);function Gf(e){return e!==null&&(e<32||e===127)}const Xf=_a(/\d/),B6=_a(/[\dA-Fa-f]/),P6=_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 U6=_a(new RegExp("\\p{P}|\\p{S}","u")),H6=_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&&Xn(e.charCodeAt(r+1))&&Xn(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 F6={tokenize:z6};function z6(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 Y6={tokenize:j6},f1={tokenize:V6};function j6(e){const t=this,r=[];let i=0,l,s,c;return d;function d(k){if(i<r.length){const P=r[i];return t.containerState=P[1],e.attempt(P[0].continuation,p,m)(k)}return m(k)}function p(k){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}R(i);let Y=P;for(;Y<t.events.length;)t.events[Y][1].end=Object.assign({},M),Y++;return ta(t.events,I+1,0,t.events.slice(P)),t.events.length=Y,m(k)}return d(k)}function m(k){if(i===r.length){if(!l)return S(k);if(l.currentConstruct&&l.currentConstruct.concrete)return O(k);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(f1,b,E)(k)}function b(k){return l&&H(),R(i),S(k)}function E(k){return t.parser.lazy[t.now().line]=i!==r.length,c=t.now().offset,O(k)}function S(k){return t.containerState={},e.attempt(f1,y,O)(k)}function y(k){return i++,r.push([t.currentConstruct,t.containerState]),S(k)}function O(k){if(k===null){l&&H(),R(0),e.consume(k);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:s,_tokenizer:l}),_(k)}function _(k){if(k===null){L(e.exit("chunkFlow"),!0),R(0),e.consume(k);return}return Ve(k)?(e.consume(k),L(e.exit("chunkFlow")),i=0,t.interrupt=void 0,d):(e.consume(k),_)}function L(k,P){const I=t.sliceStream(k);if(P&&I.push(null),k.previous=s,s&&(s.next=k),s=k,l.defineSkip(k.start),l.write(I),t.parser.lazy[k.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 Y=t.events.length;let ae=Y,j,A;for(;ae--;)if(t.events[ae][0]==="exit"&&t.events[ae][1].type==="chunkFlow"){if(j){A=t.events[ae][1].end;break}j=!0}for(R(i),M=Y;M<t.events.length;)t.events[M][1].end=Object.assign({},A),M++;ta(t.events,ae+1,0,t.events.slice(Y)),t.events.length=M}}function R(k){let P=r.length;for(;P-- >k;){const I=r[P];t.containerState=I[1],I[0].exit.call(t,e)}r.length=k}function H(){l.write([null]),s=void 0,l=void 0,t.containerState._closeFlow=void 0}}function V6(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)||H6(e))return 1;if(U6(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:q6,resolveAll:$6};function $6(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=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,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 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),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 G6={name:"autolink",tokenize:X6};function X6(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||Xn(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||Xn(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):M6(y)?(e.consume(y),m):r(y)}function b(y){return Xn(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||Xn(y))&&i++<63){const O=y===45?S:E;return e.consume(y),O}return r(y)}}const ms={tokenize:Q6,partial:!0};function Q6(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:K6,continuation:{tokenize:W6},exit:Z6};function K6(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 W6(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 Z6(e){e.exit("blockQuote")}const m1={name:"characterEscape",tokenize:J6};function J6(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 P6(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(s)}}const g1={name:"characterReference",tokenize:eA};function eA(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=Xn,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=B6,b):(e.enter("characterReferenceValue"),s=7,c=Xf,b(E))}function b(E){if(E===59&&l){const S=e.exit("characterReferenceValue");return c===Xn&&!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:nA,partial:!0},E1={name:"codeFenced",tokenize:tA,concrete:!0};function tA(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 Y=i.events[i.events.length-1];return s=Y&&Y[1].type==="linePrefix"?Y[2].sliceSerialize(Y[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"}),O(M))}function O(M){return M===null||Ve(M)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),E(M)):M===96&&M===d?r(M):(e.consume(M),O)}function _(M){return e.attempt(l,P,L)(M)}function L(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),R}function R(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"),k(M))}function k(M){return M===null||Ve(M)?(e.exit("codeFlowValue"),H(M)):(e.consume(M),k)}function P(M){return e.exit("codeFenced"),t(M)}function I(M,Y,ae){let j=0;return A;function A(re){return M.enter("lineEnding"),M.consume(re),M.exit("lineEnding"),V}function V(re){return M.enter("codeFencedFence"),Et(re)?Dt(M,K,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(re):K(re)}function K(re){return re===d?(M.enter("codeFencedFenceSequence"),Q(re)):ae(re)}function Q(re){return re===d?(j++,M.consume(re),Q):j>=c?(M.exit("codeFencedFenceSequence"),Et(re)?Dt(M,Z,"whitespace")(re):Z(re)):ae(re)}function Z(re){return re===null||Ve(re)?(M.exit("codeFencedFence"),Y(re)):ae(re)}}}function nA(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:aA},rA={tokenize:iA,partial:!0};function aA(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(rA,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 iA(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 uA={name:"codeText",tokenize:sA,resolve:lA,previous:oA};function lA(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 oA(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function sA(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 cA{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&&ol(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),ol(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ol(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);ol(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ol(this.left,r.reverse())}}}function ol(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 cA(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,fA(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 fA(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,O=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 R=d.slice(L[S],L[S+1]),H=s.pop();p.push([H,H+R.length-1]),e.splice(H,2,R)}for(p.reverse(),S=-1;++S<p.length;)m[O+p[S][0]]=O+p[S][1],O+=p[S][1]-p[S][0]-1;return m}const dA={tokenize:mA,resolve:pA},hA={tokenize:gA,partial:!0};function pA(e){return y1(e),e}function mA(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(hA,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 gA(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(R){return R===60?(e.enter(i),e.enter(l),e.enter(s),e.consume(R),e.exit(s),S):R===null||R===32||R===41||Gf(R)?r(R):(e.enter(i),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),_(R))}function S(R){return R===62?(e.enter(s),e.consume(R),e.exit(s),e.exit(l),e.exit(i),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),y(R))}function y(R){return R===62?(e.exit("chunkString"),e.exit(d),S(R)):R===null||R===60||Ve(R)?r(R):(e.consume(R),R===92?O:y)}function O(R){return R===60||R===62||R===92?(e.consume(R),y):y(R)}function _(R){return!b&&(R===null||R===41||Ln(R))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(i),t(R)):b<m&&R===40?(e.consume(R),b++,_):R===41?(e.consume(R),b--,_):R===null||R===32||R===40||Gf(R)?r(R):(e.consume(R),R===92?L:_)}function L(R){return R===40||R===41||R===92?(e.consume(R),_):_(R)}}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 sl(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 bA={name:"definition",tokenize:yA},EA={tokenize:TA,partial:!0};function yA(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)?sl(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(EA,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 TA(e,t,r){return i;function i(d){return Ln(d)?sl(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 SA={name:"hardBreakEscape",tokenize:CA};function CA(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 AA={name:"headingAtx",tokenize:_A,resolve:xA};function xA(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 _A(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 vA=["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"],RA={name:"htmlFlow",tokenize:DA,resolveTo:kA,concrete:!0},OA={tokenize:IA,partial:!0},NA={tokenize:LA,partial:!0};function kA(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 DA(e,t,r){const i=this;let l,s,c,d,p;return m;function m(D){return b(D)}function b(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),E}function E(D){return D===33?(e.consume(D),S):D===47?(e.consume(D),s=!0,_):D===63?(e.consume(D),l=3,i.interrupt?t:C):Hr(D)?(e.consume(D),c=String.fromCharCode(D),L):r(D)}function S(D){return D===45?(e.consume(D),l=2,y):D===91?(e.consume(D),l=5,d=0,O):Hr(D)?(e.consume(D),l=4,i.interrupt?t:C):r(D)}function y(D){return D===45?(e.consume(D),i.interrupt?t:C):r(D)}function O(D){const ce="CDATA[";return D===ce.charCodeAt(d++)?(e.consume(D),d===ce.length?i.interrupt?t:K:O):r(D)}function _(D){return Hr(D)?(e.consume(D),c=String.fromCharCode(D),L):r(D)}function L(D){if(D===null||D===47||D===62||Ln(D)){const ce=D===47,Oe=c.toLowerCase();return!ce&&!s&&A1.includes(Oe)?(l=1,i.interrupt?t(D):K(D)):vA.includes(c.toLowerCase())?(l=6,ce?(e.consume(D),R):i.interrupt?t(D):K(D)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(D):s?H(D):k(D))}return D===45||Xn(D)?(e.consume(D),c+=String.fromCharCode(D),L):r(D)}function R(D){return D===62?(e.consume(D),i.interrupt?t:K):r(D)}function H(D){return Et(D)?(e.consume(D),H):A(D)}function k(D){return D===47?(e.consume(D),A):D===58||D===95||Hr(D)?(e.consume(D),P):Et(D)?(e.consume(D),k):A(D)}function P(D){return D===45||D===46||D===58||D===95||Xn(D)?(e.consume(D),P):I(D)}function I(D){return D===61?(e.consume(D),M):Et(D)?(e.consume(D),I):k(D)}function M(D){return D===null||D===60||D===61||D===62||D===96?r(D):D===34||D===39?(e.consume(D),p=D,Y):Et(D)?(e.consume(D),M):ae(D)}function Y(D){return D===p?(e.consume(D),p=null,j):D===null||Ve(D)?r(D):(e.consume(D),Y)}function ae(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||Ln(D)?I(D):(e.consume(D),ae)}function j(D){return D===47||D===62||Et(D)?k(D):r(D)}function A(D){return D===62?(e.consume(D),V):r(D)}function V(D){return D===null||Ve(D)?K(D):Et(D)?(e.consume(D),V):r(D)}function K(D){return D===45&&l===2?(e.consume(D),X):D===60&&l===1?(e.consume(D),se):D===62&&l===4?(e.consume(D),J):D===63&&l===3?(e.consume(D),C):D===93&&l===5?(e.consume(D),be):Ve(D)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(OA,oe,Q)(D)):D===null||Ve(D)?(e.exit("htmlFlowData"),Q(D)):(e.consume(D),K)}function Q(D){return e.check(NA,Z,oe)(D)}function Z(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),re}function re(D){return D===null||Ve(D)?Q(D):(e.enter("htmlFlowData"),K(D))}function X(D){return D===45?(e.consume(D),C):K(D)}function se(D){return D===47?(e.consume(D),c="",ne):K(D)}function ne(D){if(D===62){const ce=c.toLowerCase();return A1.includes(ce)?(e.consume(D),J):K(D)}return Hr(D)&&c.length<8?(e.consume(D),c+=String.fromCharCode(D),ne):K(D)}function be(D){return D===93?(e.consume(D),C):K(D)}function C(D){return D===62?(e.consume(D),J):D===45&&l===2?(e.consume(D),C):K(D)}function J(D){return D===null||Ve(D)?(e.exit("htmlFlowData"),oe(D)):(e.consume(D),J)}function oe(D){return e.exit("htmlFlow"),t(D)}}function LA(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 IA(e,t,r){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(ms,t,r)}}const wA={name:"htmlText",tokenize:MA};function MA(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),k):Hr(C)?(e.consume(C),ae):r(C)}function m(C){return C===45?(e.consume(C),b):C===91?(e.consume(C),s=0,O):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?X(C):C===45?S(C):E(C)}function O(C){const J="CDATA[";return C===J.charCodeAt(s++)?(e.consume(C),s===J.length?_:O):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),R):_(C)}function R(C){return C===62?X(C):C===93?(e.consume(C),R):_(C)}function H(C){return C===null||C===62?X(C):Ve(C)?(c=H,se(C)):(e.consume(C),H)}function k(C){return C===null?r(C):C===63?(e.consume(C),P):Ve(C)?(c=k,se(C)):(e.consume(C),k)}function P(C){return C===62?X(C):k(C)}function I(C){return Hr(C)?(e.consume(C),M):r(C)}function M(C){return C===45||Xn(C)?(e.consume(C),M):Y(C)}function Y(C){return Ve(C)?(c=Y,se(C)):Et(C)?(e.consume(C),Y):X(C)}function ae(C){return C===45||Xn(C)?(e.consume(C),ae):C===47||C===62||Ln(C)?j(C):r(C)}function j(C){return C===47?(e.consume(C),X):C===58||C===95||Hr(C)?(e.consume(C),A):Ve(C)?(c=j,se(C)):Et(C)?(e.consume(C),j):X(C)}function A(C){return C===45||C===46||C===58||C===95||Xn(C)?(e.consume(C),A):V(C)}function V(C){return C===61?(e.consume(C),K):Ve(C)?(c=V,se(C)):Et(C)?(e.consume(C),V):j(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,Q):Ve(C)?(c=K,se(C)):Et(C)?(e.consume(C),K):(e.consume(C),Z)}function Q(C){return C===l?(e.consume(C),l=void 0,re):C===null?r(C):Ve(C)?(c=Q,se(C)):(e.consume(C),Q)}function Z(C){return C===null||C===34||C===39||C===60||C===61||C===96?r(C):C===47||C===62||Ln(C)?j(C):(e.consume(C),Z)}function re(C){return C===47||C===62||Ln(C)?j(C):r(C)}function X(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"),ne}function ne(C){return Et(C)?Dt(e,be,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):be(C)}function be(C){return e.enter("htmlTextData"),c(C)}}const Zf={name:"labelEnd",tokenize:zA,resolveTo:FA,resolveAll:HA},BA={tokenize:YA},PA={tokenize:jA},UA={tokenize:VA};function HA(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 FA(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=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]]),ta(e,s,e.length,d),e}function zA(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(BA,b,c?b:E)(S):S===91?e.attempt(PA,b,c?m:E)(S):c?b(S):E(S)}function m(S){return e.attempt(UA,b,E)(S)}function b(S){return t(S)}function E(S){return s._balanced=!0,r(S)}}function YA(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)?sl(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)?sl(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)?sl(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 jA(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 VA(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 $A={name:"labelStartImage",tokenize:qA,resolveAll:Zf.resolveAll};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 GA={name:"labelStartLink",tokenize:XA,resolveAll:Zf.resolveAll};function XA(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:QA};function QA(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Dt(e,t,"linePrefix")}}const gs={name:"thematicBreak",tokenize:KA};function KA(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:JA,continuation:{tokenize:e4},exit:n4},WA={tokenize:r4,partial:!0},ZA={tokenize:t4,partial:!0};function JA(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 O=i.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(O==="listUnordered"?!i.containerState.marker||y===i.containerState.marker:Xf(y)){if(i.containerState.type||(i.containerState.type=O,e.enter(O,{_container:!0})),O==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(gs,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(ms,i.interrupt?r:b,e.attempt(WA,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 e4(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(ms,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(ZA,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 t4(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 n4(e){e.exit(this.containerState.type)}function r4(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:i4,resolveTo:a4};function a4(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 i4(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 u4={tokenize:l4};function l4(e){const t=this,r=e.attempt(ms,i,e.attempt(this.parser.constructs.flowInitial,l,Dt(e,e.attempt(this.parser.constructs.flow,l,e.attempt(dA,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 o4={resolveAll:v1()},s4=_1("string"),c4=_1("text");function _1(e){return{tokenize:t,resolveAll:v1(e==="text"?f4: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 f4(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 d4(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:k,exit:P,attempt:Y(I),check:Y(M),interrupt:Y(M,{interrupt:!0})},m={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:y,sliceSerialize:S,now:O,defineSkip:_,write:E};let b=t.tokenize.call(m,p);return t.resolveAll&&s.push(t),m;function E(V){return c=or(c,V),L(),c[c.length-1]!==null?[]:(ae(t,0),m.events=Qf(s,m.events,m),m.events)}function S(V,K){return p4(y(V),K)}function y(V){return h4(c,V)}function O(){const{line:V,column:K,offset:Q,_index:Z,_bufferIndex:re}=i;return{line:V,column:K,offset:Q,_index:Z,_bufferIndex:re}}function _(V){l[V.line]=V.column,A()}function L(){let V;for(;i._index<c.length;){const K=c[i._index];if(typeof K=="string")for(V=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===V&&i._bufferIndex<K.length;)R(K.charCodeAt(i._bufferIndex));else R(K)}}function R(V){b=b(V)}function H(V){Ve(V)?(i.line++,i.column=1,i.offset+=V===-3?2:1,A()):V!==-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=V}function k(V,K){const Q=K||{};return Q.type=V,Q.start=O(),m.events.push(["enter",Q,m]),d.push(Q),Q}function P(V){const K=d.pop();return K.end=O(),m.events.push(["exit",K,m]),K}function I(V,K){ae(V,K.from)}function M(V,K){K.restore()}function Y(V,K){return Q;function Q(Z,re,X){let se,ne,be,C;return Array.isArray(Z)?oe(Z):"tokenize"in Z?oe([Z]):J(Z);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 oe(Ge)(Me)}}function oe(Se){return se=Se,ne=0,Se.length===0?X:D(Se[ne])}function D(Se){return tt;function tt(Me){return C=j(),be=Se,Se.partial||(m.currentConstruct=Se),Se.name&&m.parser.constructs.disable.null.includes(Se.name)?Oe():Se.tokenize.call(K?Object.assign(Object.create(m),K):m,p,ce,Oe)(Me)}}function ce(Se){return V(be,C),re}function Oe(Se){return C.restore(),++ne<se.length?D(se[ne]):X}}}function ae(V,K){V.resolveAll&&!s.includes(V)&&s.push(V),V.resolve&&ta(m.events,K,m.events.length-K,V.resolve(m.events.slice(K),m)),V.resolveTo&&(m.events=V.resolveTo(m.events,m))}function j(){const V=O(),K=m.previous,Q=m.currentConstruct,Z=m.events.length,re=Array.from(d);return{restore:X,from:Z};function X(){i=V,m.previous=K,m.currentConstruct=Q,m.events.length=Z,d=re,A()}}function A(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function h4(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 p4(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 dx=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:p_},disable:{null:[]},document:{42:Ln,43:Ln,45:Ln,48:Ln,49:Ln,50:Ln,51:Ln,52:Ln,53:Ln,54:Ln,55:Ln,56:Ln,57:Ln,62:h1},flow:{35:T_,42:gs,45:[C1,gs],60:__,61:C1,95:gs,96:b1,126:b1},flowInitial:{[-2]:Wf,[-1]:Wf,32:Wf},insideSpan:{null:[Kf,ix]},string:{38:m1,92:p1},text:{[-5]:Jf,[-4]:Jf,[-3]:Jf,33:Y_,38:m1,42:Kf,60:[V3,D_],91:V_,92:[E_,p1],93:Zf,95:Kf,96:r_}},Symbol.toStringTag,{value:"Module"}));function hx(e){const r=N3([dx,...(e||{}).extensions||[]]),i={defined:[],lazy:{},constructs:r,content:l(P3),document:l(H3),flow:l(rx),string:l(ux),text:l(lx)};return i;function l(s){return c;function c(d){return sx(i,s,d)}}}function px(e){for(;!E1(e););return e}const v1=/[\0\t\n\r]/g;function mx(){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(v1.lastIndex=E,m=v1.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 gx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function bx(e){return e.replace(gx,Ex)}function Ex(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),s=l===120||l===88;return s1(r.slice(s?2:1),s?16:10)}return qf(r)||e}const R1={}.hasOwnProperty;function yx(e,t,r){return typeof t!="string"&&(r=t,t=void 0),Tx(r)(px(hx(r).document().write(mx()(e,t,!0))))}function Tx(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ct),autolinkProtocol:$,autolinkEmail:$,atxHeading:s(Be),blockQuote:s(_e),characterEscape:$,characterReference:$,codeFenced:s(qe),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(qe,c),codeText:s(ve,c),codeTextData:$,data:$,codeFlowValue:$,definition:s(Re),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Ae),hardBreakEscape:s(it),hardBreakTrailing:s(it),htmlFlow:s(Ye,c),htmlFlowData:$,htmlText:s(Ye,c),htmlTextData:$,image:s(Ue),label:c,link:s(ct),listItem:s(rn),listItemValue:T,listOrdered:s(At,E),listUnordered:s(At),paragraph:s(_n),reference:L,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(Be),strong:s(we),thematicBreak:s($t)},exit:{atxHeading:p(),atxHeadingSequence:I,autolink:p(),autolinkEmail:Ve,autolinkProtocol:Me,blockQuote:p(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:Oe,characterReferenceMarkerNumeric:Oe,characterReferenceValue:Se,characterReference:et,codeFenced:p(k),codeFencedFence:x,codeFencedFenceInfo:y,codeFencedFenceMeta:O,codeFlowValue:C,codeIndented:p(R),codeText:p(re),codeTextData:C,data:C,definition:p(),definitionDestinationString:P,definitionLabelString:H,definitionTitleString:D,emphasis:p(),hardBreakEscape:p(K),hardBreakTrailing:p(K),htmlFlow:p(J),htmlFlowData:C,htmlText:p(Z),htmlTextData:C,image:p(oe),label:pe,labelText:Q,lineEnding:j,link:p(X),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:se,resourceDestinationString:A,resourceTitleString:ee,resource:Te,setextHeading:p(ue),setextHeadingLineSequence:Y,setextHeadingText:M,strong:p(),thematicBreak:p()}};O1(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(te){let fe={type:"root",children:[]};const Ce={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 Xe=He.pop();nt=l(te,Xe,nt)}for(nt=-1;++nt<te.length;){const Xe=t[te[nt][0]];R1.call(Xe,te[nt][1].type)&&Xe[te[nt][1].type].call(Object.assign({sliceSerialize:te[nt][2].sliceSerialize},Ce),te[nt][1])}if(Ce.tokenStack.length>0){const Xe=Ce.tokenStack[Ce.tokenStack.length-1];(Xe[1]||N1).call(Ce,void 0,Xe[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,Ce){let He=fe-1,nt=-1,Xe=!1,xn,an,Ft,ke;for(;++He<=Ce;){const xe=te[He];switch(xe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{xe[0]==="enter"?nt++:nt--,ke=void 0;break}case"lineEndingBlank":{xe[0]==="enter"&&(xn&&!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&&xe[0]==="enter"&&xe[1].type==="listItemPrefix"||nt===-1&&xe[0]==="exit"&&(xe[1].type==="listUnordered"||xe[1].type==="listOrdered")){if(xn){let Fe=He;for(an=void 0;Fe--;){const Qe=te[Fe];if(Qe[1].type==="lineEnding"||Qe[1].type==="lineEndingBlank"){if(Qe[0]==="exit")continue;an&&(te[an][1].type="lineEndingBlank",Xe=!0),Qe[1].type="lineEnding",an=Fe}else if(!(Qe[1].type==="linePrefix"||Qe[1].type==="blockQuotePrefix"||Qe[1].type==="blockQuotePrefixWhitespace"||Qe[1].type==="blockQuoteMarker"||Qe[1].type==="listItemIndent"))break}Ft&&(!an||Ft<an)&&(xn._spread=!0),xn.end=Object.assign({},an?te[an][1].start:xe[1].end),te.splice(an||He,0,["exit",xn,xe[2]]),He++,Ce++}if(xe[1].type==="listItemPrefix"){const Fe={type:"listItem",_spread:!1,start:Object.assign({},xe[1].start),end:void 0};xn=Fe,te.splice(He,0,["enter",Fe,xe[2]]),He++,Ce++,Ft=void 0,ke=!0}}}return te[fe][1]._spread=Xe,Ce}function s(te,fe){return Ce;function Ce(He){d.call(this,te(He),He),fe&&fe.call(this,He)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(te,fe,Ce){this.stack[this.stack.length-1].children.push(te),this.stack.push(te),this.tokenStack.push([fe,Ce||void 0]),te.position={start:va(fe.start),end:void 0}}function p(te){return fe;function fe(Ce){te&&te.call(this,Ce),m.call(this,Ce)}}function m(te,fe){const Ce=this.stack.pop(),He=this.tokenStack.pop();if(He)He[0].type!==te.type&&(fe?fe.call(this,te,He[0]):(He[1]||N1).call(this,te,He[0]));else throw new Error("Cannot close `"+te.type+"` ("+il({start:te.start,end:te.end})+"): it’s not open");Ce.position.end=va(te.end)}function b(){return R3(this.stack.pop())}function E(){this.data.expectingFirstListItemValue=!0}function T(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 O(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.meta=te}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){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 R(){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(),Ce=this.stack[this.stack.length-1];Ce.label=fe,Ce.identifier=Vi(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 Ce=this.sliceSerialize(te).length;fe.depth=Ce}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function Y(te){const fe=this.stack[this.stack.length-1];fe.depth=this.sliceSerialize(te).codePointAt(0)===61?1:2}function ue(){this.data.setextHeadingSlurpLineEnding=void 0}function $(te){const Ce=this.stack[this.stack.length-1].children;let He=Ce[Ce.length-1];(!He||He.type!=="text")&&(He=Ge(),He.position={start:va(te.start),end:void 0},Ce.push(He)),this.stack.push(He)}function C(te){const fe=this.stack.pop();fe.value+=this.sliceSerialize(te),fe.position.end=va(te.end)}function j(te){const fe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ce=fe.children[fe.children.length-1];Ce.position.end=va(te.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(fe.type)&&($.call(this,te),C.call(this,te))}function K(){this.data.atHardBreak=!0}function J(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.value=te}function Z(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.value=te}function re(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.value=te}function X(){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 oe(){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 Q(te){const fe=this.sliceSerialize(te),Ce=this.stack[this.stack.length-2];Ce.label=bx(fe),Ce.identifier=Vi(fe).toLowerCase()}function pe(){const te=this.stack[this.stack.length-1],fe=this.resume(),Ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ce.type==="link"){const He=te.children;Ce.children=He}else Ce.alt=fe}function A(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.url=te}function ee(){const te=this.resume(),fe=this.stack[this.stack.length-1];fe.title=te}function Te(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function se(te){const fe=this.resume(),Ce=this.stack[this.stack.length-1];Ce.label=fe,Ce.identifier=Vi(this.sliceSerialize(te)).toLowerCase(),this.data.referenceType="full"}function Oe(te){this.data.characterReferenceType=te.type}function Se(te){const fe=this.sliceSerialize(te),Ce=this.data.characterReferenceType;let He;Ce?(He=s1(fe,Ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):He=qf(fe);const nt=this.stack[this.stack.length-1];nt.value+=He}function et(te){const fe=this.stack.pop();fe.position.end=va(te.end)}function Me(te){C.call(this,te);const fe=this.stack[this.stack.length-1];fe.url=this.sliceSerialize(te)}function Ve(te){C.call(this,te);const fe=this.stack[this.stack.length-1];fe.url="mailto:"+this.sliceSerialize(te)}function _e(){return{type:"blockquote",children:[]}}function qe(){return{type:"code",lang:null,meta:null,value:""}}function ve(){return{type:"inlineCode",value:""}}function Re(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ae(){return{type:"emphasis",children:[]}}function Be(){return{type:"heading",depth:0,children:[]}}function it(){return{type:"break"}}function Ye(){return{type:"html",value:""}}function Ue(){return{type:"image",title:null,url:"",alt:null}}function ct(){return{type:"link",title:null,url:"",children:[]}}function At(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 Ge(){return{type:"text",value:""}}function $t(){return{type:"thematicBreak"}}}function va(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):Sx(e,i)}}function Sx(e,t){let r;for(r in t)if(R1.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 N1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+il({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+il({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+il({start:t.start,end:t.end})+") is still open")}function Ax(e){const t=this;t.parser=r;function r(i){return yx(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Cx(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function _x(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
60
|
-
`}]}function
|
|
61
|
-
`:"",i={};t.lang&&(i.className=["language-"+t.lang]);let 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("")}const m4=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:bA},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:AA,42:gs,45:[x1,gs],60:RA,61:x1,95:gs,96:E1,126:E1},flowInitial:{[-2]:Wf,[-1]:Wf,32:Wf},insideSpan:{null:[Kf,o4]},string:{38:g1,92:m1},text:{[-5]:Jf,[-4]:Jf,[-3]:Jf,33:$A,38:g1,42:Kf,60:[G6,wA],91:GA,92:[SA,m1],93:Zf,95:Kf,96:uA}},Symbol.toStringTag,{value:"Module"}));function g4(e){const r=L6([m4,...(e||{}).extensions||[]]),i={defined:[],lazy:{},constructs:r,content:l(F6),document:l(Y6),flow:l(u4),string:l(s4),text:l(c4)};return i;function l(s){return c;function c(d){return d4(i,s,d)}}}function b4(e){for(;!y1(e););return e}const R1=/[\0\t\n\r]/g;function E4(){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 y4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function T4(e){return e.replace(y4,S4)}function S4(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 C4(e,t,r){return typeof t!="string"&&(r=t,t=void 0),A4(r)(b4(g4(r).document().write(E4()(e,t,!0))))}function A4(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ct),autolinkProtocol:j,autolinkEmail:j,atxHeading:s(Be),blockQuote:s(xe),characterEscape:j,characterReference:j,codeFenced:s(Ge),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(Ge,c),codeText:s(ve,c),codeTextData:j,data:j,codeFlowValue:j,definition:s(Re),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Ce),hardBreakEscape:s(it),hardBreakTrailing:s(it),htmlFlow:s(je,c),htmlFlowData:j,htmlText:s(je,c),htmlTextData:j,image:s(Ue),label:c,link:s(ct),listItem:s(rn),listItemValue:S,listOrdered:s(St,E),listUnordered:s(St),paragraph:s(_n),reference:D,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:A,characterReferenceMarkerHexadecimal:Oe,characterReferenceMarkerNumeric:Oe,characterReferenceValue:Se,characterReference:tt,codeFenced:p(L),codeFencedFence:_,codeFencedFenceInfo:y,codeFencedFenceMeta:O,codeFlowValue:A,codeIndented:p(R),codeText:p(re),codeTextData:A,data:A,definition:p(),definitionDestinationString:P,definitionLabelString:H,definitionTitleString:k,emphasis:p(),hardBreakEscape:p(K),hardBreakTrailing:p(K),htmlFlow:p(Q),htmlFlowData:A,htmlText:p(Z),htmlTextData:A,image:p(se),label:be,labelText:ne,lineEnding:V,link:p(X),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:ce,resourceDestinationString:C,resourceTitleString:J,resource:oe,setextHeading:p(ae),setextHeadingLineSequence:Y,setextHeadingText:M,strong:p(),thematicBreak:p()}};N1(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(ee){let de={type:"root",children:[]};const Ae={stack:[de],tokenStack:[],config:t,enter:d,exit:m,buffer:c,resume:b,data:r},He=[];let nt=-1;for(;++nt<ee.length;)if(ee[nt][1].type==="listOrdered"||ee[nt][1].type==="listUnordered")if(ee[nt][0]==="enter")He.push(nt);else{const Qe=He.pop();nt=l(ee,Qe,nt)}for(nt=-1;++nt<ee.length;){const Qe=t[ee[nt][0]];O1.call(Qe,ee[nt][1].type)&&Qe[ee[nt][1].type].call(Object.assign({sliceSerialize:ee[nt][2].sliceSerialize},Ae),ee[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(de.position={start:va(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:va(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},nt=-1;++nt<t.transforms.length;)de=t.transforms[nt](de)||de;return de}function l(ee,de,Ae){let He=de-1,nt=-1,Qe=!1,vn,an,Ft,ke;for(;++He<=Ae;){const _e=ee[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=ee[ze];if(Ke[1].type==="lineEnding"||Ke[1].type==="lineEndingBlank"){if(Ke[0]==="exit")continue;an&&(ee[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?ee[an][1].start:_e[1].end),ee.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,ee.splice(He,0,["enter",ze,_e[2]]),He++,Ae++,Ft=void 0,ke=!0}}}return ee[de][1]._spread=Qe,Ae}function s(ee,de){return Ae;function Ae(He){d.call(this,ee(He),He),de&&de.call(this,He)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(ee,de,Ae){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([de,Ae||void 0]),ee.position={start:va(de.start),end:void 0}}function p(ee){return de;function de(Ae){ee&&ee.call(this,Ae),m.call(this,Ae)}}function m(ee,de){const Ae=this.stack.pop(),He=this.tokenStack.pop();if(He)He[0].type!==ee.type&&(de?de.call(this,ee,He[0]):(He[1]||k1).call(this,ee,He[0]));else throw new Error("Cannot close `"+ee.type+"` ("+il({start:ee.start,end:ee.end})+"): it’s not open");Ae.position.end=va(ee.end)}function b(){return k6(this.stack.pop())}function E(){this.data.expectingFirstListItemValue=!0}function S(ee){if(this.data.expectingFirstListItemValue){const de=this.stack[this.stack.length-2];de.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function y(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.lang=ee}function O(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.meta=ee}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function L(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function R(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee.replace(/(\r?\n|\r)$/g,"")}function H(ee){const de=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=de,Ae.identifier=qi(this.sliceSerialize(ee)).toLowerCase()}function k(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.title=ee}function P(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.url=ee}function I(ee){const de=this.stack[this.stack.length-1];if(!de.depth){const Ae=this.sliceSerialize(ee).length;de.depth=Ae}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function Y(ee){const de=this.stack[this.stack.length-1];de.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function ae(){this.data.setextHeadingSlurpLineEnding=void 0}function j(ee){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(ee.start),end:void 0},Ae.push(He)),this.stack.push(He)}function A(ee){const de=this.stack.pop();de.value+=this.sliceSerialize(ee),de.position.end=va(ee.end)}function V(ee){const de=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ae=de.children[de.children.length-1];Ae.position.end=va(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(de.type)&&(j.call(this,ee),A.call(this,ee))}function K(){this.data.atHardBreak=!0}function Q(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function Z(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function re(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.value=ee}function X(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=de,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function se(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const de=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=de,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function ne(ee){const de=this.sliceSerialize(ee),Ae=this.stack[this.stack.length-2];Ae.label=T4(de),Ae.identifier=qi(de).toLowerCase()}function be(){const ee=this.stack[this.stack.length-1],de=this.resume(),Ae=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ae.type==="link"){const He=ee.children;Ae.children=He}else Ae.alt=de}function C(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.url=ee}function J(){const ee=this.resume(),de=this.stack[this.stack.length-1];de.title=ee}function oe(){this.data.inReference=void 0}function D(){this.data.referenceType="collapsed"}function ce(ee){const de=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=de,Ae.identifier=qi(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function Oe(ee){this.data.characterReferenceType=ee.type}function Se(ee){const de=this.sliceSerialize(ee),Ae=this.data.characterReferenceType;let He;Ae?(He=c1(de,Ae==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):He=qf(de);const nt=this.stack[this.stack.length-1];nt.value+=He}function tt(ee){const de=this.stack.pop();de.position.end=va(ee.end)}function Me(ee){A.call(this,ee);const de=this.stack[this.stack.length-1];de.url=this.sliceSerialize(ee)}function $e(ee){A.call(this,ee);const de=this.stack[this.stack.length-1];de.url="mailto:"+this.sliceSerialize(ee)}function xe(){return{type:"blockquote",children:[]}}function Ge(){return{type:"code",lang:null,meta:null,value:""}}function ve(){return{type:"inlineCode",value:""}}function Re(){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(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function rn(ee){return{type:"listItem",spread:ee._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):x4(e,i)}}function x4(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+"` ("+il({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+il({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+il({start:t.start,end:t.end})+") is still open")}function _4(e){const t=this;t.parser=r;function r(i){return C4(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function v4(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 R4(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
60
|
+
`}]}function O4(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 N4(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function k4(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function D4(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=Gi(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 L4(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 I4(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 w4(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return D1(e,t);const l={src:Gi(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 M4(e,t){const r={src:Gi(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 B4(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 P4(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return D1(e,t);const l={href:Gi(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 U4(e,t){const r={href:Gi(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 H4(e,t,r){const i=e.all(t),l=r?F4(r):L1(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 F4(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=L1(r[i])}return t}function L1(e){const t=e.spread;return t??e.children.length>1}function z4(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 Y4(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function j4(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function V4(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function $4(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=Ur(t.children[1]),p=ps(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 q4(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],S={},y=c?c[p]:void 0;y&&(S.align=y);let O={type:"element",tagName:s,properties:S,children:[]};E&&(O.children=e.all(E),e.patch(E,O),O=e.applyData(E,O)),m.push(O)}const b={type:"element",tagName:"tr",properties:{},children:e.wrap(m,!0)};return e.patch(t,b),e.applyData(t,b)}function G4(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const I1=9,w1=32;function X4(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),l=0;const s=[];for(;i;)s.push(M1(t.slice(l,i.index),l>0,!0),i[0]),l=i.index+i[0].length,i=r.exec(t);return s.push(M1(t.slice(l),l>0,!1)),s.join("")}function M1(e,t,r){let i=0,l=e.length;if(t){let s=e.codePointAt(i);for(;s===I1||s===w1;)i++,s=e.codePointAt(i)}if(r){let s=e.codePointAt(l-1);for(;s===I1||s===w1;)l--,s=e.codePointAt(l-1)}return l>i?e.slice(i,l):""}function Q4(e,t){const r={type:"text",value:X4(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function K4(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const W4={blockquote:v4,break:R4,code:O4,delete:N4,emphasis:k4,footnoteReference:D4,heading:L4,html:I4,imageReference:w4,image:M4,inlineCode:B4,linkReference:P4,link:U4,listItem:H4,list:z4,paragraph:Y4,root:j4,strong:V4,table:$4,tableCell:G4,tableRow:q4,text:Q4,thematicBreak:K4,toml:bs,yaml:bs,definition:bs,footnoteDefinition:bs};function bs(){}const B1=-1,Es=0,ys=1,Ts=2,ed=3,td=4,nd=5,rd=6,P1=7,U1=8,H1=typeof self=="object"?self:globalThis,Z4=(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 Es:case B1:return r(c,l);case ys:{const d=r([],l);for(const p of c)d.push(i(p));return d}case Ts:{const d=r({},l);for(const[p,m]of c)d[i(p)]=i(m);return d}case ed:return r(new Date(c),l);case td:{const{source:d,flags:p}=c;return r(new RegExp(d,p),l)}case nd:{const d=r(new Map,l);for(const[p,m]of c)d.set(i(p),i(m));return d}case rd:{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)}return r(new H1[s](c),l)};return i},F1=e=>Z4(new Map,e)(0),Xi="",{toString:J4}={},{keys:ex}=Object,cl=e=>{const t=typeof e;if(t!=="object"||!e)return[Es,t];const r=J4.call(e).slice(8,-1);switch(r){case"Array":return[ys,Xi];case"Object":return[Ts,Xi];case"Date":return[ed,Xi];case"RegExp":return[td,Xi];case"Map":return[nd,Xi];case"Set":return[rd,Xi]}return r.includes("Array")?[ys,r]:r.includes("Error")?[P1,r]:[Ts,r]},Ss=([e,t])=>e===Es&&(t==="function"||t==="symbol"),tx=(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]=cl(c);switch(d){case Es:{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 ys:{if(p)return l([p,[...c]],c);const b=[],E=l([d,b],c);for(const S of c)b.push(s(S));return E}case Ts:{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 S of ex(c))(e||!Ss(cl(c[S])))&&b.push([s(S),s(c[S])]);return E}case ed:return l([d,c.toISOString()],c);case td:{const{source:b,flags:E}=c;return l([d,{source:b,flags:E}],c)}case nd:{const b=[],E=l([d,b],c);for(const[S,y]of c)(e||!(Ss(cl(S))||Ss(cl(y))))&&b.push([s(S),s(y)]);return E}case rd:{const b=[],E=l([d,b],c);for(const S of c)(e||!Ss(cl(S)))&&b.push(s(S));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 tx(!(t||r),!!t,new Map,i)(e),i},Qi=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 nx(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 rx(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function ax(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||nx,i=e.options.footnoteBackLabel||rx,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(),S=Gi(E.toLowerCase());let y=0;const O=[],_=e.footnoteCounts.get(E);for(;_!==void 0&&++y<=_;){O.length>0&&O.push({type:"text",value:" "});let H=typeof r=="string"?r:r(p,y);typeof H=="string"&&(H={type:"text",value:H}),O.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+S+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(p,y),className:["data-footnote-backref"]},children:Array.isArray(H)?H:[H]})}const L=b[b.length-1];if(L&&L.type==="element"&&L.tagName==="p"){const H=L.children[L.children.length-1];H&&H.type==="text"?H.value+=" ":L.children.push({type:"text",value:" "}),L.children.push(...O)}else b.push(...O);const R={type:"element",tagName:"li",properties:{id:t+"fn-"+S},children:e.wrap(b,!0)};e.patch(m,R),d.push(R)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Qi(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
|
|
65
|
+
`}]}}const Y1=function(e){if(e==null)return ox;if(typeof e=="function")return Cs(e);if(typeof e=="object")return Array.isArray(e)?ix(e):ux(e);if(typeof e=="string")return lx(e);throw new Error("Expected function, string, or object as test")};function ix(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Y1(e[r]);return Cs(i);function i(...l){let s=-1;for(;++s<t.length;)if(t[s].apply(this,l))return!0;return!1}}function ux(e){const t=e;return Cs(r);function r(i){const l=i;let s;for(s in e)if(l[s]!==t[s])return!1;return!0}}function lx(e){return Cs(t);function t(r){return r&&r.type===e}}function Cs(e){return t;function t(r,i,l){return!!(sx(r)&&e.call(this,r,typeof i=="number"?i:void 0,l||void 0))}}function ox(){return!0}function sx(e){return e!==null&&typeof e=="object"&&"type"in e}function JM(e){return e}const j1=[],cx=!0,V1=!1,fx="skip";function dx(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(S,"name",{value:"node ("+(p.type+(y?"<"+y+">":""))+")"})}return S;function S(){let y=j1,O,_,L;if((!t||s(p,m,b[b.length-1]||void 0))&&(y=hx(r(p,b)),y[0]===V1))return y;if("children"in p&&p.children){const R=p;if(R.children&&y[0]!==fx)for(_=(i?R.children.length:-1)+c,L=b.concat(R);_>-1&&_<R.children.length;){const H=R.children[_];if(O=d(H,_,L)(),O[0]===V1)return O;_=typeof O[1]=="number"?O[1]:_+c}}return y}}}function hx(e){return Array.isArray(e)?e:typeof e=="number"?[cx,e]:e==null?j1:[e]}function ad(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),dx(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 id={}.hasOwnProperty,px={};function mx(e,t){const r=t||px,i=new Map,l=new Map,s=new Map,c={...W4,...r.handlers},d={all:m,applyData:bx,definitionById:i,footnoteById:l,footnoteCounts:s,footnoteOrder:[],handlers:c,one:p,options:r,patch:gx,wrap:yx};return ad(e,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const E=b.type==="definition"?i:l,S=String(b.identifier).toUpperCase();E.has(S)||E.set(S,b)}}),d;function p(b,E){const S=b.type,y=d.handlers[S];if(id.call(d.handlers,S)&&y)return y(d,b,E);if(d.options.passThrough&&d.options.passThrough.includes(S)){if("children"in b){const{children:_,...L}=b,R=Qi(L);return R.children=d.all(b),R}return Qi(b)}return(d.options.unknownHandler||Ex)(d,b,E)}function m(b){const E=[];if("children"in b){const S=b.children;let y=-1;for(;++y<S.length;){const O=d.one(S[y],b);if(O){if(y&&S[y-1].type==="break"&&(!Array.isArray(O)&&O.type==="text"&&(O.value=$1(O.value)),!Array.isArray(O)&&O.type==="element")){const _=O.children[0];_&&_.type==="text"&&(_.value=$1(_.value))}Array.isArray(O)?E.push(...O):E.push(O)}}}return E}}function gx(e,t){e.position&&(t.position=a6(e))}function bx(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,Qi(s)),"children"in r&&r.children&&l!==null&&l!==void 0&&(r.children=l)}return r}function Ex(e,t){const r=t.data||{},i="value"in t&&!(id.call(r,"hProperties")||id.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 yx(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 b6(e,t){return e&&"run"in e?async function(r,i){const l=$1(r,{file:i,...t});await e.run(l,i)}:function(r,i){return $1(r,{file:i,...e||t})}}function q1(e){if(e)throw e}var ud,G1;function E6(){if(G1)return ud;G1=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 ud=function p(){var m,b,E,T,y,O,x=arguments[0],k=1,R=arguments.length,H=!1;for(typeof x=="boolean"&&(H=x,x=arguments[1]||{},k=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});k<R;++k)if(m=arguments[k],m!=null)for(b in m)E=d(x,b),T=d(m,b),x!==T&&(H&&T&&(s(T)||(y=l(T)))?(y?(y=!1,O=E&&l(E)?E:[]):O=E&&s(E)?E:{},c(x,{name:b,newValue:p(H,O,T)})):typeof T<"u"&&c(x,{name:b,newValue:T}));return x},ud}var y6=E6();const ld=ir(y6);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 T6(){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?S6(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 S6(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:A6,dirname:C6,extname:_6,join:x6,sep:"/"};function A6(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');fl(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 C6(e){if(fl(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 _6(e){fl(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 x6(...e){let t=-1,r;for(;++t<e.length;)fl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":v6(r)}function v6(e){fl(e);const t=e.codePointAt(0)===47;let r=R6(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function R6(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 fl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const O6={cwd:N6};function N6(){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 k6(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 D6(e)}function D6(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 X1{constructor(t){let r;t?sd(t)?r={path:t}:typeof t=="string"||I6(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":O6.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){Q1(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"),Q1(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=k6(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 Q1(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function I6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const L6=function(e){const i=this.constructor.prototype,l=i[e],s=function(){return l.apply(s,arguments)};return Object.setPrototypeOf(s,i),s},w6={}.hasOwnProperty;class hd extends L6{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=T6()}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):w6.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=Cs(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=Cs(t),p=i.parse(d);i.run(p,d,function(b,E,T){if(b||!E||!T)return m(b);const y=E,O=i.stringify(y,T);P6(O)?T.value=O:T.result=O,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(),pd("processSync",this.parser||this.Parser),md("processSync",this.compiler||this.Compiler),this.process(t,l),W1("processSync","process",r),i;function l(s,c){r=!0,q1(s),i=c}}run(t,r,i){K1(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=Cs(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),W1("runSync","run",i),l;function s(c,d){q1(c),l=d,i=!0}}stringify(t,r){this.freeze();const i=Cs(r),l=this.compiler||this.Compiler;return md("stringify",l),K1(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,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,...O]=b;const x=i[T][1];od(x)&&od(y)&&(y=ld(!0,x,y)),i[T]=[m,y,...O]}}}}const M6=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 K1(e){if(!od(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function W1(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Cs(e){return B6(e)?e:new X1(e)}function B6(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function P6(e){return typeof e=="string"||U6(e)}function U6(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const H6="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Z1=[],J1={allowDangerousHtml:!0},F6=/^(https?|ircs?|mailto|xmpp)$/i,z6=[{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 eg(e){const t=Y6(e),r=j6(e);return V6(t.runSync(t.parse(r),r),e)}function Y6(e){const t=e.rehypePlugins||Z1,r=e.remarkPlugins||Z1,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...J1}:J1;return M6().use(Ax).use(r).use(b6,i).use(t)}function j6(e){const t=e.children||"",r=new X1;return typeof t=="string"&&(r.value=t),r}function V6(e,t){const r=t.allowedElements,i=t.allowElement,l=t.components,s=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,p=t.urlTransform||$6;for(const b of z6)Object.hasOwn(t,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+H6+b.id,void 0);return ad(e,m),l3(e,{Fragment:me.Fragment,components:l,ignoreInvalidStyle:!0,jsx:me.jsx,jsxs:me.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 Vf)if(Object.hasOwn(Vf,y)&&Object.hasOwn(b.properties,y)){const O=b.properties[y],x=Vf[y];(x===null||x.includes(b.tagName))&&(b.properties[y]=p(String(O||""),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 $6(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||F6.test(e.slice(0,t))?e:""}let dl=class{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}};dl.prototype.normal={},dl.prototype.property={},dl.prototype.space=void 0;function tg(e,t){const r={},i={};for(const l of e)Object.assign(r,l.property),Object.assign(i,l.normal);return new dl(r,i,t)}function hl(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 q6=0;const We=ui(),en=ui(),ng=ui(),Ee=ui(),It=ui(),Xi=ui(),Qn=ui();function ui(){return 2**++q6}const bd=Object.freeze(Object.defineProperty({__proto__:null,boolean:We,booleanish:en,commaOrSpaceSeparated:Qn,commaSeparated:Xi,number:Ee,overloadedBoolean:ng,spaceSeparated:It},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),rg(this,"space",l),typeof i=="number")for(;++s<Ed.length;){const c=Ed[s];rg(this,Ed[s],(i&bd[c])===bd[c])}}};yd.prototype.defined=!0;function rg(e,t,r){r&&(e[t]=r)}function Qi(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[hl(i)]=i,r[hl(s.attribute)]=i}return new dl(t,r,e.space)}const ag=Qi({properties:{ariaActiveDescendant:null,ariaAtomic:en,ariaAutoComplete:null,ariaBusy:en,ariaChecked:en,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:It,ariaCurrent:null,ariaDescribedBy:It,ariaDetails:null,ariaDisabled:en,ariaDropEffect:It,ariaErrorMessage:null,ariaExpanded:en,ariaFlowTo:It,ariaGrabbed:en,ariaHasPopup:null,ariaHidden:en,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:It,ariaLevel:Ee,ariaLive:null,ariaModal:en,ariaMultiLine:en,ariaMultiSelectable:en,ariaOrientation:null,ariaOwns:It,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:en,ariaReadOnly:en,ariaRelevant:null,ariaRequired:en,ariaRoleDescription:It,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 ig(e,t){return t in e?e[t]:t}function ug(e,t){return ig(e,t.toLowerCase())}const G6=Qi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xi,acceptCharset:It,accessKey:It,action:null,allow:null,allowFullScreen:We,allowPaymentRequest:We,allowUserMedia:We,alt:null,as:null,async:We,autoCapitalize:null,autoComplete:It,autoFocus:We,autoPlay:We,blocking:It,capture:null,charSet:null,checked:We,cite:null,className:It,cols:Ee,colSpan:null,content:null,contentEditable:en,controls:We,controlsList:It,coords:Ee|Xi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:ng,draggable:en,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:We,formTarget:null,headers:It,height:Ee,hidden:We,high:Ee,href:null,hrefLang:null,htmlFor:It,httpEquiv:It,id:null,imageSizes:null,imageSrcSet:null,inert:We,inputMode:null,integrity:null,is:null,isMap:We,itemId:null,itemProp:It,itemRef:It,itemScope:We,itemType:It,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:We,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,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:Ee,pattern:null,ping:It,placeholder:null,playsInline:We,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:We,referrerPolicy:null,rel:It,required:We,reversed:We,rows:Ee,rowSpan:Ee,sandbox:It,scope:null,scoped:We,seamless:We,selected:We,shadowRootClonable:We,shadowRootDelegatesFocus:We,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:We,useMap:null,value:en,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:It,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:We,declare:We,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:We,noHref:We,noShade:We,noWrap:We,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:We,disableRemotePlayback:We,prefix:null,property:null,results:Ee,security:null,unselectable:null},space:"html",transform:ug}),X6=Qi({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:Qn,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: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:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:We,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:Xi,g2:Xi,glyphName:Xi,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:Qn,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:It,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qn,rev:Qn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qn,requiredFeatures:Qn,requiredFonts:Qn,requiredFormats:Qn,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:Qn,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:Qn,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:Qn,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:ig}),lg=Qi({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()}}),og=Qi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ug}),sg=Qi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Q6=/[A-Z]/g,cg=/-[a-z]/g,K6=/^data[-\w.:]+$/i;function fg(e,t){const r=hl(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"&&K6.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(cg,Z6);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!cg.test(s)){let c=s.replace(Q6,W6);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=yd}return new l(i,t)}function W6(e){return"-"+e.toLowerCase()}function Z6(e){return e.charAt(1).toUpperCase()}const Td=tg([ag,G6,lg,og,sg],"html"),Sd=tg([ag,X6,lg,og,sg],"svg"),dg=/[#.]/g;function J6(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?r4(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=J6(s,t);const m=p.tagName.toLowerCase(),b=i?i.get(m):void 0;if(p.tagName=b||m,e4(c))d.unshift(c);else for(const[E,T]of Object.entries(c))t4(e,p.properties,E,T)}for(const m of d)Ad(p.children,m);return p.type==="element"&&p.tagName==="template"&&(p.content={type:"root",children:p.children},p.children=[]),p}return l}function e4(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 t4(e,t,r,i){const l=fg(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=$m(i):l.commaSeparated?s=Dm(i):l.commaOrSpaceSeparated?s=$m(Dm(i).join(" ")):s=pg(l,l.property,i):Array.isArray(i)?s=[...i]:s=l.property==="style"?n4(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 Ad(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)Ad(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Ad(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===""||hl(r)===hl(t)))return!0}return r}function n4(e){const t=[];for(const[r,i]of Object.entries(e))t.push([r,i].join(": "));return t.join("; ")}function r4(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const a4=["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"],i4=hg(Td,"div"),u4=hg(Sd,"g",a4);function l4(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=mg(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=mg(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 mg(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 li={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/"},gg={}.hasOwnProperty,o4=Object.prototype;function s4(e,t){const r=t;return Cd({file:r.file||void 0,location:!1,schema:r.space==="svg"?Sd:Td,verbose:r.verbose||!1},e)}function Cd(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:bg(e,t.childNodes),data:{quirksMode:l}},e.file&&e.location){const s=String(e.file),c=l4(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=c4(e,t),r}}function bg(e,t){let r=-1;const i=[];for(;++r<t.length;){const l=Cd(e,t[r]);i.push(l)}return i}function c4(e,t){const r=e.schema;e.schema=t.namespaceURI===li.svg?Sd:Td;let i=-1;const l={};for(;++i<t.attrs.length;){const d=t.attrs[i],p=(d.prefix?d.prefix+":":"")+d.name;gg.call(o4,p)||(l[p]=d.value)}const c=(e.schema.space==="svg"?u4:i4)(t.tagName,l,bg(e,t.childNodes));if(_s(e,t,c),c.tagName==="template"){const d=t,p=d.sourceCodeLocation,m=p&&p.startTag&&Ki(p.startTag),b=p&&p.endTag&&Ki(p.endTag),E=Cd(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=f4(e,r,t.sourceCodeLocation);i&&(e.location=!0,r.position=i)}}function f4(e,t,r){const i=Ki(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)gg.call(r.attrs,c)&&(s[fg(e.schema,c).property]=Ki(r.attrs[c]));r.startTag;const d=Ki(r.startTag),p=r.endTag?Ki(r.endTag):void 0,m={opening:d};p&&(m.closing=p),m.properties=s,t.data={position:m}}}return i}function Ki(e){const t=Eg({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=Eg({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function Eg(e){return e.line&&e.column?e:void 0}class pl{constructor(t,r,i){this.property=t,this.normal=r,i&&(this.space=i)}}pl.prototype.property={},pl.prototype.normal={},pl.prototype.space=null;function yg(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 pl(r,i,t)}function _d(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 d4=0;const Ze=oi(),tn=oi(),Tg=oi(),ye=oi(),Lt=oi(),Wi=oi(),Kn=oi();function oi(){return 2**++d4}const xd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ze,booleanish:tn,commaOrSpaceSeparated:Kn,commaSeparated:Wi,number:ye,overloadedBoolean:Tg,spaceSeparated:Lt},Symbol.toStringTag,{value:"Module"})),vd=Object.keys(xd);class Rd extends sr{constructor(t,r,i,l){let s=-1;if(super(t,r),Sg(this,"space",l),typeof i=="number")for(;++s<vd.length;){const c=vd[s];Sg(this,vd[s],(i&xd[c])===xd[c])}}}Rd.prototype.defined=!0;function Sg(e,t,r){r&&(e[t]=r)}const h4={}.hasOwnProperty;function Zi(e){const t={},r={};let i;for(i in e.properties)if(h4.call(e.properties,i)){const l=e.properties[i],s=new Rd(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[_d(i)]=i,r[_d(s.attribute)]=i}return new pl(t,r,e.space)}const Ag=Zi({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}}),Cg=Zi({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function _g(e,t){return t in e?e[t]:t}function xg(e,t){return _g(e,t.toLowerCase())}const vg=Zi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:xg,properties:{xmlns:null,xmlnsXLink:null}}),Rg=Zi({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:tn,ariaAutoComplete:null,ariaBusy:tn,ariaChecked:tn,ariaColCount:ye,ariaColIndex:ye,ariaColSpan:ye,ariaControls:Lt,ariaCurrent:null,ariaDescribedBy:Lt,ariaDetails:null,ariaDisabled:tn,ariaDropEffect:Lt,ariaErrorMessage:null,ariaExpanded:tn,ariaFlowTo:Lt,ariaGrabbed:tn,ariaHasPopup:null,ariaHidden:tn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Lt,ariaLevel:ye,ariaLive:null,ariaModal:tn,ariaMultiLine:tn,ariaMultiSelectable:tn,ariaOrientation:null,ariaOwns:Lt,ariaPlaceholder:null,ariaPosInSet:ye,ariaPressed:tn,ariaReadOnly:tn,ariaRelevant:null,ariaRequired:tn,ariaRoleDescription:Lt,ariaRowCount:ye,ariaRowIndex:ye,ariaRowSpan:ye,ariaSelected:tn,ariaSetSize:ye,ariaSort:null,ariaValueMax:ye,ariaValueMin:ye,ariaValueNow:ye,ariaValueText:null,role:null}}),p4=Zi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:xg,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wi,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:ye,colSpan:null,content:null,contentEditable:tn,controls:Ze,controlsList:Lt,coords:ye|Wi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ze,defer:Ze,dir:null,dirName:null,disabled:Ze,download:Tg,draggable:tn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ze,formTarget:null,headers:Lt,height:ye,hidden:Ze,high:ye,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:ye,manifest:null,max:null,maxLength:ye,media:null,method:null,min:null,minLength:ye,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:ye,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:ye,rowSpan:ye,sandbox:Lt,scope:null,scoped:Ze,seamless:Ze,selected:Ze,shadowRootClonable:Ze,shadowRootDelegatesFocus:Ze,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:Ze,useMap:null,value:tn,width:ye,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Lt,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:Ze,declare:Ze,event:null,face:null,frame:null,frameBorder:null,hSpace:ye,leftMargin:ye,link:null,longDesc:null,lowSrc:null,marginHeight:ye,marginWidth:ye,noResize:Ze,noHref:Ze,noShade:Ze,noWrap:Ze,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:Ze,disableRemotePlayback:Ze,prefix:null,property:null,results:ye,security:null,unselectable:null}}),m4=Zi({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:_g,properties:{about:Kn,accentHeight:ye,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ye,amplitude:ye,arabicForm:null,ascent:ye,attributeName:null,attributeType:null,azimuth:ye,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ye,by:null,calcMode:null,capHeight:ye,className: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:ye,diffuseConstant:ye,direction:null,display:null,dur:null,divisor:ye,dominantBaseline:null,download:Ze,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:Wi,g2:Wi,glyphName:Wi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ye,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ye,horizOriginX:ye,horizOriginY:ye,id:null,ideographic:ye,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ye,k:ye,k1:ye,k2:ye,k3:ye,k4:ye,kernelMatrix:Kn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ye,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ye,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ye,overlineThickness:ye,paintOrder:null,panose1:null,path:null,pathLength:ye,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Lt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ye,pointsAtY:ye,pointsAtZ:ye,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kn,rev:Kn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kn,requiredFeatures:Kn,requiredFonts:Kn,requiredFormats:Kn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ye,specularExponent:ye,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ye,strikethroughThickness:ye,string:null,stroke:null,strokeDashArray:Kn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ye,strokeOpacity:ye,strokeWidth:null,style:null,surfaceScale:ye,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kn,tabIndex:ye,tableValues:null,target:null,targetX:ye,targetY:ye,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ye,underlineThickness:ye,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ye,values:null,vAlphabetic:ye,vMathematical:ye,vectorEffect:null,vHanging:ye,vIdeographic:ye,version:null,vertAdvY:ye,vertOriginX:ye,vertOriginY:ye,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ye,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),g4=/^data[-\w.:]+$/i,Og=/-[a-z]/g,b4=/[A-Z]/g;function E4(e,t){const r=_d(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"&&g4.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(Og,T4);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!Og.test(s)){let c=s.replace(b4,y4);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=Rd}return new l(i,t)}function y4(e){return"-"+e.toLowerCase()}function T4(e){return e.charAt(1).toUpperCase()}const S4=yg([Cg,Ag,vg,Rg,p4],"html"),Ng=yg([Cg,Ag,vg,Rg,m4],"svg"),kg={}.hasOwnProperty;function Dg(e,t){const r=t||{};function i(l,...s){let c=i.invalid;const d=i.handlers;if(l&&kg.call(l,e)){const p=String(l[e]);c=kg.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 A4={}.hasOwnProperty,Ig=Dg("type",{handlers:{root:_4,element:N4,text:R4,comment:O4,doctype:v4}});function C4(e,t){const i=t.space;return Ig(e,i==="svg"?Ng:S4)}function _4(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=Od(e.children,r,t),Ji(e,r),r}function x4(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=Od(e.children,r,t),Ji(e,r),r}function v4(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Ji(e,t),t}function R4(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Ji(e,t),t}function O4(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Ji(e,t),t}function N4(e,t){const r=t;let i=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ng);const l=[];let s;if(e.properties){for(s in e.properties)if(s!=="children"&&A4.call(e.properties,s)){const p=k4(i,s,e.properties[s]);p&&l.push(p)}}const c=i.space,d={nodeName:e.tagName,tagName:e.tagName,attrs:l,namespaceURI:li[c],childNodes:[],parentNode:null};return d.childNodes=Od(e.children,d,i),Ji(e,d),e.tagName==="template"&&e.content&&(d.content=x4(e.content,i)),d}function k4(e,t,r){const i=E4(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?Im(r):qm(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=li[i.space]}return l}function Od(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 Ji(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 D4=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],I4=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 N;(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"})(N||(N={}));const Mn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Lg(e){return e>=55296&&e<=57343}function L4(e){return e>=56320&&e<=57343}function w4(e,t){return(e-55296)*1024+9216+t}function wg(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Mg(e){return e>=64976&&e<=65007||I4.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 M4=65536;class B4{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=M4,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(L4(r))return this.pos++,this._addGap(),w4(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,N.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,N.EOF;const i=this.html.charCodeAt(r);return i===N.CARRIAGE_RETURN?N.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,N.EOF;let t=this.html.charCodeAt(this.pos);return t===N.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,N.LINE_FEED):t===N.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Lg(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===N.LINE_FEED||t===N.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){wg(t)?this._err(ne.controlCharacterInInputStream):Mg(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 Bg(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 Pg=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))),P4=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Nd;const U4=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]]),H4=(Nd=String.fromCodePoint)!==null&&Nd!==void 0?Nd: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 F4(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=U4.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 z4=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 kd(e){return e>=fn.ZERO&&e<=fn.NINE}function Y4(e){return e>=fn.UPPER_A&&e<=fn.UPPER_F||e>=fn.LOWER_A&&e<=fn.LOWER_F}function j4(e){return e>=fn.UPPER_A&&e<=fn.UPPER_Z||e>=fn.LOWER_A&&e<=fn.LOWER_Z||kd(e)}function V4(e){return e===fn.EQUALS||j4(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 Ug{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)|z4)===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(kd(l)||Y4(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(kd(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(F4(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=$4(i,l,this.treeIndex+Math.max(1,s),c),this.treeIndex<0)return this.result===0||this.decodeMode===na.Attribute&&(s===0||V4(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 Hg(e){let t="";const r=new Ug(e,i=>t+=H4(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 $4(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}Hg(Pg),Hg(P4);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 q;(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"})(q||(q={}));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 q4=new Map([[q.A,g.A],[q.ADDRESS,g.ADDRESS],[q.ANNOTATION_XML,g.ANNOTATION_XML],[q.APPLET,g.APPLET],[q.AREA,g.AREA],[q.ARTICLE,g.ARTICLE],[q.ASIDE,g.ASIDE],[q.B,g.B],[q.BASE,g.BASE],[q.BASEFONT,g.BASEFONT],[q.BGSOUND,g.BGSOUND],[q.BIG,g.BIG],[q.BLOCKQUOTE,g.BLOCKQUOTE],[q.BODY,g.BODY],[q.BR,g.BR],[q.BUTTON,g.BUTTON],[q.CAPTION,g.CAPTION],[q.CENTER,g.CENTER],[q.CODE,g.CODE],[q.COL,g.COL],[q.COLGROUP,g.COLGROUP],[q.DD,g.DD],[q.DESC,g.DESC],[q.DETAILS,g.DETAILS],[q.DIALOG,g.DIALOG],[q.DIR,g.DIR],[q.DIV,g.DIV],[q.DL,g.DL],[q.DT,g.DT],[q.EM,g.EM],[q.EMBED,g.EMBED],[q.FIELDSET,g.FIELDSET],[q.FIGCAPTION,g.FIGCAPTION],[q.FIGURE,g.FIGURE],[q.FONT,g.FONT],[q.FOOTER,g.FOOTER],[q.FOREIGN_OBJECT,g.FOREIGN_OBJECT],[q.FORM,g.FORM],[q.FRAME,g.FRAME],[q.FRAMESET,g.FRAMESET],[q.H1,g.H1],[q.H2,g.H2],[q.H3,g.H3],[q.H4,g.H4],[q.H5,g.H5],[q.H6,g.H6],[q.HEAD,g.HEAD],[q.HEADER,g.HEADER],[q.HGROUP,g.HGROUP],[q.HR,g.HR],[q.HTML,g.HTML],[q.I,g.I],[q.IMG,g.IMG],[q.IMAGE,g.IMAGE],[q.INPUT,g.INPUT],[q.IFRAME,g.IFRAME],[q.KEYGEN,g.KEYGEN],[q.LABEL,g.LABEL],[q.LI,g.LI],[q.LINK,g.LINK],[q.LISTING,g.LISTING],[q.MAIN,g.MAIN],[q.MALIGNMARK,g.MALIGNMARK],[q.MARQUEE,g.MARQUEE],[q.MATH,g.MATH],[q.MENU,g.MENU],[q.META,g.META],[q.MGLYPH,g.MGLYPH],[q.MI,g.MI],[q.MO,g.MO],[q.MN,g.MN],[q.MS,g.MS],[q.MTEXT,g.MTEXT],[q.NAV,g.NAV],[q.NOBR,g.NOBR],[q.NOFRAMES,g.NOFRAMES],[q.NOEMBED,g.NOEMBED],[q.NOSCRIPT,g.NOSCRIPT],[q.OBJECT,g.OBJECT],[q.OL,g.OL],[q.OPTGROUP,g.OPTGROUP],[q.OPTION,g.OPTION],[q.P,g.P],[q.PARAM,g.PARAM],[q.PLAINTEXT,g.PLAINTEXT],[q.PRE,g.PRE],[q.RB,g.RB],[q.RP,g.RP],[q.RT,g.RT],[q.RTC,g.RTC],[q.RUBY,g.RUBY],[q.S,g.S],[q.SCRIPT,g.SCRIPT],[q.SEARCH,g.SEARCH],[q.SECTION,g.SECTION],[q.SELECT,g.SELECT],[q.SOURCE,g.SOURCE],[q.SMALL,g.SMALL],[q.SPAN,g.SPAN],[q.STRIKE,g.STRIKE],[q.STRONG,g.STRONG],[q.STYLE,g.STYLE],[q.SUB,g.SUB],[q.SUMMARY,g.SUMMARY],[q.SUP,g.SUP],[q.TABLE,g.TABLE],[q.TBODY,g.TBODY],[q.TEMPLATE,g.TEMPLATE],[q.TEXTAREA,g.TEXTAREA],[q.TFOOT,g.TFOOT],[q.TD,g.TD],[q.TH,g.TH],[q.THEAD,g.THEAD],[q.TITLE,g.TITLE],[q.TR,g.TR],[q.TRACK,g.TRACK],[q.TT,g.TT],[q.U,g.U],[q.UL,g.UL],[q.SVG,g.SVG],[q.VAR,g.VAR],[q.WBR,g.WBR],[q.XMP,g.XMP]]);function eu(e){var t;return(t=q4.get(e))!==null&&t!==void 0?t:g.UNKNOWN}const ge=g,G4={[he.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]),[he.MATHML]:new Set([ge.MI,ge.MO,ge.MN,ge.MS,ge.MTEXT,ge.ANNOTATION_XML]),[he.SVG]:new Set([ge.TITLE,ge.FOREIGN_OBJECT,ge.DESC]),[he.XLINK]:new Set,[he.XML]:new Set,[he.XMLNS]:new Set},Dd=new Set([ge.H1,ge.H2,ge.H3,ge.H4,ge.H5,ge.H6]);q.STYLE,q.SCRIPT,q.XMP,q.IFRAME,q.NOEMBED,q.NOFRAMES,q.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 X4(e){return e>=N.DIGIT_0&&e<=N.DIGIT_9}function ml(e){return e>=N.LATIN_CAPITAL_A&&e<=N.LATIN_CAPITAL_Z}function Q4(e){return e>=N.LATIN_SMALL_A&&e<=N.LATIN_SMALL_Z}function Oa(e){return Q4(e)||ml(e)}function Fg(e){return Oa(e)||X4(e)}function xs(e){return e+32}function zg(e){return e===N.SPACE||e===N.LINE_FEED||e===N.TABULATION||e===N.FORM_FEED}function Yg(e){return zg(e)||e===N.SOLIDUS||e===N.GREATER_THAN_SIGN}function K4(e){return e===N.NULL?ne.nullCharacterReference:e>1114111?ne.characterReferenceOutsideUnicodeRange:Lg(e)?ne.surrogateCharacterReference:Mg(e)?ne.noncharacterCharacterReference:wg(e)||e===N.CARRIAGE_RETURN?ne.controlCharacterReference:null}class W4{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 B4(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Ug(Pg,(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=K4(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(Bg(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=eu(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=zg(t)?at.WHITESPACE_CHARACTER:t===N.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 N.LESS_THAN_SIGN:{this.state=w.TAG_OPEN;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this._emitCodePoint(t);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case N.AMPERSAND:{this._startCharacterReference();break}case N.LESS_THAN_SIGN:{this.state=w.RCDATA_LESS_THAN_SIGN;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Pt);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case N.LESS_THAN_SIGN:{this.state=w.RAWTEXT_LESS_THAN_SIGN;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Pt);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_LESS_THAN_SIGN;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Pt);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case N.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Pt);break}case N.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 N.EXCLAMATION_MARK:{this.state=w.MARKUP_DECLARATION_OPEN;break}case N.SOLIDUS:{this.state=w.END_TAG_OPEN;break}case N.QUESTION_MARK:{this._err(ne.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t);break}case N.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 N.GREATER_THAN_SIGN:{this._err(ne.missingEndTagName),this.state=w.DATA;break}case N.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=w.BEFORE_ATTRIBUTE_NAME;break}case N.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case N.NULL:{this._err(ne.unexpectedNullCharacter),r.tagName+=Pt;break}case N.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(ml(t)?xs(t):t)}}_stateRcdataLessThanSign(t){t===N.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=w.BEFORE_ATTRIBUTE_NAME,!1;case N.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=w.SELF_CLOSING_START_TAG,!1;case N.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===N.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 N.SOLIDUS:{this.state=w.SCRIPT_DATA_END_TAG_OPEN;break}case N.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===N.HYPHEN_MINUS?(this.state=w.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===N.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 N.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Pt);break}case N.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case N.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(Pt);break}case N.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case N.HYPHEN_MINUS:{this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.GREATER_THAN_SIGN:{this.state=w.SCRIPT_DATA,this._emitChars(">");break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(Pt);break}case N.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===N.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(Mn.SCRIPT,!1)&&Yg(this.preprocessor.peek(Mn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Mn.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 N.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Pt);break}case N.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case N.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Pt);break}case N.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case N.HYPHEN_MINUS:{this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.GREATER_THAN_SIGN:{this.state=w.SCRIPT_DATA,this._emitChars(">");break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Pt);break}case N.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===N.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(Mn.SCRIPT,!1)&&Yg(this.preprocessor.peek(Mn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Mn.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.SOLIDUS:case N.GREATER_THAN_SIGN:case N.EOF:{this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case N.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:case N.SOLIDUS:case N.GREATER_THAN_SIGN:case N.EOF:{this._leaveAttrName(),this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case N.EQUALS_SIGN:{this._leaveAttrName(),this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case N.QUOTATION_MARK:case N.APOSTROPHE:case N.LESS_THAN_SIGN:{this._err(ne.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.name+=Pt;break}default:this.currentAttr.name+=String.fromCodePoint(ml(t)?xs(t):t)}}_stateAfterAttributeName(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case N.EQUALS_SIGN:{this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{this.state=w.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this.state=w.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case N.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 N.QUOTATION_MARK:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.value+=Pt;break}case N.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case N.APOSTROPHE:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.value+=Pt;break}case N.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case N.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.value+=Pt;break}case N.QUOTATION_MARK:case N.APOSTROPHE:case N.LESS_THAN_SIGN:case N.EQUALS_SIGN:case N.GRAVE_ACCENT:{this._err(ne.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case N.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case N.SOLIDUS:{this._leaveAttrValue(),this.state=w.SELF_CLOSING_START_TAG;break}case N.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case N.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 N.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=w.DATA,this.emitCurrentTagToken();break}case N.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 N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(r);break}case N.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case N.NULL:{this._err(ne.unexpectedNullCharacter),r.data+=Pt;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Mn.DASH_DASH,!0)?(this._createCommentToken(Mn.DASH_DASH.length+1),this.state=w.COMMENT_START):this._consumeSequenceIfMatch(Mn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Mn.DOCTYPE.length+1),this.state=w.DOCTYPE):this._consumeSequenceIfMatch(Mn.CDATA_START,!0)?this.inForeignNode?this.state=w.CDATA_SECTION:(this._err(ne.cdataInHtmlContent),this._createCommentToken(Mn.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 N.HYPHEN_MINUS:{this.state=w.COMMENT_START_DASH;break}case N.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 N.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case N.GREATER_THAN_SIGN:{this._err(ne.abruptClosingOfEmptyComment),this.state=w.DATA,this.emitCurrentComment(r);break}case N.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 N.HYPHEN_MINUS:{this.state=w.COMMENT_END_DASH;break}case N.LESS_THAN_SIGN:{r.data+="<",this.state=w.COMMENT_LESS_THAN_SIGN;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),r.data+=Pt;break}case N.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 N.EXCLAMATION_MARK:{r.data+="!",this.state=w.COMMENT_LESS_THAN_SIGN_BANG;break}case N.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===N.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=w.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===N.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=w.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==N.GREATER_THAN_SIGN&&t!==N.EOF&&this._err(ne.nestedComment),this.state=w.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case N.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case N.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 N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(r);break}case N.EXCLAMATION_MARK:{this.state=w.COMMENT_END_BANG;break}case N.HYPHEN_MINUS:{r.data+="-";break}case N.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 N.HYPHEN_MINUS:{r.data+="--!",this.state=w.COMMENT_END_DASH;break}case N.GREATER_THAN_SIGN:{this._err(ne.incorrectlyClosedComment),this.state=w.DATA,this.emitCurrentComment(r);break}case N.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case N.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(ml(t))this._createDoctypeToken(String.fromCharCode(xs(t))),this.state=w.DOCTYPE_NAME;else switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.NULL:{this._err(ne.unexpectedNullCharacter),this._createDoctypeToken(Pt),this.state=w.DOCTYPE_NAME;break}case N.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 N.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=w.AFTER_DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.NULL:{this._err(ne.unexpectedNullCharacter),r.name+=Pt;break}case N.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(ml(t)?xs(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err(ne.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Mn.PUBLIC,!1)?this.state=w.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Mn.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.QUOTATION_MARK:{this._err(ne.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err(ne.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(ne.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(ne.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.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 N.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),r.publicId+=Pt;break}case N.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.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 N.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),r.publicId+=Pt;break}case N.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.QUOTATION_MARK:{this._err(ne.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err(ne.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.QUOTATION_MARK:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.QUOTATION_MARK:{this._err(ne.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err(ne.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(ne.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(ne.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.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 N.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),r.systemId+=Pt;break}case N.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.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 N.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.NULL:{this._err(ne.unexpectedNullCharacter),r.systemId+=Pt;break}case N.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.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 N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.NULL:{this._err(ne.unexpectedNullCharacter);break}case N.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case N.RIGHT_SQUARE_BRACKET:{this.state=w.CDATA_SECTION_BRACKET;break}case N.EOF:{this._err(ne.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===N.RIGHT_SQUARE_BRACKET?this.state=w.CDATA_SECTION_END:(this._emitChars("]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case N.GREATER_THAN_SIGN:{this.state=w.DATA;break}case N.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(N.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Fg(this.preprocessor.peek(1))?w.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Fg(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===N.SEMICOLON&&this._err(ne.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const jg=new Set([g.DD,g.DT,g.LI,g.OPTGROUP,g.OPTION,g.P,g.RB,g.RP,g.RT,g.RTC]),Vg=new Set([...jg,g.CAPTION,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]),vs=new Set([g.APPLET,g.CAPTION,g.HTML,g.MARQUEE,g.OBJECT,g.TABLE,g.TD,g.TEMPLATE,g.TH]),Z4=new Set([...vs,g.OL,g.UL]),J4=new Set([...vs,g.BUTTON]),$g=new Set([g.ANNOTATION_XML,g.MI,g.MN,g.MO,g.MS,g.MTEXT]),qg=new Set([g.DESC,g.FOREIGN_OBJECT,g.TITLE]),ev=new Set([g.TR,g.TEMPLATE,g.HTML]),tv=new Set([g.TBODY,g.TFOOT,g.THEAD,g.TEMPLATE,g.HTML]),nv=new Set([g.TABLE,g.TEMPLATE,g.HTML]),rv=new Set([g.TD,g.TH]);class av{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(Dd,he.HTML)}popUntilTableCellPopped(){this.popUntilPopped(rv,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(nv,he.HTML)}clearBackToTableBodyContext(){this.clearBackTo(tv,he.HTML)}clearBackToTableRowContext(){this.clearBackTo(ev,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(qg.has(l))return!1;break}case he.MATHML:{if($g.has(l))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,vs)}hasInListItemScope(t){return this.hasInDynamicScope(t,Z4)}hasInButtonScope(t){return this.hasInDynamicScope(t,J4)}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(Dd.has(r))return!0;if(vs.has(r))return!1;break}case he.SVG:{if(qg.has(r))return!1;break}case he.MATHML:{if($g.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(;jg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Vg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Vg.has(this.currentTagId);)this.pop()}}const Id=3;var zr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(zr||(zr={}));const Gg={type:zr.Marker};class iv{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<Id)return;const r=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,r);if(i.length<Id)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>=Id&&this.entries.splice(d.idx,1))}}insertMarker(){this.entries.unshift(Gg)}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(Gg);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}}},Xg="html",uv="about:legacy-compat",lv="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Qg=["+//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//"],ov=[...Qg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],sv=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Kg=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],cv=[...Kg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Wg(e,t){return t.some(r=>e.startsWith(r))}function fv(e){return e.name===Xg&&e.publicId===null&&(e.systemId===null||e.systemId===uv)}function dv(e){if(e.name!==Xg)return cr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===lv)return cr.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),sv.has(r))return cr.QUIRKS;let i=t===null?ov:Qg;if(Wg(r,i))return cr.QUIRKS;if(i=t===null?Kg:cv,Wg(r,i))return cr.LIMITED_QUIRKS}return cr.NO_QUIRKS}const Zg={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},hv="definitionurl",pv="definitionURL",mv=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])),gv=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}]]),bv=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])),Ev=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 yv(e){const t=e.tagID;return t===g.FONT&&e.attrs.some(({name:i})=>i===si.COLOR||i===si.SIZE||i===si.FACE)||Ev.has(t)}function Jg(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===hv){e.attrs[t].name=pv;break}}function eb(e){for(let t=0;t<e.attrs.length;t++){const r=mv.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function Ld(e){for(let t=0;t<e.attrs.length;t++){const r=gv.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 Tv(e){const t=bv.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=eu(e.tagName))}function Sv(e,t){return t===he.MATHML&&(e===g.MI||e===g.MO||e===g.MN||e===g.MS||e===g.MTEXT)}function Av(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===Zg.TEXT_HTML||l===Zg.APPLICATION_XML}}return t===he.SVG&&(e===g.FOREIGN_OBJECT||e===g.DESC||e===g.TITLE)}function Cv(e,t,r,i){return(!i||i===he.HTML)&&Av(e,t,r)||(!i||i===he.MATHML)&&Sv(e,t)}const _v="hidden",xv=8,vv=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 Rv={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},tb=new Set([g.TABLE,g.TBODY,g.TFOOT,g.THEAD,g.TR]),nb={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Na,onParseError:null};class rb{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={...nb,...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 W4(this.options,this),this.activeFormattingElements=new iv(this.treeAdapter),this.fragmentContextID=i?eu(this.treeAdapter.getTagName(i)):g.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new av(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={...nb,...r};t??(t=i.treeAdapter.createElement(q.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:Rv,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)===q.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(q.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)===q.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 Cv(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 tb.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 G4[i].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){rO(this,t);return}switch(this.insertionMode){case U.INITIAL:{gl(this,t);break}case U.BEFORE_HTML:{bl(this,t);break}case U.BEFORE_HEAD:{El(this,t);break}case U.IN_HEAD:{yl(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Tl(this,t);break}case U.AFTER_HEAD:{Sl(this,t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:{ib(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:{Pd(this,t);break}case U.IN_TABLE_TEXT:{hb(this,t);break}case U.IN_COLUMN_GROUP:{Ns(this,t);break}case U.AFTER_BODY:{Is(this,t);break}case U.AFTER_AFTER_BODY:{Ls(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){nO(this,t);return}switch(this.insertionMode){case U.INITIAL:{gl(this,t);break}case U.BEFORE_HTML:{bl(this,t);break}case U.BEFORE_HEAD:{El(this,t);break}case U.IN_HEAD:{yl(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Tl(this,t);break}case U.AFTER_HEAD:{Sl(this,t);break}case U.TEXT:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Pd(this,t);break}case U.IN_COLUMN_GROUP:{Ns(this,t);break}case U.AFTER_BODY:{Is(this,t);break}case U.AFTER_AFTER_BODY:{Ls(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Md(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:{Md(this,t);break}case U.IN_TABLE_TEXT:{_l(this,t);break}case U.AFTER_BODY:{wv(this,t);break}case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{Mv(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case U.INITIAL:{Bv(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)?aO(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{gl(this,t);break}case U.BEFORE_HTML:{Pv(this,t);break}case U.BEFORE_HEAD:{Hv(this,t);break}case U.IN_HEAD:{kr(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Yv(this,t);break}case U.AFTER_HEAD:{Vv(this,t);break}case U.IN_BODY:{Cn(this,t);break}case U.IN_TABLE:{tu(this,t);break}case U.IN_TABLE_TEXT:{_l(this,t);break}case U.IN_CAPTION:{FR(this,t);break}case U.IN_COLUMN_GROUP:{Ud(this,t);break}case U.IN_TABLE_BODY:{ks(this,t);break}case U.IN_ROW:{Ds(this,t);break}case U.IN_CELL:{jR(this,t);break}case U.IN_SELECT:{gb(this,t);break}case U.IN_SELECT_IN_TABLE:{$R(this,t);break}case U.IN_TEMPLATE:{GR(this,t);break}case U.AFTER_BODY:{QR(this,t);break}case U.IN_FRAMESET:{KR(this,t);break}case U.AFTER_FRAMESET:{ZR(this,t);break}case U.AFTER_AFTER_BODY:{eO(this,t);break}case U.AFTER_AFTER_FRAMESET:{tO(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?iO(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{gl(this,t);break}case U.BEFORE_HTML:{Uv(this,t);break}case U.BEFORE_HEAD:{Fv(this,t);break}case U.IN_HEAD:{zv(this,t);break}case U.IN_HEAD_NO_SCRIPT:{jv(this,t);break}case U.AFTER_HEAD:{$v(this,t);break}case U.IN_BODY:{Os(this,t);break}case U.TEXT:{kR(this,t);break}case U.IN_TABLE:{Al(this,t);break}case U.IN_TABLE_TEXT:{_l(this,t);break}case U.IN_CAPTION:{zR(this,t);break}case U.IN_COLUMN_GROUP:{YR(this,t);break}case U.IN_TABLE_BODY:{Hd(this,t);break}case U.IN_ROW:{mb(this,t);break}case U.IN_CELL:{VR(this,t);break}case U.IN_SELECT:{bb(this,t);break}case U.IN_SELECT_IN_TABLE:{qR(this,t);break}case U.IN_TEMPLATE:{XR(this,t);break}case U.AFTER_BODY:{yb(this,t);break}case U.IN_FRAMESET:{WR(this,t);break}case U.AFTER_FRAMESET:{JR(this,t);break}case U.AFTER_AFTER_BODY:{Ls(this,t);break}}}onEof(t){switch(this.insertionMode){case U.INITIAL:{gl(this,t);break}case U.BEFORE_HTML:{bl(this,t);break}case U.BEFORE_HEAD:{El(this,t);break}case U.IN_HEAD:{yl(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Tl(this,t);break}case U.AFTER_HEAD:{Sl(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:{fb(this,t);break}case U.TEXT:{DR(this,t);break}case U.IN_TABLE_TEXT:{_l(this,t);break}case U.IN_TEMPLATE:{Eb(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:{Bd(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===N.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:{ab(this,t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Pd(this,t);break}case U.IN_TABLE_TEXT:{db(this,t);break}}}}function Ov(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):cb(e,t),r}function Nv(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 kv(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>=vv;!d||p?(p&&e.activeFormattingElements.removeEntry(d),e.openElements.remove(c)):(c=Dv(e,d),i===t&&(e.activeFormattingElements.bookmark=d),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(c,i),i=c)}return i}function Dv(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 Iv(e,t,r){const i=e.treeAdapter.getTagName(t),l=eu(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 Lv(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 wd(e,t){for(let r=0;r<xv;r++){const i=Ov(e,t);if(!i)break;const l=Nv(e,i);if(!l)break;e.activeFormattingElements.bookmark=i;const s=kv(e,l,i.element),c=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(s),c&&Iv(e,c,s),Lv(e,l,i)}}function Md(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function wv(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Mv(e,t){e._appendCommentNode(t,e.document)}function Bd(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 Bv(e,t){e._setDocumentType(t);const r=t.forceQuirks?cr.QUIRKS:dv(t);fv(t)||e._err(t,ne.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=U.BEFORE_HTML}function gl(e,t){e._err(t,ne.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,cr.QUIRKS),e.insertionMode=U.BEFORE_HTML,e._processToken(t)}function Pv(e,t){t.tagID===g.HTML?(e._insertElement(t,he.HTML),e.insertionMode=U.BEFORE_HEAD):bl(e,t)}function Uv(e,t){const r=t.tagID;(r===g.HTML||r===g.HEAD||r===g.BODY||r===g.BR)&&bl(e,t)}function bl(e,t){e._insertFakeRootElement(),e.insertionMode=U.BEFORE_HEAD,e._processToken(t)}function Hv(e,t){switch(t.tagID){case g.HTML:{Cn(e,t);break}case g.HEAD:{e._insertElement(t,he.HTML),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD;break}default:El(e,t)}}function Fv(e,t){const r=t.tagID;r===g.HEAD||r===g.BODY||r===g.HTML||r===g.BR?El(e,t):e._err(t,ne.endTagWithoutMatchingOpenElement)}function El(e,t){e._insertFakeElement(q.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:{Cn(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:yl(e,t)}}function zv(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:{yl(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 yl(e,t){e.openElements.pop(),e.insertionMode=U.AFTER_HEAD,e._processToken(t)}function Yv(e,t){switch(t.tagID){case g.HTML:{Cn(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:Tl(e,t)}}function jv(e,t){switch(t.tagID){case g.NOSCRIPT:{e.openElements.pop(),e.insertionMode=U.IN_HEAD;break}case g.BR:{Tl(e,t);break}default:e._err(t,ne.endTagWithoutMatchingOpenElement)}}function Tl(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 Vv(e,t){switch(t.tagID){case g.HTML:{Cn(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:Sl(e,t)}}function $v(e,t){switch(t.tagID){case g.BODY:case g.HTML:case g.BR:{Sl(e,t);break}case g.TEMPLATE:{ci(e,t);break}default:e._err(t,ne.endTagWithoutMatchingOpenElement)}}function Sl(e,t){e._insertFakeElement(q.BODY,g.BODY),e.insertionMode=U.IN_BODY,Rs(e,t)}function Rs(e,t){switch(t.type){case at.CHARACTER:{ib(e,t);break}case at.WHITESPACE_CHARACTER:{ab(e,t);break}case at.COMMENT:{Md(e,t);break}case at.START_TAG:{Cn(e,t);break}case at.END_TAG:{Os(e,t);break}case at.EOF:{fb(e,t);break}}}function ab(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ib(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 Gv(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function Xv(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 Qv(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,he.HTML)}function Kv(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),Dd.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,he.HTML)}function Wv(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,he.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Zv(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 Jv(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 eR(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,he.HTML),e.tokenizer.state=Qt.PLAINTEXT}function tR(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 nR(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(q.A);r&&(wd(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 rR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,he.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function aR(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(wd(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,he.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function iR(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,he.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function uR(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 ub(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,he.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function lb(e){const t=Bg(e,si.TYPE);return t!=null&&t.toLowerCase()===_v}function lR(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,he.HTML),lb(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function oR(e,t){e._appendElement(t,he.HTML),t.ackSelfClosing=!0}function sR(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,he.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function cR(e,t){t.tagName=q.IMG,t.tagID=g.IMG,ub(e,t)}function fR(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 dR(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Qt.RAWTEXT)}function hR(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Qt.RAWTEXT)}function ob(e,t){e._switchToTextParsing(t,Qt.RAWTEXT)}function pR(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 mR(e,t){e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,he.HTML)}function gR(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,he.HTML)}function bR(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,he.HTML)}function ER(e,t){e._reconstructActiveFormattingElements(),Jg(t),Ld(t),t.selfClosing?e._appendElement(t,he.MATHML):e._insertElement(t,he.MATHML),t.ackSelfClosing=!0}function yR(e,t){e._reconstructActiveFormattingElements(),eb(t),Ld(t),t.selfClosing?e._appendElement(t,he.SVG):e._insertElement(t,he.SVG),t.ackSelfClosing=!0}function sb(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,he.HTML)}function Cn(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:{rR(e,t);break}case g.A:{nR(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{Kv(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:{Jv(e,t);break}case g.BR:case g.IMG:case g.WBR:case g.AREA:case g.EMBED:case g.KEYGEN:{ub(e,t);break}case g.HR:{sR(e,t);break}case g.RB:case g.RTC:{gR(e,t);break}case g.RT:case g.RP:{bR(e,t);break}case g.PRE:case g.LISTING:{Wv(e,t);break}case g.XMP:{dR(e,t);break}case g.SVG:{yR(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:{Gv(e,t);break}case g.FORM:{Zv(e,t);break}case g.NOBR:{aR(e,t);break}case g.MATH:{ER(e,t);break}case g.TABLE:{uR(e,t);break}case g.INPUT:{lR(e,t);break}case g.PARAM:case g.TRACK:case g.SOURCE:{oR(e,t);break}case g.IMAGE:{cR(e,t);break}case g.BUTTON:{tR(e,t);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{iR(e,t);break}case g.IFRAME:{hR(e,t);break}case g.SELECT:{pR(e,t);break}case g.OPTION:case g.OPTGROUP:{mR(e,t);break}case g.NOEMBED:case g.NOFRAMES:{ob(e,t);break}case g.FRAMESET:{Xv(e,t);break}case g.TEXTAREA:{fR(e,t);break}case g.NOSCRIPT:{e.options.scriptingEnabled?ob(e,t):sb(e,t);break}case g.PLAINTEXT:{eR(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:sb(e,t)}}function TR(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 SR(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=U.AFTER_BODY,yb(e,t))}function AR(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function CR(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 _R(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(q.P,g.P),e._closePElement()}function xR(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}function vR(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function RR(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function OR(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function NR(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(q.BR,g.BR),e.openElements.pop(),e.framesetOk=!1}function cb(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 Os(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:{wd(e,t);break}case g.P:{_R(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:{AR(e,t);break}case g.LI:{xR(e);break}case g.DD:case g.DT:{vR(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{RR(e);break}case g.BR:{NR(e);break}case g.BODY:{TR(e,t);break}case g.HTML:{SR(e,t);break}case g.FORM:{CR(e);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{OR(e,t);break}case g.TEMPLATE:{ci(e,t);break}default:cb(e,t)}}function fb(e,t){e.tmplInsertionModeStack.length>0?Eb(e,t):Bd(e,t)}function kR(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 DR(e,t){e._err(t,ne.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Pd(e,t){if(tb.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:{hb(e,t);break}case at.WHITESPACE_CHARACTER:{db(e,t);break}}else Cl(e,t)}function IR(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,he.HTML),e.insertionMode=U.IN_CAPTION}function LR(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,he.HTML),e.insertionMode=U.IN_COLUMN_GROUP}function wR(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(q.COLGROUP,g.COLGROUP),e.insertionMode=U.IN_COLUMN_GROUP,Ud(e,t)}function MR(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,he.HTML),e.insertionMode=U.IN_TABLE_BODY}function BR(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(q.TBODY,g.TBODY),e.insertionMode=U.IN_TABLE_BODY,ks(e,t)}function PR(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function UR(e,t){lb(t)?e._appendElement(t,he.HTML):Cl(e,t),t.ackSelfClosing=!0}function HR(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,he.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function tu(e,t){switch(t.tagID){case g.TD:case g.TH:case g.TR:{BR(e,t);break}case g.STYLE:case g.SCRIPT:case g.TEMPLATE:{kr(e,t);break}case g.COL:{wR(e,t);break}case g.FORM:{HR(e,t);break}case g.TABLE:{PR(e,t);break}case g.TBODY:case g.TFOOT:case g.THEAD:{MR(e,t);break}case g.INPUT:{UR(e,t);break}case g.CAPTION:{IR(e,t);break}case g.COLGROUP:{LR(e,t);break}default:Cl(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:Cl(e,t)}}function Cl(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Rs(e,t),e.fosterParentingEnabled=r}function db(e,t){e.pendingCharacterTokens.push(t)}function hb(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++)Cl(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const pb=new Set([g.CAPTION,g.COL,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]);function FR(e,t){const r=t.tagID;pb.has(r)?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,tu(e,t)):Cn(e,t)}function zR(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:Os(e,t)}}function Ud(e,t){switch(t.tagID){case g.HTML:{Cn(e,t);break}case g.COL:{e._appendElement(t,he.HTML),t.ackSelfClosing=!0;break}case g.TEMPLATE:{kr(e,t);break}default:Ns(e,t)}}function YR(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:Ns(e,t)}}function Ns(e,t){e.openElements.currentTagId===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE,e._processToken(t))}function ks(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(q.TR,g.TR),e.insertionMode=U.IN_ROW,Ds(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,tu(e,t));break}default:tu(e,t)}}function Hd(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 Ds(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,ks(e,t));break}default:tu(e,t)}}function mb(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,Hd(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,Hd(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 jR(e,t){const r=t.tagID;pb.has(r)?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),Ds(e,t)):Cn(e,t)}function VR(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(),mb(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:break;default:Os(e,t)}}function gb(e,t){switch(t.tagID){case g.HTML:{Cn(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 bb(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 $R(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)):gb(e,t)}function qR(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)):bb(e,t)}function GR(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,tu(e,t);break}case g.COL:{e.tmplInsertionModeStack[0]=U.IN_COLUMN_GROUP,e.insertionMode=U.IN_COLUMN_GROUP,Ud(e,t);break}case g.TR:{e.tmplInsertionModeStack[0]=U.IN_TABLE_BODY,e.insertionMode=U.IN_TABLE_BODY,ks(e,t);break}case g.TD:case g.TH:{e.tmplInsertionModeStack[0]=U.IN_ROW,e.insertionMode=U.IN_ROW,Ds(e,t);break}default:e.tmplInsertionModeStack[0]=U.IN_BODY,e.insertionMode=U.IN_BODY,Cn(e,t)}}function XR(e,t){t.tagID===g.TEMPLATE&&ci(e,t)}function Eb(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Bd(e,t)}function QR(e,t){t.tagID===g.HTML?Cn(e,t):Is(e,t)}function yb(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,Rs(e,t)}function KR(e,t){switch(t.tagID){case g.HTML:{Cn(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 WR(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 ZR(e,t){switch(t.tagID){case g.HTML:{Cn(e,t);break}case g.NOFRAMES:{kr(e,t);break}}}function JR(e,t){t.tagID===g.HTML&&(e.insertionMode=U.AFTER_AFTER_FRAMESET)}function eO(e,t){t.tagID===g.HTML?Cn(e,t):Ls(e,t)}function Ls(e,t){e.insertionMode=U.IN_BODY,Rs(e,t)}function tO(e,t){switch(t.tagID){case g.HTML:{Cn(e,t);break}case g.NOFRAMES:{kr(e,t);break}}}function nO(e,t){t.chars=Pt,e._insertCharacters(t)}function rO(e,t){e._insertCharacters(t),e.framesetOk=!1}function Tb(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==he.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function aO(e,t){if(yv(t))Tb(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(r);i===he.MATHML?Jg(t):i===he.SVG&&(Tv(t),eb(t)),Ld(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function iO(e,t){if(t.tagID===g.P||t.tagID===g.BR){Tb(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}}}q.AREA,q.BASE,q.BASEFONT,q.BGSOUND,q.BR,q.COL,q.EMBED,q.FRAME,q.HR,q.IMG,q.INPUT,q.KEYGEN,q.LINK,q.META,q.PARAM,q.SOURCE,q.TRACK,q.WBR;const uO=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,lO=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Sb={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ab(e,t){const r=bO(e),i=Dg("type",{handlers:{root:oO,element:sO,text:cO,comment:_b,doctype:fO,raw:hO},unknown:pO}),l={parser:r?new rb(Sb):rb.getFragmentParser(void 0,Sb),handle(d){i(d,l)},stitches:!1,options:t||{}};i(e,l),nu(l,Ur());const s=r?l.parser.document:l.parser.getFragment(),c=s4(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 Cb(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function oO(e,t){Cb(e.children,t)}function sO(e,t){mO(e,t),Cb(e.children,t),gO(e,t)}function cO(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:at.CHARACTER,chars:e.value,location:xl(e)};nu(t,Ur(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function fO(e,t){const r={type:at.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:xl(e)};nu(t,Ur(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function dO(e,t){t.stitches=!0;const r=EO(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:xl(e)};nu(t,Ur(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function hO(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,xb(t,Ur(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(uO,"<$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 pO(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))dO(r,t);else{let i="";throw lO.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 nu(e,t){xb(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 xb(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 mO(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Qt.PLAINTEXT)return;nu(t,Ur(e));const i=t.parser.openElements.current;let l="namespaceURI"in i?i.namespaceURI:li.html;l===li.html&&r==="svg"&&(l=li.svg);const s=C4({...e,children:[]},{space:l===li.svg?"svg":"html"}),c={type:at.START_TAG,tagName:r,tagID:eu(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:xl(e)};t.parser.currentToken=c,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function gO(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&D4.includes(r)||t.parser.tokenizer.state===Qt.PLAINTEXT)return;nu(t,ps(e));const i={type:at.END_TAG,tagName:r,tagID:eu(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:xl(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 bO(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function xl(e){const t=Ur(e)||{line:void 0,column:void 0,offset:void 0},r=ps(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 EO(e){return"children"in e?Gi({...e,children:[]}):Gi(e)}function yO(e){return function(t,r){return Ab(t,{...e,file:r})}}const TO=({color:e="currentColor",size:t=24,className:r,...i})=>St.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},St.createElement("path",{d:"M7.82843 10.9999H20V12.9999H7.82843L13.1924 18.3638L11.7782 19.778L4 11.9999L11.7782 4.22168L13.1924 5.63589L7.82843 10.9999Z"})),SO=({color:e="currentColor",size:t=24,className:r,...i})=>St.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},St.createElement("path",{d:"M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z"})),Fd=({color:e="currentColor",size:t=24,className:r,...i})=>St.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},St.createElement("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})),AO=({color:e="currentColor",size:t=24,className:r,...i})=>St.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},St.createElement("path",{d:"M5 10C3.9 10 3 10.9 3 12C3 13.1 3.9 14 5 14C6.1 14 7 13.1 7 12C7 10.9 6.1 10 5 10ZM19 10C17.9 10 17 10.9 17 12C17 13.1 17.9 14 19 14C20.1 14 21 13.1 21 12C21 10.9 20.1 10 19 10ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z"})),CO=({color:e="currentColor",size:t=24,className:r,...i})=>St.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},St.createElement("path",{d:"M1.94607 9.31543C1.42353 9.14125 1.4194 8.86022 1.95682 8.68108L21.043 2.31901C21.5715 2.14285 21.8746 2.43866 21.7265 2.95694L16.2733 22.0432C16.1223 22.5716 15.8177 22.59 15.5944 22.0876L11.9999 14L17.9999 6.00005L9.99992 12L1.94607 9.31543Z"})),_O=({color:e="currentColor",size:t=24,className:r,...i})=>St.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},St.createElement("path",{d:"M6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z"})),xO=({color:e="currentColor",size:t=24,className:r,...i})=>St.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},St.createElement("path",{d:"M17.0007 1.20825 18.3195 3.68108 20.7923 4.99992 18.3195 6.31876 17.0007 8.79159 15.6818 6.31876 13.209 4.99992 15.6818 3.68108 17.0007 1.20825ZM10.6673 9.33325 15.6673 11.9999 10.6673 14.6666 8.00065 19.6666 5.33398 14.6666.333984 11.9999 5.33398 9.33325 8.00065 4.33325 10.6673 9.33325ZM11.4173 11.9999 9.18905 10.8115 8.00065 8.58325 6.81224 10.8115 4.58398 11.9999 6.81224 13.1883 8.00065 15.4166 9.18905 13.1883 11.4173 11.9999ZM19.6673 16.3333 18.0007 13.2083 16.334 16.3333 13.209 17.9999 16.334 19.6666 18.0007 22.7916 19.6673 19.6666 22.7923 17.9999 19.6673 16.3333Z"})),vO=({color:e="currentColor",size:t=24,className:r,...i})=>St.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},St.createElement("path",{d:"M13.5 2C13.5 2.44425 13.3069 2.84339 13 3.11805V5H18C19.6569 5 21 6.34315 21 8V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V8C3 6.34315 4.34315 5 6 5H11V3.11805C10.6931 2.84339 10.5 2.44425 10.5 2C10.5 1.17157 11.1716 0.5 12 0.5C12.8284 0.5 13.5 1.17157 13.5 2ZM6 7C5.44772 7 5 7.44772 5 8V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V8C19 7.44772 18.5523 7 18 7H13H11H6ZM2 10H0V16H2V10ZM22 10H24V16H22V10ZM9 14.5C9.82843 14.5 10.5 13.8284 10.5 13C10.5 12.1716 9.82843 11.5 9 11.5C8.17157 11.5 7.5 12.1716 7.5 13C7.5 13.8284 8.17157 14.5 9 14.5ZM15 14.5C15.8284 14.5 16.5 13.8284 16.5 13C16.5 12.1716 15.8284 11.5 15 11.5C14.1716 11.5 13.5 12.1716 13.5 13C13.5 13.8284 14.1716 14.5 15 14.5Z"}));function vb(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(r=vb(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function st(){for(var e,t,r=0,i="",l=arguments.length;r<l;r++)(e=arguments[r])&&(t=vb(e))&&(i&&(i+=" "),i+=t);return i}function Wn(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 Rb=_.createContext();function RO({value:e,...t}){return me.jsx(Rb.Provider,{value:e??!0,...t})}const zd=()=>_.useContext(Rb)??!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 Ob(e){if(!Yr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Ob(e[r])}),t}function Bn(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]=Bn(e[l],t[l],r):r.clone?i[l]=Yr(t[l])?Ob(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 Yd={exports:{}},Tt={};/**
|
|
68
|
+
`}),r}function $1(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function q1(e,t){const r=mx(e,t),i=r.one(e,void 0),l=ax(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 Tx(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 Sx(){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,O,_=arguments[0],L=1,R=arguments.length,H=!1;for(typeof _=="boolean"&&(H=_,_=arguments[1]||{},L=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});L<R;++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,O=E&&l(E)?E:[]):O=E&&s(E)?E:{},c(_,{name:b,newValue:p(H,O,S)})):typeof S<"u"&&c(_,{name:b,newValue:S}));return _},ud}var Cx=Sx();const ld=ir(Cx);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 Ax(){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?xx(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 xx(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:_x,dirname:vx,extname:Rx,join:Ox,sep:"/"};function _x(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');fl(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 vx(e){if(fl(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 Rx(e){fl(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 Ox(...e){let t=-1,r;for(;++t<e.length;)fl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":Nx(r)}function Nx(e){fl(e);const t=e.codePointAt(0)===47;let r=kx(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function kx(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 fl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Dx={cwd:Lx};function Lx(){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 Ix(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 wx(e)}function wx(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"||Mx(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Dx.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=Ix(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 Mx(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Bx=function(e){const i=this.constructor.prototype,l=i[e],s=function(){return l.apply(s,arguments)};return Object.setPrototypeOf(s,i),s},Px={}.hasOwnProperty;class hd extends Bx{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=Ax()}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):Px.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=As(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=As(t),p=i.parse(d);i.run(p,d,function(b,E,S){if(b||!E||!S)return m(b);const y=E,O=i.stringify(y,S);Fx(O)?S.value=O:S.result=O,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=As(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=As(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,...O]=b;const _=i[S][1];od(_)&&od(y)&&(y=ld(!0,_,y)),i[S]=[m,y,...O]}}}}const Ux=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 As(e){return Hx(e)?e:new Q1(e)}function Hx(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Fx(e){return typeof e=="string"||zx(e)}function zx(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Yx="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",J1=[],eg={allowDangerousHtml:!0},jx=/^(https?|ircs?|mailto|xmpp)$/i,Vx=[{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=$x(e),r=qx(e);return Gx(t.runSync(t.parse(r),r),e)}function $x(e){const t=e.rehypePlugins||J1,r=e.remarkPlugins||J1,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...eg}:eg;return Ux().use(_4).use(r).use(Tx,i).use(t)}function qx(e){const t=e.children||"",r=new Q1;return typeof t=="string"&&(r.value=t),r}function Gx(e,t){const r=t.allowedElements,i=t.allowElement,l=t.components,s=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,p=t.urlTransform||Xx;for(const b of Vx)Object.hasOwn(t,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+Yx+b.id,void 0);return ad(e,m),c6(e,{Fragment:me.Fragment,components:l,ignoreInvalidStyle:!0,jsx:me.jsx,jsxs:me.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 O=b.properties[y],_=Vf[y];(_===null||_.includes(b.tagName))&&(b.properties[y]=p(String(O||""),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 Xx(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||jx.test(e.slice(0,t))?e:""}let dl=class{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}};dl.prototype.normal={},dl.prototype.property={},dl.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 dl(r,i,t)}function hl(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 Qx=0;const Ze=ui(),en=ui(),rg=ui(),ye=ui(),Lt=ui(),Ki=ui(),Qn=ui();function ui(){return 2**++Qx}const bd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ze,booleanish:en,commaOrSpaceSeparated:Qn,commaSeparated:Ki,number:ye,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[hl(i)]=i,r[hl(s.attribute)]=i}return new dl(t,r,e.space)}const ig=Wi({properties:{ariaActiveDescendant:null,ariaAtomic:en,ariaAutoComplete:null,ariaBusy:en,ariaChecked:en,ariaColCount:ye,ariaColIndex:ye,ariaColSpan:ye,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:ye,ariaLive:null,ariaModal:en,ariaMultiLine:en,ariaMultiSelectable:en,ariaOrientation:null,ariaOwns:Lt,ariaPlaceholder:null,ariaPosInSet:ye,ariaPressed:en,ariaReadOnly:en,ariaRelevant:null,ariaRequired:en,ariaRoleDescription:Lt,ariaRowCount:ye,ariaRowIndex:ye,ariaRowSpan:ye,ariaSelected:en,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 ug(e,t){return t in e?e[t]:t}function lg(e,t){return ug(e,t.toLowerCase())}const Kx=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:ye,colSpan:null,content:null,contentEditable:en,controls:Ze,controlsList:Lt,coords:ye|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:ye,hidden:Ze,high:ye,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:ye,manifest:null,max:null,maxLength:ye,media:null,method:null,min:null,minLength:ye,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:ye,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:ye,rowSpan:ye,sandbox:Lt,scope:null,scoped:Ze,seamless:Ze,selected:Ze,shadowRootClonable:Ze,shadowRootDelegatesFocus:Ze,shadowRootMode:null,shape:null,size:ye,sizes:null,slot:null,span:ye,spellCheck:en,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:Ze,useMap:null,value:en,width:ye,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Lt,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:Ze,declare:Ze,event:null,face:null,frame:null,frameBorder:null,hSpace:ye,leftMargin:ye,link:null,longDesc:null,lowSrc:null,marginHeight:ye,marginWidth:ye,noResize:Ze,noHref:Ze,noShade:Ze,noWrap:Ze,object:null,profile:null,prompt:null,rev:null,rightMargin:ye,rules:null,scheme:null,scrolling:en,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:Ze,disableRemotePlayback:Ze,prefix:null,property:null,results:ye,security:null,unselectable:null},space:"html",transform:lg}),Wx=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:Qn,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: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:ye,diffuseConstant:ye,direction:null,display:null,dur:null,divisor:ye,dominantBaseline:null,download:Ze,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:Ki,g2:Ki,glyphName:Ki,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:Qn,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:Lt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ye,pointsAtY:ye,pointsAtZ:ye,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qn,rev:Qn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qn,requiredFeatures:Qn,requiredFonts:Qn,requiredFormats:Qn,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:Qn,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:Qn,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:Qn,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: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()}}),Zx=/[A-Z]/g,fg=/-[a-z]/g,Jx=/^data[-\w.:]+$/i;function dg(e,t){const r=hl(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"&&Jx.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(fg,t_);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!fg.test(s)){let c=s.replace(Zx,e_);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=yd}return new l(i,t)}function e_(e){return"-"+e.toLowerCase()}function t_(e){return e.charAt(1).toUpperCase()}const Td=ng([ig,Kx,og,sg,cg],"html"),Sd=ng([ig,Wx,og,sg,cg],"svg"),hg=/[#.]/g;function n_(e,t){const r=e||"",i={};let l=0,s,c;for(;l<r.length;){hg.lastIndex=l;const d=hg.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 pg(e,t,r){const i=r?u_(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=n_(s,t);const m=p.tagName.toLowerCase(),b=i?i.get(m):void 0;if(p.tagName=b||m,r_(c))d.unshift(c);else for(const[E,S]of Object.entries(c))a_(e,p.properties,E,S)}for(const m of d)Cd(p.children,m);return p.type==="element"&&p.tagName==="template"&&(p.content={type:"root",children:p.children},p.children=[]),p}return l}function r_(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 a_(e,t,r,i){const l=dg(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=Lm(i):l.commaOrSpaceSeparated?s=qm(Lm(i).join(" ")):s=mg(l,l.property,i):Array.isArray(i)?s=[...i]:s=l.property==="style"?i_(i):String(i);if(Array.isArray(s)){const c=[];for(const d of s)c.push(mg(l,l.property,d));s=c}l.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[l.property]=s}}function Cd(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)Cd(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Cd(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function mg(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||hl(r)===hl(t)))return!0}return r}function i_(e){const t=[];for(const[r,i]of Object.entries(e))t.push([r,i].join(": "));return t.join("; ")}function u_(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const l_=["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"],o_=pg(Td,"div"),s_=pg(Sd,"g",l_);function c_(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=gg(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=gg(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 gg(e,t){const r=e.indexOf("\r",t),i=e.indexOf(`
|
|
70
|
+
`,t);return i===-1?r:r===-1||r+1===i?i:r<i?r:i}const li={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},bg={}.hasOwnProperty,f_=Object.prototype;function d_(e,t){const r=t||{};return Ad({file:r.file||void 0,location:!1,schema:r.space==="svg"?Sd:Td,verbose:r.verbose||!1},e)}function Ad(e,t){let r;switch(t.nodeName){case"#comment":{const i=t;return r={type:"comment",value:i.data},xs(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:Eg(e,t.childNodes),data:{quirksMode:l}},e.file&&e.location){const s=String(e.file),c=c_(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"},xs(e,i,r),r}case"#text":{const i=t;return r={type:"text",value:i.value},xs(e,i,r),r}default:return r=h_(e,t),r}}function Eg(e,t){let r=-1;const i=[];for(;++r<t.length;){const l=Ad(e,t[r]);i.push(l)}return i}function h_(e,t){const r=e.schema;e.schema=t.namespaceURI===li.svg?Sd:Td;let i=-1;const l={};for(;++i<t.attrs.length;){const d=t.attrs[i],p=(d.prefix?d.prefix+":":"")+d.name;bg.call(f_,p)||(l[p]=d.value)}const c=(e.schema.space==="svg"?s_:o_)(t.tagName,l,Eg(e,t.childNodes));if(xs(e,t,c),c.tagName==="template"){const d=t,p=d.sourceCodeLocation,m=p&&p.startTag&&Zi(p.startTag),b=p&&p.endTag&&Zi(p.endTag),E=Ad(e,d.content);m&&b&&e.file&&(E.position={start:m.end,end:b.start}),c.content=E}return e.schema=r,c}function xs(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=p_(e,r,t.sourceCodeLocation);i&&(e.location=!0,r.position=i)}}function p_(e,t,r){const i=Zi(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)bg.call(r.attrs,c)&&(s[dg(e.schema,c).property]=Zi(r.attrs[c]));r.startTag;const d=Zi(r.startTag),p=r.endTag?Zi(r.endTag):void 0,m={opening:d};p&&(m.closing=p),m.properties=s,t.data={position:m}}}return i}function Zi(e){const t=yg({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=yg({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function yg(e){return e.line&&e.column?e:void 0}class pl{constructor(t,r,i){this.property=t,this.normal=r,i&&(this.space=i)}}pl.prototype.property={},pl.prototype.normal={},pl.prototype.space=null;function Tg(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 pl(r,i,t)}function xd(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 m_=0;const Je=oi(),tn=oi(),Sg=oi(),Te=oi(),It=oi(),Ji=oi(),Kn=oi();function oi(){return 2**++m_}const _d=Object.freeze(Object.defineProperty({__proto__:null,boolean:Je,booleanish:tn,commaOrSpaceSeparated:Kn,commaSeparated:Ji,number:Te,overloadedBoolean:Sg,spaceSeparated:It},Symbol.toStringTag,{value:"Module"})),vd=Object.keys(_d);class Rd extends sr{constructor(t,r,i,l){let s=-1;if(super(t,r),Cg(this,"space",l),typeof i=="number")for(;++s<vd.length;){const c=vd[s];Cg(this,vd[s],(i&_d[c])===_d[c])}}}Rd.prototype.defined=!0;function Cg(e,t,r){r&&(e[t]=r)}const g_={}.hasOwnProperty;function eu(e){const t={},r={};let i;for(i in e.properties)if(g_.call(e.properties,i)){const l=e.properties[i],s=new Rd(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[xd(i)]=i,r[xd(s.attribute)]=i}return new pl(t,r,e.space)}const Ag=eu({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),xg=eu({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function _g(e,t){return t in e?e[t]:t}function vg(e,t){return _g(e,t.toLowerCase())}const Rg=eu({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:vg,properties:{xmlns:null,xmlnsXLink:null}}),Og=eu({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:tn,ariaAutoComplete:null,ariaBusy:tn,ariaChecked:tn,ariaColCount:Te,ariaColIndex:Te,ariaColSpan:Te,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:Te,ariaLive:null,ariaModal:tn,ariaMultiLine:tn,ariaMultiSelectable:tn,ariaOrientation:null,ariaOwns:It,ariaPlaceholder:null,ariaPosInSet:Te,ariaPressed:tn,ariaReadOnly:tn,ariaRelevant:null,ariaRequired:tn,ariaRoleDescription:It,ariaRowCount:Te,ariaRowIndex:Te,ariaRowSpan:Te,ariaSelected:tn,ariaSetSize:Te,ariaSort:null,ariaValueMax:Te,ariaValueMin:Te,ariaValueNow:Te,ariaValueText:null,role:null}}),b_=eu({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:vg,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ji,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:Te,colSpan:null,content:null,contentEditable:tn,controls:Je,controlsList:It,coords:Te|Ji,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Je,defer:Je,dir:null,dirName:null,disabled:Je,download:Sg,draggable:tn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Je,formTarget:null,headers:It,height:Te,hidden:Je,high:Te,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:Te,manifest:null,max:null,maxLength:Te,media:null,method:null,min:null,minLength:Te,multiple:Je,muted:Je,name:null,nonce:null,noModule:Je,noValidate:Je,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Je,optimum:Te,pattern:null,ping: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:Te,rowSpan:Te,sandbox:It,scope:null,scoped:Je,seamless:Je,selected:Je,shadowRootClonable:Je,shadowRootDelegatesFocus:Je,shadowRootMode:null,shape:null,size:Te,sizes:null,slot:null,span:Te,spellCheck:tn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Te,step:null,style:null,tabIndex:Te,target:null,title:null,translate:null,type:null,typeMustMatch:Je,useMap:null,value:tn,width:Te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:It,axis:null,background:null,bgColor:null,border:Te,borderColor:null,bottomMargin:Te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Je,declare:Je,event:null,face:null,frame:null,frameBorder:null,hSpace:Te,leftMargin:Te,link:null,longDesc:null,lowSrc:null,marginHeight:Te,marginWidth:Te,noResize:Je,noHref:Je,noShade:Je,noWrap:Je,object:null,profile:null,prompt:null,rev:null,rightMargin:Te,rules:null,scheme:null,scrolling:tn,standby:null,summary:null,text:null,topMargin:Te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Je,disableRemotePlayback:Je,prefix:null,property:null,results:Te,security:null,unselectable:null}}),E_=eu({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:_g,properties:{about:Kn,accentHeight: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: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:Te,diffuseConstant:Te,direction:null,display:null,dur:null,divisor:Te,dominantBaseline:null,download:Je,dx:null,dy:null,edgeMode:null,editable:null,elevation:Te,enableBackground:null,end:null,event:null,exponent:Te,externalResourcesRequired:null,fill:null,fillOpacity:Te,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ji,g2:Ji,glyphName:Ji,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:It,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}}),y_=/^data[-\w.:]+$/i,Ng=/-[a-z]/g,T_=/[A-Z]/g;function S_(e,t){const r=xd(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"&&y_.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(Ng,A_);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!Ng.test(s)){let c=s.replace(T_,C_);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=Rd}return new l(i,t)}function C_(e){return"-"+e.toLowerCase()}function A_(e){return e.charAt(1).toUpperCase()}const x_=Tg([xg,Ag,Rg,Og,b_],"html"),kg=Tg([xg,Ag,Rg,Og,E_],"svg"),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 __={},v_={}.hasOwnProperty,Ig=Lg("type",{handlers:{root:O_,element:I_,text:D_,comment:L_,doctype:k_}});function R_(e,t){const i=(t||__).space;return Ig(e,i==="svg"?kg:x_)}function O_(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=Od(e.children,r,t),tu(e,r),r}function N_(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=Od(e.children,r,t),tu(e,r),r}function k_(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return tu(e,t),t}function D_(e){const t={nodeName:"#text",value:e.value,parentNode:null};return tu(e,t),t}function L_(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return tu(e,t),t}function I_(e,t){const r=t;let i=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=kg);const l=[];let s;if(e.properties){for(s in e.properties)if(s!=="children"&&v_.call(e.properties,s)){const p=w_(i,s,e.properties[s]);p&&l.push(p)}}const c=i.space,d={nodeName:e.tagName,tagName:e.tagName,attrs:l,namespaceURI:li[c],childNodes:[],parentNode:null};return d.childNodes=Od(e.children,d,i),tu(e,d),e.tagName==="template"&&e.content&&(d.content=N_(e.content,i)),d}function w_(e,t,r){const i=S_(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?Im(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=li[i.space]}return l}function Od(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 M_=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],B_=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 N;(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"})(N||(N={}));const Mn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function wg(e){return e>=55296&&e<=57343}function P_(e){return e>=56320&&e<=57343}function U_(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||B_.has(e)}var te;(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"})(te||(te={}));const H_=65536;class F_{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=H_,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(P_(r))return this.pos++,this._addGap(),U_(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,N.EOF;return this._err(te.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,N.EOF;const i=this.html.charCodeAt(r);return i===N.CARRIAGE_RETURN?N.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,N.EOF;let t=this.html.charCodeAt(this.pos);return t===N.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,N.LINE_FEED):t===N.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===N.LINE_FEED||t===N.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Mg(t)?this._err(te.controlCharacterInInputStream):Bg(t)&&this._err(te.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))),z_=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Nd;const Y_=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]]),j_=(Nd=String.fromCodePoint)!==null&&Nd!==void 0?Nd: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 V_(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Y_.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 $_=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 kd(e){return e>=fn.ZERO&&e<=fn.NINE}function q_(e){return e>=fn.UPPER_A&&e<=fn.UPPER_F||e>=fn.LOWER_A&&e<=fn.LOWER_F}function G_(e){return e>=fn.UPPER_A&&e<=fn.UPPER_Z||e>=fn.LOWER_A&&e<=fn.LOWER_Z||kd(e)}function X_(e){return e===fn.EQUALS||G_(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)|$_)===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(kd(l)||q_(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(kd(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(V_(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=Q_(i,l,this.treeIndex+Math.max(1,s),c),this.treeIndex<0)return this.result===0||this.decodeMode===na.Attribute&&(s===0||X_(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+=j_(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 Q_(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(z_);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 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 q;(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"})(q||(q={}));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 K_=new Map([[q.A,g.A],[q.ADDRESS,g.ADDRESS],[q.ANNOTATION_XML,g.ANNOTATION_XML],[q.APPLET,g.APPLET],[q.AREA,g.AREA],[q.ARTICLE,g.ARTICLE],[q.ASIDE,g.ASIDE],[q.B,g.B],[q.BASE,g.BASE],[q.BASEFONT,g.BASEFONT],[q.BGSOUND,g.BGSOUND],[q.BIG,g.BIG],[q.BLOCKQUOTE,g.BLOCKQUOTE],[q.BODY,g.BODY],[q.BR,g.BR],[q.BUTTON,g.BUTTON],[q.CAPTION,g.CAPTION],[q.CENTER,g.CENTER],[q.CODE,g.CODE],[q.COL,g.COL],[q.COLGROUP,g.COLGROUP],[q.DD,g.DD],[q.DESC,g.DESC],[q.DETAILS,g.DETAILS],[q.DIALOG,g.DIALOG],[q.DIR,g.DIR],[q.DIV,g.DIV],[q.DL,g.DL],[q.DT,g.DT],[q.EM,g.EM],[q.EMBED,g.EMBED],[q.FIELDSET,g.FIELDSET],[q.FIGCAPTION,g.FIGCAPTION],[q.FIGURE,g.FIGURE],[q.FONT,g.FONT],[q.FOOTER,g.FOOTER],[q.FOREIGN_OBJECT,g.FOREIGN_OBJECT],[q.FORM,g.FORM],[q.FRAME,g.FRAME],[q.FRAMESET,g.FRAMESET],[q.H1,g.H1],[q.H2,g.H2],[q.H3,g.H3],[q.H4,g.H4],[q.H5,g.H5],[q.H6,g.H6],[q.HEAD,g.HEAD],[q.HEADER,g.HEADER],[q.HGROUP,g.HGROUP],[q.HR,g.HR],[q.HTML,g.HTML],[q.I,g.I],[q.IMG,g.IMG],[q.IMAGE,g.IMAGE],[q.INPUT,g.INPUT],[q.IFRAME,g.IFRAME],[q.KEYGEN,g.KEYGEN],[q.LABEL,g.LABEL],[q.LI,g.LI],[q.LINK,g.LINK],[q.LISTING,g.LISTING],[q.MAIN,g.MAIN],[q.MALIGNMARK,g.MALIGNMARK],[q.MARQUEE,g.MARQUEE],[q.MATH,g.MATH],[q.MENU,g.MENU],[q.META,g.META],[q.MGLYPH,g.MGLYPH],[q.MI,g.MI],[q.MO,g.MO],[q.MN,g.MN],[q.MS,g.MS],[q.MTEXT,g.MTEXT],[q.NAV,g.NAV],[q.NOBR,g.NOBR],[q.NOFRAMES,g.NOFRAMES],[q.NOEMBED,g.NOEMBED],[q.NOSCRIPT,g.NOSCRIPT],[q.OBJECT,g.OBJECT],[q.OL,g.OL],[q.OPTGROUP,g.OPTGROUP],[q.OPTION,g.OPTION],[q.P,g.P],[q.PARAM,g.PARAM],[q.PLAINTEXT,g.PLAINTEXT],[q.PRE,g.PRE],[q.RB,g.RB],[q.RP,g.RP],[q.RT,g.RT],[q.RTC,g.RTC],[q.RUBY,g.RUBY],[q.S,g.S],[q.SCRIPT,g.SCRIPT],[q.SEARCH,g.SEARCH],[q.SECTION,g.SECTION],[q.SELECT,g.SELECT],[q.SOURCE,g.SOURCE],[q.SMALL,g.SMALL],[q.SPAN,g.SPAN],[q.STRIKE,g.STRIKE],[q.STRONG,g.STRONG],[q.STYLE,g.STYLE],[q.SUB,g.SUB],[q.SUMMARY,g.SUMMARY],[q.SUP,g.SUP],[q.TABLE,g.TABLE],[q.TBODY,g.TBODY],[q.TEMPLATE,g.TEMPLATE],[q.TEXTAREA,g.TEXTAREA],[q.TFOOT,g.TFOOT],[q.TD,g.TD],[q.TH,g.TH],[q.THEAD,g.THEAD],[q.TITLE,g.TITLE],[q.TR,g.TR],[q.TRACK,g.TRACK],[q.TT,g.TT],[q.U,g.U],[q.UL,g.UL],[q.SVG,g.SVG],[q.VAR,g.VAR],[q.WBR,g.WBR],[q.XMP,g.XMP]]);function nu(e){var t;return(t=K_.get(e))!==null&&t!==void 0?t:g.UNKNOWN}const ge=g,W_={[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},Dd=new Set([ge.H1,ge.H2,ge.H3,ge.H4,ge.H5,ge.H6]);q.STYLE,q.SCRIPT,q.XMP,q.IFRAME,q.NOEMBED,q.NOFRAMES,q.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 Z_(e){return e>=N.DIGIT_0&&e<=N.DIGIT_9}function ml(e){return e>=N.LATIN_CAPITAL_A&&e<=N.LATIN_CAPITAL_Z}function J_(e){return e>=N.LATIN_SMALL_A&&e<=N.LATIN_SMALL_Z}function Oa(e){return J_(e)||ml(e)}function zg(e){return Oa(e)||Z_(e)}function _s(e){return e+32}function Yg(e){return e===N.SPACE||e===N.LINE_FEED||e===N.TABULATION||e===N.FORM_FEED}function jg(e){return Yg(e)||e===N.SOLIDUS||e===N.GREATER_THAN_SIGN}function ev(e){return e===N.NULL?te.nullCharacterReference:e>1114111?te.characterReferenceOutsideUnicodeRange:wg(e)?te.surrogateCharacterReference:Bg(e)?te.noncharacterCharacterReference:Mg(e)||e===N.CARRIAGE_RETURN?te.controlCharacterReference:null}class tv{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 F_(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(te.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:i=>{this._err(te.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+i)},validateNumericCharacterReference:i=>{const l=ev(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(te.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(te.endTagWithAttributes),t.selfClosing&&this._err(te.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===N.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 N.LESS_THAN_SIGN:{this.state=w.TAG_OPEN;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err(te.unexpectedNullCharacter),this._emitCodePoint(t);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case N.AMPERSAND:{this._startCharacterReference();break}case N.LESS_THAN_SIGN:{this.state=w.RCDATA_LESS_THAN_SIGN;break}case N.NULL:{this._err(te.unexpectedNullCharacter),this._emitChars(Pt);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case N.LESS_THAN_SIGN:{this.state=w.RAWTEXT_LESS_THAN_SIGN;break}case N.NULL:{this._err(te.unexpectedNullCharacter),this._emitChars(Pt);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_LESS_THAN_SIGN;break}case N.NULL:{this._err(te.unexpectedNullCharacter),this._emitChars(Pt);break}case N.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case N.NULL:{this._err(te.unexpectedNullCharacter),this._emitChars(Pt);break}case N.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 N.EXCLAMATION_MARK:{this.state=w.MARKUP_DECLARATION_OPEN;break}case N.SOLIDUS:{this.state=w.END_TAG_OPEN;break}case N.QUESTION_MARK:{this._err(te.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t);break}case N.EOF:{this._err(te.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(te.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 N.GREATER_THAN_SIGN:{this._err(te.missingEndTagName),this.state=w.DATA;break}case N.EOF:{this._err(te.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(te.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=w.BEFORE_ATTRIBUTE_NAME;break}case N.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case N.NULL:{this._err(te.unexpectedNullCharacter),r.tagName+=Pt;break}case N.EOF:{this._err(te.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(ml(t)?_s(t):t)}}_stateRcdataLessThanSign(t){t===N.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=w.BEFORE_ATTRIBUTE_NAME,!1;case N.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=w.SELF_CLOSING_START_TAG,!1;case N.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===N.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 N.SOLIDUS:{this.state=w.SCRIPT_DATA_END_TAG_OPEN;break}case N.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===N.HYPHEN_MINUS?(this.state=w.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=w.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===N.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 N.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.NULL:{this._err(te.unexpectedNullCharacter),this._emitChars(Pt);break}case N.EOF:{this._err(te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case N.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.NULL:{this._err(te.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(Pt);break}case N.EOF:{this._err(te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case N.HYPHEN_MINUS:{this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case N.GREATER_THAN_SIGN:{this.state=w.SCRIPT_DATA,this._emitChars(">");break}case N.NULL:{this._err(te.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_ESCAPED,this._emitChars(Pt);break}case N.EOF:{this._err(te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===N.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(Mn.SCRIPT,!1)&&jg(this.preprocessor.peek(Mn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Mn.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 N.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.NULL:{this._err(te.unexpectedNullCharacter),this._emitChars(Pt);break}case N.EOF:{this._err(te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case N.HYPHEN_MINUS:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.NULL:{this._err(te.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Pt);break}case N.EOF:{this._err(te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case N.HYPHEN_MINUS:{this._emitChars("-");break}case N.LESS_THAN_SIGN:{this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case N.GREATER_THAN_SIGN:{this.state=w.SCRIPT_DATA,this._emitChars(">");break}case N.NULL:{this._err(te.unexpectedNullCharacter),this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Pt);break}case N.EOF:{this._err(te.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=w.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===N.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(Mn.SCRIPT,!1)&&jg(this.preprocessor.peek(Mn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Mn.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.SOLIDUS:case N.GREATER_THAN_SIGN:case N.EOF:{this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case N.EQUALS_SIGN:{this._err(te.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:case N.SOLIDUS:case N.GREATER_THAN_SIGN:case N.EOF:{this._leaveAttrName(),this.state=w.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case N.EQUALS_SIGN:{this._leaveAttrName(),this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case N.QUOTATION_MARK:case N.APOSTROPHE:case N.LESS_THAN_SIGN:{this._err(te.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case N.NULL:{this._err(te.unexpectedNullCharacter),this.currentAttr.name+=Pt;break}default:this.currentAttr.name+=String.fromCodePoint(ml(t)?_s(t):t)}}_stateAfterAttributeName(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.SOLIDUS:{this.state=w.SELF_CLOSING_START_TAG;break}case N.EQUALS_SIGN:{this.state=w.BEFORE_ATTRIBUTE_VALUE;break}case N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err(te.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=w.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{this.state=w.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this.state=w.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(te.missingAttributeValue),this.state=w.DATA,this.emitCurrentTagToken();break}default:this.state=w.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case N.QUOTATION_MARK:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err(te.unexpectedNullCharacter),this.currentAttr.value+=Pt;break}case N.EOF:{this._err(te.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case N.APOSTROPHE:{this.state=w.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.NULL:{this._err(te.unexpectedNullCharacter),this.currentAttr.value+=Pt;break}case N.EOF:{this._err(te.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case N.AMPERSAND:{this._startCharacterReference();break}case N.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case N.NULL:{this._err(te.unexpectedNullCharacter),this.currentAttr.value+=Pt;break}case N.QUOTATION_MARK:case N.APOSTROPHE:case N.LESS_THAN_SIGN:case N.EQUALS_SIGN:case N.GRAVE_ACCENT:{this._err(te.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case N.EOF:{this._err(te.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this._leaveAttrValue(),this.state=w.BEFORE_ATTRIBUTE_NAME;break}case N.SOLIDUS:{this._leaveAttrValue(),this.state=w.SELF_CLOSING_START_TAG;break}case N.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=w.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err(te.eofInTag),this._emitEOFToken();break}default:this._err(te.missingWhitespaceBetweenAttributes),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case N.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=w.DATA,this.emitCurrentTagToken();break}case N.EOF:{this._err(te.eofInTag),this._emitEOFToken();break}default:this._err(te.unexpectedSolidusInTag),this.state=w.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(r);break}case N.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case N.NULL:{this._err(te.unexpectedNullCharacter),r.data+=Pt;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Mn.DASH_DASH,!0)?(this._createCommentToken(Mn.DASH_DASH.length+1),this.state=w.COMMENT_START):this._consumeSequenceIfMatch(Mn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Mn.DOCTYPE.length+1),this.state=w.DOCTYPE):this._consumeSequenceIfMatch(Mn.CDATA_START,!0)?this.inForeignNode?this.state=w.CDATA_SECTION:(this._err(te.cdataInHtmlContent),this._createCommentToken(Mn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=w.BOGUS_COMMENT):this._ensureHibernation()||(this._err(te.incorrectlyOpenedComment),this._createCommentToken(2),this.state=w.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case N.HYPHEN_MINUS:{this.state=w.COMMENT_START_DASH;break}case N.GREATER_THAN_SIGN:{this._err(te.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 N.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case N.GREATER_THAN_SIGN:{this._err(te.abruptClosingOfEmptyComment),this.state=w.DATA,this.emitCurrentComment(r);break}case N.EOF:{this._err(te.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 N.HYPHEN_MINUS:{this.state=w.COMMENT_END_DASH;break}case N.LESS_THAN_SIGN:{r.data+="<",this.state=w.COMMENT_LESS_THAN_SIGN;break}case N.NULL:{this._err(te.unexpectedNullCharacter),r.data+=Pt;break}case N.EOF:{this._err(te.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case N.EXCLAMATION_MARK:{r.data+="!",this.state=w.COMMENT_LESS_THAN_SIGN_BANG;break}case N.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=w.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===N.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=w.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===N.HYPHEN_MINUS?this.state=w.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=w.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==N.GREATER_THAN_SIGN&&t!==N.EOF&&this._err(te.nestedComment),this.state=w.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case N.HYPHEN_MINUS:{this.state=w.COMMENT_END;break}case N.EOF:{this._err(te.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 N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentComment(r);break}case N.EXCLAMATION_MARK:{this.state=w.COMMENT_END_BANG;break}case N.HYPHEN_MINUS:{r.data+="-";break}case N.EOF:{this._err(te.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 N.HYPHEN_MINUS:{r.data+="--!",this.state=w.COMMENT_END_DASH;break}case N.GREATER_THAN_SIGN:{this._err(te.incorrectlyClosedComment),this.state=w.DATA,this.emitCurrentComment(r);break}case N.EOF:{this._err(te.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=w.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case N.EOF:{this._err(te.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(te.missingWhitespaceBeforeDoctypeName),this.state=w.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ml(t))this._createDoctypeToken(String.fromCharCode(_s(t))),this.state=w.DOCTYPE_NAME;else switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.NULL:{this._err(te.unexpectedNullCharacter),this._createDoctypeToken(Pt),this.state=w.DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this._err(te.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.EOF:{this._err(te.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=w.AFTER_DOCTYPE_NAME;break}case N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.NULL:{this._err(te.unexpectedNullCharacter),r.name+=Pt;break}case N.EOF:{this._err(te.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(ml(t)?_s(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err(te.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Mn.PUBLIC,!1)?this.state=w.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Mn.SYSTEM,!1)?this.state=w.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(te.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.QUOTATION_MARK:{this._err(te.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err(te.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(te.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err(te.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(te.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{r.publicId="",this.state=w.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(te.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err(te.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(te.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case N.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.NULL:{this._err(te.unexpectedNullCharacter),r.publicId+=Pt;break}case N.GREATER_THAN_SIGN:{this._err(te.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.EOF:{this._err(te.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 N.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case N.NULL:{this._err(te.unexpectedNullCharacter),r.publicId+=Pt;break}case N.GREATER_THAN_SIGN:{this._err(te.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.EOF:{this._err(te.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=w.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case N.GREATER_THAN_SIGN:{this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.QUOTATION_MARK:{this._err(te.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err(te.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.EOF:{this._err(te.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(te.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.QUOTATION_MARK:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.EOF:{this._err(te.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(te.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:{this.state=w.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.QUOTATION_MARK:{this._err(te.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{this._err(te.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(te.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err(te.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(te.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.QUOTATION_MARK:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case N.APOSTROPHE:{r.systemId="",this.state=w.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case N.GREATER_THAN_SIGN:{this._err(te.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.DATA,this.emitCurrentDoctype(r);break}case N.EOF:{this._err(te.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(te.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case N.QUOTATION_MARK:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.NULL:{this._err(te.unexpectedNullCharacter),r.systemId+=Pt;break}case N.GREATER_THAN_SIGN:{this._err(te.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.EOF:{this._err(te.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 N.APOSTROPHE:{this.state=w.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case N.NULL:{this._err(te.unexpectedNullCharacter),r.systemId+=Pt;break}case N.GREATER_THAN_SIGN:{this._err(te.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.EOF:{this._err(te.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 N.SPACE:case N.LINE_FEED:case N.TABULATION:case N.FORM_FEED:break;case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.EOF:{this._err(te.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(te.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=w.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case N.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=w.DATA;break}case N.NULL:{this._err(te.unexpectedNullCharacter);break}case N.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case N.RIGHT_SQUARE_BRACKET:{this.state=w.CDATA_SECTION_BRACKET;break}case N.EOF:{this._err(te.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===N.RIGHT_SQUARE_BRACKET?this.state=w.CDATA_SECTION_END:(this._emitChars("]"),this.state=w.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case N.GREATER_THAN_SIGN:{this.state=w.DATA;break}case N.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(N.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===N.SEMICOLON&&this._err(te.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]),vs=new Set([g.APPLET,g.CAPTION,g.HTML,g.MARQUEE,g.OBJECT,g.TABLE,g.TD,g.TEMPLATE,g.TH]),nv=new Set([...vs,g.OL,g.UL]),rv=new Set([...vs,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]),av=new Set([g.TR,g.TEMPLATE,g.HTML]),iv=new Set([g.TBODY,g.TFOOT,g.THEAD,g.TEMPLATE,g.HTML]),uv=new Set([g.TABLE,g.TEMPLATE,g.HTML]),lv=new Set([g.TD,g.TH]);class ov{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.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(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(Dd,pe.HTML)}popUntilTableCellPopped(){this.popUntilPopped(lv,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(uv,pe.HTML)}clearBackToTableBodyContext(){this.clearBackTo(iv,pe.HTML)}clearBackToTableRowContext(){this.clearBackTo(av,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(Gg.has(l))return!1;break}case pe.MATHML:{if(qg.has(l))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,vs)}hasInListItemScope(t){return this.hasInDynamicScope(t,nv)}hasInButtonScope(t){return this.hasInDynamicScope(t,rv)}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(Dd.has(r))return!0;if(vs.has(r))return!1;break}case pe.SVG:{if(Gg.has(r))return!1;break}case pe.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])===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(;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 Ld=3;var zr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(zr||(zr={}));const Xg={type:zr.Marker};class sv{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<Ld)return;const r=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,r);if(i.length<Ld)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>=Ld&&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",cv="about:legacy-compat",fv="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//"],dv=[...Kg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],hv=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//"],pv=[...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 mv(e){return e.name===Qg&&e.publicId===null&&(e.systemId===null||e.systemId===cv)}function gv(e){if(e.name!==Qg)return cr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===fv)return cr.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),hv.has(r))return cr.QUIRKS;let i=t===null?dv:Kg;if(Zg(r,i))return cr.QUIRKS;if(i=t===null?Wg:pv,Zg(r,i))return cr.LIMITED_QUIRKS}return cr.NO_QUIRKS}const Jg={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},bv="definitionurl",Ev="definitionURL",yv=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])),Tv=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}]]),Sv=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])),Cv=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 Av(e){const t=e.tagID;return t===g.FONT&&e.attrs.some(({name:i})=>i===si.COLOR||i===si.SIZE||i===si.FACE)||Cv.has(t)}function eb(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===bv){e.attrs[t].name=Ev;break}}function tb(e){for(let t=0;t<e.attrs.length;t++){const r=yv.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function Id(e){for(let t=0;t<e.attrs.length;t++){const r=Tv.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 xv(e){const t=Sv.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=nu(e.tagName))}function _v(e,t){return t===pe.MATHML&&(e===g.MI||e===g.MO||e===g.MN||e===g.MS||e===g.MTEXT)}function vv(e,t,r){if(t===pe.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===pe.SVG&&(e===g.FOREIGN_OBJECT||e===g.DESC||e===g.TITLE)}function Rv(e,t,r,i){return(!i||i===pe.HTML)&&vv(e,t,r)||(!i||i===pe.MATHML)&&_v(e,t)}const Ov="hidden",Nv=8,kv=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 Dv={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 tv(this.options,this),this.activeFormattingElements=new sv(this.treeAdapter),this.fragmentContextID=i?nu(this.treeAdapter.getTagName(i)):g.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new ov(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(q.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(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:Dv,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)===pe.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,pe.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)===q.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=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,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(q.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===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)===q.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===pe.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===g.MGLYPH||t.tagID===g.MALIGNMARK)&&!this._isIntegrationPoint(i,r,pe.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 Rv(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)===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 W_[i].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){l8(this,t);return}switch(this.insertionMode){case U.INITIAL:{gl(this,t);break}case U.BEFORE_HTML:{bl(this,t);break}case U.BEFORE_HEAD:{El(this,t);break}case U.IN_HEAD:{yl(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Tl(this,t);break}case U.AFTER_HEAD:{Sl(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:{Pd(this,t);break}case U.IN_TABLE_TEXT:{pb(this,t);break}case U.IN_COLUMN_GROUP:{Ns(this,t);break}case U.AFTER_BODY:{Ls(this,t);break}case U.AFTER_AFTER_BODY:{Is(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){u8(this,t);return}switch(this.insertionMode){case U.INITIAL:{gl(this,t);break}case U.BEFORE_HTML:{bl(this,t);break}case U.BEFORE_HEAD:{El(this,t);break}case U.IN_HEAD:{yl(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Tl(this,t);break}case U.AFTER_HEAD:{Sl(this,t);break}case U.TEXT:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Pd(this,t);break}case U.IN_COLUMN_GROUP:{Ns(this,t);break}case U.AFTER_BODY:{Ls(this,t);break}case U.AFTER_AFTER_BODY:{Is(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Md(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:{Md(this,t);break}case U.IN_TABLE_TEXT:{xl(this,t);break}case U.AFTER_BODY:{Uv(this,t);break}case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{Hv(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case U.INITIAL:{Fv(this,t);break}case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:{this._err(t,te.misplacedDoctype);break}case U.IN_TABLE_TEXT:{xl(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,te.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?o8(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{gl(this,t);break}case U.BEFORE_HTML:{zv(this,t);break}case U.BEFORE_HEAD:{jv(this,t);break}case U.IN_HEAD:{kr(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:{xn(this,t);break}case U.IN_TABLE:{ru(this,t);break}case U.IN_TABLE_TEXT:{xl(this,t);break}case U.IN_CAPTION:{V5(this,t);break}case U.IN_COLUMN_GROUP:{Ud(this,t);break}case U.IN_TABLE_BODY:{ks(this,t);break}case U.IN_ROW:{Ds(this,t);break}case U.IN_CELL:{G5(this,t);break}case U.IN_SELECT:{bb(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:{J5(this,t);break}case U.IN_FRAMESET:{e8(this,t);break}case U.AFTER_FRAMESET:{n8(this,t);break}case U.AFTER_AFTER_BODY:{a8(this,t);break}case U.AFTER_AFTER_FRAMESET:{i8(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?s8(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{gl(this,t);break}case U.BEFORE_HTML:{Yv(this,t);break}case U.BEFORE_HEAD:{Vv(this,t);break}case U.IN_HEAD:{$v(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Gv(this,t);break}case U.AFTER_HEAD:{Qv(this,t);break}case U.IN_BODY:{Os(this,t);break}case U.TEXT:{w5(this,t);break}case U.IN_TABLE:{Cl(this,t);break}case U.IN_TABLE_TEXT:{xl(this,t);break}case U.IN_CAPTION:{$5(this,t);break}case U.IN_COLUMN_GROUP:{q5(this,t);break}case U.IN_TABLE_BODY:{Hd(this,t);break}case U.IN_ROW:{gb(this,t);break}case U.IN_CELL:{X5(this,t);break}case U.IN_SELECT:{Eb(this,t);break}case U.IN_SELECT_IN_TABLE:{K5(this,t);break}case U.IN_TEMPLATE:{Z5(this,t);break}case U.AFTER_BODY:{Tb(this,t);break}case U.IN_FRAMESET:{t8(this,t);break}case U.AFTER_FRAMESET:{r8(this,t);break}case U.AFTER_AFTER_BODY:{Is(this,t);break}}}onEof(t){switch(this.insertionMode){case U.INITIAL:{gl(this,t);break}case U.BEFORE_HTML:{bl(this,t);break}case U.BEFORE_HEAD:{El(this,t);break}case U.IN_HEAD:{yl(this,t);break}case U.IN_HEAD_NO_SCRIPT:{Tl(this,t);break}case U.AFTER_HEAD:{Sl(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:{M5(this,t);break}case U.IN_TABLE_TEXT:{xl(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:{Bd(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===N.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:{Pd(this,t);break}case U.IN_TABLE_TEXT:{hb(this,t);break}}}}function Lv(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 Iv(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 wv(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>=kv;!d||p?(p&&e.activeFormattingElements.removeEntry(d),e.openElements.remove(c)):(c=Mv(e,d),i===t&&(e.activeFormattingElements.bookmark=d),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(c,i),i=c)}return i}function Mv(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 Bv(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===pe.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Pv(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 wd(e,t){for(let r=0;r<Nv;r++){const i=Lv(e,t);if(!i)break;const l=Iv(e,i);if(!l)break;e.activeFormattingElements.bookmark=i;const s=wv(e,l,i.element),c=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(s),c&&Bv(e,c,s),Pv(e,l,i)}}function Md(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Uv(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Hv(e,t){e._appendCommentNode(t,e.document)}function Bd(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 Fv(e,t){e._setDocumentType(t);const r=t.forceQuirks?cr.QUIRKS:gv(t);mv(t)||e._err(t,te.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=U.BEFORE_HTML}function gl(e,t){e._err(t,te.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,cr.QUIRKS),e.insertionMode=U.BEFORE_HTML,e._processToken(t)}function zv(e,t){t.tagID===g.HTML?(e._insertElement(t,pe.HTML),e.insertionMode=U.BEFORE_HEAD):bl(e,t)}function Yv(e,t){const r=t.tagID;(r===g.HTML||r===g.HEAD||r===g.BODY||r===g.BR)&&bl(e,t)}function bl(e,t){e._insertFakeRootElement(),e.insertionMode=U.BEFORE_HEAD,e._processToken(t)}function jv(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.HEAD:{e._insertElement(t,pe.HTML),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD;break}default:El(e,t)}}function Vv(e,t){const r=t.tagID;r===g.HEAD||r===g.BODY||r===g.HTML||r===g.BR?El(e,t):e._err(t,te.endTagWithoutMatchingOpenElement)}function El(e,t){e._insertFakeElement(q.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,pe.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,pe.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,te.misplacedStartTagForHeadElement);break}default:yl(e,t)}}function $v(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:{yl(e,t);break}case g.TEMPLATE:{ci(e,t);break}default:e._err(t,te.endTagWithoutMatchingOpenElement)}}function ci(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==g.TEMPLATE&&e._err(t,te.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,te.endTagWithoutMatchingOpenElement)}function yl(e,t){e.openElements.pop(),e.insertionMode=U.AFTER_HEAD,e._processToken(t)}function qv(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,te.nestedNoscriptInHead);break}default:Tl(e,t)}}function Gv(e,t){switch(t.tagID){case g.NOSCRIPT:{e.openElements.pop(),e.insertionMode=U.IN_HEAD;break}case g.BR:{Tl(e,t);break}default:e._err(t,te.endTagWithoutMatchingOpenElement)}}function Tl(e,t){const r=t.type===at.EOF?te.openElementsLeftAfterEof:te.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=U.IN_HEAD,e._processToken(t)}function Xv(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.BODY:{e._insertElement(t,pe.HTML),e.framesetOk=!1,e.insertionMode=U.IN_BODY;break}case g.FRAMESET:{e._insertElement(t,pe.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,te.abandonedHeadElementChild),e.openElements.push(e.headElement,g.HEAD),kr(e,t),e.openElements.remove(e.headElement);break}case g.HEAD:{e._err(t,te.misplacedStartTagForHeadElement);break}default:Sl(e,t)}}function Qv(e,t){switch(t.tagID){case g.BODY:case g.HTML:case g.BR:{Sl(e,t);break}case g.TEMPLATE:{ci(e,t);break}default:e._err(t,te.endTagWithoutMatchingOpenElement)}}function Sl(e,t){e._insertFakeElement(q.BODY,g.BODY),e.insertionMode=U.IN_BODY,Rs(e,t)}function Rs(e,t){switch(t.type){case at.CHARACTER:{ub(e,t);break}case at.WHITESPACE_CHARACTER:{ib(e,t);break}case at.COMMENT:{Md(e,t);break}case at.START_TAG:{xn(e,t);break}case at.END_TAG:{Os(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 Kv(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Wv(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function Zv(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,pe.HTML),e.insertionMode=U.IN_FRAMESET)}function Jv(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,pe.HTML)}function e5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),Dd.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,pe.HTML)}function t5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,pe.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function n5(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 r5(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 a5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,pe.HTML),e.tokenizer.state=Qt.PLAINTEXT}function i5(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 u5(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(q.A);r&&(wd(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 l5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function o5(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(wd(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function s5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function c5(e,t){e.treeAdapter.getDocumentMode(e.document)!==cr.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,pe.HTML),e.framesetOk=!1,e.insertionMode=U.IN_TABLE}function lb(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ob(e){const t=Pg(e,si.TYPE);return t!=null&&t.toLowerCase()===Ov}function f5(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,pe.HTML),ob(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function d5(e,t){e._appendElement(t,pe.HTML),t.ackSelfClosing=!0}function h5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function p5(e,t){t.tagName=q.IMG,t.tagID=g.IMG,lb(e,t)}function m5(e,t){e._insertElement(t,pe.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Qt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=U.TEXT}function g5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Qt.RAWTEXT)}function b5(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Qt.RAWTEXT)}function sb(e,t){e._switchToTextParsing(t,Qt.RAWTEXT)}function E5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.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 y5(e,t){e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML)}function T5(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,pe.HTML)}function S5(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,pe.HTML)}function C5(e,t){e._reconstructActiveFormattingElements(),eb(t),Id(t),t.selfClosing?e._appendElement(t,pe.MATHML):e._insertElement(t,pe.MATHML),t.ackSelfClosing=!0}function A5(e,t){e._reconstructActiveFormattingElements(),tb(t),Id(t),t.selfClosing?e._appendElement(t,pe.SVG):e._insertElement(t,pe.SVG),t.ackSelfClosing=!0}function cb(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.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:{l5(e,t);break}case g.A:{u5(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{e5(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:{Jv(e,t);break}case g.LI:case g.DD:case g.DT:{r5(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:{h5(e,t);break}case g.RB:case g.RTC:{T5(e,t);break}case g.RT:case g.RP:{S5(e,t);break}case g.PRE:case g.LISTING:{t5(e,t);break}case g.XMP:{g5(e,t);break}case g.SVG:{A5(e,t);break}case g.HTML:{Kv(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:{Wv(e,t);break}case g.FORM:{n5(e,t);break}case g.NOBR:{o5(e,t);break}case g.MATH:{C5(e,t);break}case g.TABLE:{c5(e,t);break}case g.INPUT:{f5(e,t);break}case g.PARAM:case g.TRACK:case g.SOURCE:{d5(e,t);break}case g.IMAGE:{p5(e,t);break}case g.BUTTON:{i5(e,t);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{s5(e,t);break}case g.IFRAME:{b5(e,t);break}case g.SELECT:{E5(e,t);break}case g.OPTION:case g.OPTGROUP:{y5(e,t);break}case g.NOEMBED:case g.NOFRAMES:{sb(e,t);break}case g.FRAMESET:{Zv(e,t);break}case g.TEXTAREA:{m5(e,t);break}case g.NOSCRIPT:{e.options.scriptingEnabled?sb(e,t):cb(e,t);break}case g.PLAINTEXT:{a5(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 x5(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 _5(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=U.AFTER_BODY,Tb(e,t))}function v5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function R5(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 O5(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(q.P,g.P),e._closePElement()}function N5(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}function k5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function D5(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function L5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function I5(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(q.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 Os(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:{wd(e,t);break}case g.P:{O5(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:{v5(e,t);break}case g.LI:{N5(e);break}case g.DD:case g.DT:{k5(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{D5(e);break}case g.BR:{I5(e);break}case g.BODY:{x5(e,t);break}case g.HTML:{_5(e,t);break}case g.FORM:{R5(e);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{L5(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):Bd(e,t)}function w5(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 M5(e,t){e._err(t,te.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Pd(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 Al(e,t)}function B5(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,pe.HTML),e.insertionMode=U.IN_CAPTION}function P5(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,pe.HTML),e.insertionMode=U.IN_COLUMN_GROUP}function U5(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(q.COLGROUP,g.COLGROUP),e.insertionMode=U.IN_COLUMN_GROUP,Ud(e,t)}function H5(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,pe.HTML),e.insertionMode=U.IN_TABLE_BODY}function F5(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(q.TBODY,g.TBODY),e.insertionMode=U.IN_TABLE_BODY,ks(e,t)}function z5(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Y5(e,t){ob(t)?e._appendElement(t,pe.HTML):Al(e,t),t.ackSelfClosing=!0}function j5(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,pe.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:{F5(e,t);break}case g.STYLE:case g.SCRIPT:case g.TEMPLATE:{kr(e,t);break}case g.COL:{U5(e,t);break}case g.FORM:{j5(e,t);break}case g.TABLE:{z5(e,t);break}case g.TBODY:case g.TFOOT:case g.THEAD:{H5(e,t);break}case g.INPUT:{Y5(e,t);break}case g.CAPTION:{B5(e,t);break}case g.COLGROUP:{P5(e,t);break}default:Al(e,t)}}function Cl(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:Al(e,t)}}function Al(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Rs(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 xl(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Al(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 V5(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 $5(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&&Cl(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:Os(e,t)}}function Ud(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.COL:{e._appendElement(t,pe.HTML),t.ackSelfClosing=!0;break}case g.TEMPLATE:{kr(e,t);break}default:Ns(e,t)}}function q5(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:Ns(e,t)}}function Ns(e,t){e.openElements.currentTagId===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE,e._processToken(t))}function ks(e,t){switch(t.tagID){case g.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,pe.HTML),e.insertionMode=U.IN_ROW;break}case g.TH:case g.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(q.TR,g.TR),e.insertionMode=U.IN_ROW,Ds(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 Hd(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,Cl(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:Cl(e,t)}}function Ds(e,t){switch(t.tagID){case g.TH:case g.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,pe.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,ks(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,Hd(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,Hd(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:Cl(e,t)}}function G5(e,t){const r=t.tagID;mb.has(r)?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),Ds(e,t)):xn(e,t)}function X5(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:Os(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,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:{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 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.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processStartTag(t)):bb(e,t)}function K5(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 W5(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,Ud(e,t);break}case g.TR:{e.tmplInsertionModeStack[0]=U.IN_TABLE_BODY,e.insertionMode=U.IN_TABLE_BODY,ks(e,t);break}case g.TD:case g.TH:{e.tmplInsertionModeStack[0]=U.IN_ROW,e.insertionMode=U.IN_ROW,Ds(e,t);break}default:e.tmplInsertionModeStack[0]=U.IN_BODY,e.insertionMode=U.IN_BODY,xn(e,t)}}function Z5(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)):Bd(e,t)}function J5(e,t){t.tagID===g.HTML?xn(e,t):Ls(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 Ls(e,t)}function Ls(e,t){e.insertionMode=U.IN_BODY,Rs(e,t)}function e8(e,t){switch(t.tagID){case g.HTML:{xn(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:{kr(e,t);break}}}function t8(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 n8(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.NOFRAMES:{kr(e,t);break}}}function r8(e,t){t.tagID===g.HTML&&(e.insertionMode=U.AFTER_AFTER_FRAMESET)}function a8(e,t){t.tagID===g.HTML?xn(e,t):Is(e,t)}function Is(e,t){e.insertionMode=U.IN_BODY,Rs(e,t)}function i8(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.NOFRAMES:{kr(e,t);break}}}function u8(e,t){t.chars=Pt,e._insertCharacters(t)}function l8(e,t){e._insertCharacters(t),e.framesetOk=!1}function Sb(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==pe.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function o8(e,t){if(Av(t))Sb(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(r);i===pe.MATHML?eb(t):i===pe.SVG&&(xv(t),tb(t)),Id(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function s8(e,t){if(t.tagID===g.P||t.tagID===g.BR){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)===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}}}q.AREA,q.BASE,q.BASEFONT,q.BGSOUND,q.BR,q.COL,q.EMBED,q.FRAME,q.HR,q.IMG,q.INPUT,q.KEYGEN,q.LINK,q.META,q.PARAM,q.SOURCE,q.TRACK,q.WBR;const c8=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,f8=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Cb={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ab(e,t){const r=S8(e),i=Lg("type",{handlers:{root:d8,element:h8,text:p8,comment:_b,doctype:m8,raw:b8},unknown:E8}),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=d_(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 d8(e,t){xb(e.children,t)}function h8(e,t){y8(e,t),xb(e.children,t),T8(e,t)}function p8(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:at.CHARACTER,chars:e.value,location:_l(e)};au(t,Ur(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function m8(e,t){const r={type:at.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:_l(e)};au(t,Ur(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function g8(e,t){t.stitches=!0;const r=C8(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:_l(e)};au(t,Ur(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function b8(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(c8,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function E8(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))g8(r,t);else{let i="";throw f8.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 y8(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:li.html;l===li.html&&r==="svg"&&(l=li.svg);const s=R_({...e,children:[]},{space:l===li.svg?"svg":"html"}),c={type:at.START_TAG,tagName:r,tagID:nu(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:_l(e)};t.parser.currentToken=c,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function T8(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&M_.includes(r)||t.parser.tokenizer.state===Qt.PLAINTEXT)return;au(t,ps(e));const i={type:at.END_TAG,tagName:r,tagID:nu(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:_l(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 S8(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function _l(e){const t=Ur(e)||{line:void 0,column:void 0,offset:void 0},r=ps(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 C8(e){return"children"in e?Qi({...e,children:[]}):Qi(e)}function A8(e){return function(t,r){return Ab(t,{...e,file:r})}}const 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:"M7.82843 10.9999H20V12.9999H7.82843L13.1924 18.3638L11.7782 19.778L4 11.9999L11.7782 4.22168L13.1924 5.63589L7.82843 10.9999Z"})),_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:"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"})),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:"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"})),R8=({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"})),Fd=({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 Wn(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=x.createContext();function O8({value:e,...t}){return me.jsx(kb.Provider,{value:e??!0,...t})}const zd=()=>x.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 Bn(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]=Bn(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 Yd={exports:{}},Tt={};/**
|
|
71
71
|
* @license React
|
|
72
72
|
* react-is.production.min.js
|
|
73
73
|
*
|
|
@@ -75,16 +75,16 @@ Error generating stack: `+u.message+`
|
|
|
75
75
|
*
|
|
76
76
|
* This source code is licensed under the MIT license found in the
|
|
77
77
|
* LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/var Nb;function OO(){if(Nb)return Tt;Nb=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"),T=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),O;O=Symbol.for("react.module.reference");function x(k){if(typeof k=="object"&&k!==null){var R=k.$$typeof;switch(R){case e:switch(k=k.type,k){case r:case l:case i:case m:case b:return k;default:switch(k=k&&k.$$typeof,k){case d:case c:case p:case T:case E:case s:return k;default:return R}}case t:return R}}}return Tt.ContextConsumer=c,Tt.ContextProvider=s,Tt.Element=e,Tt.ForwardRef=p,Tt.Fragment=r,Tt.Lazy=T,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(k){return x(k)===c},Tt.isContextProvider=function(k){return x(k)===s},Tt.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===e},Tt.isForwardRef=function(k){return x(k)===p},Tt.isFragment=function(k){return x(k)===r},Tt.isLazy=function(k){return x(k)===T},Tt.isMemo=function(k){return x(k)===E},Tt.isPortal=function(k){return x(k)===t},Tt.isProfiler=function(k){return x(k)===l},Tt.isStrictMode=function(k){return x(k)===i},Tt.isSuspense=function(k){return x(k)===m},Tt.isSuspenseList=function(k){return x(k)===b},Tt.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===r||k===l||k===i||k===m||k===b||k===y||typeof k=="object"&&k!==null&&(k.$$typeof===T||k.$$typeof===E||k.$$typeof===s||k.$$typeof===c||k.$$typeof===p||k.$$typeof===O||k.getModuleId!==void 0)},Tt.typeOf=x,Tt}var kb;function NO(){return kb||(kb=1,Yd.exports=OO()),Yd.exports}NO();function xt(e){if(typeof e!="string")throw new Error(ka(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Db(...e){return e.reduce((t,r)=>r==null?t:function(...l){t.apply(this,l),r.apply(this,l)},()=>{})}function ws(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 jd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const fi=typeof window<"u"?_.useLayoutEffect:_.useEffect;function ra(e){const t=_.useRef(e);return fi(()=>{t.current=e}),_.useRef((...r)=>(0,t.current)(...r)).current}function fr(...e){return _.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{jd(r,t)})},e)}const Ib={};function Lb(e,t){const r=_.useRef(Ib);return r.current===Ib&&(r.current=e(t)),r}const kO=[];function DO(e){_.useEffect(e,kO)}class Vd{constructor(){ns(this,"currentId",null);ns(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});ns(this,"disposeEffect",()=>this.clear)}static create(){return new Vd}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function IO(){const e=Lb(Vd.create).current;return DO(e.disposeEffect),e}function wb(e){try{return e.matches(":focus-visible")}catch{}return!1}function LO(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Ms(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]=Ms(s[p],c[p])}}}else r[l]===void 0&&(r[l]=e[l])}return r}const Mb=e=>e,wO=(()=>{let e=Mb;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Mb}}})(),MO={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 Pn(e,t,r="Mui"){const i=MO[t];return i?`${r}-${i}`:`${wO.generate(e)}-${t}`}function Un(e,t,r="Mui"){const i={};return t.forEach(l=>{i[l]=Pn(e,l,r)}),i}function BO(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function PO(e){return typeof e=="string"}function Bb(e,t,r){return e===void 0||PO(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Pb(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 Ub(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 Hb(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),O={...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(O).length>0&&(x.style=O),{props:x,internalRef:void 0}}const c=Pb({...l,...i}),d=Ub(i),p=Ub(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},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 Fb(e,t,r){return typeof e=="function"?e(t,r):e}function Bs(e){var E;const{elementType:t,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:l=!1,...s}=e,c=l?{}:Fb(r,i),{props:d,internalRef:p}=Hb({...s,externalSlotProps:c}),m=fr(p,c==null?void 0:c.ref,(E=e.additionalProps)==null?void 0:E.ref);return Bb(t,{...d,ref:m},i)}function Ps(e){var t;return parseInt(_.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function UO(e){const t=Da(e);return t.body===e?jr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function vl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function zb(e){return parseInt(jr(e).getComputedStyle(e).paddingRight,10)||0}function HO(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 Yb(e,t,r,i,l){const s=[t,r,...i];[].forEach.call(e.children,c=>{const d=!s.includes(c),p=!HO(c);d&&p&&vl(c,l)})}function $d(e,t){let r=-1;return e.some((i,l)=>t(i)?(r=l,!0):!1),r}function FO(e,t){const r=[],i=e.container;if(!t.disableScrollLock){if(UO(i)){const c=LO(jr(i));r.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${zb(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=`${zb(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 zO(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class YO{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&&vl(t.modalRef,!1);const l=zO(r);Yb(r,t.mount,t.modalRef,l,!0);const s=$d(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=$d(this.containers,s=>s.modals.includes(t)),l=this.containers[i];l.restore||(l.restore=FO(l,r))}remove(t,r=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const l=$d(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&&vl(t.modalRef,r),Yb(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&&vl(c.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const jO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function VO(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 $O(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 qO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||$O(e))}function GO(e){const t=[],r=[];return Array.from(e.querySelectorAll(jO)).forEach((i,l)=>{const s=VO(i);s===-1||!qO(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 XO(){return!0}function QO(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:l=!1,getTabbable:s=GO,isEnabled:c=XO,open:d}=e,p=_.useRef(!1),m=_.useRef(null),b=_.useRef(null),E=_.useRef(null),T=_.useRef(null),y=_.useRef(!1),O=_.useRef(null),x=fr(Ps(t),O),k=_.useRef(null);_.useEffect(()=>{!d||!O.current||(y.current=!r)},[r,d]),_.useEffect(()=>{if(!d||!O.current)return;const D=Da(O.current);return O.current.contains(D.activeElement)||(O.current.hasAttribute("tabIndex")||O.current.setAttribute("tabIndex","-1"),y.current&&O.current.focus()),()=>{l||(E.current&&E.current.focus&&(p.current=!0,E.current.focus()),E.current=null)}},[d]),_.useEffect(()=>{if(!d||!O.current)return;const D=Da(O.current),P=Y=>{k.current=Y,!(i||!c()||Y.key!=="Tab")&&D.activeElement===O.current&&Y.shiftKey&&(p.current=!0,b.current&&b.current.focus())},I=()=>{var $,C;const Y=O.current;if(Y===null)return;if(!D.hasFocus()||!c()||p.current){p.current=!1;return}if(Y.contains(D.activeElement)||i&&D.activeElement!==m.current&&D.activeElement!==b.current)return;if(D.activeElement!==T.current)T.current=null;else if(T.current!==null)return;if(!y.current)return;let ue=[];if((D.activeElement===m.current||D.activeElement===b.current)&&(ue=s(O.current)),ue.length>0){const j=!!(($=k.current)!=null&&$.shiftKey&&((C=k.current)==null?void 0:C.key)==="Tab"),K=ue[0],J=ue[ue.length-1];typeof K!="string"&&typeof J!="string"&&(j?J.focus():K.focus())}else Y.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 R=D=>{E.current===null&&(E.current=D.relatedTarget),y.current=!0,T.current=D.target;const P=t.props.onFocus;P&&P(D)},H=D=>{E.current===null&&(E.current=D.relatedTarget),y.current=!0};return me.jsxs(_.Fragment,{children:[me.jsx("div",{tabIndex:d?0:-1,onFocus:H,ref:m,"data-testid":"sentinelStart"}),_.cloneElement(t,{ref:x,onFocus:R}),me.jsx("div",{tabIndex:d?0:-1,onFocus:H,ref:b,"data-testid":"sentinelEnd"})]})}var jb=Wp();const Us=ir(jb);function KO(e){return typeof e=="function"?e():e}const WO=_.forwardRef(function(t,r){const{children:i,container:l,disablePortal:s=!1}=t,[c,d]=_.useState(null),p=fr(_.isValidElement(i)?Ps(i):null,r);if(fi(()=>{s||d(KO(l)||document.body)},[l,s]),fi(()=>{if(c&&!s)return jd(r,c),()=>{jd(r,null)}},[r,c,s]),s){if(_.isValidElement(i)){const m={ref:p};return _.cloneElement(i,m)}return me.jsx(_.Fragment,{children:i})}return me.jsx(_.Fragment,{children:c&&jb.createPortal(i,c)})});function Rl(e,t){return t?Bn(e,t,{clone:!1}):e}function ZO(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 JO(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function eN(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 tN(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 Hs={xs:0,sm:600,md:900,lg:1200,xl:1536},Vb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Hs[e]}px)`},nN={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Hs[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||Vb;return t.reduce((c,d,p)=>(c[s.up(s.keys[p])]=r(t[p]),c),{})}if(typeof t=="object"){const s=i.breakpoints||Vb;return Object.keys(t).reduce((c,d)=>{if(JO(s.keys,d)){const p=eN(i.containerQueries?i:nN,d);p&&(c[p]=r(t[d],d))}else if(Object.keys(s.values||Hs).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 rN(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((i,l)=>{const s=e.up(l);return i[s]={},i},{}))||{}}function aN(e,t){return e.reduce((r,i)=>{const l=r[i];return(!l||Object.keys(l).length===0)&&delete r[i],r},t)}function Fs(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 zs(e,t,r,i=r){let l;return typeof e=="function"?l=e(r):Array.isArray(e)?l=e[r]||i:l=Fs(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=Fs(p,i)||{};return aa(c,d,E=>{let T=zs(m,l,E);return E===T&&typeof E=="string"&&(T=zs(m,l,`${t}${E==="default"?"":xt(E)}`,E)),r===!1?T:{[r]:T}})};return s.propTypes={},s.filterProps=[t],s}function iN(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const uN={m:"margin",p:"padding"},lN={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$b={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},oN=iN(e=>{if(e.length>2)if($b[e])e=$b[e];else return[e];const[t,r]=e.split(""),i=uN[t],l=lN[r]||"";return Array.isArray(l)?l.map(s=>i+s):[i+l]}),qd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Gd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...qd,...Gd];function Ol(e,t,r,i){const l=Fs(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 Xd(e){return Ol(e,"spacing",8)}function Nl(e,t){return typeof t=="string"||t==null?t:e(t)}function sN(e,t){return r=>e.reduce((i,l)=>(i[l]=Nl(t,r),i),{})}function cN(e,t,r,i){if(!t.includes(r))return null;const l=oN(r),s=sN(l,i),c=e[r];return aa(e,c,s)}function qb(e,t){const r=Xd(e.theme);return Object.keys(e).map(i=>cN(e,t,i,r)).reduce(Rl,{})}function jt(e){return qb(e,qd)}jt.propTypes={},jt.filterProps=qd;function Vt(e){return qb(e,Gd)}Vt.propTypes={},Vt.filterProps=Gd;function Ys(...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]?Rl(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 fN=hr("border",dr),dN=hr("borderTop",dr),hN=hr("borderRight",dr),pN=hr("borderBottom",dr),mN=hr("borderLeft",dr),gN=hr("borderColor"),bN=hr("borderTopColor"),EN=hr("borderRightColor"),yN=hr("borderBottomColor"),TN=hr("borderLeftColor"),SN=hr("outline",dr),AN=hr("outlineColor"),js=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ol(e.theme,"shape.borderRadius",4),r=i=>({borderRadius:Nl(t,i)});return aa(e,e.borderRadius,r)}return null};js.propTypes={},js.filterProps=["borderRadius"],Ys(fN,dN,hN,pN,mN,gN,bN,EN,yN,TN,js,SN,AN);const Vs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ol(e.theme,"spacing",8),r=i=>({gap:Nl(t,i)});return aa(e,e.gap,r)}return null};Vs.propTypes={},Vs.filterProps=["gap"];const $s=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ol(e.theme,"spacing",8),r=i=>({columnGap:Nl(t,i)});return aa(e,e.columnGap,r)}return null};$s.propTypes={},$s.filterProps=["columnGap"];const qs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ol(e.theme,"spacing",8),r=i=>({rowGap:Nl(t,i)});return aa(e,e.rowGap,r)}return null};qs.propTypes={},qs.filterProps=["rowGap"];const CN=Kt({prop:"gridColumn"}),_N=Kt({prop:"gridRow"}),xN=Kt({prop:"gridAutoFlow"}),vN=Kt({prop:"gridAutoColumns"}),RN=Kt({prop:"gridAutoRows"}),ON=Kt({prop:"gridTemplateColumns"}),NN=Kt({prop:"gridTemplateRows"}),kN=Kt({prop:"gridTemplateAreas"}),DN=Kt({prop:"gridArea"});Ys(Vs,$s,qs,CN,_N,xN,vN,RN,ON,NN,kN,DN);function ru(e,t){return t==="grey"?t:e}const IN=Kt({prop:"color",themeKey:"palette",transform:ru}),LN=Kt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ru}),wN=Kt({prop:"backgroundColor",themeKey:"palette",transform:ru});Ys(IN,LN,wN);function Zn(e){return e<=1&&e!==0?`${e*100}%`:e}const MN=Kt({prop:"width",transform:Zn}),Qd=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])||Hs[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:Zn(r)}};return aa(e,e.maxWidth,t)}return null};Qd.filterProps=["maxWidth"];const BN=Kt({prop:"minWidth",transform:Zn}),PN=Kt({prop:"height",transform:Zn}),UN=Kt({prop:"maxHeight",transform:Zn}),HN=Kt({prop:"minHeight",transform:Zn});Kt({prop:"size",cssProperty:"width",transform:Zn}),Kt({prop:"size",cssProperty:"height",transform:Zn});const FN=Kt({prop:"boxSizing"});Ys(MN,Qd,BN,PN,UN,HN,FN);const kl={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:js},color:{themeKey:"palette",transform:ru},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ru},backgroundColor:{themeKey:"palette",transform:ru},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:Vs},rowGap:{style:qs},columnGap:{style:$s},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Zn},maxWidth:{style:Qd},minWidth:{transform:Zn},height:{transform:Zn},maxHeight:{transform:Zn},minHeight:{transform:Zn},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 zN(...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 YN(e,t){return typeof e=="function"?e(t):e}function jN(){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=Fs(l,m)||{};return E?E(c):aa(c,i,O=>{let x=zs(T,b,O);return O===x&&typeof O=="string"&&(x=zs(T,b,`${r}${O==="default"?"":xt(O)}`,O)),p===!1?x:{[p]:x}})}function t(r){const{sx:i,theme:l={}}=r||{};if(!i)return null;const s=l.unstable_sxConfig??kl;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=rN(l.breakpoints),b=Object.keys(m);let E=m;return Object.keys(p).forEach(T=>{const y=YN(p[T],l);if(y!=null)if(typeof y=="object")if(s[T])E=Rl(E,e(T,y,l,s));else{const O=aa({theme:l},y,x=>({[T]:x}));zN(O,y)?E[T]=t({sx:y,theme:l}):E=Rl(E,O)}else E=Rl(E,e(T,y,l,s))}),ZO(l,aN(b,E))}return Array.isArray(i)?i.map(c):c(i)}return t}const di=jN();di.filterProps=["sx"];const VN=e=>{var i;const t={systemProps:{},otherProps:{}},r=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??kl;return Object.keys(e).forEach(l=>{r[l]?t.systemProps[l]=e[l]:t.otherProps[l]=e[l]}),t};function $N(e){const{sx:t,...r}=e,{systemProps:i,otherProps:l}=VN(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 qN(e){return e==null||Object.keys(e).length===0}function Gb(e){const{styles:t,defaultTheme:r={}}=e,i=typeof t=="function"?l=>t(qN(l)?r:l):t;return me.jsx(NC,{styles:i})}/**
|
|
78
|
+
*/var Lb;function N8(){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"),O;O=Symbol.for("react.module.reference");function _(L){if(typeof L=="object"&&L!==null){var R=L.$$typeof;switch(R){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 R}}case t:return R}}}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===O||L.getModuleId!==void 0)},Tt.typeOf=_,Tt}var Ib;function k8(){return Ib||(Ib=1,Yd.exports=N8()),Yd.exports}k8();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 ws(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 jd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const fi=typeof window<"u"?x.useLayoutEffect:x.useEffect;function ra(e){const t=x.useRef(e);return fi(()=>{t.current=e}),x.useRef((...r)=>(0,t.current)(...r)).current}function fr(...e){return x.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{jd(r,t)})},e)}const Mb={};function Bb(e,t){const r=x.useRef(Mb);return r.current===Mb&&(r.current=e(t)),r}const D8=[];function L8(e){x.useEffect(e,D8)}class Vd{constructor(){ns(this,"currentId",null);ns(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});ns(this,"disposeEffect",()=>this.clear)}static create(){return new Vd}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function I8(){const e=Bb(Vd.create).current;return L8(e.disposeEffect),e}function Pb(e){try{return e.matches(":focus-visible")}catch{}return!1}function w8(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Ms(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]=Ms(s[p],c[p])}}}else r[l]===void 0&&(r[l]=e[l])}return r}const Ub=e=>e,M8=(()=>{let e=Ub;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ub}}})(),B8={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 Pn(e,t,r="Mui"){const i=B8[t];return i?`${r}-${i}`:`${M8.generate(e)}-${t}`}function Un(e,t,r="Mui"){const i={};return t.forEach(l=>{i[l]=Pn(e,l,r)}),i}function P8(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function U8(e){return typeof e=="string"}function Hb(e,t,r){return e===void 0||U8(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),O={...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(O).length>0&&(_.style=O),{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 Bs(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 Ps(e){var t;return parseInt(x.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function H8(e){const t=Da(e);return t.body===e?jr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function vl(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 F8(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=!F8(c);d&&p&&vl(c,l)})}function $d(e,t){let r=-1;return e.some((i,l)=>t(i)?(r=l,!0):!1),r}function z8(e,t){const r=[],i=e.container;if(!t.disableScrollLock){if(H8(i)){const c=w8(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 Y8(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class j8{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&&vl(t.modalRef,!1);const l=Y8(r);$b(r,t.mount,t.modalRef,l,!0);const s=$d(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=$d(this.containers,s=>s.modals.includes(t)),l=this.containers[i];l.restore||(l.restore=z8(l,r))}remove(t,r=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const l=$d(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&&vl(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&&vl(c.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const V8=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $8(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 q8(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 G8(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||q8(e))}function X8(e){const t=[],r=[];return Array.from(e.querySelectorAll(V8)).forEach((i,l)=>{const s=$8(i);s===-1||!G8(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 Q8(){return!0}function K8(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:l=!1,getTabbable:s=X8,isEnabled:c=Q8,open:d}=e,p=x.useRef(!1),m=x.useRef(null),b=x.useRef(null),E=x.useRef(null),S=x.useRef(null),y=x.useRef(!1),O=x.useRef(null),_=fr(Ps(t),O),L=x.useRef(null);x.useEffect(()=>{!d||!O.current||(y.current=!r)},[r,d]),x.useEffect(()=>{if(!d||!O.current)return;const k=Da(O.current);return O.current.contains(k.activeElement)||(O.current.hasAttribute("tabIndex")||O.current.setAttribute("tabIndex","-1"),y.current&&O.current.focus()),()=>{l||(E.current&&E.current.focus&&(p.current=!0,E.current.focus()),E.current=null)}},[d]),x.useEffect(()=>{if(!d||!O.current)return;const k=Da(O.current),P=Y=>{L.current=Y,!(i||!c()||Y.key!=="Tab")&&k.activeElement===O.current&&Y.shiftKey&&(p.current=!0,b.current&&b.current.focus())},I=()=>{var j,A;const Y=O.current;if(Y===null)return;if(!k.hasFocus()||!c()||p.current){p.current=!1;return}if(Y.contains(k.activeElement)||i&&k.activeElement!==m.current&&k.activeElement!==b.current)return;if(k.activeElement!==S.current)S.current=null;else if(S.current!==null)return;if(!y.current)return;let ae=[];if((k.activeElement===m.current||k.activeElement===b.current)&&(ae=s(O.current)),ae.length>0){const V=!!((j=L.current)!=null&&j.shiftKey&&((A=L.current)==null?void 0:A.key)==="Tab"),K=ae[0],Q=ae[ae.length-1];typeof K!="string"&&typeof Q!="string"&&(V?Q.focus():K.focus())}else Y.focus()};k.addEventListener("focusin",I),k.addEventListener("keydown",P,!0);const M=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(M),k.removeEventListener("focusin",I),k.removeEventListener("keydown",P,!0)}},[r,i,l,c,d,s]);const R=k=>{E.current===null&&(E.current=k.relatedTarget),y.current=!0,S.current=k.target;const P=t.props.onFocus;P&&P(k)},H=k=>{E.current===null&&(E.current=k.relatedTarget),y.current=!0};return me.jsxs(x.Fragment,{children:[me.jsx("div",{tabIndex:d?0:-1,onFocus:H,ref:m,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:_,onFocus:R}),me.jsx("div",{tabIndex:d?0:-1,onFocus:H,ref:b,"data-testid":"sentinelEnd"})]})}var qb=Zp();const Us=ir(qb);function W8(e){return typeof e=="function"?e():e}const Z8=x.forwardRef(function(t,r){const{children:i,container:l,disablePortal:s=!1}=t,[c,d]=x.useState(null),p=fr(x.isValidElement(i)?Ps(i):null,r);if(fi(()=>{s||d(W8(l)||document.body)},[l,s]),fi(()=>{if(c&&!s)return jd(r,c),()=>{jd(r,null)}},[r,c,s]),s){if(x.isValidElement(i)){const m={ref:p};return x.cloneElement(i,m)}return me.jsx(x.Fragment,{children:i})}return me.jsx(x.Fragment,{children:c&&qb.createPortal(i,c)})});function Rl(e,t){return t?Bn(e,t,{clone:!1}):e}function J8(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 eR(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function tR(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 nR(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 Hs={xs:0,sm:600,md:900,lg:1200,xl:1536},Gb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Hs[e]}px)`},rR={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Hs[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(eR(s.keys,d)){const p=tR(i.containerQueries?i:rR,d);p&&(c[p]=r(t[d],d))}else if(Object.keys(s.values||Hs).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 aR(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((i,l)=>{const s=e.up(l);return i[s]={},i},{}))||{}}function iR(e,t){return e.reduce((r,i)=>{const l=r[i];return(!l||Object.keys(l).length===0)&&delete r[i],r},t)}function Fs(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 zs(e,t,r,i=r){let l;return typeof e=="function"?l=e(r):Array.isArray(e)?l=e[r]||i:l=Fs(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=Fs(p,i)||{};return aa(c,d,E=>{let S=zs(m,l,E);return E===S&&typeof E=="string"&&(S=zs(m,l,`${t}${E==="default"?"":_t(E)}`,E)),r===!1?S:{[r]:S}})};return s.propTypes={},s.filterProps=[t],s}function uR(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const lR={m:"margin",p:"padding"},oR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sR=uR(e=>{if(e.length>2)if(Xb[e])e=Xb[e];else return[e];const[t,r]=e.split(""),i=lR[t],l=oR[r]||"";return Array.isArray(l)?l.map(s=>i+s):[i+l]}),qd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Gd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...qd,...Gd];function Ol(e,t,r,i){const l=Fs(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 Xd(e){return Ol(e,"spacing",8)}function Nl(e,t){return typeof t=="string"||t==null?t:e(t)}function cR(e,t){return r=>e.reduce((i,l)=>(i[l]=Nl(t,r),i),{})}function fR(e,t,r,i){if(!t.includes(r))return null;const l=sR(r),s=cR(l,i),c=e[r];return aa(e,c,s)}function Qb(e,t){const r=Xd(e.theme);return Object.keys(e).map(i=>fR(e,t,i,r)).reduce(Rl,{})}function jt(e){return Qb(e,qd)}jt.propTypes={},jt.filterProps=qd;function Vt(e){return Qb(e,Gd)}Vt.propTypes={},Vt.filterProps=Gd;function Ys(...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]?Rl(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 dR=hr("border",dr),hR=hr("borderTop",dr),pR=hr("borderRight",dr),mR=hr("borderBottom",dr),gR=hr("borderLeft",dr),bR=hr("borderColor"),ER=hr("borderTopColor"),yR=hr("borderRightColor"),TR=hr("borderBottomColor"),SR=hr("borderLeftColor"),CR=hr("outline",dr),AR=hr("outlineColor"),js=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ol(e.theme,"shape.borderRadius",4),r=i=>({borderRadius:Nl(t,i)});return aa(e,e.borderRadius,r)}return null};js.propTypes={},js.filterProps=["borderRadius"],Ys(dR,hR,pR,mR,gR,bR,ER,yR,TR,SR,js,CR,AR);const Vs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ol(e.theme,"spacing",8),r=i=>({gap:Nl(t,i)});return aa(e,e.gap,r)}return null};Vs.propTypes={},Vs.filterProps=["gap"];const $s=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ol(e.theme,"spacing",8),r=i=>({columnGap:Nl(t,i)});return aa(e,e.columnGap,r)}return null};$s.propTypes={},$s.filterProps=["columnGap"];const qs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ol(e.theme,"spacing",8),r=i=>({rowGap:Nl(t,i)});return aa(e,e.rowGap,r)}return null};qs.propTypes={},qs.filterProps=["rowGap"];const xR=Kt({prop:"gridColumn"}),_R=Kt({prop:"gridRow"}),vR=Kt({prop:"gridAutoFlow"}),RR=Kt({prop:"gridAutoColumns"}),OR=Kt({prop:"gridAutoRows"}),NR=Kt({prop:"gridTemplateColumns"}),kR=Kt({prop:"gridTemplateRows"}),DR=Kt({prop:"gridTemplateAreas"}),LR=Kt({prop:"gridArea"});Ys(Vs,$s,qs,xR,_R,vR,RR,OR,NR,kR,DR,LR);function iu(e,t){return t==="grey"?t:e}const IR=Kt({prop:"color",themeKey:"palette",transform:iu}),wR=Kt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:iu}),MR=Kt({prop:"backgroundColor",themeKey:"palette",transform:iu});Ys(IR,wR,MR);function Zn(e){return e<=1&&e!==0?`${e*100}%`:e}const BR=Kt({prop:"width",transform:Zn}),Qd=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])||Hs[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:Zn(r)}};return aa(e,e.maxWidth,t)}return null};Qd.filterProps=["maxWidth"];const PR=Kt({prop:"minWidth",transform:Zn}),UR=Kt({prop:"height",transform:Zn}),HR=Kt({prop:"maxHeight",transform:Zn}),FR=Kt({prop:"minHeight",transform:Zn});Kt({prop:"size",cssProperty:"width",transform:Zn}),Kt({prop:"size",cssProperty:"height",transform:Zn});const zR=Kt({prop:"boxSizing"});Ys(BR,Qd,PR,UR,HR,FR,zR);const kl={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:js},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:Vs},rowGap:{style:qs},columnGap:{style:$s},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Zn},maxWidth:{style:Qd},minWidth:{transform:Zn},height:{transform:Zn},maxHeight:{transform:Zn},minHeight:{transform:Zn},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 YR(...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 jR(e,t){return typeof e=="function"?e(t):e}function VR(){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=Fs(l,m)||{};return E?E(c):aa(c,i,O=>{let _=zs(S,b,O);return O===_&&typeof O=="string"&&(_=zs(S,b,`${r}${O==="default"?"":_t(O)}`,O)),p===!1?_:{[p]:_}})}function t(r){const{sx:i,theme:l={}}=r||{};if(!i)return null;const s=l.unstable_sxConfig??kl;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=aR(l.breakpoints),b=Object.keys(m);let E=m;return Object.keys(p).forEach(S=>{const y=jR(p[S],l);if(y!=null)if(typeof y=="object")if(s[S])E=Rl(E,e(S,y,l,s));else{const O=aa({theme:l},y,_=>({[S]:_}));YR(O,y)?E[S]=t({sx:y,theme:l}):E=Rl(E,O)}else E=Rl(E,e(S,y,l,s))}),J8(l,iR(b,E))}return Array.isArray(i)?i.map(c):c(i)}return t}const di=VR();di.filterProps=["sx"];const $R=e=>{var i;const t={systemProps:{},otherProps:{}},r=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??kl;return Object.keys(e).forEach(l=>{r[l]?t.systemProps[l]=e[l]:t.otherProps[l]=e[l]}),t};function qR(e){const{sx:t,...r}=e,{systemProps:i,otherProps:l}=$R(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 GR(e){return e==null||Object.keys(e).length===0}function Kb(e){const{styles:t,defaultTheme:r={}}=e,i=typeof t=="function"?l=>t(GR(l)?r:l):t;return me.jsx(LC,{styles:i})}/**
|
|
79
79
|
* @mui/styled-engine v6.1.6
|
|
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 XR(e,t){return Fe(e,t)}function QR(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Wb=[];function Zb(e){return Wb[0]=e,ds(Wb)}const KR=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 WR(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5,...l}=e,s=KR(t),c=Object.keys(s);function d(S){return`@media (min-width:${typeof t[S]=="number"?t[S]:S}${r})`}function p(S){return`@media (max-width:${(typeof t[S]=="number"?t[S]:S)-i/100}${r})`}function m(S,y){const O=c.indexOf(y);return`@media (min-width:${typeof t[S]=="number"?t[S]:S}${r}) and (max-width:${(O!==-1&&typeof t[c[O]]=="number"?t[c[O]]:y)-i/100}${r})`}function b(S){return c.indexOf(S)+1<c.length?m(S,c[c.indexOf(S)+1]):d(S)}function E(S){const y=c.indexOf(S);return y===0?d(c[1]):y===c.length-1?p(c[y]):m(S,c[c.indexOf(S)+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 ZR={borderRadius:4};function Jb(e=8,t=Xd({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 JR(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 Kd(e={},...t){const{breakpoints:r={},palette:i={},spacing:l,shape:s={},...c}=e,d=WR(r),p=Jb(l);let m=Bn({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:p,shape:{...ZR,...s}},c);return m=nR(m),m.applyStyles=JR,m=t.reduce((b,E)=>Bn(b,E),m),m.unstable_sxConfig={...kl,...c==null?void 0:c.unstable_sxConfig},m.unstable_sx=function(E){return di({sx:E,theme:this})},m}function eO(e){return Object.keys(e).length===0}function eE(e=null){const t=x.useContext(rl);return!t||eO(t)?e:t}const tO=Kd();function Wd(e=tO){return eE(e)}function nO({styles:e,themeId:t,defaultTheme:r={}}){const i=Wd(r),l=typeof e=="function"?e(t&&i[t]||i):e;return me.jsx(Kb,{styles:l})}function tE(e){const{variants:t,...r}=e,i={variants:t,style:Zb(r),isProcessed:!0};return i.style===r||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=Zb(l.style))}),i}const rO=Kd();function Zd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function aO(e){return e?(t,r)=>r[e]:null}function iO(e,t,r){e.theme=oO(e.theme)?r:e.theme[t]||e.theme}function Gs(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>Gs(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 nE(e,r.variants,[i])}return r!=null&&r.isProcessed?r.style:r}function nE(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 uO(e={}){const{themeId:t,defaultTheme:r=rO,rootShouldForwardProp:i=Zd,slotShouldForwardProp:l=Zd}=e;function s(d){iO(d,t,r)}return(d,p={})=>{QR(d,I=>I.filter(M=>M!==di));const{name:m,slot:b,skipVariantsResolver:E,skipSx:S,overridesResolver:y=aO(cO(b)),...O}=p,_=E!==void 0?E:b&&b!=="Root"&&b!=="root"||!1,L=S||!1;let R=Zd;b==="Root"||b==="root"?R=i:b?R=l:sO(d)&&(R=void 0);const H=XR(d,{shouldForwardProp:R,label:lO(),...O}),k=I=>{if(typeof I=="function"&&I.__emotion_real!==I)return function(Y){return Gs(Y,I)};if(Yr(I)){const M=tE(I);return M.variants?function(ae){return Gs(ae,M)}:M.style}return I},P=(...I)=>{const M=[],Y=I.map(k),ae=[];if(M.push(s),m&&y&&ae.push(function(K){var X,se;const Z=(se=(X=K.theme.components)==null?void 0:X[m])==null?void 0:se.styleOverrides;if(!Z)return null;const re={};for(const ne in Z)re[ne]=Gs(K,Z[ne]);return y(K,re)}),m&&!_&&ae.push(function(K){var re,X;const Q=K.theme,Z=(X=(re=Q==null?void 0:Q.components)==null?void 0:re[m])==null?void 0:X.variants;return Z?nE(K,Z):null}),L||ae.push(di),Array.isArray(Y[0])){const V=Y.shift(),K=new Array(M.length).fill(""),Q=new Array(ae.length).fill("");let Z;Z=[...K,...V,...Q],Z.raw=[...K,...V.raw,...Q],M.unshift(Z)}const j=[...M,...Y,...ae],A=H(...j);return d.muiName&&(A.muiName=d.muiName),A};return H.withConfig&&(P.withConfig=H.withConfig),P}}function lO(e,t){return void 0}function oO(e){for(const t in e)return!1;return!0}function sO(e){return typeof e=="string"&&e.charCodeAt(0)>96}function cO(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function fO(e){const{theme:t,name:r,props:i}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?i:Ms(t.components[r].defaultProps,i)}function dO({props:e,name:t,defaultTheme:r,themeId:i}){let l=Wd(r);return l=l[i]||l,fO({theme:l,name:t,props:e})}function Jd(e,t=0,r=1){return P8(e,t,r)}function hO(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 La(e){if(e.type)return e;if(e.charAt(0)==="#")return La(hO(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(ka(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(ka(10,l))}else i=i.split(",");return i=i.map(s=>parseFloat(s)),{type:r,values:i,colorSpace:l}}const pO=e=>{const t=La(e);return t.values.slice(0,3).map((r,i)=>t.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")},Dl=(e,t)=>{try{return pO(e)}catch{return e}};function Xs(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 rE(e){e=La(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])),Xs({type:d,values:p})}function e0(e){e=La(e);let t=e.type==="hsl"||e.type==="hsla"?La(rE(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 mO(e,t){const r=e0(e),i=e0(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function Ll(e,t){return e=La(e),t=Jd(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Xs(e)}function Qs(e,t,r){try{return Ll(e,t)}catch{return e}}function Il(e,t){if(e=La(e),t=Jd(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 Xs(e)}function vt(e,t,r){try{return Il(e,t)}catch{return e}}function wl(e,t){if(e=La(e),t=Jd(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 Xs(e)}function Rt(e,t,r){try{return wl(e,t)}catch{return e}}function gO(e,t=.15){return e0(e)>.5?Il(e,t):wl(e,t)}function Ks(e,t,r){try{return gO(e,t)}catch{return e}}const aE=x.createContext(null);function t0(){return x.useContext(aE)}const bO=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function EO(e,t){return typeof t=="function"?t(e):{...e,...t}}function yO(e){const{children:t,theme:r}=e,i=t0(),l=x.useMemo(()=>{const s=i===null?{...r}:EO(i,r);return s!=null&&(s[bO]=i!==null),s},[r,i]);return me.jsx(aE.Provider,{value:l,children:t})}const iE=x.createContext(void 0);function TO({value:e,children:t}){return me.jsx(iE.Provider,{value:e,children:t})}function SO(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?Ms(l.defaultProps,i):!l.styleOverrides&&!l.variants?Ms(l,i):i}function CO({props:e,name:t}){const r=x.useContext(iE);return SO({props:e,name:t,theme:{components:r}})}const uE={};function lE(e,t,r,i=!1){return x.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 oE(e){const{children:t,theme:r,themeId:i}=e,l=eE(uE),s=t0()||uE,c=lE(i,l,r),d=lE(i,s,r,!0),p=c.direction==="rtl";return me.jsx(yO,{theme:d,children:me.jsx(rl.Provider,{value:c,children:me.jsx(O8,{value:p,children:me.jsx(TO,{value:c==null?void 0:c.components,children:t})})})})}const sE={theme:void 0};function AO(e){let t,r;return function(l){let s=t;return(s===void 0||l.theme!==r)&&(sE.theme=l.theme,s=tE(e(sE)),t=s,r=l.theme),s}}const n0="mode",r0="color-scheme",xO="data-color-scheme";function _O(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:i="dark",modeStorageKey:l=n0,colorSchemeStorageKey:s=r0,attribute:c=xO,colorSchemeNode:d="document.documentElement",nonce:p}=e||{};let m="",b=c;if(c==="class"&&(b=".%s"),c==="data"&&(b="[data-%s]"),b.startsWith(".")){const S=b.substring(1);m+=`${d}.classList.remove('${S}'.replace('%s', light), '${S}'.replace('%s', dark));
|
|
85
|
+
${d}.classList.add('${S}'.replace('%s', colorScheme));`}const E=b.match(/\[([^\]]+)\]/);if(E){const[S,y]=E[1].split("=");y||(m+=`${d}.removeAttribute('${S}'.replace('%s', light));
|
|
86
|
+
${d}.removeAttribute('${S}'.replace('%s', dark));`),m+=`
|
|
87
|
+
${d}.setAttribute('${S}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else m+=`${d}.setAttribute('${b}', colorScheme);`;return me.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 lE(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function oE(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 x5(e){return oE(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function ah(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 v5(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:i,supportedColorSchemes:l=[],modeStorageKey:s=nh,colorSchemeStorageKey:c=rh,storageWindow:d=typeof window>"u"?void 0:window}=e,p=l.join(","),m=l.length>1,[b,E]=_.useState(()=>{const D=ah(s,t),P=ah(`${c}-light`,r),I=ah(`${c}-dark`,i);return{mode:D,systemMode:lE(D),lightColorScheme:P,darkColorScheme:I}}),[,T]=_.useState(!1),y=_.useRef(!1);_.useEffect(()=>{m&&T(!0),y.current=!0},[m]);const O=x5(b),x=_.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:lE(I)}})},[s,t]),k=_.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 oE(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,Y=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(Y)if(!p.includes(Y))console.error(`\`${Y}\` does not exist in \`theme.colorSchemes\`.`);else{I.darkColorScheme=Y;try{localStorage.setItem(`${c}-dark`,Y)}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]),R=_.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=_.useRef(R);return H.current=R,_.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]),_.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")&&k({light:I}),P.key.endsWith("dark")&&k({dark:I})),P.key===s&&(!I||["light","dark","system"].includes(I))&&x(I||t)};return d.addEventListener("storage",D),()=>{d.removeEventListener("storage",D)}}},[k,x,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?O:void 0,setMode:x,setColorScheme:k}}const R5="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function O5(e){const{themeId:t,theme:r={},modeStorageKey:i=nh,colorSchemeStorageKey:l=rh,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=_.createContext(void 0),b=()=>_.useContext(m)||p;function E(x){var _n,we,Ge,$t,te;const{children:k,theme:R,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:Y=typeof document>"u"?void 0:document.documentElement,disableNestedContext:ue=!1,disableStyleSheetGeneration:$=!1,defaultMode:C="system"}=x,j=_.useRef(!1),K=th(),J=_.useContext(m),Z=!!J&&!ue,re=_.useMemo(()=>R||(typeof r=="function"?r():r),[R]),X=re[t],{colorSchemes:oe={},components:Q={},cssVarPrefix:pe,...A}=X||re,ee=Object.keys(oe).filter(fe=>!!oe[fe]).join(","),Te=_.useMemo(()=>ee.split(","),[ee]),L=typeof c=="string"?c:c.light,se=typeof c=="string"?c:c.dark,Oe=oe[L]&&oe[se]?C:((we=(_n=oe[A.defaultColorScheme])==null?void 0:_n.palette)==null?void 0:we.mode)||((Ge=A.palette)==null?void 0:Ge.mode),{mode:Se,setMode:et,systemMode:Me,lightColorScheme:Ve,darkColorScheme:_e,colorScheme:qe,setColorScheme:ve}=v5({supportedColorSchemes:Te,defaultLightColorScheme:L,defaultDarkColorScheme:se,modeStorageKey:H,colorSchemeStorageKey:D,defaultMode:Oe,storageWindow:I});let Re=Se,Ae=qe;Z&&(Re=J.mode,Ae=J.colorScheme);const Be=Ae||A.defaultColorScheme,it=(($t=A.generateThemeVars)==null?void 0:$t.call(A))||A.vars,Ye={...A,components:Q,colorSchemes:oe,cssVarPrefix:pe,vars:it};if(typeof Ye.generateSpacing=="function"&&(Ye.spacing=Ye.generateSpacing()),Be){const fe=oe[Be];fe&&typeof fe=="object"&&Object.keys(fe).forEach(Ce=>{fe[Ce]&&typeof fe[Ce]=="object"?Ye[Ce]={...Ye[Ce],...fe[Ce]}:Ye[Ce]=fe[Ce]})}const Ue=A.colorSchemeSelector;_.useEffect(()=>{if(Ae&&Y&&Ue&&Ue!=="media"){const fe=Ue;let Ce=Ue;if(fe==="class"&&(Ce=".%s"),fe==="data"&&(Ce="[data-%s]"),fe!=null&&fe.startsWith("data-")&&!fe.includes("%s")&&(Ce=`[${fe}="%s"]`),Ce.startsWith("."))Y.classList.remove(...Te.map(He=>Ce.substring(1).replace("%s",He))),Y.classList.add(Ce.substring(1).replace("%s",Ae));else{const He=Ce.replace("%s",Ae).match(/\[([^\]]+)\]/);if(He){const[nt,Xe]=He[1].split("=");Xe||Te.forEach(xn=>{Y.removeAttribute(nt.replace(Ae,xn))}),Y.setAttribute(nt,Xe?Xe.replace(/"|'/g,""):"")}else Y.setAttribute(Ce,Ae)}}},[Ae,Ue,Y,Te]),_.useEffect(()=>{let fe;if(P&&j.current&&M){const Ce=M.createElement("style");Ce.appendChild(M.createTextNode(R5)),M.head.appendChild(Ce),window.getComputedStyle(M.body),fe=setTimeout(()=>{M.head.removeChild(Ce)},1)}return()=>{clearTimeout(fe)}},[Ae,P,M]),_.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);const ct=_.useMemo(()=>({allColorSchemes:Te,colorScheme:Ae,darkColorScheme:_e,lightColorScheme:Ve,mode:Re,setColorScheme:ve,setMode:et,systemMode:Me}),[Te,Ae,_e,Ve,Re,ve,et,Me]);let At=!0;($||A.cssVariables===!1||Z&&(K==null?void 0:K.cssVarPrefix)===pe)&&(At=!1);const rn=me.jsxs(_.Fragment,{children:[me.jsx(iE,{themeId:X?t:void 0,theme:d?d(Ye):Ye,children:k}),At&&me.jsx(Gb,{styles:((te=Ye.generateStyleSheets)==null?void 0:te.call(Ye))||[]})]});return Z?rn:me.jsx(m.Provider,{value:ct,children:rn})}const T=typeof c=="string"?c:c.light,y=typeof c=="string"?c:c.dark;return{CssVarsProvider:E,useColorScheme:b,getInitColorSchemeScript:x=>_5({colorSchemeStorageKey:l,defaultLightColorScheme:T,defaultDarkColorScheme:y,modeStorageKey:i,...x})}}function N5(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 sE=(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])})},k5=(e,t,r)=>{function i(l,s=[],c=[]){Object.entries(l).forEach(([d,p])=>{(!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)},D5=(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 ih(e,t){const{prefix:r,shouldSkipGeneratingVar:i}=t||{},l={},s={},c={};return k5(e,(d,p,m)=>{if((typeof p=="string"||typeof p=="number")&&(!i||!i(d,p))){const b=`--${r?`${r}-`:""}${d.join("-")}`,E=D5(d,p);Object.assign(l,{[b]:E}),sE(s,d,`var(${b})`,m),sE(c,d,`var(${b}, ${E})`,m)}},d=>d[0]==="vars"),{css:l,vars:s,varsWithDefaults:c}}function I5(e,t={}){const{getSelector:r=k,disableCssColorScheme:i,colorSchemeSelector:l}=t,{colorSchemes:s={},components:c,defaultColorScheme:d="light",...p}=e,{vars:m,css:b,varsWithDefaults:E}=ih(p,t);let T=E;const y={},{[d]:O,...x}=s;if(Object.entries(x||{}).forEach(([D,P])=>{const{vars:I,css:M,varsWithDefaults:Y}=ih(P,t);T=Bn(T,Y),y[D]={css:M,vars:I}}),O){const{css:D,vars:P,varsWithDefaults:I}=ih(O,t);T=Bn(T,I),y[d]={css:D,vars:P}}function k(D,P){var M,Y;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: ${((Y=(M=s[D])==null?void 0:M.palette)==null?void 0:Y.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:T,generateThemeVars:()=>{let D={...m};return Object.entries(y).forEach(([,{vars:P}])=>{D=Bn(D,P)}),D},generateStyleSheets:()=>{var ue,$;const D=[],P=e.defaultColorScheme||"light";function I(C,j){Object.keys(j).length&&D.push(typeof C=="string"?{[C]:{...j}}:C)}I(r(void 0,{...b}),b);const{[P]:M,...Y}=y;if(M){const{css:C}=M,j=($=(ue=s[P])==null?void 0:ue.palette)==null?void 0:$.mode,K=!i&&j?{colorScheme:j,...C}:{...C};I(r(P,{...K}),K)}return Object.entries(Y).forEach(([C,{css:j}])=>{var Z,re;const K=(re=(Z=s[C])==null?void 0:Z.palette)==null?void 0:re.mode,J=!i&&K?{colorScheme:K,...j}:{...j};I(r(C,{...J}),J)}),D}}}function L5(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 Ml={black:"#000",white:"#fff"},w5={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"},au={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},iu={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Bl={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},uu={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},lu={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ou={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function cE(){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:Ml.white,default:Ml.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 M5=cE();function fE(){return{text:{primary:Ml.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:Ml.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 dE=fE();function hE(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=wl(e.main,l):t==="dark"&&(e.dark=Ll(e.main,s)))}function B5(e="light"){return e==="dark"?{main:uu[200],light:uu[50],dark:uu[400]}:{main:uu[700],light:uu[400],dark:uu[800]}}function P5(e="light"){return e==="dark"?{main:au[200],light:au[50],dark:au[400]}:{main:au[500],light:au[300],dark:au[700]}}function U5(e="light"){return e==="dark"?{main:iu[500],light:iu[300],dark:iu[700]}:{main:iu[700],light:iu[400],dark:iu[800]}}function H5(e="light"){return e==="dark"?{main:lu[400],light:lu[300],dark:lu[700]}:{main:lu[700],light:lu[500],dark:lu[900]}}function F5(e="light"){return e==="dark"?{main:ou[400],light:ou[300],dark:ou[700]}:{main:ou[800],light:ou[500],dark:ou[900]}}function z5(e="light"){return e==="dark"?{main:Bl[400],light:Bl[300],dark:Bl[700]}:{main:"#ed6c02",light:Bl[500],dark:Bl[900]}}function uh(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:i=.2,...l}=e,s=e.primary||B5(t),c=e.secondary||P5(t),d=e.error||U5(t),p=e.info||H5(t),m=e.success||F5(t),b=e.warning||z5(t);function E(x){return p5(x,dE.text.primary)>=r?dE.text.primary:M5.text.primary}const T=({color:x,name:k,mainShade:R=500,lightShade:H=300,darkShade:D=700})=>{if(x={...x},!x.main&&x[R]&&(x.main=x[R]),!x.hasOwnProperty("main"))throw new Error(ka(11,k?` (${k})`:"",R));if(typeof x.main!="string")throw new Error(ka(12,k?` (${k})`:"",JSON.stringify(x.main)));return hE(x,"light",H,i),hE(x,"dark",D,i),x.contrastText||(x.contrastText=E(x.main)),x};let y;return t==="light"?y=cE():t==="dark"&&(y=fE()),Bn({common:{...Ml},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:w5,contrastThreshold:r,getContrastText:E,augmentColor:T,tonalOffset:i,...y},l)}function Y5(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 j5(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function V5(e){return Math.round(e*1e5)/1e5}const pE={textTransform:"uppercase"},mE='"Roboto", "Helvetica", "Arial", sans-serif';function gE(e,t){const{fontFamily:r=mE,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||(k=>`${k/p*T}rem`),O=(k,R,H,D,P)=>({fontFamily:r,fontWeight:k,fontSize:y(R),lineHeight:H,...r===mE?{letterSpacing:`${V5(D/R)}em`}:{},...P,...m}),x={h1:O(l,96,1.167,-1.5),h2:O(l,60,1.2,-.5),h3:O(s,48,1.167,0),h4:O(s,34,1.235,.25),h5:O(s,24,1.334,0),h6:O(c,20,1.6,.15),subtitle1:O(s,16,1.75,.15),subtitle2:O(c,14,1.57,.1),body1:O(s,16,1.5,.15),body2:O(s,14,1.43,.15),button:O(c,14,1.75,.4,pE),caption:O(s,12,1.66,.4),overline:O(s,12,2.66,1,pE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Bn({htmlFontSize:p,pxToRem:y,fontFamily:r,fontSize:i,fontWeightLight:l,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...x},E,{clone:!1})}const $5=.2,q5=.14,G5=.12;function Ut(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${$5})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${q5})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${G5})`].join(",")}const X5=["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)],Q5={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)"},K5={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bE(e){return`${Math.round(e)}ms`}function W5(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Z5(e){const t={...Q5,...e.easing},r={...K5,...e.duration};return{getAutoHeightDuration:W5,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:bE(c)} ${d} ${typeof p=="string"?p:bE(p)}`).join(",")},...e,easing:t,duration:r}}const J5={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ek(e){return Yr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function EE(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];!ek(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 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 vO(e){return fE(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function a0(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 RO(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:i,supportedColorSchemes:l=[],modeStorageKey:s=n0,colorSchemeStorageKey:c=r0,storageWindow:d=typeof window>"u"?void 0:window}=e,p=l.join(","),m=l.length>1,[b,E]=x.useState(()=>{const k=a0(s,t),P=a0(`${c}-light`,r),I=a0(`${c}-dark`,i);return{mode:k,systemMode:cE(k),lightColorScheme:P,darkColorScheme:I}}),[,S]=x.useState(!1),y=x.useRef(!1);x.useEffect(()=>{m&&S(!0),y.current=!0},[m]);const O=vO(b),_=x.useCallback(k=>{E(P=>{if(k===P.mode)return P;const I=k??t;try{localStorage.setItem(s,I)}catch{}return{...P,mode:I,systemMode:cE(I)}})},[s,t]),L=x.useCallback(k=>{k?typeof k=="string"?k&&!p.includes(k)?console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`):E(P=>{const I={...P};return fE(P,M=>{try{localStorage.setItem(`${c}-${M}`,k)}catch{}M==="light"&&(I.lightColorScheme=k),M==="dark"&&(I.darkColorScheme=k)}),I}):E(P=>{const I={...P},M=k.light===null?r:k.light,Y=k.dark===null?i:k.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(Y)if(!p.includes(Y))console.error(`\`${Y}\` does not exist in \`theme.colorSchemes\`.`);else{I.darkColorScheme=Y;try{localStorage.setItem(`${c}-dark`,Y)}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]),R=x.useCallback(k=>{b.mode==="system"&&E(P=>{const I=k!=null&&k.matches?"dark":"light";return P.systemMode===I?P:{...P,systemMode:I}})},[b.mode]),H=x.useRef(R);return H.current=R,x.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const k=(...I)=>H.current(...I),P=window.matchMedia("(prefers-color-scheme: dark)");return P.addListener(k),k(P),()=>{P.removeListener(k)}},[m]),x.useEffect(()=>{if(d&&m){const k=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",k),()=>{d.removeEventListener("storage",k)}}},[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?O:void 0,setMode:_,setColorScheme:L}}const OO="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function NO(e){const{themeId:t,theme:r={},modeStorageKey:i=n0,colorSchemeStorageKey:l=r0,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=x.createContext(void 0),b=()=>x.useContext(m)||p;function E(_){var _n,we,Xe,$t,ee;const{children:L,theme:R,modeStorageKey:H=i,colorSchemeStorageKey:k=l,disableTransitionOnChange:P=s,storageWindow:I=typeof window>"u"?void 0:window,documentNode:M=typeof document>"u"?void 0:document,colorSchemeNode:Y=typeof document>"u"?void 0:document.documentElement,disableNestedContext:ae=!1,disableStyleSheetGeneration:j=!1,defaultMode:A="system"}=_,V=x.useRef(!1),K=t0(),Q=x.useContext(m),Z=!!Q&&!ae,re=x.useMemo(()=>R||(typeof r=="function"?r():r),[R]),X=re[t],{colorSchemes:se={},components:ne={},cssVarPrefix:be,...C}=X||re,J=Object.keys(se).filter(de=>!!se[de]).join(","),oe=x.useMemo(()=>J.split(","),[J]),D=typeof c=="string"?c:c.light,ce=typeof c=="string"?c:c.dark,Oe=se[D]&&se[ce]?A:((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}=RO({supportedColorSchemes:oe,defaultLightColorScheme:D,defaultDarkColorScheme:ce,modeStorageKey:H,colorSchemeStorageKey:k,defaultMode:Oe,storageWindow:I});let Re=Se,Ce=Ge;Z&&(Re=Q.mode,Ce=Q.colorScheme);const Be=Ce||C.defaultColorScheme,it=(($t=C.generateThemeVars)==null?void 0:$t.call(C))||C.vars,je={...C,components:ne,colorSchemes:se,cssVarPrefix:be,vars:it};if(typeof je.generateSpacing=="function"&&(je.spacing=je.generateSpacing()),Be){const de=se[Be];de&&typeof de=="object"&&Object.keys(de).forEach(Ae=>{de[Ae]&&typeof de[Ae]=="object"?je[Ae]={...je[Ae],...de[Ae]}:je[Ae]=de[Ae]})}const Ue=C.colorSchemeSelector;x.useEffect(()=>{if(Ce&&Y&&Ue&&Ue!=="media"){const de=Ue;let Ae=Ue;if(de==="class"&&(Ae=".%s"),de==="data"&&(Ae="[data-%s]"),de!=null&&de.startsWith("data-")&&!de.includes("%s")&&(Ae=`[${de}="%s"]`),Ae.startsWith("."))Y.classList.remove(...oe.map(He=>Ae.substring(1).replace("%s",He))),Y.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||oe.forEach(vn=>{Y.removeAttribute(nt.replace(Ce,vn))}),Y.setAttribute(nt,Qe?Qe.replace(/"|'/g,""):"")}else Y.setAttribute(Ae,Ce)}}},[Ce,Ue,Y,oe]),x.useEffect(()=>{let de;if(P&&V.current&&M){const Ae=M.createElement("style");Ae.appendChild(M.createTextNode(OO)),M.head.appendChild(Ae),window.getComputedStyle(M.body),de=setTimeout(()=>{M.head.removeChild(Ae)},1)}return()=>{clearTimeout(de)}},[Ce,P,M]),x.useEffect(()=>(V.current=!0,()=>{V.current=!1}),[]);const ct=x.useMemo(()=>({allColorSchemes:oe,colorScheme:Ce,darkColorScheme:xe,lightColorScheme:$e,mode:Re,setColorScheme:ve,setMode:tt,systemMode:Me}),[oe,Ce,xe,$e,Re,ve,tt,Me]);let St=!0;(j||C.cssVariables===!1||Z&&(K==null?void 0:K.cssVarPrefix)===be)&&(St=!1);const rn=me.jsxs(x.Fragment,{children:[me.jsx(oE,{themeId:X?t:void 0,theme:d?d(je):je,children:L}),St&&me.jsx(Kb,{styles:((ee=je.generateStyleSheets)==null?void 0:ee.call(je))||[]})]});return Z?rn:me.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:_=>_O({colorSchemeStorageKey:l,defaultLightColorScheme:S,defaultDarkColorScheme:y,modeStorageKey:i,..._})}}function kO(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])})},DO=(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)},LO=(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 i0(e,t){const{prefix:r,shouldSkipGeneratingVar:i}=t||{},l={},s={},c={};return DO(e,(d,p,m)=>{if((typeof p=="string"||typeof p=="number")&&(!i||!i(d,p))){const b=`--${r?`${r}-`:""}${d.join("-")}`,E=LO(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 IO(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}=i0(p,t);let S=E;const y={},{[d]:O,..._}=s;if(Object.entries(_||{}).forEach(([k,P])=>{const{vars:I,css:M,varsWithDefaults:Y}=i0(P,t);S=Bn(S,Y),y[k]={css:M,vars:I}}),O){const{css:k,vars:P,varsWithDefaults:I}=i0(O,t);S=Bn(S,I),y[d]={css:k,vars:P}}function L(k,P){var M,Y;let I=l;if(l==="class"&&(I=".%s"),l==="data"&&(I="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(I=`[${l}="%s"]`),k){if(I==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${((Y=(M=s[k])==null?void 0:M.palette)==null?void 0:Y.mode)||k})`]:{":root":P}};if(I)return e.defaultColorScheme===k?`:root, ${I.replace("%s",String(k))}`:I.replace("%s",String(k))}return":root"}return{vars:S,generateThemeVars:()=>{let k={...m};return Object.entries(y).forEach(([,{vars:P}])=>{k=Bn(k,P)}),k},generateStyleSheets:()=>{var ae,j;const k=[],P=e.defaultColorScheme||"light";function I(A,V){Object.keys(V).length&&k.push(typeof A=="string"?{[A]:{...V}}:A)}I(r(void 0,{...b}),b);const{[P]:M,...Y}=y;if(M){const{css:A}=M,V=(j=(ae=s[P])==null?void 0:ae.palette)==null?void 0:j.mode,K=!i&&V?{colorScheme:V,...A}:{...A};I(r(P,{...K}),K)}return Object.entries(Y).forEach(([A,{css:V}])=>{var Z,re;const K=(re=(Z=s[A])==null?void 0:Z.palette)==null?void 0:re.mode,Q=!i&&K?{colorScheme:K,...V}:{...V};I(r(A,{...Q}),Q)}),k}}}function wO(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 Ml={black:"#000",white:"#fff"},MO={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"},Bl={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:Ml.white,default:Ml.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 BO=hE();function pE(){return{text:{primary:Ml.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:Ml.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=wl(e.main,l):t==="dark"&&(e.dark=Il(e.main,s)))}function PO(e="light"){return e==="dark"?{main:ou[200],light:ou[50],dark:ou[400]}:{main:ou[700],light:ou[400],dark:ou[800]}}function UO(e="light"){return e==="dark"?{main:uu[200],light:uu[50],dark:uu[400]}:{main:uu[500],light:uu[300],dark:uu[700]}}function HO(e="light"){return e==="dark"?{main:lu[500],light:lu[300],dark:lu[700]}:{main:lu[700],light:lu[400],dark:lu[800]}}function FO(e="light"){return e==="dark"?{main:su[400],light:su[300],dark:su[700]}:{main:su[700],light:su[500],dark:su[900]}}function zO(e="light"){return e==="dark"?{main:cu[400],light:cu[300],dark:cu[700]}:{main:cu[800],light:cu[500],dark:cu[900]}}function YO(e="light"){return e==="dark"?{main:Bl[400],light:Bl[300],dark:Bl[700]}:{main:"#ed6c02",light:Bl[500],dark:Bl[900]}}function u0(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:i=.2,...l}=e,s=e.primary||PO(t),c=e.secondary||UO(t),d=e.error||HO(t),p=e.info||FO(t),m=e.success||zO(t),b=e.warning||YO(t);function E(_){return mO(_,mE.text.primary)>=r?mE.text.primary:BO.text.primary}const S=({color:_,name:L,mainShade:R=500,lightShade:H=300,darkShade:k=700})=>{if(_={..._},!_.main&&_[R]&&(_.main=_[R]),!_.hasOwnProperty("main"))throw new Error(ka(11,L?` (${L})`:"",R));if(typeof _.main!="string")throw new Error(ka(12,L?` (${L})`:"",JSON.stringify(_.main)));return gE(_,"light",H,i),gE(_,"dark",k,i),_.contrastText||(_.contrastText=E(_.main)),_};let y;return t==="light"?y=hE():t==="dark"&&(y=pE()),Bn({common:{...Ml},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:MO,contrastThreshold:r,getContrastText:E,augmentColor:S,tonalOffset:i,...y},l)}function jO(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 VO(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function $O(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`),O=(L,R,H,k,P)=>({fontFamily:r,fontWeight:L,fontSize:y(R),lineHeight:H,...r===EE?{letterSpacing:`${$O(k/R)}em`}:{},...P,...m}),_={h1:O(l,96,1.167,-1.5),h2:O(l,60,1.2,-.5),h3:O(s,48,1.167,0),h4:O(s,34,1.235,.25),h5:O(s,24,1.334,0),h6:O(c,20,1.6,.15),subtitle1:O(s,16,1.75,.15),subtitle2:O(c,14,1.57,.1),body1:O(s,16,1.5,.15),body2:O(s,14,1.43,.15),button:O(c,14,1.75,.4,bE),caption:O(s,12,1.66,.4),overline:O(s,12,2.66,1,bE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Bn({htmlFontSize:p,pxToRem:y,fontFamily:r,fontSize:i,fontWeightLight:l,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,..._},E,{clone:!1})}const qO=.2,GO=.14,XO=.12;function Ut(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qO})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${GO})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${XO})`].join(",")}const QO=["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)],KO={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)"},WO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function TE(e){return`${Math.round(e)}ms`}function ZO(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function JO(e){const t={...KO,...e.easing},r={...WO,...e.duration};return{getAutoHeightDuration:ZO,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 eN={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function tN(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];!tN(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';
|
|
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 lh(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=uh(s),E=Kd(e);let T=Bn(E,{mixins:j5(E.breakpoints,i),palette:b,shadows:X5.slice(),typography:gE(b,d),transitions:Z5(c),zIndex:{...J5}});return T=Bn(T,m),T=t.reduce((y,O)=>Bn(y,O),T),T.unstable_sxConfig={...kl,...m==null?void 0:m.unstable_sxConfig},T.unstable_sx=function(O){return di({sx:O,theme:this})},T.toRuntimeSource=EE,T}function oh(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 tk=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=oh(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function yE(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function TE(e){return e==="dark"?tk:[]}function nk(e){const{palette:t={mode:"light"},opacity:r,overlays:i,...l}=e,s=uh(t);return{palette:s,opacity:{...yE(s.mode),...r},overlays:i||TE(s.mode),...l}}function rk(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 ak=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],ik=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 ak(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 uk(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function ae(e,t,r){!e[t]&&r&&(e[t]=r)}function Pl(e){return!e||!e.startsWith("hsl")?e:eE(e)}function ia(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Dl(Pl(e[t])))}function lk(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{}},ok=(e="mui")=>N5(e);function sh(e,t,r,i){if(!t)return;t=t===!0?{}:t;const l=i==="dark"?"dark":"light";if(!r){e[i]=nk({...t,palette:{mode:l,...t==null?void 0:t.palette}});return}const{palette:s,...c}=lh({...r,palette:{mode:l,...t==null?void 0:t.palette}});return e[i]={...t,palette:s,opacity:{...yE(l),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||TE(l)},c}function sk(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:l=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:c=rk,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=ok(s),{[E]:y,light:O,dark:x,...k}=r,R={...k};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=sh(R,H,m,E);O&&!R.light&&sh(R,O,void 0,"light"),x&&!R.dark&&sh(R,x,void 0,"dark");let P={defaultColorScheme:E,...D,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:p,getCssVar:T,colorSchemes:R,font:{...Y5(D.typography),...D.font},spacing:lk(m.spacing)};Object.keys(P.colorSchemes).forEach($=>{const C=P.colorSchemes[$].palette,j=K=>{const J=K.split("-"),Z=J[1],re=J[2];return T(K,C[Z][re])};if(C.mode==="light"&&(ae(C.common,"background","#fff"),ae(C.common,"onBackground","#000")),C.mode==="dark"&&(ae(C.common,"background","#000"),ae(C.common,"onBackground","#fff")),uk(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){ae(C.Alert,"errorColor",vt(C.error.light,.6)),ae(C.Alert,"infoColor",vt(C.info.light,.6)),ae(C.Alert,"successColor",vt(C.success.light,.6)),ae(C.Alert,"warningColor",vt(C.warning.light,.6)),ae(C.Alert,"errorFilledBg",j("palette-error-main")),ae(C.Alert,"infoFilledBg",j("palette-info-main")),ae(C.Alert,"successFilledBg",j("palette-success-main")),ae(C.Alert,"warningFilledBg",j("palette-warning-main")),ae(C.Alert,"errorFilledColor",Vr(()=>C.getContrastText(C.error.main))),ae(C.Alert,"infoFilledColor",Vr(()=>C.getContrastText(C.info.main))),ae(C.Alert,"successFilledColor",Vr(()=>C.getContrastText(C.success.main))),ae(C.Alert,"warningFilledColor",Vr(()=>C.getContrastText(C.warning.main))),ae(C.Alert,"errorStandardBg",Rt(C.error.light,.9)),ae(C.Alert,"infoStandardBg",Rt(C.info.light,.9)),ae(C.Alert,"successStandardBg",Rt(C.success.light,.9)),ae(C.Alert,"warningStandardBg",Rt(C.warning.light,.9)),ae(C.Alert,"errorIconColor",j("palette-error-main")),ae(C.Alert,"infoIconColor",j("palette-info-main")),ae(C.Alert,"successIconColor",j("palette-success-main")),ae(C.Alert,"warningIconColor",j("palette-warning-main")),ae(C.AppBar,"defaultBg",j("palette-grey-100")),ae(C.Avatar,"defaultBg",j("palette-grey-400")),ae(C.Button,"inheritContainedBg",j("palette-grey-300")),ae(C.Button,"inheritContainedHoverBg",j("palette-grey-A100")),ae(C.Chip,"defaultBorder",j("palette-grey-400")),ae(C.Chip,"defaultAvatarColor",j("palette-grey-700")),ae(C.Chip,"defaultIconColor",j("palette-grey-700")),ae(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ae(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ae(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ae(C.LinearProgress,"primaryBg",Rt(C.primary.main,.62)),ae(C.LinearProgress,"secondaryBg",Rt(C.secondary.main,.62)),ae(C.LinearProgress,"errorBg",Rt(C.error.main,.62)),ae(C.LinearProgress,"infoBg",Rt(C.info.main,.62)),ae(C.LinearProgress,"successBg",Rt(C.success.main,.62)),ae(C.LinearProgress,"warningBg",Rt(C.warning.main,.62)),ae(C.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.11)`),ae(C.Slider,"primaryTrack",Rt(C.primary.main,.62)),ae(C.Slider,"secondaryTrack",Rt(C.secondary.main,.62)),ae(C.Slider,"errorTrack",Rt(C.error.main,.62)),ae(C.Slider,"infoTrack",Rt(C.info.main,.62)),ae(C.Slider,"successTrack",Rt(C.success.main,.62)),ae(C.Slider,"warningTrack",Rt(C.warning.main,.62));const K=Ks(C.background.default,.8);ae(C.SnackbarContent,"bg",K),ae(C.SnackbarContent,"color",Vr(()=>C.getContrastText(K))),ae(C.SpeedDialAction,"fabHoverBg",Ks(C.background.paper,.15)),ae(C.StepConnector,"border",j("palette-grey-400")),ae(C.StepContent,"border",j("palette-grey-400")),ae(C.Switch,"defaultColor",j("palette-common-white")),ae(C.Switch,"defaultDisabledColor",j("palette-grey-100")),ae(C.Switch,"primaryDisabledColor",Rt(C.primary.main,.62)),ae(C.Switch,"secondaryDisabledColor",Rt(C.secondary.main,.62)),ae(C.Switch,"errorDisabledColor",Rt(C.error.main,.62)),ae(C.Switch,"infoDisabledColor",Rt(C.info.main,.62)),ae(C.Switch,"successDisabledColor",Rt(C.success.main,.62)),ae(C.Switch,"warningDisabledColor",Rt(C.warning.main,.62)),ae(C.TableCell,"border",Rt(Qs(C.divider,1),.88)),ae(C.Tooltip,"bg",Qs(C.grey[700],.92))}if(C.mode==="dark"){ae(C.Alert,"errorColor",Rt(C.error.light,.6)),ae(C.Alert,"infoColor",Rt(C.info.light,.6)),ae(C.Alert,"successColor",Rt(C.success.light,.6)),ae(C.Alert,"warningColor",Rt(C.warning.light,.6)),ae(C.Alert,"errorFilledBg",j("palette-error-dark")),ae(C.Alert,"infoFilledBg",j("palette-info-dark")),ae(C.Alert,"successFilledBg",j("palette-success-dark")),ae(C.Alert,"warningFilledBg",j("palette-warning-dark")),ae(C.Alert,"errorFilledColor",Vr(()=>C.getContrastText(C.error.dark))),ae(C.Alert,"infoFilledColor",Vr(()=>C.getContrastText(C.info.dark))),ae(C.Alert,"successFilledColor",Vr(()=>C.getContrastText(C.success.dark))),ae(C.Alert,"warningFilledColor",Vr(()=>C.getContrastText(C.warning.dark))),ae(C.Alert,"errorStandardBg",vt(C.error.light,.9)),ae(C.Alert,"infoStandardBg",vt(C.info.light,.9)),ae(C.Alert,"successStandardBg",vt(C.success.light,.9)),ae(C.Alert,"warningStandardBg",vt(C.warning.light,.9)),ae(C.Alert,"errorIconColor",j("palette-error-main")),ae(C.Alert,"infoIconColor",j("palette-info-main")),ae(C.Alert,"successIconColor",j("palette-success-main")),ae(C.Alert,"warningIconColor",j("palette-warning-main")),ae(C.AppBar,"defaultBg",j("palette-grey-900")),ae(C.AppBar,"darkBg",j("palette-background-paper")),ae(C.AppBar,"darkColor",j("palette-text-primary")),ae(C.Avatar,"defaultBg",j("palette-grey-600")),ae(C.Button,"inheritContainedBg",j("palette-grey-800")),ae(C.Button,"inheritContainedHoverBg",j("palette-grey-700")),ae(C.Chip,"defaultBorder",j("palette-grey-700")),ae(C.Chip,"defaultAvatarColor",j("palette-grey-300")),ae(C.Chip,"defaultIconColor",j("palette-grey-300")),ae(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ae(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ae(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ae(C.LinearProgress,"primaryBg",vt(C.primary.main,.5)),ae(C.LinearProgress,"secondaryBg",vt(C.secondary.main,.5)),ae(C.LinearProgress,"errorBg",vt(C.error.main,.5)),ae(C.LinearProgress,"infoBg",vt(C.info.main,.5)),ae(C.LinearProgress,"successBg",vt(C.success.main,.5)),ae(C.LinearProgress,"warningBg",vt(C.warning.main,.5)),ae(C.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.13)`),ae(C.Slider,"primaryTrack",vt(C.primary.main,.5)),ae(C.Slider,"secondaryTrack",vt(C.secondary.main,.5)),ae(C.Slider,"errorTrack",vt(C.error.main,.5)),ae(C.Slider,"infoTrack",vt(C.info.main,.5)),ae(C.Slider,"successTrack",vt(C.success.main,.5)),ae(C.Slider,"warningTrack",vt(C.warning.main,.5));const K=Ks(C.background.default,.98);ae(C.SnackbarContent,"bg",K),ae(C.SnackbarContent,"color",Vr(()=>C.getContrastText(K))),ae(C.SpeedDialAction,"fabHoverBg",Ks(C.background.paper,.15)),ae(C.StepConnector,"border",j("palette-grey-600")),ae(C.StepContent,"border",j("palette-grey-600")),ae(C.Switch,"defaultColor",j("palette-grey-300")),ae(C.Switch,"defaultDisabledColor",j("palette-grey-600")),ae(C.Switch,"primaryDisabledColor",vt(C.primary.main,.55)),ae(C.Switch,"secondaryDisabledColor",vt(C.secondary.main,.55)),ae(C.Switch,"errorDisabledColor",vt(C.error.main,.55)),ae(C.Switch,"infoDisabledColor",vt(C.info.main,.55)),ae(C.Switch,"successDisabledColor",vt(C.success.main,.55)),ae(C.Switch,"warningDisabledColor",vt(C.warning.main,.55)),ae(C.TableCell,"border",vt(Qs(C.divider,1),.68)),ae(C.Tooltip,"bg",Qs(C.grey[700],.92))}ia(C.background,"default"),ia(C.background,"paper"),ia(C.common,"background"),ia(C.common,"onBackground"),ia(C,"divider"),Object.keys(C).forEach(K=>{const J=C[K];J&&typeof J=="object"&&(J.main&&ae(C[K],"mainChannel",Dl(Pl(J.main))),J.light&&ae(C[K],"lightChannel",Dl(Pl(J.light))),J.dark&&ae(C[K],"darkChannel",Dl(Pl(J.dark))),J.contrastText&&ae(C[K],"contrastTextChannel",Dl(Pl(J.contrastText))),K==="text"&&(ia(C[K],"primary"),ia(C[K],"secondary")),K==="action"&&(J.active&&ia(C[K],"active"),J.selected&&ia(C[K],"selected")))})}),P=t.reduce(($,C)=>Bn($,C),P);const I={prefix:s,disableCssColorScheme:l,shouldSkipGeneratingVar:c,getSelector:ik(P)},{vars:M,generateThemeVars:Y,generateStyleSheets:ue}=I5(P,I);return P.vars=M,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([$,C])=>{P[$]=C}),P.generateThemeVars=Y,P.generateStyleSheets=ue,P.generateSpacing=function(){return Kb(m.spacing,Xd(this))},P.getColorSchemeSelector=L5(d),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=c,P.unstable_sxConfig={...kl,...m==null?void 0:m.unstable_sxConfig},P.unstable_sx=function(C){return di({sx:C,theme:this})},P.toRuntimeSource=EE,P}function SE(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:uh({...r===!0?{}:r.palette,mode:t})})}function Ws(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 lh(e,...t);let b=r;"palette"in e||m[d]&&(m[d]!==!0?b=m[d].palette:d==="dark"&&(b={mode:"dark"}));const E=lh({...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},SE(E,"dark",m.dark)),E.palette.mode==="dark"&&(E.colorSchemes.dark={...m.dark!==!0&&m.dark,palette:E.palette},SE(E,"light",m.light)),E}return!r&&!("light"in m)&&d==="light"&&(m.light=!0),sk({...c,colorSchemes:m,defaultColorScheme:d,...typeof i!="boolean"&&i},...t)}const Zs=Ws(),$r="$$material";function Ul(){const e=Wd(Zs);return e[$r]||e}function ck(e){return me.jsx(t5,{...e,defaultTheme:Zs,themeId:$r})}function fk(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const AE=e=>fk(e)&&e!=="classes",Ot=i5({themeId:$r,defaultTheme:Zs,rootShouldForwardProp:AE});function dk(e){return function(r){return me.jsx(ck,{styles:typeof e=="function"?i=>e({theme:i,...r}):e})}}function hk(){return $N}const Hn=A5;function Fn(e){return S5(e)}function su(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},...T}=s,y=b[e]||i,O=Fb(E[e],l),{props:{component:x,...k},internalRef:R}=Hb({className:r,...p,externalForwardedProps:e==="root"?T:void 0,externalSlotProps:O}),H=fr(R,O==null?void 0:O.ref,t.ref),D=c?c(k):{},P={...l,...D},I=e==="root"?x||m:x,M=Bb(y,{...e==="root"&&!m&&!b[e]&&d,...e!=="root"&&!b[e]&&d,...k,...I&&{as:I},ref:H},P);return Object.keys(D).forEach(Y=>{delete M[Y]}),[y,M]}function CE(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 ch(e,t){return ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ch(e,t)}function _E(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ch(e,t)}const xE={disabled:!1},Js=St.createContext(null);var pk=function(t){return t.scrollTop},Hl="unmounted",hi="exited",pi="entering",cu="entered",fh="exiting",qr=function(e){_E(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=cu:i.unmountOnExit||i.mountOnEnter?p=Hl:p=hi,s.state={status:p},s.nextCallback=null,s}t.getDerivedStateFromProps=function(l,s){var c=l.in;return c&&s.status===Hl?{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!==cu&&(s=pi):(c===pi||c===cu)&&(s=fh)}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:Us.findDOMNode(this);c&&pk(c)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hi&&this.setState({status:Hl})},r.performEnter=function(l){var s=this,c=this.props.enter,d=this.context?this.context.isMounting:l,p=this.props.nodeRef?[d]:[Us.findDOMNode(this),d],m=p[0],b=p[1],E=this.getTimeouts(),T=d?E.appear:E.enter;if(!l&&!c||xE.disabled){this.safeSetState({status:cu},function(){s.props.onEntered(m)});return}this.props.onEnter(m,b),this.safeSetState({status:pi},function(){s.props.onEntering(m,b),s.onTransitionEnd(T,function(){s.safeSetState({status:cu},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:Us.findDOMNode(this);if(!s||xE.disabled){this.safeSetState({status:hi},function(){l.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:fh},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:Us.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===Hl)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=CE(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return St.createElement(Js.Provider,{value:null},typeof c=="function"?c(l,d):St.cloneElement(St.Children.only(c),d))},t}(St.Component);qr.contextType=Js,qr.propTypes={};function fu(){}qr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fu,onEntering:fu,onEntered:fu,onExit:fu,onExiting:fu,onExited:fu},qr.UNMOUNTED=Hl,qr.EXITED=hi,qr.ENTERING=pi,qr.ENTERED=cu,qr.EXITING=fh;function mk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dh(e,t){var r=function(s){return t&&_.isValidElement(s)?t(s):s},i=Object.create(null);return e&&_.Children.map(e,function(l){return l}).forEach(function(l){i[l.key]=r(l)}),i}function gk(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 bk(e,t){return dh(e.children,function(r){return _.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 Ek(e,t,r){var i=dh(e.children),l=gk(t,i);return Object.keys(l).forEach(function(s){var c=l[s];if(_.isValidElement(c)){var d=s in t,p=s in i,m=t[s],b=_.isValidElement(m)&&!m.props.in;p&&(!d||b)?l[s]=_.cloneElement(c,{onExited:r.bind(null,c),in:!0,exit:mi(c,"exit",e),enter:mi(c,"enter",e)}):!p&&d&&!b?l[s]=_.cloneElement(c,{in:!1}):p&&d&&_.isValidElement(m)&&(l[s]=_.cloneElement(c,{onExited:r.bind(null,c),in:m.props.in,exit:mi(c,"exit",e),enter:mi(c,"enter",e)}))}}),l}var yk=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Tk={component:"div",childFactory:function(t){return t}},hh=function(e){_E(t,e);function t(i,l){var s;s=e.call(this,i,l)||this;var c=s.handleExited.bind(mk(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?bk(l,d):Ek(l,c,d),firstRender:!1}},r.handleExited=function(l,s){var c=dh(this.props.children);l.key in c||(l.props.onExited&&l.props.onExited(s),this.mounted&&this.setState(function(d){var p=as({},d.children);return delete p[l.key],{children:p}}))},r.render=function(){var l=this.props,s=l.component,c=l.childFactory,d=CE(l,["component","childFactory"]),p=this.state.contextValue,m=yk(this.state.children).map(c);return delete d.appear,delete d.enter,delete d.exit,s===null?St.createElement(Js.Provider,{value:p},m):St.createElement(Js.Provider,{value:p},St.createElement(s,d,m))},t}(St.Component);hh.propTypes={},hh.defaultProps=Tk;const vE=e=>e.scrollTop;function ec(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 Sk={entering:{opacity:1},entered:{opacity:1}},Ak=_.forwardRef(function(t,r){const i=Ul(),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:O,onExiting:x,style:k,timeout:R=l,TransitionComponent:H=qr,...D}=t,P=_.useRef(null),I=fr(P,Ps(d),r),M=Z=>re=>{if(Z){const X=P.current;re===void 0?Z(X):Z(X,re)}},Y=M(T),ue=M((Z,re)=>{vE(Z);const X=ec({style:k,timeout:R,easing:p},{mode:"enter"});Z.style.webkitTransition=i.transitions.create("opacity",X),Z.style.transition=i.transitions.create("opacity",X),b&&b(Z,re)}),$=M(E),C=M(x),j=M(Z=>{const re=ec({style:k,timeout:R,easing:p},{mode:"exit"});Z.style.webkitTransition=i.transitions.create("opacity",re),Z.style.transition=i.transitions.create("opacity",re),y&&y(Z)}),K=M(O),J=Z=>{s&&s(P.current,Z)};return me.jsx(H,{appear:c,in:m,nodeRef:P,onEnter:ue,onEntered:$,onEntering:Y,onExit:j,onExited:K,onExiting:C,addEndListener:J,timeout:R,...D,children:(Z,re)=>_.cloneElement(d,{style:{opacity:0,visibility:Z==="exited"&&!m?"hidden":void 0,...Sk[Z],...k,...d.props.style},ref:I,...re})})});function Ck(e){return Pn("MuiBackdrop",e)}Un("MuiBackdrop",["root","invisible"]);const _k=e=>{const{ownerState:t,...r}=e;return r},xk=e=>{const{classes:t,invisible:r}=e;return Wn({root:["root",r&&"invisible"]},Ck,t)},vk=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"}}]}),Rk=_.forwardRef(function(t,r){const i=Fn({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:O,...x}=i,k={...i,component:c,invisible:d},R=xk(k),H={transition:y,root:m.Root,...T},D={...b,...E},P={slots:H,slotProps:D},[I,M]=su("root",{elementType:vk,externalForwardedProps:P,className:st(R.root,s),ownerState:k}),[Y,ue]=su("transition",{elementType:Ak,externalForwardedProps:P,ownerState:k}),$=_k(ue);return me.jsx(Y,{in:p,timeout:O,...x,...$,children:me.jsx(I,{"aria-hidden":!0,...M,classes:R,ref:r,children:l})})});function Ok(e){return typeof e=="function"?e():e}function Nk(e){return e?e.props.hasOwnProperty("in"):!1}const tc=new YO;function kk(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=_.useRef({}),T=_.useRef(null),y=_.useRef(null),O=fr(y,b),[x,k]=_.useState(!m),R=Nk(d);let H=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(H=!1);const D=()=>Da(T.current),P=()=>(E.current.modalRef=y.current,E.current.mount=T.current,E.current),I=()=>{tc.mount(P(),{disableScrollLock:i}),y.current&&(y.current.scrollTop=0)},M=ra(()=>{const re=Ok(t)||D().body;tc.add(P(),re),y.current&&I()}),Y=()=>tc.isTopModal(P()),ue=ra(re=>{T.current=re,re&&(m&&Y()?I():y.current&&vl(y.current,H))}),$=_.useCallback(()=>{tc.remove(P(),H)},[H]);_.useEffect(()=>()=>{$()},[$]),_.useEffect(()=>{m?M():(!R||!l)&&$()},[m,$,R,l,M]);const C=re=>X=>{var oe;(oe=re.onKeyDown)==null||oe.call(re,X),!(X.key!=="Escape"||X.which===229||!Y())&&(r||(X.stopPropagation(),p&&p(X,"escapeKeyDown")))},j=re=>X=>{var oe;(oe=re.onClick)==null||oe.call(re,X),X.target===X.currentTarget&&p&&p(X,"backdropClick")};return{getRootProps:(re={})=>{const X=Pb(e);delete X.onTransitionEnter,delete X.onTransitionExited;const oe={...X,...re};return{role:"presentation",...oe,onKeyDown:C(oe),ref:O}},getBackdropProps:(re={})=>{const X=re;return{"aria-hidden":!0,...X,onClick:j(X),open:m}},getTransitionProps:()=>{const re=()=>{k(!1),s&&s()},X=()=>{k(!0),c&&c(),l&&$()};return{onEnter:Db(re,d==null?void 0:d.props.onEnter),onExited:Db(X,d==null?void 0:d.props.onExited)}},rootRef:O,portalRef:ue,isTopModal:Y,exited:x,hasTransition:R}}function Dk(e){return Pn("MuiModal",e)}Un("MuiModal",["root","hidden","backdrop"]);function Ik(e){return Pn("MuiSvgIcon",e)}Un("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Lk=e=>{const{color:t,fontSize:r,classes:i}=e,l={root:["root",t!=="inherit"&&`color${xt(t)}`,`fontSize${xt(r)}`]};return Wn(l,Ik,i)},wk=Ot("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${xt(r.color)}`],t[`fontSize${xt(r.fontSize)}`]]}})(Hn(({theme:e})=>{var t,r,i,l,s,c,d,p,m,b,E,T,y,O;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 k,R;return{props:{color:x},style:{color:(R=(k=(e.vars??e).palette)==null?void 0:k[x])==null?void 0:R.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:(O=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:O.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),nc=_.forwardRef(function(t,r){const i=Fn({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,O=_.isValidElement(l)&&l.type==="svg",x={...i,color:c,component:d,fontSize:p,instanceFontSize:t.fontSize,inheritViewBox:b,viewBox:T,hasSvgAsChild:O},k={};b||(k.viewBox=T);const R=Lk(x);return me.jsxs(wk,{as:d,className:st(R.root,s),focusable:"false",color:m,"aria-hidden":E?void 0:!0,role:E?"img":void 0,ref:r,...k,...y,...O&&l.props,ownerState:x,children:[O?l.props.children:l,E?me.jsx("title",{children:E}):null]})});nc&&(nc.muiName="SvgIcon");function gi(e,t){function r(i,l){return me.jsx(nc,{"data-testid":`${t}Icon`,ref:l,...i,children:e})}return r.muiName=nc.muiName,_.memo(_.forwardRef(r))}const Mk=e=>{const{open:t,exited:r,classes:i}=e;return Wn({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Dk,i)},Bk=Ot("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Hn(({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"}}]}))),Pk=Ot(Rk,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Uk=_.forwardRef(function(t,r){const i=Fn({name:"MuiModal",props:t}),{BackdropComponent:l=Pk,BackdropProps:s,classes:c,className:d,closeAfterTransition:p=!1,children:m,container:b,component:E,components:T={},componentsProps:y={},disableAutoFocus:O=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:k=!1,disablePortal:R=!1,disableRestoreFocus:H=!1,disableScrollLock:D=!1,hideBackdrop:P=!1,keepMounted:I=!1,onBackdropClick:M,onClose:Y,onTransitionEnter:ue,onTransitionExited:$,open:C,slotProps:j={},slots:K={},theme:J,...Z}=i,re={...i,closeAfterTransition:p,disableAutoFocus:O,disableEnforceFocus:x,disableEscapeKeyDown:k,disablePortal:R,disableRestoreFocus:H,disableScrollLock:D,hideBackdrop:P,keepMounted:I},{getRootProps:X,getBackdropProps:oe,getTransitionProps:Q,portalRef:pe,isTopModal:A,exited:ee,hasTransition:Te}=kk({...re,rootRef:r}),L={...re,exited:ee},se=Mk(L),Oe={};if(m.props.tabIndex===void 0&&(Oe.tabIndex="-1"),Te){const{onEnter:ve,onExited:Re}=Q();Oe.onEnter=ve,Oe.onExited=Re}const Se={...Z,slots:{root:T.Root,backdrop:T.Backdrop,...K},slotProps:{...y,...j}},[et,Me]=su("root",{elementType:Bk,externalForwardedProps:Se,getSlotProps:X,additionalProps:{ref:r,as:E},ownerState:L,className:st(d,se==null?void 0:se.root,!L.open&&L.exited&&(se==null?void 0:se.hidden))}),[Ve,_e]=su("backdrop",{elementType:l,externalForwardedProps:Se,additionalProps:s,getSlotProps:ve=>oe({...ve,onClick:Re=>{M&&M(Re),ve!=null&&ve.onClick&&ve.onClick(Re)}}),className:st(s==null?void 0:s.className,se==null?void 0:se.backdrop),ownerState:L}),qe=fr(s==null?void 0:s.ref,_e.ref);return!I&&!C&&(!Te||ee)?null:me.jsx(WO,{ref:pe,container:b,disablePortal:R,children:me.jsxs(et,{...Me,children:[!P&&l?me.jsx(Ve,{..._e,ref:qe}):null,me.jsx(QO,{disableEnforceFocus:x,disableAutoFocus:O,disableRestoreFocus:H,isEnabled:A,open:C,children:_.cloneElement(m,Oe)})]})})});function Hk(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 Fk(e){return typeof e=="function"?e():e}function rc(e,t,r){const i=Fk(r),l=Hk(e,t,i);l&&(t.style.webkitTransform=l,t.style.transform=l)}const zk=_.forwardRef(function(t,r){const i=Ul(),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:O,onEntering:x,onExit:k,onExited:R,onExiting:H,style:D,timeout:P=s,TransitionComponent:I=qr,...M}=t,Y=_.useRef(null),ue=fr(Ps(p),Y,r),$=Q=>pe=>{Q&&(pe===void 0?Q(Y.current):Q(Y.current,pe))},C=$((Q,pe)=>{rc(b,Q,m),vE(Q),y&&y(Q,pe)}),j=$((Q,pe)=>{const A=ec({timeout:P,style:D,easing:E},{mode:"enter"});Q.style.webkitTransition=i.transitions.create("-webkit-transform",{...A}),Q.style.transition=i.transitions.create("transform",{...A}),Q.style.webkitTransform="none",Q.style.transform="none",x&&x(Q,pe)}),K=$(O),J=$(H),Z=$(Q=>{const pe=ec({timeout:P,style:D,easing:E},{mode:"exit"});Q.style.webkitTransition=i.transitions.create("-webkit-transform",pe),Q.style.transition=i.transitions.create("transform",pe),rc(b,Q,m),k&&k(Q)}),re=$(Q=>{Q.style.webkitTransition="",Q.style.transition="",R&&R(Q)}),X=Q=>{c&&c(Y.current,Q)},oe=_.useCallback(()=>{Y.current&&rc(b,Y.current,m)},[b,m]);return _.useEffect(()=>{if(T||b==="down"||b==="right")return;const Q=ws(()=>{Y.current&&rc(b,Y.current,m)}),pe=jr(Y.current);return pe.addEventListener("resize",Q),()=>{Q.clear(),pe.removeEventListener("resize",Q)}},[b,T,m]),_.useEffect(()=>{T||oe()},[T,oe]),me.jsx(I,{nodeRef:Y,onEnter:C,onEntered:K,onEntering:j,onExit:Z,onExited:re,onExiting:J,addEndListener:X,appear:d,in:T,timeout:P,...M,children:(Q,pe)=>_.cloneElement(p,{ref:ue,style:{visibility:Q==="exited"&&!T?"hidden":void 0,...D,...p.props.style},...pe})})});function Yk(e){return Pn("MuiPaper",e)}Un("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 jk=e=>{const{square:t,elevation:r,variant:i,classes:l}=e,s={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${r}`]};return Wn(s,Yk,l)},Vk=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}`]]}})(Hn(({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)"}}]}))),RE=_.forwardRef(function(t,r){var y;const i=Fn({props:t,name:"MuiPaper"}),l=Ul(),{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=jk(E);return me.jsx(Vk,{as:c,ownerState:E,className:st(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(${Il("#fff",oh(d))}, ${Il("#fff",oh(d))})`}},...b.style}})});function $k(e){return Pn("MuiDrawer",e)}Un("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const OE=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},qk=e=>{const{classes:t,anchor:r,variant:i}=e,l={root:["root"],docked:[(i==="permanent"||i==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${xt(r)}`,i!=="temporary"&&`paperAnchorDocked${xt(r)}`]};return Wn(l,$k,t)},Gk=Ot(Uk,{name:"MuiDrawer",slot:"Root",overridesResolver:OE})(Hn(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),NE=Ot("div",{shouldForwardProp:AE,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:OE})({flex:"0 0 auto"}),Xk=Ot(RE,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${xt(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${xt(r.anchor)}`]]}})(Hn(({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}`}}]}))),kE={left:"right",right:"left",top:"down",bottom:"up"};function Qk(e){return["left","right"].includes(e)}function Kk({direction:e},t){return e==="rtl"&&Qk(t)?kE[t]:t}const Wk=_.forwardRef(function(t,r){const i=Fn({props:t,name:"MuiDrawer"}),l=Ul(),s=zd(),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,...O}={},onClose:x,open:k=!1,PaperProps:R={},SlideProps:H,TransitionComponent:D=zk,transitionDuration:P=c,variant:I="temporary",...M}=i,Y=_.useRef(!1);_.useEffect(()=>{Y.current=!0},[]);const ue=Kk({direction:s?"rtl":"ltr"},d),C={...i,anchor:d,elevation:E,open:k,variant:I,...M},j=qk(C),K=me.jsx(Xk,{elevation:I==="temporary"?E:0,square:!0,...R,className:st(j.paper,R.className),ownerState:C,children:m});if(I==="permanent")return me.jsx(NE,{className:st(j.root,j.docked,b),ownerState:C,ref:r,...M,children:K});const J=me.jsx(D,{in:k,direction:kE[ue],timeout:P,appear:Y.current,...H,children:K});return I==="persistent"?me.jsx(NE,{className:st(j.root,j.docked,b),ownerState:C,ref:r,...M,children:J}):me.jsx(Gk,{BackdropProps:{...p,...y,transitionDuration:P},className:st(j.root,j.modal,b),open:k,ownerState:C,onClose:x,hideBackdrop:T,ref:r,...M,...O,children:J})});class ac{constructor(){ns(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 ac}static use(){const t=Lb(ac.create).current,[r,i]=_.useState(!1);return t.shouldMount=r,t.setShouldMount=i,_.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=Jk(),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 Zk(){return ac.use()}function Jk(){let e,t;const r=new Promise((i,l)=>{e=i,t=l});return r.resolve=e,r.reject=t,r}function eD(e){const{className:t,classes:r,pulsate:i=!1,rippleX:l,rippleY:s,rippleSize:c,in:d,onExited:p,timeout:m}=e,[b,E]=_.useState(!1),T=st(t,r.ripple,r.rippleVisible,i&&r.ripplePulsate),y={width:c,height:c,top:-(c/2)+s,left:-(c/2)+l},O=st(r.child,b&&r.childLeaving,i&&r.childPulsate);return!d&&!b&&E(!0),_.useEffect(()=>{if(!d&&p!=null){const x=setTimeout(p,m);return()=>{clearTimeout(x)}}},[p,d,m]),me.jsx("span",{className:T,style:y,children:me.jsx("span",{className:O})})}const pr=Un("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ph=550,tD=80,nD=Lf`
|
|
118
|
+
export default theme;`}function l0(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=u0(s),E=Kd(e);let S=Bn(E,{mixins:VO(E.breakpoints,i),palette:b,shadows:QO.slice(),typography:yE(b,d),transitions:JO(c),zIndex:{...eN}});return S=Bn(S,m),S=t.reduce((y,O)=>Bn(y,O),S),S.unstable_sxConfig={...kl,...m==null?void 0:m.unstable_sxConfig},S.unstable_sx=function(O){return di({sx:O,theme:this})},S.toRuntimeSource=SE,S}function o0(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 nN=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=o0(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"?nN:[]}function rN(e){const{palette:t={mode:"light"},opacity:r,overlays:i,...l}=e,s=u0(t);return{palette:s,opacity:{...CE(s.mode),...r},overlays:i||AE(s.mode),...l}}function aN(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 iN=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],uN=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 iN(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 lN(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function ie(e,t,r){!e[t]&&r&&(e[t]=r)}function Pl(e){return!e||!e.startsWith("hsl")?e:rE(e)}function ia(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Dl(Pl(e[t])))}function oN(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{}},sN=(e="mui")=>kO(e);function s0(e,t,r,i){if(!t)return;t=t===!0?{}:t;const l=i==="dark"?"dark":"light";if(!r){e[i]=rN({...t,palette:{mode:l,...t==null?void 0:t.palette}});return}const{palette:s,...c}=l0({...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 cN(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:l=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:c=aN,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=sN(s),{[E]:y,light:O,dark:_,...L}=r,R={...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 k=s0(R,H,m,E);O&&!R.light&&s0(R,O,void 0,"light"),_&&!R.dark&&s0(R,_,void 0,"dark");let P={defaultColorScheme:E,...k,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:p,getCssVar:S,colorSchemes:R,font:{...jO(k.typography),...k.font},spacing:oN(m.spacing)};Object.keys(P.colorSchemes).forEach(j=>{const A=P.colorSchemes[j].palette,V=K=>{const Q=K.split("-"),Z=Q[1],re=Q[2];return S(K,A[Z][re])};if(A.mode==="light"&&(ie(A.common,"background","#fff"),ie(A.common,"onBackground","#000")),A.mode==="dark"&&(ie(A.common,"background","#000"),ie(A.common,"onBackground","#fff")),lN(A,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),A.mode==="light"){ie(A.Alert,"errorColor",vt(A.error.light,.6)),ie(A.Alert,"infoColor",vt(A.info.light,.6)),ie(A.Alert,"successColor",vt(A.success.light,.6)),ie(A.Alert,"warningColor",vt(A.warning.light,.6)),ie(A.Alert,"errorFilledBg",V("palette-error-main")),ie(A.Alert,"infoFilledBg",V("palette-info-main")),ie(A.Alert,"successFilledBg",V("palette-success-main")),ie(A.Alert,"warningFilledBg",V("palette-warning-main")),ie(A.Alert,"errorFilledColor",Vr(()=>A.getContrastText(A.error.main))),ie(A.Alert,"infoFilledColor",Vr(()=>A.getContrastText(A.info.main))),ie(A.Alert,"successFilledColor",Vr(()=>A.getContrastText(A.success.main))),ie(A.Alert,"warningFilledColor",Vr(()=>A.getContrastText(A.warning.main))),ie(A.Alert,"errorStandardBg",Rt(A.error.light,.9)),ie(A.Alert,"infoStandardBg",Rt(A.info.light,.9)),ie(A.Alert,"successStandardBg",Rt(A.success.light,.9)),ie(A.Alert,"warningStandardBg",Rt(A.warning.light,.9)),ie(A.Alert,"errorIconColor",V("palette-error-main")),ie(A.Alert,"infoIconColor",V("palette-info-main")),ie(A.Alert,"successIconColor",V("palette-success-main")),ie(A.Alert,"warningIconColor",V("palette-warning-main")),ie(A.AppBar,"defaultBg",V("palette-grey-100")),ie(A.Avatar,"defaultBg",V("palette-grey-400")),ie(A.Button,"inheritContainedBg",V("palette-grey-300")),ie(A.Button,"inheritContainedHoverBg",V("palette-grey-A100")),ie(A.Chip,"defaultBorder",V("palette-grey-400")),ie(A.Chip,"defaultAvatarColor",V("palette-grey-700")),ie(A.Chip,"defaultIconColor",V("palette-grey-700")),ie(A.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ie(A.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ie(A.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ie(A.LinearProgress,"primaryBg",Rt(A.primary.main,.62)),ie(A.LinearProgress,"secondaryBg",Rt(A.secondary.main,.62)),ie(A.LinearProgress,"errorBg",Rt(A.error.main,.62)),ie(A.LinearProgress,"infoBg",Rt(A.info.main,.62)),ie(A.LinearProgress,"successBg",Rt(A.success.main,.62)),ie(A.LinearProgress,"warningBg",Rt(A.warning.main,.62)),ie(A.Skeleton,"bg",`rgba(${V("palette-text-primaryChannel")} / 0.11)`),ie(A.Slider,"primaryTrack",Rt(A.primary.main,.62)),ie(A.Slider,"secondaryTrack",Rt(A.secondary.main,.62)),ie(A.Slider,"errorTrack",Rt(A.error.main,.62)),ie(A.Slider,"infoTrack",Rt(A.info.main,.62)),ie(A.Slider,"successTrack",Rt(A.success.main,.62)),ie(A.Slider,"warningTrack",Rt(A.warning.main,.62));const K=Ks(A.background.default,.8);ie(A.SnackbarContent,"bg",K),ie(A.SnackbarContent,"color",Vr(()=>A.getContrastText(K))),ie(A.SpeedDialAction,"fabHoverBg",Ks(A.background.paper,.15)),ie(A.StepConnector,"border",V("palette-grey-400")),ie(A.StepContent,"border",V("palette-grey-400")),ie(A.Switch,"defaultColor",V("palette-common-white")),ie(A.Switch,"defaultDisabledColor",V("palette-grey-100")),ie(A.Switch,"primaryDisabledColor",Rt(A.primary.main,.62)),ie(A.Switch,"secondaryDisabledColor",Rt(A.secondary.main,.62)),ie(A.Switch,"errorDisabledColor",Rt(A.error.main,.62)),ie(A.Switch,"infoDisabledColor",Rt(A.info.main,.62)),ie(A.Switch,"successDisabledColor",Rt(A.success.main,.62)),ie(A.Switch,"warningDisabledColor",Rt(A.warning.main,.62)),ie(A.TableCell,"border",Rt(Qs(A.divider,1),.88)),ie(A.Tooltip,"bg",Qs(A.grey[700],.92))}if(A.mode==="dark"){ie(A.Alert,"errorColor",Rt(A.error.light,.6)),ie(A.Alert,"infoColor",Rt(A.info.light,.6)),ie(A.Alert,"successColor",Rt(A.success.light,.6)),ie(A.Alert,"warningColor",Rt(A.warning.light,.6)),ie(A.Alert,"errorFilledBg",V("palette-error-dark")),ie(A.Alert,"infoFilledBg",V("palette-info-dark")),ie(A.Alert,"successFilledBg",V("palette-success-dark")),ie(A.Alert,"warningFilledBg",V("palette-warning-dark")),ie(A.Alert,"errorFilledColor",Vr(()=>A.getContrastText(A.error.dark))),ie(A.Alert,"infoFilledColor",Vr(()=>A.getContrastText(A.info.dark))),ie(A.Alert,"successFilledColor",Vr(()=>A.getContrastText(A.success.dark))),ie(A.Alert,"warningFilledColor",Vr(()=>A.getContrastText(A.warning.dark))),ie(A.Alert,"errorStandardBg",vt(A.error.light,.9)),ie(A.Alert,"infoStandardBg",vt(A.info.light,.9)),ie(A.Alert,"successStandardBg",vt(A.success.light,.9)),ie(A.Alert,"warningStandardBg",vt(A.warning.light,.9)),ie(A.Alert,"errorIconColor",V("palette-error-main")),ie(A.Alert,"infoIconColor",V("palette-info-main")),ie(A.Alert,"successIconColor",V("palette-success-main")),ie(A.Alert,"warningIconColor",V("palette-warning-main")),ie(A.AppBar,"defaultBg",V("palette-grey-900")),ie(A.AppBar,"darkBg",V("palette-background-paper")),ie(A.AppBar,"darkColor",V("palette-text-primary")),ie(A.Avatar,"defaultBg",V("palette-grey-600")),ie(A.Button,"inheritContainedBg",V("palette-grey-800")),ie(A.Button,"inheritContainedHoverBg",V("palette-grey-700")),ie(A.Chip,"defaultBorder",V("palette-grey-700")),ie(A.Chip,"defaultAvatarColor",V("palette-grey-300")),ie(A.Chip,"defaultIconColor",V("palette-grey-300")),ie(A.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ie(A.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ie(A.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ie(A.LinearProgress,"primaryBg",vt(A.primary.main,.5)),ie(A.LinearProgress,"secondaryBg",vt(A.secondary.main,.5)),ie(A.LinearProgress,"errorBg",vt(A.error.main,.5)),ie(A.LinearProgress,"infoBg",vt(A.info.main,.5)),ie(A.LinearProgress,"successBg",vt(A.success.main,.5)),ie(A.LinearProgress,"warningBg",vt(A.warning.main,.5)),ie(A.Skeleton,"bg",`rgba(${V("palette-text-primaryChannel")} / 0.13)`),ie(A.Slider,"primaryTrack",vt(A.primary.main,.5)),ie(A.Slider,"secondaryTrack",vt(A.secondary.main,.5)),ie(A.Slider,"errorTrack",vt(A.error.main,.5)),ie(A.Slider,"infoTrack",vt(A.info.main,.5)),ie(A.Slider,"successTrack",vt(A.success.main,.5)),ie(A.Slider,"warningTrack",vt(A.warning.main,.5));const K=Ks(A.background.default,.98);ie(A.SnackbarContent,"bg",K),ie(A.SnackbarContent,"color",Vr(()=>A.getContrastText(K))),ie(A.SpeedDialAction,"fabHoverBg",Ks(A.background.paper,.15)),ie(A.StepConnector,"border",V("palette-grey-600")),ie(A.StepContent,"border",V("palette-grey-600")),ie(A.Switch,"defaultColor",V("palette-grey-300")),ie(A.Switch,"defaultDisabledColor",V("palette-grey-600")),ie(A.Switch,"primaryDisabledColor",vt(A.primary.main,.55)),ie(A.Switch,"secondaryDisabledColor",vt(A.secondary.main,.55)),ie(A.Switch,"errorDisabledColor",vt(A.error.main,.55)),ie(A.Switch,"infoDisabledColor",vt(A.info.main,.55)),ie(A.Switch,"successDisabledColor",vt(A.success.main,.55)),ie(A.Switch,"warningDisabledColor",vt(A.warning.main,.55)),ie(A.TableCell,"border",vt(Qs(A.divider,1),.68)),ie(A.Tooltip,"bg",Qs(A.grey[700],.92))}ia(A.background,"default"),ia(A.background,"paper"),ia(A.common,"background"),ia(A.common,"onBackground"),ia(A,"divider"),Object.keys(A).forEach(K=>{const Q=A[K];Q&&typeof Q=="object"&&(Q.main&&ie(A[K],"mainChannel",Dl(Pl(Q.main))),Q.light&&ie(A[K],"lightChannel",Dl(Pl(Q.light))),Q.dark&&ie(A[K],"darkChannel",Dl(Pl(Q.dark))),Q.contrastText&&ie(A[K],"contrastTextChannel",Dl(Pl(Q.contrastText))),K==="text"&&(ia(A[K],"primary"),ia(A[K],"secondary")),K==="action"&&(Q.active&&ia(A[K],"active"),Q.selected&&ia(A[K],"selected")))})}),P=t.reduce((j,A)=>Bn(j,A),P);const I={prefix:s,disableCssColorScheme:l,shouldSkipGeneratingVar:c,getSelector:uN(P)},{vars:M,generateThemeVars:Y,generateStyleSheets:ae}=IO(P,I);return P.vars=M,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([j,A])=>{P[j]=A}),P.generateThemeVars=Y,P.generateStyleSheets=ae,P.generateSpacing=function(){return Jb(m.spacing,Xd(this))},P.getColorSchemeSelector=wO(d),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=c,P.unstable_sxConfig={...kl,...m==null?void 0:m.unstable_sxConfig},P.unstable_sx=function(A){return di({sx:A,theme:this})},P.toRuntimeSource=SE,P}function xE(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:u0({...r===!0?{}:r.palette,mode:t})})}function Ws(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 l0(e,...t);let b=r;"palette"in e||m[d]&&(m[d]!==!0?b=m[d].palette:d==="dark"&&(b={mode:"dark"}));const E=l0({...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),cN({...c,colorSchemes:m,defaultColorScheme:d,...typeof i!="boolean"&&i},...t)}const Zs=Ws(),$r="$$material";function Ul(){const e=Wd(Zs);return e[$r]||e}function fN(e){return me.jsx(nO,{...e,defaultTheme:Zs,themeId:$r})}function dN(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _E=e=>dN(e)&&e!=="classes",Ot=uO({themeId:$r,defaultTheme:Zs,rootShouldForwardProp:_E});function hN(e){return function(r){return me.jsx(fN,{styles:typeof e=="function"?i=>e({theme:i,...r}):e})}}function pN(){return qR}const Hn=AO;function Fn(e){return CO(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,O=jb(E[e],l),{props:{component:_,...L},internalRef:R}=Yb({className:r,...p,externalForwardedProps:e==="root"?S:void 0,externalSlotProps:O}),H=fr(R,O==null?void 0:O.ref,t.ref),k=c?c(L):{},P={...l,...k},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(k).forEach(Y=>{delete M[Y]}),[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 c0(e,t){return c0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},c0(e,t)}function RE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c0(e,t)}const OE={disabled:!1},Js=xt.createContext(null);var mN=function(t){return t.scrollTop},Hl="unmounted",hi="exited",pi="entering",du="entered",f0="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=Hl:p=hi,s.state={status:p},s.nextCallback=null,s}t.getDerivedStateFromProps=function(l,s){var c=l.in;return c&&s.status===Hl?{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=f0)}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:Us.findDOMNode(this);c&&mN(c)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hi&&this.setState({status:Hl})},r.performEnter=function(l){var s=this,c=this.props.enter,d=this.context?this.context.isMounting:l,p=this.props.nodeRef?[d]:[Us.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:Us.findDOMNode(this);if(!s||OE.disabled){this.safeSetState({status:hi},function(){l.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:f0},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:Us.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===Hl)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(Js.Provider,{value:null},typeof c=="function"?c(l,d):xt.cloneElement(xt.Children.only(c),d))},t}(xt.Component);qr.contextType=Js,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=Hl,qr.EXITED=hi,qr.ENTERING=pi,qr.ENTERED=du,qr.EXITING=f0;function gN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d0(e,t){var r=function(s){return t&&x.isValidElement(s)?t(s):s},i=Object.create(null);return e&&x.Children.map(e,function(l){return l}).forEach(function(l){i[l.key]=r(l)}),i}function bN(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 EN(e,t){return d0(e.children,function(r){return x.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 yN(e,t,r){var i=d0(e.children),l=bN(t,i);return Object.keys(l).forEach(function(s){var c=l[s];if(x.isValidElement(c)){var d=s in t,p=s in i,m=t[s],b=x.isValidElement(m)&&!m.props.in;p&&(!d||b)?l[s]=x.cloneElement(c,{onExited:r.bind(null,c),in:!0,exit:mi(c,"exit",e),enter:mi(c,"enter",e)}):!p&&d&&!b?l[s]=x.cloneElement(c,{in:!1}):p&&d&&x.isValidElement(m)&&(l[s]=x.cloneElement(c,{onExited:r.bind(null,c),in:m.props.in,exit:mi(c,"exit",e),enter:mi(c,"enter",e)}))}}),l}var TN=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},SN={component:"div",childFactory:function(t){return t}},h0=function(e){RE(t,e);function t(i,l){var s;s=e.call(this,i,l)||this;var c=s.handleExited.bind(gN(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?EN(l,d):yN(l,c,d),firstRender:!1}},r.handleExited=function(l,s){var c=d0(this.props.children);l.key in c||(l.props.onExited&&l.props.onExited(s),this.mounted&&this.setState(function(d){var p=as({},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=TN(this.state.children).map(c);return delete d.appear,delete d.enter,delete d.exit,s===null?xt.createElement(Js.Provider,{value:p},m):xt.createElement(Js.Provider,{value:p},xt.createElement(s,d,m))},t}(xt.Component);h0.propTypes={},h0.defaultProps=SN;const NE=e=>e.scrollTop;function ec(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 CN={entering:{opacity:1},entered:{opacity:1}},AN=x.forwardRef(function(t,r){const i=Ul(),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:O,onExiting:_,style:L,timeout:R=l,TransitionComponent:H=qr,...k}=t,P=x.useRef(null),I=fr(P,Ps(d),r),M=Z=>re=>{if(Z){const X=P.current;re===void 0?Z(X):Z(X,re)}},Y=M(S),ae=M((Z,re)=>{NE(Z);const X=ec({style:L,timeout:R,easing:p},{mode:"enter"});Z.style.webkitTransition=i.transitions.create("opacity",X),Z.style.transition=i.transitions.create("opacity",X),b&&b(Z,re)}),j=M(E),A=M(_),V=M(Z=>{const re=ec({style:L,timeout:R,easing:p},{mode:"exit"});Z.style.webkitTransition=i.transitions.create("opacity",re),Z.style.transition=i.transitions.create("opacity",re),y&&y(Z)}),K=M(O),Q=Z=>{s&&s(P.current,Z)};return me.jsx(H,{appear:c,in:m,nodeRef:P,onEnter:ae,onEntered:j,onEntering:Y,onExit:V,onExited:K,onExiting:A,addEndListener:Q,timeout:R,...k,children:(Z,re)=>x.cloneElement(d,{style:{opacity:0,visibility:Z==="exited"&&!m?"hidden":void 0,...CN[Z],...L,...d.props.style},ref:I,...re})})});function xN(e){return Pn("MuiBackdrop",e)}Un("MuiBackdrop",["root","invisible"]);const _N=e=>{const{ownerState:t,...r}=e;return r},vN=e=>{const{classes:t,invisible:r}=e;return Wn({root:["root",r&&"invisible"]},xN,t)},RN=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"}}]}),ON=x.forwardRef(function(t,r){const i=Fn({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:O,..._}=i,L={...i,component:c,invisible:d},R=vN(L),H={transition:y,root:m.Root,...S},k={...b,...E},P={slots:H,slotProps:k},[I,M]=fu("root",{elementType:RN,externalForwardedProps:P,className:st(R.root,s),ownerState:L}),[Y,ae]=fu("transition",{elementType:AN,externalForwardedProps:P,ownerState:L}),j=_N(ae);return me.jsx(Y,{in:p,timeout:O,..._,...j,children:me.jsx(I,{"aria-hidden":!0,...M,classes:R,ref:r,children:l})})});function NN(e){return typeof e=="function"?e():e}function kN(e){return e?e.props.hasOwnProperty("in"):!1}const tc=new j8;function DN(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=x.useRef({}),S=x.useRef(null),y=x.useRef(null),O=fr(y,b),[_,L]=x.useState(!m),R=kN(d);let H=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(H=!1);const k=()=>Da(S.current),P=()=>(E.current.modalRef=y.current,E.current.mount=S.current,E.current),I=()=>{tc.mount(P(),{disableScrollLock:i}),y.current&&(y.current.scrollTop=0)},M=ra(()=>{const re=NN(t)||k().body;tc.add(P(),re),y.current&&I()}),Y=()=>tc.isTopModal(P()),ae=ra(re=>{S.current=re,re&&(m&&Y()?I():y.current&&vl(y.current,H))}),j=x.useCallback(()=>{tc.remove(P(),H)},[H]);x.useEffect(()=>()=>{j()},[j]),x.useEffect(()=>{m?M():(!R||!l)&&j()},[m,j,R,l,M]);const A=re=>X=>{var se;(se=re.onKeyDown)==null||se.call(re,X),!(X.key!=="Escape"||X.which===229||!Y())&&(r||(X.stopPropagation(),p&&p(X,"escapeKeyDown")))},V=re=>X=>{var se;(se=re.onClick)==null||se.call(re,X),X.target===X.currentTarget&&p&&p(X,"backdropClick")};return{getRootProps:(re={})=>{const X=Fb(e);delete X.onTransitionEnter,delete X.onTransitionExited;const se={...X,...re};return{role:"presentation",...se,onKeyDown:A(se),ref:O}},getBackdropProps:(re={})=>{const X=re;return{"aria-hidden":!0,...X,onClick:V(X),open:m}},getTransitionProps:()=>{const re=()=>{L(!1),s&&s()},X=()=>{L(!0),c&&c(),l&&j()};return{onEnter:wb(re,d==null?void 0:d.props.onEnter),onExited:wb(X,d==null?void 0:d.props.onExited)}},rootRef:O,portalRef:ae,isTopModal:Y,exited:_,hasTransition:R}}function LN(e){return Pn("MuiModal",e)}Un("MuiModal",["root","hidden","backdrop"]);function IN(e){return Pn("MuiSvgIcon",e)}Un("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const wN=e=>{const{color:t,fontSize:r,classes:i}=e,l={root:["root",t!=="inherit"&&`color${_t(t)}`,`fontSize${_t(r)}`]};return Wn(l,IN,i)},MN=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)}`]]}})(Hn(({theme:e})=>{var t,r,i,l,s,c,d,p,m,b,E,S,y,O;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,R;return{props:{color:_},style:{color:(R=(L=(e.vars??e).palette)==null?void 0:L[_])==null?void 0:R.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:(O=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:O.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),nc=x.forwardRef(function(t,r){const i=Fn({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,O=x.isValidElement(l)&&l.type==="svg",_={...i,color:c,component:d,fontSize:p,instanceFontSize:t.fontSize,inheritViewBox:b,viewBox:S,hasSvgAsChild:O},L={};b||(L.viewBox=S);const R=wN(_);return me.jsxs(MN,{as:d,className:st(R.root,s),focusable:"false",color:m,"aria-hidden":E?void 0:!0,role:E?"img":void 0,ref:r,...L,...y,...O&&l.props,ownerState:_,children:[O?l.props.children:l,E?me.jsx("title",{children:E}):null]})});nc&&(nc.muiName="SvgIcon");function gi(e,t){function r(i,l){return me.jsx(nc,{"data-testid":`${t}Icon`,ref:l,...i,children:e})}return r.muiName=nc.muiName,x.memo(x.forwardRef(r))}const BN=e=>{const{open:t,exited:r,classes:i}=e;return Wn({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},LN,i)},PN=Ot("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Hn(({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"}}]}))),UN=Ot(ON,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),HN=x.forwardRef(function(t,r){const i=Fn({name:"MuiModal",props:t}),{BackdropComponent:l=UN,BackdropProps:s,classes:c,className:d,closeAfterTransition:p=!1,children:m,container:b,component:E,components:S={},componentsProps:y={},disableAutoFocus:O=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:L=!1,disablePortal:R=!1,disableRestoreFocus:H=!1,disableScrollLock:k=!1,hideBackdrop:P=!1,keepMounted:I=!1,onBackdropClick:M,onClose:Y,onTransitionEnter:ae,onTransitionExited:j,open:A,slotProps:V={},slots:K={},theme:Q,...Z}=i,re={...i,closeAfterTransition:p,disableAutoFocus:O,disableEnforceFocus:_,disableEscapeKeyDown:L,disablePortal:R,disableRestoreFocus:H,disableScrollLock:k,hideBackdrop:P,keepMounted:I},{getRootProps:X,getBackdropProps:se,getTransitionProps:ne,portalRef:be,isTopModal:C,exited:J,hasTransition:oe}=DN({...re,rootRef:r}),D={...re,exited:J},ce=BN(D),Oe={};if(m.props.tabIndex===void 0&&(Oe.tabIndex="-1"),oe){const{onEnter:ve,onExited:Re}=ne();Oe.onEnter=ve,Oe.onExited=Re}const Se={...Z,slots:{root:S.Root,backdrop:S.Backdrop,...K},slotProps:{...y,...V}},[tt,Me]=fu("root",{elementType:PN,externalForwardedProps:Se,getSlotProps:X,additionalProps:{ref:r,as:E},ownerState:D,className:st(d,ce==null?void 0:ce.root,!D.open&&D.exited&&(ce==null?void 0:ce.hidden))}),[$e,xe]=fu("backdrop",{elementType:l,externalForwardedProps:Se,additionalProps:s,getSlotProps:ve=>se({...ve,onClick:Re=>{M&&M(Re),ve!=null&&ve.onClick&&ve.onClick(Re)}}),className:st(s==null?void 0:s.className,ce==null?void 0:ce.backdrop),ownerState:D}),Ge=fr(s==null?void 0:s.ref,xe.ref);return!I&&!A&&(!oe||J)?null:me.jsx(Z8,{ref:be,container:b,disablePortal:R,children:me.jsxs(tt,{...Me,children:[!P&&l?me.jsx($e,{...xe,ref:Ge}):null,me.jsx(K8,{disableEnforceFocus:_,disableAutoFocus:O,disableRestoreFocus:H,isEnabled:C,open:A,children:x.cloneElement(m,Oe)})]})})});function FN(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 zN(e){return typeof e=="function"?e():e}function rc(e,t,r){const i=zN(r),l=FN(e,t,i);l&&(t.style.webkitTransform=l,t.style.transform=l)}const YN=x.forwardRef(function(t,r){const i=Ul(),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:O,onEntering:_,onExit:L,onExited:R,onExiting:H,style:k,timeout:P=s,TransitionComponent:I=qr,...M}=t,Y=x.useRef(null),ae=fr(Ps(p),Y,r),j=ne=>be=>{ne&&(be===void 0?ne(Y.current):ne(Y.current,be))},A=j((ne,be)=>{rc(b,ne,m),NE(ne),y&&y(ne,be)}),V=j((ne,be)=>{const C=ec({timeout:P,style:k,easing:E},{mode:"enter"});ne.style.webkitTransition=i.transitions.create("-webkit-transform",{...C}),ne.style.transition=i.transitions.create("transform",{...C}),ne.style.webkitTransform="none",ne.style.transform="none",_&&_(ne,be)}),K=j(O),Q=j(H),Z=j(ne=>{const be=ec({timeout:P,style:k,easing:E},{mode:"exit"});ne.style.webkitTransition=i.transitions.create("-webkit-transform",be),ne.style.transition=i.transitions.create("transform",be),rc(b,ne,m),L&&L(ne)}),re=j(ne=>{ne.style.webkitTransition="",ne.style.transition="",R&&R(ne)}),X=ne=>{c&&c(Y.current,ne)},se=x.useCallback(()=>{Y.current&&rc(b,Y.current,m)},[b,m]);return x.useEffect(()=>{if(S||b==="down"||b==="right")return;const ne=ws(()=>{Y.current&&rc(b,Y.current,m)}),be=jr(Y.current);return be.addEventListener("resize",ne),()=>{ne.clear(),be.removeEventListener("resize",ne)}},[b,S,m]),x.useEffect(()=>{S||se()},[S,se]),me.jsx(I,{nodeRef:Y,onEnter:A,onEntered:K,onEntering:V,onExit:Z,onExited:re,onExiting:Q,addEndListener:X,appear:d,in:S,timeout:P,...M,children:(ne,be)=>x.cloneElement(p,{ref:ae,style:{visibility:ne==="exited"&&!S?"hidden":void 0,...k,...p.props.style},...be})})});function jN(e){return Pn("MuiPaper",e)}Un("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 VN=e=>{const{square:t,elevation:r,variant:i,classes:l}=e,s={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${r}`]};return Wn(s,jN,l)},$N=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}`]]}})(Hn(({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=x.forwardRef(function(t,r){var y;const i=Fn({props:t,name:"MuiPaper"}),l=Ul(),{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=VN(E);return me.jsx($N,{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(${Ll("#fff",o0(d))}, ${Ll("#fff",o0(d))})`}},...b.style}})});function qN(e){return Pn("MuiDrawer",e)}Un("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]},GN=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 Wn(l,qN,t)},XN=Ot(HN,{name:"MuiDrawer",slot:"Root",overridesResolver:DE})(Hn(({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"}),QN=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)}`]]}})(Hn(({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 KN(e){return["left","right"].includes(e)}function WN({direction:e},t){return e==="rtl"&&KN(t)?IE[t]:t}const ZN=x.forwardRef(function(t,r){const i=Fn({props:t,name:"MuiDrawer"}),l=Ul(),s=zd(),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,...O}={},onClose:_,open:L=!1,PaperProps:R={},SlideProps:H,TransitionComponent:k=YN,transitionDuration:P=c,variant:I="temporary",...M}=i,Y=x.useRef(!1);x.useEffect(()=>{Y.current=!0},[]);const ae=WN({direction:s?"rtl":"ltr"},d),A={...i,anchor:d,elevation:E,open:L,variant:I,...M},V=GN(A),K=me.jsx(QN,{elevation:I==="temporary"?E:0,square:!0,...R,className:st(V.paper,R.className),ownerState:A,children:m});if(I==="permanent")return me.jsx(LE,{className:st(V.root,V.docked,b),ownerState:A,ref:r,...M,children:K});const Q=me.jsx(k,{in:L,direction:IE[ae],timeout:P,appear:Y.current,...H,children:K});return I==="persistent"?me.jsx(LE,{className:st(V.root,V.docked,b),ownerState:A,ref:r,...M,children:Q}):me.jsx(XN,{BackdropProps:{...p,...y,transitionDuration:P},className:st(V.root,V.modal,b),open:L,ownerState:A,onClose:_,hideBackdrop:S,ref:r,...M,...O,children:Q})});class ac{constructor(){ns(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 ac}static use(){const t=Bb(ac.create).current,[r,i]=x.useState(!1);return t.shouldMount=r,t.setShouldMount=i,x.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=e9(),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 JN(){return ac.use()}function e9(){let e,t;const r=new Promise((i,l)=>{e=i,t=l});return r.resolve=e,r.reject=t,r}function t9(e){const{className:t,classes:r,pulsate:i=!1,rippleX:l,rippleY:s,rippleSize:c,in:d,onExited:p,timeout:m}=e,[b,E]=x.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},O=st(r.child,b&&r.childLeaving,i&&r.childPulsate);return!d&&!b&&E(!0),x.useEffect(()=>{if(!d&&p!=null){const _=setTimeout(p,m);return()=>{clearTimeout(_)}}},[p,d,m]),me.jsx("span",{className:S,style:y,children:me.jsx("span",{className:O})})}const pr=Un("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),p0=550,n9=80,r9=If`
|
|
119
119
|
0% {
|
|
120
120
|
transform: scale(0);
|
|
121
121
|
opacity: 0.1;
|
|
@@ -125,7 +125,7 @@ export default theme;`}function lh(e={},...t){const{breakpoints:r,mixins:i={},sp
|
|
|
125
125
|
transform: scale(1);
|
|
126
126
|
opacity: 0.3;
|
|
127
127
|
}
|
|
128
|
-
`,
|
|
128
|
+
`,a9=If`
|
|
129
129
|
0% {
|
|
130
130
|
opacity: 1;
|
|
131
131
|
}
|
|
@@ -133,7 +133,7 @@ export default theme;`}function lh(e={},...t){const{breakpoints:r,mixins:i={},sp
|
|
|
133
133
|
100% {
|
|
134
134
|
opacity: 0;
|
|
135
135
|
}
|
|
136
|
-
`,
|
|
136
|
+
`,i9=If`
|
|
137
137
|
0% {
|
|
138
138
|
transform: scale(1);
|
|
139
139
|
}
|
|
@@ -145,15 +145,15 @@ export default theme;`}function lh(e={},...t){const{breakpoints:r,mixins:i={},sp
|
|
|
145
145
|
100% {
|
|
146
146
|
transform: scale(1);
|
|
147
147
|
}
|
|
148
|
-
`,
|
|
148
|
+
`,u9=Ot("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),l9=Ot(t9,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
149
149
|
opacity: 0;
|
|
150
150
|
position: absolute;
|
|
151
151
|
|
|
152
152
|
&.${pr.rippleVisible} {
|
|
153
153
|
opacity: 0.3;
|
|
154
154
|
transform: scale(1);
|
|
155
|
-
animation-name: ${
|
|
156
|
-
animation-duration: ${
|
|
155
|
+
animation-name: ${r9};
|
|
156
|
+
animation-duration: ${p0}ms;
|
|
157
157
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
158
158
|
}
|
|
159
159
|
|
|
@@ -172,8 +172,8 @@ export default theme;`}function lh(e={},...t){const{breakpoints:r,mixins:i={},sp
|
|
|
172
172
|
|
|
173
173
|
& .${pr.childLeaving} {
|
|
174
174
|
opacity: 0;
|
|
175
|
-
animation-name: ${
|
|
176
|
-
animation-duration: ${
|
|
175
|
+
animation-name: ${a9};
|
|
176
|
+
animation-duration: ${p0}ms;
|
|
177
177
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
178
178
|
}
|
|
179
179
|
|
|
@@ -182,21 +182,21 @@ export default theme;`}function lh(e={},...t){const{breakpoints:r,mixins:i={},sp
|
|
|
182
182
|
/* @noflip */
|
|
183
183
|
left: 0px;
|
|
184
184
|
top: 0;
|
|
185
|
-
animation-name: ${
|
|
185
|
+
animation-name: ${i9};
|
|
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
|
-
`,lD=_.forwardRef(function(t,r){const i=Fn({props:t,name:"MuiTouchRipple"}),{center:l=!1,classes:s={},className:c,...d}=i,[p,m]=_.useState([]),b=_.useRef(0),E=_.useRef(null);_.useEffect(()=>{E.current&&(E.current(),E.current=null)},[p]);const T=_.useRef(!1),y=IO(),O=_.useRef(null),x=_.useRef(null),k=_.useCallback(P=>{const{pulsate:I,rippleX:M,rippleY:Y,rippleSize:ue,cb:$}=P;m(C=>[...C,me.jsx(uD,{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:ph,pulsate:I,rippleX:M,rippleY:Y,rippleSize:ue},b.current)]),b.current+=1,E.current=$},[s]),R=_.useCallback((P={},I={},M=()=>{})=>{const{pulsate:Y=!1,center:ue=l||I.pulsate,fakeElement:$=!1}=I;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 C=$?null:x.current,j=C?C.getBoundingClientRect():{width:0,height:0,left:0,top:0};let K,J,Z;if(ue||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)K=Math.round(j.width/2),J=Math.round(j.height/2);else{const{clientX:re,clientY:X}=P.touches&&P.touches.length>0?P.touches[0]:P;K=Math.round(re-j.left),J=Math.round(X-j.top)}if(ue)Z=Math.sqrt((2*j.width**2+j.height**2)/3),Z%2===0&&(Z+=1);else{const re=Math.max(Math.abs((C?C.clientWidth:0)-K),K)*2+2,X=Math.max(Math.abs((C?C.clientHeight:0)-J),J)*2+2;Z=Math.sqrt(re**2+X**2)}P!=null&&P.touches?O.current===null&&(O.current=()=>{k({pulsate:Y,rippleX:K,rippleY:J,rippleSize:Z,cb:M})},y.start(tD,()=>{O.current&&(O.current(),O.current=null)})):k({pulsate:Y,rippleX:K,rippleY:J,rippleSize:Z,cb:M})},[l,k,y]),H=_.useCallback(()=>{R({},{pulsate:!0})},[R]),D=_.useCallback((P,I)=>{if(y.clear(),(P==null?void 0:P.type)==="touchend"&&O.current){O.current(),O.current=null,y.start(0,()=>{D(P,I)});return}O.current=null,m(M=>M.length>0?M.slice(1):M),E.current=I},[y]);return _.useImperativeHandle(r,()=>({pulsate:H,start:R,stop:D}),[H,R,D]),me.jsx(iD,{className:st(pr.root,s.root,c),ref:x,...d,children:me.jsx(hh,{component:null,exit:!0,children:p})})});function oD(e){return Pn("MuiButtonBase",e)}const sD=Un("MuiButtonBase",["root","disabled","focusVisible"]),cD=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:i,classes:l}=e,c=Wn({root:["root",t&&"disabled",r&&"focusVisible"]},oD,l);return r&&i&&(c.root+=` ${i}`),c},fD=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"},[`&.${sD.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),mh=_.forwardRef(function(t,r){const i=Fn({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:O="a",onBlur:x,onClick:k,onContextMenu:R,onDragLeave:H,onFocus:D,onFocusVisible:P,onKeyDown:I,onKeyUp:M,onMouseDown:Y,onMouseLeave:ue,onMouseUp:$,onTouchEnd:C,onTouchMove:j,onTouchStart:K,tabIndex:J=0,TouchRippleProps:Z,touchRippleRef:re,type:X,...oe}=i,Q=_.useRef(null),pe=Zk(),A=fr(pe.ref,re),[ee,Te]=_.useState(!1);m&&ee&&Te(!1),_.useImperativeHandle(l,()=>({focusVisible:()=>{Te(!0),Q.current.focus()}}),[]);const L=pe.shouldMount&&!b&&!m;_.useEffect(()=>{ee&&T&&!b&&pe.pulsate()},[b,T,ee,pe]);function se(we,Ge,$t=E){return ra(te=>(Ge&&Ge(te),$t||pe[we](te),!0))}const Oe=se("start",Y),Se=se("stop",R),et=se("stop",H),Me=se("stop",$),Ve=se("stop",we=>{ee&&we.preventDefault(),ue&&ue(we)}),_e=se("start",K),qe=se("stop",C),ve=se("stop",j),Re=se("stop",we=>{wb(we.target)||Te(!1),x&&x(we)},!1),Ae=ra(we=>{Q.current||(Q.current=we.currentTarget),wb(we.target)&&(Te(!0),P&&P(we)),D&&D(we)}),Be=()=>{const we=Q.current;return p&&p!=="button"&&!(we.tagName==="A"&&we.href)},it=ra(we=>{T&&!we.repeat&&ee&&we.key===" "&&pe.stop(we,()=>{pe.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(),k&&k(we))}),Ye=ra(we=>{T&&we.key===" "&&ee&&!we.defaultPrevented&&pe.stop(we,()=>{pe.pulsate(we)}),M&&M(we),k&&we.target===we.currentTarget&&Be()&&we.key===" "&&!we.defaultPrevented&&k(we)});let Ue=p;Ue==="button"&&(oe.href||oe.to)&&(Ue=O);const ct={};Ue==="button"?(ct.type=X===void 0?"button":X,ct.disabled=m):(!oe.href&&!oe.to&&(ct.role="button"),m&&(ct["aria-disabled"]=m));const At=fr(r,Q),rn={...i,centerRipple:s,component:p,disabled:m,disableRipple:b,disableTouchRipple:E,focusRipple:T,tabIndex:J,focusVisible:ee},_n=cD(rn);return me.jsxs(fD,{as:Ue,className:st(_n.root,d),ownerState:rn,onBlur:Re,onClick:k,onContextMenu:Se,onFocus:Ae,onKeyDown:it,onKeyUp:Ye,onMouseDown:Oe,onMouseLeave:Ve,onMouseUp:Me,onDragLeave:et,onTouchEnd:qe,onTouchMove:ve,onTouchStart:_e,ref:At,tabIndex:m?-1:J,type:X,...ct,...oe,children:[c,L?me.jsx(lD,{ref:A,center:s,...Z}):null]})});function dD(e){return Pn("MuiTab",e)}const mr=Un("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),hD=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${xt(r)}`,i&&"fullWidth",l&&"wrapped",d&&"selected",p&&"disabled"],icon:["iconWrapper","icon"]};return Wn(m,dD,t)},pD=Ot(mh,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${xt(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${mr.iconWrapper}`]:t.iconWrapper},{[`& .${mr.icon}`]:t.icon}]}})(Hn(({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)}}]}))),mD=_.forwardRef(function(t,r){const i=Fn({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:O,selected:x,selectionFollowsFocus:k,textColor:R="inherit",value:H,wrapped:D=!1,...P}=i,I={...i,disabled:s,disableFocusRipple:c,selected:x,icon:!!p,iconPosition:m,label:!!E,fullWidth:d,textColor:R,wrapped:D},M=hD(I),Y=p&&E&&_.isValidElement(p)?_.cloneElement(p,{className:st(M.icon,p.props.className)}):p,ue=C=>{!x&&T&&T(C,H),y&&y(C)},$=C=>{k&&!x&&T&&T(C,H),O&&O(C)};return me.jsxs(pD,{focusRipple:!c,className:st(M.root,l),ref:r,role:"tab","aria-selected":x,disabled:s,onClick:ue,onFocus:$,ownerState:I,tabIndex:x?0:-1,...P,children:[m==="top"||m==="start"?me.jsxs(_.Fragment,{children:[Y,E]}):me.jsxs(_.Fragment,{children:[E,Y]}),b]})});function gD(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function bD(e,t,r,i={},l=()=>{}){const{ease:s=gD,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 ED={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function yD(e){const{onChange:t,...r}=e,i=_.useRef(),l=_.useRef(null),s=()=>{i.current=l.current.offsetHeight-l.current.clientHeight};return fi(()=>{const c=ws(()=>{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]),_.useEffect(()=>{s(),t(i.current)},[t]),me.jsx("div",{style:ED,ref:l,...r})}const TD=gi(me.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),SD=gi(me.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function AD(e){return Pn("MuiTabScrollButton",e)}const CD=Un("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),_D=e=>{const{classes:t,orientation:r,disabled:i}=e;return Wn({root:["root",r,i&&"disabled"]},AD,t)},xD=Ot(mh,{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,[`&.${CD.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),vD=_.forwardRef(function(t,r){const i=Fn({props:t,name:"MuiTabScrollButton"}),{className:l,slots:s={},slotProps:c={},direction:d,orientation:p,disabled:m,...b}=i,E=zd(),T={isRtl:E,...i},y=_D(T),O=s.StartScrollButtonIcon??TD,x=s.EndScrollButtonIcon??SD,k=Bs({elementType:O,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:T}),R=Bs({elementType:x,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:T});return me.jsx(xD,{component:"div",className:st(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"?me.jsx(O,{...k}):me.jsx(x,{...R})})});function RD(e){return Pn("MuiTabs",e)}const gh=Un("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),DE=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,IE=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ic=(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}}},OD=e=>{const{vertical:t,fixed:r,hideScrollbar:i,scrollableX:l,scrollableY:s,centered:c,scrollButtonsHideMobile:d,classes:p}=e;return Wn({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"]},RD,p)},ND=Ot("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${gh.scrollButtons}`]:t.scrollButtons},{[`& .${gh.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Hn(({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:{[`& .${gh.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),kD=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"}}]}),DD=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"}}]}),ID=Ot("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Hn(({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}}]}))),LD=Ot(yD)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),LE={},wD=_.forwardRef(function(t,r){const i=Fn({props:t,name:"MuiTabs"}),l=Ul(),s=zd(),{"aria-label":c,"aria-labelledby":d,action:p,centered:m=!1,children:b,className:E,component:T="div",allowScrollButtonsMobile:y=!1,indicatorColor:O="primary",onChange:x,orientation:k="horizontal",ScrollButtonComponent:R=vD,scrollButtons:H="auto",selectionFollowsFocus:D,slots:P={},slotProps:I={},TabIndicatorProps:M={},TabScrollButtonProps:Y={},textColor:ue="primary",value:$,variant:C="standard",visibleScrollbar:j=!1,...K}=i,J=C==="scrollable",Z=k==="vertical",re=Z?"scrollTop":"scrollLeft",X=Z?"top":"left",oe=Z?"bottom":"right",Q=Z?"clientHeight":"clientWidth",pe=Z?"height":"width",A={...i,component:T,allowScrollButtonsMobile:y,indicatorColor:O,orientation:k,vertical:Z,scrollButtons:H,textColor:ue,variant:C,visibleScrollbar:j,fixed:!J,hideScrollbar:J&&!j,scrollableX:J&&!Z,scrollableY:J&&Z,centered:m&&!J,scrollButtonsHideMobile:!y},ee=OD(A),Te=Bs({elementType:P.StartScrollButtonIcon,externalSlotProps:I.startScrollButtonIcon,ownerState:A}),L=Bs({elementType:P.EndScrollButtonIcon,externalSlotProps:I.endScrollButtonIcon,ownerState:A}),[se,Oe]=_.useState(!1),[Se,et]=_.useState(LE),[Me,Ve]=_.useState(!1),[_e,qe]=_.useState(!1),[ve,Re]=_.useState(!1),[Ae,Be]=_.useState({overflow:"hidden",scrollbarWidth:0}),it=new Map,Ye=_.useRef(null),Ue=_.useRef(null),ct=()=>{const ke=Ye.current;let xe;if(ke){const Qe=ke.getBoundingClientRect();xe={clientWidth:ke.clientWidth,scrollLeft:ke.scrollLeft,scrollTop:ke.scrollTop,scrollWidth:ke.scrollWidth,top:Qe.top,bottom:Qe.bottom,left:Qe.left,right:Qe.right}}let Fe;if(ke&&$!==!1){const Qe=Ue.current.children;if(Qe.length>0){const Ht=Qe[it.get($)];Fe=Ht?Ht.getBoundingClientRect():null}}return{tabsMeta:xe,tabMeta:Fe}},At=ra(()=>{const{tabsMeta:ke,tabMeta:xe}=ct();let Fe=0,Qe;Z?(Qe="top",xe&&ke&&(Fe=xe.top-ke.top+ke.scrollTop)):(Qe=s?"right":"left",xe&&ke&&(Fe=(s?-1:1)*(xe[Qe]-ke[Qe]+ke.scrollLeft)));const Ht={[Qe]:Fe,[pe]:xe?xe[pe]:0};if(typeof Se[Qe]!="number"||typeof Se[pe]!="number")et(Ht);else{const gr=Math.abs(Se[Qe]-Ht[Qe]),br=Math.abs(Se[pe]-Ht[pe]);(gr>=1||br>=1)&&et(Ht)}}),rn=(ke,{animation:xe=!0}={})=>{xe?bD(re,Ye.current,ke,{duration:l.transitions.duration.standard}):Ye.current[re]=ke},_n=ke=>{let xe=Ye.current[re];Z?xe+=ke:xe+=ke*(s?-1:1),rn(xe)},we=()=>{const ke=Ye.current[Q];let xe=0;const Fe=Array.from(Ue.current.children);for(let Qe=0;Qe<Fe.length;Qe+=1){const Ht=Fe[Qe];if(xe+Ht[Q]>ke){Qe===0&&(xe=ke);break}xe+=Ht[Q]}return xe},Ge=()=>{_n(-1*we())},$t=()=>{_n(we())},te=_.useCallback(ke=>{Be({overflow:null,scrollbarWidth:ke})},[]),fe=()=>{const ke={};ke.scrollbarSizeListener=J?me.jsx(LD,{onChange:te,className:st(ee.scrollableX,ee.hideScrollbar)}):null;const Fe=J&&(H==="auto"&&(Me||_e)||H===!0);return ke.scrollButtonStart=Fe?me.jsx(R,{slots:{StartScrollButtonIcon:P.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Te},orientation:k,direction:s?"right":"left",onClick:Ge,disabled:!Me,...Y,className:st(ee.scrollButtons,Y.className)}):null,ke.scrollButtonEnd=Fe?me.jsx(R,{slots:{EndScrollButtonIcon:P.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:L},orientation:k,direction:s?"left":"right",onClick:$t,disabled:!_e,...Y,className:st(ee.scrollButtons,Y.className)}):null,ke},Ce=ra(ke=>{const{tabsMeta:xe,tabMeta:Fe}=ct();if(!(!Fe||!xe)){if(Fe[X]<xe[X]){const Qe=xe[re]+(Fe[X]-xe[X]);rn(Qe,{animation:ke})}else if(Fe[oe]>xe[oe]){const Qe=xe[re]+(Fe[oe]-xe[oe]);rn(Qe,{animation:ke})}}}),He=ra(()=>{J&&H!==!1&&Re(!ve)});_.useEffect(()=>{const ke=ws(()=>{Ye.current&&At()});let xe;const Fe=gr=>{gr.forEach(br=>{br.removedNodes.forEach(Xr=>{xe==null||xe.unobserve(Xr)}),br.addedNodes.forEach(Xr=>{xe==null||xe.observe(Xr)})}),ke(),He()},Qe=jr(Ye.current);Qe.addEventListener("resize",ke);let Ht;return typeof ResizeObserver<"u"&&(xe=new ResizeObserver(ke),Array.from(Ue.current.children).forEach(gr=>{xe.observe(gr)})),typeof MutationObserver<"u"&&(Ht=new MutationObserver(Fe),Ht.observe(Ue.current,{childList:!0})),()=>{ke.clear(),Qe.removeEventListener("resize",ke),Ht==null||Ht.disconnect(),xe==null||xe.disconnect()}},[At,He]),_.useEffect(()=>{const ke=Array.from(Ue.current.children),xe=ke.length;if(typeof IntersectionObserver<"u"&&xe>0&&J&&H!==!1){const Fe=ke[0],Qe=ke[xe-1],Ht={root:Ye.current,threshold:.99},gr=Ma=>{Ve(!Ma[0].isIntersecting)},br=new IntersectionObserver(gr,Ht);br.observe(Fe);const Xr=Ma=>{qe(!Ma[0].isIntersecting)},Qr=new IntersectionObserver(Xr,Ht);return Qr.observe(Qe),()=>{br.disconnect(),Qr.disconnect()}}},[J,H,ve,b==null?void 0:b.length]),_.useEffect(()=>{Oe(!0)},[]),_.useEffect(()=>{At()}),_.useEffect(()=>{Ce(LE!==Se)},[Ce,Se]),_.useImperativeHandle(p,()=>({updateIndicator:At,updateScrollButtons:He}),[At,He]);const nt=me.jsx(ID,{...M,className:st(ee.indicator,M.className),ownerState:A,style:{...Se,...M.style}});let Xe=0;const xn=_.Children.map(b,ke=>{if(!_.isValidElement(ke))return null;const xe=ke.props.value===void 0?Xe:ke.props.value;it.set(xe,Xe);const Fe=xe===$;return Xe+=1,_.cloneElement(ke,{fullWidth:C==="fullWidth",indicator:Fe&&!se&&nt,selected:Fe,selectionFollowsFocus:D,onChange:x,textColor:ue,value:xe,...Xe===1&&$===!1&&!ke.props.tabIndex?{tabIndex:0}:{}})}),an=ke=>{const xe=Ue.current,Fe=Da(xe).activeElement;if(Fe.getAttribute("role")!=="tab")return;let Ht=k==="horizontal"?"ArrowLeft":"ArrowUp",gr=k==="horizontal"?"ArrowRight":"ArrowDown";switch(k==="horizontal"&&s&&(Ht="ArrowRight",gr="ArrowLeft"),ke.key){case Ht:ke.preventDefault(),ic(xe,Fe,IE);break;case gr:ke.preventDefault(),ic(xe,Fe,DE);break;case"Home":ke.preventDefault(),ic(xe,null,DE);break;case"End":ke.preventDefault(),ic(xe,null,IE);break}},Ft=fe();return me.jsxs(ND,{className:st(ee.root,E),ownerState:A,ref:r,as:T,...K,children:[Ft.scrollButtonStart,Ft.scrollbarSizeListener,me.jsxs(kD,{className:ee.scroller,ownerState:A,style:{overflow:Ae.overflow,[Z?`margin${s?"Left":"Right"}`:"marginBottom"]:j?void 0:-Ae.scrollbarWidth},ref:Ye,children:[me.jsx(DD,{"aria-label":c,"aria-labelledby":d,"aria-orientation":k==="vertical"?"vertical":null,className:ee.flexContainer,ownerState:A,onKeyDown:an,ref:Ue,role:"tablist",children:xn}),se&&nt]}),Ft.scrollButtonEnd]})}),wE=_.createContext(null);function MD(){const[e,t]=_.useState(null);return _.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function BD(e){const{children:t,value:r}=e,i=MD(),l=_.useMemo(()=>({idPrefix:i,value:r}),[i,r]);return me.jsx(wE.Provider,{value:l,children:t})}function ME(){return _.useContext(wE)}function BE(e,t){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-P-${t}`}function PE(e,t){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-T-${t}`}const PD=_.forwardRef(function(t,r){const{children:i,...l}=t,s=ME();if(s===null)throw new TypeError("No TabContext provided");const c=_.Children.map(i,d=>_.isValidElement(d)?_.cloneElement(d,{"aria-controls":BE(s,d.props.value),id:PE(s,d.props.value)}):null);return me.jsx(wD,{...l,ref:r,value:s.value,children:c})});function UD({props:e,name:t}){return f5({props:e,name:t,defaultTheme:Zs,themeId:$r})}function UE({theme:e,...t}){const r=$r in e?e[$r]:void 0;return me.jsx(iE,{...t,themeId:r?$r:void 0,theme:r||e})}const uc={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:HD,useColorScheme:Y9,getInitColorSchemeScript:j9}=O5({themeId:$r,theme:()=>Ws({cssVariables:!0}),colorSchemeStorageKey:uc.colorSchemeStorageKey,modeStorageKey:uc.modeStorageKey,defaultColorScheme:{light:uc.defaultLightColorScheme,dark:uc.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:gE(e.palette,e.typography)};return t.unstable_sx=function(i){return di({sx:i,theme:this})},t}}),FD=HD;function zD({theme:e,...t}){return typeof e=="function"?me.jsx(UE,{theme:e,...t}):"colorSchemes"in($r in e?e[$r]:e)?me.jsx(FD,{theme:e,...t}):me.jsx(UE,{theme:e,...t})}const nn={text:{roman:400,medium:500,bold:700}},dt=e=>`${e/16}rem`,HE={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)}},YD={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"}}};Ws({typography:HE,custom:{}});const jD=tt.a({color:"inherit",textDecoration:"none"}),VD=_.forwardRef(function({Component:t,...r},i){const l=OC(),s=t??l.custom.LinkAdapter;return _.createElement(jD,{as:s,ref:i,...r})}),$D={variant:!0,size:!0,edge:!0,startIcon:!0,endIcon:!0,responsive:!0,color:!0},FE=e=>!$D[e],bh={variant:"primary",size:"medium",edge:"rounded",responsive:!1},zE={small:1,medium:1,large:2},YE={small:"small",medium:"small",large:"medium"},jE=(e,t,r)=>{const i=t?zE[e]:0;return[{boxSizing:"border-box",borderWidth:zE[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}]},VE=e=>{const{size:t,variant:r,edge:i,theme:l,color:s,responsive:c}={...bh,...e},{colors:d}=l.custom,p=r==="secondary"||r==="bordered";return hs([{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"},...jE(t,p,l),c&&{[l.breakpoints.down("sm")]:jE(YE[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}}])},$E=tt("button",{shouldForwardProp:FE})(VE),qE=tt(VD,{shouldForwardProp:FE})(VE),GE=tt.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])}}]),XE=e=>{const{children:t,size:r=bh.size}=e;return _.createElement(_.Fragment,null,e.startIcon?_.createElement(GE,{size:r,side:"start"},e.startIcon):null,t,e.endIcon?_.createElement(GE,{size:r,side:"end"},e.endIcon):null)},QE=_.forwardRef(({children:e,...t},r)=>_.createElement($E,{ref:r,type:"button",...t},_.createElement(XE,{...t},e)));QE.displayName="Button";const KE=_.forwardRef(({children:e,Component:t,...r},i)=>_.createElement(qE,{Component:t,ref:i,...r},_.createElement(XE,{...r},e)));KE.displayName="ButtonLink";const qD={variant:"scrollable",allowScrollButtonsMobile:!0,scrollButtons:"auto"},GD=tt(e=>_.createElement(PD,{...qD,...e}))(({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"}}})),WE=({theme:e})=>hs({minWidth:"auto",":focus-visible":{outlineOffset:"-1px"},'&[aria-selected="true"]':{backgroundColor:e.custom.colors.white,borderColor:e.custom.colors.darkGray2}}),XD=tt(QE)(WE),QD=tt(KE)(WE),ZE={variant:"tertiary",size:"small"},JE=_.forwardRef((e,t)=>{const{className:r,...i}=e;return _.createElement(XD,{...ZE,...i,ref:t})});JE.displayName="TabButtonInner";const KD=_.forwardRef((e,t)=>{const{className:r,...i}=e;return _.createElement(QD,{...ZE,...i,ref:t})});KD.displayName="TabLinkInner";const Eh=e=>_.createElement(mD,{...e,component:JE});function WD(e){return typeof e.main=="string"}function ZD(e,t=[]){if(!WD(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function du(e=[]){return([,t])=>t&&ZD(t,e)}function JD(e){return Pn("MuiTypography",e)}Un("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const e8={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},t8=hk(),n8=e=>{const{align:t,gutterBottom:r,noWrap:i,paragraph:l,variant:s,classes:c}=e,d={root:["root",s,e.align!=="inherit"&&`align${xt(t)}`,r&&"gutterBottom",i&&"noWrap",l&&"paragraph"]};return Wn(d,JD,c)},r8=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${xt(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Hn(({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(du()).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${xt(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}}]}})),ey={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Fl=_.forwardRef(function(t,r){const{color:i,...l}=Fn({props:t,name:"MuiTypography"}),s=!e8[i],c=t8({...l,...s&&{color:i}}),{align:d="inherit",className:p,component:m,gutterBottom:b=!1,noWrap:E=!1,paragraph:T=!1,variant:y="body1",variantMapping:O=ey,...x}=c,k={...c,align:d,color:i,className:p,component:m,gutterBottom:b,noWrap:E,paragraph:T,variant:y,variantMapping:O},R=m||(T?"p":O[y]||ey[y])||"span",H=n8(k);return me.jsx(r8,{as:R,ref:r,className:st(H.root,p),...x,ownerState:k,style:{...d!=="inherit"&&{"--Typography-textAlign":d},...x.style}})});function a8(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 ty=e=>e,i8=(()=>{let e=ty;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ty}}})(),u8={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 ny(e,t,r="Mui"){const i=u8[t];return i?`${r}-${i}`:`${i8.generate(e)}-${t}`}function l8(e,t,r="Mui"){const i={};return t.forEach(l=>{i[l]=ny(e,l,r)}),i}function o8(e){return ny("MuiTabPanel",e)}l8("MuiTabPanel",["root","hidden"]);const s8=e=>{const{classes:t,hidden:r}=e;return a8({root:["root",r&&"hidden"]},o8,t)},c8=Ot("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),f8=_.forwardRef(function(t,r){const i=UD({props:t,name:"MuiTabPanel"}),{children:l,className:s,value:c,keepMounted:d=!1,...p}=i,m={...i},b=s8(m),E=ME();if(E===null)throw new TypeError("No TabContext provided");const T=BE(E,c),y=PE(E,c);return me.jsx(c8,{"aria-labelledby":y,className:st(b.root,s),hidden:c!==E.value,id:T,ref:r,role:"tabpanel",ownerState:m,...p,children:(d||c===E.value)&&l})});function lc(e){return parseInt(e,10)||0}const d8={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function h8(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const p8=_.forwardRef(function(t,r){const{onChange:i,maxRows:l,minRows:s=1,style:c,value:d,...p}=t,{current:m}=_.useRef(d!=null),b=_.useRef(null),E=fr(r,b),T=_.useRef(null),y=_.useRef(null),O=_.useCallback(()=>{const R=b.current,D=jr(R).getComputedStyle(R);if(D.width==="0px")return{outerHeightStyle:0,overflowing:!1};const P=y.current;P.style.width=D.width,P.value=R.value||t.placeholder||"x",P.value.slice(-1)===`
|
|
192
|
-
`&&(P.value+=" ");const I=D.boxSizing,M=lc(D.paddingBottom)+lc(D.paddingTop),Y=lc(D.borderBottomWidth)+lc(D.borderTopWidth),ue=P.scrollHeight;P.value="x";const $=P.scrollHeight;let C=ue;s&&(C=Math.max(Number(s)*$,C)),l&&(C=Math.min(Number(l)*$,C)),C=Math.max(C,$);const j=C+(I==="border-box"?M+Y:0),K=Math.abs(C-ue)<=1;return{outerHeightStyle:j,overflowing:K}},[l,s,t.placeholder]),x=_.useCallback(()=>{const R=O();if(h8(R))return;const H=R.outerHeightStyle,D=b.current;T.current!==H&&(T.current=H,D.style.height=`${H}px`),D.style.overflow=R.overflowing?"hidden":""},[O]);fi(()=>{const R=()=>{x()};let H;const D=ws(R),P=b.current,I=jr(P);I.addEventListener("resize",D);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(R),M.observe(P)),()=>{D.clear(),cancelAnimationFrame(H),I.removeEventListener("resize",D),M&&M.disconnect()}},[O,x]),fi(()=>{x()});const k=R=>{m||x(),i&&i(R)};return me.jsxs(_.Fragment,{children:[me.jsx("textarea",{value:d,onChange:k,ref:E,rows:s,style:c,...p}),me.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...d8.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function ry(e){return typeof e=="string"}function m8({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 ay=_.createContext(void 0);function g8(){return _.useContext(ay)}function iy(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function b8(e,t=!1){return e&&(iy(e.value)&&e.value!==""||t&&iy(e.defaultValue)&&e.defaultValue!=="")}function E8(e){return Pn("MuiInputBase",e)}const yh=Un("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var uy;const y8=(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${xt(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},T8=(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]},S8=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:O}=e,x={root:["root",`color${xt(r)}`,i&&"disabled",l&&"error",p&&"fullWidth",c&&"focused",d&&"formControl",T&&T!=="medium"&&`size${xt(T)}`,b&&"multiline",y&&"adornedStart",s&&"adornedEnd",m&&"hiddenLabel",E&&"readOnly"],input:["input",i&&"disabled",O==="search"&&"inputTypeSearch",b&&"inputMultiline",T==="small"&&"inputSizeSmall",m&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",E&&"readOnly"]};return Wn(x,E8,t)},A8=Ot("div",{name:"MuiInputBase",slot:"Root",overridesResolver:y8})(Hn(({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",[`&.${yh.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%"}}]}))),C8=Ot("input",{name:"MuiInputBase",slot:"Input",overridesResolver:T8})(Hn(({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] + .${yh.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},[`&.${yh.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"}}]}})),ly=dk({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),_8=_.forwardRef(function(t,r){const i=Fn({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:O,error:x,fullWidth:k=!1,id:R,inputComponent:H="input",inputProps:D={},inputRef:P,margin:I,maxRows:M,minRows:Y,multiline:ue=!1,name:$,onBlur:C,onChange:j,onClick:K,onFocus:J,onKeyDown:Z,onKeyUp:re,placeholder:X,readOnly:oe,renderSuffix:Q,rows:pe,size:A,slotProps:ee={},slots:Te={},startAdornment:L,type:se="text",value:Oe,...Se}=i,et=D.value!=null?D.value:Oe,{current:Me}=_.useRef(et!=null),Ve=_.useRef(),_e=_.useCallback(Xe=>{},[]),qe=fr(Ve,P,D.ref,_e),[ve,Re]=_.useState(!1),Ae=g8(),Be=m8({props:i,muiFormControl:Ae,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Be.focused=Ae?Ae.focused:ve,_.useEffect(()=>{!Ae&&T&&ve&&(Re(!1),C&&C())},[Ae,T,ve,C]);const it=Ae&&Ae.onFilled,Ye=Ae&&Ae.onEmpty,Ue=_.useCallback(Xe=>{b8(Xe)?it&&it():Ye&&Ye()},[it,Ye]);fi(()=>{Me&&Ue({value:et})},[et,Ue,Me]);const ct=Xe=>{J&&J(Xe),D.onFocus&&D.onFocus(Xe),Ae&&Ae.onFocus?Ae.onFocus(Xe):Re(!0)},At=Xe=>{C&&C(Xe),D.onBlur&&D.onBlur(Xe),Ae&&Ae.onBlur?Ae.onBlur(Xe):Re(!1)},rn=(Xe,...xn)=>{if(!Me){const an=Xe.target||Ve.current;if(an==null)throw new Error(ka(1));Ue({value:an.value})}D.onChange&&D.onChange(Xe,...xn),j&&j(Xe,...xn)};_.useEffect(()=>{Ue(Ve.current)},[]);const _n=Xe=>{Ve.current&&Xe.currentTarget===Xe.target&&Ve.current.focus(),K&&K(Xe)};let we=H,Ge=D;ue&&we==="input"&&(pe?Ge={type:void 0,minRows:pe,maxRows:pe,...Ge}:Ge={type:void 0,maxRows:M,minRows:Y,...Ge},we=p8);const $t=Xe=>{Ue(Xe.animationName==="mui-auto-fill-cancel"?Ve.current:{value:"x"})};_.useEffect(()=>{Ae&&Ae.setAdornedStart(!!L)},[Ae,L]);const te={...i,color:Be.color||"primary",disabled:Be.disabled,endAdornment:O,error:Be.error,focused:Be.focused,formControl:Ae,fullWidth:k,hiddenLabel:Be.hiddenLabel,multiline:ue,size:Be.size,startAdornment:L,type:se},fe=S8(te),Ce=Te.root||m.Root||A8,He=ee.root||b.root||{},nt=Te.input||m.Input||C8;return Ge={...Ge,...ee.input??b.input},me.jsxs(_.Fragment,{children:[!y&&typeof ly=="function"&&(uy||(uy=me.jsx(ly,{}))),me.jsxs(Ce,{...He,ref:r,onClick:_n,...Se,...!ry(Ce)&&{ownerState:{...te,...He.ownerState}},className:st(fe.root,He.className,d,oe&&"MuiInputBase-readOnly"),children:[L,me.jsx(ay.Provider,{value:null,children:me.jsx(nt,{"aria-invalid":Be.error,"aria-describedby":l,autoComplete:s,autoFocus:c,defaultValue:E,disabled:Be.disabled,id:R,onAnimationStart:$t,name:$,placeholder:X,readOnly:oe,required:Be.required,rows:pe,value:et,onKeyDown:Z,onKeyUp:re,type:se,...Ge,...!ry(nt)&&{as:we,ownerState:{...te,...Ge.ownerState}},ref:qe,className:st(fe.input,Ge.className,oe&&"MuiInputBase-readOnly"),onBlur:At,onChange:rn,onFocus:ct})}),O,Q?Q({...Be,startAdornment:L}):null]})]})});var Th={exports:{}};/*!
|
|
191
|
+
`,o9=x.forwardRef(function(t,r){const i=Fn({props:t,name:"MuiTouchRipple"}),{center:l=!1,classes:s={},className:c,...d}=i,[p,m]=x.useState([]),b=x.useRef(0),E=x.useRef(null);x.useEffect(()=>{E.current&&(E.current(),E.current=null)},[p]);const S=x.useRef(!1),y=I8(),O=x.useRef(null),_=x.useRef(null),L=x.useCallback(P=>{const{pulsate:I,rippleX:M,rippleY:Y,rippleSize:ae,cb:j}=P;m(A=>[...A,me.jsx(l9,{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:p0,pulsate:I,rippleX:M,rippleY:Y,rippleSize:ae},b.current)]),b.current+=1,E.current=j},[s]),R=x.useCallback((P={},I={},M=()=>{})=>{const{pulsate:Y=!1,center:ae=l||I.pulsate,fakeElement:j=!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 A=j?null:_.current,V=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let K,Q,Z;if(ae||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)K=Math.round(V.width/2),Q=Math.round(V.height/2);else{const{clientX:re,clientY:X}=P.touches&&P.touches.length>0?P.touches[0]:P;K=Math.round(re-V.left),Q=Math.round(X-V.top)}if(ae)Z=Math.sqrt((2*V.width**2+V.height**2)/3),Z%2===0&&(Z+=1);else{const re=Math.max(Math.abs((A?A.clientWidth:0)-K),K)*2+2,X=Math.max(Math.abs((A?A.clientHeight:0)-Q),Q)*2+2;Z=Math.sqrt(re**2+X**2)}P!=null&&P.touches?O.current===null&&(O.current=()=>{L({pulsate:Y,rippleX:K,rippleY:Q,rippleSize:Z,cb:M})},y.start(n9,()=>{O.current&&(O.current(),O.current=null)})):L({pulsate:Y,rippleX:K,rippleY:Q,rippleSize:Z,cb:M})},[l,L,y]),H=x.useCallback(()=>{R({},{pulsate:!0})},[R]),k=x.useCallback((P,I)=>{if(y.clear(),(P==null?void 0:P.type)==="touchend"&&O.current){O.current(),O.current=null,y.start(0,()=>{k(P,I)});return}O.current=null,m(M=>M.length>0?M.slice(1):M),E.current=I},[y]);return x.useImperativeHandle(r,()=>({pulsate:H,start:R,stop:k}),[H,R,k]),me.jsx(u9,{className:st(pr.root,s.root,c),ref:_,...d,children:me.jsx(h0,{component:null,exit:!0,children:p})})});function s9(e){return Pn("MuiButtonBase",e)}const c9=Un("MuiButtonBase",["root","disabled","focusVisible"]),f9=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:i,classes:l}=e,c=Wn({root:["root",t&&"disabled",r&&"focusVisible"]},s9,l);return r&&i&&(c.root+=` ${i}`),c},d9=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"},[`&.${c9.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),m0=x.forwardRef(function(t,r){const i=Fn({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:O="a",onBlur:_,onClick:L,onContextMenu:R,onDragLeave:H,onFocus:k,onFocusVisible:P,onKeyDown:I,onKeyUp:M,onMouseDown:Y,onMouseLeave:ae,onMouseUp:j,onTouchEnd:A,onTouchMove:V,onTouchStart:K,tabIndex:Q=0,TouchRippleProps:Z,touchRippleRef:re,type:X,...se}=i,ne=x.useRef(null),be=JN(),C=fr(be.ref,re),[J,oe]=x.useState(!1);m&&J&&oe(!1),x.useImperativeHandle(l,()=>({focusVisible:()=>{oe(!0),ne.current.focus()}}),[]);const D=be.shouldMount&&!b&&!m;x.useEffect(()=>{J&&S&&!b&&be.pulsate()},[b,S,J,be]);function ce(we,Xe,$t=E){return ra(ee=>(Xe&&Xe(ee),$t||be[we](ee),!0))}const Oe=ce("start",Y),Se=ce("stop",R),tt=ce("stop",H),Me=ce("stop",j),$e=ce("stop",we=>{J&&we.preventDefault(),ae&&ae(we)}),xe=ce("start",K),Ge=ce("stop",A),ve=ce("stop",V),Re=ce("stop",we=>{Pb(we.target)||oe(!1),_&&_(we)},!1),Ce=ra(we=>{ne.current||(ne.current=we.currentTarget),Pb(we.target)&&(oe(!0),P&&P(we)),k&&k(we)}),Be=()=>{const we=ne.current;return p&&p!=="button"&&!(we.tagName==="A"&&we.href)},it=ra(we=>{S&&!we.repeat&&J&&we.key===" "&&be.stop(we,()=>{be.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&&be.stop(we,()=>{be.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=O);const ct={};Ue==="button"?(ct.type=X===void 0?"button":X,ct.disabled=m):(!se.href&&!se.to&&(ct.role="button"),m&&(ct["aria-disabled"]=m));const St=fr(r,ne),rn={...i,centerRipple:s,component:p,disabled:m,disableRipple:b,disableTouchRipple:E,focusRipple:S,tabIndex:Q,focusVisible:J},_n=f9(rn);return me.jsxs(d9,{as:Ue,className:st(_n.root,d),ownerState:rn,onBlur:Re,onClick:L,onContextMenu:Se,onFocus:Ce,onKeyDown:it,onKeyUp:je,onMouseDown:Oe,onMouseLeave:$e,onMouseUp:Me,onDragLeave:tt,onTouchEnd:Ge,onTouchMove:ve,onTouchStart:xe,ref:St,tabIndex:m?-1:Q,type:X,...ct,...se,children:[c,D?me.jsx(o9,{ref:C,center:s,...Z}):null]})});function h9(e){return Pn("MuiTab",e)}const mr=Un("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),p9=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 Wn(m,h9,t)},m9=Ot(m0,{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}]}})(Hn(({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)}}]}))),g9=x.forwardRef(function(t,r){const i=Fn({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:O,selected:_,selectionFollowsFocus:L,textColor:R="inherit",value:H,wrapped:k=!1,...P}=i,I={...i,disabled:s,disableFocusRipple:c,selected:_,icon:!!p,iconPosition:m,label:!!E,fullWidth:d,textColor:R,wrapped:k},M=p9(I),Y=p&&E&&x.isValidElement(p)?x.cloneElement(p,{className:st(M.icon,p.props.className)}):p,ae=A=>{!_&&S&&S(A,H),y&&y(A)},j=A=>{L&&!_&&S&&S(A,H),O&&O(A)};return me.jsxs(m9,{focusRipple:!c,className:st(M.root,l),ref:r,role:"tab","aria-selected":_,disabled:s,onClick:ae,onFocus:j,ownerState:I,tabIndex:_?0:-1,...P,children:[m==="top"||m==="start"?me.jsxs(x.Fragment,{children:[Y,E]}):me.jsxs(x.Fragment,{children:[E,Y]}),b]})});function b9(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function E9(e,t,r,i={},l=()=>{}){const{ease:s=b9,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 y9={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function T9(e){const{onChange:t,...r}=e,i=x.useRef(),l=x.useRef(null),s=()=>{i.current=l.current.offsetHeight-l.current.clientHeight};return fi(()=>{const c=ws(()=>{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]),x.useEffect(()=>{s(),t(i.current)},[t]),me.jsx("div",{style:y9,ref:l,...r})}const S9=gi(me.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),C9=gi(me.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function A9(e){return Pn("MuiTabScrollButton",e)}const x9=Un("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),_9=e=>{const{classes:t,orientation:r,disabled:i}=e;return Wn({root:["root",r,i&&"disabled"]},A9,t)},v9=Ot(m0,{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,[`&.${x9.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),R9=x.forwardRef(function(t,r){const i=Fn({props:t,name:"MuiTabScrollButton"}),{className:l,slots:s={},slotProps:c={},direction:d,orientation:p,disabled:m,...b}=i,E=zd(),S={isRtl:E,...i},y=_9(S),O=s.StartScrollButtonIcon??S9,_=s.EndScrollButtonIcon??C9,L=Bs({elementType:O,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S}),R=Bs({elementType:_,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S});return me.jsx(v9,{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"?me.jsx(O,{...L}):me.jsx(_,{...R})})});function O9(e){return Pn("MuiTabs",e)}const g0=Un("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,ic=(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}}},N9=e=>{const{vertical:t,fixed:r,hideScrollbar:i,scrollableX:l,scrollableY:s,centered:c,scrollButtonsHideMobile:d,classes:p}=e;return Wn({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"]},O9,p)},k9=Ot("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${g0.scrollButtons}`]:t.scrollButtons},{[`& .${g0.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Hn(({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:{[`& .${g0.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),D9=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"}}]}),L9=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"}}]}),I9=Ot("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Hn(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),w9=Ot(T9)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),BE={},M9=x.forwardRef(function(t,r){const i=Fn({props:t,name:"MuiTabs"}),l=Ul(),s=zd(),{"aria-label":c,"aria-labelledby":d,action:p,centered:m=!1,children:b,className:E,component:S="div",allowScrollButtonsMobile:y=!1,indicatorColor:O="primary",onChange:_,orientation:L="horizontal",ScrollButtonComponent:R=R9,scrollButtons:H="auto",selectionFollowsFocus:k,slots:P={},slotProps:I={},TabIndicatorProps:M={},TabScrollButtonProps:Y={},textColor:ae="primary",value:j,variant:A="standard",visibleScrollbar:V=!1,...K}=i,Q=A==="scrollable",Z=L==="vertical",re=Z?"scrollTop":"scrollLeft",X=Z?"top":"left",se=Z?"bottom":"right",ne=Z?"clientHeight":"clientWidth",be=Z?"height":"width",C={...i,component:S,allowScrollButtonsMobile:y,indicatorColor:O,orientation:L,vertical:Z,scrollButtons:H,textColor:ae,variant:A,visibleScrollbar:V,fixed:!Q,hideScrollbar:Q&&!V,scrollableX:Q&&!Z,scrollableY:Q&&Z,centered:m&&!Q,scrollButtonsHideMobile:!y},J=N9(C),oe=Bs({elementType:P.StartScrollButtonIcon,externalSlotProps:I.startScrollButtonIcon,ownerState:C}),D=Bs({elementType:P.EndScrollButtonIcon,externalSlotProps:I.endScrollButtonIcon,ownerState:C}),[ce,Oe]=x.useState(!1),[Se,tt]=x.useState(BE),[Me,$e]=x.useState(!1),[xe,Ge]=x.useState(!1),[ve,Re]=x.useState(!1),[Ce,Be]=x.useState({overflow:"hidden",scrollbarWidth:0}),it=new Map,je=x.useRef(null),Ue=x.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&&j!==!1){const Ke=Ue.current.children;if(Ke.length>0){const Ht=Ke[it.get(j)];ze=Ht?Ht.getBoundingClientRect():null}}return{tabsMeta:_e,tabMeta:ze}},St=ra(()=>{const{tabsMeta:ke,tabMeta:_e}=ct();let ze=0,Ke;Z?(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,[be]:_e?_e[be]:0};if(typeof Se[Ke]!="number"||typeof Se[be]!="number")tt(Ht);else{const gr=Math.abs(Se[Ke]-Ht[Ke]),br=Math.abs(Se[be]-Ht[be]);(gr>=1||br>=1)&&tt(Ht)}}),rn=(ke,{animation:_e=!0}={})=>{_e?E9(re,je.current,ke,{duration:l.transitions.duration.standard}):je.current[re]=ke},_n=ke=>{let _e=je.current[re];Z?_e+=ke:_e+=ke*(s?-1:1),rn(_e)},we=()=>{const ke=je.current[ne];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[ne]>ke){Ke===0&&(_e=ke);break}_e+=Ht[ne]}return _e},Xe=()=>{_n(-1*we())},$t=()=>{_n(we())},ee=x.useCallback(ke=>{Be({overflow:null,scrollbarWidth:ke})},[]),de=()=>{const ke={};ke.scrollbarSizeListener=Q?me.jsx(w9,{onChange:ee,className:st(J.scrollableX,J.hideScrollbar)}):null;const ze=Q&&(H==="auto"&&(Me||xe)||H===!0);return ke.scrollButtonStart=ze?me.jsx(R,{slots:{StartScrollButtonIcon:P.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:oe},orientation:L,direction:s?"right":"left",onClick:Xe,disabled:!Me,...Y,className:st(J.scrollButtons,Y.className)}):null,ke.scrollButtonEnd=ze?me.jsx(R,{slots:{EndScrollButtonIcon:P.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:D},orientation:L,direction:s?"left":"right",onClick:$t,disabled:!xe,...Y,className:st(J.scrollButtons,Y.className)}):null,ke},Ae=ra(ke=>{const{tabsMeta:_e,tabMeta:ze}=ct();if(!(!ze||!_e)){if(ze[X]<_e[X]){const Ke=_e[re]+(ze[X]-_e[X]);rn(Ke,{animation:ke})}else if(ze[se]>_e[se]){const Ke=_e[re]+(ze[se]-_e[se]);rn(Ke,{animation:ke})}}}),He=ra(()=>{Q&&H!==!1&&Re(!ve)});x.useEffect(()=>{const ke=ws(()=>{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]),x.useEffect(()=>{const ke=Array.from(Ue.current.children),_e=ke.length;if(typeof IntersectionObserver<"u"&&_e>0&&Q&&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()}}},[Q,H,ve,b==null?void 0:b.length]),x.useEffect(()=>{Oe(!0)},[]),x.useEffect(()=>{St()}),x.useEffect(()=>{Ae(BE!==Se)},[Ae,Se]),x.useImperativeHandle(p,()=>({updateIndicator:St,updateScrollButtons:He}),[St,He]);const nt=me.jsx(I9,{...M,className:st(J.indicator,M.className),ownerState:C,style:{...Se,...M.style}});let Qe=0;const vn=x.Children.map(b,ke=>{if(!x.isValidElement(ke))return null;const _e=ke.props.value===void 0?Qe:ke.props.value;it.set(_e,Qe);const ze=_e===j;return Qe+=1,x.cloneElement(ke,{fullWidth:A==="fullWidth",indicator:ze&&!ce&&nt,selected:ze,selectionFollowsFocus:k,onChange:_,textColor:ae,value:_e,...Qe===1&&j===!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(),ic(_e,ze,ME);break;case gr:ke.preventDefault(),ic(_e,ze,wE);break;case"Home":ke.preventDefault(),ic(_e,null,wE);break;case"End":ke.preventDefault(),ic(_e,null,ME);break}},Ft=de();return me.jsxs(k9,{className:st(J.root,E),ownerState:C,ref:r,as:S,...K,children:[Ft.scrollButtonStart,Ft.scrollbarSizeListener,me.jsxs(D9,{className:J.scroller,ownerState:C,style:{overflow:Ce.overflow,[Z?`margin${s?"Left":"Right"}`:"marginBottom"]:V?void 0:-Ce.scrollbarWidth},ref:je,children:[me.jsx(L9,{"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}),ce&&nt]}),Ft.scrollButtonEnd]})}),PE=x.createContext(null);function B9(){const[e,t]=x.useState(null);return x.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function P9(e){const{children:t,value:r}=e,i=B9(),l=x.useMemo(()=>({idPrefix:i,value:r}),[i,r]);return me.jsx(PE.Provider,{value:l,children:t})}function UE(){return x.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 U9=x.forwardRef(function(t,r){const{children:i,...l}=t,s=UE();if(s===null)throw new TypeError("No TabContext provided");const c=x.Children.map(i,d=>x.isValidElement(d)?x.cloneElement(d,{"aria-controls":HE(s,d.props.value),id:FE(s,d.props.value)}):null);return me.jsx(M9,{...l,ref:r,value:s.value,children:c})});function H9({props:e,name:t}){return dO({props:e,name:t,defaultTheme:Zs,themeId:$r})}function zE({theme:e,...t}){const r=$r in e?e[$r]:void 0;return me.jsx(oE,{...t,themeId:r?$r:void 0,theme:r||e})}const uc={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:F9}=NO({themeId:$r,theme:()=>Ws({cssVariables:!0}),colorSchemeStorageKey:uc.colorSchemeStorageKey,modeStorageKey:uc.modeStorageKey,defaultColorScheme:{light:uc.defaultLightColorScheme,dark:uc.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}}),z9=F9;function Y9({theme:e,...t}){return typeof e=="function"?me.jsx(zE,{theme:e,...t}):"colorSchemes"in($r in e?e[$r]:e)?me.jsx(z9,{theme:e,...t}):me.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)}},j9={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:n7}=Ws({typography:YE,custom:{}}),V9=Fe.a({color:"inherit",textDecoration:"none"}),$9=x.forwardRef(function({Component:t,...r},i){const l=DC(),s=t??l.custom.LinkAdapter;return x.createElement(V9,{as:s,ref:i,...r})}),q9={variant:!0,size:!0,edge:!0,startIcon:!0,endIcon:!0,responsive:!0,color:!0},jE=e=>!q9[e],b0={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}={...b0,...e},{colors:d}=l.custom,p=r==="secondary"||r==="bordered";return hs([{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($9,{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=b0.size}=e;return x.createElement(x.Fragment,null,e.startIcon?x.createElement(KE,{size:r,side:"start"},e.startIcon):null,t,e.endIcon?x.createElement(KE,{size:r,side:"end"},e.endIcon):null)},ZE=x.forwardRef(({children:e,...t},r)=>x.createElement(XE,{ref:r,type:"button",...t},x.createElement(WE,{...t},e)));ZE.displayName="Button";const JE=x.forwardRef(({children:e,Component:t,...r},i)=>x.createElement(QE,{Component:t,ref:i,...r},x.createElement(WE,{...r},e)));JE.displayName="ButtonLink";const G9={variant:"scrollable",allowScrollButtonsMobile:!0,scrollButtons:"auto"},X9=Fe(e=>x.createElement(U9,{...G9,...e}))(({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})=>hs({minWidth:"auto",":focus-visible":{outlineOffset:"-1px"},'&[aria-selected="true"]':{backgroundColor:e.custom.colors.white,borderColor:e.custom.colors.darkGray2}}),Q9=Fe(ZE)(e2),K9=Fe(JE)(e2),t2={variant:"tertiary",size:"small"},n2=x.forwardRef((e,t)=>{const{className:r,...i}=e;return x.createElement(Q9,{...t2,...i,ref:t})});n2.displayName="TabButtonInner";const W9=x.forwardRef((e,t)=>{const{className:r,...i}=e;return x.createElement(K9,{...t2,...i,ref:t})});W9.displayName="TabLinkInner";const E0=e=>x.createElement(g9,{...e,component:n2});function Z9(e){return typeof e.main=="string"}function J9(e,t=[]){if(!Z9(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&&J9(t,e)}function ek(e){return Pn("MuiTypography",e)}Un("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const tk={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},nk=pN(),rk=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 Wn(d,ek,c)},ak=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]}})(Hn(({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=x.forwardRef(function(t,r){const{color:i,...l}=Fn({props:t,name:"MuiTypography"}),s=!tk[i],c=nk({...l,...s&&{color:i}}),{align:d="inherit",className:p,component:m,gutterBottom:b=!1,noWrap:E=!1,paragraph:S=!1,variant:y="body1",variantMapping:O=r2,..._}=c,L={...c,align:d,color:i,className:p,component:m,gutterBottom:b,noWrap:E,paragraph:S,variant:y,variantMapping:O},R=m||(S?"p":O[y]||r2[y])||"span",H=rk(L);return me.jsx(ak,{as:R,ref:r,className:st(H.root,p),..._,ownerState:L,style:{...d!=="inherit"&&{"--Typography-textAlign":d},..._.style}})});function ik(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,uk=(()=>{let e=a2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=a2}}})(),lk={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=lk[t];return i?`${r}-${i}`:`${uk.generate(e)}-${t}`}function ok(e,t,r="Mui"){const i={};return t.forEach(l=>{i[l]=i2(e,l,r)}),i}function sk(e){return i2("MuiTabPanel",e)}ok("MuiTabPanel",["root","hidden"]);const ck=e=>{const{classes:t,hidden:r}=e;return ik({root:["root",r&&"hidden"]},sk,t)},fk=Ot("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),dk=x.forwardRef(function(t,r){const i=H9({props:t,name:"MuiTabPanel"}),{children:l,className:s,value:c,keepMounted:d=!1,...p}=i,m={...i},b=ck(m),E=UE();if(E===null)throw new TypeError("No TabContext provided");const S=HE(E,c),y=FE(E,c);return me.jsx(fk,{"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 y0={exports:{}};/*!
|
|
193
192
|
Copyright (c) 2018 Jed Watson.
|
|
194
193
|
Licensed under the MIT License (MIT), see
|
|
195
194
|
http://jedwatson.github.io/classnames
|
|
196
|
-
*/var
|
|
197
|
-
Error message: ${py(t)}`,cause:t}),this[Ty]=!0,this.text=e}static isInstance(e){return pu.hasMarker(e,yy)}};Ty=H8;var Ay="AI_TypeValidationError",Cy=`vercel.ai.error.${Ay}`,F8=Symbol.for(Cy),_y,z8=class jp extends pu{constructor({value:t,cause:r}){super({name:Ay,message:`Type validation failed: Value: ${JSON.stringify(t)}.
|
|
198
|
-
Error message: ${py(r)}`,cause:r}),this[_y]=!0,this.value=t}static isInstance(t){return pu.hasMarker(t,Cy)}static wrap({value:t,cause:r}){return jp.isInstance(r)&&r.value===t?r:new jp({value:t,cause:r})}};_y=F8;var xy=z8;let Y8=(e,t=21)=>(r=t)=>{let i="",l=r;for(;l--;)i+=e[Math.random()*e.length|0];return i};var bi={exports:{}},vy;function j8(){if(vy)return bi.exports;vy=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 O in y){const x=y[O];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 bi.exports=s,bi.exports.default=s,bi.exports.parse=s,bi.exports.safeParse=c,bi.exports.scan=l,bi.exports}var V8=j8();const $8=ir(V8);var q8=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:i="-"}={})=>{const l=Y8(r,t);if(e==null)return l;if(r.includes(i))throw new U8({argument:"separator",message:`The separator "${i}" must not be part of the alphabet "${r}".`});return s=>`${e}${i}${l(s)}`},Ry=q8(),Sh=Symbol.for("vercel.ai.validator");function G8(e){return{[Sh]:!0,validate:e}}function X8(e){return typeof e=="object"&&e!==null&&Sh in e&&e[Sh]===!0&&"validate"in e}function Q8(e){return X8(e)?e:K8(e)}function K8(e){return G8(t=>{const r=e.safeParse(t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}})}function W8({value:e,schema:t}){const r=Q8(t);try{if(r.validate==null)return{success:!0,value:e};const i=r.validate(e);return i.success?i:{success:!1,error:xy.wrap({value:e,cause:i.error})}}catch(i){return{success:!1,error:xy.wrap({value:e,cause:i})}}}function Oy({text:e,schema:t}){try{const r=$8.parse(e);return t==null?{success:!0,value:r}:W8({value:r,schema:t})}catch(r){return{success:!1,error:Sy.isInstance(r)?r:new Sy({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}}},Z8=[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,Z8.map(e=>e.code);function J8(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 eI(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=Oy({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=Oy({text:J8(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}}},tI=[Gl,Xl,Ql,Kl,Wl,Zl,Jl,eo,to,no],nI={[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 rI=tI.map(e=>e.code),aI=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(!rI.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 nI[i].parse(s)},iI=10;function uI(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 lI({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(),T=new TextDecoder,y=[];let O=0;for(;;){const{value:x}=await E.read();if(x&&(y.push(x),O+=x.length,x[x.length-1]!==iI))continue;if(y.length===0)break;const k=uI(y,O);O=0;const R=T.decode(k,{stream:!0}).split(`
|
|
199
|
-
`).filter(H=>H!=="").map(aI);for(const{type:H,value:D}of R)switch(H){case"text":await(t==null?void 0:t(D));break;case"data":await(r==null?void 0:r(D));break;case"error":await(i==null?void 0:i(D));break;case"message_annotations":await(p==null?void 0:p(D));break;case"tool_call_streaming_start":await(l==null?void 0:l(D));break;case"tool_call_delta":await(s==null?void 0:s(D));break;case"tool_call":await(c==null?void 0:c(D));break;case"tool_result":await(d==null?void 0:d(D));break;case"finish_message":await(m==null?void 0:m(D));break;case"finish_step":await(b==null?void 0:b(D));break;default:{const P=H;throw new Error(`Unknown stream part type: ${P}`)}}}}function oI({promptTokens:e,completionTokens:t}){return{promptTokens:e,completionTokens:t,totalTokens:e+t}}async function sI({stream:e,update:t,onToolCall:r,onFinish:i,generateId:l=Ry,getCurrentDate:s=()=>new Date}){const c=s();let d,p=!0;const m=[],b=[];let E;const T={};let y={completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},O="unknown";function x(){const R=[...b];if(d==null){t(m,R);return}E!=null&&E.length&&(d.annotations=E);const H={...JSON.parse(JSON.stringify(d)),revisionId:l(),createdAt:d.createdAt};t([...m,H],R)}function k(){return(p||d==null)&&(d!=null&&m.push(d),p=!1,d={id:l(),role:"assistant",content:"",createdAt:c}),d}await lI({stream:e,onTextPart(R){const H=k();d={...H,content:H.content+R},x()},onToolCallStreamingStartPart(R){const H=k();H.toolInvocations==null&&(H.toolInvocations=[]),T[R.toolCallId]={text:"",toolName:R.toolName,index:H.toolInvocations.length},H.toolInvocations.push({state:"partial-call",toolCallId:R.toolCallId,toolName:R.toolName,args:void 0}),x()},onToolCallDeltaPart(R){const H=k(),D=T[R.toolCallId];D.text+=R.argsTextDelta;const{value:P}=eI(D.text);H.toolInvocations[D.index]={state:"partial-call",toolCallId:R.toolCallId,toolName:D.toolName,args:P},x()},async onToolCallPart(R){const H=k();if(T[R.toolCallId]!=null?H.toolInvocations[T[R.toolCallId].index]={state:"call",...R}:(H.toolInvocations==null&&(H.toolInvocations=[]),H.toolInvocations.push({state:"call",...R})),r){const D=await r({toolCall:R});D!=null&&(H.toolInvocations[H.toolInvocations.length-1]={state:"result",...R,result:D})}x()},onToolResultPart(R){const D=k().toolInvocations;if(D==null)throw new Error("tool_result must be preceded by a tool_call");const P=D.findIndex(I=>I.toolCallId===R.toolCallId);if(P===-1)throw new Error("tool_result must be preceded by a tool_call with the same toolCallId");D[P]={...D[P],state:"result",...R},x()},onDataPart(R){b.push(...R),x()},onMessageAnnotationsPart(R){E==null?E=[...R]:E.push(...R),x()},onFinishStepPart(R){p=!R.isContinued},onFinishMessagePart(R){O=R.finishReason,R.usage!=null&&(y=oI(R.usage))},onErrorPart(R){throw new Error(R)}}),i==null||i({message:d,finishReason:O,usage:y})}async function cI({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)}}var fI=()=>fetch;async function dI({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=fI()}){var y,O;const x=await T(e,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",...l},signal:(y=s==null?void 0:s())==null?void 0:y.signal,credentials:i}).catch(k=>{throw c(),k});if(d)try{await d(x)}catch(k){throw k}if(!x.ok)throw c(),new Error((O=await x.text())!=null?O:"Failed to fetch the chat response.");if(!x.body)throw new Error("The response body is empty.");switch(r){case"text":{const k={id:E(),createdAt:new Date,role:"assistant",content:""};await cI({stream:x.body,onTextPart:R=>{k.content+=R,p([{...k}],[])}}),m==null||m(k,{usage:{completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},finishReason:"unknown"});return}case"data":{await sI({stream:x.body,update:p,onToolCall:b,onFinish({message:k,finishReason:R,usage:H}){m&&k!=null&&m(k,{usage:H,finishReason:R})},generateId:E});return}default:{const k=r;throw new Error(`Unknown stream protocol: ${k}`)}}}async function Ny(e){if(!e)return[];if(e instanceof 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")}var Ah={exports:{}},Ch={};/**
|
|
195
|
+
*/var u2;function hk(){return u2||(u2=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})()}(y0)),y0.exports}var pk=hk();const Fl=ir(pk);function lc(e){return parseInt(e,10)||0}const mk={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function gk(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const bk=x.forwardRef(function(t,r){const{onChange:i,maxRows:l,minRows:s=1,style:c,value:d,...p}=t,{current:m}=x.useRef(d!=null),b=x.useRef(null),E=fr(r,b),S=x.useRef(null),y=x.useRef(null),O=x.useCallback(()=>{const R=b.current,k=jr(R).getComputedStyle(R);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};const P=y.current;P.style.width=k.width,P.value=R.value||t.placeholder||"x",P.value.slice(-1)===`
|
|
196
|
+
`&&(P.value+=" ");const I=k.boxSizing,M=lc(k.paddingBottom)+lc(k.paddingTop),Y=lc(k.borderBottomWidth)+lc(k.borderTopWidth),ae=P.scrollHeight;P.value="x";const j=P.scrollHeight;let A=ae;s&&(A=Math.max(Number(s)*j,A)),l&&(A=Math.min(Number(l)*j,A)),A=Math.max(A,j);const V=A+(I==="border-box"?M+Y:0),K=Math.abs(A-ae)<=1;return{outerHeightStyle:V,overflowing:K}},[l,s,t.placeholder]),_=x.useCallback(()=>{const R=O();if(gk(R))return;const H=R.outerHeightStyle,k=b.current;S.current!==H&&(S.current=H,k.style.height=`${H}px`),k.style.overflow=R.overflowing?"hidden":""},[O]);fi(()=>{const R=()=>{_()};let H;const k=ws(R),P=b.current,I=jr(P);I.addEventListener("resize",k);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(R),M.observe(P)),()=>{k.clear(),cancelAnimationFrame(H),I.removeEventListener("resize",k),M&&M.disconnect()}},[O,_]),fi(()=>{_()});const L=R=>{m||_(),i&&i(R)};return me.jsxs(x.Fragment,{children:[me.jsx("textarea",{value:d,onChange:L,ref:E,rows:s,style:c,...p}),me.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...mk.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function l2(e){return typeof e=="string"}function Ek({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=x.createContext(void 0);function yk(){return x.useContext(o2)}function s2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Tk(e,t=!1){return e&&(s2(e.value)&&e.value!==""||t&&s2(e.defaultValue)&&e.defaultValue!=="")}function Sk(e){return Pn("MuiInputBase",e)}const T0=Un("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var c2;const Ck=(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]},Ak=(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]},xk=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:O}=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",O==="search"&&"inputTypeSearch",b&&"inputMultiline",S==="small"&&"inputSizeSmall",m&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",E&&"readOnly"]};return Wn(_,Sk,t)},_k=Ot("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ck})(Hn(({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",[`&.${T0.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%"}}]}))),vk=Ot("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ak})(Hn(({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] + .${T0.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},[`&.${T0.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=hN({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Rk=x.forwardRef(function(t,r){const i=Fn({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:O,error:_,fullWidth:L=!1,id:R,inputComponent:H="input",inputProps:k={},inputRef:P,margin:I,maxRows:M,minRows:Y,multiline:ae=!1,name:j,onBlur:A,onChange:V,onClick:K,onFocus:Q,onKeyDown:Z,onKeyUp:re,placeholder:X,readOnly:se,renderSuffix:ne,rows:be,size:C,slotProps:J={},slots:oe={},startAdornment:D,type:ce="text",value:Oe,...Se}=i,tt=k.value!=null?k.value:Oe,{current:Me}=x.useRef(tt!=null),$e=x.useRef(),xe=x.useCallback(Qe=>{},[]),Ge=fr($e,P,k.ref,xe),[ve,Re]=x.useState(!1),Ce=yk(),Be=Ek({props:i,muiFormControl:Ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Be.focused=Ce?Ce.focused:ve,x.useEffect(()=>{!Ce&&S&&ve&&(Re(!1),A&&A())},[Ce,S,ve,A]);const it=Ce&&Ce.onFilled,je=Ce&&Ce.onEmpty,Ue=x.useCallback(Qe=>{Tk(Qe)?it&&it():je&&je()},[it,je]);fi(()=>{Me&&Ue({value:tt})},[tt,Ue,Me]);const ct=Qe=>{Q&&Q(Qe),k.onFocus&&k.onFocus(Qe),Ce&&Ce.onFocus?Ce.onFocus(Qe):Re(!0)},St=Qe=>{A&&A(Qe),k.onBlur&&k.onBlur(Qe),Ce&&Ce.onBlur?Ce.onBlur(Qe):Re(!1)},rn=(Qe,...vn)=>{if(!Me){const an=Qe.target||$e.current;if(an==null)throw new Error(ka(1));Ue({value:an.value})}k.onChange&&k.onChange(Qe,...vn),V&&V(Qe,...vn)};x.useEffect(()=>{Ue($e.current)},[]);const _n=Qe=>{$e.current&&Qe.currentTarget===Qe.target&&$e.current.focus(),K&&K(Qe)};let we=H,Xe=k;ae&&we==="input"&&(be?Xe={type:void 0,minRows:be,maxRows:be,...Xe}:Xe={type:void 0,maxRows:M,minRows:Y,...Xe},we=bk);const $t=Qe=>{Ue(Qe.animationName==="mui-auto-fill-cancel"?$e.current:{value:"x"})};x.useEffect(()=>{Ce&&Ce.setAdornedStart(!!D)},[Ce,D]);const ee={...i,color:Be.color||"primary",disabled:Be.disabled,endAdornment:O,error:Be.error,focused:Be.focused,formControl:Ce,fullWidth:L,hiddenLabel:Be.hiddenLabel,multiline:ae,size:Be.size,startAdornment:D,type:ce},de=xk(ee),Ae=oe.root||m.Root||_k,He=J.root||b.root||{},nt=oe.input||m.Input||vk;return Xe={...Xe,...J.input??b.input},me.jsxs(x.Fragment,{children:[!y&&typeof f2=="function"&&(c2||(c2=me.jsx(f2,{}))),me.jsxs(Ae,{...He,ref:r,onClick:_n,...Se,...!l2(Ae)&&{ownerState:{...ee,...He.ownerState}},className:st(de.root,He.className,d,se&&"MuiInputBase-readOnly"),children:[D,me.jsx(o2.Provider,{value:null,children:me.jsx(nt,{"aria-invalid":Be.error,"aria-describedby":l,autoComplete:s,autoFocus:c,defaultValue:E,disabled:Be.disabled,id:R,onAnimationStart:$t,name:j,placeholder:X,readOnly:se,required:Be.required,rows:be,value:tt,onKeyDown:Z,onKeyUp:re,type:ce,...Xe,...!l2(nt)&&{as:we,ownerState:{...ee,...Xe.ownerState}},ref:Ge,className:st(de.input,Xe.className,se&&"MuiInputBase-readOnly"),onBlur:St,onChange:rn,onFocus:ct})}),O,ne?ne({...Be,startAdornment:D}):null]})]})}),Ok={size:"medium"},Nk={small:"small",medium:"small",large:"medium",chat:"chat",hero:"large"},d2=({size:e,theme:t,multiline:r})=>hs([(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,"&:hover:not(.Mui-disabled), &.Mui-focused, :hover:not(.Mui-disabled):not(.Mui-focused)":{boxShadow:"0px 8px 20px 0px rgba(120, 147, 172, 0.10)",borderColor:t.custom.colors.silverGray,outline:"none",svg:{fill:t.custom.colors.lightRed}},".Mit-AdornmentButton":{padding:"0 16px"}},e==="hero"&&{padding:"0 24px",".Mit-AdornmentButton":{width:"72px"}}]),kk=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"}}}),Dk=Object.keys({responsive:!0}),h2=Fe(Rk,{shouldForwardProp:e=>!Dk.includes(e)})(({theme:e,size:t=Ok.size,multiline:r,responsive:i})=>[kk(e),d2({size:t,theme:e,multiline:r}),i&&{[e.breakpoints.down("sm")]:d2({size:Nk[t],theme:e,multiline:r})}]),Lk=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%"})),Ik=e=>e.preventDefault(),S0=({className:e,...t})=>x.createElement(Lk,{onMouseDown:Ik,className:Fl("Mit-AdornmentButton",e),...t}),wk=({className:e})=>x.createElement("svg",{className:e,width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{clipPath:"url(#clip0_16894_46778)"},x.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"}),x.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"}),x.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"}),x.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"}),x.createElement("path",{d:"M19.6383 26.256L19.1973 26.269L19.363 31.8525L19.804 31.8394L19.6383 26.256Z",fill:"#40464C"}),x.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"})),x.createElement("defs",null,x.createElement("clipPath",{id:"clip0_16894_46778"},x.createElement("rect",{width:"40",height:"39.9338",fill:"white"})))),Mk=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})),Bk=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"}})),Pk=Fe(wk)({width:"40px",height:"40px",display:"block"}),Uk=Fe(bi)({textAlign:"center",padding:"0 40px"}),Hk=Fe(h2)({borderRadius:"8px",margin:"8px 0 24px 0",flexShrink:0}),Fk=Fe(Ob)(({theme:e})=>({fill:e.custom.colors.red,"button:disabled &":{fill:e.custom.colors.silverGray}})),zk=Fe.div(({theme:e})=>({display:"flex",gap:"16px",width:"100%",[e.breakpoints.down("sm")]:{flexDirection:"column"}})),Yk=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")]:{textAlign:"center",padding:"12px 36px"},":hover":{cursor:"pointer",borderColor:"transparent",color:e.custom.colors.white,backgroundColor:e.custom.colors.darkGray1}})),jk=({title:e,conversationStarters:t,className:r,onPromptSubmit:i})=>{const[l,s]=x.useState(""),c=p=>{s(p.target.value)},d=p=>{p.key==="Enter"&&l?i(l):s(l)};return x.createElement(Mk,{className:r,"data-testid":"ai-chat-entry-screen"},x.createElement(Bk,null,x.createElement(Fd,null),x.createElement(Pk,null)),e?x.createElement(Uk,{variant:"h4"},e):null,x.createElement(Hk,{fullWidth:!0,size:"chat",onChange:c,onKeyDown:d,endAdornment:x.createElement(S0,{"aria-label":"Send",onClick:()=>i(l)},x.createElement(Fk,null)),responsive:!0}),x.createElement(zk,null,t==null?void 0:t.map(({content:p},m)=>x.createElement(Yk,{key:m,onClick:()=>i(p),tabIndex:m,onKeyDown:b=>{b.key==="Enter"&&i(p)}},x.createElement(bi,{variant:"body2"},p)))))},Vk=(...e)=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r&&(r.current=t)})},p2=e=>e.scrollHeight-e.clientHeight-e.scrollTop,$k=e=>{e.scrollTop=e.scrollHeight},qk=Fe.div({overflow:"auto"}),Gk=x.forwardRef(function({children:t,threshold:r=2,className:i},l){const s=x.useRef(null),[c,d]=x.useState(t),p=x.useRef(null);return x.useLayoutEffect(()=>{s.current&&(p.current=p2(s.current)<r,d(t))},[t,r]),x.useLayoutEffect(()=>{if(!s.current)return;const m=p2(s.current)<r;p.current&&!m&&($k(s.current),p.current=null)},[c,r]),x.createElement(qk,{className:i,ref:Vk(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"}),Xk={loadingMessages:[{delay:1500,text:"Loading"},{delay:4e3,text:"Still loading"}]},Qk=({message:e,isLoading:t,loadingMessages:r=Xk.loadingMessages})=>{var c;const[i,l]=x.useState(-1);x.useEffect(()=>{l(-1)},[t,r]),x.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 x.createElement(m2,{"aria-atomic":"true","aria-live":"polite"},t?s:e)};function Kk(e){return Pn("MuiAlert",e)}const g2=Un("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 Wk(e){return Pn("MuiIconButton",e)}const Zk=Un("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Jk=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 Wn(c,Wk,t)},eD=Ot(m0,{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)}`]]}})(Hn(({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})`:Ll(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}}]})),Hn(({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})`:Ll((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)}}],[`&.${Zk.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),tD=x.forwardRef(function(t,r){const i=Fn({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=Jk(S);return me.jsx(eD,{className:st(y.root,c),centerRipple:!0,focusRipple:!m,disabled:p,ref:r,...E,ownerState:S,children:s})}),nD=gi(me.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"),rD=gi(me.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),aD=gi(me.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"),iD=gi(me.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"),uD=gi(me.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"),lD=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 Wn(s,Kk,l)},oD=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)}`]]}})(Hn(({theme:e})=>{const t=e.palette.mode==="light"?Il:wl,r=e.palette.mode==="light"?wl:Il;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)}}}))]}})),sD=Ot("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),cD=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:me.jsx(nD,{fontSize:"inherit"}),warning:me.jsx(rD,{fontSize:"inherit"}),error:me.jsx(aD,{fontSize:"inherit"}),info:me.jsx(iD,{fontSize:"inherit"})},fD=x.forwardRef(function(t,r){const i=Fn({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:O="alert",severity:_="success",slotProps:L={},slots:R={},variant:H="standard",...k}=i,P={...i,color:p,severity:_,variant:H,colorSeverity:p||_},I=lD(P),M={slots:{closeButton:m.CloseButton,closeIcon:m.CloseIcon,...R},slotProps:{...b,...L}},[Y,ae]=fu("closeButton",{elementType:tD,externalForwardedProps:M,ownerState:P}),[j,A]=fu("closeIcon",{elementType:uD,externalForwardedProps:M,ownerState:P});return me.jsxs(oD,{role:O,elevation:0,ownerState:P,className:st(I.root,c),ref:r,...k,children:[E!==!1?me.jsx(sD,{ownerState:P,className:I.icon,children:E||S[_]||E2[_]}):null,me.jsx(cD,{ownerState:P,className:I.message,children:s}),l!=null?me.jsx(b2,{ownerState:P,className:I.action,children:l}):null,l==null&&y?me.jsx(b2,{ownerState:P,className:I.action,children:me.jsx(Y,{size:"small","aria-label":d,title:d,color:"inherit",onClick:y,...ae,children:me.jsx(j,{fontSize:"small",...A})})}):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],dD=Fe(fD)(({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"}}})),hD=Fe.span({display:"none"}),pD=({visible:e=!0,severity:t="info",closable:r,children:i,className:l})=>{const[s,c]=x.useState(e),d=x.useId(),p=()=>{c(!1)};return x.useEffect(()=>{c(e)},[e]),s?x.createElement(dD,{severity:t,onClose:r?p:void 0,role:"alert","aria-describedby":d,className:l},i,x.createElement(hD,{id:d},t," message")):null},mD=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}})),gD=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"}})),bD=({askTimTitle:e,externalScroll:t,className:r})=>e?x.createElement(mD,{externalScroll:t,className:r},x.createElement(gD,null,x.createElement(Fd,null),x.createElement(bi,{variant:"body1"},"Ask",x.createElement("strong",null,"TIM")," ",e))):null;var T2="vercel.ai.error",ED=Symbol.for(T2),S2,yD=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=ED;var mu=yD;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}`,TD=Symbol.for(x2),_2,SD=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=TD;var v2="AI_JSONParseError",R2=`vercel.ai.error.${v2}`,CD=Symbol.for(R2),O2,N2=class extends mu{constructor({text:e,cause:t}){super({name:v2,message:`JSON parsing failed: Text: ${e}.
|
|
197
|
+
Error message: ${C2(t)}`,cause:t}),this[O2]=!0,this.text=e}static isInstance(e){return mu.hasMarker(e,R2)}};O2=CD;var k2="AI_TypeValidationError",D2=`vercel.ai.error.${k2}`,AD=Symbol.for(D2),L2,xD=class Vp extends mu{constructor({value:t,cause:r}){super({name:k2,message:`Type validation failed: Value: ${JSON.stringify(t)}.
|
|
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 Vp.isInstance(r)&&r.value===t?r:new Vp({value:t,cause:r})}};L2=AD;var I2=xD;let _D=(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 vD(){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 O in y){const _=y[O];_&&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 RD=vD();const OD=ir(RD);var ND=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:i="-"}={})=>{const l=_D(r,t);if(e==null)return l;if(r.includes(i))throw new SD({argument:"separator",message:`The separator "${i}" must not be part of the alphabet "${r}".`});return s=>`${e}${i}${l(s)}`},M2=ND(),C0=Symbol.for("vercel.ai.validator");function kD(e){return{[C0]:!0,validate:e}}function DD(e){return typeof e=="object"&&e!==null&&C0 in e&&e[C0]===!0&&"validate"in e}function LD(e){return DD(e)?e:ID(e)}function ID(e){return kD(t=>{const r=e.safeParse(t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}})}function wD({value:e,schema:t}){const r=LD(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=OD.parse(e);return t==null?{success:!0,value:r}:wD({value:r,schema:t})}catch(r){return{success:!1,error:N2.isInstance(r)?r:new N2({text:e,cause:r})}}}var zl={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},Yl={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},jl={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}}},Vl={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}}}},$l={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}}},MD=[zl,Yl,jl,Vl,$l];zl.code+"",Yl.code+"",jl.code+"",Vl.code+"",$l.code+"",zl.name+"",zl.code,Yl.name+"",Yl.code,jl.name+"",jl.code,Vl.name+"",Vl.code,$l.name+"",$l.code,MD.map(e=>e.code);function BD(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 PD(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:BD(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var ql={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},Gl={code:"2",name:"data",parse:e=>{if(!Array.isArray(e))throw new Error('"data" parts expect an array value.');return{type:"data",value:e}}},Xl={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},Ql={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}}},Kl={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}}},Wl={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}}},Zl={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}}},Jl={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}}},eo={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}}},to={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}}},UD=[ql,Gl,Xl,Ql,Kl,Wl,Zl,Jl,eo,to],HD={[ql.code]:ql,[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};ql.name+"",ql.code,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;var FD=UD.map(e=>e.code),zD=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(!FD.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 HD[i].parse(s)},YD=10;function jD(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 VD({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 O=0;for(;;){const{value:_}=await E.read();if(_&&(y.push(_),O+=_.length,_[_.length-1]!==YD))continue;if(y.length===0)break;const L=jD(y,O);O=0;const R=S.decode(L,{stream:!0}).split(`
|
|
199
|
+
`).filter(H=>H!=="").map(zD);for(const{type:H,value:k}of R)switch(H){case"text":await(t==null?void 0:t(k));break;case"data":await(r==null?void 0:r(k));break;case"error":await(i==null?void 0:i(k));break;case"message_annotations":await(p==null?void 0:p(k));break;case"tool_call_streaming_start":await(l==null?void 0:l(k));break;case"tool_call_delta":await(s==null?void 0:s(k));break;case"tool_call":await(c==null?void 0:c(k));break;case"tool_result":await(d==null?void 0:d(k));break;case"finish_message":await(m==null?void 0:m(k));break;case"finish_step":await(b==null?void 0:b(k));break;default:{const P=H;throw new Error(`Unknown stream part type: ${P}`)}}}}function $D({promptTokens:e,completionTokens:t}){return{promptTokens:e,completionTokens:t,totalTokens:e+t}}async function qD({stream:e,update:t,onToolCall:r,onFinish:i,generateId:l=M2,getCurrentDate:s=()=>new Date}){const c=s();let d,p=!0;const m=[],b=[];let E;const S={};let y={completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},O="unknown";function _(){const R=[...b];if(d==null){t(m,R);return}E!=null&&E.length&&(d.annotations=E);const H={...JSON.parse(JSON.stringify(d)),revisionId:l(),createdAt:d.createdAt};t([...m,H],R)}function L(){return(p||d==null)&&(d!=null&&m.push(d),p=!1,d={id:l(),role:"assistant",content:"",createdAt:c}),d}await VD({stream:e,onTextPart(R){const H=L();d={...H,content:H.content+R},_()},onToolCallStreamingStartPart(R){const H=L();H.toolInvocations==null&&(H.toolInvocations=[]),S[R.toolCallId]={text:"",toolName:R.toolName,index:H.toolInvocations.length},H.toolInvocations.push({state:"partial-call",toolCallId:R.toolCallId,toolName:R.toolName,args:void 0}),_()},onToolCallDeltaPart(R){const H=L(),k=S[R.toolCallId];k.text+=R.argsTextDelta;const{value:P}=PD(k.text);H.toolInvocations[k.index]={state:"partial-call",toolCallId:R.toolCallId,toolName:k.toolName,args:P},_()},async onToolCallPart(R){const H=L();if(S[R.toolCallId]!=null?H.toolInvocations[S[R.toolCallId].index]={state:"call",...R}:(H.toolInvocations==null&&(H.toolInvocations=[]),H.toolInvocations.push({state:"call",...R})),r){const k=await r({toolCall:R});k!=null&&(H.toolInvocations[H.toolInvocations.length-1]={state:"result",...R,result:k})}_()},onToolResultPart(R){const k=L().toolInvocations;if(k==null)throw new Error("tool_result must be preceded by a tool_call");const P=k.findIndex(I=>I.toolCallId===R.toolCallId);if(P===-1)throw new Error("tool_result must be preceded by a tool_call with the same toolCallId");k[P]={...k[P],state:"result",...R},_()},onDataPart(R){b.push(...R),_()},onMessageAnnotationsPart(R){E==null?E=[...R]:E.push(...R),_()},onFinishStepPart(R){p=!R.isContinued},onFinishMessagePart(R){O=R.finishReason,R.usage!=null&&(y=$D(R.usage))},onErrorPart(R){throw new Error(R)}}),i==null||i({message:d,finishReason:O,usage:y})}async function GD({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)}}var XD=()=>fetch;async function QD({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:S=XD()}){var y,O;const _=await S(e,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",...l},signal:(y=s==null?void 0:s())==null?void 0:y.signal,credentials:i}).catch(L=>{throw c(),L});if(d)try{await d(_)}catch(L){throw L}if(!_.ok)throw c(),new Error((O=await _.text())!=null?O:"Failed to fetch the chat response.");if(!_.body)throw new Error("The response body is empty.");switch(r){case"text":{const L={id:E(),createdAt:new Date,role:"assistant",content:""};await GD({stream:_.body,onTextPart:R=>{L.content+=R,p([{...L}],[])}}),m==null||m(L,{usage:{completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},finishReason:"unknown"});return}case"data":{await qD({stream:_.body,update:p,onToolCall:b,onFinish({message:L,finishReason:R,usage:H}){m&&L!=null&&m(L,{usage:H,finishReason:R})},generateId:E});return}default:{const L=r;throw new Error(`Unknown stream protocol: ${L}`)}}}async function P2(e){if(!e)return[];if(e instanceof 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")}var A0={exports:{}},x0={};/**
|
|
200
200
|
* @license React
|
|
201
201
|
* use-sync-external-store-shim.production.js
|
|
202
202
|
*
|
|
@@ -204,5 +204,4 @@ Error message: ${py(r)}`,cause:r}),this[_y]=!0,this.value=t}static isInstance(t)
|
|
|
204
204
|
*
|
|
205
205
|
* This source code is licensed under the MIT license found in the
|
|
206
206
|
* LICENSE file in the root directory of this source tree.
|
|
207
|
-
*/var ky;function hI(){if(ky)return Ch;ky=1;var e=rs();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(),O=i({inst:{value:y,getSnapshot:T}}),x=O[0].inst,k=O[1];return s(function(){x.value=y,x.getSnapshot=T,p(x)&&k({inst:x})},[E,y,T]),l(function(){return p(x)&&k({inst:x}),E(function(){p(x)&&k({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 Ch.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:b,Ch}var Dy;function pI(){return Dy||(Dy=1,Ah.exports=hI()),Ah.exports}var mI=pI();const La=()=>{},zn=La(),_h=Object,mt=e=>e===zn,Gr=e=>typeof e=="function",wa=(e,t)=>({...e,...t}),gI=e=>Gr(e.then),oc=new WeakMap;let bI=0;const ro=e=>{const t=typeof e,r=e&&e.constructor,i=r==Date;let l,s;if(_h(e)===e&&!i&&r!=RegExp){if(l=oc.get(e),l)return l;if(l=++bI+"~",oc.set(e,l),r==Array){for(l="@",s=0;s<e.length;s++)l+=ro(e[s])+",";oc.set(e,l)}if(r==_h){l="#";const c=_h.keys(e).sort();for(;!mt(s=c.pop());)mt(e[s])||(l+=s+":"+ro(e[s])+",");oc.set(e,l)}}else l=i?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return l},ua=new WeakMap,xh={},sc={},vh="undefined",cc=typeof window!=vh,Rh=typeof document!=vh,EI=()=>cc&&typeof window.requestAnimationFrame!=vh,Iy=(e,t)=>{const r=ua.get(e);return[()=>!mt(t)&&e.get(t)||xh,i=>{if(!mt(t)){const l=e.get(t);t in sc||(sc[t]=l),r[5](t,wa(l,i),l||xh)}},r[6],()=>!mt(t)&&t in sc?sc[t]:!mt(t)&&e.get(t)||xh]};let Oh=!0;const yI=()=>Oh,[Nh,kh]=cc&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[La,La],TI=()=>{const e=Rh&&document.visibilityState;return mt(e)||e!=="hidden"},SI=e=>(Rh&&document.addEventListener("visibilitychange",e),Nh("focus",e),()=>{Rh&&document.removeEventListener("visibilitychange",e),kh("focus",e)}),AI=e=>{const t=()=>{Oh=!0,e()},r=()=>{Oh=!1};return Nh("online",t),Nh("offline",r),()=>{kh("online",t),kh("offline",r)}},CI={isOnline:yI,isVisible:TI},_I={initFocus:SI,initReconnect:AI},Ly=!St.useId,ao=!cc||"Deno"in window,xI=e=>EI()?window.requestAnimationFrame(e):setTimeout(e,1),Dh=ao?_.useEffect:_.useLayoutEffect,Ih=typeof navigator<"u"&&navigator.connection,wy=!ao&&Ih&&(["slow-2g","2g"].includes(Ih.effectiveType)||Ih.saveData),Lh=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 vI=0;const wh=()=>++vI,My=0,By=1,Py=2;var io={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:My,MUTATE_EVENT:Py,RECONNECT_EVENT:By};async function Uy(...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=T=>typeof d=="function"?d(T):d!==!1,b=s.throwOnError;if(Gr(r)){const T=r,y=[],O=t.keys();for(const x of O)!/^\$(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]=Lh(T);if(!y)return;const[O,x]=Iy(t,y),[k,R,H,D]=ua.get(t),P=()=>{const J=k[y];return(Gr(s.revalidate)?s.revalidate(O().data,T):s.revalidate!==!1)&&(delete H[y],delete D[y],J&&J[0])?J[0](Py).then(()=>O().data):O().data};if(e.length<3)return P();let I=i,M;const Y=wh();R[y]=[Y,0];const ue=!mt(p),$=O(),C=$.data,j=$._c,K=mt(j)?C:j;if(ue&&(p=Gr(p)?p(K,C):p,x({data:p,_c:K})),Gr(I))try{I=I(K)}catch(J){M=J}if(I&&gI(I))if(I=await I.catch(J=>{M=J}),Y!==R[y][0]){if(M)throw M;return I}else M&&ue&&m(M)&&(c=!0,x({data:K,_c:zn}));if(c&&!M)if(Gr(c)){const J=c(I,K);x({data:J,error:zn,_c:zn})}else x({data:I,error:zn,_c:zn});if(R[y][1]=wh(),Promise.resolve(P()).then(()=>{x({_c:zn})}),M){if(b)throw M;return}return I}}const Hy=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},RI=(e,t)=>{if(!ua.has(e)){const r=wa(_I,t),i={},l=Uy.bind(zn,e);let s=La;const c={},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 O of y)O(E,T)},m=()=>{if(!ua.has(e)&&(ua.set(e,[i,{},{},{},l,p,d]),!ao)){const b=r.initFocus(setTimeout.bind(zn,Hy.bind(zn,i,My))),E=r.initReconnect(setTimeout.bind(zn,Hy.bind(zn,i,By)));s=()=>{b&&b(),E&&E(),ua.delete(e)}}};return m(),[e,l,m,s]}return[e,ua.get(e)[4]]},OI=(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)},NI=(e,t)=>ro(e)==ro(t),[Fy,kI]=RI(new Map),DI=wa({onLoadingSlow:La,onSuccess:La,onError:La,onErrorRetry:OI,onDiscarded:La,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:wy?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:wy?5e3:3e3,compare:NI,isPaused:()=>!1,cache:Fy,mutate:kI,fallback:{}},CI),II=(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},LI=_.createContext({}),wI="$inf$",zy=cc&&window.__SWR_DEVTOOLS_USE__,MI=zy?window.__SWR_DEVTOOLS_USE__:[],BI=()=>{zy&&(window.__SWR_DEVTOOLS_REACT__=St)},PI=e=>Gr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],UI=()=>wa(DI,_.useContext(LI)),HI=e=>(t,r,i)=>e(t,r&&((...s)=>{const[c]=Lh(t),[,,,d]=ua.get(Fy);if(c.startsWith(wI))return r(...s);const p=d[c];return mt(p)?r(...s):(delete d[c],p)}),i),FI=MI.concat(HI),zI=e=>function(...r){const i=UI(),[l,s,c]=PI(r),d=II(i,c);let p=e;const{use:m}=d,b=(m||[]).concat(FI);for(let E=b.length;E--;)p=b[E](p);return p(l,s||d.fetcher||null,d)},YI=(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())}};BI();const Yy=St.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)}),Mh={dedupe:!0},fc=zI((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,O,x,k]=ua.get(i),[R,H]=Lh(e),D=_.useRef(!1),P=_.useRef(!1),I=_.useRef(R),M=_.useRef(t),Y=_.useRef(r),ue=()=>Y.current,$=()=>ue().isVisible()&&ue().isOnline(),[C,j,K,J]=Iy(i,R),Z=_.useRef({}).current,re=mt(c)?r.fallback[R]:c,X=(ve,Re)=>{for(const Ae in Z){const Be=Ae;if(Be==="data"){if(!l(ve[Be],Re[Be])&&(!mt(ve[Be])||!l(Oe,Re[Be])))return!1}else if(Re[Be]!==ve[Be])return!1}return!0},oe=_.useMemo(()=>{const ve=!R||!t?!1:mt(d)?ue().isPaused()||s?!1:mt(p)?!0:p:d,Re=ct=>{const At=wa(ct);return delete At._k,ve?{isValidating:!0,isLoading:!0,...At}:At},Ae=C(),Be=J(),it=Re(Ae),Ye=Ae===Be?it:Re(Be);let Ue=it;return[()=>{const ct=Re(C());return X(ct,Ue)?(Ue.data=ct.data,Ue.isLoading=ct.isLoading,Ue.isValidating=ct.isValidating,Ue.error=ct.error,Ue):(Ue=ct,ct)},()=>Ye]},[i,R]),Q=mI.useSyncExternalStore(_.useCallback(ve=>K(R,(Re,Ae)=>{X(Ae,Re)||ve()}),[i,R]),oe[0],oe[1]),pe=!D.current,A=y[R]&&y[R].length>0,ee=Q.data,Te=mt(ee)?re:ee,L=Q.error,se=_.useRef(Te),Oe=T?mt(ee)?se.current:ee:Te,Se=A&&!mt(L)?!1:pe&&!mt(d)?d:ue().isPaused()?!1:s?mt(Te)?!1:p:mt(Te)||p,et=!!(R&&t&&pe&&Se),Me=mt(Q.isValidating)?et:Q.isValidating,Ve=mt(Q.isLoading)?et:Q.isLoading,_e=_.useCallback(async ve=>{const Re=M.current;if(!R||!Re||P.current||ue().isPaused())return!1;let Ae,Be,it=!0;const Ye=ve||{},Ue=!x[R]||!Ye.dedupe,ct=()=>Ly?!P.current&&R===I.current&&D.current:R===I.current,At={isValidating:!1,isLoading:!1},rn=()=>{j(At)},_n=()=>{const Ge=x[R];Ge&&Ge[1]===Be&&delete x[R]},we={isValidating:!0};mt(C().data)&&(we.isLoading=!0);try{if(Ue&&(j(we),r.loadingTimeout&&mt(C().data)&&setTimeout(()=>{it&&ct()&&ue().onLoadingSlow(R,r)},r.loadingTimeout),x[R]=[Re(H),wh()]),[Ae,Be]=x[R],Ae=await Ae,Ue&&setTimeout(_n,r.dedupingInterval),!x[R]||x[R][1]!==Be)return Ue&&ct()&&ue().onDiscarded(R),!1;At.error=zn;const Ge=O[R];if(!mt(Ge)&&(Be<=Ge[0]||Be<=Ge[1]||Ge[1]===0))return rn(),Ue&&ct()&&ue().onDiscarded(R),!1;const $t=C().data;At.data=l($t,Ae)?$t:Ae,Ue&&ct()&&ue().onSuccess(Ae,R,r)}catch(Ge){_n();const $t=ue(),{shouldRetryOnError:te}=$t;$t.isPaused()||(At.error=Ge,Ue&&ct()&&($t.onError(Ge,R,$t),(te===!0||Gr(te)&&te(Ge))&&(!ue().revalidateOnFocus||!ue().revalidateOnReconnect||$())&&$t.onErrorRetry(Ge,R,$t,fe=>{const Ce=y[R];Ce&&Ce[0]&&Ce[0](io.ERROR_REVALIDATE_EVENT,fe)},{retryCount:(Ye.retryCount||0)+1,dedupe:!0})))}return it=!1,rn(),!0},[R,i]),qe=_.useCallback((...ve)=>Uy(i,I.current,...ve),[]);if(Dh(()=>{M.current=t,Y.current=r,mt(ee)||(se.current=ee)}),Dh(()=>{if(!R)return;const ve=_e.bind(zn,Mh);let Re=0;const Be=YI(R,y,(it,Ye={})=>{if(it==io.FOCUS_EVENT){const Ue=Date.now();ue().revalidateOnFocus&&Ue>Re&&$()&&(Re=Ue+ue().focusThrottleInterval,ve())}else if(it==io.RECONNECT_EVENT)ue().revalidateOnReconnect&&$()&&ve();else{if(it==io.MUTATE_EVENT)return _e();if(it==io.ERROR_REVALIDATE_EVENT)return _e(Ye)}});return P.current=!1,I.current=R,D.current=!0,j({_k:H}),Se&&(mt(Te)||ao?ve():xI(ve)),()=>{P.current=!0,Be()}},[R]),Dh(()=>{let ve;function Re(){const Be=Gr(m)?m(C().data):m;Be&&ve!==-1&&(ve=setTimeout(Ae,Be))}function Ae(){!C().error&&(b||ue().isVisible())&&(E||ue().isOnline())?_e(Mh).then(Re):Re()}return Re(),()=>{ve&&(clearTimeout(ve),ve=-1)}},[m,b,E,R]),_.useDebugValue(Oe),s&&mt(Te)&&R){if(!Ly&&ao)throw new Error("Fallback data is required when using suspense in SSR.");M.current=t,Y.current=r,P.current=!1;const ve=k[R];if(!mt(ve)){const Re=qe(ve);Yy(Re)}if(mt(L)){const Re=_e(Mh);mt(Oe)||(Re.status="fulfilled",Re.value=!0),Yy(Re)}else throw L}return{mutate:qe,get data(){return Z.data=!0,Oe},get error(){return Z.error=!0,L},get isValidating(){return Z.isValidating=!0,Me},get isLoading(){return Z.isLoading=!0,Ve}}});var Bh,jy;function jI(){if(jy)return Bh;jy=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 Bh=e,Bh}var VI=jI();const $I=ir(VI);function Vy(e,t){return t!=null?$I(e,t):e}var qI=async(e,t,r,i,l,s,c,d,p,m,b,E,T,y,O,x,k)=>{var R;const H=c.current;r(t.messages,!1);const D=y?t.messages:t.messages.map(({role:I,content:M,experimental_attachments:Y,data:ue,annotations:$,toolInvocations:C})=>({role:I,content:M,...Y!==void 0&&{experimental_attachments:Y},...ue!==void 0&&{data:ue},...$!==void 0&&{annotations:$},...C!==void 0&&{toolInvocations:C}})),P=l.current;return await dI({api:e,body:(R=O==null?void 0:O({messages:t.messages,requestData:t.data,requestBody:t.body}))!=null?R:{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(){k||r(H,!1)},onResponse:E,onUpdate(I,M){r([...t.messages,...I],!1),M!=null&&M.length&&i([...P??[],...M],!1)},onToolCall:T,onFinish:b,generateId:p,fetch:x})};function GI({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:O,generateId:x=Ry,fetch:k,keepLastMessageOnError:R=!0,experimental_throttle:H}={}){const D=_.useId(),P=t??D,I=typeof e=="string"?[e,P]:P,[M]=_.useState([]),{data:Y,mutate:ue}=fc([I,"messages"],null,{fallbackData:r??M}),$=_.useRef(Y||[]);_.useEffect(()=>{$.current=Y||[]},[Y]);const{data:C,mutate:j}=fc([I,"streamData"],null),K=_.useRef(C);_.useEffect(()=>{K.current=C},[C]);const{data:J=!1,mutate:Z}=fc([I,"loading"],null),{data:re=void 0,mutate:X}=fc([I,"error"],null),oe=_.useRef(null),Q=_.useRef({credentials:T,headers:y,body:O});_.useEffect(()=>{Q.current={credentials:T,headers:y,body:O}},[T,y,O]);const pe=_.useCallback(async _e=>{const qe=$.current.length;try{Z(!0),X(void 0);const Ae=new AbortController;oe.current=Ae,await qI(e,_e,Vy(ue,H),Vy(j,H),K,Q,$,oe,x,p,b,m,s,l,c,k,R),oe.current=null}catch(Ae){if(Ae.name==="AbortError")return oe.current=null,null;E&&Ae instanceof Error&&E(Ae),X(Ae)}finally{Z(!1)}const ve=$.current,Re=ve[ve.length-1];ve.length>qe&&Re!=null&&d>1&&$y(Re)&&XI(ve)<d&&await pe({messages:ve})},[ue,Z,e,Q,m,b,E,X,j,K,p,l,c,s,d,$,oe,x,k,R,H]),A=_.useCallback(async(_e,{data:qe,headers:ve,body:Re,experimental_attachments:Ae}={})=>{var Be,it;const Ye=await Ny(Ae),Ue=$.current.concat({..._e,id:(Be=_e.id)!=null?Be:x(),createdAt:(it=_e.createdAt)!=null?it:new Date,experimental_attachments:Ye.length>0?Ye:void 0});return pe({messages:Ue,headers:ve,body:Re,data:qe})},[pe,x]),ee=_.useCallback(async({data:_e,headers:qe,body:ve}={})=>{const Re=$.current;if(Re.length===0)return null;const Ae=Re[Re.length-1];return pe({messages:Ae.role==="assistant"?Re.slice(0,-1):Re,headers:qe,body:ve,data:_e})},[pe]),Te=_.useCallback(()=>{oe.current&&(oe.current.abort(),oe.current=null)},[]),L=_.useCallback(_e=>{typeof _e=="function"&&(_e=_e($.current)),ue(_e,!1),$.current=_e},[ue]),se=_.useCallback(_e=>{typeof _e=="function"&&(_e=_e(K.current)),j(_e,!1),K.current=_e},[j]),[Oe,Se]=_.useState(i),et=_.useCallback(async(_e,qe={},ve)=>{var Re;if((Re=_e==null?void 0:_e.preventDefault)==null||Re.call(_e),!Oe&&!qe.allowEmptySubmit)return;ve&&(Q.current={...Q.current,...ve});const Ae=await Ny(qe.experimental_attachments),it={messages:!Oe&&!Ae.length&&qe.allowEmptySubmit?$.current:$.current.concat({id:x(),createdAt:new Date,role:"user",content:Oe,experimental_attachments:Ae.length>0?Ae:void 0}),headers:qe.headers,body:qe.body,data:qe.data};pe(it),Se("")},[Oe,x,pe]);return{messages:Y||[],setMessages:L,data:C,setData:se,error:re,append:A,reload:ee,stop:Te,input:Oe,setInput:Se,handleInputChange:_e=>{Se(_e.target.value)},handleSubmit:et,isLoading:J,addToolResult:({toolCallId:_e,result:qe})=>{const ve=$.current.map((Ae,Be,it)=>Be===it.length-1&&Ae.role==="assistant"&&Ae.toolInvocations?{...Ae,toolInvocations:Ae.toolInvocations.map(Ye=>Ye.toolCallId===_e?{...Ye,result:qe,state:"result"}:Ye)}:Ae);ue(ve,!1);const Re=ve[ve.length-1];$y(Re)&&pe({messages:ve})}}}function $y(e){return e.role==="assistant"&&e.toolInvocations&&e.toolInvocations.length>0&&e.toolInvocations.every(t=>"result"in t)}function XI(e){let t=0;for(let r=e.length-1;r>=0&&e[r].role==="assistant";r--)t++;return t}var QI=GI;const KI=e=>e,WI=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??KI,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)},ZI=(e,t)=>{const r=_.useMemo(()=>WI(e),[e]);return QI({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})},JI=(...e)=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r&&(r.current=t)})},qy=e=>e.scrollHeight-e.clientHeight-e.scrollTop,eL=e=>{e.scrollTop=e.scrollHeight},tL=tt.div({overflow:"auto"}),nL=_.forwardRef(function({children:t,threshold:r=2,className:i},l){const s=_.useRef(null),[c,d]=_.useState(t),p=_.useRef(null);return _.useLayoutEffect(()=>{s.current&&(p.current=qy(s.current)<r,d(t))},[t,r]),_.useLayoutEffect(()=>{if(!s.current)return;const m=qy(s.current)<r;p.current&&!m&&(eL(s.current),p.current=null)},[c,r]),_.createElement(tL,{className:i,ref:JI(s,l)},c)}),Gy=tt.span({clipPath:"inset(100%)",clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),rL={loadingMessages:[{delay:1500,text:"Loading"},{delay:4e3,text:"Still loading"}]},aL=({message:e,isLoading:t,loadingMessages:r=rL.loadingMessages})=>{var c;const[i,l]=_.useState(-1);_.useEffect(()=>{l(-1)},[t,r]),_.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 _.createElement(Gy,{"aria-atomic":"true","aria-live":"polite"},t?s:e)};function iL(e){return Pn("MuiAlert",e)}const Xy=Un("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 uL(e){return Pn("MuiIconButton",e)}const lL=Un("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),oL=e=>{const{classes:t,disabled:r,color:i,edge:l,size:s}=e,c={root:["root",r&&"disabled",i!=="default"&&`color${xt(i)}`,l&&`edge${xt(l)}`,`size${xt(s)}`]};return Wn(c,uL,t)},sL=Ot(mh,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${xt(r.color)}`],r.edge&&t[`edge${xt(r.edge)}`],t[`size${xt(r.size)}`]]}})(Hn(({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}}]})),Hn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(du()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(du()).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)}}],[`&.${lL.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),cL=_.forwardRef(function(t,r){const i=Fn({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,T={...i,edge:l,color:d,disabled:p,disableFocusRipple:m,size:b},y=oL(T);return me.jsx(sL,{className:st(y.root,c),centerRipple:!0,focusRipple:!m,disabled:p,ref:r,...E,ownerState:T,children:s})}),fL=gi(me.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"),dL=gi(me.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),hL=gi(me.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"),pL=gi(me.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"),mL=gi(me.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"),gL=e=>{const{variant:t,color:r,severity:i,classes:l}=e,s={root:["root",`color${xt(r||i)}`,`${t}${xt(r||i)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Wn(s,iL,l)},bL=Ot(RE,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${xt(r.color||r.severity)}`]]}})(Hn(({theme:e})=>{const t=e.palette.mode==="light"?Ll:wl,r=e.palette.mode==="light"?wl:Ll;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(du(["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),[`& .${Xy.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(du(["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}`,[`& .${Xy.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(du(["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)}}}))]}})),EL=Ot("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),yL=Ot("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Qy=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}),Ky={success:me.jsx(fL,{fontSize:"inherit"}),warning:me.jsx(dL,{fontSize:"inherit"}),error:me.jsx(hL,{fontSize:"inherit"}),info:me.jsx(pL,{fontSize:"inherit"})},TL=_.forwardRef(function(t,r){const i=Fn({props:t,name:"MuiAlert"}),{action:l,children:s,className:c,closeText:d="Close",color:p,components:m={},componentsProps:b={},icon:E,iconMapping:T=Ky,onClose:y,role:O="alert",severity:x="success",slotProps:k={},slots:R={},variant:H="standard",...D}=i,P={...i,color:p,severity:x,variant:H,colorSeverity:p||x},I=gL(P),M={slots:{closeButton:m.CloseButton,closeIcon:m.CloseIcon,...R},slotProps:{...b,...k}},[Y,ue]=su("closeButton",{elementType:cL,externalForwardedProps:M,ownerState:P}),[$,C]=su("closeIcon",{elementType:mL,externalForwardedProps:M,ownerState:P});return me.jsxs(bL,{role:O,elevation:0,ownerState:P,className:st(I.root,c),ref:r,...D,children:[E!==!1?me.jsx(EL,{ownerState:P,className:I.icon,children:E||T[x]||Ky[x]}):null,me.jsx(yL,{ownerState:P,className:I.message,children:s}),l!=null?me.jsx(Qy,{ownerState:P,className:I.action,children:l}):null,l==null&&y?me.jsx(Qy,{ownerState:P,className:I.action,children:me.jsx(Y,{size:"small","aria-label":d,title:d,color:"inherit",onClick:y,...ue,children:me.jsx($,{fontSize:"small",...C})})}):null]})}),Wy=(e,t)=>({info:e.custom.colors.blue,success:e.custom.colors.green,warning:e.custom.colors.orange,error:e.custom.colors.lightRed})[t],SL=tt(TL)(({theme:e,severity:t})=>({padding:"11px 16px",borderRadius:4,borderWidth:2,borderStyle:"solid",borderColor:Wy(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:Wy(e,t)}},button:{padding:0,":hover":{margin:0,background:"none"}}})),AL=tt.span({display:"none"}),CL=({visible:e=!0,severity:t="info",closable:r,children:i,className:l})=>{const[s,c]=_.useState(e),d=_.useId(),p=()=>{c(!1)};return _.useEffect(()=>{c(e)},[e]),s?_.createElement(SL,{severity:t,onClose:r?p:void 0,role:"alert","aria-describedby":d,className:l},i,_.createElement(AL,{id:d},t," message")):null},Nn={root:"MitAiChat--root",title:"MitAiChat--title",conversationStarter:"MitAiChat--conversationStarter",messagesContainer:"MitAiChat--messagesContainer",messageRow:"MitAiChat--messageRow",messageRowUser:"MitAiChat--messageRowUser",messageRowAssistant:"MitAiChat--messageRowAssistant",message:"MitAiChat--message",input:"MitAiChat--input",bottomSection:"MitAiChat--bottomSection"},_L=tt.div({width:"100%",height:"100%",display:"flex",flexDirection:"column"}),xL=tt(hu)(({theme:e})=>({"&&:hover":{backgroundColor:e.custom.colors.red,color:e.custom.colors.white}})),vL=tt.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"}})),RL=tt(nL)({display:"flex",flexDirection:"column",flex:1,padding:"14px 0",overflow:"auto",gap:"16px"}),Zy=tt.div({display:"flex",width:"100%",gap:"10px",[`&.${Nn.messageRowUser}`]:{flexDirection:"row-reverse"},"> *":{minWidth:0},position:"relative"}),Jy=tt.div(({theme:e})=>({color:e.custom.colors.darkGray2,backgroundColor:e.custom.colors.white,padding:"12px 16px",...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"},borderRadius:"12px",[`.${Nn.messageRowAssistant} &`]:{padding:"12px 16px 12px 0"},[`.${Nn.messageRowUser} &`]:{borderRadius:"8px 0px 8px 8px",backgroundColor:e.custom.colors.lightGray1}})),OL=tt.div({alignSelf:"flex-end",alignItems:"end",display:"flex",flexDirection:"column",gap:"12px"}),NL=tt.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"})),kL=tt(vO)({width:"40px",height:"40px"}),DL=tt(CO)(({theme:e})=>({fill:e.custom.colors.red})),IL=tt(_O)(({theme:e})=>({fill:e.custom.colors.red})),LL=tt.div({paddingTop:"12px"}),wL=tt(Fl)(({theme:e})=>({color:e.custom.colors.silverGrayDark,marginTop:"14px",textAlign:"center"})),ML=tt(({title:e,askTimTitle:t,onClose:r,className:i})=>_.createElement("div",{className:i},t?_.createElement(vL,null,_.createElement(xO,null),_.createElement(Fl,{variant:"body1"},"Ask",_.createElement("strong",null,"TIM")," ",t)):null,e?_.createElement(_.Fragment,null,_.createElement(kL,null),_.createElement(Fl,{flex:1,variant:"h5"},e)):null,r?_.createElement(xL,{variant:"tertiary",edge:"rounded",onClick:r,"aria-label":"Close chat"},_.createElement(Fd,null)):null))(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0",gap:"16px",color:e.custom.colors.white,borderRadius:"8px 8px 0 0"})),BL=function({chatId:t,className:r,conversationStarters:i,requestOpts:l,initialMessages:s,parseContent:c,srLoadingMessages:d,title:p,askTimTitle:m,onClose:b,ImgComponent:E,placeholder:T="",scrollContainer:y,ref:O,...x}){var X,oe;const k=_.useRef(null),R=_.useMemo(()=>{const Q=Math.random().toString().slice(2);return s.map((pe,A)=>({...pe,id:`initial-${Q}-${A}`}))},[s]),{messages:H,input:D,handleInputChange:P,handleSubmit:I,append:M,isLoading:Y,stop:ue,error:$}=ZI(l,{initialMessages:R,id:t});_.useImperativeHandle(O,()=>({append:M}),[M]);const C=_.useMemo(()=>{const Q=R.map(pe=>pe.id);return H.map(pe=>{if(pe.role==="assistant"&&!Q.includes(pe.id)){const A=c?c(pe.content):pe.content;return{...pe,content:A}}return pe})},[c,H,R]),j=C.length===R.length,K=!j&&!$&&((X=C[C.length-1])==null?void 0:X.role)==="user",J=Y&&((oe=C[C.length-1])==null?void 0:oe.role)!=="user",Z=()=>{const Q=y||k.current;Q==null||Q.scrollBy({behavior:"instant",top:Q==null?void 0:Q.scrollHeight})},re=C[C.length-1];return _.createElement(_L,{className:zl(r,Nn.root),...x},_.createElement(ML,{title:p,askTimTitle:m,onClose:b,className:zl(r,Nn.title)}),_.createElement(RL,{className:Nn.messagesContainer,ref:k},C.map(Q=>_.createElement(Zy,{key:Q.id,"data-chat-role":Q.role,className:zl(Nn.messageRow,{[Nn.messageRowUser]:Q.role==="user",[Nn.messageRowAssistant]:Q.role==="assistant"})},_.createElement(Jy,{className:Nn.message},_.createElement(Gy,null,Q.role==="user"?"You said: ":"Assistant said: "),_.createElement(eg,{skipHtml:!0},Q.content)))),j?_.createElement(OL,null,i==null?void 0:i.map(Q=>_.createElement(NL,{className:Nn.conversationStarter,key:Q.content,onClick:()=>{Z(),M({role:"user",content:Q.content})}},Q.content))):null,K?_.createElement(Zy,{className:zl(Nn.messageRow,Nn.messageRowAssistant),key:"loading"},_.createElement(Jy,null,_.createElement(AO,null))):null,$?_.createElement(CL,{severity:"error",closable:!0},"An unexpected error has occurred."):null),_.createElement(LL,{className:Nn.bottomSection},_.createElement("form",{onSubmit:Q=>{Q.preventDefault(),Y&&J?ue():(Z(),I(Q))}},_.createElement(D8,{fullWidth:!0,size:"chat",className:Nn.input,placeholder:T,name:"message",sx:{flex:1},value:D,onChange:P,endAdornment:Y?_.createElement(cy,{"aria-label":"Stop",onClick:ue,disabled:!J},_.createElement(IL,null)):_.createElement(cy,{"aria-label":"Send",type:"submit",onClick:Q=>{Z(),I(Q)}},_.createElement(DL,null))})),_.createElement(wL,{variant:"body3"},"AI-generated content may be incorrect.")),_.createElement(aL,{isLoading:Y,loadingMessages:d,message:re.role==="assistant"?re.content:""}))},PL=e=>_.createElement(BL,{key:e.chatId,...e}),UL=tt.div``,HL=tt.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"})),FL=tt.div({display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",marginTop:"24px"}),zL=tt.div(({theme:e})=>({color:e.custom.colors.silverGrayDark,...e.typography.body2})),eT=_.forwardRef(({content:e,"aria-label":t},r)=>{const[i,l]=_.useState(0);_.useEffect(()=>l(0),[e]);const s=c=>{(c.key==="Enter"||c.key===" ")&&l(i===0?1:0)};return _.createElement(HL,{ref:r,onClick:()=>l(i===0?1:0),onKeyDown:s,tabIndex:0,"aria-label":t},_.createElement(Fl,{variant:"h5"},i===0?`Q: ${e.question}`:`Answer: ${e.answer}`))});eT.displayName="Flashcard";const YL=({flashcards:e,wasKeyboardFocus:t})=>{const[r,i]=_.useState(0),l=_.useRef(null),s=_.useRef(null),c=_.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 _.useEffect(()=>{var d;(d=s.current)==null||d.focus()},[r]),_.useEffect(()=>(window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)),[c]),e?_.createElement(UL,{ref:l},_.createElement(eT,{ref:s,content:e[r],"aria-label":`Flashcard ${r+1} of ${e.length}`}),_.createElement(FL,null,_.createElement(hu,{onClick:()=>i(r-1),disabled:r===0,variant:"secondary",color:"secondary",size:"small"},_.createElement(TO,{"aria-hidden":!0})),_.createElement(zL,null,r+1," / ",e.length),_.createElement(hu,{onClick:()=>i(r+1),disabled:r===e.length-1,variant:"secondary",color:"secondary",size:"small"},_.createElement(SO,{"aria-hidden":!0})))):null},jL=tt(hu)(({theme:e})=>({position:"fixed",top:"24px",right:"40px",backgroundColor:e.custom.colors.lightGray2,"&&:hover":{backgroundColor:e.custom.colors.red,color:e.custom.colors.white},zIndex:2})),VL=tt(GD)(({theme:e})=>({padding:"80px 0 16px",backgroundColor:e.custom.colors.white,position:"sticky",top:0,zIndex:1,overflow:"visible"})),Ph=tt(f8)({padding:"0",height:"calc(100% - 138px)"}),$L=tt(PL)({".MitAiChat--title":{paddingTop:"8px"}}),qL=tt.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"}})),GL=e=>e,XL={credentials:"include"},QL=e=>{var t;try{return((t=JSON.parse(e)[0])==null?void 0:t.content).replace(/\\n/g,`
|
|
208
|
-
`).replace(/\\"/g,'"').replace(/\\'/g,"'")}catch(r){return console.warn("Could not parse summary:",r),e}},KL=e=>{const[t,r]=_.useState(null),[i,l]=_.useState(null),[s,c]=_.useState(!1);return _.useEffect(()=>{if(!e)return;(async()=>{c(!0);try{const m=await(await fetch(e)).json(),b=QL(m.summary);r({summary:b,flashcards:m.flashcards})}catch(p){l(p instanceof Error?p:new Error("Failed to fetch"))}finally{c(!1)}})()},[e]),{response:t,error:i,loading:s}},tT=({payload:e,transformBody:t,fetchOpts:r})=>e?_.createElement($L,{chatId:e.chatId,askTimTitle:e.askTimTitle,conversationStarters:e.conversationStarters,initialMessages:e.initialMessages,requestOpts:{transformBody:i=>({...e.requestBody,...t==null?void 0:t(i)}),apiUrl:e.apiUrl,fetchOpts:{...XL,...r}}}):null,WL=({messageOrigin:e,transformBody:t=GL,className:r,fetchOpts:i,target:l})=>{var I;const[s,c]=_.useState(!1),[d,p]=_.useState(null),[m,b]=_.useState("chat"),E=_.useRef(null),{response:T}=KL((I=d==null?void 0:d.summary)==null?void 0:I.apiUrl),[y,O]=_.useState(!1),x=_.useRef(!1),k=()=>{x.current=!0},R=()=>{x.current||O(!0),x.current=!1};if(_.useEffect(()=>{const M=Y=>{Y.origin===e&&Y.data.type==="smoot-design::tutor-drawer-open"&&Y.data.payload.target===l&&(c(!0),p(Y.data.payload))};return window.addEventListener("message",M),()=>{window.removeEventListener("message",M)}},[e,l]),!d)return null;const{blockType:H,chat:D}=d,P=H==="video";return _.createElement(Wk,{className:r,PaperProps:{ref:E,sx:{width:"900px",maxWidth:"100%",boxSizing:"border-box",scrollbarGutter:"stable",padding:P?"0 25px 24px 40px":"24px 25px 24px 40px",".MitAiChat--title":{paddingTop:"0px"}}},anchor:"right",open:s,onClose:()=>c(!1)},_.createElement(jL,{variant:"text",size:"medium",onClick:()=>c(!1),"aria-label":"Close"},_.createElement(Fd,null)),H==="problem"?_.createElement(tT,{payload:D,transformBody:t,fetchOpts:i}):null,H==="video"?_.createElement(BD,{value:m},_.createElement(VL,{styleVariant:"chat",onChange:(M,Y)=>b(Y)},_.createElement(Eh,{value:"chat",label:"Chat"}),_.createElement(Eh,{value:"flashcards",label:"Flashcards",onMouseDown:k,onFocus:R}),_.createElement(Eh,{value:"summary",label:"Summary"})),_.createElement(Ph,{value:"chat"},_.createElement(tT,{payload:D,transformBody:t,fetchOpts:i})),_.createElement(Ph,{value:"flashcards"},_.createElement(YL,{flashcards:T==null?void 0:T.flashcards,wasKeyboardFocus:y})),_.createElement(Ph,{value:"summary"},_.createElement(Fl,{variant:"h4",component:"h4"}),_.createElement(qL,null,_.createElement(eg,{rehypePlugins:[yO]},(T==null?void 0:T.summary)??"")))):null)},ZL={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"},JL={defaultProps:{size:"medium",color:"default",variant:"outlined",deleteIcon:_.createElement(Fd,{"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}}}]},ew={colors:ot,dimensions:{headerHeight:"72px",headerHeightSm:"60px"}},tw={values:{xs:0,sm:600,md:900,lg:1320,xl:1536}},nw={custom:ew,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:HE,breakpoints:tw,components:{MuiButtonBase:ZL,MuiTypography:YD,MuiMenu:{styleOverrides:{paper:{borderRadius:"4px"}}},MuiAutocomplete:{styleOverrides:{paper:{borderRadius:"4px"},popupIndicator:{paddingRight:0,marginRight:0}}},MuiChip:JL}},nT=e=>Ws(Bn(nw,e)),rw=nT(),aw=({children:e,theme:t=rw})=>_.createElement(zD,{theme:t},e);var iw=function(t,r,i){for(var l=0,s=0;l=s,s=qn(),l===38&&s===12&&(r[i]=1),!ai(s);)On();return zi(t,Sn)},uw=function(t,r){var i=-1,l=44;do switch(ai(l)){case 0:l===38&&qn()===12&&(r[i]=1),t[i]+=iw(Sn-1,r,i);break;case 2:t[i]+=el(l);break;case 4:if(l===44){t[++i]=qn()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Wu(l)}while(l=On());return t},lw=function(t,r){return Of(uw(Rf(t),r))},rT=new WeakMap,ow=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&&!rT.get(i))&&!l){rT.set(t,!0);for(var s=[],c=lw(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]}}},sw=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function aT(e,t){switch(rm(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+_a+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+Le(e,/(\w+).+(:[^]+)/,De+"box-$1$2"+pt+"flex-$1$2")+e;case 5443:return De+e+pt+"flex-item-"+Le(e,/flex-|-self/,"")+e;case 4675:return De+e+pt+"flex-line-pack"+Le(e,/align-content|flex-|-self/,"")+e;case 5548:return De+e+pt+Le(e,"shrink","negative")+e;case 5292:return De+e+pt+Le(e,"basis","preferred-size")+e;case 6060:return De+"box-"+Le(e,"-grow","")+De+e+pt+Le(e,"grow","positive")+e;case 4554:return De+Le(e,/([^-])(transform)/g,"$1"+De+"$2")+e;case 6187:return Le(Le(Le(e,/(zoom-|grab)/,De+"$1"),/(image-set)/,De+"$1"),e,"")+e;case 5495:case 3959:return Le(e,/(image-set\([^]*)/,De+"$1$`$1");case 4968:return Le(Le(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 Le(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(ur(e)-1-t>6)switch(Bt(e,t+1)){case 109:if(Bt(e,t+4)!==45)break;case 102:return Le(e,/(.+:)(.+)-([^]+)/,"$1"+De+"$2-$3$1"+_a+(Bt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zu(e,"stretch")?aT(Le(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bt(e,t+1)!==115)break;case 6444:switch(Bt(e,ur(e)-3-(~Zu(e,"!important")&&10))){case 107:return Le(e,":",":"+De)+e;case 101:return Le(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+Le(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return De+e+pt+Le(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return De+e+pt+Le(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return De+e+pt+e+e}return e}var cw=function(t,r,i,l){if(t.length>-1&&!t.return)switch(t.type){case us:t.return=aT(t.value,t.length);break;case xf:return Br([Mr(t,{value:Le(t.value,"@","@"+De)})],l);case is:if(t.length)return um(t.props,function(s){switch(im(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Br([Mr(t,{props:[Le(s,/:(read-\w+)/,":"+_a+"$1")]})],l);case"::placeholder":return Br([Mr(t,{props:[Le(s,/:(plac\w+)/,":"+De+"input-$1")]}),Mr(t,{props:[Le(s,/:(plac\w+)/,":"+_a+"$1")]}),Mr(t,{props:[Le(s,/:(plac\w+)/,pt+"input-$1")]})],l)}return""})}},fw=[cw],dw=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 k=x.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var l=t.stylisPlugins||fw,s={},c,d=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var k=x.getAttribute("data-emotion").split(" "),R=1;R<k.length;R++)s[k[R]]=!0;d.push(x)});var p,m=[ow,sw];{var b,E=[fm,hm(function(x){b.insert(x)})],T=dm(m.concat(l,E)),y=function(k){return Br(om(k),T)};p=function(k,R,H,D){b=H,y(k?k+"{"+R.styles+"}":R.styles),D&&(O.inserted[R.name]=!0)}}var O={key:r,sheet:new tm({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 O.sheet.hydrate(d),O};const hw=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=dw({key:"css",prepend:!0,container:r}),s=nT({components:{MuiPopover:{defaultProps:{container:i}},MuiPopper:{defaultProps:{container:i}},MuiModal:{defaultProps:{container:i}}}});$A.createRoot(i).render(_.createElement(RC,{value:l},_.createElement(aw,{theme:s},_.createElement(WL,{...e}))))};ar.init=hw,Object.defineProperty(ar,Symbol.toStringTag,{value:"Module"})});
|
|
207
|
+
*/var U2;function KD(){if(U2)return x0;U2=1;var e=rs();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(),O=i({inst:{value:y,getSnapshot:S}}),_=O[0].inst,L=O[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 x0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:b,x0}var H2;function WD(){return H2||(H2=1,A0.exports=KD()),A0.exports}var ZD=WD();const Ia=()=>{},zn=Ia(),_0=Object,mt=e=>e===zn,Gr=e=>typeof e=="function",wa=(e,t)=>({...e,...t}),JD=e=>Gr(e.then),oc=new WeakMap;let eL=0;const no=e=>{const t=typeof e,r=e&&e.constructor,i=r==Date;let l,s;if(_0(e)===e&&!i&&r!=RegExp){if(l=oc.get(e),l)return l;if(l=++eL+"~",oc.set(e,l),r==Array){for(l="@",s=0;s<e.length;s++)l+=no(e[s])+",";oc.set(e,l)}if(r==_0){l="#";const c=_0.keys(e).sort();for(;!mt(s=c.pop());)mt(e[s])||(l+=s+":"+no(e[s])+",");oc.set(e,l)}}else l=i?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return l},ua=new WeakMap,v0={},sc={},R0="undefined",cc=typeof window!=R0,O0=typeof document!=R0,tL=()=>cc&&typeof window.requestAnimationFrame!=R0,F2=(e,t)=>{const r=ua.get(e);return[()=>!mt(t)&&e.get(t)||v0,i=>{if(!mt(t)){const l=e.get(t);t in sc||(sc[t]=l),r[5](t,wa(l,i),l||v0)}},r[6],()=>!mt(t)&&t in sc?sc[t]:!mt(t)&&e.get(t)||v0]};let N0=!0;const nL=()=>N0,[k0,D0]=cc&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ia,Ia],rL=()=>{const e=O0&&document.visibilityState;return mt(e)||e!=="hidden"},aL=e=>(O0&&document.addEventListener("visibilitychange",e),k0("focus",e),()=>{O0&&document.removeEventListener("visibilitychange",e),D0("focus",e)}),iL=e=>{const t=()=>{N0=!0,e()},r=()=>{N0=!1};return k0("online",t),k0("offline",r),()=>{D0("online",t),D0("offline",r)}},uL={isOnline:nL,isVisible:rL},lL={initFocus:aL,initReconnect:iL},z2=!xt.useId,ro=!cc||"Deno"in window,oL=e=>tL()?window.requestAnimationFrame(e):setTimeout(e,1),L0=ro?x.useEffect:x.useLayoutEffect,I0=typeof navigator<"u"&&navigator.connection,Y2=!ro&&I0&&(["slow-2g","2g"].includes(I0.effectiveType)||I0.saveData),w0=e=>{if(Gr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?no(e):"",[e,t]};let sL=0;const M0=()=>++sL,j2=0,V2=1,$2=2;var ao={__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=[],O=t.keys();for(const _ of O)!/^\$(inf|sub)\$/.test(_)&&S(t.get(_)._k)&&y.push(_);return Promise.all(y.map(E))}return E(r);async function E(S){const[y]=w0(S);if(!y)return;const[O,_]=F2(t,y),[L,R,H,k]=ua.get(t),P=()=>{const Q=L[y];return(Gr(s.revalidate)?s.revalidate(O().data,S):s.revalidate!==!1)&&(delete H[y],delete k[y],Q&&Q[0])?Q[0]($2).then(()=>O().data):O().data};if(e.length<3)return P();let I=i,M;const Y=M0();R[y]=[Y,0];const ae=!mt(p),j=O(),A=j.data,V=j._c,K=mt(V)?A:V;if(ae&&(p=Gr(p)?p(K,A):p,_({data:p,_c:K})),Gr(I))try{I=I(K)}catch(Q){M=Q}if(I&&JD(I))if(I=await I.catch(Q=>{M=Q}),Y!==R[y][0]){if(M)throw M;return I}else M&&ae&&m(M)&&(c=!0,_({data:K,_c:zn}));if(c&&!M)if(Gr(c)){const Q=c(I,K);_({data:Q,error:zn,_c:zn})}else _({data:I,error:zn,_c:zn});if(R[y][1]=M0(),Promise.resolve(P()).then(()=>{_({_c:zn})}),M){if(b)throw M;return}return I}}const G2=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},cL=(e,t)=>{if(!ua.has(e)){const r=wa(lL,t),i={},l=q2.bind(zn,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 O of y)O(E,S)},m=()=>{if(!ua.has(e)&&(ua.set(e,[i,{},{},{},l,p,d]),!ro)){const b=r.initFocus(setTimeout.bind(zn,G2.bind(zn,i,j2))),E=r.initReconnect(setTimeout.bind(zn,G2.bind(zn,i,V2)));s=()=>{b&&b(),E&&E(),ua.delete(e)}}};return m(),[e,l,m,s]}return[e,ua.get(e)[4]]},fL=(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)},dL=(e,t)=>no(e)==no(t),[X2,hL]=cL(new Map),pL=wa({onLoadingSlow:Ia,onSuccess:Ia,onError:Ia,onErrorRetry:fL,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:dL,isPaused:()=>!1,cache:X2,mutate:hL,fallback:{}},uL),mL=(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},gL=x.createContext({}),bL="$inf$",Q2=cc&&window.__SWR_DEVTOOLS_USE__,EL=Q2?window.__SWR_DEVTOOLS_USE__:[],yL=()=>{Q2&&(window.__SWR_DEVTOOLS_REACT__=xt)},TL=e=>Gr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],SL=()=>wa(pL,x.useContext(gL)),CL=e=>(t,r,i)=>e(t,r&&((...s)=>{const[c]=w0(t),[,,,d]=ua.get(X2);if(c.startsWith(bL))return r(...s);const p=d[c];return mt(p)?r(...s):(delete d[c],p)}),i),AL=EL.concat(CL),xL=e=>function(...r){const i=SL(),[l,s,c]=TL(r),d=mL(i,c);let p=e;const{use:m}=d,b=(m||[]).concat(AL);for(let E=b.length;E--;)p=b[E](p);return p(l,s||d.fetcher||null,d)},_L=(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())}};yL();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)}),B0={dedupe:!0},fc=xL((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,O,_,L]=ua.get(i),[R,H]=w0(e),k=x.useRef(!1),P=x.useRef(!1),I=x.useRef(R),M=x.useRef(t),Y=x.useRef(r),ae=()=>Y.current,j=()=>ae().isVisible()&&ae().isOnline(),[A,V,K,Q]=F2(i,R),Z=x.useRef({}).current,re=mt(c)?r.fallback[R]:c,X=(ve,Re)=>{for(const Ce in Z){const Be=Ce;if(Be==="data"){if(!l(ve[Be],Re[Be])&&(!mt(ve[Be])||!l(Oe,Re[Be])))return!1}else if(Re[Be]!==ve[Be])return!1}return!0},se=x.useMemo(()=>{const ve=!R||!t?!1:mt(d)?ae().isPaused()||s?!1:mt(p)?!0:p:d,Re=ct=>{const St=wa(ct);return delete St._k,ve?{isValidating:!0,isLoading:!0,...St}:St},Ce=A(),Be=Q(),it=Re(Ce),je=Ce===Be?it:Re(Be);let Ue=it;return[()=>{const ct=Re(A());return X(ct,Ue)?(Ue.data=ct.data,Ue.isLoading=ct.isLoading,Ue.isValidating=ct.isValidating,Ue.error=ct.error,Ue):(Ue=ct,ct)},()=>je]},[i,R]),ne=ZD.useSyncExternalStore(x.useCallback(ve=>K(R,(Re,Ce)=>{X(Ce,Re)||ve()}),[i,R]),se[0],se[1]),be=!k.current,C=y[R]&&y[R].length>0,J=ne.data,oe=mt(J)?re:J,D=ne.error,ce=x.useRef(oe),Oe=S?mt(J)?ce.current:J:oe,Se=C&&!mt(D)?!1:be&&!mt(d)?d:ae().isPaused()?!1:s?mt(oe)?!1:p:mt(oe)||p,tt=!!(R&&t&&be&&Se),Me=mt(ne.isValidating)?tt:ne.isValidating,$e=mt(ne.isLoading)?tt:ne.isLoading,xe=x.useCallback(async ve=>{const Re=M.current;if(!R||!Re||P.current||ae().isPaused())return!1;let Ce,Be,it=!0;const je=ve||{},Ue=!_[R]||!je.dedupe,ct=()=>z2?!P.current&&R===I.current&&k.current:R===I.current,St={isValidating:!1,isLoading:!1},rn=()=>{V(St)},_n=()=>{const Xe=_[R];Xe&&Xe[1]===Be&&delete _[R]},we={isValidating:!0};mt(A().data)&&(we.isLoading=!0);try{if(Ue&&(V(we),r.loadingTimeout&&mt(A().data)&&setTimeout(()=>{it&&ct()&&ae().onLoadingSlow(R,r)},r.loadingTimeout),_[R]=[Re(H),M0()]),[Ce,Be]=_[R],Ce=await Ce,Ue&&setTimeout(_n,r.dedupingInterval),!_[R]||_[R][1]!==Be)return Ue&&ct()&&ae().onDiscarded(R),!1;St.error=zn;const Xe=O[R];if(!mt(Xe)&&(Be<=Xe[0]||Be<=Xe[1]||Xe[1]===0))return rn(),Ue&&ct()&&ae().onDiscarded(R),!1;const $t=A().data;St.data=l($t,Ce)?$t:Ce,Ue&&ct()&&ae().onSuccess(Ce,R,r)}catch(Xe){_n();const $t=ae(),{shouldRetryOnError:ee}=$t;$t.isPaused()||(St.error=Xe,Ue&&ct()&&($t.onError(Xe,R,$t),(ee===!0||Gr(ee)&&ee(Xe))&&(!ae().revalidateOnFocus||!ae().revalidateOnReconnect||j())&&$t.onErrorRetry(Xe,R,$t,de=>{const Ae=y[R];Ae&&Ae[0]&&Ae[0](ao.ERROR_REVALIDATE_EVENT,de)},{retryCount:(je.retryCount||0)+1,dedupe:!0})))}return it=!1,rn(),!0},[R,i]),Ge=x.useCallback((...ve)=>q2(i,I.current,...ve),[]);if(L0(()=>{M.current=t,Y.current=r,mt(J)||(ce.current=J)}),L0(()=>{if(!R)return;const ve=xe.bind(zn,B0);let Re=0;const Be=_L(R,y,(it,je={})=>{if(it==ao.FOCUS_EVENT){const Ue=Date.now();ae().revalidateOnFocus&&Ue>Re&&j()&&(Re=Ue+ae().focusThrottleInterval,ve())}else if(it==ao.RECONNECT_EVENT)ae().revalidateOnReconnect&&j()&&ve();else{if(it==ao.MUTATE_EVENT)return xe();if(it==ao.ERROR_REVALIDATE_EVENT)return xe(je)}});return P.current=!1,I.current=R,k.current=!0,V({_k:H}),Se&&(mt(oe)||ro?ve():oL(ve)),()=>{P.current=!0,Be()}},[R]),L0(()=>{let ve;function Re(){const Be=Gr(m)?m(A().data):m;Be&&ve!==-1&&(ve=setTimeout(Ce,Be))}function Ce(){!A().error&&(b||ae().isVisible())&&(E||ae().isOnline())?xe(B0).then(Re):Re()}return Re(),()=>{ve&&(clearTimeout(ve),ve=-1)}},[m,b,E,R]),x.useDebugValue(Oe),s&&mt(oe)&&R){if(!z2&&ro)throw new Error("Fallback data is required when using suspense in SSR.");M.current=t,Y.current=r,P.current=!1;const ve=L[R];if(!mt(ve)){const Re=Ge(ve);K2(Re)}if(mt(D)){const Re=xe(B0);mt(Oe)||(Re.status="fulfilled",Re.value=!0),K2(Re)}else throw D}return{mutate:Ge,get data(){return Z.data=!0,Oe},get error(){return Z.error=!0,D},get isValidating(){return Z.isValidating=!0,Me},get isLoading(){return Z.isLoading=!0,$e}}});var P0,W2;function vL(){if(W2)return P0;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 P0=e,P0}var RL=vL();const OL=ir(RL);function Z2(e,t){return t!=null?OL(e,t):e}var NL=async(e,t,r,i,l,s,c,d,p,m,b,E,S,y,O,_,L)=>{var R;const H=c.current;r(t.messages,!1);const k=y?t.messages:t.messages.map(({role:I,content:M,experimental_attachments:Y,data:ae,annotations:j,toolInvocations:A})=>({role:I,content:M,...Y!==void 0&&{experimental_attachments:Y},...ae!==void 0&&{data:ae},...j!==void 0&&{annotations:j},...A!==void 0&&{toolInvocations:A}})),P=l.current;return await QD({api:e,body:(R=O==null?void 0:O({messages:t.messages,requestData:t.data,requestBody:t.body}))!=null?R:{messages:k,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 kL({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:O,generateId:_=M2,fetch:L,keepLastMessageOnError:R=!0,experimental_throttle:H}={}){const k=x.useId(),P=t??k,I=typeof e=="string"?[e,P]:P,[M]=x.useState([]),{data:Y,mutate:ae}=fc([I,"messages"],null,{fallbackData:r??M}),j=x.useRef(Y||[]);x.useEffect(()=>{j.current=Y||[]},[Y]);const{data:A,mutate:V}=fc([I,"streamData"],null),K=x.useRef(A);x.useEffect(()=>{K.current=A},[A]);const{data:Q=!1,mutate:Z}=fc([I,"loading"],null),{data:re=void 0,mutate:X}=fc([I,"error"],null),se=x.useRef(null),ne=x.useRef({credentials:S,headers:y,body:O});x.useEffect(()=>{ne.current={credentials:S,headers:y,body:O}},[S,y,O]);const be=x.useCallback(async xe=>{const Ge=j.current.length;try{Z(!0),X(void 0);const Ce=new AbortController;se.current=Ce,await NL(e,xe,Z2(ae,H),Z2(V,H),K,ne,j,se,_,p,b,m,s,l,c,L,R),se.current=null}catch(Ce){if(Ce.name==="AbortError")return se.current=null,null;E&&Ce instanceof Error&&E(Ce),X(Ce)}finally{Z(!1)}const ve=j.current,Re=ve[ve.length-1];ve.length>Ge&&Re!=null&&d>1&&J2(Re)&&DL(ve)<d&&await be({messages:ve})},[ae,Z,e,ne,m,b,E,X,V,K,p,l,c,s,d,j,se,_,L,R,H]),C=x.useCallback(async(xe,{data:Ge,headers:ve,body:Re,experimental_attachments:Ce}={})=>{var Be,it;const je=await P2(Ce),Ue=j.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 be({messages:Ue,headers:ve,body:Re,data:Ge})},[be,_]),J=x.useCallback(async({data:xe,headers:Ge,body:ve}={})=>{const Re=j.current;if(Re.length===0)return null;const Ce=Re[Re.length-1];return be({messages:Ce.role==="assistant"?Re.slice(0,-1):Re,headers:Ge,body:ve,data:xe})},[be]),oe=x.useCallback(()=>{se.current&&(se.current.abort(),se.current=null)},[]),D=x.useCallback(xe=>{typeof xe=="function"&&(xe=xe(j.current)),ae(xe,!1),j.current=xe},[ae]),ce=x.useCallback(xe=>{typeof xe=="function"&&(xe=xe(K.current)),V(xe,!1),K.current=xe},[V]),[Oe,Se]=x.useState(i),tt=x.useCallback(async(xe,Ge={},ve)=>{var Re;if((Re=xe==null?void 0:xe.preventDefault)==null||Re.call(xe),!Oe&&!Ge.allowEmptySubmit)return;ve&&(ne.current={...ne.current,...ve});const Ce=await P2(Ge.experimental_attachments),it={messages:!Oe&&!Ce.length&&Ge.allowEmptySubmit?j.current:j.current.concat({id:_(),createdAt:new Date,role:"user",content:Oe,experimental_attachments:Ce.length>0?Ce:void 0}),headers:Ge.headers,body:Ge.body,data:Ge.data};be(it),Se("")},[Oe,_,be]);return{messages:Y||[],setMessages:D,data:A,setData:ce,error:re,append:C,reload:J,stop:oe,input:Oe,setInput:Se,handleInputChange:xe=>{Se(xe.target.value)},handleSubmit:tt,isLoading:Q,addToolResult:({toolCallId:xe,result:Ge})=>{const ve=j.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);ae(ve,!1);const Re=ve[ve.length-1];J2(Re)&&be({messages:ve})}}}function J2(e){return e.role==="assistant"&&e.toolInvocations&&e.toolInvocations.length>0&&e.toolInvocations.every(t=>"result"in t)}function DL(e){let t=0;for(let r=e.length-1;r>=0&&e[r].role==="assistant";r--)t++;return t}var LL=kL;const IL=e=>e,wL=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??IL,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)},ML=(e,t)=>{const r=x.useMemo(()=>wL(e),[e]);return LL({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})},BL=e=>e.scrollHeight-e.clientHeight-e.scrollTop,PL=e=>{e.scrollTop=e.scrollHeight},UL=({scrollElement:e,contentElement:t,threshold:r=2})=>{x.useEffect(()=>{const i=()=>{e&&BL(e)<r&&PL(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"},HL=Fe.div(),FL=Fe.div(({externalScroll:e,theme:t})=>({padding:"16px 28px 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 28px",[t.breakpoints.down("md")]:{padding:"0 16px"}}})),zL=Fe.div(({externalScroll:e})=>({width:"100%",height:e?"auto":"100%",minHeight:e?"100%":"auto",display:"flex",flexDirection:"column"})),YL=Fe(Gk)(({externalScroll:e})=>({display:"flex",flexDirection:"column",flex:1,padding:"14px 0",overflow:e?"visible":"auto",gap:"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,padding:"12px 16px",...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"},borderRadius:"12px",[`.${bn.messageRowAssistant} &`]:{padding:"12px 16px 12px 0"},[`.${bn.messageRowUser} &`]:{borderRadius:"8px 0px 8px 8px",backgroundColor:e.custom.colors.lightGray1}})),jL=Fe.div({alignSelf:"flex-end",alignItems:"end",display:"flex",flexDirection:"column",gap:"12px"}),VL=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"})),$L=Fe(Ob)(({theme:e})=>({fill:e.custom.colors.red})),qL=Fe(R8)(({theme:e})=>({fill:e.custom.colors.red})),GL=Fe.div(({externalScroll:e,theme:t})=>({padding:"12px 0 16px",...e&&{position:"sticky",bottom:0,background:t.custom.colors.white}})),XL=Fe(bi)(({theme:e})=>({color:e.custom.colors.silverGrayDark,marginTop:"16px",textAlign:"center"})),QL=({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 C,J;const O=x.useRef(null),_=x.useRef(null),[L,R]=x.useState(t),H=x.useRef(null),[k,P]=x.useState(),{messages:I,input:M,handleInputChange:Y,handleSubmit:ae,append:j,isLoading:A,stop:V,error:K}=ML(s,{initialMessages:k,id:E});UL({scrollElement:b||_.current,contentElement:b?_.current:null,threshold:200}),x.useEffect(()=>{if(i){const oe=Math.random().toString().slice(2);P(i.map((D,ce)=>({...D,id:`initial-${oe}-${ce}`})))}},[i]);const Q=x.useMemo(()=>{const oe=k==null?void 0:k.map(D=>D.id);return I.map(D=>{if(D.role==="assistant"&&!(oe!=null&&oe.includes(D.id))){const ce=c?c(D.content):D.content;return{...D,content:ce}}return D})},[c,I,k]),Z=Q.length===((k==null?void 0:k.length)||0),re=!Z&&!K&&((C=Q[Q.length-1])==null?void 0:C.role)==="user",X=A&&((J=Q[Q.length-1])==null?void 0:J.role)!=="user",se=()=>{const oe=b||_.current;oe==null||oe.scrollBy({behavior:"instant",top:oe==null?void 0:oe.scrollHeight})},ne=Q[Q.length-1],be=!!b;return x.createElement(HL,{className:m,ref:O,key:E},L?x.createElement(jk,{className:bn.entryScreenContainer,title:e,conversationStarters:r,onPromptSubmit:oe=>{oe.trim()!==""&&(R(!1),e&&!k&&P([{role:"assistant",content:e,id:`initial-${Math.random().toString().slice(2)}-0`}]),j({role:"user",content:oe}))}}):x.createElement(FL,{className:bn.chatScreenContainer,"data-testid":"ai-chat-screen",externalScroll:be,ref:H},x.createElement(zL,{className:Fl(m,bn.root),externalScroll:be,...y},x.createElement(bD,{askTimTitle:l,externalScroll:be,className:Fl(m,bn.title)}),x.createElement(YL,{className:bn.messagesContainer,externalScroll:be,ref:_},Q.map(oe=>x.createElement(ey,{key:oe.id,"data-chat-role":oe.role,className:Fl(bn.messageRow,{[bn.messageRowUser]:oe.role==="user",[bn.messageRowAssistant]:oe.role==="assistant"})},x.createElement(ty,{className:bn.message},x.createElement(m2,null,oe.role==="user"?"You said: ":"Assistant said: "),x.createElement(tg,{skipHtml:!0},oe.content)))),Z?x.createElement(jL,null,r==null?void 0:r.map(oe=>x.createElement(VL,{className:bn.conversationStarter,key:oe.content,onClick:()=>{se(),j({role:"user",content:oe.content})}},oe.content))):null,re?x.createElement(ey,{className:Fl(bn.messageRow,bn.messageRowAssistant),key:"loading"},x.createElement(ty,null,x.createElement(v8,null))):null,K?x.createElement(pD,{severity:"error",closable:!0},"An unexpected error has occurred."):null),x.createElement(GL,{externalScroll:be,className:bn.bottomSection},x.createElement("form",{onSubmit:oe=>{oe.preventDefault(),A&&X?V():(se(),ae(oe))}},x.createElement(h2,{fullWidth:!0,size:"chat",className:bn.input,placeholder:p,name:"message",sx:{flex:1},value:M,onChange:Y,endAdornment:A?x.createElement(S0,{"aria-label":"Stop",onClick:V,disabled:!X},x.createElement(qL,null)):x.createElement(S0,{"aria-label":"Send",type:"submit",onClick:oe=>{if(M.trim()===""){oe.preventDefault();return}se(),ae(oe)}},x.createElement($L,null))})),x.createElement(XL,{variant:"body3"},"AI-generated content may be incorrect.")),x.createElement(Qk,{isLoading:A,loadingMessages:d,message:(ne==null?void 0:ne.role)==="assistant"?ne==null?void 0:ne.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])}}),io=Fe(x.forwardRef(function(t,r){return x.createElement(XE,{ref:r,type:"button",...t})}))(({size:e=b0.size,responsive:t,theme:r})=>[ny(e),t&&{[r.breakpoints.down("sm")]:ny($E[e])}]);io.displayName="ActionButton";const KL=io.withComponent(({Component:e,...t})=>x.createElement(QE,{Component:e,...t}));KL.displayName="ActionButtonLink";const WL=Fe.div``,ZL=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"})),JL=Fe.div({display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",marginTop:"24px"}),eI=Fe.div(({theme:e})=>({color:e.custom.colors.silverGrayDark,...e.typography.body2})),ry=x.forwardRef(({content:e,"aria-label":t},r)=>{const[i,l]=x.useState(0);x.useEffect(()=>l(0),[e]);const s=c=>{(c.key==="Enter"||c.key===" ")&&l(i===0?1:0)};return x.createElement(ZL,{ref:r,onClick:()=>l(i===0?1:0),onKeyDown:s,tabIndex:0,"aria-label":t},x.createElement(bi,{variant:"h5"},i===0?`Q: ${e.question}`:`Answer: ${e.answer}`))});ry.displayName="Flashcard";const tI=({flashcards:e,wasKeyboardFocus:t})=>{const[r,i]=x.useState(0),l=x.useRef(null),s=x.useRef(null),c=x.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 x.useEffect(()=>{var d;(d=s.current)==null||d.focus()},[r]),x.useEffect(()=>(window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)),[c]),e?x.createElement(WL,{ref:l},x.createElement(ry,{ref:s,content:e[r],"aria-label":`Flashcard ${r+1} of ${e.length}`}),x.createElement(JL,null,x.createElement(io,{onClick:()=>i(r-1),disabled:r===0,variant:"secondary",color:"secondary",size:"small"},x.createElement(x8,{"aria-hidden":!0})),x.createElement(eI,null,r+1," / ",e.length),x.createElement(io,{onClick:()=>i(r+1),disabled:r===e.length-1,variant:"secondary",color:"secondary",size:"small"},x.createElement(_8,{"aria-hidden":!0})))):null},nI=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})),rI=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"}})),aI=Fe(io)(({theme:e})=>({backgroundColor:e.custom.colors.lightGray2,"&&:hover":{backgroundColor:e.custom.colors.red,color:e.custom.colors.white},zIndex:3,flexShrink:0})),iI=Fe(X9)(({theme:e})=>({padding:"0 0 16px",backgroundColor:e.custom.colors.white,position:"sticky",top:"84px",zIndex:2,overflow:"visible"})),U0=Fe(dk)({padding:"0",height:"calc(100% - 138px)",position:"relative"}),uI=Fe(QL)(({hasTabs:e})=>({".MitAiChat--chatScreenContainer":{padding:e?0:"0 25px 0 40px"},".MitAiChat--messagesContainer":{paddingTop:e?0:"88px"}})),lI=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"}})),oI=e=>e,sI={credentials:"include"},cI=e=>{const[t,r]=x.useState(null),[i,l]=x.useState(!1);return x.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}},ay=({payload:e,transformBody:t,fetchOpts:r,scrollElement:i,hasTabs:l})=>e?x.createElement(uI,{chatId:e.chatId,conversationStarters:e.conversationStarters,initialMessages:e.initialMessages,entryScreenEnabled:!1,scrollElement:i,requestOpts:{transformBody:s=>({...e.requestBody,...t==null?void 0:t(s)}),apiUrl:e.apiUrl,fetchOpts:{...sI,...r}},hasTabs:l}):null,fI=({messageOrigin:e,transformBody:t=oI,className:r,fetchOpts:i,target:l})=>{var Y,ae;const[s,c]=x.useState(!1),[d,p]=x.useState(null),[m,b]=x.useState("chat"),{response:E}=cI((Y=d==null?void 0:d.summary)==null?void 0:Y.apiUrl),[S,y]=x.useState(!1),O=x.useRef(!1),_=()=>{O.current=!0},L=()=>{O.current||y(!0),O.current=!1},[R,H]=x.useState(null),k=j=>{j&&H(j)};if(x.useEffect(()=>{const j=A=>{A.origin===e&&A.data.type==="smoot-design::tutor-drawer-open"&&A.data.payload.target===l&&(c(!0),p(A.data.payload))};return window.addEventListener("message",j),()=>{window.removeEventListener("message",j)}},[e,l]),!d)return null;const{blockType:P,chat:I}=d,M=P==="video";return x.createElement(ZN,{className:r,PaperProps:{ref:k,sx:{width:"900px",maxWidth:"100%",boxSizing:"border-box",scrollbarGutter:"stable",padding:"0 25px 0 40px"}},anchor:"right",open:s,onClose:()=>c(!1)},x.createElement(nI,null,x.createElement(rI,null,x.createElement(Fd,null),x.createElement(bi,{variant:"body1"},(ae=d.title)!=null&&ae.includes("AskTIM")?x.createElement(x.Fragment,null,"Ask",x.createElement("strong",null,"TIM"),d.title.replace("AskTIM","")):d.title)),x.createElement(aI,{variant:"text",size:"medium",onClick:()=>c(!1),"aria-label":"Close"},x.createElement(Rb,null))),P==="problem"?x.createElement(ay,{payload:I,transformBody:t,fetchOpts:i,scrollElement:R,hasTabs:M}):null,P==="video"?x.createElement(P9,{value:m},x.createElement(iI,{styleVariant:"chat",onChange:(j,A)=>b(A)},x.createElement(E0,{value:"chat",label:"Chat"}),x.createElement(E0,{value:"flashcards",label:"Flashcards",onMouseDown:_,onFocus:L}),x.createElement(E0,{value:"summary",label:"Summary"})),x.createElement(U0,{value:"chat"},x.createElement(ay,{payload:I,transformBody:t,fetchOpts:i,scrollElement:R,hasTabs:M})),x.createElement(U0,{value:"flashcards"},x.createElement(tI,{flashcards:E==null?void 0:E.flashcards,wasKeyboardFocus:S})),x.createElement(U0,{value:"summary"},x.createElement(bi,{variant:"h4",component:"h4"}),x.createElement(lI,null,x.createElement(tg,{rehypePlugins:[A8]},(E==null?void 0:E.summary)??"")))):null)},dI={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"},hI={defaultProps:{size:"medium",color:"default",variant:"outlined",deleteIcon:x.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}}}]},pI={colors:ot,dimensions:{headerHeight:"72px",headerHeightSm:"60px"}},mI={values:{xs:0,sm:600,md:900,lg:1320,xl:1536}},gI={custom:pI,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:mI,components:{MuiButtonBase:dI,MuiTypography:j9,MuiMenu:{styleOverrides:{paper:{borderRadius:"4px"}}},MuiAutocomplete:{styleOverrides:{paper:{borderRadius:"4px"},popupIndicator:{paddingRight:0,marginRight:0}}},MuiChip:hI}},iy=e=>Ws(Bn(gI,e)),bI=iy(),EI=({children:e,theme:t=bI})=>x.createElement(Y9,{theme:t},e);var yI=function(t,r,i){for(var l=0,s=0;l=s,s=qn(),l===38&&s===12&&(r[i]=1),!ai(s);)Nn();return Yi(t,Cn)},TI=function(t,r){var i=-1,l=44;do switch(ai(l)){case 0:l===38&&qn()===12&&(r[i]=1),t[i]+=yI(Cn-1,r,i);break;case 2:t[i]+=tl(l);break;case 4:if(l===44){t[++i]=qn()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Zu(l)}while(l=Nn());return t},SI=function(t,r){return Of(TI(Rf(t),r))},uy=new WeakMap,CI=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=SI(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]}}},AI=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(am(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(ur(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,ur(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 xI=function(t,r,i,l){if(t.length>-1&&!t.return)switch(t.type){case us:t.return=ly(t.value,t.length);break;case _f:return Br([Mr(t,{value:Ie(t.value,"@","@"+De)})],l);case is:if(t.length)return lm(t.props,function(s){switch(um(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""})}},_I=[xI],vI=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||_I,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(" "),R=1;R<L.length;R++)s[L[R]]=!0;d.push(_)});var p,m=[CI,AI];{var b,E=[dm,pm(function(_){b.insert(_)})],S=hm(m.concat(l,E)),y=function(L){return Br(sm(L),S)};p=function(L,R,H,k){b=H,y(L?L+"{"+R.styles+"}":R.styles),k&&(O.inserted[R.name]=!0)}}var O={key:r,sheet:new nm({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 O.sheet.hydrate(d),O};const RI=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=vI({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(x.createElement(kC,{value:l},x.createElement(EI,{theme:s},x.createElement(fI,{...e}))))};ar.init=RI,Object.defineProperty(ar,Symbol.toStringTag,{value:"Module"})});
|