@mitodl/smoot-design 6.6.2 → 6.7.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.
@@ -1,4 +1,4 @@
1
- (function(ur,Gn){typeof exports=="object"&&typeof module<"u"?Gn(exports):typeof define=="function"&&define.amd?define(["exports"],Gn):(ur=typeof globalThis<"u"?globalThis:ur||self,Gn(ur.remoteTutorDrawer={}))})(this,function(ur){"use strict";var oB=Object.defineProperty;var lB=(ur,Gn,or)=>Gn in ur?oB(ur,Gn,{enumerable:!0,configurable:!0,writable:!0,value:or}):ur[Gn]=or;var Xl=(ur,Gn,or)=>lB(ur,typeof Gn!="symbol"?Gn+"":Gn,or);function Gn(e,t){for(var r=0;r<t.length;r++){const i=t[r];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(i,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function or(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gf={exports:{}},We={};/**
1
+ (function(ur,Gn){typeof exports=="object"&&typeof module<"u"?Gn(exports):typeof define=="function"&&define.amd?define(["exports"],Gn):(ur=typeof globalThis<"u"?globalThis:ur||self,Gn(ur.remoteTutorDrawer={}))})(this,function(ur){"use strict";var oB=Object.defineProperty;var sB=(ur,Gn,lr)=>Gn in ur?oB(ur,Gn,{enumerable:!0,configurable:!0,writable:!0,value:lr}):ur[Gn]=lr;var Xo=(ur,Gn,lr)=>sB(ur,typeof Gn!="symbol"?Gn+"":Gn,lr);function Gn(e,t){for(var r=0;r<t.length;r++){const i=t[r];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in e)){const s=Object.getOwnPropertyDescriptor(i,l);s&&Object.defineProperty(e,l,s.get?s:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gf={exports:{}},We={};/**
2
2
  * @license React
3
3
  * react.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var im;function iC(){if(im)return We;im=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),b=Symbol.iterator;function T(S){return S===null||typeof S!="object"?null:(S=b&&S[b]||S["@@iterator"],typeof S=="function"?S:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,x={};function B(S,K,de){this.props=S,this.context=K,this.refs=x,this.updater=de||y}B.prototype.isReactComponent={},B.prototype.setState=function(S,K){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,K,"setState")},B.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function I(){}I.prototype=B.prototype;function P(S,K,de){this.props=S,this.context=K,this.refs=x,this.updater=de||y}var M=P.prototype=new I;M.constructor=P,v(M,B.prototype),M.isPureReactComponent=!0;var w=Array.isArray,D={H:null,A:null,T:null,S:null,V:null},N=Object.prototype.hasOwnProperty;function z(S,K,de,O,Ee,Re){return de=Re.ref,{$$typeof:e,type:S,key:K,ref:de!==void 0?de:null,props:Re}}function V(S,K){return z(S.type,K,void 0,void 0,void 0,S.props)}function j(S){return typeof S=="object"&&S!==null&&S.$$typeof===e}function _(S){var K={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(de){return K[de]})}var q=/\/+/g;function $(S,K){return typeof S=="object"&&S!==null&&S.key!=null?_(""+S.key):K.toString(36)}function J(){}function Z(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(J,J):(S.status="pending",S.then(function(K){S.status==="pending"&&(S.status="fulfilled",S.value=K)},function(K){S.status==="pending"&&(S.status="rejected",S.reason=K)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function ne(S,K,de,O,Ee){var Re=typeof S;(Re==="undefined"||Re==="boolean")&&(S=null);var Te=!1;if(S===null)Te=!0;else switch(Re){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(S.$$typeof){case e:case t:Te=!0;break;case E:return Te=S._init,ne(Te(S._payload),K,de,O,Ee)}}if(Te)return Ee=Ee(S),Te=O===""?"."+$(S,0):O,w(Ee)?(de="",Te!=null&&(de=Te.replace(q,"$&/")+"/"),ne(Ee,K,de,"",function(ut){return ut})):Ee!=null&&(j(Ee)&&(Ee=V(Ee,de+(Ee.key==null||S&&S.key===Ee.key?"":(""+Ee.key).replace(q,"$&/")+"/")+Te)),K.push(Ee)),1;Te=0;var Xe=O===""?".":O+":";if(w(S))for(var Be=0;Be<S.length;Be++)O=S[Be],Re=Xe+$(O,Be),Te+=ne(O,K,de,Re,Ee);else if(Be=T(S),typeof Be=="function")for(S=Be.call(S),Be=0;!(O=S.next()).done;)O=O.value,Re=Xe+$(O,Be++),Te+=ne(O,K,de,Re,Ee);else if(Re==="object"){if(typeof S.then=="function")return ne(Z(S),K,de,O,Ee);throw K=String(S),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return Te}function F(S,K,de){if(S==null)return S;var O=[],Ee=0;return ne(S,O,"","",function(Re){return K.call(de,Re,Ee++)}),O}function ae(S){if(S._status===-1){var K=S._result;K=K(),K.then(function(de){(S._status===0||S._status===-1)&&(S._status=1,S._result=de)},function(de){(S._status===0||S._status===-1)&&(S._status=2,S._result=de)}),S._status===-1&&(S._status=0,S._result=K)}if(S._status===1)return S._result.default;throw S._result}var ie=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)};function oe(){}return We.Children={map:F,forEach:function(S,K,de){F(S,function(){K.apply(this,arguments)},de)},count:function(S){var K=0;return F(S,function(){K++}),K},toArray:function(S){return F(S,function(K){return K})||[]},only:function(S){if(!j(S))throw Error("React.Children.only expected to receive a single React element child.");return S}},We.Component=B,We.Fragment=r,We.Profiler=o,We.PureComponent=P,We.StrictMode=i,We.Suspense=h,We.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,We.__COMPILER_RUNTIME={__proto__:null,c:function(S){return D.H.useMemoCache(S)}},We.cache=function(S){return function(){return S.apply(null,arguments)}},We.cloneElement=function(S,K,de){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var O=v({},S.props),Ee=S.key,Re=void 0;if(K!=null)for(Te in K.ref!==void 0&&(Re=void 0),K.key!==void 0&&(Ee=""+K.key),K)!N.call(K,Te)||Te==="key"||Te==="__self"||Te==="__source"||Te==="ref"&&K.ref===void 0||(O[Te]=K[Te]);var Te=arguments.length-2;if(Te===1)O.children=de;else if(1<Te){for(var Xe=Array(Te),Be=0;Be<Te;Be++)Xe[Be]=arguments[Be+2];O.children=Xe}return z(S.type,Ee,void 0,void 0,Re,O)},We.createContext=function(S){return S={$$typeof:c,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:s,_context:S},S},We.createElement=function(S,K,de){var O,Ee={},Re=null;if(K!=null)for(O in K.key!==void 0&&(Re=""+K.key),K)N.call(K,O)&&O!=="key"&&O!=="__self"&&O!=="__source"&&(Ee[O]=K[O]);var Te=arguments.length-2;if(Te===1)Ee.children=de;else if(1<Te){for(var Xe=Array(Te),Be=0;Be<Te;Be++)Xe[Be]=arguments[Be+2];Ee.children=Xe}if(S&&S.defaultProps)for(O in Te=S.defaultProps,Te)Ee[O]===void 0&&(Ee[O]=Te[O]);return z(S,Re,void 0,void 0,null,Ee)},We.createRef=function(){return{current:null}},We.forwardRef=function(S){return{$$typeof:d,render:S}},We.isValidElement=j,We.lazy=function(S){return{$$typeof:E,_payload:{_status:-1,_result:S},_init:ae}},We.memo=function(S,K){return{$$typeof:p,type:S,compare:K===void 0?null:K}},We.startTransition=function(S){var K=D.T,de={};D.T=de;try{var O=S(),Ee=D.S;Ee!==null&&Ee(de,O),typeof O=="object"&&O!==null&&typeof O.then=="function"&&O.then(oe,ie)}catch(Re){ie(Re)}finally{D.T=K}},We.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},We.use=function(S){return D.H.use(S)},We.useActionState=function(S,K,de){return D.H.useActionState(S,K,de)},We.useCallback=function(S,K){return D.H.useCallback(S,K)},We.useContext=function(S){return D.H.useContext(S)},We.useDebugValue=function(){},We.useDeferredValue=function(S,K){return D.H.useDeferredValue(S,K)},We.useEffect=function(S,K,de){var O=D.H;if(typeof de=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return O.useEffect(S,K)},We.useId=function(){return D.H.useId()},We.useImperativeHandle=function(S,K,de){return D.H.useImperativeHandle(S,K,de)},We.useInsertionEffect=function(S,K){return D.H.useInsertionEffect(S,K)},We.useLayoutEffect=function(S,K){return D.H.useLayoutEffect(S,K)},We.useMemo=function(S,K){return D.H.useMemo(S,K)},We.useOptimistic=function(S,K){return D.H.useOptimistic(S,K)},We.useReducer=function(S,K,de){return D.H.useReducer(S,K,de)},We.useRef=function(S){return D.H.useRef(S)},We.useState=function(S){return D.H.useState(S)},We.useSyncExternalStore=function(S,K,de){return D.H.useSyncExternalStore(S,K,de)},We.useTransition=function(){return D.H.useTransition()},We.version="19.1.0",We}var um;function Ql(){return um||(um=1,gf.exports=iC()),gf.exports}var A=Ql();const St=or(A),Ef=Gn({__proto__:null,default:St},[A]);var bf={exports:{}},Gu={},yf={exports:{}},Tf={};/**
9
+ */var im;function iC(){if(im)return We;im=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.iterator;function T(S){return S===null||typeof S!="object"?null:(S=E&&S[E]||S["@@iterator"],typeof S=="function"?S:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,x={};function B(S,K,de){this.props=S,this.context=K,this.refs=x,this.updater=de||y}B.prototype.isReactComponent={},B.prototype.setState=function(S,K){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,K,"setState")},B.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function I(){}I.prototype=B.prototype;function P(S,K,de){this.props=S,this.context=K,this.refs=x,this.updater=de||y}var M=P.prototype=new I;M.constructor=P,v(M,B.prototype),M.isPureReactComponent=!0;var w=Array.isArray,D={H:null,A:null,T:null,S:null,V:null},N=Object.prototype.hasOwnProperty;function z(S,K,de,O,be,Re){return de=Re.ref,{$$typeof:e,type:S,key:K,ref:de!==void 0?de:null,props:Re}}function V(S,K){return z(S.type,K,void 0,void 0,void 0,S.props)}function j(S){return typeof S=="object"&&S!==null&&S.$$typeof===e}function _(S){var K={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(de){return K[de]})}var q=/\/+/g;function $(S,K){return typeof S=="object"&&S!==null&&S.key!=null?_(""+S.key):K.toString(36)}function J(){}function Z(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(J,J):(S.status="pending",S.then(function(K){S.status==="pending"&&(S.status="fulfilled",S.value=K)},function(K){S.status==="pending"&&(S.status="rejected",S.reason=K)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function ne(S,K,de,O,be){var Re=typeof S;(Re==="undefined"||Re==="boolean")&&(S=null);var Te=!1;if(S===null)Te=!0;else switch(Re){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(S.$$typeof){case e:case t:Te=!0;break;case b:return Te=S._init,ne(Te(S._payload),K,de,O,be)}}if(Te)return be=be(S),Te=O===""?"."+$(S,0):O,w(be)?(de="",Te!=null&&(de=Te.replace(q,"$&/")+"/"),ne(be,K,de,"",function(ut){return ut})):be!=null&&(j(be)&&(be=V(be,de+(be.key==null||S&&S.key===be.key?"":(""+be.key).replace(q,"$&/")+"/")+Te)),K.push(be)),1;Te=0;var Xe=O===""?".":O+":";if(w(S))for(var Be=0;Be<S.length;Be++)O=S[Be],Re=Xe+$(O,Be),Te+=ne(O,K,de,Re,be);else if(Be=T(S),typeof Be=="function")for(S=Be.call(S),Be=0;!(O=S.next()).done;)O=O.value,Re=Xe+$(O,Be++),Te+=ne(O,K,de,Re,be);else if(Re==="object"){if(typeof S.then=="function")return ne(Z(S),K,de,O,be);throw K=String(S),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return Te}function F(S,K,de){if(S==null)return S;var O=[],be=0;return ne(S,O,"","",function(Re){return K.call(de,Re,be++)}),O}function ae(S){if(S._status===-1){var K=S._result;K=K(),K.then(function(de){(S._status===0||S._status===-1)&&(S._status=1,S._result=de)},function(de){(S._status===0||S._status===-1)&&(S._status=2,S._result=de)}),S._status===-1&&(S._status=0,S._result=K)}if(S._status===1)return S._result.default;throw S._result}var ie=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)};function le(){}return We.Children={map:F,forEach:function(S,K,de){F(S,function(){K.apply(this,arguments)},de)},count:function(S){var K=0;return F(S,function(){K++}),K},toArray:function(S){return F(S,function(K){return K})||[]},only:function(S){if(!j(S))throw Error("React.Children.only expected to receive a single React element child.");return S}},We.Component=B,We.Fragment=r,We.Profiler=l,We.PureComponent=P,We.StrictMode=i,We.Suspense=h,We.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,We.__COMPILER_RUNTIME={__proto__:null,c:function(S){return D.H.useMemoCache(S)}},We.cache=function(S){return function(){return S.apply(null,arguments)}},We.cloneElement=function(S,K,de){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var O=v({},S.props),be=S.key,Re=void 0;if(K!=null)for(Te in K.ref!==void 0&&(Re=void 0),K.key!==void 0&&(be=""+K.key),K)!N.call(K,Te)||Te==="key"||Te==="__self"||Te==="__source"||Te==="ref"&&K.ref===void 0||(O[Te]=K[Te]);var Te=arguments.length-2;if(Te===1)O.children=de;else if(1<Te){for(var Xe=Array(Te),Be=0;Be<Te;Be++)Xe[Be]=arguments[Be+2];O.children=Xe}return z(S.type,be,void 0,void 0,Re,O)},We.createContext=function(S){return S={$$typeof:c,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:s,_context:S},S},We.createElement=function(S,K,de){var O,be={},Re=null;if(K!=null)for(O in K.key!==void 0&&(Re=""+K.key),K)N.call(K,O)&&O!=="key"&&O!=="__self"&&O!=="__source"&&(be[O]=K[O]);var Te=arguments.length-2;if(Te===1)be.children=de;else if(1<Te){for(var Xe=Array(Te),Be=0;Be<Te;Be++)Xe[Be]=arguments[Be+2];be.children=Xe}if(S&&S.defaultProps)for(O in Te=S.defaultProps,Te)be[O]===void 0&&(be[O]=Te[O]);return z(S,Re,void 0,void 0,null,be)},We.createRef=function(){return{current:null}},We.forwardRef=function(S){return{$$typeof:d,render:S}},We.isValidElement=j,We.lazy=function(S){return{$$typeof:b,_payload:{_status:-1,_result:S},_init:ae}},We.memo=function(S,K){return{$$typeof:p,type:S,compare:K===void 0?null:K}},We.startTransition=function(S){var K=D.T,de={};D.T=de;try{var O=S(),be=D.S;be!==null&&be(de,O),typeof O=="object"&&O!==null&&typeof O.then=="function"&&O.then(le,ie)}catch(Re){ie(Re)}finally{D.T=K}},We.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},We.use=function(S){return D.H.use(S)},We.useActionState=function(S,K,de){return D.H.useActionState(S,K,de)},We.useCallback=function(S,K){return D.H.useCallback(S,K)},We.useContext=function(S){return D.H.useContext(S)},We.useDebugValue=function(){},We.useDeferredValue=function(S,K){return D.H.useDeferredValue(S,K)},We.useEffect=function(S,K,de){var O=D.H;if(typeof de=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return O.useEffect(S,K)},We.useId=function(){return D.H.useId()},We.useImperativeHandle=function(S,K,de){return D.H.useImperativeHandle(S,K,de)},We.useInsertionEffect=function(S,K){return D.H.useInsertionEffect(S,K)},We.useLayoutEffect=function(S,K){return D.H.useLayoutEffect(S,K)},We.useMemo=function(S,K){return D.H.useMemo(S,K)},We.useOptimistic=function(S,K){return D.H.useOptimistic(S,K)},We.useReducer=function(S,K,de){return D.H.useReducer(S,K,de)},We.useRef=function(S){return D.H.useRef(S)},We.useState=function(S){return D.H.useState(S)},We.useSyncExternalStore=function(S,K,de){return D.H.useSyncExternalStore(S,K,de)},We.useTransition=function(){return D.H.useTransition()},We.version="19.1.0",We}var um;function Qo(){return um||(um=1,gf.exports=iC()),gf.exports}var A=Qo();const kt=lr(A),bf=Gn({__proto__:null,default:kt},[A]);var Ef={exports:{}},Gu={},yf={exports:{}},Tf={};/**
10
10
  * @license React
11
11
  * scheduler.production.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var om;function uC(){return om||(om=1,function(e){function t(F,ae){var ie=F.length;F.push(ae);e:for(;0<ie;){var oe=ie-1>>>1,S=F[oe];if(0<o(S,ae))F[oe]=ae,F[ie]=S,ie=oe;else break e}}function r(F){return F.length===0?null:F[0]}function i(F){if(F.length===0)return null;var ae=F[0],ie=F.pop();if(ie!==ae){F[0]=ie;e:for(var oe=0,S=F.length,K=S>>>1;oe<K;){var de=2*(oe+1)-1,O=F[de],Ee=de+1,Re=F[Ee];if(0>o(O,ie))Ee<S&&0>o(Re,O)?(F[oe]=Re,F[Ee]=ie,oe=Ee):(F[oe]=O,F[de]=ie,oe=de);else if(Ee<S&&0>o(Re,ie))F[oe]=Re,F[Ee]=ie,oe=Ee;else break e}}return ae}function o(F,ae){var ie=F.sortIndex-ae.sortIndex;return ie!==0?ie:F.id-ae.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],p=[],E=1,b=null,T=3,y=!1,v=!1,x=!1,B=!1,I=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function w(F){for(var ae=r(p);ae!==null;){if(ae.callback===null)i(p);else if(ae.startTime<=F)i(p),ae.sortIndex=ae.expirationTime,t(h,ae);else break;ae=r(p)}}function D(F){if(x=!1,w(F),!v)if(r(h)!==null)v=!0,N||(N=!0,$());else{var ae=r(p);ae!==null&&ne(D,ae.startTime-F)}}var N=!1,z=-1,V=5,j=-1;function _(){return B?!0:!(e.unstable_now()-j<V)}function q(){if(B=!1,N){var F=e.unstable_now();j=F;var ae=!0;try{e:{v=!1,x&&(x=!1,P(z),z=-1),y=!0;var ie=T;try{t:{for(w(F),b=r(h);b!==null&&!(b.expirationTime>F&&_());){var oe=b.callback;if(typeof oe=="function"){b.callback=null,T=b.priorityLevel;var S=oe(b.expirationTime<=F);if(F=e.unstable_now(),typeof S=="function"){b.callback=S,w(F),ae=!0;break t}b===r(h)&&i(h),w(F)}else i(h);b=r(h)}if(b!==null)ae=!0;else{var K=r(p);K!==null&&ne(D,K.startTime-F),ae=!1}}break e}finally{b=null,T=ie,y=!1}ae=void 0}}finally{ae?$():N=!1}}}var $;if(typeof M=="function")$=function(){M(q)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,Z=J.port2;J.port1.onmessage=q,$=function(){Z.postMessage(null)}}else $=function(){I(q,0)};function ne(F,ae){z=I(function(){F(e.unstable_now())},ae)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return T},e.unstable_next=function(F){switch(T){case 1:case 2:case 3:var ae=3;break;default:ae=T}var ie=T;T=ae;try{return F()}finally{T=ie}},e.unstable_requestPaint=function(){B=!0},e.unstable_runWithPriority=function(F,ae){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var ie=T;T=F;try{return ae()}finally{T=ie}},e.unstable_scheduleCallback=function(F,ae,ie){var oe=e.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?oe+ie:oe):ie=oe,F){case 1:var S=-1;break;case 2:S=250;break;case 5:S=1073741823;break;case 4:S=1e4;break;default:S=5e3}return S=ie+S,F={id:E++,callback:ae,priorityLevel:F,startTime:ie,expirationTime:S,sortIndex:-1},ie>oe?(F.sortIndex=ie,t(p,F),r(h)===null&&F===r(p)&&(x?(P(z),z=-1):x=!0,ne(D,ie-oe))):(F.sortIndex=S,t(h,F),v||y||(v=!0,N||(N=!0,$()))),F},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(F){var ae=T;return function(){var ie=T;T=ae;try{return F.apply(this,arguments)}finally{T=ie}}}}(Tf)),Tf}var lm;function oC(){return lm||(lm=1,yf.exports=uC()),yf.exports}var Sf={exports:{}},Sn={};/**
17
+ */var lm;function uC(){return lm||(lm=1,function(e){function t(F,ae){var ie=F.length;F.push(ae);e:for(;0<ie;){var le=ie-1>>>1,S=F[le];if(0<l(S,ae))F[le]=ae,F[ie]=S,ie=le;else break e}}function r(F){return F.length===0?null:F[0]}function i(F){if(F.length===0)return null;var ae=F[0],ie=F.pop();if(ie!==ae){F[0]=ie;e:for(var le=0,S=F.length,K=S>>>1;le<K;){var de=2*(le+1)-1,O=F[de],be=de+1,Re=F[be];if(0>l(O,ie))be<S&&0>l(Re,O)?(F[le]=Re,F[be]=ie,le=be):(F[le]=O,F[de]=ie,le=de);else if(be<S&&0>l(Re,ie))F[le]=Re,F[be]=ie,le=be;else break e}}return ae}function l(F,ae){var ie=F.sortIndex-ae.sortIndex;return ie!==0?ie:F.id-ae.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var h=[],p=[],b=1,E=null,T=3,y=!1,v=!1,x=!1,B=!1,I=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function w(F){for(var ae=r(p);ae!==null;){if(ae.callback===null)i(p);else if(ae.startTime<=F)i(p),ae.sortIndex=ae.expirationTime,t(h,ae);else break;ae=r(p)}}function D(F){if(x=!1,w(F),!v)if(r(h)!==null)v=!0,N||(N=!0,$());else{var ae=r(p);ae!==null&&ne(D,ae.startTime-F)}}var N=!1,z=-1,V=5,j=-1;function _(){return B?!0:!(e.unstable_now()-j<V)}function q(){if(B=!1,N){var F=e.unstable_now();j=F;var ae=!0;try{e:{v=!1,x&&(x=!1,P(z),z=-1),y=!0;var ie=T;try{t:{for(w(F),E=r(h);E!==null&&!(E.expirationTime>F&&_());){var le=E.callback;if(typeof le=="function"){E.callback=null,T=E.priorityLevel;var S=le(E.expirationTime<=F);if(F=e.unstable_now(),typeof S=="function"){E.callback=S,w(F),ae=!0;break t}E===r(h)&&i(h),w(F)}else i(h);E=r(h)}if(E!==null)ae=!0;else{var K=r(p);K!==null&&ne(D,K.startTime-F),ae=!1}}break e}finally{E=null,T=ie,y=!1}ae=void 0}}finally{ae?$():N=!1}}}var $;if(typeof M=="function")$=function(){M(q)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,Z=J.port2;J.port1.onmessage=q,$=function(){Z.postMessage(null)}}else $=function(){I(q,0)};function ne(F,ae){z=I(function(){F(e.unstable_now())},ae)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return T},e.unstable_next=function(F){switch(T){case 1:case 2:case 3:var ae=3;break;default:ae=T}var ie=T;T=ae;try{return F()}finally{T=ie}},e.unstable_requestPaint=function(){B=!0},e.unstable_runWithPriority=function(F,ae){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var ie=T;T=F;try{return ae()}finally{T=ie}},e.unstable_scheduleCallback=function(F,ae,ie){var le=e.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?le+ie:le):ie=le,F){case 1:var S=-1;break;case 2:S=250;break;case 5:S=1073741823;break;case 4:S=1e4;break;default:S=5e3}return S=ie+S,F={id:b++,callback:ae,priorityLevel:F,startTime:ie,expirationTime:S,sortIndex:-1},ie>le?(F.sortIndex=ie,t(p,F),r(h)===null&&F===r(p)&&(x?(P(z),z=-1):x=!0,ne(D,ie-le))):(F.sortIndex=S,t(h,F),v||y||(v=!0,N||(N=!0,$()))),F},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(F){var ae=T;return function(){var ie=T;T=ae;try{return F.apply(this,arguments)}finally{T=ie}}}}(Tf)),Tf}var om;function lC(){return om||(om=1,yf.exports=uC()),yf.exports}var Sf={exports:{}},Sn={};/**
18
18
  * @license React
19
19
  * react-dom.production.js
20
20
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var sm;function lC(){if(sm)return Sn;sm=1;var e=Ql();function t(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)p+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(h,p,E){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:b==null?null:""+b,children:h,containerInfo:p,implementation:E}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Sn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Sn.createPortal=function(h,p){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return s(h,p,null,E)},Sn.flushSync=function(h){var p=c.T,E=i.p;try{if(c.T=null,i.p=2,h)return h()}finally{c.T=p,i.p=E,i.d.f()}},Sn.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(h,p))},Sn.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},Sn.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var E=p.as,b=d(E,p.crossOrigin),T=typeof p.integrity=="string"?p.integrity:void 0,y=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;E==="style"?i.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:T,fetchPriority:y}):E==="script"&&i.d.X(h,{crossOrigin:b,integrity:T,fetchPriority:y,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Sn.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var E=d(p.as,p.crossOrigin);i.d.M(h,{crossOrigin:E,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(h)},Sn.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var E=p.as,b=d(E,p.crossOrigin);i.d.L(h,E,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Sn.preloadModule=function(h,p){if(typeof h=="string")if(p){var E=d(p.as,p.crossOrigin);i.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:E,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(h)},Sn.requestFormReset=function(h){i.d.r(h)},Sn.unstable_batchedUpdates=function(h,p){return h(p)},Sn.useFormState=function(h,p,E){return c.H.useFormState(h,p,E)},Sn.useFormStatus=function(){return c.H.useHostTransitionStatus()},Sn.version="19.1.0",Sn}var cm;function fm(){if(cm)return Sf.exports;cm=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Sf.exports=lC(),Sf.exports}/**
25
+ */var sm;function oC(){if(sm)return Sn;sm=1;var e=Qo();function t(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function s(h,p,b){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:E==null?null:""+E,children:h,containerInfo:p,implementation:b}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Sn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Sn.createPortal=function(h,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return s(h,p,null,b)},Sn.flushSync=function(h){var p=c.T,b=i.p;try{if(c.T=null,i.p=2,h)return h()}finally{c.T=p,i.p=b,i.d.f()}},Sn.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(h,p))},Sn.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},Sn.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var b=p.as,E=d(b,p.crossOrigin),T=typeof p.integrity=="string"?p.integrity:void 0,y=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?i.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:E,integrity:T,fetchPriority:y}):b==="script"&&i.d.X(h,{crossOrigin:E,integrity:T,fetchPriority:y,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Sn.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=d(p.as,p.crossOrigin);i.d.M(h,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(h)},Sn.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,E=d(b,p.crossOrigin);i.d.L(h,b,{crossOrigin:E,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Sn.preloadModule=function(h,p){if(typeof h=="string")if(p){var b=d(p.as,p.crossOrigin);i.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(h)},Sn.requestFormReset=function(h){i.d.r(h)},Sn.unstable_batchedUpdates=function(h,p){return h(p)},Sn.useFormState=function(h,p,b){return c.H.useFormState(h,p,b)},Sn.useFormStatus=function(){return c.H.useHostTransitionStatus()},Sn.version="19.1.0",Sn}var cm;function fm(){if(cm)return Sf.exports;cm=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Sf.exports=oC(),Sf.exports}/**
26
26
  * @license React
27
27
  * react-dom-client.production.js
28
28
  *
@@ -30,23 +30,23 @@
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var dm;function sC(){if(dm)return Gu;dm=1;var e=oC(),t=Ql(),r=fm();function i(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function s(n){var a=n,u=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(u=a.return),n=a.return;while(n)}return a.tag===3?u:null}function c(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function d(n){if(s(n)!==n)throw Error(i(188))}function h(n){var a=n.alternate;if(!a){if(a=s(n),a===null)throw Error(i(188));return a!==n?null:n}for(var u=n,l=a;;){var f=u.return;if(f===null)break;var m=f.alternate;if(m===null){if(l=f.return,l!==null){u=l;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===u)return d(f),n;if(m===l)return d(f),a;m=m.sibling}throw Error(i(188))}if(u.return!==l.return)u=f,l=m;else{for(var C=!1,R=f.child;R;){if(R===u){C=!0,u=f,l=m;break}if(R===l){C=!0,l=f,u=m;break}R=R.sibling}if(!C){for(R=m.child;R;){if(R===u){C=!0,u=m,l=f;break}if(R===l){C=!0,l=m,u=f;break}R=R.sibling}if(!C)throw Error(i(189))}}if(u.alternate!==l)throw Error(i(190))}if(u.tag!==3)throw Error(i(188));return u.stateNode.current===u?n:a}function p(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=p(n),a!==null)return a;n=n.sibling}return null}var E=Object.assign,b=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),P=Symbol.for("react.consumer"),M=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),_=Symbol.for("react.memo_cache_sentinel"),q=Symbol.iterator;function $(n){return n===null||typeof n!="object"?null:(n=q&&n[q]||n["@@iterator"],typeof n=="function"?n:null)}var J=Symbol.for("react.client.reference");function Z(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===J?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case v:return"Fragment";case B:return"Profiler";case x:return"StrictMode";case D:return"Suspense";case N:return"SuspenseList";case j:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case y:return"Portal";case M:return(n.displayName||"Context")+".Provider";case P:return(n._context.displayName||"Context")+".Consumer";case w:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case z:return a=n.displayName||null,a!==null?a:Z(n.type)||"Memo";case V:a=n._payload,n=n._init;try{return Z(n(a))}catch{}}return null}var ne=Array.isArray,F=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},oe=[],S=-1;function K(n){return{current:n}}function de(n){0>S||(n.current=oe[S],oe[S]=null,S--)}function O(n,a){S++,oe[S]=n.current,n.current=a}var Ee=K(null),Re=K(null),Te=K(null),Xe=K(null);function Be(n,a){switch(O(Te,a),O(Re,n),O(Ee,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?DS(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=DS(a),n=wS(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}de(Ee),O(Ee,n)}function ut(){de(Ee),de(Re),de(Te)}function Ct(n){n.memoizedState!==null&&O(Xe,n);var a=Ee.current,u=wS(a,n.type);a!==u&&(O(Re,n),O(Ee,u))}function gt(n){Re.current===n&&(de(Ee),de(Re)),Xe.current===n&&(de(Xe),jl._currentValue=ie)}var Ne=Object.prototype.hasOwnProperty,Oe=e.unstable_scheduleCallback,Ce=e.unstable_cancelCallback,we=e.unstable_shouldYield,ke=e.unstable_requestPaint,Me=e.unstable_now,Fe=e.unstable_getCurrentPriorityLevel,qe=e.unstable_ImmediatePriority,$e=e.unstable_UserBlockingPriority,ct=e.unstable_NormalPriority,Ie=e.unstable_LowPriority,un=e.unstable_IdlePriority,Ft=e.log,Bt=e.unstable_setDisableYieldValue,re=null,he=null;function Se(n){if(typeof Ft=="function"&&Bt(n),he&&typeof he.setStrictMode=="function")try{he.setStrictMode(re,n)}catch{}}var Ae=Math.clz32?Math.clz32:Tt,Pe=Math.log,Ve=Math.LN2;function Tt(n){return n>>>=0,n===0?32:31-(Pe(n)/Ve|0)|0}var At=256,Zn=4194304;function fn(n){var a=n&42;if(a!==0)return a;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function nn(n,a,u){var l=n.pendingLanes;if(l===0)return 0;var f=0,m=n.suspendedLanes,C=n.pingedLanes;n=n.warmLanes;var R=l&134217727;return R!==0?(l=R&~m,l!==0?f=fn(l):(C&=R,C!==0?f=fn(C):u||(u=R&~n,u!==0&&(f=fn(u))))):(R=l&~m,R!==0?f=fn(R):C!==0?f=fn(C):u||(u=l&~n,u!==0&&(f=fn(u)))),f===0?0:a!==0&&a!==f&&(a&m)===0&&(m=f&-f,u=a&-a,m>=u||m===32&&(u&4194048)!==0)?a:f}function Hn(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Fn(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function pi(){var n=At;return At<<=1,(At&4194048)===0&&(At=256),n}function tc(){var n=Zn;return Zn<<=1,(Zn&62914560)===0&&(Zn=4194304),n}function Wo(n){for(var a=[],u=0;31>u;u++)a.push(n);return a}function ea(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function K0(n,a,u,l,f,m){var C=n.pendingLanes;n.pendingLanes=u,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=u,n.entangledLanes&=u,n.errorRecoveryDisabledLanes&=u,n.shellSuspendCounter=0;var R=n.entanglements,H=n.expirationTimes,W=n.hiddenUpdates;for(u=C&~u;0<u;){var se=31-Ae(u),fe=1<<se;R[se]=0,H[se]=-1;var ee=W[se];if(ee!==null)for(W[se]=null,se=0;se<ee.length;se++){var te=ee[se];te!==null&&(te.lane&=-536870913)}u&=~fe}l!==0&&nc(n,l,0),m!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=m&~(C&~a))}function nc(n,a,u){n.pendingLanes|=a,n.suspendedLanes&=~a;var l=31-Ae(a);n.entangledLanes|=a,n.entanglements[l]=n.entanglements[l]|1073741824|u&4194090}function rc(n,a){var u=n.entangledLanes|=a;for(n=n.entanglements;u;){var l=31-Ae(u),f=1<<l;f&a|n[l]&a&&(n[l]|=a),u&=~f}}function Zo(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Jo(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function ac(){var n=ae.p;return n!==0?n:(n=window.event,n===void 0?32:ZS(n.type))}function xe(n,a){var u=ae.p;try{return ae.p=n,a()}finally{ae.p=u}}var _e=Math.random().toString(36).slice(2),Ye="__reactFiber$"+_e,Ge="__reactProps$"+_e,xt="__reactContainer$"+_e,zn="__reactEvents$"+_e,ta="__reactListeners$"+_e,mi="__reactHandles$"+_e,el="__reactResources$"+_e,na="__reactMarker$"+_e;function W0(n){delete n[Ye],delete n[Ge],delete n[zn],delete n[ta],delete n[mi]}function lu(n){var a=n[Ye];if(a)return a;for(var u=n.parentNode;u;){if(a=u[xt]||u[Ye]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(n=PS(n);n!==null;){if(u=n[Ye])return u;n=PS(n)}return a}n=u,u=n.parentNode}return null}function su(n){if(n=n[Ye]||n[xt]){var a=n.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return n}return null}function tl(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(i(33))}function cu(n){var a=n[el];return a||(a=n[el]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function dn(n){n[na]=!0}var Sy=new Set,Cy={};function gi(n,a){fu(n,a),fu(n+"Capture",a)}function fu(n,a){for(Cy[n]=a,n=0;n<a.length;n++)Sy.add(a[n])}var JL=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]*$"),Ay={},xy={};function eM(n){return Ne.call(xy,n)?!0:Ne.call(Ay,n)?!1:JL.test(n)?xy[n]=!0:(Ay[n]=!0,!1)}function ic(n,a,u){if(eM(a))if(u===null)n.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var l=a.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+u)}}function uc(n,a,u){if(u===null)n.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+u)}}function ra(n,a,u,l){if(l===null)n.removeAttribute(u);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(u);return}n.setAttributeNS(a,u,""+l)}}var Z0,_y;function du(n){if(Z0===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);Z0=a&&a[1]||"",_y=-1<u.stack.indexOf(`
33
+ */var dm;function sC(){if(dm)return Gu;dm=1;var e=lC(),t=Qo(),r=fm();function i(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function s(n){var a=n,u=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(u=a.return),n=a.return;while(n)}return a.tag===3?u:null}function c(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function d(n){if(s(n)!==n)throw Error(i(188))}function h(n){var a=n.alternate;if(!a){if(a=s(n),a===null)throw Error(i(188));return a!==n?null:n}for(var u=n,o=a;;){var f=u.return;if(f===null)break;var m=f.alternate;if(m===null){if(o=f.return,o!==null){u=o;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===u)return d(f),n;if(m===o)return d(f),a;m=m.sibling}throw Error(i(188))}if(u.return!==o.return)u=f,o=m;else{for(var C=!1,R=f.child;R;){if(R===u){C=!0,u=f,o=m;break}if(R===o){C=!0,o=f,u=m;break}R=R.sibling}if(!C){for(R=m.child;R;){if(R===u){C=!0,u=m,o=f;break}if(R===o){C=!0,o=m,u=f;break}R=R.sibling}if(!C)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 p(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=p(n),a!==null)return a;n=n.sibling}return null}var b=Object.assign,E=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),P=Symbol.for("react.consumer"),M=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),_=Symbol.for("react.memo_cache_sentinel"),q=Symbol.iterator;function $(n){return n===null||typeof n!="object"?null:(n=q&&n[q]||n["@@iterator"],typeof n=="function"?n:null)}var J=Symbol.for("react.client.reference");function Z(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===J?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case v:return"Fragment";case B:return"Profiler";case x:return"StrictMode";case D:return"Suspense";case N:return"SuspenseList";case j:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case y:return"Portal";case M:return(n.displayName||"Context")+".Provider";case P:return(n._context.displayName||"Context")+".Consumer";case w:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case z:return a=n.displayName||null,a!==null?a:Z(n.type)||"Memo";case V:a=n._payload,n=n._init;try{return Z(n(a))}catch{}}return null}var ne=Array.isArray,F=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},le=[],S=-1;function K(n){return{current:n}}function de(n){0>S||(n.current=le[S],le[S]=null,S--)}function O(n,a){S++,le[S]=n.current,n.current=a}var be=K(null),Re=K(null),Te=K(null),Xe=K(null);function Be(n,a){switch(O(Te,a),O(Re,n),O(be,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?DS(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=DS(a),n=wS(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}de(be),O(be,n)}function ut(){de(be),de(Re),de(Te)}function St(n){n.memoizedState!==null&&O(Xe,n);var a=be.current,u=wS(a,n.type);a!==u&&(O(Re,n),O(be,u))}function gt(n){Re.current===n&&(de(be),de(Re)),Xe.current===n&&(de(Xe),jo._currentValue=ie)}var Ne=Object.prototype.hasOwnProperty,Oe=e.unstable_scheduleCallback,Ce=e.unstable_cancelCallback,we=e.unstable_shouldYield,ke=e.unstable_requestPaint,Me=e.unstable_now,Fe=e.unstable_getCurrentPriorityLevel,qe=e.unstable_ImmediatePriority,$e=e.unstable_UserBlockingPriority,ct=e.unstable_NormalPriority,Ie=e.unstable_LowPriority,un=e.unstable_IdlePriority,Ft=e.log,Bt=e.unstable_setDisableYieldValue,re=null,he=null;function Se(n){if(typeof Ft=="function"&&Bt(n),he&&typeof he.setStrictMode=="function")try{he.setStrictMode(re,n)}catch{}}var Ae=Math.clz32?Math.clz32:Tt,Ue=Math.log,Ve=Math.LN2;function Tt(n){return n>>>=0,n===0?32:31-(Ue(n)/Ve|0)|0}var Ct=256,Zn=4194304;function fn(n){var a=n&42;if(a!==0)return a;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function nn(n,a,u){var o=n.pendingLanes;if(o===0)return 0;var f=0,m=n.suspendedLanes,C=n.pingedLanes;n=n.warmLanes;var R=o&134217727;return R!==0?(o=R&~m,o!==0?f=fn(o):(C&=R,C!==0?f=fn(C):u||(u=R&~n,u!==0&&(f=fn(u))))):(R=o&~m,R!==0?f=fn(R):C!==0?f=fn(C):u||(u=o&~n,u!==0&&(f=fn(u)))),f===0?0:a!==0&&a!==f&&(a&m)===0&&(m=f&-f,u=a&-a,m>=u||m===32&&(u&4194048)!==0)?a:f}function Hn(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Fn(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function pi(){var n=Ct;return Ct<<=1,(Ct&4194048)===0&&(Ct=256),n}function tc(){var n=Zn;return Zn<<=1,(Zn&62914560)===0&&(Zn=4194304),n}function Kl(n){for(var a=[],u=0;31>u;u++)a.push(n);return a}function ea(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function K0(n,a,u,o,f,m){var C=n.pendingLanes;n.pendingLanes=u,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=u,n.entangledLanes&=u,n.errorRecoveryDisabledLanes&=u,n.shellSuspendCounter=0;var R=n.entanglements,H=n.expirationTimes,W=n.hiddenUpdates;for(u=C&~u;0<u;){var se=31-Ae(u),fe=1<<se;R[se]=0,H[se]=-1;var ee=W[se];if(ee!==null)for(W[se]=null,se=0;se<ee.length;se++){var te=ee[se];te!==null&&(te.lane&=-536870913)}u&=~fe}o!==0&&nc(n,o,0),m!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=m&~(C&~a))}function nc(n,a,u){n.pendingLanes|=a,n.suspendedLanes&=~a;var o=31-Ae(a);n.entangledLanes|=a,n.entanglements[o]=n.entanglements[o]|1073741824|u&4194090}function rc(n,a){var u=n.entangledLanes|=a;for(n=n.entanglements;u;){var o=31-Ae(u),f=1<<o;f&a|n[o]&a&&(n[o]|=a),u&=~f}}function Wl(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Zl(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function ac(){var n=ae.p;return n!==0?n:(n=window.event,n===void 0?32:ZS(n.type))}function xe(n,a){var u=ae.p;try{return ae.p=n,a()}finally{ae.p=u}}var _e=Math.random().toString(36).slice(2),Ye="__reactFiber$"+_e,Ge="__reactProps$"+_e,At="__reactContainer$"+_e,zn="__reactEvents$"+_e,ta="__reactListeners$"+_e,mi="__reactHandles$"+_e,Jl="__reactResources$"+_e,na="__reactMarker$"+_e;function W0(n){delete n[Ye],delete n[Ge],delete n[zn],delete n[ta],delete n[mi]}function ou(n){var a=n[Ye];if(a)return a;for(var u=n.parentNode;u;){if(a=u[At]||u[Ye]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(n=PS(n);n!==null;){if(u=n[Ye])return u;n=PS(n)}return a}n=u,u=n.parentNode}return null}function su(n){if(n=n[Ye]||n[At]){var a=n.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return n}return null}function eo(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(i(33))}function cu(n){var a=n[Jl];return a||(a=n[Jl]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function dn(n){n[na]=!0}var Sy=new Set,Cy={};function gi(n,a){fu(n,a),fu(n+"Capture",a)}function fu(n,a){for(Cy[n]=a,n=0;n<a.length;n++)Sy.add(a[n])}var eM=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]*$"),Ay={},xy={};function tM(n){return Ne.call(xy,n)?!0:Ne.call(Ay,n)?!1:eM.test(n)?xy[n]=!0:(Ay[n]=!0,!1)}function ic(n,a,u){if(tM(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 uc(n,a,u){if(u===null)n.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+u)}}function ra(n,a,u,o){if(o===null)n.removeAttribute(u);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(u);return}n.setAttributeNS(a,u,""+o)}}var Z0,_y;function du(n){if(Z0===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);Z0=a&&a[1]||"",_y=-1<u.stack.indexOf(`
34
34
  at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
35
- `+Z0+n+_y}var J0=!1;function eh(n,a){if(!n||J0)return"";J0=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(a){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(te){var ee=te}Reflect.construct(n,[],fe)}else{try{fe.call()}catch(te){ee=te}n.call(fe.prototype)}}else{try{throw Error()}catch(te){ee=te}(fe=n())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(te){if(te&&ee&&typeof te.stack=="string")return[te.stack,ee.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=l.DetermineComponentFrameRoot(),C=m[0],R=m[1];if(C&&R){var H=C.split(`
35
+ `+Z0+n+_y}var J0=!1;function eh(n,a){if(!n||J0)return"";J0=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(te){var ee=te}Reflect.construct(n,[],fe)}else{try{fe.call()}catch(te){ee=te}n.call(fe.prototype)}}else{try{throw Error()}catch(te){ee=te}(fe=n())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(te){if(te&&ee&&typeof te.stack=="string")return[te.stack,ee.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 m=o.DetermineComponentFrameRoot(),C=m[0],R=m[1];if(C&&R){var H=C.split(`
36
36
  `),W=R.split(`
37
- `);for(f=l=0;l<H.length&&!H[l].includes("DetermineComponentFrameRoot");)l++;for(;f<W.length&&!W[f].includes("DetermineComponentFrameRoot");)f++;if(l===H.length||f===W.length)for(l=H.length-1,f=W.length-1;1<=l&&0<=f&&H[l]!==W[f];)f--;for(;1<=l&&0<=f;l--,f--)if(H[l]!==W[f]){if(l!==1||f!==1)do if(l--,f--,0>f||H[l]!==W[f]){var se=`
38
- `+H[l].replace(" at new "," at ");return n.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",n.displayName)),se}while(1<=l&&0<=f);break}}}finally{J0=!1,Error.prepareStackTrace=u}return(u=n?n.displayName||n.name:"")?du(u):""}function tM(n){switch(n.tag){case 26:case 27:case 5:return du(n.type);case 16:return du("Lazy");case 13:return du("Suspense");case 19:return du("SuspenseList");case 0:case 15:return eh(n.type,!1);case 11:return eh(n.type.render,!1);case 1:return eh(n.type,!0);case 31:return du("Activity");default:return""}}function vy(n){try{var a="";do a+=tM(n),n=n.return;while(n);return a}catch(u){return`
37
+ `);for(f=o=0;o<H.length&&!H[o].includes("DetermineComponentFrameRoot");)o++;for(;f<W.length&&!W[f].includes("DetermineComponentFrameRoot");)f++;if(o===H.length||f===W.length)for(o=H.length-1,f=W.length-1;1<=o&&0<=f&&H[o]!==W[f];)f--;for(;1<=o&&0<=f;o--,f--)if(H[o]!==W[f]){if(o!==1||f!==1)do if(o--,f--,0>f||H[o]!==W[f]){var se=`
38
+ `+H[o].replace(" at new "," at ");return n.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",n.displayName)),se}while(1<=o&&0<=f);break}}}finally{J0=!1,Error.prepareStackTrace=u}return(u=n?n.displayName||n.name:"")?du(u):""}function nM(n){switch(n.tag){case 26:case 27:case 5:return du(n.type);case 16:return du("Lazy");case 13:return du("Suspense");case 19:return du("SuspenseList");case 0:case 15:return eh(n.type,!1);case 11:return eh(n.type.render,!1);case 1:return eh(n.type,!0);case 31:return du("Activity");default:return""}}function vy(n){try{var a="";do a+=nM(n),n=n.return;while(n);return a}catch(u){return`
39
39
  Error generating stack: `+u.message+`
40
- `+u.stack}}function mr(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Ry(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function nM(n){var a=Ry(n)?"checked":"value",u=Object.getOwnPropertyDescriptor(n.constructor.prototype,a),l=""+n[a];if(!n.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,m=u.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return f.call(this)},set:function(C){l=""+C,m.call(this,C)}}),Object.defineProperty(n,a,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(C){l=""+C},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function oc(n){n._valueTracker||(n._valueTracker=nM(n))}function Ny(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var u=a.getValue(),l="";return n&&(l=Ry(n)?n.checked?"true":"false":n.value),n=l,n!==u?(a.setValue(n),!0):!1}function lc(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var rM=/[\n"\\]/g;function gr(n){return n.replace(rM,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function th(n,a,u,l,f,m,C,R){n.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?n.type=C:n.removeAttribute("type"),a!=null?C==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+mr(a)):n.value!==""+mr(a)&&(n.value=""+mr(a)):C!=="submit"&&C!=="reset"||n.removeAttribute("value"),a!=null?nh(n,C,mr(a)):u!=null?nh(n,C,mr(u)):l!=null&&n.removeAttribute("value"),f==null&&m!=null&&(n.defaultChecked=!!m),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?n.name=""+mr(R):n.removeAttribute("name")}function Oy(n,a,u,l,f,m,C,R){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(n.type=m),a!=null||u!=null){if(!(m!=="submit"&&m!=="reset"||a!=null))return;u=u!=null?""+mr(u):"",a=a!=null?""+mr(a):u,R||a===n.value||(n.value=a),n.defaultValue=a}l=l??f,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=R?n.checked:!!l,n.defaultChecked=!!l,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(n.name=C)}function nh(n,a,u){a==="number"&&lc(n.ownerDocument)===n||n.defaultValue===""+u||(n.defaultValue=""+u)}function hu(n,a,u,l){if(n=n.options,a){a={};for(var f=0;f<u.length;f++)a["$"+u[f]]=!0;for(u=0;u<n.length;u++)f=a.hasOwnProperty("$"+n[u].value),n[u].selected!==f&&(n[u].selected=f),f&&l&&(n[u].defaultSelected=!0)}else{for(u=""+mr(u),a=null,f=0;f<n.length;f++){if(n[f].value===u){n[f].selected=!0,l&&(n[f].defaultSelected=!0);return}a!==null||n[f].disabled||(a=n[f])}a!==null&&(a.selected=!0)}}function ky(n,a,u){if(a!=null&&(a=""+mr(a),a!==n.value&&(n.value=a),u==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=u!=null?""+mr(u):""}function Iy(n,a,u,l){if(a==null){if(l!=null){if(u!=null)throw Error(i(92));if(ne(l)){if(1<l.length)throw Error(i(93));l=l[0]}u=l}u==null&&(u=""),a=u}u=mr(a),n.defaultValue=u,l=n.textContent,l===u&&l!==""&&l!==null&&(n.value=l)}function pu(n,a){if(a){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===3){u.nodeValue=a;return}}n.textContent=a}var aM=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 Dy(n,a,u){var l=a.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?l?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":l?n.setProperty(a,u):typeof u!="number"||u===0||aM.has(a)?a==="float"?n.cssFloat=u:n[a]=(""+u).trim():n[a]=u+"px"}function wy(n,a,u){if(a!=null&&typeof a!="object")throw Error(i(62));if(n=n.style,u!=null){for(var l in u)!u.hasOwnProperty(l)||a!=null&&a.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="");for(var f in a)l=a[f],a.hasOwnProperty(f)&&u[f]!==l&&Dy(n,f,l)}else for(var m in a)a.hasOwnProperty(m)&&Dy(n,m,a[m])}function rh(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var iM=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"]]),uM=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function sc(n){return uM.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var ah=null;function ih(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var mu=null,gu=null;function Ly(n){var a=su(n);if(a&&(n=a.stateNode)){var u=n[Ge]||null;e:switch(n=a.stateNode,a.type){case"input":if(th(n,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=n;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+gr(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var l=u[a];if(l!==n&&l.form===n.form){var f=l[Ge]||null;if(!f)throw Error(i(90));th(l,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<u.length;a++)l=u[a],l.form===n.form&&Ny(l)}break e;case"textarea":ky(n,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&hu(n,!!u.multiple,a,!1)}}}var uh=!1;function My(n,a,u){if(uh)return n(a,u);uh=!0;try{var l=n(a);return l}finally{if(uh=!1,(mu!==null||gu!==null)&&(Xc(),mu&&(a=mu,n=gu,gu=mu=null,Ly(a),n)))for(a=0;a<n.length;a++)Ly(n[a])}}function nl(n,a){var u=n.stateNode;if(u===null)return null;var l=u[Ge]||null;if(l===null)return null;u=l[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(u&&typeof u!="function")throw Error(i(231,a,typeof u));return u}var aa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oh=!1;if(aa)try{var rl={};Object.defineProperty(rl,"passive",{get:function(){oh=!0}}),window.addEventListener("test",rl,rl),window.removeEventListener("test",rl,rl)}catch{oh=!1}var Ia=null,lh=null,cc=null;function By(){if(cc)return cc;var n,a=lh,u=a.length,l,f="value"in Ia?Ia.value:Ia.textContent,m=f.length;for(n=0;n<u&&a[n]===f[n];n++);var C=u-n;for(l=1;l<=C&&a[u-l]===f[m-l];l++);return cc=f.slice(n,1<l?1-l:void 0)}function fc(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function dc(){return!0}function Py(){return!1}function Yn(n){function a(u,l,f,m,C){this._reactName=u,this._targetInst=f,this.type=l,this.nativeEvent=m,this.target=C,this.currentTarget=null;for(var R in n)n.hasOwnProperty(R)&&(u=n[R],this[R]=u?u(m):m[R]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?dc:Py,this.isPropagationStopped=Py,this}return E(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=dc)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=dc)},persist:function(){},isPersistent:dc}),a}var Ei={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hc=Yn(Ei),al=E({},Ei,{view:0,detail:0}),oM=Yn(al),sh,ch,il,pc=E({},al,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dh,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==il&&(il&&n.type==="mousemove"?(sh=n.screenX-il.screenX,ch=n.screenY-il.screenY):ch=sh=0,il=n),sh)},movementY:function(n){return"movementY"in n?n.movementY:ch}}),Uy=Yn(pc),lM=E({},pc,{dataTransfer:0}),sM=Yn(lM),cM=E({},al,{relatedTarget:0}),fh=Yn(cM),fM=E({},Ei,{animationName:0,elapsedTime:0,pseudoElement:0}),dM=Yn(fM),hM=E({},Ei,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),pM=Yn(hM),mM=E({},Ei,{data:0}),Hy=Yn(mM),gM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},EM={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"},bM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yM(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=bM[n])?!!a[n]:!1}function dh(){return yM}var TM=E({},al,{key:function(n){if(n.key){var a=gM[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=fc(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?EM[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dh,charCode:function(n){return n.type==="keypress"?fc(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?fc(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),SM=Yn(TM),CM=E({},pc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fy=Yn(CM),AM=E({},al,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dh}),xM=Yn(AM),_M=E({},Ei,{propertyName:0,elapsedTime:0,pseudoElement:0}),vM=Yn(_M),RM=E({},pc,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),NM=Yn(RM),OM=E({},Ei,{newState:0,oldState:0}),kM=Yn(OM),IM=[9,13,27,32],hh=aa&&"CompositionEvent"in window,ul=null;aa&&"documentMode"in document&&(ul=document.documentMode);var DM=aa&&"TextEvent"in window&&!ul,zy=aa&&(!hh||ul&&8<ul&&11>=ul),Yy=" ",jy=!1;function qy(n,a){switch(n){case"keyup":return IM.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vy(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Eu=!1;function wM(n,a){switch(n){case"compositionend":return Vy(a);case"keypress":return a.which!==32?null:(jy=!0,Yy);case"textInput":return n=a.data,n===Yy&&jy?null:n;default:return null}}function LM(n,a){if(Eu)return n==="compositionend"||!hh&&qy(n,a)?(n=By(),cc=lh=Ia=null,Eu=!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 zy&&a.locale!=="ko"?null:a.data;default:return null}}var MM={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 Gy(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!MM[n.type]:a==="textarea"}function $y(n,a,u,l){mu?gu?gu.push(l):gu=[l]:mu=l,a=ef(a,"onChange"),0<a.length&&(u=new hc("onChange","change",null,u,l),n.push({event:u,listeners:a}))}var ol=null,ll=null;function BM(n){RS(n,0)}function mc(n){var a=tl(n);if(Ny(a))return n}function Xy(n,a){if(n==="change")return a}var Qy=!1;if(aa){var ph;if(aa){var mh="oninput"in document;if(!mh){var Ky=document.createElement("div");Ky.setAttribute("oninput","return;"),mh=typeof Ky.oninput=="function"}ph=mh}else ph=!1;Qy=ph&&(!document.documentMode||9<document.documentMode)}function Wy(){ol&&(ol.detachEvent("onpropertychange",Zy),ll=ol=null)}function Zy(n){if(n.propertyName==="value"&&mc(ll)){var a=[];$y(a,ll,n,ih(n)),My(BM,a)}}function PM(n,a,u){n==="focusin"?(Wy(),ol=a,ll=u,ol.attachEvent("onpropertychange",Zy)):n==="focusout"&&Wy()}function UM(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return mc(ll)}function HM(n,a){if(n==="click")return mc(a)}function FM(n,a){if(n==="input"||n==="change")return mc(a)}function zM(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Jn=typeof Object.is=="function"?Object.is:zM;function sl(n,a){if(Jn(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var u=Object.keys(n),l=Object.keys(a);if(u.length!==l.length)return!1;for(l=0;l<u.length;l++){var f=u[l];if(!Ne.call(a,f)||!Jn(n[f],a[f]))return!1}return!0}function Jy(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function eT(n,a){var u=Jy(n);n=0;for(var l;u;){if(u.nodeType===3){if(l=n+u.textContent.length,n<=a&&l>=a)return{node:u,offset:a-n};n=l}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Jy(u)}}function tT(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?tT(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function nT(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=lc(n.document);a instanceof n.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)n=a.contentWindow;else break;a=lc(n.document)}return a}function gh(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var YM=aa&&"documentMode"in document&&11>=document.documentMode,bu=null,Eh=null,cl=null,bh=!1;function rT(n,a,u){var l=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;bh||bu==null||bu!==lc(l)||(l=bu,"selectionStart"in l&&gh(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),cl&&sl(cl,l)||(cl=l,l=ef(Eh,"onSelect"),0<l.length&&(a=new hc("onSelect","select",null,a,u),n.push({event:a,listeners:l}),a.target=bu)))}function bi(n,a){var u={};return u[n.toLowerCase()]=a.toLowerCase(),u["Webkit"+n]="webkit"+a,u["Moz"+n]="moz"+a,u}var yu={animationend:bi("Animation","AnimationEnd"),animationiteration:bi("Animation","AnimationIteration"),animationstart:bi("Animation","AnimationStart"),transitionrun:bi("Transition","TransitionRun"),transitionstart:bi("Transition","TransitionStart"),transitioncancel:bi("Transition","TransitionCancel"),transitionend:bi("Transition","TransitionEnd")},yh={},aT={};aa&&(aT=document.createElement("div").style,"AnimationEvent"in window||(delete yu.animationend.animation,delete yu.animationiteration.animation,delete yu.animationstart.animation),"TransitionEvent"in window||delete yu.transitionend.transition);function yi(n){if(yh[n])return yh[n];if(!yu[n])return n;var a=yu[n],u;for(u in a)if(a.hasOwnProperty(u)&&u in aT)return yh[n]=a[u];return n}var iT=yi("animationend"),uT=yi("animationiteration"),oT=yi("animationstart"),jM=yi("transitionrun"),qM=yi("transitionstart"),VM=yi("transitioncancel"),lT=yi("transitionend"),sT=new Map,Th="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Th.push("scrollEnd");function vr(n,a){sT.set(n,a),gi(a,[n])}var cT=new WeakMap;function Er(n,a){if(typeof n=="object"&&n!==null){var u=cT.get(n);return u!==void 0?u:(a={value:n,source:a,stack:vy(a)},cT.set(n,a),a)}return{value:n,source:a,stack:vy(a)}}var br=[],Tu=0,Sh=0;function gc(){for(var n=Tu,a=Sh=Tu=0;a<n;){var u=br[a];br[a++]=null;var l=br[a];br[a++]=null;var f=br[a];br[a++]=null;var m=br[a];if(br[a++]=null,l!==null&&f!==null){var C=l.pending;C===null?f.next=f:(f.next=C.next,C.next=f),l.pending=f}m!==0&&fT(u,f,m)}}function Ec(n,a,u,l){br[Tu++]=n,br[Tu++]=a,br[Tu++]=u,br[Tu++]=l,Sh|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function Ch(n,a,u,l){return Ec(n,a,u,l),bc(n)}function Su(n,a){return Ec(n,null,null,a),bc(n)}function fT(n,a,u){n.lanes|=u;var l=n.alternate;l!==null&&(l.lanes|=u);for(var f=!1,m=n.return;m!==null;)m.childLanes|=u,l=m.alternate,l!==null&&(l.childLanes|=u),m.tag===22&&(n=m.stateNode,n===null||n._visibility&1||(f=!0)),n=m,m=m.return;return n.tag===3?(m=n.stateNode,f&&a!==null&&(f=31-Ae(u),n=m.hiddenUpdates,l=n[f],l===null?n[f]=[a]:l.push(a),a.lane=u|536870912),m):null}function bc(n){if(50<Ml)throw Ml=0,Np=null,Error(i(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Cu={};function GM(n,a,u,l){this.tag=n,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function er(n,a,u,l){return new GM(n,a,u,l)}function Ah(n){return n=n.prototype,!(!n||!n.isReactComponent)}function ia(n,a){var u=n.alternate;return u===null?(u=er(n.tag,a,n.key,n.mode),u.elementType=n.elementType,u.type=n.type,u.stateNode=n.stateNode,u.alternate=n,n.alternate=u):(u.pendingProps=a,u.type=n.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=n.flags&65011712,u.childLanes=n.childLanes,u.lanes=n.lanes,u.child=n.child,u.memoizedProps=n.memoizedProps,u.memoizedState=n.memoizedState,u.updateQueue=n.updateQueue,a=n.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=n.sibling,u.index=n.index,u.ref=n.ref,u.refCleanup=n.refCleanup,u}function dT(n,a){n.flags&=65011714;var u=n.alternate;return u===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=u.childLanes,n.lanes=u.lanes,n.child=u.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=u.memoizedProps,n.memoizedState=u.memoizedState,n.updateQueue=u.updateQueue,n.type=u.type,a=u.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function yc(n,a,u,l,f,m){var C=0;if(l=n,typeof n=="function")Ah(n)&&(C=1);else if(typeof n=="string")C=X7(n,u,Ee.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case j:return n=er(31,u,a,f),n.elementType=j,n.lanes=m,n;case v:return Ti(u.children,f,m,a);case x:C=8,f|=24;break;case B:return n=er(12,u,a,f|2),n.elementType=B,n.lanes=m,n;case D:return n=er(13,u,a,f),n.elementType=D,n.lanes=m,n;case N:return n=er(19,u,a,f),n.elementType=N,n.lanes=m,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case I:case M:C=10;break e;case P:C=9;break e;case w:C=11;break e;case z:C=14;break e;case V:C=16,l=null;break e}C=29,u=Error(i(130,n===null?"null":typeof n,"")),l=null}return a=er(C,u,a,f),a.elementType=n,a.type=l,a.lanes=m,a}function Ti(n,a,u,l){return n=er(7,n,l,a),n.lanes=u,n}function xh(n,a,u){return n=er(6,n,null,a),n.lanes=u,n}function _h(n,a,u){return a=er(4,n.children!==null?n.children:[],n.key,a),a.lanes=u,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var Au=[],xu=0,Tc=null,Sc=0,yr=[],Tr=0,Si=null,ua=1,oa="";function Ci(n,a){Au[xu++]=Sc,Au[xu++]=Tc,Tc=n,Sc=a}function hT(n,a,u){yr[Tr++]=ua,yr[Tr++]=oa,yr[Tr++]=Si,Si=n;var l=ua;n=oa;var f=32-Ae(l)-1;l&=~(1<<f),u+=1;var m=32-Ae(a)+f;if(30<m){var C=f-f%5;m=(l&(1<<C)-1).toString(32),l>>=C,f-=C,ua=1<<32-Ae(a)+f|u<<f|l,oa=m+n}else ua=1<<m|u<<f|l,oa=n}function vh(n){n.return!==null&&(Ci(n,1),hT(n,1,0))}function Rh(n){for(;n===Tc;)Tc=Au[--xu],Au[xu]=null,Sc=Au[--xu],Au[xu]=null;for(;n===Si;)Si=yr[--Tr],yr[Tr]=null,oa=yr[--Tr],yr[Tr]=null,ua=yr[--Tr],yr[Tr]=null}var Dn=null,Vt=null,Et=!1,Ai=null,qr=!1,Nh=Error(i(519));function xi(n){var a=Error(i(418,""));throw hl(Er(a,n)),Nh}function pT(n){var a=n.stateNode,u=n.type,l=n.memoizedProps;switch(a[Ye]=n,a[Ge]=l,u){case"dialog":rt("cancel",a),rt("close",a);break;case"iframe":case"object":case"embed":rt("load",a);break;case"video":case"audio":for(u=0;u<Pl.length;u++)rt(Pl[u],a);break;case"source":rt("error",a);break;case"img":case"image":case"link":rt("error",a),rt("load",a);break;case"details":rt("toggle",a);break;case"input":rt("invalid",a),Oy(a,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),oc(a);break;case"select":rt("invalid",a);break;case"textarea":rt("invalid",a),Iy(a,l.value,l.defaultValue,l.children),oc(a)}u=l.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||l.suppressHydrationWarning===!0||IS(a.textContent,u)?(l.popover!=null&&(rt("beforetoggle",a),rt("toggle",a)),l.onScroll!=null&&rt("scroll",a),l.onScrollEnd!=null&&rt("scrollend",a),l.onClick!=null&&(a.onclick=tf),a=!0):a=!1,a||xi(n)}function mT(n){for(Dn=n.return;Dn;)switch(Dn.tag){case 5:case 13:qr=!1;return;case 27:case 3:qr=!0;return;default:Dn=Dn.return}}function fl(n){if(n!==Dn)return!1;if(!Et)return mT(n),Et=!0,!1;var a=n.tag,u;if((u=a!==3&&a!==27)&&((u=a===5)&&(u=n.type,u=!(u!=="form"&&u!=="button")||qp(n.type,n.memoizedProps)),u=!u),u&&Vt&&xi(n),mT(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));e:{for(n=n.nextSibling,a=0;n;){if(n.nodeType===8)if(u=n.data,u==="/$"){if(a===0){Vt=Nr(n.nextSibling);break e}a--}else u!=="$"&&u!=="$!"&&u!=="$?"||a++;n=n.nextSibling}Vt=null}}else a===27?(a=Vt,$a(n.type)?(n=Xp,Xp=null,Vt=n):Vt=a):Vt=Dn?Nr(n.stateNode.nextSibling):null;return!0}function dl(){Vt=Dn=null,Et=!1}function gT(){var n=Ai;return n!==null&&(Vn===null?Vn=n:Vn.push.apply(Vn,n),Ai=null),n}function hl(n){Ai===null?Ai=[n]:Ai.push(n)}var Oh=K(null),_i=null,la=null;function Da(n,a,u){O(Oh,a._currentValue),a._currentValue=u}function sa(n){n._currentValue=Oh.current,de(Oh)}function kh(n,a,u){for(;n!==null;){var l=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,l!==null&&(l.childLanes|=a)):l!==null&&(l.childLanes&a)!==a&&(l.childLanes|=a),n===u)break;n=n.return}}function Ih(n,a,u,l){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var m=f.dependencies;if(m!==null){var C=f.child;m=m.firstContext;e:for(;m!==null;){var R=m;m=f;for(var H=0;H<a.length;H++)if(R.context===a[H]){m.lanes|=u,R=m.alternate,R!==null&&(R.lanes|=u),kh(m.return,u,n),l||(C=null);break e}m=R.next}}else if(f.tag===18){if(C=f.return,C===null)throw Error(i(341));C.lanes|=u,m=C.alternate,m!==null&&(m.lanes|=u),kh(C,u,n),C=null}else C=f.child;if(C!==null)C.return=f;else for(C=f;C!==null;){if(C===n){C=null;break}if(f=C.sibling,f!==null){f.return=C.return,C=f;break}C=C.return}f=C}}function pl(n,a,u,l){n=null;for(var f=a,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var C=f.alternate;if(C===null)throw Error(i(387));if(C=C.memoizedProps,C!==null){var R=f.type;Jn(f.pendingProps.value,C.value)||(n!==null?n.push(R):n=[R])}}else if(f===Xe.current){if(C=f.alternate,C===null)throw Error(i(387));C.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(jl):n=[jl])}f=f.return}n!==null&&Ih(a,n,u,l),a.flags|=262144}function Cc(n){for(n=n.firstContext;n!==null;){if(!Jn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function vi(n){_i=n,la=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Nn(n){return ET(_i,n)}function Ac(n,a){return _i===null&&vi(n),ET(n,a)}function ET(n,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},la===null){if(n===null)throw Error(i(308));la=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else la=la.next=a;return u}var $M=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(u,l){n.push(l)}};this.abort=function(){a.aborted=!0,n.forEach(function(u){return u()})}},XM=e.unstable_scheduleCallback,QM=e.unstable_NormalPriority,on={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dh(){return{controller:new $M,data:new Map,refCount:0}}function ml(n){n.refCount--,n.refCount===0&&XM(QM,function(){n.controller.abort()})}var gl=null,wh=0,_u=0,vu=null;function KM(n,a){if(gl===null){var u=gl=[];wh=0,_u=Mp(),vu={status:"pending",value:void 0,then:function(l){u.push(l)}}}return wh++,a.then(bT,bT),a}function bT(){if(--wh===0&&gl!==null){vu!==null&&(vu.status="fulfilled");var n=gl;gl=null,_u=0,vu=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function WM(n,a){var u=[],l={status:"pending",value:null,reason:null,then:function(f){u.push(f)}};return n.then(function(){l.status="fulfilled",l.value=a;for(var f=0;f<u.length;f++)(0,u[f])(a)},function(f){for(l.status="rejected",l.reason=f,f=0;f<u.length;f++)(0,u[f])(void 0)}),l}var yT=F.S;F.S=function(n,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&KM(n,a),yT!==null&&yT(n,a)};var Ri=K(null);function Lh(){var n=Ri.current;return n!==null?n:Pt.pooledCache}function xc(n,a){a===null?O(Ri,Ri.current):O(Ri,a.pool)}function TT(){var n=Lh();return n===null?null:{parent:on._currentValue,pool:n}}var El=Error(i(460)),ST=Error(i(474)),_c=Error(i(542)),Mh={then:function(){}};function CT(n){return n=n.status,n==="fulfilled"||n==="rejected"}function vc(){}function AT(n,a,u){switch(u=n[u],u===void 0?n.push(a):u!==a&&(a.then(vc,vc),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,_T(n),n;default:if(typeof a.status=="string")a.then(vc,vc);else{if(n=Pt,n!==null&&100<n.shellSuspendCounter)throw Error(i(482));n=a,n.status="pending",n.then(function(l){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=l}},function(l){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=l}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,_T(n),n}throw bl=a,El}}var bl=null;function xT(){if(bl===null)throw Error(i(459));var n=bl;return bl=null,n}function _T(n){if(n===El||n===_c)throw Error(i(483))}var wa=!1;function Bh(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ph(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function La(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Ma(n,a,u){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(_t&2)!==0){var f=l.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),l.pending=a,a=bc(n),fT(n,null,u),a}return Ec(n,l,a,u),bc(n)}function yl(n,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194048)!==0)){var l=a.lanes;l&=n.pendingLanes,u|=l,a.lanes=u,rc(n,u)}}function Uh(n,a){var u=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,u===l)){var f=null,m=null;if(u=u.firstBaseUpdate,u!==null){do{var C={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};m===null?f=m=C:m=m.next=C,u=u.next}while(u!==null);m===null?f=m=a:m=m.next=a}else f=m=a;u={baseState:l.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:l.shared,callbacks:l.callbacks},n.updateQueue=u;return}n=u.lastBaseUpdate,n===null?u.firstBaseUpdate=a:n.next=a,u.lastBaseUpdate=a}var Hh=!1;function Tl(){if(Hh){var n=vu;if(n!==null)throw n}}function Sl(n,a,u,l){Hh=!1;var f=n.updateQueue;wa=!1;var m=f.firstBaseUpdate,C=f.lastBaseUpdate,R=f.shared.pending;if(R!==null){f.shared.pending=null;var H=R,W=H.next;H.next=null,C===null?m=W:C.next=W,C=H;var se=n.alternate;se!==null&&(se=se.updateQueue,R=se.lastBaseUpdate,R!==C&&(R===null?se.firstBaseUpdate=W:R.next=W,se.lastBaseUpdate=H))}if(m!==null){var fe=f.baseState;C=0,se=W=H=null,R=m;do{var ee=R.lane&-536870913,te=ee!==R.lane;if(te?(ot&ee)===ee:(l&ee)===ee){ee!==0&&ee===_u&&(Hh=!0),se!==null&&(se=se.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var je=n,Ue=R;ee=a;var kt=u;switch(Ue.tag){case 1:if(je=Ue.payload,typeof je=="function"){fe=je.call(kt,fe,ee);break e}fe=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=Ue.payload,ee=typeof je=="function"?je.call(kt,fe,ee):je,ee==null)break e;fe=E({},fe,ee);break e;case 2:wa=!0}}ee=R.callback,ee!==null&&(n.flags|=64,te&&(n.flags|=8192),te=f.callbacks,te===null?f.callbacks=[ee]:te.push(ee))}else te={lane:ee,tag:R.tag,payload:R.payload,callback:R.callback,next:null},se===null?(W=se=te,H=fe):se=se.next=te,C|=ee;if(R=R.next,R===null){if(R=f.shared.pending,R===null)break;te=R,R=te.next,te.next=null,f.lastBaseUpdate=te,f.shared.pending=null}}while(!0);se===null&&(H=fe),f.baseState=H,f.firstBaseUpdate=W,f.lastBaseUpdate=se,m===null&&(f.shared.lanes=0),ja|=C,n.lanes=C,n.memoizedState=fe}}function vT(n,a){if(typeof n!="function")throw Error(i(191,n));n.call(a)}function RT(n,a){var u=n.callbacks;if(u!==null)for(n.callbacks=null,n=0;n<u.length;n++)vT(u[n],a)}var Ru=K(null),Rc=K(0);function NT(n,a){n=ga,O(Rc,n),O(Ru,a),ga=n|a.baseLanes}function Fh(){O(Rc,ga),O(Ru,Ru.current)}function zh(){ga=Rc.current,de(Ru),de(Rc)}var Ba=0,Ze=null,Nt=null,rn=null,Nc=!1,Nu=!1,Ni=!1,Oc=0,Cl=0,Ou=null,ZM=0;function Qt(){throw Error(i(321))}function Yh(n,a){if(a===null)return!1;for(var u=0;u<a.length&&u<n.length;u++)if(!Jn(n[u],a[u]))return!1;return!0}function jh(n,a,u,l,f,m){return Ba=m,Ze=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,F.H=n===null||n.memoizedState===null?f3:d3,Ni=!1,m=u(l,f),Ni=!1,Nu&&(m=kT(a,u,l,f)),OT(n),m}function OT(n){F.H=Mc;var a=Nt!==null&&Nt.next!==null;if(Ba=0,rn=Nt=Ze=null,Nc=!1,Cl=0,Ou=null,a)throw Error(i(300));n===null||hn||(n=n.dependencies,n!==null&&Cc(n)&&(hn=!0))}function kT(n,a,u,l){Ze=n;var f=0;do{if(Nu&&(Ou=null),Cl=0,Nu=!1,25<=f)throw Error(i(301));if(f+=1,rn=Nt=null,n.updateQueue!=null){var m=n.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}F.H=i7,m=a(u,l)}while(Nu);return m}function JM(){var n=F.H,a=n.useState()[0];return a=typeof a.then=="function"?Al(a):a,n=n.useState()[0],(Nt!==null?Nt.memoizedState:null)!==n&&(Ze.flags|=1024),a}function qh(){var n=Oc!==0;return Oc=0,n}function Vh(n,a,u){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~u}function Gh(n){if(Nc){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Nc=!1}Ba=0,rn=Nt=Ze=null,Nu=!1,Cl=Oc=0,Ou=null}function jn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rn===null?Ze.memoizedState=rn=n:rn=rn.next=n,rn}function an(){if(Nt===null){var n=Ze.alternate;n=n!==null?n.memoizedState:null}else n=Nt.next;var a=rn===null?Ze.memoizedState:rn.next;if(a!==null)rn=a,Nt=n;else{if(n===null)throw Ze.alternate===null?Error(i(467)):Error(i(310));Nt=n,n={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},rn===null?Ze.memoizedState=rn=n:rn=rn.next=n}return rn}function $h(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Al(n){var a=Cl;return Cl+=1,Ou===null&&(Ou=[]),n=AT(Ou,n,a),a=Ze,(rn===null?a.memoizedState:rn.next)===null&&(a=a.alternate,F.H=a===null||a.memoizedState===null?f3:d3),n}function kc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Al(n);if(n.$$typeof===M)return Nn(n)}throw Error(i(438,String(n)))}function Xh(n){var a=null,u=Ze.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var l=Ze.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(a={data:l.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=$h(),Ze.updateQueue=u),u.memoCache=a,u=a.data[a.index],u===void 0)for(u=a.data[a.index]=Array(n),l=0;l<n;l++)u[l]=_;return a.index++,u}function ca(n,a){return typeof a=="function"?a(n):a}function Ic(n){var a=an();return Qh(a,Nt,n)}function Qh(n,a,u){var l=n.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=u;var f=n.baseQueue,m=l.pending;if(m!==null){if(f!==null){var C=f.next;f.next=m.next,m.next=C}a.baseQueue=f=m,l.pending=null}if(m=n.baseState,f===null)n.memoizedState=m;else{a=f.next;var R=C=null,H=null,W=a,se=!1;do{var fe=W.lane&-536870913;if(fe!==W.lane?(ot&fe)===fe:(Ba&fe)===fe){var ee=W.revertLane;if(ee===0)H!==null&&(H=H.next={lane:0,revertLane:0,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),fe===_u&&(se=!0);else if((Ba&ee)===ee){W=W.next,ee===_u&&(se=!0);continue}else fe={lane:0,revertLane:W.revertLane,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},H===null?(R=H=fe,C=m):H=H.next=fe,Ze.lanes|=ee,ja|=ee;fe=W.action,Ni&&u(m,fe),m=W.hasEagerState?W.eagerState:u(m,fe)}else ee={lane:fe,revertLane:W.revertLane,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},H===null?(R=H=ee,C=m):H=H.next=ee,Ze.lanes|=fe,ja|=fe;W=W.next}while(W!==null&&W!==a);if(H===null?C=m:H.next=R,!Jn(m,n.memoizedState)&&(hn=!0,se&&(u=vu,u!==null)))throw u;n.memoizedState=m,n.baseState=C,n.baseQueue=H,l.lastRenderedState=m}return f===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function Kh(n){var a=an(),u=a.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=n;var l=u.dispatch,f=u.pending,m=a.memoizedState;if(f!==null){u.pending=null;var C=f=f.next;do m=n(m,C.action),C=C.next;while(C!==f);Jn(m,a.memoizedState)||(hn=!0),a.memoizedState=m,a.baseQueue===null&&(a.baseState=m),u.lastRenderedState=m}return[m,l]}function IT(n,a,u){var l=Ze,f=an(),m=Et;if(m){if(u===void 0)throw Error(i(407));u=u()}else u=a();var C=!Jn((Nt||f).memoizedState,u);C&&(f.memoizedState=u,hn=!0),f=f.queue;var R=LT.bind(null,l,f,n);if(xl(2048,8,R,[n]),f.getSnapshot!==a||C||rn!==null&&rn.memoizedState.tag&1){if(l.flags|=2048,ku(9,Dc(),wT.bind(null,l,f,u,a),null),Pt===null)throw Error(i(349));m||(Ba&124)!==0||DT(l,a,u)}return u}function DT(n,a,u){n.flags|=16384,n={getSnapshot:a,value:u},a=Ze.updateQueue,a===null?(a=$h(),Ze.updateQueue=a,a.stores=[n]):(u=a.stores,u===null?a.stores=[n]:u.push(n))}function wT(n,a,u,l){a.value=u,a.getSnapshot=l,MT(a)&&BT(n)}function LT(n,a,u){return u(function(){MT(a)&&BT(n)})}function MT(n){var a=n.getSnapshot;n=n.value;try{var u=a();return!Jn(n,u)}catch{return!0}}function BT(n){var a=Su(n,2);a!==null&&ir(a,n,2)}function Wh(n){var a=jn();if(typeof n=="function"){var u=n;if(n=u(),Ni){Se(!0);try{u()}finally{Se(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:n},a}function PT(n,a,u,l){return n.baseState=u,Qh(n,Nt,typeof l=="function"?l:ca)}function e7(n,a,u,l,f){if(Lc(n))throw Error(i(485));if(n=a.action,n!==null){var m={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){m.listeners.push(C)}};F.T!==null?u(!0):m.isTransition=!1,l(m),u=a.pending,u===null?(m.next=a.pending=m,UT(a,m)):(m.next=u.next,a.pending=u.next=m)}}function UT(n,a){var u=a.action,l=a.payload,f=n.state;if(a.isTransition){var m=F.T,C={};F.T=C;try{var R=u(f,l),H=F.S;H!==null&&H(C,R),HT(n,a,R)}catch(W){Zh(n,a,W)}finally{F.T=m}}else try{m=u(f,l),HT(n,a,m)}catch(W){Zh(n,a,W)}}function HT(n,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(l){FT(n,a,l)},function(l){return Zh(n,a,l)}):FT(n,a,u)}function FT(n,a,u){a.status="fulfilled",a.value=u,zT(a),n.state=u,a=n.pending,a!==null&&(u=a.next,u===a?n.pending=null:(u=u.next,a.next=u,UT(n,u)))}function Zh(n,a,u){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do a.status="rejected",a.reason=u,zT(a),a=a.next;while(a!==l)}n.action=null}function zT(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function YT(n,a){return a}function jT(n,a){if(Et){var u=Pt.formState;if(u!==null){e:{var l=Ze;if(Et){if(Vt){t:{for(var f=Vt,m=qr;f.nodeType!==8;){if(!m){f=null;break t}if(f=Nr(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){Vt=Nr(f.nextSibling),l=f.data==="F!";break e}}xi(l)}l=!1}l&&(a=u[0])}}return u=jn(),u.memoizedState=u.baseState=a,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:YT,lastRenderedState:a},u.queue=l,u=l3.bind(null,Ze,l),l.dispatch=u,l=Wh(!1),m=rp.bind(null,Ze,!1,l.queue),l=jn(),f={state:a,dispatch:null,action:n,pending:null},l.queue=f,u=e7.bind(null,Ze,f,m,u),f.dispatch=u,l.memoizedState=n,[a,u,!1]}function qT(n){var a=an();return VT(a,Nt,n)}function VT(n,a,u){if(a=Qh(n,a,YT)[0],n=Ic(ca)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var l=Al(a)}catch(C){throw C===El?_c:C}else l=a;a=an();var f=a.queue,m=f.dispatch;return u!==a.memoizedState&&(Ze.flags|=2048,ku(9,Dc(),t7.bind(null,f,u),null)),[l,m,n]}function t7(n,a){n.action=a}function GT(n){var a=an(),u=Nt;if(u!==null)return VT(a,u,n);an(),a=a.memoizedState,u=an();var l=u.queue.dispatch;return u.memoizedState=n,[a,l,!1]}function ku(n,a,u,l){return n={tag:n,create:u,deps:l,inst:a,next:null},a=Ze.updateQueue,a===null&&(a=$h(),Ze.updateQueue=a),u=a.lastEffect,u===null?a.lastEffect=n.next=n:(l=u.next,u.next=n,n.next=l,a.lastEffect=n),n}function Dc(){return{destroy:void 0,resource:void 0}}function $T(){return an().memoizedState}function wc(n,a,u,l){var f=jn();l=l===void 0?null:l,Ze.flags|=n,f.memoizedState=ku(1|a,Dc(),u,l)}function xl(n,a,u,l){var f=an();l=l===void 0?null:l;var m=f.memoizedState.inst;Nt!==null&&l!==null&&Yh(l,Nt.memoizedState.deps)?f.memoizedState=ku(a,m,u,l):(Ze.flags|=n,f.memoizedState=ku(1|a,m,u,l))}function XT(n,a){wc(8390656,8,n,a)}function QT(n,a){xl(2048,8,n,a)}function KT(n,a){return xl(4,2,n,a)}function WT(n,a){return xl(4,4,n,a)}function ZT(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,xl(4,4,ZT.bind(null,a,n),u)}function Jh(){}function e3(n,a){var u=an();a=a===void 0?null:a;var l=u.memoizedState;return a!==null&&Yh(a,l[1])?l[0]:(u.memoizedState=[n,a],n)}function t3(n,a){var u=an();a=a===void 0?null:a;var l=u.memoizedState;if(a!==null&&Yh(a,l[1]))return l[0];if(l=n(),Ni){Se(!0);try{n()}finally{Se(!1)}}return u.memoizedState=[l,a],l}function ep(n,a,u){return u===void 0||(Ba&1073741824)!==0?n.memoizedState=a:(n.memoizedState=u,n=aS(),Ze.lanes|=n,ja|=n,u)}function n3(n,a,u,l){return Jn(u,a)?u:Ru.current!==null?(n=ep(n,u,l),Jn(n,a)||(hn=!0),n):(Ba&42)===0?(hn=!0,n.memoizedState=u):(n=aS(),Ze.lanes|=n,ja|=n,a)}function r3(n,a,u,l,f){var m=ae.p;ae.p=m!==0&&8>m?m:8;var C=F.T,R={};F.T=R,rp(n,!1,a,u);try{var H=f(),W=F.S;if(W!==null&&W(R,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var se=WM(H,l);_l(n,a,se,ar(n))}else _l(n,a,l,ar(n))}catch(fe){_l(n,a,{then:function(){},status:"rejected",reason:fe},ar())}finally{ae.p=m,F.T=C}}function n7(){}function tp(n,a,u,l){if(n.tag!==5)throw Error(i(476));var f=a3(n).queue;r3(n,f,a,ie,u===null?n7:function(){return i3(n),u(l)})}function a3(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:ie},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:u},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function i3(n){var a=a3(n).next.queue;_l(n,a,{},ar())}function np(){return Nn(jl)}function u3(){return an().memoizedState}function o3(){return an().memoizedState}function r7(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var u=ar();n=La(u);var l=Ma(a,n,u);l!==null&&(ir(l,a,u),yl(l,a,u)),a={cache:Dh()},n.payload=a;return}a=a.return}}function a7(n,a,u){var l=ar();u={lane:l,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},Lc(n)?s3(a,u):(u=Ch(n,a,u,l),u!==null&&(ir(u,n,l),c3(u,a,l)))}function l3(n,a,u){var l=ar();_l(n,a,u,l)}function _l(n,a,u,l){var f={lane:l,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(Lc(n))s3(a,f);else{var m=n.alternate;if(n.lanes===0&&(m===null||m.lanes===0)&&(m=a.lastRenderedReducer,m!==null))try{var C=a.lastRenderedState,R=m(C,u);if(f.hasEagerState=!0,f.eagerState=R,Jn(R,C))return Ec(n,a,f,0),Pt===null&&gc(),!1}catch{}finally{}if(u=Ch(n,a,f,l),u!==null)return ir(u,n,l),c3(u,a,l),!0}return!1}function rp(n,a,u,l){if(l={lane:2,revertLane:Mp(),action:l,hasEagerState:!1,eagerState:null,next:null},Lc(n)){if(a)throw Error(i(479))}else a=Ch(n,u,l,2),a!==null&&ir(a,n,2)}function Lc(n){var a=n.alternate;return n===Ze||a!==null&&a===Ze}function s3(n,a){Nu=Nc=!0;var u=n.pending;u===null?a.next=a:(a.next=u.next,u.next=a),n.pending=a}function c3(n,a,u){if((u&4194048)!==0){var l=a.lanes;l&=n.pendingLanes,u|=l,a.lanes=u,rc(n,u)}}var Mc={readContext:Nn,use:kc,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useLayoutEffect:Qt,useInsertionEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useSyncExternalStore:Qt,useId:Qt,useHostTransitionStatus:Qt,useFormState:Qt,useActionState:Qt,useOptimistic:Qt,useMemoCache:Qt,useCacheRefresh:Qt},f3={readContext:Nn,use:kc,useCallback:function(n,a){return jn().memoizedState=[n,a===void 0?null:a],n},useContext:Nn,useEffect:XT,useImperativeHandle:function(n,a,u){u=u!=null?u.concat([n]):null,wc(4194308,4,ZT.bind(null,a,n),u)},useLayoutEffect:function(n,a){return wc(4194308,4,n,a)},useInsertionEffect:function(n,a){wc(4,2,n,a)},useMemo:function(n,a){var u=jn();a=a===void 0?null:a;var l=n();if(Ni){Se(!0);try{n()}finally{Se(!1)}}return u.memoizedState=[l,a],l},useReducer:function(n,a,u){var l=jn();if(u!==void 0){var f=u(a);if(Ni){Se(!0);try{u(a)}finally{Se(!1)}}}else f=a;return l.memoizedState=l.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},l.queue=n,n=n.dispatch=a7.bind(null,Ze,n),[l.memoizedState,n]},useRef:function(n){var a=jn();return n={current:n},a.memoizedState=n},useState:function(n){n=Wh(n);var a=n.queue,u=l3.bind(null,Ze,a);return a.dispatch=u,[n.memoizedState,u]},useDebugValue:Jh,useDeferredValue:function(n,a){var u=jn();return ep(u,n,a)},useTransition:function(){var n=Wh(!1);return n=r3.bind(null,Ze,n.queue,!0,!1),jn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,u){var l=Ze,f=jn();if(Et){if(u===void 0)throw Error(i(407));u=u()}else{if(u=a(),Pt===null)throw Error(i(349));(ot&124)!==0||DT(l,a,u)}f.memoizedState=u;var m={value:u,getSnapshot:a};return f.queue=m,XT(LT.bind(null,l,m,n),[n]),l.flags|=2048,ku(9,Dc(),wT.bind(null,l,m,u,a),null),u},useId:function(){var n=jn(),a=Pt.identifierPrefix;if(Et){var u=oa,l=ua;u=(l&~(1<<32-Ae(l)-1)).toString(32)+u,a="«"+a+"R"+u,u=Oc++,0<u&&(a+="H"+u.toString(32)),a+="»"}else u=ZM++,a="«"+a+"r"+u.toString(32)+"»";return n.memoizedState=a},useHostTransitionStatus:np,useFormState:jT,useActionState:jT,useOptimistic:function(n){var a=jn();a.memoizedState=a.baseState=n;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=rp.bind(null,Ze,!0,u),u.dispatch=a,[n,a]},useMemoCache:Xh,useCacheRefresh:function(){return jn().memoizedState=r7.bind(null,Ze)}},d3={readContext:Nn,use:kc,useCallback:e3,useContext:Nn,useEffect:QT,useImperativeHandle:JT,useInsertionEffect:KT,useLayoutEffect:WT,useMemo:t3,useReducer:Ic,useRef:$T,useState:function(){return Ic(ca)},useDebugValue:Jh,useDeferredValue:function(n,a){var u=an();return n3(u,Nt.memoizedState,n,a)},useTransition:function(){var n=Ic(ca)[0],a=an().memoizedState;return[typeof n=="boolean"?n:Al(n),a]},useSyncExternalStore:IT,useId:u3,useHostTransitionStatus:np,useFormState:qT,useActionState:qT,useOptimistic:function(n,a){var u=an();return PT(u,Nt,n,a)},useMemoCache:Xh,useCacheRefresh:o3},i7={readContext:Nn,use:kc,useCallback:e3,useContext:Nn,useEffect:QT,useImperativeHandle:JT,useInsertionEffect:KT,useLayoutEffect:WT,useMemo:t3,useReducer:Kh,useRef:$T,useState:function(){return Kh(ca)},useDebugValue:Jh,useDeferredValue:function(n,a){var u=an();return Nt===null?ep(u,n,a):n3(u,Nt.memoizedState,n,a)},useTransition:function(){var n=Kh(ca)[0],a=an().memoizedState;return[typeof n=="boolean"?n:Al(n),a]},useSyncExternalStore:IT,useId:u3,useHostTransitionStatus:np,useFormState:GT,useActionState:GT,useOptimistic:function(n,a){var u=an();return Nt!==null?PT(u,Nt,n,a):(u.baseState=n,[n,u.queue.dispatch])},useMemoCache:Xh,useCacheRefresh:o3},Iu=null,vl=0;function Bc(n){var a=vl;return vl+=1,Iu===null&&(Iu=[]),AT(Iu,n,a)}function Rl(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Pc(n,a){throw a.$$typeof===b?Error(i(525)):(n=Object.prototype.toString.call(a),Error(i(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function h3(n){var a=n._init;return a(n._payload)}function p3(n){function a(G,Y){if(n){var X=G.deletions;X===null?(G.deletions=[Y],G.flags|=16):X.push(Y)}}function u(G,Y){if(!n)return null;for(;Y!==null;)a(G,Y),Y=Y.sibling;return null}function l(G){for(var Y=new Map;G!==null;)G.key!==null?Y.set(G.key,G):Y.set(G.index,G),G=G.sibling;return Y}function f(G,Y){return G=ia(G,Y),G.index=0,G.sibling=null,G}function m(G,Y,X){return G.index=X,n?(X=G.alternate,X!==null?(X=X.index,X<Y?(G.flags|=67108866,Y):X):(G.flags|=67108866,Y)):(G.flags|=1048576,Y)}function C(G){return n&&G.alternate===null&&(G.flags|=67108866),G}function R(G,Y,X,ce){return Y===null||Y.tag!==6?(Y=xh(X,G.mode,ce),Y.return=G,Y):(Y=f(Y,X),Y.return=G,Y)}function H(G,Y,X,ce){var ve=X.type;return ve===v?se(G,Y,X.props.children,ce,X.key):Y!==null&&(Y.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===V&&h3(ve)===Y.type)?(Y=f(Y,X.props),Rl(Y,X),Y.return=G,Y):(Y=yc(X.type,X.key,X.props,null,G.mode,ce),Rl(Y,X),Y.return=G,Y)}function W(G,Y,X,ce){return Y===null||Y.tag!==4||Y.stateNode.containerInfo!==X.containerInfo||Y.stateNode.implementation!==X.implementation?(Y=_h(X,G.mode,ce),Y.return=G,Y):(Y=f(Y,X.children||[]),Y.return=G,Y)}function se(G,Y,X,ce,ve){return Y===null||Y.tag!==7?(Y=Ti(X,G.mode,ce,ve),Y.return=G,Y):(Y=f(Y,X),Y.return=G,Y)}function fe(G,Y,X){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Y=xh(""+Y,G.mode,X),Y.return=G,Y;if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case T:return X=yc(Y.type,Y.key,Y.props,null,G.mode,X),Rl(X,Y),X.return=G,X;case y:return Y=_h(Y,G.mode,X),Y.return=G,Y;case V:var ce=Y._init;return Y=ce(Y._payload),fe(G,Y,X)}if(ne(Y)||$(Y))return Y=Ti(Y,G.mode,X,null),Y.return=G,Y;if(typeof Y.then=="function")return fe(G,Bc(Y),X);if(Y.$$typeof===M)return fe(G,Ac(G,Y),X);Pc(G,Y)}return null}function ee(G,Y,X,ce){var ve=Y!==null?Y.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return ve!==null?null:R(G,Y,""+X,ce);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case T:return X.key===ve?H(G,Y,X,ce):null;case y:return X.key===ve?W(G,Y,X,ce):null;case V:return ve=X._init,X=ve(X._payload),ee(G,Y,X,ce)}if(ne(X)||$(X))return ve!==null?null:se(G,Y,X,ce,null);if(typeof X.then=="function")return ee(G,Y,Bc(X),ce);if(X.$$typeof===M)return ee(G,Y,Ac(G,X),ce);Pc(G,X)}return null}function te(G,Y,X,ce,ve){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return G=G.get(X)||null,R(Y,G,""+ce,ve);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case T:return G=G.get(ce.key===null?X:ce.key)||null,H(Y,G,ce,ve);case y:return G=G.get(ce.key===null?X:ce.key)||null,W(Y,G,ce,ve);case V:var et=ce._init;return ce=et(ce._payload),te(G,Y,X,ce,ve)}if(ne(ce)||$(ce))return G=G.get(X)||null,se(Y,G,ce,ve,null);if(typeof ce.then=="function")return te(G,Y,X,Bc(ce),ve);if(ce.$$typeof===M)return te(G,Y,X,Ac(Y,ce),ve);Pc(Y,ce)}return null}function je(G,Y,X,ce){for(var ve=null,et=null,De=Y,ze=Y=0,mn=null;De!==null&&ze<X.length;ze++){De.index>ze?(mn=De,De=null):mn=De.sibling;var ft=ee(G,De,X[ze],ce);if(ft===null){De===null&&(De=mn);break}n&&De&&ft.alternate===null&&a(G,De),Y=m(ft,Y,ze),et===null?ve=ft:et.sibling=ft,et=ft,De=mn}if(ze===X.length)return u(G,De),Et&&Ci(G,ze),ve;if(De===null){for(;ze<X.length;ze++)De=fe(G,X[ze],ce),De!==null&&(Y=m(De,Y,ze),et===null?ve=De:et.sibling=De,et=De);return Et&&Ci(G,ze),ve}for(De=l(De);ze<X.length;ze++)mn=te(De,G,ze,X[ze],ce),mn!==null&&(n&&mn.alternate!==null&&De.delete(mn.key===null?ze:mn.key),Y=m(mn,Y,ze),et===null?ve=mn:et.sibling=mn,et=mn);return n&&De.forEach(function(Za){return a(G,Za)}),Et&&Ci(G,ze),ve}function Ue(G,Y,X,ce){if(X==null)throw Error(i(151));for(var ve=null,et=null,De=Y,ze=Y=0,mn=null,ft=X.next();De!==null&&!ft.done;ze++,ft=X.next()){De.index>ze?(mn=De,De=null):mn=De.sibling;var Za=ee(G,De,ft.value,ce);if(Za===null){De===null&&(De=mn);break}n&&De&&Za.alternate===null&&a(G,De),Y=m(Za,Y,ze),et===null?ve=Za:et.sibling=Za,et=Za,De=mn}if(ft.done)return u(G,De),Et&&Ci(G,ze),ve;if(De===null){for(;!ft.done;ze++,ft=X.next())ft=fe(G,ft.value,ce),ft!==null&&(Y=m(ft,Y,ze),et===null?ve=ft:et.sibling=ft,et=ft);return Et&&Ci(G,ze),ve}for(De=l(De);!ft.done;ze++,ft=X.next())ft=te(De,G,ze,ft.value,ce),ft!==null&&(n&&ft.alternate!==null&&De.delete(ft.key===null?ze:ft.key),Y=m(ft,Y,ze),et===null?ve=ft:et.sibling=ft,et=ft);return n&&De.forEach(function(uB){return a(G,uB)}),Et&&Ci(G,ze),ve}function kt(G,Y,X,ce){if(typeof X=="object"&&X!==null&&X.type===v&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case T:e:{for(var ve=X.key;Y!==null;){if(Y.key===ve){if(ve=X.type,ve===v){if(Y.tag===7){u(G,Y.sibling),ce=f(Y,X.props.children),ce.return=G,G=ce;break e}}else if(Y.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===V&&h3(ve)===Y.type){u(G,Y.sibling),ce=f(Y,X.props),Rl(ce,X),ce.return=G,G=ce;break e}u(G,Y);break}else a(G,Y);Y=Y.sibling}X.type===v?(ce=Ti(X.props.children,G.mode,ce,X.key),ce.return=G,G=ce):(ce=yc(X.type,X.key,X.props,null,G.mode,ce),Rl(ce,X),ce.return=G,G=ce)}return C(G);case y:e:{for(ve=X.key;Y!==null;){if(Y.key===ve)if(Y.tag===4&&Y.stateNode.containerInfo===X.containerInfo&&Y.stateNode.implementation===X.implementation){u(G,Y.sibling),ce=f(Y,X.children||[]),ce.return=G,G=ce;break e}else{u(G,Y);break}else a(G,Y);Y=Y.sibling}ce=_h(X,G.mode,ce),ce.return=G,G=ce}return C(G);case V:return ve=X._init,X=ve(X._payload),kt(G,Y,X,ce)}if(ne(X))return je(G,Y,X,ce);if($(X)){if(ve=$(X),typeof ve!="function")throw Error(i(150));return X=ve.call(X),Ue(G,Y,X,ce)}if(typeof X.then=="function")return kt(G,Y,Bc(X),ce);if(X.$$typeof===M)return kt(G,Y,Ac(G,X),ce);Pc(G,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,Y!==null&&Y.tag===6?(u(G,Y.sibling),ce=f(Y,X),ce.return=G,G=ce):(u(G,Y),ce=xh(X,G.mode,ce),ce.return=G,G=ce),C(G)):u(G,Y)}return function(G,Y,X,ce){try{vl=0;var ve=kt(G,Y,X,ce);return Iu=null,ve}catch(De){if(De===El||De===_c)throw De;var et=er(29,De,null,G.mode);return et.lanes=ce,et.return=G,et}finally{}}}var Du=p3(!0),m3=p3(!1),Sr=K(null),Vr=null;function Pa(n){var a=n.alternate;O(ln,ln.current&1),O(Sr,n),Vr===null&&(a===null||Ru.current!==null||a.memoizedState!==null)&&(Vr=n)}function g3(n){if(n.tag===22){if(O(ln,ln.current),O(Sr,n),Vr===null){var a=n.alternate;a!==null&&a.memoizedState!==null&&(Vr=n)}}else Ua()}function Ua(){O(ln,ln.current),O(Sr,Sr.current)}function fa(n){de(Sr),Vr===n&&(Vr=null),de(ln)}var ln=K(0);function Uc(n){for(var a=n;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||$p(u)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function ap(n,a,u,l){a=n.memoizedState,u=u(l,a),u=u==null?a:E({},a,u),n.memoizedState=u,n.lanes===0&&(n.updateQueue.baseState=u)}var ip={enqueueSetState:function(n,a,u){n=n._reactInternals;var l=ar(),f=La(l);f.payload=a,u!=null&&(f.callback=u),a=Ma(n,f,l),a!==null&&(ir(a,n,l),yl(a,n,l))},enqueueReplaceState:function(n,a,u){n=n._reactInternals;var l=ar(),f=La(l);f.tag=1,f.payload=a,u!=null&&(f.callback=u),a=Ma(n,f,l),a!==null&&(ir(a,n,l),yl(a,n,l))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var u=ar(),l=La(u);l.tag=2,a!=null&&(l.callback=a),a=Ma(n,l,u),a!==null&&(ir(a,n,u),yl(a,n,u))}};function E3(n,a,u,l,f,m,C){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,m,C):a.prototype&&a.prototype.isPureReactComponent?!sl(u,l)||!sl(f,m):!0}function b3(n,a,u,l){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,l),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,l),a.state!==n&&ip.enqueueReplaceState(a,a.state,null)}function Oi(n,a){var u=a;if("ref"in a){u={};for(var l in a)l!=="ref"&&(u[l]=a[l])}if(n=n.defaultProps){u===a&&(u=E({},u));for(var f in n)u[f]===void 0&&(u[f]=n[f])}return u}var Hc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function y3(n){Hc(n)}function T3(n){console.error(n)}function S3(n){Hc(n)}function Fc(n,a){try{var u=n.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(l){setTimeout(function(){throw l})}}function C3(n,a,u){try{var l=n.onCaughtError;l(u.value,{componentStack:u.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function up(n,a,u){return u=La(u),u.tag=3,u.payload={element:null},u.callback=function(){Fc(n,a)},u}function A3(n){return n=La(n),n.tag=3,n}function x3(n,a,u,l){var f=u.type.getDerivedStateFromError;if(typeof f=="function"){var m=l.value;n.payload=function(){return f(m)},n.callback=function(){C3(a,u,l)}}var C=u.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(n.callback=function(){C3(a,u,l),typeof f!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var R=l.stack;this.componentDidCatch(l.value,{componentStack:R!==null?R:""})})}function u7(n,a,u,l,f){if(u.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(a=u.alternate,a!==null&&pl(a,u,f,!0),u=Sr.current,u!==null){switch(u.tag){case 13:return Vr===null?kp():u.alternate===null&&Gt===0&&(Gt=3),u.flags&=-257,u.flags|=65536,u.lanes=f,l===Mh?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([l]):a.add(l),Dp(n,l,f)),!1;case 22:return u.flags|=65536,l===Mh?u.flags|=16384:(a=u.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([l])},u.updateQueue=a):(u=a.retryQueue,u===null?a.retryQueue=new Set([l]):u.add(l)),Dp(n,l,f)),!1}throw Error(i(435,u.tag))}return Dp(n,l,f),kp(),!1}if(Et)return a=Sr.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,l!==Nh&&(n=Error(i(422),{cause:l}),hl(Er(n,u)))):(l!==Nh&&(a=Error(i(423),{cause:l}),hl(Er(a,u))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,l=Er(l,u),f=up(n.stateNode,l,f),Uh(n,f),Gt!==4&&(Gt=2)),!1;var m=Error(i(520),{cause:l});if(m=Er(m,u),Ll===null?Ll=[m]:Ll.push(m),Gt!==4&&(Gt=2),a===null)return!0;l=Er(l,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,n=f&-f,u.lanes|=n,n=up(u.stateNode,l,n),Uh(u,n),!1;case 1:if(a=u.type,m=u.stateNode,(u.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(qa===null||!qa.has(m))))return u.flags|=65536,f&=-f,u.lanes|=f,f=A3(f),x3(f,n,u,l),Uh(u,f),!1}u=u.return}while(u!==null);return!1}var _3=Error(i(461)),hn=!1;function bn(n,a,u,l){a.child=n===null?m3(a,null,u,l):Du(a,n.child,u,l)}function v3(n,a,u,l,f){u=u.render;var m=a.ref;if("ref"in l){var C={};for(var R in l)R!=="ref"&&(C[R]=l[R])}else C=l;return vi(a),l=jh(n,a,u,C,m,f),R=qh(),n!==null&&!hn?(Vh(n,a,f),da(n,a,f)):(Et&&R&&vh(a),a.flags|=1,bn(n,a,l,f),a.child)}function R3(n,a,u,l,f){if(n===null){var m=u.type;return typeof m=="function"&&!Ah(m)&&m.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=m,N3(n,a,m,l,f)):(n=yc(u.type,null,l,a,a.mode,f),n.ref=a.ref,n.return=a,a.child=n)}if(m=n.child,!pp(n,f)){var C=m.memoizedProps;if(u=u.compare,u=u!==null?u:sl,u(C,l)&&n.ref===a.ref)return da(n,a,f)}return a.flags|=1,n=ia(m,l),n.ref=a.ref,n.return=a,a.child=n}function N3(n,a,u,l,f){if(n!==null){var m=n.memoizedProps;if(sl(m,l)&&n.ref===a.ref)if(hn=!1,a.pendingProps=l=m,pp(n,f))(n.flags&131072)!==0&&(hn=!0);else return a.lanes=n.lanes,da(n,a,f)}return op(n,a,u,l,f)}function O3(n,a,u){var l=a.pendingProps,f=l.children,m=n!==null?n.memoizedState:null;if(l.mode==="hidden"){if((a.flags&128)!==0){if(l=m!==null?m.baseLanes|u:u,n!==null){for(f=a.child=n.child,m=0;f!==null;)m=m|f.lanes|f.childLanes,f=f.sibling;a.childLanes=m&~l}else a.childLanes=0,a.child=null;return k3(n,a,l,u)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&xc(a,m!==null?m.cachePool:null),m!==null?NT(a,m):Fh(),g3(a);else return a.lanes=a.childLanes=536870912,k3(n,a,m!==null?m.baseLanes|u:u,u)}else m!==null?(xc(a,m.cachePool),NT(a,m),Ua(),a.memoizedState=null):(n!==null&&xc(a,null),Fh(),Ua());return bn(n,a,f,u),a.child}function k3(n,a,u,l){var f=Lh();return f=f===null?null:{parent:on._currentValue,pool:f},a.memoizedState={baseLanes:u,cachePool:f},n!==null&&xc(a,null),Fh(),g3(a),n!==null&&pl(n,a,l,!0),null}function zc(n,a){var u=a.ref;if(u===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(i(284));(n===null||n.ref!==u)&&(a.flags|=4194816)}}function op(n,a,u,l,f){return vi(a),u=jh(n,a,u,l,void 0,f),l=qh(),n!==null&&!hn?(Vh(n,a,f),da(n,a,f)):(Et&&l&&vh(a),a.flags|=1,bn(n,a,u,f),a.child)}function I3(n,a,u,l,f,m){return vi(a),a.updateQueue=null,u=kT(a,l,u,f),OT(n),l=qh(),n!==null&&!hn?(Vh(n,a,m),da(n,a,m)):(Et&&l&&vh(a),a.flags|=1,bn(n,a,u,m),a.child)}function D3(n,a,u,l,f){if(vi(a),a.stateNode===null){var m=Cu,C=u.contextType;typeof C=="object"&&C!==null&&(m=Nn(C)),m=new u(l,m),a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=ip,a.stateNode=m,m._reactInternals=a,m=a.stateNode,m.props=l,m.state=a.memoizedState,m.refs={},Bh(a),C=u.contextType,m.context=typeof C=="object"&&C!==null?Nn(C):Cu,m.state=a.memoizedState,C=u.getDerivedStateFromProps,typeof C=="function"&&(ap(a,u,C,l),m.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(C=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),C!==m.state&&ip.enqueueReplaceState(m,m.state,null),Sl(a,l,m,f),Tl(),m.state=a.memoizedState),typeof m.componentDidMount=="function"&&(a.flags|=4194308),l=!0}else if(n===null){m=a.stateNode;var R=a.memoizedProps,H=Oi(u,R);m.props=H;var W=m.context,se=u.contextType;C=Cu,typeof se=="object"&&se!==null&&(C=Nn(se));var fe=u.getDerivedStateFromProps;se=typeof fe=="function"||typeof m.getSnapshotBeforeUpdate=="function",R=a.pendingProps!==R,se||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(R||W!==C)&&b3(a,m,l,C),wa=!1;var ee=a.memoizedState;m.state=ee,Sl(a,l,m,f),Tl(),W=a.memoizedState,R||ee!==W||wa?(typeof fe=="function"&&(ap(a,u,fe,l),W=a.memoizedState),(H=wa||E3(a,u,H,l,ee,W,C))?(se||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(a.flags|=4194308)):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=l,a.memoizedState=W),m.props=l,m.state=W,m.context=C,l=H):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),l=!1)}else{m=a.stateNode,Ph(n,a),C=a.memoizedProps,se=Oi(u,C),m.props=se,fe=a.pendingProps,ee=m.context,W=u.contextType,H=Cu,typeof W=="object"&&W!==null&&(H=Nn(W)),R=u.getDerivedStateFromProps,(W=typeof R=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(C!==fe||ee!==H)&&b3(a,m,l,H),wa=!1,ee=a.memoizedState,m.state=ee,Sl(a,l,m,f),Tl();var te=a.memoizedState;C!==fe||ee!==te||wa||n!==null&&n.dependencies!==null&&Cc(n.dependencies)?(typeof R=="function"&&(ap(a,u,R,l),te=a.memoizedState),(se=wa||E3(a,u,se,l,ee,te,H)||n!==null&&n.dependencies!==null&&Cc(n.dependencies))?(W||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(l,te,H),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(l,te,H)),typeof m.componentDidUpdate=="function"&&(a.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof m.componentDidUpdate!="function"||C===n.memoizedProps&&ee===n.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||C===n.memoizedProps&&ee===n.memoizedState||(a.flags|=1024),a.memoizedProps=l,a.memoizedState=te),m.props=l,m.state=te,m.context=H,l=se):(typeof m.componentDidUpdate!="function"||C===n.memoizedProps&&ee===n.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||C===n.memoizedProps&&ee===n.memoizedState||(a.flags|=1024),l=!1)}return m=l,zc(n,a),l=(a.flags&128)!==0,m||l?(m=a.stateNode,u=l&&typeof u.getDerivedStateFromError!="function"?null:m.render(),a.flags|=1,n!==null&&l?(a.child=Du(a,n.child,null,f),a.child=Du(a,null,u,f)):bn(n,a,u,f),a.memoizedState=m.state,n=a.child):n=da(n,a,f),n}function w3(n,a,u,l){return dl(),a.flags|=256,bn(n,a,u,l),a.child}var lp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sp(n){return{baseLanes:n,cachePool:TT()}}function cp(n,a,u){return n=n!==null?n.childLanes&~u:0,a&&(n|=Cr),n}function L3(n,a,u){var l=a.pendingProps,f=!1,m=(a.flags&128)!==0,C;if((C=m)||(C=n!==null&&n.memoizedState===null?!1:(ln.current&2)!==0),C&&(f=!0,a.flags&=-129),C=(a.flags&32)!==0,a.flags&=-33,n===null){if(Et){if(f?Pa(a):Ua(),Et){var R=Vt,H;if(H=R){e:{for(H=R,R=qr;H.nodeType!==8;){if(!R){R=null;break e}if(H=Nr(H.nextSibling),H===null){R=null;break e}}R=H}R!==null?(a.memoizedState={dehydrated:R,treeContext:Si!==null?{id:ua,overflow:oa}:null,retryLane:536870912,hydrationErrors:null},H=er(18,null,null,0),H.stateNode=R,H.return=a,a.child=H,Dn=a,Vt=null,H=!0):H=!1}H||xi(a)}if(R=a.memoizedState,R!==null&&(R=R.dehydrated,R!==null))return $p(R)?a.lanes=32:a.lanes=536870912,null;fa(a)}return R=l.children,l=l.fallback,f?(Ua(),f=a.mode,R=Yc({mode:"hidden",children:R},f),l=Ti(l,f,u,null),R.return=a,l.return=a,R.sibling=l,a.child=R,f=a.child,f.memoizedState=sp(u),f.childLanes=cp(n,C,u),a.memoizedState=lp,l):(Pa(a),fp(a,R))}if(H=n.memoizedState,H!==null&&(R=H.dehydrated,R!==null)){if(m)a.flags&256?(Pa(a),a.flags&=-257,a=dp(n,a,u)):a.memoizedState!==null?(Ua(),a.child=n.child,a.flags|=128,a=null):(Ua(),f=l.fallback,R=a.mode,l=Yc({mode:"visible",children:l.children},R),f=Ti(f,R,u,null),f.flags|=2,l.return=a,f.return=a,l.sibling=f,a.child=l,Du(a,n.child,null,u),l=a.child,l.memoizedState=sp(u),l.childLanes=cp(n,C,u),a.memoizedState=lp,a=f);else if(Pa(a),$p(R)){if(C=R.nextSibling&&R.nextSibling.dataset,C)var W=C.dgst;C=W,l=Error(i(419)),l.stack="",l.digest=C,hl({value:l,source:null,stack:null}),a=dp(n,a,u)}else if(hn||pl(n,a,u,!1),C=(u&n.childLanes)!==0,hn||C){if(C=Pt,C!==null&&(l=u&-u,l=(l&42)!==0?1:Zo(l),l=(l&(C.suspendedLanes|u))!==0?0:l,l!==0&&l!==H.retryLane))throw H.retryLane=l,Su(n,l),ir(C,n,l),_3;R.data==="$?"||kp(),a=dp(n,a,u)}else R.data==="$?"?(a.flags|=192,a.child=n.child,a=null):(n=H.treeContext,Vt=Nr(R.nextSibling),Dn=a,Et=!0,Ai=null,qr=!1,n!==null&&(yr[Tr++]=ua,yr[Tr++]=oa,yr[Tr++]=Si,ua=n.id,oa=n.overflow,Si=a),a=fp(a,l.children),a.flags|=4096);return a}return f?(Ua(),f=l.fallback,R=a.mode,H=n.child,W=H.sibling,l=ia(H,{mode:"hidden",children:l.children}),l.subtreeFlags=H.subtreeFlags&65011712,W!==null?f=ia(W,f):(f=Ti(f,R,u,null),f.flags|=2),f.return=a,l.return=a,l.sibling=f,a.child=l,l=f,f=a.child,R=n.child.memoizedState,R===null?R=sp(u):(H=R.cachePool,H!==null?(W=on._currentValue,H=H.parent!==W?{parent:W,pool:W}:H):H=TT(),R={baseLanes:R.baseLanes|u,cachePool:H}),f.memoizedState=R,f.childLanes=cp(n,C,u),a.memoizedState=lp,l):(Pa(a),u=n.child,n=u.sibling,u=ia(u,{mode:"visible",children:l.children}),u.return=a,u.sibling=null,n!==null&&(C=a.deletions,C===null?(a.deletions=[n],a.flags|=16):C.push(n)),a.child=u,a.memoizedState=null,u)}function fp(n,a){return a=Yc({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function Yc(n,a){return n=er(22,n,null,a),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function dp(n,a,u){return Du(a,n.child,null,u),n=fp(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function M3(n,a,u){n.lanes|=a;var l=n.alternate;l!==null&&(l.lanes|=a),kh(n.return,a,u)}function hp(n,a,u,l,f){var m=n.memoizedState;m===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:l,tail:u,tailMode:f}:(m.isBackwards=a,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=u,m.tailMode=f)}function B3(n,a,u){var l=a.pendingProps,f=l.revealOrder,m=l.tail;if(bn(n,a,l.children,u),l=ln.current,(l&2)!==0)l=l&1|2,a.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&M3(n,u,a);else if(n.tag===19)M3(n,u,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}l&=1}switch(O(ln,l),f){case"forwards":for(u=a.child,f=null;u!==null;)n=u.alternate,n!==null&&Uc(n)===null&&(f=u),u=u.sibling;u=f,u===null?(f=a.child,a.child=null):(f=u.sibling,u.sibling=null),hp(a,!1,f,u,m);break;case"backwards":for(u=null,f=a.child,a.child=null;f!==null;){if(n=f.alternate,n!==null&&Uc(n)===null){a.child=f;break}n=f.sibling,f.sibling=u,u=f,f=n}hp(a,!0,u,null,m);break;case"together":hp(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function da(n,a,u){if(n!==null&&(a.dependencies=n.dependencies),ja|=a.lanes,(u&a.childLanes)===0)if(n!==null){if(pl(n,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(i(153));if(a.child!==null){for(n=a.child,u=ia(n,n.pendingProps),a.child=u,u.return=a;n.sibling!==null;)n=n.sibling,u=u.sibling=ia(n,n.pendingProps),u.return=a;u.sibling=null}return a.child}function pp(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&Cc(n)))}function o7(n,a,u){switch(a.tag){case 3:Be(a,a.stateNode.containerInfo),Da(a,on,n.memoizedState.cache),dl();break;case 27:case 5:Ct(a);break;case 4:Be(a,a.stateNode.containerInfo);break;case 10:Da(a,a.type,a.memoizedProps.value);break;case 13:var l=a.memoizedState;if(l!==null)return l.dehydrated!==null?(Pa(a),a.flags|=128,null):(u&a.child.childLanes)!==0?L3(n,a,u):(Pa(a),n=da(n,a,u),n!==null?n.sibling:null);Pa(a);break;case 19:var f=(n.flags&128)!==0;if(l=(u&a.childLanes)!==0,l||(pl(n,a,u,!1),l=(u&a.childLanes)!==0),f){if(l)return B3(n,a,u);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),O(ln,ln.current),l)break;return null;case 22:case 23:return a.lanes=0,O3(n,a,u);case 24:Da(a,on,n.memoizedState.cache)}return da(n,a,u)}function P3(n,a,u){if(n!==null)if(n.memoizedProps!==a.pendingProps)hn=!0;else{if(!pp(n,u)&&(a.flags&128)===0)return hn=!1,o7(n,a,u);hn=(n.flags&131072)!==0}else hn=!1,Et&&(a.flags&1048576)!==0&&hT(a,Sc,a.index);switch(a.lanes=0,a.tag){case 16:e:{n=a.pendingProps;var l=a.elementType,f=l._init;if(l=f(l._payload),a.type=l,typeof l=="function")Ah(l)?(n=Oi(l,n),a.tag=1,a=D3(null,a,l,n,u)):(a.tag=0,a=op(null,a,l,n,u));else{if(l!=null){if(f=l.$$typeof,f===w){a.tag=11,a=v3(null,a,l,n,u);break e}else if(f===z){a.tag=14,a=R3(null,a,l,n,u);break e}}throw a=Z(l)||l,Error(i(306,a,""))}}return a;case 0:return op(n,a,a.type,a.pendingProps,u);case 1:return l=a.type,f=Oi(l,a.pendingProps),D3(n,a,l,f,u);case 3:e:{if(Be(a,a.stateNode.containerInfo),n===null)throw Error(i(387));l=a.pendingProps;var m=a.memoizedState;f=m.element,Ph(n,a),Sl(a,l,null,u);var C=a.memoizedState;if(l=C.cache,Da(a,on,l),l!==m.cache&&Ih(a,[on],u,!0),Tl(),l=C.element,m.isDehydrated)if(m={element:l,isDehydrated:!1,cache:C.cache},a.updateQueue.baseState=m,a.memoizedState=m,a.flags&256){a=w3(n,a,l,u);break e}else if(l!==f){f=Er(Error(i(424)),a),hl(f),a=w3(n,a,l,u);break e}else{switch(n=a.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Vt=Nr(n.firstChild),Dn=a,Et=!0,Ai=null,qr=!0,u=m3(a,null,l,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(dl(),l===f){a=da(n,a,u);break e}bn(n,a,l,u)}a=a.child}return a;case 26:return zc(n,a),n===null?(u=zS(a.type,null,a.pendingProps,null))?a.memoizedState=u:Et||(u=a.type,n=a.pendingProps,l=nf(Te.current).createElement(u),l[Ye]=a,l[Ge]=n,Tn(l,u,n),dn(l),a.stateNode=l):a.memoizedState=zS(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return Ct(a),n===null&&Et&&(l=a.stateNode=US(a.type,a.pendingProps,Te.current),Dn=a,qr=!0,f=Vt,$a(a.type)?(Xp=f,Vt=Nr(l.firstChild)):Vt=f),bn(n,a,a.pendingProps.children,u),zc(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&Et&&((f=l=Vt)&&(l=M7(l,a.type,a.pendingProps,qr),l!==null?(a.stateNode=l,Dn=a,Vt=Nr(l.firstChild),qr=!1,f=!0):f=!1),f||xi(a)),Ct(a),f=a.type,m=a.pendingProps,C=n!==null?n.memoizedProps:null,l=m.children,qp(f,m)?l=null:C!==null&&qp(f,C)&&(a.flags|=32),a.memoizedState!==null&&(f=jh(n,a,JM,null,null,u),jl._currentValue=f),zc(n,a),bn(n,a,l,u),a.child;case 6:return n===null&&Et&&((n=u=Vt)&&(u=B7(u,a.pendingProps,qr),u!==null?(a.stateNode=u,Dn=a,Vt=null,n=!0):n=!1),n||xi(a)),null;case 13:return L3(n,a,u);case 4:return Be(a,a.stateNode.containerInfo),l=a.pendingProps,n===null?a.child=Du(a,null,l,u):bn(n,a,l,u),a.child;case 11:return v3(n,a,a.type,a.pendingProps,u);case 7:return bn(n,a,a.pendingProps,u),a.child;case 8:return bn(n,a,a.pendingProps.children,u),a.child;case 12:return bn(n,a,a.pendingProps.children,u),a.child;case 10:return l=a.pendingProps,Da(a,a.type,l.value),bn(n,a,l.children,u),a.child;case 9:return f=a.type._context,l=a.pendingProps.children,vi(a),f=Nn(f),l=l(f),a.flags|=1,bn(n,a,l,u),a.child;case 14:return R3(n,a,a.type,a.pendingProps,u);case 15:return N3(n,a,a.type,a.pendingProps,u);case 19:return B3(n,a,u);case 31:return l=a.pendingProps,u=a.mode,l={mode:l.mode,children:l.children},n===null?(u=Yc(l,u),u.ref=a.ref,a.child=u,u.return=a,a=u):(u=ia(n.child,l),u.ref=a.ref,a.child=u,u.return=a,a=u),a;case 22:return O3(n,a,u);case 24:return vi(a),l=Nn(on),n===null?(f=Lh(),f===null&&(f=Pt,m=Dh(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=u),f=m),a.memoizedState={parent:l,cache:f},Bh(a),Da(a,on,f)):((n.lanes&u)!==0&&(Ph(n,a),Sl(a,null,null,u),Tl()),f=n.memoizedState,m=a.memoizedState,f.parent!==l?(f={parent:l,cache:l},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),Da(a,on,l)):(l=m.cache,Da(a,on,l),l!==f.cache&&Ih(a,[on],u,!0))),bn(n,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function ha(n){n.flags|=4}function U3(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!GS(a)){if(a=Sr.current,a!==null&&((ot&4194048)===ot?Vr!==null:(ot&62914560)!==ot&&(ot&536870912)===0||a!==Vr))throw bl=Mh,ST;n.flags|=8192}}function jc(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?tc():536870912,n.lanes|=a,Bu|=a)}function Nl(n,a){if(!Et)switch(n.tailMode){case"hidden":a=n.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?n.tail=null:u.sibling=null;break;case"collapsed":u=n.tail;for(var l=null;u!==null;)u.alternate!==null&&(l=u),u=u.sibling;l===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function Yt(n){var a=n.alternate!==null&&n.alternate.child===n.child,u=0,l=0;if(a)for(var f=n.child;f!==null;)u|=f.lanes|f.childLanes,l|=f.subtreeFlags&65011712,l|=f.flags&65011712,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)u|=f.lanes|f.childLanes,l|=f.subtreeFlags,l|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=l,n.childLanes=u,a}function l7(n,a,u){var l=a.pendingProps;switch(Rh(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(a),null;case 1:return Yt(a),null;case 3:return u=a.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),sa(on),ut(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(fl(a)?ha(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,gT())),Yt(a),null;case 26:return u=a.memoizedState,n===null?(ha(a),u!==null?(Yt(a),U3(a,u)):(Yt(a),a.flags&=-16777217)):u?u!==n.memoizedState?(ha(a),Yt(a),U3(a,u)):(Yt(a),a.flags&=-16777217):(n.memoizedProps!==l&&ha(a),Yt(a),a.flags&=-16777217),null;case 27:gt(a),u=Te.current;var f=a.type;if(n!==null&&a.stateNode!=null)n.memoizedProps!==l&&ha(a);else{if(!l){if(a.stateNode===null)throw Error(i(166));return Yt(a),null}n=Ee.current,fl(a)?pT(a):(n=US(f,l,u),a.stateNode=n,ha(a))}return Yt(a),null;case 5:if(gt(a),u=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==l&&ha(a);else{if(!l){if(a.stateNode===null)throw Error(i(166));return Yt(a),null}if(n=Ee.current,fl(a))pT(a);else{switch(f=nf(Te.current),n){case 1:n=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:n=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":n=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":n=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":n=f.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?n.multiple=!0:l.size&&(n.size=l.size);break;default:n=typeof l.is=="string"?f.createElement(u,{is:l.is}):f.createElement(u)}}n[Ye]=a,n[Ge]=l;e:for(f=a.child;f!==null;){if(f.tag===5||f.tag===6)n.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===a)break e;for(;f.sibling===null;){if(f.return===null||f.return===a)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}a.stateNode=n;e:switch(Tn(n,u,l),u){case"button":case"input":case"select":case"textarea":n=!!l.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ha(a)}}return Yt(a),a.flags&=-16777217,null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==l&&ha(a);else{if(typeof l!="string"&&a.stateNode===null)throw Error(i(166));if(n=Te.current,fl(a)){if(n=a.stateNode,u=a.memoizedProps,l=null,f=Dn,f!==null)switch(f.tag){case 27:case 5:l=f.memoizedProps}n[Ye]=a,n=!!(n.nodeValue===u||l!==null&&l.suppressHydrationWarning===!0||IS(n.nodeValue,u)),n||xi(a)}else n=nf(n).createTextNode(l),n[Ye]=a,a.stateNode=n}return Yt(a),null;case 13:if(l=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=fl(a),l!==null&&l.dehydrated!==null){if(n===null){if(!f)throw Error(i(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[Ye]=a}else dl(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Yt(a),f=!1}else f=gT(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(fa(a),a):(fa(a),null)}if(fa(a),(a.flags&128)!==0)return a.lanes=u,a;if(u=l!==null,n=n!==null&&n.memoizedState!==null,u){l=a.child,f=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(f=l.alternate.memoizedState.cachePool.pool);var m=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==f&&(l.flags|=2048)}return u!==n&&u&&(a.child.flags|=8192),jc(a,a.updateQueue),Yt(a),null;case 4:return ut(),n===null&&Hp(a.stateNode.containerInfo),Yt(a),null;case 10:return sa(a.type),Yt(a),null;case 19:if(de(ln),f=a.memoizedState,f===null)return Yt(a),null;if(l=(a.flags&128)!==0,m=f.rendering,m===null)if(l)Nl(f,!1);else{if(Gt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(m=Uc(n),m!==null){for(a.flags|=128,Nl(f,!1),n=m.updateQueue,a.updateQueue=n,jc(a,n),a.subtreeFlags=0,n=u,u=a.child;u!==null;)dT(u,n),u=u.sibling;return O(ln,ln.current&1|2),a.child}n=n.sibling}f.tail!==null&&Me()>Gc&&(a.flags|=128,l=!0,Nl(f,!1),a.lanes=4194304)}else{if(!l)if(n=Uc(m),n!==null){if(a.flags|=128,l=!0,n=n.updateQueue,a.updateQueue=n,jc(a,n),Nl(f,!0),f.tail===null&&f.tailMode==="hidden"&&!m.alternate&&!Et)return Yt(a),null}else 2*Me()-f.renderingStartTime>Gc&&u!==536870912&&(a.flags|=128,l=!0,Nl(f,!1),a.lanes=4194304);f.isBackwards?(m.sibling=a.child,a.child=m):(n=f.last,n!==null?n.sibling=m:a.child=m,f.last=m)}return f.tail!==null?(a=f.tail,f.rendering=a,f.tail=a.sibling,f.renderingStartTime=Me(),a.sibling=null,n=ln.current,O(ln,l?n&1|2:n&1),a):(Yt(a),null);case 22:case 23:return fa(a),zh(),l=a.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(a.flags|=8192):l&&(a.flags|=8192),l?(u&536870912)!==0&&(a.flags&128)===0&&(Yt(a),a.subtreeFlags&6&&(a.flags|=8192)):Yt(a),u=a.updateQueue,u!==null&&jc(a,u.retryQueue),u=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==u&&(a.flags|=2048),n!==null&&de(Ri),null;case 24:return u=null,n!==null&&(u=n.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),sa(on),Yt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function s7(n,a){switch(Rh(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return sa(on),ut(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return gt(a),null;case 13:if(fa(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(i(340));dl()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return de(ln),null;case 4:return ut(),null;case 10:return sa(a.type),null;case 22:case 23:return fa(a),zh(),n!==null&&de(Ri),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return sa(on),null;case 25:return null;default:return null}}function H3(n,a){switch(Rh(a),a.tag){case 3:sa(on),ut();break;case 26:case 27:case 5:gt(a);break;case 4:ut();break;case 13:fa(a);break;case 19:de(ln);break;case 10:sa(a.type);break;case 22:case 23:fa(a),zh(),n!==null&&de(Ri);break;case 24:sa(on)}}function Ol(n,a){try{var u=a.updateQueue,l=u!==null?u.lastEffect:null;if(l!==null){var f=l.next;u=f;do{if((u.tag&n)===n){l=void 0;var m=u.create,C=u.inst;l=m(),C.destroy=l}u=u.next}while(u!==f)}}catch(R){wt(a,a.return,R)}}function Ha(n,a,u){try{var l=a.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var m=f.next;l=m;do{if((l.tag&n)===n){var C=l.inst,R=C.destroy;if(R!==void 0){C.destroy=void 0,f=a;var H=u,W=R;try{W()}catch(se){wt(f,H,se)}}}l=l.next}while(l!==m)}}catch(se){wt(a,a.return,se)}}function F3(n){var a=n.updateQueue;if(a!==null){var u=n.stateNode;try{RT(a,u)}catch(l){wt(n,n.return,l)}}}function z3(n,a,u){u.props=Oi(n.type,n.memoizedProps),u.state=n.memoizedState;try{u.componentWillUnmount()}catch(l){wt(n,a,l)}}function kl(n,a){try{var u=n.ref;if(u!==null){switch(n.tag){case 26:case 27:case 5:var l=n.stateNode;break;case 30:l=n.stateNode;break;default:l=n.stateNode}typeof u=="function"?n.refCleanup=u(l):u.current=l}}catch(f){wt(n,a,f)}}function Gr(n,a){var u=n.ref,l=n.refCleanup;if(u!==null)if(typeof l=="function")try{l()}catch(f){wt(n,a,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(f){wt(n,a,f)}else u.current=null}function Y3(n){var a=n.type,u=n.memoizedProps,l=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&l.focus();break e;case"img":u.src?l.src=u.src:u.srcSet&&(l.srcset=u.srcSet)}}catch(f){wt(n,n.return,f)}}function mp(n,a,u){try{var l=n.stateNode;k7(l,n.type,u,a),l[Ge]=a}catch(f){wt(n,n.return,f)}}function j3(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&$a(n.type)||n.tag===4}function gp(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||j3(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&$a(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Ep(n,a,u){var l=n.tag;if(l===5||l===6)n=n.stateNode,a?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(n,a):(a=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,a.appendChild(n),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=tf));else if(l!==4&&(l===27&&$a(n.type)&&(u=n.stateNode,a=null),n=n.child,n!==null))for(Ep(n,a,u),n=n.sibling;n!==null;)Ep(n,a,u),n=n.sibling}function qc(n,a,u){var l=n.tag;if(l===5||l===6)n=n.stateNode,a?u.insertBefore(n,a):u.appendChild(n);else if(l!==4&&(l===27&&$a(n.type)&&(u=n.stateNode),n=n.child,n!==null))for(qc(n,a,u),n=n.sibling;n!==null;)qc(n,a,u),n=n.sibling}function q3(n){var a=n.stateNode,u=n.memoizedProps;try{for(var l=n.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);Tn(a,l,u),a[Ye]=n,a[Ge]=u}catch(m){wt(n,n.return,m)}}var pa=!1,Kt=!1,bp=!1,V3=typeof WeakSet=="function"?WeakSet:Set,pn=null;function c7(n,a){if(n=n.containerInfo,Yp=sf,n=nT(n),gh(n)){if("selectionStart"in n)var u={start:n.selectionStart,end:n.selectionEnd};else e:{u=(u=n.ownerDocument)&&u.defaultView||window;var l=u.getSelection&&u.getSelection();if(l&&l.rangeCount!==0){u=l.anchorNode;var f=l.anchorOffset,m=l.focusNode;l=l.focusOffset;try{u.nodeType,m.nodeType}catch{u=null;break e}var C=0,R=-1,H=-1,W=0,se=0,fe=n,ee=null;t:for(;;){for(var te;fe!==u||f!==0&&fe.nodeType!==3||(R=C+f),fe!==m||l!==0&&fe.nodeType!==3||(H=C+l),fe.nodeType===3&&(C+=fe.nodeValue.length),(te=fe.firstChild)!==null;)ee=fe,fe=te;for(;;){if(fe===n)break t;if(ee===u&&++W===f&&(R=C),ee===m&&++se===l&&(H=C),(te=fe.nextSibling)!==null)break;fe=ee,ee=fe.parentNode}fe=te}u=R===-1||H===-1?null:{start:R,end:H}}else u=null}u=u||{start:0,end:0}}else u=null;for(jp={focusedElem:n,selectionRange:u},sf=!1,pn=a;pn!==null;)if(a=pn,n=a.child,(a.subtreeFlags&1024)!==0&&n!==null)n.return=a,pn=n;else for(;pn!==null;){switch(a=pn,m=a.alternate,n=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&m!==null){n=void 0,u=a,f=m.memoizedProps,m=m.memoizedState,l=u.stateNode;try{var je=Oi(u.type,f,u.elementType===u.type);n=l.getSnapshotBeforeUpdate(je,m),l.__reactInternalSnapshotBeforeUpdate=n}catch(Ue){wt(u,u.return,Ue)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,u=n.nodeType,u===9)Gp(n);else if(u===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Gp(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(i(163))}if(n=a.sibling,n!==null){n.return=a.return,pn=n;break}pn=a.return}}function G3(n,a,u){var l=u.flags;switch(u.tag){case 0:case 11:case 15:Fa(n,u),l&4&&Ol(5,u);break;case 1:if(Fa(n,u),l&4)if(n=u.stateNode,a===null)try{n.componentDidMount()}catch(C){wt(u,u.return,C)}else{var f=Oi(u.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(f,a,n.__reactInternalSnapshotBeforeUpdate)}catch(C){wt(u,u.return,C)}}l&64&&F3(u),l&512&&kl(u,u.return);break;case 3:if(Fa(n,u),l&64&&(n=u.updateQueue,n!==null)){if(a=null,u.child!==null)switch(u.child.tag){case 27:case 5:a=u.child.stateNode;break;case 1:a=u.child.stateNode}try{RT(n,a)}catch(C){wt(u,u.return,C)}}break;case 27:a===null&&l&4&&q3(u);case 26:case 5:Fa(n,u),a===null&&l&4&&Y3(u),l&512&&kl(u,u.return);break;case 12:Fa(n,u);break;case 13:Fa(n,u),l&4&&Q3(n,u),l&64&&(n=u.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(u=y7.bind(null,u),P7(n,u))));break;case 22:if(l=u.memoizedState!==null||pa,!l){a=a!==null&&a.memoizedState!==null||Kt,f=pa;var m=Kt;pa=l,(Kt=a)&&!m?za(n,u,(u.subtreeFlags&8772)!==0):Fa(n,u),pa=f,Kt=m}break;case 30:break;default:Fa(n,u)}}function $3(n){var a=n.alternate;a!==null&&(n.alternate=null,$3(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&W0(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var zt=null,qn=!1;function ma(n,a,u){for(u=u.child;u!==null;)X3(n,a,u),u=u.sibling}function X3(n,a,u){if(he&&typeof he.onCommitFiberUnmount=="function")try{he.onCommitFiberUnmount(re,u)}catch{}switch(u.tag){case 26:Kt||Gr(u,a),ma(n,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Kt||Gr(u,a);var l=zt,f=qn;$a(u.type)&&(zt=u.stateNode,qn=!1),ma(n,a,u),Hl(u.stateNode),zt=l,qn=f;break;case 5:Kt||Gr(u,a);case 6:if(l=zt,f=qn,zt=null,ma(n,a,u),zt=l,qn=f,zt!==null)if(qn)try{(zt.nodeType===9?zt.body:zt.nodeName==="HTML"?zt.ownerDocument.body:zt).removeChild(u.stateNode)}catch(m){wt(u,a,m)}else try{zt.removeChild(u.stateNode)}catch(m){wt(u,a,m)}break;case 18:zt!==null&&(qn?(n=zt,BS(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,u.stateNode),$l(n)):BS(zt,u.stateNode));break;case 4:l=zt,f=qn,zt=u.stateNode.containerInfo,qn=!0,ma(n,a,u),zt=l,qn=f;break;case 0:case 11:case 14:case 15:Kt||Ha(2,u,a),Kt||Ha(4,u,a),ma(n,a,u);break;case 1:Kt||(Gr(u,a),l=u.stateNode,typeof l.componentWillUnmount=="function"&&z3(u,a,l)),ma(n,a,u);break;case 21:ma(n,a,u);break;case 22:Kt=(l=Kt)||u.memoizedState!==null,ma(n,a,u),Kt=l;break;default:ma(n,a,u)}}function Q3(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{$l(n)}catch(u){wt(a,a.return,u)}}function f7(n){switch(n.tag){case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new V3),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new V3),a;default:throw Error(i(435,n.tag))}}function yp(n,a){var u=f7(n);a.forEach(function(l){var f=T7.bind(null,n,l);u.has(l)||(u.add(l),l.then(f,f))})}function tr(n,a){var u=a.deletions;if(u!==null)for(var l=0;l<u.length;l++){var f=u[l],m=n,C=a,R=C;e:for(;R!==null;){switch(R.tag){case 27:if($a(R.type)){zt=R.stateNode,qn=!1;break e}break;case 5:zt=R.stateNode,qn=!1;break e;case 3:case 4:zt=R.stateNode.containerInfo,qn=!0;break e}R=R.return}if(zt===null)throw Error(i(160));X3(m,C,f),zt=null,qn=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)K3(a,n),a=a.sibling}var Rr=null;function K3(n,a){var u=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:tr(a,n),nr(n),l&4&&(Ha(3,n,n.return),Ol(3,n),Ha(5,n,n.return));break;case 1:tr(a,n),nr(n),l&512&&(Kt||u===null||Gr(u,u.return)),l&64&&pa&&(n=n.updateQueue,n!==null&&(l=n.callbacks,l!==null&&(u=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=u===null?l:u.concat(l))));break;case 26:var f=Rr;if(tr(a,n),nr(n),l&512&&(Kt||u===null||Gr(u,u.return)),l&4){var m=u!==null?u.memoizedState:null;if(l=n.memoizedState,u===null)if(l===null)if(n.stateNode===null){e:{l=n.type,u=n.memoizedProps,f=f.ownerDocument||f;t:switch(l){case"title":m=f.getElementsByTagName("title")[0],(!m||m[na]||m[Ye]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(l),f.head.insertBefore(m,f.querySelector("head > title"))),Tn(m,l,u),m[Ye]=n,dn(m),l=m;break e;case"link":var C=qS("link","href",f).get(l+(u.href||""));if(C){for(var R=0;R<C.length;R++)if(m=C[R],m.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&m.getAttribute("rel")===(u.rel==null?null:u.rel)&&m.getAttribute("title")===(u.title==null?null:u.title)&&m.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){C.splice(R,1);break t}}m=f.createElement(l),Tn(m,l,u),f.head.appendChild(m);break;case"meta":if(C=qS("meta","content",f).get(l+(u.content||""))){for(R=0;R<C.length;R++)if(m=C[R],m.getAttribute("content")===(u.content==null?null:""+u.content)&&m.getAttribute("name")===(u.name==null?null:u.name)&&m.getAttribute("property")===(u.property==null?null:u.property)&&m.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&m.getAttribute("charset")===(u.charSet==null?null:u.charSet)){C.splice(R,1);break t}}m=f.createElement(l),Tn(m,l,u),f.head.appendChild(m);break;default:throw Error(i(468,l))}m[Ye]=n,dn(m),l=m}n.stateNode=l}else VS(f,n.type,n.stateNode);else n.stateNode=jS(f,l,n.memoizedProps);else m!==l?(m===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):m.count--,l===null?VS(f,n.type,n.stateNode):jS(f,l,n.memoizedProps)):l===null&&n.stateNode!==null&&mp(n,n.memoizedProps,u.memoizedProps)}break;case 27:tr(a,n),nr(n),l&512&&(Kt||u===null||Gr(u,u.return)),u!==null&&l&4&&mp(n,n.memoizedProps,u.memoizedProps);break;case 5:if(tr(a,n),nr(n),l&512&&(Kt||u===null||Gr(u,u.return)),n.flags&32){f=n.stateNode;try{pu(f,"")}catch(te){wt(n,n.return,te)}}l&4&&n.stateNode!=null&&(f=n.memoizedProps,mp(n,f,u!==null?u.memoizedProps:f)),l&1024&&(bp=!0);break;case 6:if(tr(a,n),nr(n),l&4){if(n.stateNode===null)throw Error(i(162));l=n.memoizedProps,u=n.stateNode;try{u.nodeValue=l}catch(te){wt(n,n.return,te)}}break;case 3:if(uf=null,f=Rr,Rr=rf(a.containerInfo),tr(a,n),Rr=f,nr(n),l&4&&u!==null&&u.memoizedState.isDehydrated)try{$l(a.containerInfo)}catch(te){wt(n,n.return,te)}bp&&(bp=!1,W3(n));break;case 4:l=Rr,Rr=rf(n.stateNode.containerInfo),tr(a,n),nr(n),Rr=l;break;case 12:tr(a,n),nr(n);break;case 13:tr(a,n),nr(n),n.child.flags&8192&&n.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(_p=Me()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,yp(n,l)));break;case 22:f=n.memoizedState!==null;var H=u!==null&&u.memoizedState!==null,W=pa,se=Kt;if(pa=W||f,Kt=se||H,tr(a,n),Kt=se,pa=W,nr(n),l&8192)e:for(a=n.stateNode,a._visibility=f?a._visibility&-2:a._visibility|1,f&&(u===null||H||pa||Kt||ki(n)),u=null,a=n;;){if(a.tag===5||a.tag===26){if(u===null){H=u=a;try{if(m=H.stateNode,f)C=m.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{R=H.stateNode;var fe=H.memoizedProps.style,ee=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;R.style.display=ee==null||typeof ee=="boolean"?"":(""+ee).trim()}}catch(te){wt(H,H.return,te)}}}else if(a.tag===6){if(u===null){H=a;try{H.stateNode.nodeValue=f?"":H.memoizedProps}catch(te){wt(H,H.return,te)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;u===a&&(u=null),a=a.return}u===a&&(u=null),a.sibling.return=a.return,a=a.sibling}l&4&&(l=n.updateQueue,l!==null&&(u=l.retryQueue,u!==null&&(l.retryQueue=null,yp(n,u))));break;case 19:tr(a,n),nr(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,yp(n,l)));break;case 30:break;case 21:break;default:tr(a,n),nr(n)}}function nr(n){var a=n.flags;if(a&2){try{for(var u,l=n.return;l!==null;){if(j3(l)){u=l;break}l=l.return}if(u==null)throw Error(i(160));switch(u.tag){case 27:var f=u.stateNode,m=gp(n);qc(n,m,f);break;case 5:var C=u.stateNode;u.flags&32&&(pu(C,""),u.flags&=-33);var R=gp(n);qc(n,R,C);break;case 3:case 4:var H=u.stateNode.containerInfo,W=gp(n);Ep(n,W,H);break;default:throw Error(i(161))}}catch(se){wt(n,n.return,se)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function W3(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;W3(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Fa(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)G3(n,a.alternate,a),a=a.sibling}function ki(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:Ha(4,a,a.return),ki(a);break;case 1:Gr(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&z3(a,a.return,u),ki(a);break;case 27:Hl(a.stateNode);case 26:case 5:Gr(a,a.return),ki(a);break;case 22:a.memoizedState===null&&ki(a);break;case 30:ki(a);break;default:ki(a)}n=n.sibling}}function za(n,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var l=a.alternate,f=n,m=a,C=m.flags;switch(m.tag){case 0:case 11:case 15:za(f,m,u),Ol(4,m);break;case 1:if(za(f,m,u),l=m,f=l.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(W){wt(l,l.return,W)}if(l=m,f=l.updateQueue,f!==null){var R=l.stateNode;try{var H=f.shared.hiddenCallbacks;if(H!==null)for(f.shared.hiddenCallbacks=null,f=0;f<H.length;f++)vT(H[f],R)}catch(W){wt(l,l.return,W)}}u&&C&64&&F3(m),kl(m,m.return);break;case 27:q3(m);case 26:case 5:za(f,m,u),u&&l===null&&C&4&&Y3(m),kl(m,m.return);break;case 12:za(f,m,u);break;case 13:za(f,m,u),u&&C&4&&Q3(f,m);break;case 22:m.memoizedState===null&&za(f,m,u),kl(m,m.return);break;case 30:break;default:za(f,m,u)}a=a.sibling}}function Tp(n,a){var u=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==u&&(n!=null&&n.refCount++,u!=null&&ml(u))}function Sp(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&ml(n))}function $r(n,a,u,l){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Z3(n,a,u,l),a=a.sibling}function Z3(n,a,u,l){var f=a.flags;switch(a.tag){case 0:case 11:case 15:$r(n,a,u,l),f&2048&&Ol(9,a);break;case 1:$r(n,a,u,l);break;case 3:$r(n,a,u,l),f&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&ml(n)));break;case 12:if(f&2048){$r(n,a,u,l),n=a.stateNode;try{var m=a.memoizedProps,C=m.id,R=m.onPostCommit;typeof R=="function"&&R(C,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(H){wt(a,a.return,H)}}else $r(n,a,u,l);break;case 13:$r(n,a,u,l);break;case 23:break;case 22:m=a.stateNode,C=a.alternate,a.memoizedState!==null?m._visibility&2?$r(n,a,u,l):Il(n,a):m._visibility&2?$r(n,a,u,l):(m._visibility|=2,wu(n,a,u,l,(a.subtreeFlags&10256)!==0)),f&2048&&Tp(C,a);break;case 24:$r(n,a,u,l),f&2048&&Sp(a.alternate,a);break;default:$r(n,a,u,l)}}function wu(n,a,u,l,f){for(f=f&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var m=n,C=a,R=u,H=l,W=C.flags;switch(C.tag){case 0:case 11:case 15:wu(m,C,R,H,f),Ol(8,C);break;case 23:break;case 22:var se=C.stateNode;C.memoizedState!==null?se._visibility&2?wu(m,C,R,H,f):Il(m,C):(se._visibility|=2,wu(m,C,R,H,f)),f&&W&2048&&Tp(C.alternate,C);break;case 24:wu(m,C,R,H,f),f&&W&2048&&Sp(C.alternate,C);break;default:wu(m,C,R,H,f)}a=a.sibling}}function Il(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var u=n,l=a,f=l.flags;switch(l.tag){case 22:Il(u,l),f&2048&&Tp(l.alternate,l);break;case 24:Il(u,l),f&2048&&Sp(l.alternate,l);break;default:Il(u,l)}a=a.sibling}}var Dl=8192;function Lu(n){if(n.subtreeFlags&Dl)for(n=n.child;n!==null;)J3(n),n=n.sibling}function J3(n){switch(n.tag){case 26:Lu(n),n.flags&Dl&&n.memoizedState!==null&&K7(Rr,n.memoizedState,n.memoizedProps);break;case 5:Lu(n);break;case 3:case 4:var a=Rr;Rr=rf(n.stateNode.containerInfo),Lu(n),Rr=a;break;case 22:n.memoizedState===null&&(a=n.alternate,a!==null&&a.memoizedState!==null?(a=Dl,Dl=16777216,Lu(n),Dl=a):Lu(n));break;default:Lu(n)}}function eS(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function wl(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var l=a[u];pn=l,nS(l,n)}eS(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)tS(n),n=n.sibling}function tS(n){switch(n.tag){case 0:case 11:case 15:wl(n),n.flags&2048&&Ha(9,n,n.return);break;case 3:wl(n);break;case 12:wl(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,Vc(n)):wl(n);break;default:wl(n)}}function Vc(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var l=a[u];pn=l,nS(l,n)}eS(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:Ha(8,a,a.return),Vc(a);break;case 22:u=a.stateNode,u._visibility&2&&(u._visibility&=-3,Vc(a));break;default:Vc(a)}n=n.sibling}}function nS(n,a){for(;pn!==null;){var u=pn;switch(u.tag){case 0:case 11:case 15:Ha(8,u,a);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var l=u.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ml(u.memoizedState.cache)}if(l=u.child,l!==null)l.return=u,pn=l;else e:for(u=n;pn!==null;){l=pn;var f=l.sibling,m=l.return;if($3(l),l===u){pn=null;break e}if(f!==null){f.return=m,pn=f;break e}pn=m}}}var d7={getCacheForType:function(n){var a=Nn(on),u=a.data.get(n);return u===void 0&&(u=n(),a.data.set(n,u)),u}},h7=typeof WeakMap=="function"?WeakMap:Map,_t=0,Pt=null,nt=null,ot=0,vt=0,rr=null,Ya=!1,Mu=!1,Cp=!1,ga=0,Gt=0,ja=0,Ii=0,Ap=0,Cr=0,Bu=0,Ll=null,Vn=null,xp=!1,_p=0,Gc=1/0,$c=null,qa=null,yn=0,Va=null,Pu=null,Uu=0,vp=0,Rp=null,rS=null,Ml=0,Np=null;function ar(){if((_t&2)!==0&&ot!==0)return ot&-ot;if(F.T!==null){var n=_u;return n!==0?n:Mp()}return ac()}function aS(){Cr===0&&(Cr=(ot&536870912)===0||Et?pi():536870912);var n=Sr.current;return n!==null&&(n.flags|=32),Cr}function ir(n,a,u){(n===Pt&&(vt===2||vt===9)||n.cancelPendingCommit!==null)&&(Hu(n,0),Ga(n,ot,Cr,!1)),ea(n,u),((_t&2)===0||n!==Pt)&&(n===Pt&&((_t&2)===0&&(Ii|=u),Gt===4&&Ga(n,ot,Cr,!1)),Xr(n))}function iS(n,a,u){if((_t&6)!==0)throw Error(i(327));var l=!u&&(a&124)===0&&(a&n.expiredLanes)===0||Hn(n,a),f=l?g7(n,a):Ip(n,a,!0),m=l;do{if(f===0){Mu&&!l&&Ga(n,a,0,!1);break}else{if(u=n.current.alternate,m&&!p7(u)){f=Ip(n,a,!1),m=!1;continue}if(f===2){if(m=a,n.errorRecoveryDisabledLanes&m)var C=0;else C=n.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){a=C;e:{var R=n;f=Ll;var H=R.current.memoizedState.isDehydrated;if(H&&(Hu(R,C).flags|=256),C=Ip(R,C,!1),C!==2){if(Cp&&!H){R.errorRecoveryDisabledLanes|=m,Ii|=m,f=4;break e}m=Vn,Vn=f,m!==null&&(Vn===null?Vn=m:Vn.push.apply(Vn,m))}f=C}if(m=!1,f!==2)continue}}if(f===1){Hu(n,0),Ga(n,a,0,!0);break}e:{switch(l=n,m=f,m){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Ga(l,a,Cr,!Ya);break e;case 2:Vn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(f=_p+300-Me(),10<f)){if(Ga(l,a,Cr,!Ya),nn(l,0,!0)!==0)break e;l.timeoutHandle=LS(uS.bind(null,l,u,Vn,$c,xp,a,Cr,Ii,Bu,Ya,m,2,-0,0),f);break e}uS(l,u,Vn,$c,xp,a,Cr,Ii,Bu,Ya,m,0,-0,0)}}break}while(!0);Xr(n)}function uS(n,a,u,l,f,m,C,R,H,W,se,fe,ee,te){if(n.timeoutHandle=-1,fe=a.subtreeFlags,(fe&8192||(fe&16785408)===16785408)&&(Yl={stylesheets:null,count:0,unsuspend:Q7},J3(a),fe=W7(),fe!==null)){n.cancelPendingCommit=fe(hS.bind(null,n,a,m,u,l,f,C,R,H,se,1,ee,te)),Ga(n,m,C,!W);return}hS(n,a,m,u,l,f,C,R,H)}function p7(n){for(var a=n;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var l=0;l<u.length;l++){var f=u[l],m=f.getSnapshot;f=f.value;try{if(!Jn(m(),f))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ga(n,a,u,l){a&=~Ap,a&=~Ii,n.suspendedLanes|=a,n.pingedLanes&=~a,l&&(n.warmLanes|=a),l=n.expirationTimes;for(var f=a;0<f;){var m=31-Ae(f),C=1<<m;l[m]=-1,f&=~C}u!==0&&nc(n,u,a)}function Xc(){return(_t&6)===0?(Bl(0),!1):!0}function Op(){if(nt!==null){if(vt===0)var n=nt.return;else n=nt,la=_i=null,Gh(n),Iu=null,vl=0,n=nt;for(;n!==null;)H3(n.alternate,n),n=n.return;nt=null}}function Hu(n,a){var u=n.timeoutHandle;u!==-1&&(n.timeoutHandle=-1,D7(u)),u=n.cancelPendingCommit,u!==null&&(n.cancelPendingCommit=null,u()),Op(),Pt=n,nt=u=ia(n.current,null),ot=a,vt=0,rr=null,Ya=!1,Mu=Hn(n,a),Cp=!1,Bu=Cr=Ap=Ii=ja=Gt=0,Vn=Ll=null,xp=!1,(a&8)!==0&&(a|=a&32);var l=n.entangledLanes;if(l!==0)for(n=n.entanglements,l&=a;0<l;){var f=31-Ae(l),m=1<<f;a|=n[f],l&=~m}return ga=a,gc(),u}function oS(n,a){Ze=null,F.H=Mc,a===El||a===_c?(a=xT(),vt=3):a===ST?(a=xT(),vt=4):vt=a===_3?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,rr=a,nt===null&&(Gt=1,Fc(n,Er(a,n.current)))}function lS(){var n=F.H;return F.H=Mc,n===null?Mc:n}function sS(){var n=F.A;return F.A=d7,n}function kp(){Gt=4,Ya||(ot&4194048)!==ot&&Sr.current!==null||(Mu=!0),(ja&134217727)===0&&(Ii&134217727)===0||Pt===null||Ga(Pt,ot,Cr,!1)}function Ip(n,a,u){var l=_t;_t|=2;var f=lS(),m=sS();(Pt!==n||ot!==a)&&($c=null,Hu(n,a)),a=!1;var C=Gt;e:do try{if(vt!==0&&nt!==null){var R=nt,H=rr;switch(vt){case 8:Op(),C=6;break e;case 3:case 2:case 9:case 6:Sr.current===null&&(a=!0);var W=vt;if(vt=0,rr=null,Fu(n,R,H,W),u&&Mu){C=0;break e}break;default:W=vt,vt=0,rr=null,Fu(n,R,H,W)}}m7(),C=Gt;break}catch(se){oS(n,se)}while(!0);return a&&n.shellSuspendCounter++,la=_i=null,_t=l,F.H=f,F.A=m,nt===null&&(Pt=null,ot=0,gc()),C}function m7(){for(;nt!==null;)cS(nt)}function g7(n,a){var u=_t;_t|=2;var l=lS(),f=sS();Pt!==n||ot!==a?($c=null,Gc=Me()+500,Hu(n,a)):Mu=Hn(n,a);e:do try{if(vt!==0&&nt!==null){a=nt;var m=rr;t:switch(vt){case 1:vt=0,rr=null,Fu(n,a,m,1);break;case 2:case 9:if(CT(m)){vt=0,rr=null,fS(a);break}a=function(){vt!==2&&vt!==9||Pt!==n||(vt=7),Xr(n)},m.then(a,a);break e;case 3:vt=7;break e;case 4:vt=5;break e;case 7:CT(m)?(vt=0,rr=null,fS(a)):(vt=0,rr=null,Fu(n,a,m,7));break;case 5:var C=null;switch(nt.tag){case 26:C=nt.memoizedState;case 5:case 27:var R=nt;if(!C||GS(C)){vt=0,rr=null;var H=R.sibling;if(H!==null)nt=H;else{var W=R.return;W!==null?(nt=W,Qc(W)):nt=null}break t}}vt=0,rr=null,Fu(n,a,m,5);break;case 6:vt=0,rr=null,Fu(n,a,m,6);break;case 8:Op(),Gt=6;break e;default:throw Error(i(462))}}E7();break}catch(se){oS(n,se)}while(!0);return la=_i=null,F.H=l,F.A=f,_t=u,nt!==null?0:(Pt=null,ot=0,gc(),Gt)}function E7(){for(;nt!==null&&!we();)cS(nt)}function cS(n){var a=P3(n.alternate,n,ga);n.memoizedProps=n.pendingProps,a===null?Qc(n):nt=a}function fS(n){var a=n,u=a.alternate;switch(a.tag){case 15:case 0:a=I3(u,a,a.pendingProps,a.type,void 0,ot);break;case 11:a=I3(u,a,a.pendingProps,a.type.render,a.ref,ot);break;case 5:Gh(a);default:H3(u,a),a=nt=dT(a,ga),a=P3(u,a,ga)}n.memoizedProps=n.pendingProps,a===null?Qc(n):nt=a}function Fu(n,a,u,l){la=_i=null,Gh(a),Iu=null,vl=0;var f=a.return;try{if(u7(n,f,a,u,ot)){Gt=1,Fc(n,Er(u,n.current)),nt=null;return}}catch(m){if(f!==null)throw nt=f,m;Gt=1,Fc(n,Er(u,n.current)),nt=null;return}a.flags&32768?(Et||l===1?n=!0:Mu||(ot&536870912)!==0?n=!1:(Ya=n=!0,(l===2||l===9||l===3||l===6)&&(l=Sr.current,l!==null&&l.tag===13&&(l.flags|=16384))),dS(a,n)):Qc(a)}function Qc(n){var a=n;do{if((a.flags&32768)!==0){dS(a,Ya);return}n=a.return;var u=l7(a.alternate,a,ga);if(u!==null){nt=u;return}if(a=a.sibling,a!==null){nt=a;return}nt=a=n}while(a!==null);Gt===0&&(Gt=5)}function dS(n,a){do{var u=s7(n.alternate,n);if(u!==null){u.flags&=32767,nt=u;return}if(u=n.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!a&&(n=n.sibling,n!==null)){nt=n;return}nt=n=u}while(n!==null);Gt=6,nt=null}function hS(n,a,u,l,f,m,C,R,H){n.cancelPendingCommit=null;do Kc();while(yn!==0);if((_t&6)!==0)throw Error(i(327));if(a!==null){if(a===n.current)throw Error(i(177));if(m=a.lanes|a.childLanes,m|=Sh,K0(n,u,m,C,R,H),n===Pt&&(nt=Pt=null,ot=0),Pu=a,Va=n,Uu=u,vp=m,Rp=f,rS=l,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,S7(ct,function(){return bS(),null})):(n.callbackNode=null,n.callbackPriority=0),l=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||l){l=F.T,F.T=null,f=ae.p,ae.p=2,C=_t,_t|=4;try{c7(n,a,u)}finally{_t=C,ae.p=f,F.T=l}}yn=1,pS(),mS(),gS()}}function pS(){if(yn===1){yn=0;var n=Va,a=Pu,u=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||u){u=F.T,F.T=null;var l=ae.p;ae.p=2;var f=_t;_t|=4;try{K3(a,n);var m=jp,C=nT(n.containerInfo),R=m.focusedElem,H=m.selectionRange;if(C!==R&&R&&R.ownerDocument&&tT(R.ownerDocument.documentElement,R)){if(H!==null&&gh(R)){var W=H.start,se=H.end;if(se===void 0&&(se=W),"selectionStart"in R)R.selectionStart=W,R.selectionEnd=Math.min(se,R.value.length);else{var fe=R.ownerDocument||document,ee=fe&&fe.defaultView||window;if(ee.getSelection){var te=ee.getSelection(),je=R.textContent.length,Ue=Math.min(H.start,je),kt=H.end===void 0?Ue:Math.min(H.end,je);!te.extend&&Ue>kt&&(C=kt,kt=Ue,Ue=C);var G=eT(R,Ue),Y=eT(R,kt);if(G&&Y&&(te.rangeCount!==1||te.anchorNode!==G.node||te.anchorOffset!==G.offset||te.focusNode!==Y.node||te.focusOffset!==Y.offset)){var X=fe.createRange();X.setStart(G.node,G.offset),te.removeAllRanges(),Ue>kt?(te.addRange(X),te.extend(Y.node,Y.offset)):(X.setEnd(Y.node,Y.offset),te.addRange(X))}}}}for(fe=[],te=R;te=te.parentNode;)te.nodeType===1&&fe.push({element:te,left:te.scrollLeft,top:te.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<fe.length;R++){var ce=fe[R];ce.element.scrollLeft=ce.left,ce.element.scrollTop=ce.top}}sf=!!Yp,jp=Yp=null}finally{_t=f,ae.p=l,F.T=u}}n.current=a,yn=2}}function mS(){if(yn===2){yn=0;var n=Va,a=Pu,u=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||u){u=F.T,F.T=null;var l=ae.p;ae.p=2;var f=_t;_t|=4;try{G3(n,a.alternate,a)}finally{_t=f,ae.p=l,F.T=u}}yn=3}}function gS(){if(yn===4||yn===3){yn=0,ke();var n=Va,a=Pu,u=Uu,l=rS;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?yn=5:(yn=0,Pu=Va=null,ES(n,n.pendingLanes));var f=n.pendingLanes;if(f===0&&(qa=null),Jo(u),a=a.stateNode,he&&typeof he.onCommitFiberRoot=="function")try{he.onCommitFiberRoot(re,a,void 0,(a.current.flags&128)===128)}catch{}if(l!==null){a=F.T,f=ae.p,ae.p=2,F.T=null;try{for(var m=n.onRecoverableError,C=0;C<l.length;C++){var R=l[C];m(R.value,{componentStack:R.stack})}}finally{F.T=a,ae.p=f}}(Uu&3)!==0&&Kc(),Xr(n),f=n.pendingLanes,(u&4194090)!==0&&(f&42)!==0?n===Np?Ml++:(Ml=0,Np=n):Ml=0,Bl(0)}}function ES(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,ml(a)))}function Kc(n){return pS(),mS(),gS(),bS()}function bS(){if(yn!==5)return!1;var n=Va,a=vp;vp=0;var u=Jo(Uu),l=F.T,f=ae.p;try{ae.p=32>u?32:u,F.T=null,u=Rp,Rp=null;var m=Va,C=Uu;if(yn=0,Pu=Va=null,Uu=0,(_t&6)!==0)throw Error(i(331));var R=_t;if(_t|=4,tS(m.current),Z3(m,m.current,C,u),_t=R,Bl(0,!1),he&&typeof he.onPostCommitFiberRoot=="function")try{he.onPostCommitFiberRoot(re,m)}catch{}return!0}finally{ae.p=f,F.T=l,ES(n,a)}}function yS(n,a,u){a=Er(u,a),a=up(n.stateNode,a,2),n=Ma(n,a,2),n!==null&&(ea(n,2),Xr(n))}function wt(n,a,u){if(n.tag===3)yS(n,n,u);else for(;a!==null;){if(a.tag===3){yS(a,n,u);break}else if(a.tag===1){var l=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(qa===null||!qa.has(l))){n=Er(u,n),u=A3(2),l=Ma(a,u,2),l!==null&&(x3(u,l,a,n),ea(l,2),Xr(l));break}}a=a.return}}function Dp(n,a,u){var l=n.pingCache;if(l===null){l=n.pingCache=new h7;var f=new Set;l.set(a,f)}else f=l.get(a),f===void 0&&(f=new Set,l.set(a,f));f.has(u)||(Cp=!0,f.add(u),n=b7.bind(null,n,a,u),a.then(n,n))}function b7(n,a,u){var l=n.pingCache;l!==null&&l.delete(a),n.pingedLanes|=n.suspendedLanes&u,n.warmLanes&=~u,Pt===n&&(ot&u)===u&&(Gt===4||Gt===3&&(ot&62914560)===ot&&300>Me()-_p?(_t&2)===0&&Hu(n,0):Ap|=u,Bu===ot&&(Bu=0)),Xr(n)}function TS(n,a){a===0&&(a=tc()),n=Su(n,a),n!==null&&(ea(n,a),Xr(n))}function y7(n){var a=n.memoizedState,u=0;a!==null&&(u=a.retryLane),TS(n,u)}function T7(n,a){var u=0;switch(n.tag){case 13:var l=n.stateNode,f=n.memoizedState;f!==null&&(u=f.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(a),TS(n,u)}function S7(n,a){return Oe(n,a)}var Wc=null,zu=null,wp=!1,Zc=!1,Lp=!1,Di=0;function Xr(n){n!==zu&&n.next===null&&(zu===null?Wc=zu=n:zu=zu.next=n),Zc=!0,wp||(wp=!0,A7())}function Bl(n,a){if(!Lp&&Zc){Lp=!0;do for(var u=!1,l=Wc;l!==null;){if(n!==0){var f=l.pendingLanes;if(f===0)var m=0;else{var C=l.suspendedLanes,R=l.pingedLanes;m=(1<<31-Ae(42|n)+1)-1,m&=f&~(C&~R),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(u=!0,xS(l,m))}else m=ot,m=nn(l,l===Pt?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(m&3)===0||Hn(l,m)||(u=!0,xS(l,m));l=l.next}while(u);Lp=!1}}function C7(){SS()}function SS(){Zc=wp=!1;var n=0;Di!==0&&(I7()&&(n=Di),Di=0);for(var a=Me(),u=null,l=Wc;l!==null;){var f=l.next,m=CS(l,a);m===0?(l.next=null,u===null?Wc=f:u.next=f,f===null&&(zu=u)):(u=l,(n!==0||(m&3)!==0)&&(Zc=!0)),l=f}Bl(n)}function CS(n,a){for(var u=n.suspendedLanes,l=n.pingedLanes,f=n.expirationTimes,m=n.pendingLanes&-62914561;0<m;){var C=31-Ae(m),R=1<<C,H=f[C];H===-1?((R&u)===0||(R&l)!==0)&&(f[C]=Fn(R,a)):H<=a&&(n.expiredLanes|=R),m&=~R}if(a=Pt,u=ot,u=nn(n,n===a?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l=n.callbackNode,u===0||n===a&&(vt===2||vt===9)||n.cancelPendingCommit!==null)return l!==null&&l!==null&&Ce(l),n.callbackNode=null,n.callbackPriority=0;if((u&3)===0||Hn(n,u)){if(a=u&-u,a===n.callbackPriority)return a;switch(l!==null&&Ce(l),Jo(u)){case 2:case 8:u=$e;break;case 32:u=ct;break;case 268435456:u=un;break;default:u=ct}return l=AS.bind(null,n),u=Oe(u,l),n.callbackPriority=a,n.callbackNode=u,a}return l!==null&&l!==null&&Ce(l),n.callbackPriority=2,n.callbackNode=null,2}function AS(n,a){if(yn!==0&&yn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var u=n.callbackNode;if(Kc()&&n.callbackNode!==u)return null;var l=ot;return l=nn(n,n===Pt?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l===0?null:(iS(n,l,a),CS(n,Me()),n.callbackNode!=null&&n.callbackNode===u?AS.bind(null,n):null)}function xS(n,a){if(Kc())return null;iS(n,a,!0)}function A7(){w7(function(){(_t&6)!==0?Oe(qe,C7):SS()})}function Mp(){return Di===0&&(Di=pi()),Di}function _S(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:sc(""+n)}function vS(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 x7(n,a,u,l,f){if(a==="submit"&&u&&u.stateNode===f){var m=_S((f[Ge]||null).action),C=l.submitter;C&&(a=(a=C[Ge]||null)?_S(a.formAction):C.getAttribute("formAction"),a!==null&&(m=a,C=null));var R=new hc("action","action",null,l,f);n.push({event:R,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Di!==0){var H=C?vS(f,C):new FormData(f);tp(u,{pending:!0,data:H,method:f.method,action:m},null,H)}}else typeof m=="function"&&(R.preventDefault(),H=C?vS(f,C):new FormData(f),tp(u,{pending:!0,data:H,method:f.method,action:m},m,H))},currentTarget:f}]})}}for(var Bp=0;Bp<Th.length;Bp++){var Pp=Th[Bp],_7=Pp.toLowerCase(),v7=Pp[0].toUpperCase()+Pp.slice(1);vr(_7,"on"+v7)}vr(iT,"onAnimationEnd"),vr(uT,"onAnimationIteration"),vr(oT,"onAnimationStart"),vr("dblclick","onDoubleClick"),vr("focusin","onFocus"),vr("focusout","onBlur"),vr(jM,"onTransitionRun"),vr(qM,"onTransitionStart"),vr(VM,"onTransitionCancel"),vr(lT,"onTransitionEnd"),fu("onMouseEnter",["mouseout","mouseover"]),fu("onMouseLeave",["mouseout","mouseover"]),fu("onPointerEnter",["pointerout","pointerover"]),fu("onPointerLeave",["pointerout","pointerover"]),gi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),gi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),gi("onBeforeInput",["compositionend","keypress","textInput","paste"]),gi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),gi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),gi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),R7=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Pl));function RS(n,a){a=(a&4)!==0;for(var u=0;u<n.length;u++){var l=n[u],f=l.event;l=l.listeners;e:{var m=void 0;if(a)for(var C=l.length-1;0<=C;C--){var R=l[C],H=R.instance,W=R.currentTarget;if(R=R.listener,H!==m&&f.isPropagationStopped())break e;m=R,f.currentTarget=W;try{m(f)}catch(se){Hc(se)}f.currentTarget=null,m=H}else for(C=0;C<l.length;C++){if(R=l[C],H=R.instance,W=R.currentTarget,R=R.listener,H!==m&&f.isPropagationStopped())break e;m=R,f.currentTarget=W;try{m(f)}catch(se){Hc(se)}f.currentTarget=null,m=H}}}}function rt(n,a){var u=a[zn];u===void 0&&(u=a[zn]=new Set);var l=n+"__bubble";u.has(l)||(NS(a,n,2,!1),u.add(l))}function Up(n,a,u){var l=0;a&&(l|=4),NS(u,n,l,a)}var Jc="_reactListening"+Math.random().toString(36).slice(2);function Hp(n){if(!n[Jc]){n[Jc]=!0,Sy.forEach(function(u){u!=="selectionchange"&&(R7.has(u)||Up(u,!1,n),Up(u,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[Jc]||(a[Jc]=!0,Up("selectionchange",!1,a))}}function NS(n,a,u,l){switch(ZS(a)){case 2:var f=eB;break;case 8:f=tB;break;default:f=Jp}u=f.bind(null,a,u,n),f=void 0,!oh||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),l?f!==void 0?n.addEventListener(a,u,{capture:!0,passive:f}):n.addEventListener(a,u,!0):f!==void 0?n.addEventListener(a,u,{passive:f}):n.addEventListener(a,u,!1)}function Fp(n,a,u,l,f){var m=l;if((a&1)===0&&(a&2)===0&&l!==null)e:for(;;){if(l===null)return;var C=l.tag;if(C===3||C===4){var R=l.stateNode.containerInfo;if(R===f)break;if(C===4)for(C=l.return;C!==null;){var H=C.tag;if((H===3||H===4)&&C.stateNode.containerInfo===f)return;C=C.return}for(;R!==null;){if(C=lu(R),C===null)return;if(H=C.tag,H===5||H===6||H===26||H===27){l=m=C;continue e}R=R.parentNode}}l=l.return}My(function(){var W=m,se=ih(u),fe=[];e:{var ee=sT.get(n);if(ee!==void 0){var te=hc,je=n;switch(n){case"keypress":if(fc(u)===0)break e;case"keydown":case"keyup":te=SM;break;case"focusin":je="focus",te=fh;break;case"focusout":je="blur",te=fh;break;case"beforeblur":case"afterblur":te=fh;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":te=Uy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":te=sM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":te=xM;break;case iT:case uT:case oT:te=dM;break;case lT:te=vM;break;case"scroll":case"scrollend":te=oM;break;case"wheel":te=NM;break;case"copy":case"cut":case"paste":te=pM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":te=Fy;break;case"toggle":case"beforetoggle":te=kM}var Ue=(a&4)!==0,kt=!Ue&&(n==="scroll"||n==="scrollend"),G=Ue?ee!==null?ee+"Capture":null:ee;Ue=[];for(var Y=W,X;Y!==null;){var ce=Y;if(X=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||X===null||G===null||(ce=nl(Y,G),ce!=null&&Ue.push(Ul(Y,ce,X))),kt)break;Y=Y.return}0<Ue.length&&(ee=new te(ee,je,null,u,se),fe.push({event:ee,listeners:Ue}))}}if((a&7)===0){e:{if(ee=n==="mouseover"||n==="pointerover",te=n==="mouseout"||n==="pointerout",ee&&u!==ah&&(je=u.relatedTarget||u.fromElement)&&(lu(je)||je[xt]))break e;if((te||ee)&&(ee=se.window===se?se:(ee=se.ownerDocument)?ee.defaultView||ee.parentWindow:window,te?(je=u.relatedTarget||u.toElement,te=W,je=je?lu(je):null,je!==null&&(kt=s(je),Ue=je.tag,je!==kt||Ue!==5&&Ue!==27&&Ue!==6)&&(je=null)):(te=null,je=W),te!==je)){if(Ue=Uy,ce="onMouseLeave",G="onMouseEnter",Y="mouse",(n==="pointerout"||n==="pointerover")&&(Ue=Fy,ce="onPointerLeave",G="onPointerEnter",Y="pointer"),kt=te==null?ee:tl(te),X=je==null?ee:tl(je),ee=new Ue(ce,Y+"leave",te,u,se),ee.target=kt,ee.relatedTarget=X,ce=null,lu(se)===W&&(Ue=new Ue(G,Y+"enter",je,u,se),Ue.target=X,Ue.relatedTarget=kt,ce=Ue),kt=ce,te&&je)t:{for(Ue=te,G=je,Y=0,X=Ue;X;X=Yu(X))Y++;for(X=0,ce=G;ce;ce=Yu(ce))X++;for(;0<Y-X;)Ue=Yu(Ue),Y--;for(;0<X-Y;)G=Yu(G),X--;for(;Y--;){if(Ue===G||G!==null&&Ue===G.alternate)break t;Ue=Yu(Ue),G=Yu(G)}Ue=null}else Ue=null;te!==null&&OS(fe,ee,te,Ue,!1),je!==null&&kt!==null&&OS(fe,kt,je,Ue,!0)}}e:{if(ee=W?tl(W):window,te=ee.nodeName&&ee.nodeName.toLowerCase(),te==="select"||te==="input"&&ee.type==="file")var ve=Xy;else if(Gy(ee))if(Qy)ve=FM;else{ve=UM;var et=PM}else te=ee.nodeName,!te||te.toLowerCase()!=="input"||ee.type!=="checkbox"&&ee.type!=="radio"?W&&rh(W.elementType)&&(ve=Xy):ve=HM;if(ve&&(ve=ve(n,W))){$y(fe,ve,u,se);break e}et&&et(n,ee,W),n==="focusout"&&W&&ee.type==="number"&&W.memoizedProps.value!=null&&nh(ee,"number",ee.value)}switch(et=W?tl(W):window,n){case"focusin":(Gy(et)||et.contentEditable==="true")&&(bu=et,Eh=W,cl=null);break;case"focusout":cl=Eh=bu=null;break;case"mousedown":bh=!0;break;case"contextmenu":case"mouseup":case"dragend":bh=!1,rT(fe,u,se);break;case"selectionchange":if(YM)break;case"keydown":case"keyup":rT(fe,u,se)}var De;if(hh)e:{switch(n){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else Eu?qy(n,u)&&(ze="onCompositionEnd"):n==="keydown"&&u.keyCode===229&&(ze="onCompositionStart");ze&&(zy&&u.locale!=="ko"&&(Eu||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&Eu&&(De=By()):(Ia=se,lh="value"in Ia?Ia.value:Ia.textContent,Eu=!0)),et=ef(W,ze),0<et.length&&(ze=new Hy(ze,n,null,u,se),fe.push({event:ze,listeners:et}),De?ze.data=De:(De=Vy(u),De!==null&&(ze.data=De)))),(De=DM?wM(n,u):LM(n,u))&&(ze=ef(W,"onBeforeInput"),0<ze.length&&(et=new Hy("onBeforeInput","beforeinput",null,u,se),fe.push({event:et,listeners:ze}),et.data=De)),x7(fe,n,W,u,se)}RS(fe,a)})}function Ul(n,a,u){return{instance:n,listener:a,currentTarget:u}}function ef(n,a){for(var u=a+"Capture",l=[];n!==null;){var f=n,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=nl(n,u),f!=null&&l.unshift(Ul(n,f,m)),f=nl(n,a),f!=null&&l.push(Ul(n,f,m))),n.tag===3)return l;n=n.return}return[]}function Yu(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function OS(n,a,u,l,f){for(var m=a._reactName,C=[];u!==null&&u!==l;){var R=u,H=R.alternate,W=R.stateNode;if(R=R.tag,H!==null&&H===l)break;R!==5&&R!==26&&R!==27||W===null||(H=W,f?(W=nl(u,m),W!=null&&C.unshift(Ul(u,W,H))):f||(W=nl(u,m),W!=null&&C.push(Ul(u,W,H)))),u=u.return}C.length!==0&&n.push({event:a,listeners:C})}var N7=/\r\n?/g,O7=/\u0000|\uFFFD/g;function kS(n){return(typeof n=="string"?n:""+n).replace(N7,`
41
- `).replace(O7,"")}function IS(n,a){return a=kS(a),kS(n)===a}function tf(){}function Ot(n,a,u,l,f,m){switch(u){case"children":typeof l=="string"?a==="body"||a==="textarea"&&l===""||pu(n,l):(typeof l=="number"||typeof l=="bigint")&&a!=="body"&&pu(n,""+l);break;case"className":uc(n,"class",l);break;case"tabIndex":uc(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":uc(n,u,l);break;case"style":wy(n,l,m);break;case"data":if(a!=="object"){uc(n,"data",l);break}case"src":case"href":if(l===""&&(a!=="a"||u!=="href")){n.removeAttribute(u);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(u);break}l=sc(""+l),n.setAttribute(u,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(u==="formAction"?(a!=="input"&&Ot(n,a,"name",f.name,f,null),Ot(n,a,"formEncType",f.formEncType,f,null),Ot(n,a,"formMethod",f.formMethod,f,null),Ot(n,a,"formTarget",f.formTarget,f,null)):(Ot(n,a,"encType",f.encType,f,null),Ot(n,a,"method",f.method,f,null),Ot(n,a,"target",f.target,f,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(u);break}l=sc(""+l),n.setAttribute(u,l);break;case"onClick":l!=null&&(n.onclick=tf);break;case"onScroll":l!=null&&rt("scroll",n);break;case"onScrollEnd":l!=null&&rt("scrollend",n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(u=l.__html,u!=null){if(f.children!=null)throw Error(i(60));n.innerHTML=u}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){n.removeAttribute("xlink:href");break}u=sc(""+l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(u,""+l):n.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(u,""):n.removeAttribute(u);break;case"capture":case"download":l===!0?n.setAttribute(u,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(u,l):n.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(u,l):n.removeAttribute(u);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(u):n.setAttribute(u,l);break;case"popover":rt("beforetoggle",n),rt("toggle",n),ic(n,"popover",l);break;case"xlinkActuate":ra(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ra(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ra(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ra(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ra(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ra(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ra(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ra(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ra(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ic(n,"is",l);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=iM.get(u)||u,ic(n,u,l))}}function zp(n,a,u,l,f,m){switch(u){case"style":wy(n,l,m);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(u=l.__html,u!=null){if(f.children!=null)throw Error(i(60));n.innerHTML=u}}break;case"children":typeof l=="string"?pu(n,l):(typeof l=="number"||typeof l=="bigint")&&pu(n,""+l);break;case"onScroll":l!=null&&rt("scroll",n);break;case"onScrollEnd":l!=null&&rt("scrollend",n);break;case"onClick":l!=null&&(n.onclick=tf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Cy.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(f=u.endsWith("Capture"),a=u.slice(2,f?u.length-7:void 0),m=n[Ge]||null,m=m!=null?m[u]:null,typeof m=="function"&&n.removeEventListener(a,m,f),typeof l=="function")){typeof m!="function"&&m!==null&&(u in n?n[u]=null:n.hasAttribute(u)&&n.removeAttribute(u)),n.addEventListener(a,l,f);break e}u in n?n[u]=l:l===!0?n.setAttribute(u,""):ic(n,u,l)}}}function Tn(n,a,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":rt("error",n),rt("load",n);var l=!1,f=!1,m;for(m in u)if(u.hasOwnProperty(m)){var C=u[m];if(C!=null)switch(m){case"src":l=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Ot(n,a,m,C,u,null)}}f&&Ot(n,a,"srcSet",u.srcSet,u,null),l&&Ot(n,a,"src",u.src,u,null);return;case"input":rt("invalid",n);var R=m=C=f=null,H=null,W=null;for(l in u)if(u.hasOwnProperty(l)){var se=u[l];if(se!=null)switch(l){case"name":f=se;break;case"type":C=se;break;case"checked":H=se;break;case"defaultChecked":W=se;break;case"value":m=se;break;case"defaultValue":R=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(i(137,a));break;default:Ot(n,a,l,se,u,null)}}Oy(n,m,R,H,W,C,f,!1),oc(n);return;case"select":rt("invalid",n),l=C=m=null;for(f in u)if(u.hasOwnProperty(f)&&(R=u[f],R!=null))switch(f){case"value":m=R;break;case"defaultValue":C=R;break;case"multiple":l=R;default:Ot(n,a,f,R,u,null)}a=m,u=C,n.multiple=!!l,a!=null?hu(n,!!l,a,!1):u!=null&&hu(n,!!l,u,!0);return;case"textarea":rt("invalid",n),m=f=l=null;for(C in u)if(u.hasOwnProperty(C)&&(R=u[C],R!=null))switch(C){case"value":l=R;break;case"defaultValue":f=R;break;case"children":m=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:Ot(n,a,C,R,u,null)}Iy(n,l,f,m),oc(n);return;case"option":for(H in u)if(u.hasOwnProperty(H)&&(l=u[H],l!=null))switch(H){case"selected":n.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ot(n,a,H,l,u,null)}return;case"dialog":rt("beforetoggle",n),rt("toggle",n),rt("cancel",n),rt("close",n);break;case"iframe":case"object":rt("load",n);break;case"video":case"audio":for(l=0;l<Pl.length;l++)rt(Pl[l],n);break;case"image":rt("error",n),rt("load",n);break;case"details":rt("toggle",n);break;case"embed":case"source":case"link":rt("error",n),rt("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(W in u)if(u.hasOwnProperty(W)&&(l=u[W],l!=null))switch(W){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Ot(n,a,W,l,u,null)}return;default:if(rh(a)){for(se in u)u.hasOwnProperty(se)&&(l=u[se],l!==void 0&&zp(n,a,se,l,u,void 0));return}}for(R in u)u.hasOwnProperty(R)&&(l=u[R],l!=null&&Ot(n,a,R,l,u,null))}function k7(n,a,u,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,m=null,C=null,R=null,H=null,W=null,se=null;for(te in u){var fe=u[te];if(u.hasOwnProperty(te)&&fe!=null)switch(te){case"checked":break;case"value":break;case"defaultValue":H=fe;default:l.hasOwnProperty(te)||Ot(n,a,te,null,l,fe)}}for(var ee in l){var te=l[ee];if(fe=u[ee],l.hasOwnProperty(ee)&&(te!=null||fe!=null))switch(ee){case"type":m=te;break;case"name":f=te;break;case"checked":W=te;break;case"defaultChecked":se=te;break;case"value":C=te;break;case"defaultValue":R=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(i(137,a));break;default:te!==fe&&Ot(n,a,ee,te,l,fe)}}th(n,C,R,H,W,se,m,f);return;case"select":te=C=R=ee=null;for(m in u)if(H=u[m],u.hasOwnProperty(m)&&H!=null)switch(m){case"value":break;case"multiple":te=H;default:l.hasOwnProperty(m)||Ot(n,a,m,null,l,H)}for(f in l)if(m=l[f],H=u[f],l.hasOwnProperty(f)&&(m!=null||H!=null))switch(f){case"value":ee=m;break;case"defaultValue":R=m;break;case"multiple":C=m;default:m!==H&&Ot(n,a,f,m,l,H)}a=R,u=C,l=te,ee!=null?hu(n,!!u,ee,!1):!!l!=!!u&&(a!=null?hu(n,!!u,a,!0):hu(n,!!u,u?[]:"",!1));return;case"textarea":te=ee=null;for(R in u)if(f=u[R],u.hasOwnProperty(R)&&f!=null&&!l.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Ot(n,a,R,null,l,f)}for(C in l)if(f=l[C],m=u[C],l.hasOwnProperty(C)&&(f!=null||m!=null))switch(C){case"value":ee=f;break;case"defaultValue":te=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(i(91));break;default:f!==m&&Ot(n,a,C,f,l,m)}ky(n,ee,te);return;case"option":for(var je in u)if(ee=u[je],u.hasOwnProperty(je)&&ee!=null&&!l.hasOwnProperty(je))switch(je){case"selected":n.selected=!1;break;default:Ot(n,a,je,null,l,ee)}for(H in l)if(ee=l[H],te=u[H],l.hasOwnProperty(H)&&ee!==te&&(ee!=null||te!=null))switch(H){case"selected":n.selected=ee&&typeof ee!="function"&&typeof ee!="symbol";break;default:Ot(n,a,H,ee,l,te)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ue in u)ee=u[Ue],u.hasOwnProperty(Ue)&&ee!=null&&!l.hasOwnProperty(Ue)&&Ot(n,a,Ue,null,l,ee);for(W in l)if(ee=l[W],te=u[W],l.hasOwnProperty(W)&&ee!==te&&(ee!=null||te!=null))switch(W){case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(i(137,a));break;default:Ot(n,a,W,ee,l,te)}return;default:if(rh(a)){for(var kt in u)ee=u[kt],u.hasOwnProperty(kt)&&ee!==void 0&&!l.hasOwnProperty(kt)&&zp(n,a,kt,void 0,l,ee);for(se in l)ee=l[se],te=u[se],!l.hasOwnProperty(se)||ee===te||ee===void 0&&te===void 0||zp(n,a,se,ee,l,te);return}}for(var G in u)ee=u[G],u.hasOwnProperty(G)&&ee!=null&&!l.hasOwnProperty(G)&&Ot(n,a,G,null,l,ee);for(fe in l)ee=l[fe],te=u[fe],!l.hasOwnProperty(fe)||ee===te||ee==null&&te==null||Ot(n,a,fe,ee,l,te)}var Yp=null,jp=null;function nf(n){return n.nodeType===9?n:n.ownerDocument}function DS(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 wS(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function qp(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Vp=null;function I7(){var n=window.event;return n&&n.type==="popstate"?n===Vp?!1:(Vp=n,!0):(Vp=null,!1)}var LS=typeof setTimeout=="function"?setTimeout:void 0,D7=typeof clearTimeout=="function"?clearTimeout:void 0,MS=typeof Promise=="function"?Promise:void 0,w7=typeof queueMicrotask=="function"?queueMicrotask:typeof MS<"u"?function(n){return MS.resolve(null).then(n).catch(L7)}:LS;function L7(n){setTimeout(function(){throw n})}function $a(n){return n==="head"}function BS(n,a){var u=a,l=0,f=0;do{var m=u.nextSibling;if(n.removeChild(u),m&&m.nodeType===8)if(u=m.data,u==="/$"){if(0<l&&8>l){u=l;var C=n.ownerDocument;if(u&1&&Hl(C.documentElement),u&2&&Hl(C.body),u&4)for(u=C.head,Hl(u),C=u.firstChild;C;){var R=C.nextSibling,H=C.nodeName;C[na]||H==="SCRIPT"||H==="STYLE"||H==="LINK"&&C.rel.toLowerCase()==="stylesheet"||u.removeChild(C),C=R}}if(f===0){n.removeChild(m),$l(a);return}f--}else u==="$"||u==="$?"||u==="$!"?f++:l=u.charCodeAt(0)-48;else l=0;u=m}while(u);$l(a)}function Gp(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Gp(u),W0(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}n.removeChild(u)}}function M7(n,a,u,l){for(;n.nodeType===1;){var f=u;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[na])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(m=n.getAttribute("rel"),m==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(m!==f.rel||n.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(m=n.getAttribute("src"),(m!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===m)return n}else return n;if(n=Nr(n.nextSibling),n===null)break}return null}function B7(n,a,u){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!u||(n=Nr(n.nextSibling),n===null))return null;return n}function $p(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function P7(n,a){var u=n.ownerDocument;if(n.data!=="$?"||u.readyState==="complete")a();else{var l=function(){a(),u.removeEventListener("DOMContentLoaded",l)};u.addEventListener("DOMContentLoaded",l),n._reactRetry=l}}function Nr(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return n}var Xp=null;function PS(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 US(n,a,u){switch(a=nf(u),n){case"html":if(n=a.documentElement,!n)throw Error(i(452));return n;case"head":if(n=a.head,!n)throw Error(i(453));return n;case"body":if(n=a.body,!n)throw Error(i(454));return n;default:throw Error(i(451))}}function Hl(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);W0(n)}var Ar=new Map,HS=new Set;function rf(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Ea=ae.d;ae.d={f:U7,r:H7,D:F7,C:z7,L:Y7,m:j7,X:V7,S:q7,M:G7};function U7(){var n=Ea.f(),a=Xc();return n||a}function H7(n){var a=su(n);a!==null&&a.tag===5&&a.type==="form"?i3(a):Ea.r(n)}var ju=typeof document>"u"?null:document;function FS(n,a,u){var l=ju;if(l&&typeof a=="string"&&a){var f=gr(a);f='link[rel="'+n+'"][href="'+f+'"]',typeof u=="string"&&(f+='[crossorigin="'+u+'"]'),HS.has(f)||(HS.add(f),n={rel:n,crossOrigin:u,href:a},l.querySelector(f)===null&&(a=l.createElement("link"),Tn(a,"link",n),dn(a),l.head.appendChild(a)))}}function F7(n){Ea.D(n),FS("dns-prefetch",n,null)}function z7(n,a){Ea.C(n,a),FS("preconnect",n,a)}function Y7(n,a,u){Ea.L(n,a,u);var l=ju;if(l&&n&&a){var f='link[rel="preload"][as="'+gr(a)+'"]';a==="image"&&u&&u.imageSrcSet?(f+='[imagesrcset="'+gr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(f+='[imagesizes="'+gr(u.imageSizes)+'"]')):f+='[href="'+gr(n)+'"]';var m=f;switch(a){case"style":m=qu(n);break;case"script":m=Vu(n)}Ar.has(m)||(n=E({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:n,as:a},u),Ar.set(m,n),l.querySelector(f)!==null||a==="style"&&l.querySelector(Fl(m))||a==="script"&&l.querySelector(zl(m))||(a=l.createElement("link"),Tn(a,"link",n),dn(a),l.head.appendChild(a)))}}function j7(n,a){Ea.m(n,a);var u=ju;if(u&&n){var l=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+gr(l)+'"][href="'+gr(n)+'"]',m=f;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Vu(n)}if(!Ar.has(m)&&(n=E({rel:"modulepreload",href:n},a),Ar.set(m,n),u.querySelector(f)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(zl(m)))return}l=u.createElement("link"),Tn(l,"link",n),dn(l),u.head.appendChild(l)}}}function q7(n,a,u){Ea.S(n,a,u);var l=ju;if(l&&n){var f=cu(l).hoistableStyles,m=qu(n);a=a||"default";var C=f.get(m);if(!C){var R={loading:0,preload:null};if(C=l.querySelector(Fl(m)))R.loading=5;else{n=E({rel:"stylesheet",href:n,"data-precedence":a},u),(u=Ar.get(m))&&Qp(n,u);var H=C=l.createElement("link");dn(H),Tn(H,"link",n),H._p=new Promise(function(W,se){H.onload=W,H.onerror=se}),H.addEventListener("load",function(){R.loading|=1}),H.addEventListener("error",function(){R.loading|=2}),R.loading|=4,af(C,a,l)}C={type:"stylesheet",instance:C,count:1,state:R},f.set(m,C)}}}function V7(n,a){Ea.X(n,a);var u=ju;if(u&&n){var l=cu(u).hoistableScripts,f=Vu(n),m=l.get(f);m||(m=u.querySelector(zl(f)),m||(n=E({src:n,async:!0},a),(a=Ar.get(f))&&Kp(n,a),m=u.createElement("script"),dn(m),Tn(m,"link",n),u.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(f,m))}}function G7(n,a){Ea.M(n,a);var u=ju;if(u&&n){var l=cu(u).hoistableScripts,f=Vu(n),m=l.get(f);m||(m=u.querySelector(zl(f)),m||(n=E({src:n,async:!0,type:"module"},a),(a=Ar.get(f))&&Kp(n,a),m=u.createElement("script"),dn(m),Tn(m,"link",n),u.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(f,m))}}function zS(n,a,u,l){var f=(f=Te.current)?rf(f):null;if(!f)throw Error(i(446));switch(n){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=qu(u.href),u=cu(f).hoistableStyles,l=u.get(a),l||(l={type:"style",instance:null,count:0,state:null},u.set(a,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){n=qu(u.href);var m=cu(f).hoistableStyles,C=m.get(n);if(C||(f=f.ownerDocument||f,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(n,C),(m=f.querySelector(Fl(n)))&&!m._p&&(C.instance=m,C.state.loading=5),Ar.has(n)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Ar.set(n,u),m||$7(f,n,u,C.state))),a&&l===null)throw Error(i(528,""));return C}if(a&&l!==null)throw Error(i(529,""));return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Vu(u),u=cu(f).hoistableScripts,l=u.get(a),l||(l={type:"script",instance:null,count:0,state:null},u.set(a,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,n))}}function qu(n){return'href="'+gr(n)+'"'}function Fl(n){return'link[rel="stylesheet"]['+n+"]"}function YS(n){return E({},n,{"data-precedence":n.precedence,precedence:null})}function $7(n,a,u,l){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=n.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),Tn(a,"link",u),dn(a),n.head.appendChild(a))}function Vu(n){return'[src="'+gr(n)+'"]'}function zl(n){return"script[async]"+n}function jS(n,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var l=n.querySelector('style[data-href~="'+gr(u.href)+'"]');if(l)return a.instance=l,dn(l),l;var f=E({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),dn(l),Tn(l,"style",f),af(l,u.precedence,n),a.instance=l;case"stylesheet":f=qu(u.href);var m=n.querySelector(Fl(f));if(m)return a.state.loading|=4,a.instance=m,dn(m),m;l=YS(u),(f=Ar.get(f))&&Qp(l,f),m=(n.ownerDocument||n).createElement("link"),dn(m);var C=m;return C._p=new Promise(function(R,H){C.onload=R,C.onerror=H}),Tn(m,"link",l),a.state.loading|=4,af(m,u.precedence,n),a.instance=m;case"script":return m=Vu(u.src),(f=n.querySelector(zl(m)))?(a.instance=f,dn(f),f):(l=u,(f=Ar.get(m))&&(l=E({},u),Kp(l,f)),n=n.ownerDocument||n,f=n.createElement("script"),dn(f),Tn(f,"link",l),n.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(l=a.instance,a.state.loading|=4,af(l,u.precedence,n));return a.instance}function af(n,a,u){for(var l=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=l.length?l[l.length-1]:null,m=f,C=0;C<l.length;C++){var R=l[C];if(R.dataset.precedence===a)m=R;else if(m!==f)break}m?m.parentNode.insertBefore(n,m.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(n,a.firstChild))}function Qp(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function Kp(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var uf=null;function qS(n,a,u){if(uf===null){var l=new Map,f=uf=new Map;f.set(u,l)}else f=uf,l=f.get(u),l||(l=new Map,f.set(u,l));if(l.has(n))return l;for(l.set(n,null),u=u.getElementsByTagName(n),f=0;f<u.length;f++){var m=u[f];if(!(m[na]||m[Ye]||n==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var C=m.getAttribute(a)||"";C=n+C;var R=l.get(C);R?R.push(m):l.set(C,[m])}}return l}function VS(n,a,u){n=n.ownerDocument||n,n.head.insertBefore(u,a==="title"?n.querySelector("head > title"):null)}function X7(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 GS(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var Yl=null;function Q7(){}function K7(n,a,u){if(Yl===null)throw Error(i(475));var l=Yl;if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var f=qu(u.href),m=n.querySelector(Fl(f));if(m){n=m._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(l.count++,l=of.bind(l),n.then(l,l)),a.state.loading|=4,a.instance=m,dn(m);return}m=n.ownerDocument||n,u=YS(u),(f=Ar.get(f))&&Qp(u,f),m=m.createElement("link"),dn(m);var C=m;C._p=new Promise(function(R,H){C.onload=R,C.onerror=H}),Tn(m,"link",u),a.instance=m}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(l.count++,a=of.bind(l),n.addEventListener("load",a),n.addEventListener("error",a))}}function W7(){if(Yl===null)throw Error(i(475));var n=Yl;return n.stylesheets&&n.count===0&&Wp(n,n.stylesheets),0<n.count?function(a){var u=setTimeout(function(){if(n.stylesheets&&Wp(n,n.stylesheets),n.unsuspend){var l=n.unsuspend;n.unsuspend=null,l()}},6e4);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(u)}}:null}function of(){if(this.count--,this.count===0){if(this.stylesheets)Wp(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var lf=null;function Wp(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,lf=new Map,a.forEach(Z7,n),lf=null,of.call(n))}function Z7(n,a){if(!(a.state.loading&4)){var u=lf.get(n);if(u)var l=u.get(null);else{u=new Map,lf.set(n,u);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var C=f[m];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(u.set(C.dataset.precedence,C),l=C)}l&&u.set(null,l)}f=a.instance,C=f.getAttribute("data-precedence"),m=u.get(C)||l,m===l&&u.set(null,f),u.set(C,f),this.count++,l=of.bind(this),f.addEventListener("load",l),f.addEventListener("error",l),m?m.parentNode.insertBefore(f,m.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),a.state.loading|=4}}var jl={$$typeof:M,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function J7(n,a,u,l,f,m,C,R){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Wo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wo(0),this.hiddenUpdates=Wo(null),this.identifierPrefix=l,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function $S(n,a,u,l,f,m,C,R,H,W,se,fe){return n=new J7(n,a,u,C,R,H,W,fe),a=1,m===!0&&(a|=24),m=er(3,null,null,a),n.current=m,m.stateNode=n,a=Dh(),a.refCount++,n.pooledCache=a,a.refCount++,m.memoizedState={element:l,isDehydrated:u,cache:a},Bh(m),n}function XS(n){return n?(n=Cu,n):Cu}function QS(n,a,u,l,f,m){f=XS(f),l.context===null?l.context=f:l.pendingContext=f,l=La(a),l.payload={element:u},m=m===void 0?null:m,m!==null&&(l.callback=m),u=Ma(n,l,a),u!==null&&(ir(u,n,a),yl(u,n,a))}function KS(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var u=n.retryLane;n.retryLane=u!==0&&u<a?u:a}}function Zp(n,a){KS(n,a),(n=n.alternate)&&KS(n,a)}function WS(n){if(n.tag===13){var a=Su(n,67108864);a!==null&&ir(a,n,67108864),Zp(n,67108864)}}var sf=!0;function eB(n,a,u,l){var f=F.T;F.T=null;var m=ae.p;try{ae.p=2,Jp(n,a,u,l)}finally{ae.p=m,F.T=f}}function tB(n,a,u,l){var f=F.T;F.T=null;var m=ae.p;try{ae.p=8,Jp(n,a,u,l)}finally{ae.p=m,F.T=f}}function Jp(n,a,u,l){if(sf){var f=em(l);if(f===null)Fp(n,a,l,cf,u),JS(n,l);else if(rB(f,n,a,u,l))l.stopPropagation();else if(JS(n,l),a&4&&-1<nB.indexOf(n)){for(;f!==null;){var m=su(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var C=fn(m.pendingLanes);if(C!==0){var R=m;for(R.pendingLanes|=2,R.entangledLanes|=2;C;){var H=1<<31-Ae(C);R.entanglements[1]|=H,C&=~H}Xr(m),(_t&6)===0&&(Gc=Me()+500,Bl(0))}}break;case 13:R=Su(m,2),R!==null&&ir(R,m,2),Xc(),Zp(m,2)}if(m=em(l),m===null&&Fp(n,a,l,cf,u),m===f)break;f=m}f!==null&&l.stopPropagation()}else Fp(n,a,l,null,u)}}function em(n){return n=ih(n),tm(n)}var cf=null;function tm(n){if(cf=null,n=lu(n),n!==null){var a=s(n);if(a===null)n=null;else{var u=a.tag;if(u===13){if(n=c(a),n!==null)return n;n=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return cf=n,null}function ZS(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Fe()){case qe:return 2;case $e:return 8;case ct:case Ie:return 32;case un:return 268435456;default:return 32}default:return 32}}var nm=!1,Xa=null,Qa=null,Ka=null,ql=new Map,Vl=new Map,Wa=[],nB="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 JS(n,a){switch(n){case"focusin":case"focusout":Xa=null;break;case"dragenter":case"dragleave":Qa=null;break;case"mouseover":case"mouseout":Ka=null;break;case"pointerover":case"pointerout":ql.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vl.delete(a.pointerId)}}function Gl(n,a,u,l,f,m){return n===null||n.nativeEvent!==m?(n={blockedOn:a,domEventName:u,eventSystemFlags:l,nativeEvent:m,targetContainers:[f]},a!==null&&(a=su(a),a!==null&&WS(a)),n):(n.eventSystemFlags|=l,a=n.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),n)}function rB(n,a,u,l,f){switch(a){case"focusin":return Xa=Gl(Xa,n,a,u,l,f),!0;case"dragenter":return Qa=Gl(Qa,n,a,u,l,f),!0;case"mouseover":return Ka=Gl(Ka,n,a,u,l,f),!0;case"pointerover":var m=f.pointerId;return ql.set(m,Gl(ql.get(m)||null,n,a,u,l,f)),!0;case"gotpointercapture":return m=f.pointerId,Vl.set(m,Gl(Vl.get(m)||null,n,a,u,l,f)),!0}return!1}function eC(n){var a=lu(n.target);if(a!==null){var u=s(a);if(u!==null){if(a=u.tag,a===13){if(a=c(u),a!==null){n.blockedOn=a,xe(n.priority,function(){if(u.tag===13){var l=ar();l=Zo(l);var f=Su(u,l);f!==null&&ir(f,u,l),Zp(u,l)}});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){n.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}n.blockedOn=null}function ff(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var u=em(n.nativeEvent);if(u===null){u=n.nativeEvent;var l=new u.constructor(u.type,u);ah=l,u.target.dispatchEvent(l),ah=null}else return a=su(u),a!==null&&WS(a),n.blockedOn=u,!1;a.shift()}return!0}function tC(n,a,u){ff(n)&&u.delete(a)}function aB(){nm=!1,Xa!==null&&ff(Xa)&&(Xa=null),Qa!==null&&ff(Qa)&&(Qa=null),Ka!==null&&ff(Ka)&&(Ka=null),ql.forEach(tC),Vl.forEach(tC)}function df(n,a){n.blockedOn===a&&(n.blockedOn=null,nm||(nm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,aB)))}var hf=null;function nC(n){hf!==n&&(hf=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){hf===n&&(hf=null);for(var a=0;a<n.length;a+=3){var u=n[a],l=n[a+1],f=n[a+2];if(typeof l!="function"){if(tm(l||u)===null)continue;break}var m=su(u);m!==null&&(n.splice(a,3),a-=3,tp(m,{pending:!0,data:f,method:u.method,action:l},l,f))}}))}function $l(n){function a(H){return df(H,n)}Xa!==null&&df(Xa,n),Qa!==null&&df(Qa,n),Ka!==null&&df(Ka,n),ql.forEach(a),Vl.forEach(a);for(var u=0;u<Wa.length;u++){var l=Wa[u];l.blockedOn===n&&(l.blockedOn=null)}for(;0<Wa.length&&(u=Wa[0],u.blockedOn===null);)eC(u),u.blockedOn===null&&Wa.shift();if(u=(n.ownerDocument||n).$$reactFormReplay,u!=null)for(l=0;l<u.length;l+=3){var f=u[l],m=u[l+1],C=f[Ge]||null;if(typeof m=="function")C||nC(u);else if(C){var R=null;if(m&&m.hasAttribute("formAction")){if(f=m,C=m[Ge]||null)R=C.formAction;else if(tm(f)!==null)continue}else R=C.action;typeof R=="function"?u[l+1]=R:(u.splice(l,3),l-=3),nC(u)}}}function rm(n){this._internalRoot=n}pf.prototype.render=rm.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(i(409));var u=a.current,l=ar();QS(u,l,n,a,null,null)},pf.prototype.unmount=rm.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;QS(n.current,2,null,n,null,null),Xc(),a[xt]=null}};function pf(n){this._internalRoot=n}pf.prototype.unstable_scheduleHydration=function(n){if(n){var a=ac();n={blockedOn:null,target:n,priority:a};for(var u=0;u<Wa.length&&a!==0&&a<Wa[u].priority;u++);Wa.splice(u,0,n),u===0&&eC(n)}};var rC=t.version;if(rC!=="19.1.0")throw Error(i(527,rC,"19.1.0"));ae.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(i(188)):(n=Object.keys(n).join(","),Error(i(268,n)));return n=h(a),n=n!==null?p(n):null,n=n===null?null:n.stateNode,n};var iB={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mf.isDisabled&&mf.supportsFiber)try{re=mf.inject(iB),he=mf}catch{}}return Gu.createRoot=function(n,a){if(!o(n))throw Error(i(299));var u=!1,l="",f=y3,m=T3,C=S3,R=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(C=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(R=a.unstable_transitionCallbacks)),a=$S(n,1,!1,null,null,u,l,f,m,C,R,null),n[xt]=a.current,Hp(n),new rm(a)},Gu.hydrateRoot=function(n,a,u){if(!o(n))throw Error(i(299));var l=!1,f="",m=y3,C=T3,R=S3,H=null,W=null;return u!=null&&(u.unstable_strictMode===!0&&(l=!0),u.identifierPrefix!==void 0&&(f=u.identifierPrefix),u.onUncaughtError!==void 0&&(m=u.onUncaughtError),u.onCaughtError!==void 0&&(C=u.onCaughtError),u.onRecoverableError!==void 0&&(R=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(H=u.unstable_transitionCallbacks),u.formState!==void 0&&(W=u.formState)),a=$S(n,1,!0,a,u??null,l,f,m,C,R,H,W),a.context=XS(null),u=a.current,l=ar(),l=Zo(l),f=La(l),f.callback=null,Ma(u,f,l),u=l,a.current.lanes=u,ea(a,u),Xr(a),n[xt]=a.current,Hp(n),new pf(a)},Gu.version="19.1.0",Gu}var hm;function cC(){if(hm)return bf.exports;hm=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),bf.exports=sC(),bf.exports}var fC=cC();function Ja(){return Ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ja.apply(null,arguments)}function dC(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 hC(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 pC=function(){function e(r){var i=this;this._insertTag=function(o){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(o,s),i.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(hC(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=dC(o);try{s.insertRule(i,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var o;return(o=i.parentNode)==null?void 0:o.removeChild(i)}),this.tags=[],this.ctr=0},e}(),Cn="-ms-",Kl="-moz-",dt="-webkit-",pm="comm",Cf="rule",Af="decl",mC="@import",mm="@keyframes",gC="@layer",EC=Math.abs,Wl=String.fromCharCode,bC=Object.assign;function yC(e,t){return gn(e,0)^45?(((t<<2^gn(e,0))<<2^gn(e,1))<<2^gn(e,2))<<2^gn(e,3):0}function gm(e){return e.trim()}function TC(e,t){return(e=t.exec(e))?e[0]:e}function ht(e,t,r){return e.replace(t,r)}function xf(e,t){return e.indexOf(t)}function gn(e,t){return e.charCodeAt(t)|0}function $u(e,t,r){return e.slice(t,r)}function Or(e){return e.length}function _f(e){return e.length}function Zl(e,t){return t.push(e),e}function SC(e,t){return e.map(t).join("")}var Jl=1,wi=1,Em=0,wn=0,Wt=0,Li="";function es(e,t,r,i,o,s,c){return{value:e,root:t,parent:r,type:i,props:o,children:s,line:Jl,column:wi,length:c,return:""}}function Xu(e,t){return bC(es("",null,null,"",null,null,0),e,{length:-e.length},t)}function CC(){return Wt}function AC(){return Wt=wn>0?gn(Li,--wn):0,wi--,Wt===10&&(wi=1,Jl--),Wt}function $n(){return Wt=wn<Em?gn(Li,wn++):0,wi++,Wt===10&&(wi=1,Jl++),Wt}function kr(){return gn(Li,wn)}function ts(){return wn}function Qu(e,t){return $u(Li,e,t)}function Ku(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function bm(e){return Jl=wi=1,Em=Or(Li=e),wn=0,[]}function ym(e){return Li="",e}function ns(e){return gm(Qu(wn-1,vf(e===91?e+2:e===40?e+1:e)))}function xC(e){for(;(Wt=kr())&&Wt<33;)$n();return Ku(e)>2||Ku(Wt)>3?"":" "}function _C(e,t){for(;--t&&$n()&&!(Wt<48||Wt>102||Wt>57&&Wt<65||Wt>70&&Wt<97););return Qu(e,ts()+(t<6&&kr()==32&&$n()==32))}function vf(e){for(;$n();)switch(Wt){case e:return wn;case 34:case 39:e!==34&&e!==39&&vf(Wt);break;case 40:e===41&&vf(e);break;case 92:$n();break}return wn}function vC(e,t){for(;$n()&&e+Wt!==57;)if(e+Wt===84&&kr()===47)break;return"/*"+Qu(t,wn-1)+"*"+Wl(e===47?e:$n())}function RC(e){for(;!Ku(kr());)$n();return Qu(e,wn)}function NC(e){return ym(rs("",null,null,null,[""],e=bm(e),0,[0],e))}function rs(e,t,r,i,o,s,c,d,h){for(var p=0,E=0,b=c,T=0,y=0,v=0,x=1,B=1,I=1,P=0,M="",w=o,D=s,N=i,z=M;B;)switch(v=P,P=$n()){case 40:if(v!=108&&gn(z,b-1)==58){xf(z+=ht(ns(P),"&","&\f"),"&\f")!=-1&&(I=-1);break}case 34:case 39:case 91:z+=ns(P);break;case 9:case 10:case 13:case 32:z+=xC(v);break;case 92:z+=_C(ts()-1,7);continue;case 47:switch(kr()){case 42:case 47:Zl(OC(vC($n(),ts()),t,r),h);break;default:z+="/"}break;case 123*x:d[p++]=Or(z)*I;case 125*x:case 59:case 0:switch(P){case 0:case 125:B=0;case 59+E:I==-1&&(z=ht(z,/\f/g,"")),y>0&&Or(z)-b&&Zl(y>32?Sm(z+";",i,r,b-1):Sm(ht(z," ","")+";",i,r,b-2),h);break;case 59:z+=";";default:if(Zl(N=Tm(z,t,r,p,E,o,d,M,w=[],D=[],b),s),P===123)if(E===0)rs(z,t,N,N,w,s,b,d,D);else switch(T===99&&gn(z,3)===110?100:T){case 100:case 108:case 109:case 115:rs(e,N,N,i&&Zl(Tm(e,N,N,0,0,o,d,M,o,w=[],b),D),o,D,b,d,i?w:D);break;default:rs(z,N,N,N,[""],D,0,d,D)}}p=E=y=0,x=I=1,M=z="",b=c;break;case 58:b=1+Or(z),y=v;default:if(x<1){if(P==123)--x;else if(P==125&&x++==0&&AC()==125)continue}switch(z+=Wl(P),P*x){case 38:I=E>0?1:(z+="\f",-1);break;case 44:d[p++]=(Or(z)-1)*I,I=1;break;case 64:kr()===45&&(z+=ns($n())),T=kr(),E=b=Or(M=z+=RC(ts())),P++;break;case 45:v===45&&Or(z)==2&&(x=0)}}return s}function Tm(e,t,r,i,o,s,c,d,h,p,E){for(var b=o-1,T=o===0?s:[""],y=_f(T),v=0,x=0,B=0;v<i;++v)for(var I=0,P=$u(e,b+1,b=EC(x=c[v])),M=e;I<y;++I)(M=gm(x>0?T[I]+" "+P:ht(P,/&\f/g,T[I])))&&(h[B++]=M);return es(e,t,r,o===0?Cf:d,h,p,E)}function OC(e,t,r){return es(e,t,r,pm,Wl(CC()),$u(e,2,-2),0)}function Sm(e,t,r,i){return es(e,t,r,Af,$u(e,0,i),$u(e,i+1,-1),i)}function Mi(e,t){for(var r="",i=_f(e),o=0;o<i;o++)r+=t(e[o],o,e,t)||"";return r}function kC(e,t,r,i){switch(e.type){case gC:if(e.children.length)break;case mC:case Af:return e.return=e.return||e.value;case pm:return"";case mm:return e.return=e.value+"{"+Mi(e.children,i)+"}";case Cf:e.value=e.props.join(",")}return Or(r=Mi(e.children,i))?e.return=e.value+"{"+r+"}":""}function IC(e){var t=_f(e);return function(r,i,o,s){for(var c="",d=0;d<t;d++)c+=e[d](r,i,o,s)||"";return c}}function DC(e){return function(t){t.root||(t=t.return)&&e(t)}}function Cm(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var wC=function(t,r,i){for(var o=0,s=0;o=s,s=kr(),o===38&&s===12&&(r[i]=1),!Ku(s);)$n();return Qu(t,wn)},LC=function(t,r){var i=-1,o=44;do switch(Ku(o)){case 0:o===38&&kr()===12&&(r[i]=1),t[i]+=wC(wn-1,r,i);break;case 2:t[i]+=ns(o);break;case 4:if(o===44){t[++i]=kr()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Wl(o)}while(o=$n());return t},MC=function(t,r){return ym(LC(bm(t),r))},Am=new WeakMap,BC=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,i=t.parent,o=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Am.get(i))&&!o){Am.set(t,!0);for(var s=[],c=MC(r,s),d=i.props,h=0,p=0;h<c.length;h++)for(var E=0;E<d.length;E++,p++)t.props[p]=s[h]?c[h].replace(/&\f/g,d[E]):d[E]+" "+c[h]}}},PC=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function xm(e,t){switch(yC(e,t)){case 5103:return dt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return dt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dt+e+Kl+e+Cn+e+e;case 6828:case 4268:return dt+e+Cn+e+e;case 6165:return dt+e+Cn+"flex-"+e+e;case 5187:return dt+e+ht(e,/(\w+).+(:[^]+)/,dt+"box-$1$2"+Cn+"flex-$1$2")+e;case 5443:return dt+e+Cn+"flex-item-"+ht(e,/flex-|-self/,"")+e;case 4675:return dt+e+Cn+"flex-line-pack"+ht(e,/align-content|flex-|-self/,"")+e;case 5548:return dt+e+Cn+ht(e,"shrink","negative")+e;case 5292:return dt+e+Cn+ht(e,"basis","preferred-size")+e;case 6060:return dt+"box-"+ht(e,"-grow","")+dt+e+Cn+ht(e,"grow","positive")+e;case 4554:return dt+ht(e,/([^-])(transform)/g,"$1"+dt+"$2")+e;case 6187:return ht(ht(ht(e,/(zoom-|grab)/,dt+"$1"),/(image-set)/,dt+"$1"),e,"")+e;case 5495:case 3959:return ht(e,/(image-set\([^]*)/,dt+"$1$`$1");case 4968:return ht(ht(e,/(.+:)(flex-)?(.*)/,dt+"box-pack:$3"+Cn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dt+e+e;case 4095:case 3583:case 4068:case 2532:return ht(e,/(.+)-inline(.+)/,dt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Or(e)-1-t>6)switch(gn(e,t+1)){case 109:if(gn(e,t+4)!==45)break;case 102:return ht(e,/(.+:)(.+)-([^]+)/,"$1"+dt+"$2-$3$1"+Kl+(gn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~xf(e,"stretch")?xm(ht(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(gn(e,t+1)!==115)break;case 6444:switch(gn(e,Or(e)-3-(~xf(e,"!important")&&10))){case 107:return ht(e,":",":"+dt)+e;case 101:return ht(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dt+(gn(e,14)===45?"inline-":"")+"box$3$1"+dt+"$2$3$1"+Cn+"$2box$3")+e}break;case 5936:switch(gn(e,t+11)){case 114:return dt+e+Cn+ht(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dt+e+Cn+ht(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dt+e+Cn+ht(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dt+e+Cn+e+e}return e}var UC=function(t,r,i,o){if(t.length>-1&&!t.return)switch(t.type){case Af:t.return=xm(t.value,t.length);break;case mm:return Mi([Xu(t,{value:ht(t.value,"@","@"+dt)})],o);case Cf:if(t.length)return SC(t.props,function(s){switch(TC(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mi([Xu(t,{props:[ht(s,/:(read-\w+)/,":"+Kl+"$1")]})],o);case"::placeholder":return Mi([Xu(t,{props:[ht(s,/:(plac\w+)/,":"+dt+"input-$1")]}),Xu(t,{props:[ht(s,/:(plac\w+)/,":"+Kl+"$1")]}),Xu(t,{props:[ht(s,/:(plac\w+)/,Cn+"input-$1")]})],o)}return""})}},HC=[UC],_m=function(t){var r=t.key;if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(x){var B=x.getAttribute("data-emotion");B.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||HC,s={},c,d=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var B=x.getAttribute("data-emotion").split(" "),I=1;I<B.length;I++)s[B[I]]=!0;d.push(x)});var h,p=[BC,PC];{var E,b=[kC,DC(function(x){E.insert(x)})],T=IC(p.concat(o,b)),y=function(B){return Mi(NC(B),T)};h=function(B,I,P,M){E=P,y(B?B+"{"+I.styles+"}":I.styles),M&&(v.inserted[I.name]=!0)}}var v={key:r,sheet:new pC({key:r,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:h};return v.sheet.hydrate(d),v},Rf={exports:{}},bt={};/** @license React v16.13.1
40
+ `+u.stack}}function mr(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Ry(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function rM(n){var a=Ry(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,m=u.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return f.call(this)},set:function(C){o=""+C,m.call(this,C)}}),Object.defineProperty(n,a,{enumerable:u.enumerable}),{getValue:function(){return o},setValue:function(C){o=""+C},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function lc(n){n._valueTracker||(n._valueTracker=rM(n))}function Ny(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var u=a.getValue(),o="";return n&&(o=Ry(n)?n.checked?"true":"false":n.value),n=o,n!==u?(a.setValue(n),!0):!1}function oc(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 aM=/[\n"\\]/g;function gr(n){return n.replace(aM,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function th(n,a,u,o,f,m,C,R){n.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?n.type=C:n.removeAttribute("type"),a!=null?C==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+mr(a)):n.value!==""+mr(a)&&(n.value=""+mr(a)):C!=="submit"&&C!=="reset"||n.removeAttribute("value"),a!=null?nh(n,C,mr(a)):u!=null?nh(n,C,mr(u)):o!=null&&n.removeAttribute("value"),f==null&&m!=null&&(n.defaultChecked=!!m),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?n.name=""+mr(R):n.removeAttribute("name")}function Oy(n,a,u,o,f,m,C,R){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(n.type=m),a!=null||u!=null){if(!(m!=="submit"&&m!=="reset"||a!=null))return;u=u!=null?""+mr(u):"",a=a!=null?""+mr(a):u,R||a===n.value||(n.value=a),n.defaultValue=a}o=o??f,o=typeof o!="function"&&typeof o!="symbol"&&!!o,n.checked=R?n.checked:!!o,n.defaultChecked=!!o,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(n.name=C)}function nh(n,a,u){a==="number"&&oc(n.ownerDocument)===n||n.defaultValue===""+u||(n.defaultValue=""+u)}function hu(n,a,u,o){if(n=n.options,a){a={};for(var f=0;f<u.length;f++)a["$"+u[f]]=!0;for(u=0;u<n.length;u++)f=a.hasOwnProperty("$"+n[u].value),n[u].selected!==f&&(n[u].selected=f),f&&o&&(n[u].defaultSelected=!0)}else{for(u=""+mr(u),a=null,f=0;f<n.length;f++){if(n[f].value===u){n[f].selected=!0,o&&(n[f].defaultSelected=!0);return}a!==null||n[f].disabled||(a=n[f])}a!==null&&(a.selected=!0)}}function ky(n,a,u){if(a!=null&&(a=""+mr(a),a!==n.value&&(n.value=a),u==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=u!=null?""+mr(u):""}function Iy(n,a,u,o){if(a==null){if(o!=null){if(u!=null)throw Error(i(92));if(ne(o)){if(1<o.length)throw Error(i(93));o=o[0]}u=o}u==null&&(u=""),a=u}u=mr(a),n.defaultValue=u,o=n.textContent,o===u&&o!==""&&o!==null&&(n.value=o)}function pu(n,a){if(a){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===3){u.nodeValue=a;return}}n.textContent=a}var iM=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 Dy(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||iM.has(a)?a==="float"?n.cssFloat=u:n[a]=(""+u).trim():n[a]=u+"px"}function wy(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&&Dy(n,f,o)}else for(var m in a)a.hasOwnProperty(m)&&Dy(n,m,a[m])}function rh(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var uM=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"]]),lM=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function sc(n){return lM.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var ah=null;function ih(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var mu=null,gu=null;function Ly(n){var a=su(n);if(a&&(n=a.stateNode)){var u=n[Ge]||null;e:switch(n=a.stateNode,a.type){case"input":if(th(n,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=n;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+gr(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var o=u[a];if(o!==n&&o.form===n.form){var f=o[Ge]||null;if(!f)throw Error(i(90));th(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&&Ny(o)}break e;case"textarea":ky(n,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&hu(n,!!u.multiple,a,!1)}}}var uh=!1;function My(n,a,u){if(uh)return n(a,u);uh=!0;try{var o=n(a);return o}finally{if(uh=!1,(mu!==null||gu!==null)&&(Xc(),mu&&(a=mu,n=gu,gu=mu=null,Ly(a),n)))for(a=0;a<n.length;a++)Ly(n[a])}}function to(n,a){var u=n.stateNode;if(u===null)return null;var o=u[Ge]||null;if(o===null)return null;u=o[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(n=n.type,o=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!o;break e;default:n=!1}if(n)return null;if(u&&typeof u!="function")throw Error(i(231,a,typeof u));return u}var aa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lh=!1;if(aa)try{var no={};Object.defineProperty(no,"passive",{get:function(){lh=!0}}),window.addEventListener("test",no,no),window.removeEventListener("test",no,no)}catch{lh=!1}var Ia=null,oh=null,cc=null;function By(){if(cc)return cc;var n,a=oh,u=a.length,o,f="value"in Ia?Ia.value:Ia.textContent,m=f.length;for(n=0;n<u&&a[n]===f[n];n++);var C=u-n;for(o=1;o<=C&&a[u-o]===f[m-o];o++);return cc=f.slice(n,1<o?1-o:void 0)}function fc(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function dc(){return!0}function Py(){return!1}function Yn(n){function a(u,o,f,m,C){this._reactName=u,this._targetInst=f,this.type=o,this.nativeEvent=m,this.target=C,this.currentTarget=null;for(var R in n)n.hasOwnProperty(R)&&(u=n[R],this[R]=u?u(m):m[R]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?dc:Py,this.isPropagationStopped=Py,this}return b(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=dc)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=dc)},persist:function(){},isPersistent:dc}),a}var bi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hc=Yn(bi),ro=b({},bi,{view:0,detail:0}),oM=Yn(ro),sh,ch,ao,pc=b({},ro,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dh,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==ao&&(ao&&n.type==="mousemove"?(sh=n.screenX-ao.screenX,ch=n.screenY-ao.screenY):ch=sh=0,ao=n),sh)},movementY:function(n){return"movementY"in n?n.movementY:ch}}),Uy=Yn(pc),sM=b({},pc,{dataTransfer:0}),cM=Yn(sM),fM=b({},ro,{relatedTarget:0}),fh=Yn(fM),dM=b({},bi,{animationName:0,elapsedTime:0,pseudoElement:0}),hM=Yn(dM),pM=b({},bi,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),mM=Yn(pM),gM=b({},bi,{data:0}),Hy=Yn(gM),bM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},EM={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"},yM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function TM(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=yM[n])?!!a[n]:!1}function dh(){return TM}var SM=b({},ro,{key:function(n){if(n.key){var a=bM[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=fc(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?EM[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dh,charCode:function(n){return n.type==="keypress"?fc(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?fc(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),CM=Yn(SM),AM=b({},pc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fy=Yn(AM),xM=b({},ro,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dh}),_M=Yn(xM),vM=b({},bi,{propertyName:0,elapsedTime:0,pseudoElement:0}),RM=Yn(vM),NM=b({},pc,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),OM=Yn(NM),kM=b({},bi,{newState:0,oldState:0}),IM=Yn(kM),DM=[9,13,27,32],hh=aa&&"CompositionEvent"in window,io=null;aa&&"documentMode"in document&&(io=document.documentMode);var wM=aa&&"TextEvent"in window&&!io,zy=aa&&(!hh||io&&8<io&&11>=io),Yy=" ",jy=!1;function qy(n,a){switch(n){case"keyup":return DM.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vy(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var bu=!1;function LM(n,a){switch(n){case"compositionend":return Vy(a);case"keypress":return a.which!==32?null:(jy=!0,Yy);case"textInput":return n=a.data,n===Yy&&jy?null:n;default:return null}}function MM(n,a){if(bu)return n==="compositionend"||!hh&&qy(n,a)?(n=By(),cc=oh=Ia=null,bu=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return zy&&a.locale!=="ko"?null:a.data;default:return null}}var BM={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 Gy(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!BM[n.type]:a==="textarea"}function $y(n,a,u,o){mu?gu?gu.push(o):gu=[o]:mu=o,a=ef(a,"onChange"),0<a.length&&(u=new hc("onChange","change",null,u,o),n.push({event:u,listeners:a}))}var uo=null,lo=null;function PM(n){RS(n,0)}function mc(n){var a=eo(n);if(Ny(a))return n}function Xy(n,a){if(n==="change")return a}var Qy=!1;if(aa){var ph;if(aa){var mh="oninput"in document;if(!mh){var Ky=document.createElement("div");Ky.setAttribute("oninput","return;"),mh=typeof Ky.oninput=="function"}ph=mh}else ph=!1;Qy=ph&&(!document.documentMode||9<document.documentMode)}function Wy(){uo&&(uo.detachEvent("onpropertychange",Zy),lo=uo=null)}function Zy(n){if(n.propertyName==="value"&&mc(lo)){var a=[];$y(a,lo,n,ih(n)),My(PM,a)}}function UM(n,a,u){n==="focusin"?(Wy(),uo=a,lo=u,uo.attachEvent("onpropertychange",Zy)):n==="focusout"&&Wy()}function HM(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return mc(lo)}function FM(n,a){if(n==="click")return mc(a)}function zM(n,a){if(n==="input"||n==="change")return mc(a)}function YM(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Jn=typeof Object.is=="function"?Object.is:YM;function oo(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(!Ne.call(a,f)||!Jn(n[f],a[f]))return!1}return!0}function Jy(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function eT(n,a){var u=Jy(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=Jy(u)}}function tT(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?tT(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function nT(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=oc(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=oc(n.document)}return a}function gh(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var jM=aa&&"documentMode"in document&&11>=document.documentMode,Eu=null,bh=null,so=null,Eh=!1;function rT(n,a,u){var o=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Eh||Eu==null||Eu!==oc(o)||(o=Eu,"selectionStart"in o&&gh(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}),so&&oo(so,o)||(so=o,o=ef(bh,"onSelect"),0<o.length&&(a=new hc("onSelect","select",null,a,u),n.push({event:a,listeners:o}),a.target=Eu)))}function Ei(n,a){var u={};return u[n.toLowerCase()]=a.toLowerCase(),u["Webkit"+n]="webkit"+a,u["Moz"+n]="moz"+a,u}var yu={animationend:Ei("Animation","AnimationEnd"),animationiteration:Ei("Animation","AnimationIteration"),animationstart:Ei("Animation","AnimationStart"),transitionrun:Ei("Transition","TransitionRun"),transitionstart:Ei("Transition","TransitionStart"),transitioncancel:Ei("Transition","TransitionCancel"),transitionend:Ei("Transition","TransitionEnd")},yh={},aT={};aa&&(aT=document.createElement("div").style,"AnimationEvent"in window||(delete yu.animationend.animation,delete yu.animationiteration.animation,delete yu.animationstart.animation),"TransitionEvent"in window||delete yu.transitionend.transition);function yi(n){if(yh[n])return yh[n];if(!yu[n])return n;var a=yu[n],u;for(u in a)if(a.hasOwnProperty(u)&&u in aT)return yh[n]=a[u];return n}var iT=yi("animationend"),uT=yi("animationiteration"),lT=yi("animationstart"),qM=yi("transitionrun"),VM=yi("transitionstart"),GM=yi("transitioncancel"),oT=yi("transitionend"),sT=new Map,Th="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Th.push("scrollEnd");function vr(n,a){sT.set(n,a),gi(a,[n])}var cT=new WeakMap;function br(n,a){if(typeof n=="object"&&n!==null){var u=cT.get(n);return u!==void 0?u:(a={value:n,source:a,stack:vy(a)},cT.set(n,a),a)}return{value:n,source:a,stack:vy(a)}}var Er=[],Tu=0,Sh=0;function gc(){for(var n=Tu,a=Sh=Tu=0;a<n;){var u=Er[a];Er[a++]=null;var o=Er[a];Er[a++]=null;var f=Er[a];Er[a++]=null;var m=Er[a];if(Er[a++]=null,o!==null&&f!==null){var C=o.pending;C===null?f.next=f:(f.next=C.next,C.next=f),o.pending=f}m!==0&&fT(u,f,m)}}function bc(n,a,u,o){Er[Tu++]=n,Er[Tu++]=a,Er[Tu++]=u,Er[Tu++]=o,Sh|=o,n.lanes|=o,n=n.alternate,n!==null&&(n.lanes|=o)}function Ch(n,a,u,o){return bc(n,a,u,o),Ec(n)}function Su(n,a){return bc(n,null,null,a),Ec(n)}function fT(n,a,u){n.lanes|=u;var o=n.alternate;o!==null&&(o.lanes|=u);for(var f=!1,m=n.return;m!==null;)m.childLanes|=u,o=m.alternate,o!==null&&(o.childLanes|=u),m.tag===22&&(n=m.stateNode,n===null||n._visibility&1||(f=!0)),n=m,m=m.return;return n.tag===3?(m=n.stateNode,f&&a!==null&&(f=31-Ae(u),n=m.hiddenUpdates,o=n[f],o===null?n[f]=[a]:o.push(a),a.lane=u|536870912),m):null}function Ec(n){if(50<Mo)throw Mo=0,Np=null,Error(i(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Cu={};function $M(n,a,u,o){this.tag=n,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function er(n,a,u,o){return new $M(n,a,u,o)}function Ah(n){return n=n.prototype,!(!n||!n.isReactComponent)}function ia(n,a){var u=n.alternate;return u===null?(u=er(n.tag,a,n.key,n.mode),u.elementType=n.elementType,u.type=n.type,u.stateNode=n.stateNode,u.alternate=n,n.alternate=u):(u.pendingProps=a,u.type=n.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=n.flags&65011712,u.childLanes=n.childLanes,u.lanes=n.lanes,u.child=n.child,u.memoizedProps=n.memoizedProps,u.memoizedState=n.memoizedState,u.updateQueue=n.updateQueue,a=n.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=n.sibling,u.index=n.index,u.ref=n.ref,u.refCleanup=n.refCleanup,u}function dT(n,a){n.flags&=65011714;var u=n.alternate;return u===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=u.childLanes,n.lanes=u.lanes,n.child=u.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=u.memoizedProps,n.memoizedState=u.memoizedState,n.updateQueue=u.updateQueue,n.type=u.type,a=u.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function yc(n,a,u,o,f,m){var C=0;if(o=n,typeof n=="function")Ah(n)&&(C=1);else if(typeof n=="string")C=Q7(n,u,be.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case j:return n=er(31,u,a,f),n.elementType=j,n.lanes=m,n;case v:return Ti(u.children,f,m,a);case x:C=8,f|=24;break;case B:return n=er(12,u,a,f|2),n.elementType=B,n.lanes=m,n;case D:return n=er(13,u,a,f),n.elementType=D,n.lanes=m,n;case N:return n=er(19,u,a,f),n.elementType=N,n.lanes=m,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case I:case M:C=10;break e;case P:C=9;break e;case w:C=11;break e;case z:C=14;break e;case V:C=16,o=null;break e}C=29,u=Error(i(130,n===null?"null":typeof n,"")),o=null}return a=er(C,u,a,f),a.elementType=n,a.type=o,a.lanes=m,a}function Ti(n,a,u,o){return n=er(7,n,o,a),n.lanes=u,n}function xh(n,a,u){return n=er(6,n,null,a),n.lanes=u,n}function _h(n,a,u){return a=er(4,n.children!==null?n.children:[],n.key,a),a.lanes=u,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var Au=[],xu=0,Tc=null,Sc=0,yr=[],Tr=0,Si=null,ua=1,la="";function Ci(n,a){Au[xu++]=Sc,Au[xu++]=Tc,Tc=n,Sc=a}function hT(n,a,u){yr[Tr++]=ua,yr[Tr++]=la,yr[Tr++]=Si,Si=n;var o=ua;n=la;var f=32-Ae(o)-1;o&=~(1<<f),u+=1;var m=32-Ae(a)+f;if(30<m){var C=f-f%5;m=(o&(1<<C)-1).toString(32),o>>=C,f-=C,ua=1<<32-Ae(a)+f|u<<f|o,la=m+n}else ua=1<<m|u<<f|o,la=n}function vh(n){n.return!==null&&(Ci(n,1),hT(n,1,0))}function Rh(n){for(;n===Tc;)Tc=Au[--xu],Au[xu]=null,Sc=Au[--xu],Au[xu]=null;for(;n===Si;)Si=yr[--Tr],yr[Tr]=null,la=yr[--Tr],yr[Tr]=null,ua=yr[--Tr],yr[Tr]=null}var Dn=null,Vt=null,bt=!1,Ai=null,qr=!1,Nh=Error(i(519));function xi(n){var a=Error(i(418,""));throw ho(br(a,n)),Nh}function pT(n){var a=n.stateNode,u=n.type,o=n.memoizedProps;switch(a[Ye]=n,a[Ge]=o,u){case"dialog":rt("cancel",a),rt("close",a);break;case"iframe":case"object":case"embed":rt("load",a);break;case"video":case"audio":for(u=0;u<Po.length;u++)rt(Po[u],a);break;case"source":rt("error",a);break;case"img":case"image":case"link":rt("error",a),rt("load",a);break;case"details":rt("toggle",a);break;case"input":rt("invalid",a),Oy(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),lc(a);break;case"select":rt("invalid",a);break;case"textarea":rt("invalid",a),Iy(a,o.value,o.defaultValue,o.children),lc(a)}u=o.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||o.suppressHydrationWarning===!0||IS(a.textContent,u)?(o.popover!=null&&(rt("beforetoggle",a),rt("toggle",a)),o.onScroll!=null&&rt("scroll",a),o.onScrollEnd!=null&&rt("scrollend",a),o.onClick!=null&&(a.onclick=tf),a=!0):a=!1,a||xi(n)}function mT(n){for(Dn=n.return;Dn;)switch(Dn.tag){case 5:case 13:qr=!1;return;case 27:case 3:qr=!0;return;default:Dn=Dn.return}}function co(n){if(n!==Dn)return!1;if(!bt)return mT(n),bt=!0,!1;var a=n.tag,u;if((u=a!==3&&a!==27)&&((u=a===5)&&(u=n.type,u=!(u!=="form"&&u!=="button")||qp(n.type,n.memoizedProps)),u=!u),u&&Vt&&xi(n),mT(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));e:{for(n=n.nextSibling,a=0;n;){if(n.nodeType===8)if(u=n.data,u==="/$"){if(a===0){Vt=Nr(n.nextSibling);break e}a--}else u!=="$"&&u!=="$!"&&u!=="$?"||a++;n=n.nextSibling}Vt=null}}else a===27?(a=Vt,$a(n.type)?(n=Xp,Xp=null,Vt=n):Vt=a):Vt=Dn?Nr(n.stateNode.nextSibling):null;return!0}function fo(){Vt=Dn=null,bt=!1}function gT(){var n=Ai;return n!==null&&(Vn===null?Vn=n:Vn.push.apply(Vn,n),Ai=null),n}function ho(n){Ai===null?Ai=[n]:Ai.push(n)}var Oh=K(null),_i=null,oa=null;function Da(n,a,u){O(Oh,a._currentValue),a._currentValue=u}function sa(n){n._currentValue=Oh.current,de(Oh)}function kh(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 Ih(n,a,u,o){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var m=f.dependencies;if(m!==null){var C=f.child;m=m.firstContext;e:for(;m!==null;){var R=m;m=f;for(var H=0;H<a.length;H++)if(R.context===a[H]){m.lanes|=u,R=m.alternate,R!==null&&(R.lanes|=u),kh(m.return,u,n),o||(C=null);break e}m=R.next}}else if(f.tag===18){if(C=f.return,C===null)throw Error(i(341));C.lanes|=u,m=C.alternate,m!==null&&(m.lanes|=u),kh(C,u,n),C=null}else C=f.child;if(C!==null)C.return=f;else for(C=f;C!==null;){if(C===n){C=null;break}if(f=C.sibling,f!==null){f.return=C.return,C=f;break}C=C.return}f=C}}function po(n,a,u,o){n=null;for(var f=a,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var C=f.alternate;if(C===null)throw Error(i(387));if(C=C.memoizedProps,C!==null){var R=f.type;Jn(f.pendingProps.value,C.value)||(n!==null?n.push(R):n=[R])}}else if(f===Xe.current){if(C=f.alternate,C===null)throw Error(i(387));C.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(jo):n=[jo])}f=f.return}n!==null&&Ih(a,n,u,o),a.flags|=262144}function Cc(n){for(n=n.firstContext;n!==null;){if(!Jn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function vi(n){_i=n,oa=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Nn(n){return bT(_i,n)}function Ac(n,a){return _i===null&&vi(n),bT(n,a)}function bT(n,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},oa===null){if(n===null)throw Error(i(308));oa=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else oa=oa.next=a;return u}var XM=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()})}},QM=e.unstable_scheduleCallback,KM=e.unstable_NormalPriority,ln={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dh(){return{controller:new XM,data:new Map,refCount:0}}function mo(n){n.refCount--,n.refCount===0&&QM(KM,function(){n.controller.abort()})}var go=null,wh=0,_u=0,vu=null;function WM(n,a){if(go===null){var u=go=[];wh=0,_u=Mp(),vu={status:"pending",value:void 0,then:function(o){u.push(o)}}}return wh++,a.then(ET,ET),a}function ET(){if(--wh===0&&go!==null){vu!==null&&(vu.status="fulfilled");var n=go;go=null,_u=0,vu=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function ZM(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 yT=F.S;F.S=function(n,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&WM(n,a),yT!==null&&yT(n,a)};var Ri=K(null);function Lh(){var n=Ri.current;return n!==null?n:Pt.pooledCache}function xc(n,a){a===null?O(Ri,Ri.current):O(Ri,a.pool)}function TT(){var n=Lh();return n===null?null:{parent:ln._currentValue,pool:n}}var bo=Error(i(460)),ST=Error(i(474)),_c=Error(i(542)),Mh={then:function(){}};function CT(n){return n=n.status,n==="fulfilled"||n==="rejected"}function vc(){}function AT(n,a,u){switch(u=n[u],u===void 0?n.push(a):u!==a&&(a.then(vc,vc),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,_T(n),n;default:if(typeof a.status=="string")a.then(vc,vc);else{if(n=Pt,n!==null&&100<n.shellSuspendCounter)throw Error(i(482));n=a,n.status="pending",n.then(function(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,_T(n),n}throw Eo=a,bo}}var Eo=null;function xT(){if(Eo===null)throw Error(i(459));var n=Eo;return Eo=null,n}function _T(n){if(n===bo||n===_c)throw Error(i(483))}var wa=!1;function Bh(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ph(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function La(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Ma(n,a,u){var o=n.updateQueue;if(o===null)return null;if(o=o.shared,(xt&2)!==0){var f=o.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),o.pending=a,a=Ec(n),fT(n,null,u),a}return bc(n,o,a,u),Ec(n)}function yo(n,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194048)!==0)){var o=a.lanes;o&=n.pendingLanes,u|=o,a.lanes=u,rc(n,u)}}function Uh(n,a){var u=n.updateQueue,o=n.alternate;if(o!==null&&(o=o.updateQueue,u===o)){var f=null,m=null;if(u=u.firstBaseUpdate,u!==null){do{var C={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};m===null?f=m=C:m=m.next=C,u=u.next}while(u!==null);m===null?f=m=a:m=m.next=a}else f=m=a;u={baseState:o.baseState,firstBaseUpdate:f,lastBaseUpdate:m,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 Hh=!1;function To(){if(Hh){var n=vu;if(n!==null)throw n}}function So(n,a,u,o){Hh=!1;var f=n.updateQueue;wa=!1;var m=f.firstBaseUpdate,C=f.lastBaseUpdate,R=f.shared.pending;if(R!==null){f.shared.pending=null;var H=R,W=H.next;H.next=null,C===null?m=W:C.next=W,C=H;var se=n.alternate;se!==null&&(se=se.updateQueue,R=se.lastBaseUpdate,R!==C&&(R===null?se.firstBaseUpdate=W:R.next=W,se.lastBaseUpdate=H))}if(m!==null){var fe=f.baseState;C=0,se=W=H=null,R=m;do{var ee=R.lane&-536870913,te=ee!==R.lane;if(te?(lt&ee)===ee:(o&ee)===ee){ee!==0&&ee===_u&&(Hh=!0),se!==null&&(se=se.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var je=n,He=R;ee=a;var Ot=u;switch(He.tag){case 1:if(je=He.payload,typeof je=="function"){fe=je.call(Ot,fe,ee);break e}fe=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=He.payload,ee=typeof je=="function"?je.call(Ot,fe,ee):je,ee==null)break e;fe=b({},fe,ee);break e;case 2:wa=!0}}ee=R.callback,ee!==null&&(n.flags|=64,te&&(n.flags|=8192),te=f.callbacks,te===null?f.callbacks=[ee]:te.push(ee))}else te={lane:ee,tag:R.tag,payload:R.payload,callback:R.callback,next:null},se===null?(W=se=te,H=fe):se=se.next=te,C|=ee;if(R=R.next,R===null){if(R=f.shared.pending,R===null)break;te=R,R=te.next,te.next=null,f.lastBaseUpdate=te,f.shared.pending=null}}while(!0);se===null&&(H=fe),f.baseState=H,f.firstBaseUpdate=W,f.lastBaseUpdate=se,m===null&&(f.shared.lanes=0),ja|=C,n.lanes=C,n.memoizedState=fe}}function vT(n,a){if(typeof n!="function")throw Error(i(191,n));n.call(a)}function RT(n,a){var u=n.callbacks;if(u!==null)for(n.callbacks=null,n=0;n<u.length;n++)vT(u[n],a)}var Ru=K(null),Rc=K(0);function NT(n,a){n=ga,O(Rc,n),O(Ru,a),ga=n|a.baseLanes}function Fh(){O(Rc,ga),O(Ru,Ru.current)}function zh(){ga=Rc.current,de(Ru),de(Rc)}var Ba=0,Ze=null,Rt=null,rn=null,Nc=!1,Nu=!1,Ni=!1,Oc=0,Co=0,Ou=null,JM=0;function Qt(){throw Error(i(321))}function Yh(n,a){if(a===null)return!1;for(var u=0;u<a.length&&u<n.length;u++)if(!Jn(n[u],a[u]))return!1;return!0}function jh(n,a,u,o,f,m){return Ba=m,Ze=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,F.H=n===null||n.memoizedState===null?f3:d3,Ni=!1,m=u(o,f),Ni=!1,Nu&&(m=kT(a,u,o,f)),OT(n),m}function OT(n){F.H=Mc;var a=Rt!==null&&Rt.next!==null;if(Ba=0,rn=Rt=Ze=null,Nc=!1,Co=0,Ou=null,a)throw Error(i(300));n===null||hn||(n=n.dependencies,n!==null&&Cc(n)&&(hn=!0))}function kT(n,a,u,o){Ze=n;var f=0;do{if(Nu&&(Ou=null),Co=0,Nu=!1,25<=f)throw Error(i(301));if(f+=1,rn=Rt=null,n.updateQueue!=null){var m=n.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}F.H=u7,m=a(u,o)}while(Nu);return m}function e7(){var n=F.H,a=n.useState()[0];return a=typeof a.then=="function"?Ao(a):a,n=n.useState()[0],(Rt!==null?Rt.memoizedState:null)!==n&&(Ze.flags|=1024),a}function qh(){var n=Oc!==0;return Oc=0,n}function Vh(n,a,u){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~u}function Gh(n){if(Nc){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Nc=!1}Ba=0,rn=Rt=Ze=null,Nu=!1,Co=Oc=0,Ou=null}function jn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rn===null?Ze.memoizedState=rn=n:rn=rn.next=n,rn}function an(){if(Rt===null){var n=Ze.alternate;n=n!==null?n.memoizedState:null}else n=Rt.next;var a=rn===null?Ze.memoizedState:rn.next;if(a!==null)rn=a,Rt=n;else{if(n===null)throw Ze.alternate===null?Error(i(467)):Error(i(310));Rt=n,n={memoizedState:Rt.memoizedState,baseState:Rt.baseState,baseQueue:Rt.baseQueue,queue:Rt.queue,next:null},rn===null?Ze.memoizedState=rn=n:rn=rn.next=n}return rn}function $h(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ao(n){var a=Co;return Co+=1,Ou===null&&(Ou=[]),n=AT(Ou,n,a),a=Ze,(rn===null?a.memoizedState:rn.next)===null&&(a=a.alternate,F.H=a===null||a.memoizedState===null?f3:d3),n}function kc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Ao(n);if(n.$$typeof===M)return Nn(n)}throw Error(i(438,String(n)))}function Xh(n){var a=null,u=Ze.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var o=Ze.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=$h(),Ze.updateQueue=u),u.memoCache=a,u=a.data[a.index],u===void 0)for(u=a.data[a.index]=Array(n),o=0;o<n;o++)u[o]=_;return a.index++,u}function ca(n,a){return typeof a=="function"?a(n):a}function Ic(n){var a=an();return Qh(a,Rt,n)}function Qh(n,a,u){var o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=u;var f=n.baseQueue,m=o.pending;if(m!==null){if(f!==null){var C=f.next;f.next=m.next,m.next=C}a.baseQueue=f=m,o.pending=null}if(m=n.baseState,f===null)n.memoizedState=m;else{a=f.next;var R=C=null,H=null,W=a,se=!1;do{var fe=W.lane&-536870913;if(fe!==W.lane?(lt&fe)===fe:(Ba&fe)===fe){var ee=W.revertLane;if(ee===0)H!==null&&(H=H.next={lane:0,revertLane:0,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),fe===_u&&(se=!0);else if((Ba&ee)===ee){W=W.next,ee===_u&&(se=!0);continue}else fe={lane:0,revertLane:W.revertLane,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},H===null?(R=H=fe,C=m):H=H.next=fe,Ze.lanes|=ee,ja|=ee;fe=W.action,Ni&&u(m,fe),m=W.hasEagerState?W.eagerState:u(m,fe)}else ee={lane:fe,revertLane:W.revertLane,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},H===null?(R=H=ee,C=m):H=H.next=ee,Ze.lanes|=fe,ja|=fe;W=W.next}while(W!==null&&W!==a);if(H===null?C=m:H.next=R,!Jn(m,n.memoizedState)&&(hn=!0,se&&(u=vu,u!==null)))throw u;n.memoizedState=m,n.baseState=C,n.baseQueue=H,o.lastRenderedState=m}return f===null&&(o.lanes=0),[n.memoizedState,o.dispatch]}function Kh(n){var a=an(),u=a.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=n;var o=u.dispatch,f=u.pending,m=a.memoizedState;if(f!==null){u.pending=null;var C=f=f.next;do m=n(m,C.action),C=C.next;while(C!==f);Jn(m,a.memoizedState)||(hn=!0),a.memoizedState=m,a.baseQueue===null&&(a.baseState=m),u.lastRenderedState=m}return[m,o]}function IT(n,a,u){var o=Ze,f=an(),m=bt;if(m){if(u===void 0)throw Error(i(407));u=u()}else u=a();var C=!Jn((Rt||f).memoizedState,u);C&&(f.memoizedState=u,hn=!0),f=f.queue;var R=LT.bind(null,o,f,n);if(xo(2048,8,R,[n]),f.getSnapshot!==a||C||rn!==null&&rn.memoizedState.tag&1){if(o.flags|=2048,ku(9,Dc(),wT.bind(null,o,f,u,a),null),Pt===null)throw Error(i(349));m||(Ba&124)!==0||DT(o,a,u)}return u}function DT(n,a,u){n.flags|=16384,n={getSnapshot:a,value:u},a=Ze.updateQueue,a===null?(a=$h(),Ze.updateQueue=a,a.stores=[n]):(u=a.stores,u===null?a.stores=[n]:u.push(n))}function wT(n,a,u,o){a.value=u,a.getSnapshot=o,MT(a)&&BT(n)}function LT(n,a,u){return u(function(){MT(a)&&BT(n)})}function MT(n){var a=n.getSnapshot;n=n.value;try{var u=a();return!Jn(n,u)}catch{return!0}}function BT(n){var a=Su(n,2);a!==null&&ir(a,n,2)}function Wh(n){var a=jn();if(typeof n=="function"){var u=n;if(n=u(),Ni){Se(!0);try{u()}finally{Se(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:n},a}function PT(n,a,u,o){return n.baseState=u,Qh(n,Rt,typeof o=="function"?o:ca)}function t7(n,a,u,o,f){if(Lc(n))throw Error(i(485));if(n=a.action,n!==null){var m={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){m.listeners.push(C)}};F.T!==null?u(!0):m.isTransition=!1,o(m),u=a.pending,u===null?(m.next=a.pending=m,UT(a,m)):(m.next=u.next,a.pending=u.next=m)}}function UT(n,a){var u=a.action,o=a.payload,f=n.state;if(a.isTransition){var m=F.T,C={};F.T=C;try{var R=u(f,o),H=F.S;H!==null&&H(C,R),HT(n,a,R)}catch(W){Zh(n,a,W)}finally{F.T=m}}else try{m=u(f,o),HT(n,a,m)}catch(W){Zh(n,a,W)}}function HT(n,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(o){FT(n,a,o)},function(o){return Zh(n,a,o)}):FT(n,a,u)}function FT(n,a,u){a.status="fulfilled",a.value=u,zT(a),n.state=u,a=n.pending,a!==null&&(u=a.next,u===a?n.pending=null:(u=u.next,a.next=u,UT(n,u)))}function Zh(n,a,u){var o=n.pending;if(n.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=u,zT(a),a=a.next;while(a!==o)}n.action=null}function zT(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function YT(n,a){return a}function jT(n,a){if(bt){var u=Pt.formState;if(u!==null){e:{var o=Ze;if(bt){if(Vt){t:{for(var f=Vt,m=qr;f.nodeType!==8;){if(!m){f=null;break t}if(f=Nr(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){Vt=Nr(f.nextSibling),o=f.data==="F!";break e}}xi(o)}o=!1}o&&(a=u[0])}}return u=jn(),u.memoizedState=u.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:YT,lastRenderedState:a},u.queue=o,u=o3.bind(null,Ze,o),o.dispatch=u,o=Wh(!1),m=rp.bind(null,Ze,!1,o.queue),o=jn(),f={state:a,dispatch:null,action:n,pending:null},o.queue=f,u=t7.bind(null,Ze,f,m,u),f.dispatch=u,o.memoizedState=n,[a,u,!1]}function qT(n){var a=an();return VT(a,Rt,n)}function VT(n,a,u){if(a=Qh(n,a,YT)[0],n=Ic(ca)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var o=Ao(a)}catch(C){throw C===bo?_c:C}else o=a;a=an();var f=a.queue,m=f.dispatch;return u!==a.memoizedState&&(Ze.flags|=2048,ku(9,Dc(),n7.bind(null,f,u),null)),[o,m,n]}function n7(n,a){n.action=a}function GT(n){var a=an(),u=Rt;if(u!==null)return VT(a,u,n);an(),a=a.memoizedState,u=an();var o=u.queue.dispatch;return u.memoizedState=n,[a,o,!1]}function ku(n,a,u,o){return n={tag:n,create:u,deps:o,inst:a,next:null},a=Ze.updateQueue,a===null&&(a=$h(),Ze.updateQueue=a),u=a.lastEffect,u===null?a.lastEffect=n.next=n:(o=u.next,u.next=n,n.next=o,a.lastEffect=n),n}function Dc(){return{destroy:void 0,resource:void 0}}function $T(){return an().memoizedState}function wc(n,a,u,o){var f=jn();o=o===void 0?null:o,Ze.flags|=n,f.memoizedState=ku(1|a,Dc(),u,o)}function xo(n,a,u,o){var f=an();o=o===void 0?null:o;var m=f.memoizedState.inst;Rt!==null&&o!==null&&Yh(o,Rt.memoizedState.deps)?f.memoizedState=ku(a,m,u,o):(Ze.flags|=n,f.memoizedState=ku(1|a,m,u,o))}function XT(n,a){wc(8390656,8,n,a)}function QT(n,a){xo(2048,8,n,a)}function KT(n,a){return xo(4,2,n,a)}function WT(n,a){return xo(4,4,n,a)}function ZT(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,xo(4,4,ZT.bind(null,a,n),u)}function Jh(){}function e3(n,a){var u=an();a=a===void 0?null:a;var o=u.memoizedState;return a!==null&&Yh(a,o[1])?o[0]:(u.memoizedState=[n,a],n)}function t3(n,a){var u=an();a=a===void 0?null:a;var o=u.memoizedState;if(a!==null&&Yh(a,o[1]))return o[0];if(o=n(),Ni){Se(!0);try{n()}finally{Se(!1)}}return u.memoizedState=[o,a],o}function ep(n,a,u){return u===void 0||(Ba&1073741824)!==0?n.memoizedState=a:(n.memoizedState=u,n=aS(),Ze.lanes|=n,ja|=n,u)}function n3(n,a,u,o){return Jn(u,a)?u:Ru.current!==null?(n=ep(n,u,o),Jn(n,a)||(hn=!0),n):(Ba&42)===0?(hn=!0,n.memoizedState=u):(n=aS(),Ze.lanes|=n,ja|=n,a)}function r3(n,a,u,o,f){var m=ae.p;ae.p=m!==0&&8>m?m:8;var C=F.T,R={};F.T=R,rp(n,!1,a,u);try{var H=f(),W=F.S;if(W!==null&&W(R,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var se=ZM(H,o);_o(n,a,se,ar(n))}else _o(n,a,o,ar(n))}catch(fe){_o(n,a,{then:function(){},status:"rejected",reason:fe},ar())}finally{ae.p=m,F.T=C}}function r7(){}function tp(n,a,u,o){if(n.tag!==5)throw Error(i(476));var f=a3(n).queue;r3(n,f,a,ie,u===null?r7:function(){return i3(n),u(o)})}function a3(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:ie},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:u},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function i3(n){var a=a3(n).next.queue;_o(n,a,{},ar())}function np(){return Nn(jo)}function u3(){return an().memoizedState}function l3(){return an().memoizedState}function a7(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var u=ar();n=La(u);var o=Ma(a,n,u);o!==null&&(ir(o,a,u),yo(o,a,u)),a={cache:Dh()},n.payload=a;return}a=a.return}}function i7(n,a,u){var o=ar();u={lane:o,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},Lc(n)?s3(a,u):(u=Ch(n,a,u,o),u!==null&&(ir(u,n,o),c3(u,a,o)))}function o3(n,a,u){var o=ar();_o(n,a,u,o)}function _o(n,a,u,o){var f={lane:o,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(Lc(n))s3(a,f);else{var m=n.alternate;if(n.lanes===0&&(m===null||m.lanes===0)&&(m=a.lastRenderedReducer,m!==null))try{var C=a.lastRenderedState,R=m(C,u);if(f.hasEagerState=!0,f.eagerState=R,Jn(R,C))return bc(n,a,f,0),Pt===null&&gc(),!1}catch{}finally{}if(u=Ch(n,a,f,o),u!==null)return ir(u,n,o),c3(u,a,o),!0}return!1}function rp(n,a,u,o){if(o={lane:2,revertLane:Mp(),action:o,hasEagerState:!1,eagerState:null,next:null},Lc(n)){if(a)throw Error(i(479))}else a=Ch(n,u,o,2),a!==null&&ir(a,n,2)}function Lc(n){var a=n.alternate;return n===Ze||a!==null&&a===Ze}function s3(n,a){Nu=Nc=!0;var u=n.pending;u===null?a.next=a:(a.next=u.next,u.next=a),n.pending=a}function c3(n,a,u){if((u&4194048)!==0){var o=a.lanes;o&=n.pendingLanes,u|=o,a.lanes=u,rc(n,u)}}var Mc={readContext:Nn,use:kc,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useLayoutEffect:Qt,useInsertionEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useSyncExternalStore:Qt,useId:Qt,useHostTransitionStatus:Qt,useFormState:Qt,useActionState:Qt,useOptimistic:Qt,useMemoCache:Qt,useCacheRefresh:Qt},f3={readContext:Nn,use:kc,useCallback:function(n,a){return jn().memoizedState=[n,a===void 0?null:a],n},useContext:Nn,useEffect:XT,useImperativeHandle:function(n,a,u){u=u!=null?u.concat([n]):null,wc(4194308,4,ZT.bind(null,a,n),u)},useLayoutEffect:function(n,a){return wc(4194308,4,n,a)},useInsertionEffect:function(n,a){wc(4,2,n,a)},useMemo:function(n,a){var u=jn();a=a===void 0?null:a;var o=n();if(Ni){Se(!0);try{n()}finally{Se(!1)}}return u.memoizedState=[o,a],o},useReducer:function(n,a,u){var o=jn();if(u!==void 0){var f=u(a);if(Ni){Se(!0);try{u(a)}finally{Se(!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=i7.bind(null,Ze,n),[o.memoizedState,n]},useRef:function(n){var a=jn();return n={current:n},a.memoizedState=n},useState:function(n){n=Wh(n);var a=n.queue,u=o3.bind(null,Ze,a);return a.dispatch=u,[n.memoizedState,u]},useDebugValue:Jh,useDeferredValue:function(n,a){var u=jn();return ep(u,n,a)},useTransition:function(){var n=Wh(!1);return n=r3.bind(null,Ze,n.queue,!0,!1),jn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,u){var o=Ze,f=jn();if(bt){if(u===void 0)throw Error(i(407));u=u()}else{if(u=a(),Pt===null)throw Error(i(349));(lt&124)!==0||DT(o,a,u)}f.memoizedState=u;var m={value:u,getSnapshot:a};return f.queue=m,XT(LT.bind(null,o,m,n),[n]),o.flags|=2048,ku(9,Dc(),wT.bind(null,o,m,u,a),null),u},useId:function(){var n=jn(),a=Pt.identifierPrefix;if(bt){var u=la,o=ua;u=(o&~(1<<32-Ae(o)-1)).toString(32)+u,a="«"+a+"R"+u,u=Oc++,0<u&&(a+="H"+u.toString(32)),a+="»"}else u=JM++,a="«"+a+"r"+u.toString(32)+"»";return n.memoizedState=a},useHostTransitionStatus:np,useFormState:jT,useActionState:jT,useOptimistic:function(n){var a=jn();a.memoizedState=a.baseState=n;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=rp.bind(null,Ze,!0,u),u.dispatch=a,[n,a]},useMemoCache:Xh,useCacheRefresh:function(){return jn().memoizedState=a7.bind(null,Ze)}},d3={readContext:Nn,use:kc,useCallback:e3,useContext:Nn,useEffect:QT,useImperativeHandle:JT,useInsertionEffect:KT,useLayoutEffect:WT,useMemo:t3,useReducer:Ic,useRef:$T,useState:function(){return Ic(ca)},useDebugValue:Jh,useDeferredValue:function(n,a){var u=an();return n3(u,Rt.memoizedState,n,a)},useTransition:function(){var n=Ic(ca)[0],a=an().memoizedState;return[typeof n=="boolean"?n:Ao(n),a]},useSyncExternalStore:IT,useId:u3,useHostTransitionStatus:np,useFormState:qT,useActionState:qT,useOptimistic:function(n,a){var u=an();return PT(u,Rt,n,a)},useMemoCache:Xh,useCacheRefresh:l3},u7={readContext:Nn,use:kc,useCallback:e3,useContext:Nn,useEffect:QT,useImperativeHandle:JT,useInsertionEffect:KT,useLayoutEffect:WT,useMemo:t3,useReducer:Kh,useRef:$T,useState:function(){return Kh(ca)},useDebugValue:Jh,useDeferredValue:function(n,a){var u=an();return Rt===null?ep(u,n,a):n3(u,Rt.memoizedState,n,a)},useTransition:function(){var n=Kh(ca)[0],a=an().memoizedState;return[typeof n=="boolean"?n:Ao(n),a]},useSyncExternalStore:IT,useId:u3,useHostTransitionStatus:np,useFormState:GT,useActionState:GT,useOptimistic:function(n,a){var u=an();return Rt!==null?PT(u,Rt,n,a):(u.baseState=n,[n,u.queue.dispatch])},useMemoCache:Xh,useCacheRefresh:l3},Iu=null,vo=0;function Bc(n){var a=vo;return vo+=1,Iu===null&&(Iu=[]),AT(Iu,n,a)}function Ro(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Pc(n,a){throw a.$$typeof===E?Error(i(525)):(n=Object.prototype.toString.call(a),Error(i(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function h3(n){var a=n._init;return a(n._payload)}function p3(n){function a(G,Y){if(n){var X=G.deletions;X===null?(G.deletions=[Y],G.flags|=16):X.push(Y)}}function u(G,Y){if(!n)return null;for(;Y!==null;)a(G,Y),Y=Y.sibling;return null}function o(G){for(var Y=new Map;G!==null;)G.key!==null?Y.set(G.key,G):Y.set(G.index,G),G=G.sibling;return Y}function f(G,Y){return G=ia(G,Y),G.index=0,G.sibling=null,G}function m(G,Y,X){return G.index=X,n?(X=G.alternate,X!==null?(X=X.index,X<Y?(G.flags|=67108866,Y):X):(G.flags|=67108866,Y)):(G.flags|=1048576,Y)}function C(G){return n&&G.alternate===null&&(G.flags|=67108866),G}function R(G,Y,X,ce){return Y===null||Y.tag!==6?(Y=xh(X,G.mode,ce),Y.return=G,Y):(Y=f(Y,X),Y.return=G,Y)}function H(G,Y,X,ce){var ve=X.type;return ve===v?se(G,Y,X.props.children,ce,X.key):Y!==null&&(Y.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===V&&h3(ve)===Y.type)?(Y=f(Y,X.props),Ro(Y,X),Y.return=G,Y):(Y=yc(X.type,X.key,X.props,null,G.mode,ce),Ro(Y,X),Y.return=G,Y)}function W(G,Y,X,ce){return Y===null||Y.tag!==4||Y.stateNode.containerInfo!==X.containerInfo||Y.stateNode.implementation!==X.implementation?(Y=_h(X,G.mode,ce),Y.return=G,Y):(Y=f(Y,X.children||[]),Y.return=G,Y)}function se(G,Y,X,ce,ve){return Y===null||Y.tag!==7?(Y=Ti(X,G.mode,ce,ve),Y.return=G,Y):(Y=f(Y,X),Y.return=G,Y)}function fe(G,Y,X){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Y=xh(""+Y,G.mode,X),Y.return=G,Y;if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case T:return X=yc(Y.type,Y.key,Y.props,null,G.mode,X),Ro(X,Y),X.return=G,X;case y:return Y=_h(Y,G.mode,X),Y.return=G,Y;case V:var ce=Y._init;return Y=ce(Y._payload),fe(G,Y,X)}if(ne(Y)||$(Y))return Y=Ti(Y,G.mode,X,null),Y.return=G,Y;if(typeof Y.then=="function")return fe(G,Bc(Y),X);if(Y.$$typeof===M)return fe(G,Ac(G,Y),X);Pc(G,Y)}return null}function ee(G,Y,X,ce){var ve=Y!==null?Y.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return ve!==null?null:R(G,Y,""+X,ce);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case T:return X.key===ve?H(G,Y,X,ce):null;case y:return X.key===ve?W(G,Y,X,ce):null;case V:return ve=X._init,X=ve(X._payload),ee(G,Y,X,ce)}if(ne(X)||$(X))return ve!==null?null:se(G,Y,X,ce,null);if(typeof X.then=="function")return ee(G,Y,Bc(X),ce);if(X.$$typeof===M)return ee(G,Y,Ac(G,X),ce);Pc(G,X)}return null}function te(G,Y,X,ce,ve){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return G=G.get(X)||null,R(Y,G,""+ce,ve);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case T:return G=G.get(ce.key===null?X:ce.key)||null,H(Y,G,ce,ve);case y:return G=G.get(ce.key===null?X:ce.key)||null,W(Y,G,ce,ve);case V:var et=ce._init;return ce=et(ce._payload),te(G,Y,X,ce,ve)}if(ne(ce)||$(ce))return G=G.get(X)||null,se(Y,G,ce,ve,null);if(typeof ce.then=="function")return te(G,Y,X,Bc(ce),ve);if(ce.$$typeof===M)return te(G,Y,X,Ac(Y,ce),ve);Pc(Y,ce)}return null}function je(G,Y,X,ce){for(var ve=null,et=null,De=Y,ze=Y=0,mn=null;De!==null&&ze<X.length;ze++){De.index>ze?(mn=De,De=null):mn=De.sibling;var ft=ee(G,De,X[ze],ce);if(ft===null){De===null&&(De=mn);break}n&&De&&ft.alternate===null&&a(G,De),Y=m(ft,Y,ze),et===null?ve=ft:et.sibling=ft,et=ft,De=mn}if(ze===X.length)return u(G,De),bt&&Ci(G,ze),ve;if(De===null){for(;ze<X.length;ze++)De=fe(G,X[ze],ce),De!==null&&(Y=m(De,Y,ze),et===null?ve=De:et.sibling=De,et=De);return bt&&Ci(G,ze),ve}for(De=o(De);ze<X.length;ze++)mn=te(De,G,ze,X[ze],ce),mn!==null&&(n&&mn.alternate!==null&&De.delete(mn.key===null?ze:mn.key),Y=m(mn,Y,ze),et===null?ve=mn:et.sibling=mn,et=mn);return n&&De.forEach(function(Za){return a(G,Za)}),bt&&Ci(G,ze),ve}function He(G,Y,X,ce){if(X==null)throw Error(i(151));for(var ve=null,et=null,De=Y,ze=Y=0,mn=null,ft=X.next();De!==null&&!ft.done;ze++,ft=X.next()){De.index>ze?(mn=De,De=null):mn=De.sibling;var Za=ee(G,De,ft.value,ce);if(Za===null){De===null&&(De=mn);break}n&&De&&Za.alternate===null&&a(G,De),Y=m(Za,Y,ze),et===null?ve=Za:et.sibling=Za,et=Za,De=mn}if(ft.done)return u(G,De),bt&&Ci(G,ze),ve;if(De===null){for(;!ft.done;ze++,ft=X.next())ft=fe(G,ft.value,ce),ft!==null&&(Y=m(ft,Y,ze),et===null?ve=ft:et.sibling=ft,et=ft);return bt&&Ci(G,ze),ve}for(De=o(De);!ft.done;ze++,ft=X.next())ft=te(De,G,ze,ft.value,ce),ft!==null&&(n&&ft.alternate!==null&&De.delete(ft.key===null?ze:ft.key),Y=m(ft,Y,ze),et===null?ve=ft:et.sibling=ft,et=ft);return n&&De.forEach(function(lB){return a(G,lB)}),bt&&Ci(G,ze),ve}function Ot(G,Y,X,ce){if(typeof X=="object"&&X!==null&&X.type===v&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case T:e:{for(var ve=X.key;Y!==null;){if(Y.key===ve){if(ve=X.type,ve===v){if(Y.tag===7){u(G,Y.sibling),ce=f(Y,X.props.children),ce.return=G,G=ce;break e}}else if(Y.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===V&&h3(ve)===Y.type){u(G,Y.sibling),ce=f(Y,X.props),Ro(ce,X),ce.return=G,G=ce;break e}u(G,Y);break}else a(G,Y);Y=Y.sibling}X.type===v?(ce=Ti(X.props.children,G.mode,ce,X.key),ce.return=G,G=ce):(ce=yc(X.type,X.key,X.props,null,G.mode,ce),Ro(ce,X),ce.return=G,G=ce)}return C(G);case y:e:{for(ve=X.key;Y!==null;){if(Y.key===ve)if(Y.tag===4&&Y.stateNode.containerInfo===X.containerInfo&&Y.stateNode.implementation===X.implementation){u(G,Y.sibling),ce=f(Y,X.children||[]),ce.return=G,G=ce;break e}else{u(G,Y);break}else a(G,Y);Y=Y.sibling}ce=_h(X,G.mode,ce),ce.return=G,G=ce}return C(G);case V:return ve=X._init,X=ve(X._payload),Ot(G,Y,X,ce)}if(ne(X))return je(G,Y,X,ce);if($(X)){if(ve=$(X),typeof ve!="function")throw Error(i(150));return X=ve.call(X),He(G,Y,X,ce)}if(typeof X.then=="function")return Ot(G,Y,Bc(X),ce);if(X.$$typeof===M)return Ot(G,Y,Ac(G,X),ce);Pc(G,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,Y!==null&&Y.tag===6?(u(G,Y.sibling),ce=f(Y,X),ce.return=G,G=ce):(u(G,Y),ce=xh(X,G.mode,ce),ce.return=G,G=ce),C(G)):u(G,Y)}return function(G,Y,X,ce){try{vo=0;var ve=Ot(G,Y,X,ce);return Iu=null,ve}catch(De){if(De===bo||De===_c)throw De;var et=er(29,De,null,G.mode);return et.lanes=ce,et.return=G,et}finally{}}}var Du=p3(!0),m3=p3(!1),Sr=K(null),Vr=null;function Pa(n){var a=n.alternate;O(on,on.current&1),O(Sr,n),Vr===null&&(a===null||Ru.current!==null||a.memoizedState!==null)&&(Vr=n)}function g3(n){if(n.tag===22){if(O(on,on.current),O(Sr,n),Vr===null){var a=n.alternate;a!==null&&a.memoizedState!==null&&(Vr=n)}}else Ua()}function Ua(){O(on,on.current),O(Sr,Sr.current)}function fa(n){de(Sr),Vr===n&&(Vr=null),de(on)}var on=K(0);function Uc(n){for(var a=n;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||$p(u)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function ap(n,a,u,o){a=n.memoizedState,u=u(o,a),u=u==null?a:b({},a,u),n.memoizedState=u,n.lanes===0&&(n.updateQueue.baseState=u)}var ip={enqueueSetState:function(n,a,u){n=n._reactInternals;var o=ar(),f=La(o);f.payload=a,u!=null&&(f.callback=u),a=Ma(n,f,o),a!==null&&(ir(a,n,o),yo(a,n,o))},enqueueReplaceState:function(n,a,u){n=n._reactInternals;var o=ar(),f=La(o);f.tag=1,f.payload=a,u!=null&&(f.callback=u),a=Ma(n,f,o),a!==null&&(ir(a,n,o),yo(a,n,o))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var u=ar(),o=La(u);o.tag=2,a!=null&&(o.callback=a),a=Ma(n,o,u),a!==null&&(ir(a,n,u),yo(a,n,u))}};function b3(n,a,u,o,f,m,C){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(o,m,C):a.prototype&&a.prototype.isPureReactComponent?!oo(u,o)||!oo(f,m):!0}function E3(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&&ip.enqueueReplaceState(a,a.state,null)}function Oi(n,a){var u=a;if("ref"in a){u={};for(var o in a)o!=="ref"&&(u[o]=a[o])}if(n=n.defaultProps){u===a&&(u=b({},u));for(var f in n)u[f]===void 0&&(u[f]=n[f])}return u}var Hc=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function y3(n){Hc(n)}function T3(n){console.error(n)}function S3(n){Hc(n)}function Fc(n,a){try{var u=n.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function C3(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 up(n,a,u){return u=La(u),u.tag=3,u.payload={element:null},u.callback=function(){Fc(n,a)},u}function A3(n){return n=La(n),n.tag=3,n}function x3(n,a,u,o){var f=u.type.getDerivedStateFromError;if(typeof f=="function"){var m=o.value;n.payload=function(){return f(m)},n.callback=function(){C3(a,u,o)}}var C=u.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(n.callback=function(){C3(a,u,o),typeof f!="function"&&(qa===null?qa=new Set([this]):qa.add(this));var R=o.stack;this.componentDidCatch(o.value,{componentStack:R!==null?R:""})})}function l7(n,a,u,o,f){if(u.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=u.alternate,a!==null&&po(a,u,f,!0),u=Sr.current,u!==null){switch(u.tag){case 13:return Vr===null?kp():u.alternate===null&&Gt===0&&(Gt=3),u.flags&=-257,u.flags|=65536,u.lanes=f,o===Mh?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([o]):a.add(o),Dp(n,o,f)),!1;case 22:return u.flags|=65536,o===Mh?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)),Dp(n,o,f)),!1}throw Error(i(435,u.tag))}return Dp(n,o,f),kp(),!1}if(bt)return a=Sr.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,o!==Nh&&(n=Error(i(422),{cause:o}),ho(br(n,u)))):(o!==Nh&&(a=Error(i(423),{cause:o}),ho(br(a,u))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,o=br(o,u),f=up(n.stateNode,o,f),Uh(n,f),Gt!==4&&(Gt=2)),!1;var m=Error(i(520),{cause:o});if(m=br(m,u),Lo===null?Lo=[m]:Lo.push(m),Gt!==4&&(Gt=2),a===null)return!0;o=br(o,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,n=f&-f,u.lanes|=n,n=up(u.stateNode,o,n),Uh(u,n),!1;case 1:if(a=u.type,m=u.stateNode,(u.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(qa===null||!qa.has(m))))return u.flags|=65536,f&=-f,u.lanes|=f,f=A3(f),x3(f,n,u,o),Uh(u,f),!1}u=u.return}while(u!==null);return!1}var _3=Error(i(461)),hn=!1;function En(n,a,u,o){a.child=n===null?m3(a,null,u,o):Du(a,n.child,u,o)}function v3(n,a,u,o,f){u=u.render;var m=a.ref;if("ref"in o){var C={};for(var R in o)R!=="ref"&&(C[R]=o[R])}else C=o;return vi(a),o=jh(n,a,u,C,m,f),R=qh(),n!==null&&!hn?(Vh(n,a,f),da(n,a,f)):(bt&&R&&vh(a),a.flags|=1,En(n,a,o,f),a.child)}function R3(n,a,u,o,f){if(n===null){var m=u.type;return typeof m=="function"&&!Ah(m)&&m.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=m,N3(n,a,m,o,f)):(n=yc(u.type,null,o,a,a.mode,f),n.ref=a.ref,n.return=a,a.child=n)}if(m=n.child,!pp(n,f)){var C=m.memoizedProps;if(u=u.compare,u=u!==null?u:oo,u(C,o)&&n.ref===a.ref)return da(n,a,f)}return a.flags|=1,n=ia(m,o),n.ref=a.ref,n.return=a,a.child=n}function N3(n,a,u,o,f){if(n!==null){var m=n.memoizedProps;if(oo(m,o)&&n.ref===a.ref)if(hn=!1,a.pendingProps=o=m,pp(n,f))(n.flags&131072)!==0&&(hn=!0);else return a.lanes=n.lanes,da(n,a,f)}return lp(n,a,u,o,f)}function O3(n,a,u){var o=a.pendingProps,f=o.children,m=n!==null?n.memoizedState:null;if(o.mode==="hidden"){if((a.flags&128)!==0){if(o=m!==null?m.baseLanes|u:u,n!==null){for(f=a.child=n.child,m=0;f!==null;)m=m|f.lanes|f.childLanes,f=f.sibling;a.childLanes=m&~o}else a.childLanes=0,a.child=null;return k3(n,a,o,u)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&xc(a,m!==null?m.cachePool:null),m!==null?NT(a,m):Fh(),g3(a);else return a.lanes=a.childLanes=536870912,k3(n,a,m!==null?m.baseLanes|u:u,u)}else m!==null?(xc(a,m.cachePool),NT(a,m),Ua(),a.memoizedState=null):(n!==null&&xc(a,null),Fh(),Ua());return En(n,a,f,u),a.child}function k3(n,a,u,o){var f=Lh();return f=f===null?null:{parent:ln._currentValue,pool:f},a.memoizedState={baseLanes:u,cachePool:f},n!==null&&xc(a,null),Fh(),g3(a),n!==null&&po(n,a,o,!0),null}function zc(n,a){var u=a.ref;if(u===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(i(284));(n===null||n.ref!==u)&&(a.flags|=4194816)}}function lp(n,a,u,o,f){return vi(a),u=jh(n,a,u,o,void 0,f),o=qh(),n!==null&&!hn?(Vh(n,a,f),da(n,a,f)):(bt&&o&&vh(a),a.flags|=1,En(n,a,u,f),a.child)}function I3(n,a,u,o,f,m){return vi(a),a.updateQueue=null,u=kT(a,o,u,f),OT(n),o=qh(),n!==null&&!hn?(Vh(n,a,m),da(n,a,m)):(bt&&o&&vh(a),a.flags|=1,En(n,a,u,m),a.child)}function D3(n,a,u,o,f){if(vi(a),a.stateNode===null){var m=Cu,C=u.contextType;typeof C=="object"&&C!==null&&(m=Nn(C)),m=new u(o,m),a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=ip,a.stateNode=m,m._reactInternals=a,m=a.stateNode,m.props=o,m.state=a.memoizedState,m.refs={},Bh(a),C=u.contextType,m.context=typeof C=="object"&&C!==null?Nn(C):Cu,m.state=a.memoizedState,C=u.getDerivedStateFromProps,typeof C=="function"&&(ap(a,u,C,o),m.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(C=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),C!==m.state&&ip.enqueueReplaceState(m,m.state,null),So(a,o,m,f),To(),m.state=a.memoizedState),typeof m.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(n===null){m=a.stateNode;var R=a.memoizedProps,H=Oi(u,R);m.props=H;var W=m.context,se=u.contextType;C=Cu,typeof se=="object"&&se!==null&&(C=Nn(se));var fe=u.getDerivedStateFromProps;se=typeof fe=="function"||typeof m.getSnapshotBeforeUpdate=="function",R=a.pendingProps!==R,se||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(R||W!==C)&&E3(a,m,o,C),wa=!1;var ee=a.memoizedState;m.state=ee,So(a,o,m,f),To(),W=a.memoizedState,R||ee!==W||wa?(typeof fe=="function"&&(ap(a,u,fe,o),W=a.memoizedState),(H=wa||b3(a,u,H,o,ee,W,C))?(se||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(a.flags|=4194308)):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=W),m.props=o,m.state=W,m.context=C,o=H):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{m=a.stateNode,Ph(n,a),C=a.memoizedProps,se=Oi(u,C),m.props=se,fe=a.pendingProps,ee=m.context,W=u.contextType,H=Cu,typeof W=="object"&&W!==null&&(H=Nn(W)),R=u.getDerivedStateFromProps,(W=typeof R=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(C!==fe||ee!==H)&&E3(a,m,o,H),wa=!1,ee=a.memoizedState,m.state=ee,So(a,o,m,f),To();var te=a.memoizedState;C!==fe||ee!==te||wa||n!==null&&n.dependencies!==null&&Cc(n.dependencies)?(typeof R=="function"&&(ap(a,u,R,o),te=a.memoizedState),(se=wa||b3(a,u,se,o,ee,te,H)||n!==null&&n.dependencies!==null&&Cc(n.dependencies))?(W||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(o,te,H),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(o,te,H)),typeof m.componentDidUpdate=="function"&&(a.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof m.componentDidUpdate!="function"||C===n.memoizedProps&&ee===n.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||C===n.memoizedProps&&ee===n.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=te),m.props=o,m.state=te,m.context=H,o=se):(typeof m.componentDidUpdate!="function"||C===n.memoizedProps&&ee===n.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||C===n.memoizedProps&&ee===n.memoizedState||(a.flags|=1024),o=!1)}return m=o,zc(n,a),o=(a.flags&128)!==0,m||o?(m=a.stateNode,u=o&&typeof u.getDerivedStateFromError!="function"?null:m.render(),a.flags|=1,n!==null&&o?(a.child=Du(a,n.child,null,f),a.child=Du(a,null,u,f)):En(n,a,u,f),a.memoizedState=m.state,n=a.child):n=da(n,a,f),n}function w3(n,a,u,o){return fo(),a.flags|=256,En(n,a,u,o),a.child}var op={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sp(n){return{baseLanes:n,cachePool:TT()}}function cp(n,a,u){return n=n!==null?n.childLanes&~u:0,a&&(n|=Cr),n}function L3(n,a,u){var o=a.pendingProps,f=!1,m=(a.flags&128)!==0,C;if((C=m)||(C=n!==null&&n.memoizedState===null?!1:(on.current&2)!==0),C&&(f=!0,a.flags&=-129),C=(a.flags&32)!==0,a.flags&=-33,n===null){if(bt){if(f?Pa(a):Ua(),bt){var R=Vt,H;if(H=R){e:{for(H=R,R=qr;H.nodeType!==8;){if(!R){R=null;break e}if(H=Nr(H.nextSibling),H===null){R=null;break e}}R=H}R!==null?(a.memoizedState={dehydrated:R,treeContext:Si!==null?{id:ua,overflow:la}:null,retryLane:536870912,hydrationErrors:null},H=er(18,null,null,0),H.stateNode=R,H.return=a,a.child=H,Dn=a,Vt=null,H=!0):H=!1}H||xi(a)}if(R=a.memoizedState,R!==null&&(R=R.dehydrated,R!==null))return $p(R)?a.lanes=32:a.lanes=536870912,null;fa(a)}return R=o.children,o=o.fallback,f?(Ua(),f=a.mode,R=Yc({mode:"hidden",children:R},f),o=Ti(o,f,u,null),R.return=a,o.return=a,R.sibling=o,a.child=R,f=a.child,f.memoizedState=sp(u),f.childLanes=cp(n,C,u),a.memoizedState=op,o):(Pa(a),fp(a,R))}if(H=n.memoizedState,H!==null&&(R=H.dehydrated,R!==null)){if(m)a.flags&256?(Pa(a),a.flags&=-257,a=dp(n,a,u)):a.memoizedState!==null?(Ua(),a.child=n.child,a.flags|=128,a=null):(Ua(),f=o.fallback,R=a.mode,o=Yc({mode:"visible",children:o.children},R),f=Ti(f,R,u,null),f.flags|=2,o.return=a,f.return=a,o.sibling=f,a.child=o,Du(a,n.child,null,u),o=a.child,o.memoizedState=sp(u),o.childLanes=cp(n,C,u),a.memoizedState=op,a=f);else if(Pa(a),$p(R)){if(C=R.nextSibling&&R.nextSibling.dataset,C)var W=C.dgst;C=W,o=Error(i(419)),o.stack="",o.digest=C,ho({value:o,source:null,stack:null}),a=dp(n,a,u)}else if(hn||po(n,a,u,!1),C=(u&n.childLanes)!==0,hn||C){if(C=Pt,C!==null&&(o=u&-u,o=(o&42)!==0?1:Wl(o),o=(o&(C.suspendedLanes|u))!==0?0:o,o!==0&&o!==H.retryLane))throw H.retryLane=o,Su(n,o),ir(C,n,o),_3;R.data==="$?"||kp(),a=dp(n,a,u)}else R.data==="$?"?(a.flags|=192,a.child=n.child,a=null):(n=H.treeContext,Vt=Nr(R.nextSibling),Dn=a,bt=!0,Ai=null,qr=!1,n!==null&&(yr[Tr++]=ua,yr[Tr++]=la,yr[Tr++]=Si,ua=n.id,la=n.overflow,Si=a),a=fp(a,o.children),a.flags|=4096);return a}return f?(Ua(),f=o.fallback,R=a.mode,H=n.child,W=H.sibling,o=ia(H,{mode:"hidden",children:o.children}),o.subtreeFlags=H.subtreeFlags&65011712,W!==null?f=ia(W,f):(f=Ti(f,R,u,null),f.flags|=2),f.return=a,o.return=a,o.sibling=f,a.child=o,o=f,f=a.child,R=n.child.memoizedState,R===null?R=sp(u):(H=R.cachePool,H!==null?(W=ln._currentValue,H=H.parent!==W?{parent:W,pool:W}:H):H=TT(),R={baseLanes:R.baseLanes|u,cachePool:H}),f.memoizedState=R,f.childLanes=cp(n,C,u),a.memoizedState=op,o):(Pa(a),u=n.child,n=u.sibling,u=ia(u,{mode:"visible",children:o.children}),u.return=a,u.sibling=null,n!==null&&(C=a.deletions,C===null?(a.deletions=[n],a.flags|=16):C.push(n)),a.child=u,a.memoizedState=null,u)}function fp(n,a){return a=Yc({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function Yc(n,a){return n=er(22,n,null,a),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function dp(n,a,u){return Du(a,n.child,null,u),n=fp(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function M3(n,a,u){n.lanes|=a;var o=n.alternate;o!==null&&(o.lanes|=a),kh(n.return,a,u)}function hp(n,a,u,o,f){var m=n.memoizedState;m===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:u,tailMode:f}:(m.isBackwards=a,m.rendering=null,m.renderingStartTime=0,m.last=o,m.tail=u,m.tailMode=f)}function B3(n,a,u){var o=a.pendingProps,f=o.revealOrder,m=o.tail;if(En(n,a,o.children,u),o=on.current,(o&2)!==0)o=o&1|2,a.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&M3(n,u,a);else if(n.tag===19)M3(n,u,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}o&=1}switch(O(on,o),f){case"forwards":for(u=a.child,f=null;u!==null;)n=u.alternate,n!==null&&Uc(n)===null&&(f=u),u=u.sibling;u=f,u===null?(f=a.child,a.child=null):(f=u.sibling,u.sibling=null),hp(a,!1,f,u,m);break;case"backwards":for(u=null,f=a.child,a.child=null;f!==null;){if(n=f.alternate,n!==null&&Uc(n)===null){a.child=f;break}n=f.sibling,f.sibling=u,u=f,f=n}hp(a,!0,u,null,m);break;case"together":hp(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function da(n,a,u){if(n!==null&&(a.dependencies=n.dependencies),ja|=a.lanes,(u&a.childLanes)===0)if(n!==null){if(po(n,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(i(153));if(a.child!==null){for(n=a.child,u=ia(n,n.pendingProps),a.child=u,u.return=a;n.sibling!==null;)n=n.sibling,u=u.sibling=ia(n,n.pendingProps),u.return=a;u.sibling=null}return a.child}function pp(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&Cc(n)))}function o7(n,a,u){switch(a.tag){case 3:Be(a,a.stateNode.containerInfo),Da(a,ln,n.memoizedState.cache),fo();break;case 27:case 5:St(a);break;case 4:Be(a,a.stateNode.containerInfo);break;case 10:Da(a,a.type,a.memoizedProps.value);break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(Pa(a),a.flags|=128,null):(u&a.child.childLanes)!==0?L3(n,a,u):(Pa(a),n=da(n,a,u),n!==null?n.sibling:null);Pa(a);break;case 19:var f=(n.flags&128)!==0;if(o=(u&a.childLanes)!==0,o||(po(n,a,u,!1),o=(u&a.childLanes)!==0),f){if(o)return B3(n,a,u);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),O(on,on.current),o)break;return null;case 22:case 23:return a.lanes=0,O3(n,a,u);case 24:Da(a,ln,n.memoizedState.cache)}return da(n,a,u)}function P3(n,a,u){if(n!==null)if(n.memoizedProps!==a.pendingProps)hn=!0;else{if(!pp(n,u)&&(a.flags&128)===0)return hn=!1,o7(n,a,u);hn=(n.flags&131072)!==0}else hn=!1,bt&&(a.flags&1048576)!==0&&hT(a,Sc,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")Ah(o)?(n=Oi(o,n),a.tag=1,a=D3(null,a,o,n,u)):(a.tag=0,a=lp(null,a,o,n,u));else{if(o!=null){if(f=o.$$typeof,f===w){a.tag=11,a=v3(null,a,o,n,u);break e}else if(f===z){a.tag=14,a=R3(null,a,o,n,u);break e}}throw a=Z(o)||o,Error(i(306,a,""))}}return a;case 0:return lp(n,a,a.type,a.pendingProps,u);case 1:return o=a.type,f=Oi(o,a.pendingProps),D3(n,a,o,f,u);case 3:e:{if(Be(a,a.stateNode.containerInfo),n===null)throw Error(i(387));o=a.pendingProps;var m=a.memoizedState;f=m.element,Ph(n,a),So(a,o,null,u);var C=a.memoizedState;if(o=C.cache,Da(a,ln,o),o!==m.cache&&Ih(a,[ln],u,!0),To(),o=C.element,m.isDehydrated)if(m={element:o,isDehydrated:!1,cache:C.cache},a.updateQueue.baseState=m,a.memoizedState=m,a.flags&256){a=w3(n,a,o,u);break e}else if(o!==f){f=br(Error(i(424)),a),ho(f),a=w3(n,a,o,u);break e}else{switch(n=a.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Vt=Nr(n.firstChild),Dn=a,bt=!0,Ai=null,qr=!0,u=m3(a,null,o,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(fo(),o===f){a=da(n,a,u);break e}En(n,a,o,u)}a=a.child}return a;case 26:return zc(n,a),n===null?(u=zS(a.type,null,a.pendingProps,null))?a.memoizedState=u:bt||(u=a.type,n=a.pendingProps,o=nf(Te.current).createElement(u),o[Ye]=a,o[Ge]=n,Tn(o,u,n),dn(o),a.stateNode=o):a.memoizedState=zS(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return St(a),n===null&&bt&&(o=a.stateNode=US(a.type,a.pendingProps,Te.current),Dn=a,qr=!0,f=Vt,$a(a.type)?(Xp=f,Vt=Nr(o.firstChild)):Vt=f),En(n,a,a.pendingProps.children,u),zc(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&bt&&((f=o=Vt)&&(o=B7(o,a.type,a.pendingProps,qr),o!==null?(a.stateNode=o,Dn=a,Vt=Nr(o.firstChild),qr=!1,f=!0):f=!1),f||xi(a)),St(a),f=a.type,m=a.pendingProps,C=n!==null?n.memoizedProps:null,o=m.children,qp(f,m)?o=null:C!==null&&qp(f,C)&&(a.flags|=32),a.memoizedState!==null&&(f=jh(n,a,e7,null,null,u),jo._currentValue=f),zc(n,a),En(n,a,o,u),a.child;case 6:return n===null&&bt&&((n=u=Vt)&&(u=P7(u,a.pendingProps,qr),u!==null?(a.stateNode=u,Dn=a,Vt=null,n=!0):n=!1),n||xi(a)),null;case 13:return L3(n,a,u);case 4:return Be(a,a.stateNode.containerInfo),o=a.pendingProps,n===null?a.child=Du(a,null,o,u):En(n,a,o,u),a.child;case 11:return v3(n,a,a.type,a.pendingProps,u);case 7:return En(n,a,a.pendingProps,u),a.child;case 8:return En(n,a,a.pendingProps.children,u),a.child;case 12:return En(n,a,a.pendingProps.children,u),a.child;case 10:return o=a.pendingProps,Da(a,a.type,o.value),En(n,a,o.children,u),a.child;case 9:return f=a.type._context,o=a.pendingProps.children,vi(a),f=Nn(f),o=o(f),a.flags|=1,En(n,a,o,u),a.child;case 14:return R3(n,a,a.type,a.pendingProps,u);case 15:return N3(n,a,a.type,a.pendingProps,u);case 19:return B3(n,a,u);case 31:return o=a.pendingProps,u=a.mode,o={mode:o.mode,children:o.children},n===null?(u=Yc(o,u),u.ref=a.ref,a.child=u,u.return=a,a=u):(u=ia(n.child,o),u.ref=a.ref,a.child=u,u.return=a,a=u),a;case 22:return O3(n,a,u);case 24:return vi(a),o=Nn(ln),n===null?(f=Lh(),f===null&&(f=Pt,m=Dh(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=u),f=m),a.memoizedState={parent:o,cache:f},Bh(a),Da(a,ln,f)):((n.lanes&u)!==0&&(Ph(n,a),So(a,null,null,u),To()),f=n.memoizedState,m=a.memoizedState,f.parent!==o?(f={parent:o,cache:o},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),Da(a,ln,o)):(o=m.cache,Da(a,ln,o),o!==f.cache&&Ih(a,[ln],u,!0))),En(n,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function ha(n){n.flags|=4}function U3(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!GS(a)){if(a=Sr.current,a!==null&&((lt&4194048)===lt?Vr!==null:(lt&62914560)!==lt&&(lt&536870912)===0||a!==Vr))throw Eo=Mh,ST;n.flags|=8192}}function jc(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?tc():536870912,n.lanes|=a,Bu|=a)}function No(n,a){if(!bt)switch(n.tailMode){case"hidden":a=n.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?n.tail=null:u.sibling=null;break;case"collapsed":u=n.tail;for(var o=null;u!==null;)u.alternate!==null&&(o=u),u=u.sibling;o===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:o.sibling=null}}function Yt(n){var a=n.alternate!==null&&n.alternate.child===n.child,u=0,o=0;if(a)for(var f=n.child;f!==null;)u|=f.lanes|f.childLanes,o|=f.subtreeFlags&65011712,o|=f.flags&65011712,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)u|=f.lanes|f.childLanes,o|=f.subtreeFlags,o|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=o,n.childLanes=u,a}function s7(n,a,u){var o=a.pendingProps;switch(Rh(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(a),null;case 1:return Yt(a),null;case 3:return u=a.stateNode,o=null,n!==null&&(o=n.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),sa(ln),ut(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(co(a)?ha(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,gT())),Yt(a),null;case 26:return u=a.memoizedState,n===null?(ha(a),u!==null?(Yt(a),U3(a,u)):(Yt(a),a.flags&=-16777217)):u?u!==n.memoizedState?(ha(a),Yt(a),U3(a,u)):(Yt(a),a.flags&=-16777217):(n.memoizedProps!==o&&ha(a),Yt(a),a.flags&=-16777217),null;case 27:gt(a),u=Te.current;var f=a.type;if(n!==null&&a.stateNode!=null)n.memoizedProps!==o&&ha(a);else{if(!o){if(a.stateNode===null)throw Error(i(166));return Yt(a),null}n=be.current,co(a)?pT(a):(n=US(f,o,u),a.stateNode=n,ha(a))}return Yt(a),null;case 5:if(gt(a),u=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==o&&ha(a);else{if(!o){if(a.stateNode===null)throw Error(i(166));return Yt(a),null}if(n=be.current,co(a))pT(a);else{switch(f=nf(Te.current),n){case 1:n=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:n=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":n=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":n=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":n=f.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof 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[Ye]=a,n[Ge]=o;e:for(f=a.child;f!==null;){if(f.tag===5||f.tag===6)n.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===a)break e;for(;f.sibling===null;){if(f.return===null||f.return===a)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}a.stateNode=n;e:switch(Tn(n,u,o),u){case"button":case"input":case"select":case"textarea":n=!!o.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ha(a)}}return Yt(a),a.flags&=-16777217,null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==o&&ha(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(i(166));if(n=Te.current,co(a)){if(n=a.stateNode,u=a.memoizedProps,o=null,f=Dn,f!==null)switch(f.tag){case 27:case 5:o=f.memoizedProps}n[Ye]=a,n=!!(n.nodeValue===u||o!==null&&o.suppressHydrationWarning===!0||IS(n.nodeValue,u)),n||xi(a)}else n=nf(n).createTextNode(o),n[Ye]=a,a.stateNode=n}return Yt(a),null;case 13:if(o=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=co(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[Ye]=a}else fo(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Yt(a),f=!1}else f=gT(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(fa(a),a):(fa(a),null)}if(fa(a),(a.flags&128)!==0)return a.lanes=u,a;if(u=o!==null,n=n!==null&&n.memoizedState!==null,u){o=a.child,f=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(f=o.alternate.memoizedState.cachePool.pool);var m=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),m!==f&&(o.flags|=2048)}return u!==n&&u&&(a.child.flags|=8192),jc(a,a.updateQueue),Yt(a),null;case 4:return ut(),n===null&&Hp(a.stateNode.containerInfo),Yt(a),null;case 10:return sa(a.type),Yt(a),null;case 19:if(de(on),f=a.memoizedState,f===null)return Yt(a),null;if(o=(a.flags&128)!==0,m=f.rendering,m===null)if(o)No(f,!1);else{if(Gt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(m=Uc(n),m!==null){for(a.flags|=128,No(f,!1),n=m.updateQueue,a.updateQueue=n,jc(a,n),a.subtreeFlags=0,n=u,u=a.child;u!==null;)dT(u,n),u=u.sibling;return O(on,on.current&1|2),a.child}n=n.sibling}f.tail!==null&&Me()>Gc&&(a.flags|=128,o=!0,No(f,!1),a.lanes=4194304)}else{if(!o)if(n=Uc(m),n!==null){if(a.flags|=128,o=!0,n=n.updateQueue,a.updateQueue=n,jc(a,n),No(f,!0),f.tail===null&&f.tailMode==="hidden"&&!m.alternate&&!bt)return Yt(a),null}else 2*Me()-f.renderingStartTime>Gc&&u!==536870912&&(a.flags|=128,o=!0,No(f,!1),a.lanes=4194304);f.isBackwards?(m.sibling=a.child,a.child=m):(n=f.last,n!==null?n.sibling=m:a.child=m,f.last=m)}return f.tail!==null?(a=f.tail,f.rendering=a,f.tail=a.sibling,f.renderingStartTime=Me(),a.sibling=null,n=on.current,O(on,o?n&1|2:n&1),a):(Yt(a),null);case 22:case 23:return fa(a),zh(),o=a.memoizedState!==null,n!==null?n.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(u&536870912)!==0&&(a.flags&128)===0&&(Yt(a),a.subtreeFlags&6&&(a.flags|=8192)):Yt(a),u=a.updateQueue,u!==null&&jc(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&&de(Ri),null;case 24:return u=null,n!==null&&(u=n.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),sa(ln),Yt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function c7(n,a){switch(Rh(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return sa(ln),ut(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return gt(a),null;case 13:if(fa(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(i(340));fo()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return de(on),null;case 4:return ut(),null;case 10:return sa(a.type),null;case 22:case 23:return fa(a),zh(),n!==null&&de(Ri),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return sa(ln),null;case 25:return null;default:return null}}function H3(n,a){switch(Rh(a),a.tag){case 3:sa(ln),ut();break;case 26:case 27:case 5:gt(a);break;case 4:ut();break;case 13:fa(a);break;case 19:de(on);break;case 10:sa(a.type);break;case 22:case 23:fa(a),zh(),n!==null&&de(Ri);break;case 24:sa(ln)}}function Oo(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 m=u.create,C=u.inst;o=m(),C.destroy=o}u=u.next}while(u!==f)}}catch(R){wt(a,a.return,R)}}function Ha(n,a,u){try{var o=a.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var m=f.next;o=m;do{if((o.tag&n)===n){var C=o.inst,R=C.destroy;if(R!==void 0){C.destroy=void 0,f=a;var H=u,W=R;try{W()}catch(se){wt(f,H,se)}}}o=o.next}while(o!==m)}}catch(se){wt(a,a.return,se)}}function F3(n){var a=n.updateQueue;if(a!==null){var u=n.stateNode;try{RT(a,u)}catch(o){wt(n,n.return,o)}}}function z3(n,a,u){u.props=Oi(n.type,n.memoizedProps),u.state=n.memoizedState;try{u.componentWillUnmount()}catch(o){wt(n,a,o)}}function ko(n,a){try{var u=n.ref;if(u!==null){switch(n.tag){case 26:case 27:case 5:var o=n.stateNode;break;case 30:o=n.stateNode;break;default:o=n.stateNode}typeof u=="function"?n.refCleanup=u(o):u.current=o}}catch(f){wt(n,a,f)}}function Gr(n,a){var u=n.ref,o=n.refCleanup;if(u!==null)if(typeof o=="function")try{o()}catch(f){wt(n,a,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(f){wt(n,a,f)}else u.current=null}function Y3(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){wt(n,n.return,f)}}function mp(n,a,u){try{var o=n.stateNode;I7(o,n.type,u,a),o[Ge]=a}catch(f){wt(n,n.return,f)}}function j3(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&$a(n.type)||n.tag===4}function gp(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||j3(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&$a(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function bp(n,a,u){var o=n.tag;if(o===5||o===6)n=n.stateNode,a?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(n,a):(a=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,a.appendChild(n),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=tf));else if(o!==4&&(o===27&&$a(n.type)&&(u=n.stateNode,a=null),n=n.child,n!==null))for(bp(n,a,u),n=n.sibling;n!==null;)bp(n,a,u),n=n.sibling}function qc(n,a,u){var 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&&$a(n.type)&&(u=n.stateNode),n=n.child,n!==null))for(qc(n,a,u),n=n.sibling;n!==null;)qc(n,a,u),n=n.sibling}function q3(n){var a=n.stateNode,u=n.memoizedProps;try{for(var o=n.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);Tn(a,o,u),a[Ye]=n,a[Ge]=u}catch(m){wt(n,n.return,m)}}var pa=!1,Kt=!1,Ep=!1,V3=typeof WeakSet=="function"?WeakSet:Set,pn=null;function f7(n,a){if(n=n.containerInfo,Yp=sf,n=nT(n),gh(n)){if("selectionStart"in n)var u={start:n.selectionStart,end:n.selectionEnd};else e:{u=(u=n.ownerDocument)&&u.defaultView||window;var o=u.getSelection&&u.getSelection();if(o&&o.rangeCount!==0){u=o.anchorNode;var f=o.anchorOffset,m=o.focusNode;o=o.focusOffset;try{u.nodeType,m.nodeType}catch{u=null;break e}var C=0,R=-1,H=-1,W=0,se=0,fe=n,ee=null;t:for(;;){for(var te;fe!==u||f!==0&&fe.nodeType!==3||(R=C+f),fe!==m||o!==0&&fe.nodeType!==3||(H=C+o),fe.nodeType===3&&(C+=fe.nodeValue.length),(te=fe.firstChild)!==null;)ee=fe,fe=te;for(;;){if(fe===n)break t;if(ee===u&&++W===f&&(R=C),ee===m&&++se===o&&(H=C),(te=fe.nextSibling)!==null)break;fe=ee,ee=fe.parentNode}fe=te}u=R===-1||H===-1?null:{start:R,end:H}}else u=null}u=u||{start:0,end:0}}else u=null;for(jp={focusedElem:n,selectionRange:u},sf=!1,pn=a;pn!==null;)if(a=pn,n=a.child,(a.subtreeFlags&1024)!==0&&n!==null)n.return=a,pn=n;else for(;pn!==null;){switch(a=pn,m=a.alternate,n=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&m!==null){n=void 0,u=a,f=m.memoizedProps,m=m.memoizedState,o=u.stateNode;try{var je=Oi(u.type,f,u.elementType===u.type);n=o.getSnapshotBeforeUpdate(je,m),o.__reactInternalSnapshotBeforeUpdate=n}catch(He){wt(u,u.return,He)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,u=n.nodeType,u===9)Gp(n);else if(u===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Gp(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(i(163))}if(n=a.sibling,n!==null){n.return=a.return,pn=n;break}pn=a.return}}function G3(n,a,u){var o=u.flags;switch(u.tag){case 0:case 11:case 15:Fa(n,u),o&4&&Oo(5,u);break;case 1:if(Fa(n,u),o&4)if(n=u.stateNode,a===null)try{n.componentDidMount()}catch(C){wt(u,u.return,C)}else{var f=Oi(u.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(f,a,n.__reactInternalSnapshotBeforeUpdate)}catch(C){wt(u,u.return,C)}}o&64&&F3(u),o&512&&ko(u,u.return);break;case 3:if(Fa(n,u),o&64&&(n=u.updateQueue,n!==null)){if(a=null,u.child!==null)switch(u.child.tag){case 27:case 5:a=u.child.stateNode;break;case 1:a=u.child.stateNode}try{RT(n,a)}catch(C){wt(u,u.return,C)}}break;case 27:a===null&&o&4&&q3(u);case 26:case 5:Fa(n,u),a===null&&o&4&&Y3(u),o&512&&ko(u,u.return);break;case 12:Fa(n,u);break;case 13:Fa(n,u),o&4&&Q3(n,u),o&64&&(n=u.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(u=T7.bind(null,u),U7(n,u))));break;case 22:if(o=u.memoizedState!==null||pa,!o){a=a!==null&&a.memoizedState!==null||Kt,f=pa;var m=Kt;pa=o,(Kt=a)&&!m?za(n,u,(u.subtreeFlags&8772)!==0):Fa(n,u),pa=f,Kt=m}break;case 30:break;default:Fa(n,u)}}function $3(n){var a=n.alternate;a!==null&&(n.alternate=null,$3(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&W0(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var zt=null,qn=!1;function ma(n,a,u){for(u=u.child;u!==null;)X3(n,a,u),u=u.sibling}function X3(n,a,u){if(he&&typeof he.onCommitFiberUnmount=="function")try{he.onCommitFiberUnmount(re,u)}catch{}switch(u.tag){case 26:Kt||Gr(u,a),ma(n,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Kt||Gr(u,a);var o=zt,f=qn;$a(u.type)&&(zt=u.stateNode,qn=!1),ma(n,a,u),Ho(u.stateNode),zt=o,qn=f;break;case 5:Kt||Gr(u,a);case 6:if(o=zt,f=qn,zt=null,ma(n,a,u),zt=o,qn=f,zt!==null)if(qn)try{(zt.nodeType===9?zt.body:zt.nodeName==="HTML"?zt.ownerDocument.body:zt).removeChild(u.stateNode)}catch(m){wt(u,a,m)}else try{zt.removeChild(u.stateNode)}catch(m){wt(u,a,m)}break;case 18:zt!==null&&(qn?(n=zt,BS(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,u.stateNode),$o(n)):BS(zt,u.stateNode));break;case 4:o=zt,f=qn,zt=u.stateNode.containerInfo,qn=!0,ma(n,a,u),zt=o,qn=f;break;case 0:case 11:case 14:case 15:Kt||Ha(2,u,a),Kt||Ha(4,u,a),ma(n,a,u);break;case 1:Kt||(Gr(u,a),o=u.stateNode,typeof o.componentWillUnmount=="function"&&z3(u,a,o)),ma(n,a,u);break;case 21:ma(n,a,u);break;case 22:Kt=(o=Kt)||u.memoizedState!==null,ma(n,a,u),Kt=o;break;default:ma(n,a,u)}}function Q3(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{$o(n)}catch(u){wt(a,a.return,u)}}function d7(n){switch(n.tag){case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new V3),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new V3),a;default:throw Error(i(435,n.tag))}}function yp(n,a){var u=d7(n);a.forEach(function(o){var f=S7.bind(null,n,o);u.has(o)||(u.add(o),o.then(f,f))})}function tr(n,a){var u=a.deletions;if(u!==null)for(var o=0;o<u.length;o++){var f=u[o],m=n,C=a,R=C;e:for(;R!==null;){switch(R.tag){case 27:if($a(R.type)){zt=R.stateNode,qn=!1;break e}break;case 5:zt=R.stateNode,qn=!1;break e;case 3:case 4:zt=R.stateNode.containerInfo,qn=!0;break e}R=R.return}if(zt===null)throw Error(i(160));X3(m,C,f),zt=null,qn=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)K3(a,n),a=a.sibling}var Rr=null;function K3(n,a){var u=n.alternate,o=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:tr(a,n),nr(n),o&4&&(Ha(3,n,n.return),Oo(3,n),Ha(5,n,n.return));break;case 1:tr(a,n),nr(n),o&512&&(Kt||u===null||Gr(u,u.return)),o&64&&pa&&(n=n.updateQueue,n!==null&&(o=n.callbacks,o!==null&&(u=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=u===null?o:u.concat(o))));break;case 26:var f=Rr;if(tr(a,n),nr(n),o&512&&(Kt||u===null||Gr(u,u.return)),o&4){var m=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":m=f.getElementsByTagName("title")[0],(!m||m[na]||m[Ye]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(o),f.head.insertBefore(m,f.querySelector("head > title"))),Tn(m,o,u),m[Ye]=n,dn(m),o=m;break e;case"link":var C=qS("link","href",f).get(o+(u.href||""));if(C){for(var R=0;R<C.length;R++)if(m=C[R],m.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&m.getAttribute("rel")===(u.rel==null?null:u.rel)&&m.getAttribute("title")===(u.title==null?null:u.title)&&m.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){C.splice(R,1);break t}}m=f.createElement(o),Tn(m,o,u),f.head.appendChild(m);break;case"meta":if(C=qS("meta","content",f).get(o+(u.content||""))){for(R=0;R<C.length;R++)if(m=C[R],m.getAttribute("content")===(u.content==null?null:""+u.content)&&m.getAttribute("name")===(u.name==null?null:u.name)&&m.getAttribute("property")===(u.property==null?null:u.property)&&m.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&m.getAttribute("charset")===(u.charSet==null?null:u.charSet)){C.splice(R,1);break t}}m=f.createElement(o),Tn(m,o,u),f.head.appendChild(m);break;default:throw Error(i(468,o))}m[Ye]=n,dn(m),o=m}n.stateNode=o}else VS(f,n.type,n.stateNode);else n.stateNode=jS(f,o,n.memoizedProps);else m!==o?(m===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):m.count--,o===null?VS(f,n.type,n.stateNode):jS(f,o,n.memoizedProps)):o===null&&n.stateNode!==null&&mp(n,n.memoizedProps,u.memoizedProps)}break;case 27:tr(a,n),nr(n),o&512&&(Kt||u===null||Gr(u,u.return)),u!==null&&o&4&&mp(n,n.memoizedProps,u.memoizedProps);break;case 5:if(tr(a,n),nr(n),o&512&&(Kt||u===null||Gr(u,u.return)),n.flags&32){f=n.stateNode;try{pu(f,"")}catch(te){wt(n,n.return,te)}}o&4&&n.stateNode!=null&&(f=n.memoizedProps,mp(n,f,u!==null?u.memoizedProps:f)),o&1024&&(Ep=!0);break;case 6:if(tr(a,n),nr(n),o&4){if(n.stateNode===null)throw Error(i(162));o=n.memoizedProps,u=n.stateNode;try{u.nodeValue=o}catch(te){wt(n,n.return,te)}}break;case 3:if(uf=null,f=Rr,Rr=rf(a.containerInfo),tr(a,n),Rr=f,nr(n),o&4&&u!==null&&u.memoizedState.isDehydrated)try{$o(a.containerInfo)}catch(te){wt(n,n.return,te)}Ep&&(Ep=!1,W3(n));break;case 4:o=Rr,Rr=rf(n.stateNode.containerInfo),tr(a,n),nr(n),Rr=o;break;case 12:tr(a,n),nr(n);break;case 13:tr(a,n),nr(n),n.child.flags&8192&&n.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(_p=Me()),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,yp(n,o)));break;case 22:f=n.memoizedState!==null;var H=u!==null&&u.memoizedState!==null,W=pa,se=Kt;if(pa=W||f,Kt=se||H,tr(a,n),Kt=se,pa=W,nr(n),o&8192)e:for(a=n.stateNode,a._visibility=f?a._visibility&-2:a._visibility|1,f&&(u===null||H||pa||Kt||ki(n)),u=null,a=n;;){if(a.tag===5||a.tag===26){if(u===null){H=u=a;try{if(m=H.stateNode,f)C=m.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{R=H.stateNode;var fe=H.memoizedProps.style,ee=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;R.style.display=ee==null||typeof ee=="boolean"?"":(""+ee).trim()}}catch(te){wt(H,H.return,te)}}}else if(a.tag===6){if(u===null){H=a;try{H.stateNode.nodeValue=f?"":H.memoizedProps}catch(te){wt(H,H.return,te)}}}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,yp(n,u))));break;case 19:tr(a,n),nr(n),o&4&&(o=n.updateQueue,o!==null&&(n.updateQueue=null,yp(n,o)));break;case 30:break;case 21:break;default:tr(a,n),nr(n)}}function nr(n){var a=n.flags;if(a&2){try{for(var u,o=n.return;o!==null;){if(j3(o)){u=o;break}o=o.return}if(u==null)throw Error(i(160));switch(u.tag){case 27:var f=u.stateNode,m=gp(n);qc(n,m,f);break;case 5:var C=u.stateNode;u.flags&32&&(pu(C,""),u.flags&=-33);var R=gp(n);qc(n,R,C);break;case 3:case 4:var H=u.stateNode.containerInfo,W=gp(n);bp(n,W,H);break;default:throw Error(i(161))}}catch(se){wt(n,n.return,se)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function W3(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;W3(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Fa(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)G3(n,a.alternate,a),a=a.sibling}function ki(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:Ha(4,a,a.return),ki(a);break;case 1:Gr(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&z3(a,a.return,u),ki(a);break;case 27:Ho(a.stateNode);case 26:case 5:Gr(a,a.return),ki(a);break;case 22:a.memoizedState===null&&ki(a);break;case 30:ki(a);break;default:ki(a)}n=n.sibling}}function za(n,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,f=n,m=a,C=m.flags;switch(m.tag){case 0:case 11:case 15:za(f,m,u),Oo(4,m);break;case 1:if(za(f,m,u),o=m,f=o.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(W){wt(o,o.return,W)}if(o=m,f=o.updateQueue,f!==null){var R=o.stateNode;try{var H=f.shared.hiddenCallbacks;if(H!==null)for(f.shared.hiddenCallbacks=null,f=0;f<H.length;f++)vT(H[f],R)}catch(W){wt(o,o.return,W)}}u&&C&64&&F3(m),ko(m,m.return);break;case 27:q3(m);case 26:case 5:za(f,m,u),u&&o===null&&C&4&&Y3(m),ko(m,m.return);break;case 12:za(f,m,u);break;case 13:za(f,m,u),u&&C&4&&Q3(f,m);break;case 22:m.memoizedState===null&&za(f,m,u),ko(m,m.return);break;case 30:break;default:za(f,m,u)}a=a.sibling}}function Tp(n,a){var u=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==u&&(n!=null&&n.refCount++,u!=null&&mo(u))}function Sp(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&mo(n))}function $r(n,a,u,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Z3(n,a,u,o),a=a.sibling}function Z3(n,a,u,o){var f=a.flags;switch(a.tag){case 0:case 11:case 15:$r(n,a,u,o),f&2048&&Oo(9,a);break;case 1:$r(n,a,u,o);break;case 3:$r(n,a,u,o),f&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&mo(n)));break;case 12:if(f&2048){$r(n,a,u,o),n=a.stateNode;try{var m=a.memoizedProps,C=m.id,R=m.onPostCommit;typeof R=="function"&&R(C,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(H){wt(a,a.return,H)}}else $r(n,a,u,o);break;case 13:$r(n,a,u,o);break;case 23:break;case 22:m=a.stateNode,C=a.alternate,a.memoizedState!==null?m._visibility&2?$r(n,a,u,o):Io(n,a):m._visibility&2?$r(n,a,u,o):(m._visibility|=2,wu(n,a,u,o,(a.subtreeFlags&10256)!==0)),f&2048&&Tp(C,a);break;case 24:$r(n,a,u,o),f&2048&&Sp(a.alternate,a);break;default:$r(n,a,u,o)}}function wu(n,a,u,o,f){for(f=f&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var m=n,C=a,R=u,H=o,W=C.flags;switch(C.tag){case 0:case 11:case 15:wu(m,C,R,H,f),Oo(8,C);break;case 23:break;case 22:var se=C.stateNode;C.memoizedState!==null?se._visibility&2?wu(m,C,R,H,f):Io(m,C):(se._visibility|=2,wu(m,C,R,H,f)),f&&W&2048&&Tp(C.alternate,C);break;case 24:wu(m,C,R,H,f),f&&W&2048&&Sp(C.alternate,C);break;default:wu(m,C,R,H,f)}a=a.sibling}}function Io(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:Io(u,o),f&2048&&Tp(o.alternate,o);break;case 24:Io(u,o),f&2048&&Sp(o.alternate,o);break;default:Io(u,o)}a=a.sibling}}var Do=8192;function Lu(n){if(n.subtreeFlags&Do)for(n=n.child;n!==null;)J3(n),n=n.sibling}function J3(n){switch(n.tag){case 26:Lu(n),n.flags&Do&&n.memoizedState!==null&&W7(Rr,n.memoizedState,n.memoizedProps);break;case 5:Lu(n);break;case 3:case 4:var a=Rr;Rr=rf(n.stateNode.containerInfo),Lu(n),Rr=a;break;case 22:n.memoizedState===null&&(a=n.alternate,a!==null&&a.memoizedState!==null?(a=Do,Do=16777216,Lu(n),Do=a):Lu(n));break;default:Lu(n)}}function eS(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 wo(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var o=a[u];pn=o,nS(o,n)}eS(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)tS(n),n=n.sibling}function tS(n){switch(n.tag){case 0:case 11:case 15:wo(n),n.flags&2048&&Ha(9,n,n.return);break;case 3:wo(n);break;case 12:wo(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,Vc(n)):wo(n);break;default:wo(n)}}function Vc(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var o=a[u];pn=o,nS(o,n)}eS(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:Ha(8,a,a.return),Vc(a);break;case 22:u=a.stateNode,u._visibility&2&&(u._visibility&=-3,Vc(a));break;default:Vc(a)}n=n.sibling}}function nS(n,a){for(;pn!==null;){var u=pn;switch(u.tag){case 0:case 11:case 15:Ha(8,u,a);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var o=u.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:mo(u.memoizedState.cache)}if(o=u.child,o!==null)o.return=u,pn=o;else e:for(u=n;pn!==null;){o=pn;var f=o.sibling,m=o.return;if($3(o),o===u){pn=null;break e}if(f!==null){f.return=m,pn=f;break e}pn=m}}}var h7={getCacheForType:function(n){var a=Nn(ln),u=a.data.get(n);return u===void 0&&(u=n(),a.data.set(n,u)),u}},p7=typeof WeakMap=="function"?WeakMap:Map,xt=0,Pt=null,nt=null,lt=0,_t=0,rr=null,Ya=!1,Mu=!1,Cp=!1,ga=0,Gt=0,ja=0,Ii=0,Ap=0,Cr=0,Bu=0,Lo=null,Vn=null,xp=!1,_p=0,Gc=1/0,$c=null,qa=null,yn=0,Va=null,Pu=null,Uu=0,vp=0,Rp=null,rS=null,Mo=0,Np=null;function ar(){if((xt&2)!==0&&lt!==0)return lt&-lt;if(F.T!==null){var n=_u;return n!==0?n:Mp()}return ac()}function aS(){Cr===0&&(Cr=(lt&536870912)===0||bt?pi():536870912);var n=Sr.current;return n!==null&&(n.flags|=32),Cr}function ir(n,a,u){(n===Pt&&(_t===2||_t===9)||n.cancelPendingCommit!==null)&&(Hu(n,0),Ga(n,lt,Cr,!1)),ea(n,u),((xt&2)===0||n!==Pt)&&(n===Pt&&((xt&2)===0&&(Ii|=u),Gt===4&&Ga(n,lt,Cr,!1)),Xr(n))}function iS(n,a,u){if((xt&6)!==0)throw Error(i(327));var o=!u&&(a&124)===0&&(a&n.expiredLanes)===0||Hn(n,a),f=o?b7(n,a):Ip(n,a,!0),m=o;do{if(f===0){Mu&&!o&&Ga(n,a,0,!1);break}else{if(u=n.current.alternate,m&&!m7(u)){f=Ip(n,a,!1),m=!1;continue}if(f===2){if(m=a,n.errorRecoveryDisabledLanes&m)var C=0;else C=n.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){a=C;e:{var R=n;f=Lo;var H=R.current.memoizedState.isDehydrated;if(H&&(Hu(R,C).flags|=256),C=Ip(R,C,!1),C!==2){if(Cp&&!H){R.errorRecoveryDisabledLanes|=m,Ii|=m,f=4;break e}m=Vn,Vn=f,m!==null&&(Vn===null?Vn=m:Vn.push.apply(Vn,m))}f=C}if(m=!1,f!==2)continue}}if(f===1){Hu(n,0),Ga(n,a,0,!0);break}e:{switch(o=n,m=f,m){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Ga(o,a,Cr,!Ya);break e;case 2:Vn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(f=_p+300-Me(),10<f)){if(Ga(o,a,Cr,!Ya),nn(o,0,!0)!==0)break e;o.timeoutHandle=LS(uS.bind(null,o,u,Vn,$c,xp,a,Cr,Ii,Bu,Ya,m,2,-0,0),f);break e}uS(o,u,Vn,$c,xp,a,Cr,Ii,Bu,Ya,m,0,-0,0)}}break}while(!0);Xr(n)}function uS(n,a,u,o,f,m,C,R,H,W,se,fe,ee,te){if(n.timeoutHandle=-1,fe=a.subtreeFlags,(fe&8192||(fe&16785408)===16785408)&&(Yo={stylesheets:null,count:0,unsuspend:K7},J3(a),fe=Z7(),fe!==null)){n.cancelPendingCommit=fe(hS.bind(null,n,a,m,u,o,f,C,R,H,se,1,ee,te)),Ga(n,m,C,!W);return}hS(n,a,m,u,o,f,C,R,H)}function m7(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],m=f.getSnapshot;f=f.value;try{if(!Jn(m(),f))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ga(n,a,u,o){a&=~Ap,a&=~Ii,n.suspendedLanes|=a,n.pingedLanes&=~a,o&&(n.warmLanes|=a),o=n.expirationTimes;for(var f=a;0<f;){var m=31-Ae(f),C=1<<m;o[m]=-1,f&=~C}u!==0&&nc(n,u,a)}function Xc(){return(xt&6)===0?(Bo(0),!1):!0}function Op(){if(nt!==null){if(_t===0)var n=nt.return;else n=nt,oa=_i=null,Gh(n),Iu=null,vo=0,n=nt;for(;n!==null;)H3(n.alternate,n),n=n.return;nt=null}}function Hu(n,a){var u=n.timeoutHandle;u!==-1&&(n.timeoutHandle=-1,w7(u)),u=n.cancelPendingCommit,u!==null&&(n.cancelPendingCommit=null,u()),Op(),Pt=n,nt=u=ia(n.current,null),lt=a,_t=0,rr=null,Ya=!1,Mu=Hn(n,a),Cp=!1,Bu=Cr=Ap=Ii=ja=Gt=0,Vn=Lo=null,xp=!1,(a&8)!==0&&(a|=a&32);var o=n.entangledLanes;if(o!==0)for(n=n.entanglements,o&=a;0<o;){var f=31-Ae(o),m=1<<f;a|=n[f],o&=~m}return ga=a,gc(),u}function lS(n,a){Ze=null,F.H=Mc,a===bo||a===_c?(a=xT(),_t=3):a===ST?(a=xT(),_t=4):_t=a===_3?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,rr=a,nt===null&&(Gt=1,Fc(n,br(a,n.current)))}function oS(){var n=F.H;return F.H=Mc,n===null?Mc:n}function sS(){var n=F.A;return F.A=h7,n}function kp(){Gt=4,Ya||(lt&4194048)!==lt&&Sr.current!==null||(Mu=!0),(ja&134217727)===0&&(Ii&134217727)===0||Pt===null||Ga(Pt,lt,Cr,!1)}function Ip(n,a,u){var o=xt;xt|=2;var f=oS(),m=sS();(Pt!==n||lt!==a)&&($c=null,Hu(n,a)),a=!1;var C=Gt;e:do try{if(_t!==0&&nt!==null){var R=nt,H=rr;switch(_t){case 8:Op(),C=6;break e;case 3:case 2:case 9:case 6:Sr.current===null&&(a=!0);var W=_t;if(_t=0,rr=null,Fu(n,R,H,W),u&&Mu){C=0;break e}break;default:W=_t,_t=0,rr=null,Fu(n,R,H,W)}}g7(),C=Gt;break}catch(se){lS(n,se)}while(!0);return a&&n.shellSuspendCounter++,oa=_i=null,xt=o,F.H=f,F.A=m,nt===null&&(Pt=null,lt=0,gc()),C}function g7(){for(;nt!==null;)cS(nt)}function b7(n,a){var u=xt;xt|=2;var o=oS(),f=sS();Pt!==n||lt!==a?($c=null,Gc=Me()+500,Hu(n,a)):Mu=Hn(n,a);e:do try{if(_t!==0&&nt!==null){a=nt;var m=rr;t:switch(_t){case 1:_t=0,rr=null,Fu(n,a,m,1);break;case 2:case 9:if(CT(m)){_t=0,rr=null,fS(a);break}a=function(){_t!==2&&_t!==9||Pt!==n||(_t=7),Xr(n)},m.then(a,a);break e;case 3:_t=7;break e;case 4:_t=5;break e;case 7:CT(m)?(_t=0,rr=null,fS(a)):(_t=0,rr=null,Fu(n,a,m,7));break;case 5:var C=null;switch(nt.tag){case 26:C=nt.memoizedState;case 5:case 27:var R=nt;if(!C||GS(C)){_t=0,rr=null;var H=R.sibling;if(H!==null)nt=H;else{var W=R.return;W!==null?(nt=W,Qc(W)):nt=null}break t}}_t=0,rr=null,Fu(n,a,m,5);break;case 6:_t=0,rr=null,Fu(n,a,m,6);break;case 8:Op(),Gt=6;break e;default:throw Error(i(462))}}E7();break}catch(se){lS(n,se)}while(!0);return oa=_i=null,F.H=o,F.A=f,xt=u,nt!==null?0:(Pt=null,lt=0,gc(),Gt)}function E7(){for(;nt!==null&&!we();)cS(nt)}function cS(n){var a=P3(n.alternate,n,ga);n.memoizedProps=n.pendingProps,a===null?Qc(n):nt=a}function fS(n){var a=n,u=a.alternate;switch(a.tag){case 15:case 0:a=I3(u,a,a.pendingProps,a.type,void 0,lt);break;case 11:a=I3(u,a,a.pendingProps,a.type.render,a.ref,lt);break;case 5:Gh(a);default:H3(u,a),a=nt=dT(a,ga),a=P3(u,a,ga)}n.memoizedProps=n.pendingProps,a===null?Qc(n):nt=a}function Fu(n,a,u,o){oa=_i=null,Gh(a),Iu=null,vo=0;var f=a.return;try{if(l7(n,f,a,u,lt)){Gt=1,Fc(n,br(u,n.current)),nt=null;return}}catch(m){if(f!==null)throw nt=f,m;Gt=1,Fc(n,br(u,n.current)),nt=null;return}a.flags&32768?(bt||o===1?n=!0:Mu||(lt&536870912)!==0?n=!1:(Ya=n=!0,(o===2||o===9||o===3||o===6)&&(o=Sr.current,o!==null&&o.tag===13&&(o.flags|=16384))),dS(a,n)):Qc(a)}function Qc(n){var a=n;do{if((a.flags&32768)!==0){dS(a,Ya);return}n=a.return;var u=s7(a.alternate,a,ga);if(u!==null){nt=u;return}if(a=a.sibling,a!==null){nt=a;return}nt=a=n}while(a!==null);Gt===0&&(Gt=5)}function dS(n,a){do{var u=c7(n.alternate,n);if(u!==null){u.flags&=32767,nt=u;return}if(u=n.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!a&&(n=n.sibling,n!==null)){nt=n;return}nt=n=u}while(n!==null);Gt=6,nt=null}function hS(n,a,u,o,f,m,C,R,H){n.cancelPendingCommit=null;do Kc();while(yn!==0);if((xt&6)!==0)throw Error(i(327));if(a!==null){if(a===n.current)throw Error(i(177));if(m=a.lanes|a.childLanes,m|=Sh,K0(n,u,m,C,R,H),n===Pt&&(nt=Pt=null,lt=0),Pu=a,Va=n,Uu=u,vp=m,Rp=f,rS=o,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,C7(ct,function(){return ES(),null})):(n.callbackNode=null,n.callbackPriority=0),o=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||o){o=F.T,F.T=null,f=ae.p,ae.p=2,C=xt,xt|=4;try{f7(n,a,u)}finally{xt=C,ae.p=f,F.T=o}}yn=1,pS(),mS(),gS()}}function pS(){if(yn===1){yn=0;var n=Va,a=Pu,u=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||u){u=F.T,F.T=null;var o=ae.p;ae.p=2;var f=xt;xt|=4;try{K3(a,n);var m=jp,C=nT(n.containerInfo),R=m.focusedElem,H=m.selectionRange;if(C!==R&&R&&R.ownerDocument&&tT(R.ownerDocument.documentElement,R)){if(H!==null&&gh(R)){var W=H.start,se=H.end;if(se===void 0&&(se=W),"selectionStart"in R)R.selectionStart=W,R.selectionEnd=Math.min(se,R.value.length);else{var fe=R.ownerDocument||document,ee=fe&&fe.defaultView||window;if(ee.getSelection){var te=ee.getSelection(),je=R.textContent.length,He=Math.min(H.start,je),Ot=H.end===void 0?He:Math.min(H.end,je);!te.extend&&He>Ot&&(C=Ot,Ot=He,He=C);var G=eT(R,He),Y=eT(R,Ot);if(G&&Y&&(te.rangeCount!==1||te.anchorNode!==G.node||te.anchorOffset!==G.offset||te.focusNode!==Y.node||te.focusOffset!==Y.offset)){var X=fe.createRange();X.setStart(G.node,G.offset),te.removeAllRanges(),He>Ot?(te.addRange(X),te.extend(Y.node,Y.offset)):(X.setEnd(Y.node,Y.offset),te.addRange(X))}}}}for(fe=[],te=R;te=te.parentNode;)te.nodeType===1&&fe.push({element:te,left:te.scrollLeft,top:te.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<fe.length;R++){var ce=fe[R];ce.element.scrollLeft=ce.left,ce.element.scrollTop=ce.top}}sf=!!Yp,jp=Yp=null}finally{xt=f,ae.p=o,F.T=u}}n.current=a,yn=2}}function mS(){if(yn===2){yn=0;var n=Va,a=Pu,u=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||u){u=F.T,F.T=null;var o=ae.p;ae.p=2;var f=xt;xt|=4;try{G3(n,a.alternate,a)}finally{xt=f,ae.p=o,F.T=u}}yn=3}}function gS(){if(yn===4||yn===3){yn=0,ke();var n=Va,a=Pu,u=Uu,o=rS;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?yn=5:(yn=0,Pu=Va=null,bS(n,n.pendingLanes));var f=n.pendingLanes;if(f===0&&(qa=null),Zl(u),a=a.stateNode,he&&typeof he.onCommitFiberRoot=="function")try{he.onCommitFiberRoot(re,a,void 0,(a.current.flags&128)===128)}catch{}if(o!==null){a=F.T,f=ae.p,ae.p=2,F.T=null;try{for(var m=n.onRecoverableError,C=0;C<o.length;C++){var R=o[C];m(R.value,{componentStack:R.stack})}}finally{F.T=a,ae.p=f}}(Uu&3)!==0&&Kc(),Xr(n),f=n.pendingLanes,(u&4194090)!==0&&(f&42)!==0?n===Np?Mo++:(Mo=0,Np=n):Mo=0,Bo(0)}}function bS(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,mo(a)))}function Kc(n){return pS(),mS(),gS(),ES()}function ES(){if(yn!==5)return!1;var n=Va,a=vp;vp=0;var u=Zl(Uu),o=F.T,f=ae.p;try{ae.p=32>u?32:u,F.T=null,u=Rp,Rp=null;var m=Va,C=Uu;if(yn=0,Pu=Va=null,Uu=0,(xt&6)!==0)throw Error(i(331));var R=xt;if(xt|=4,tS(m.current),Z3(m,m.current,C,u),xt=R,Bo(0,!1),he&&typeof he.onPostCommitFiberRoot=="function")try{he.onPostCommitFiberRoot(re,m)}catch{}return!0}finally{ae.p=f,F.T=o,bS(n,a)}}function yS(n,a,u){a=br(u,a),a=up(n.stateNode,a,2),n=Ma(n,a,2),n!==null&&(ea(n,2),Xr(n))}function wt(n,a,u){if(n.tag===3)yS(n,n,u);else for(;a!==null;){if(a.tag===3){yS(a,n,u);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(qa===null||!qa.has(o))){n=br(u,n),u=A3(2),o=Ma(a,u,2),o!==null&&(x3(u,o,a,n),ea(o,2),Xr(o));break}}a=a.return}}function Dp(n,a,u){var o=n.pingCache;if(o===null){o=n.pingCache=new p7;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)||(Cp=!0,f.add(u),n=y7.bind(null,n,a,u),a.then(n,n))}function y7(n,a,u){var o=n.pingCache;o!==null&&o.delete(a),n.pingedLanes|=n.suspendedLanes&u,n.warmLanes&=~u,Pt===n&&(lt&u)===u&&(Gt===4||Gt===3&&(lt&62914560)===lt&&300>Me()-_p?(xt&2)===0&&Hu(n,0):Ap|=u,Bu===lt&&(Bu=0)),Xr(n)}function TS(n,a){a===0&&(a=tc()),n=Su(n,a),n!==null&&(ea(n,a),Xr(n))}function T7(n){var a=n.memoizedState,u=0;a!==null&&(u=a.retryLane),TS(n,u)}function S7(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),TS(n,u)}function C7(n,a){return Oe(n,a)}var Wc=null,zu=null,wp=!1,Zc=!1,Lp=!1,Di=0;function Xr(n){n!==zu&&n.next===null&&(zu===null?Wc=zu=n:zu=zu.next=n),Zc=!0,wp||(wp=!0,x7())}function Bo(n,a){if(!Lp&&Zc){Lp=!0;do for(var u=!1,o=Wc;o!==null;){if(n!==0){var f=o.pendingLanes;if(f===0)var m=0;else{var C=o.suspendedLanes,R=o.pingedLanes;m=(1<<31-Ae(42|n)+1)-1,m&=f&~(C&~R),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(u=!0,xS(o,m))}else m=lt,m=nn(o,o===Pt?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(m&3)===0||Hn(o,m)||(u=!0,xS(o,m));o=o.next}while(u);Lp=!1}}function A7(){SS()}function SS(){Zc=wp=!1;var n=0;Di!==0&&(D7()&&(n=Di),Di=0);for(var a=Me(),u=null,o=Wc;o!==null;){var f=o.next,m=CS(o,a);m===0?(o.next=null,u===null?Wc=f:u.next=f,f===null&&(zu=u)):(u=o,(n!==0||(m&3)!==0)&&(Zc=!0)),o=f}Bo(n)}function CS(n,a){for(var u=n.suspendedLanes,o=n.pingedLanes,f=n.expirationTimes,m=n.pendingLanes&-62914561;0<m;){var C=31-Ae(m),R=1<<C,H=f[C];H===-1?((R&u)===0||(R&o)!==0)&&(f[C]=Fn(R,a)):H<=a&&(n.expiredLanes|=R),m&=~R}if(a=Pt,u=lt,u=nn(n,n===a?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o=n.callbackNode,u===0||n===a&&(_t===2||_t===9)||n.cancelPendingCommit!==null)return o!==null&&o!==null&&Ce(o),n.callbackNode=null,n.callbackPriority=0;if((u&3)===0||Hn(n,u)){if(a=u&-u,a===n.callbackPriority)return a;switch(o!==null&&Ce(o),Zl(u)){case 2:case 8:u=$e;break;case 32:u=ct;break;case 268435456:u=un;break;default:u=ct}return o=AS.bind(null,n),u=Oe(u,o),n.callbackPriority=a,n.callbackNode=u,a}return o!==null&&o!==null&&Ce(o),n.callbackPriority=2,n.callbackNode=null,2}function AS(n,a){if(yn!==0&&yn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var u=n.callbackNode;if(Kc()&&n.callbackNode!==u)return null;var o=lt;return o=nn(n,n===Pt?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),o===0?null:(iS(n,o,a),CS(n,Me()),n.callbackNode!=null&&n.callbackNode===u?AS.bind(null,n):null)}function xS(n,a){if(Kc())return null;iS(n,a,!0)}function x7(){L7(function(){(xt&6)!==0?Oe(qe,A7):SS()})}function Mp(){return Di===0&&(Di=pi()),Di}function _S(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:sc(""+n)}function vS(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 _7(n,a,u,o,f){if(a==="submit"&&u&&u.stateNode===f){var m=_S((f[Ge]||null).action),C=o.submitter;C&&(a=(a=C[Ge]||null)?_S(a.formAction):C.getAttribute("formAction"),a!==null&&(m=a,C=null));var R=new hc("action","action",null,o,f);n.push({event:R,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Di!==0){var H=C?vS(f,C):new FormData(f);tp(u,{pending:!0,data:H,method:f.method,action:m},null,H)}}else typeof m=="function"&&(R.preventDefault(),H=C?vS(f,C):new FormData(f),tp(u,{pending:!0,data:H,method:f.method,action:m},m,H))},currentTarget:f}]})}}for(var Bp=0;Bp<Th.length;Bp++){var Pp=Th[Bp],v7=Pp.toLowerCase(),R7=Pp[0].toUpperCase()+Pp.slice(1);vr(v7,"on"+R7)}vr(iT,"onAnimationEnd"),vr(uT,"onAnimationIteration"),vr(lT,"onAnimationStart"),vr("dblclick","onDoubleClick"),vr("focusin","onFocus"),vr("focusout","onBlur"),vr(qM,"onTransitionRun"),vr(VM,"onTransitionStart"),vr(GM,"onTransitionCancel"),vr(oT,"onTransitionEnd"),fu("onMouseEnter",["mouseout","mouseover"]),fu("onMouseLeave",["mouseout","mouseover"]),fu("onPointerEnter",["pointerout","pointerover"]),fu("onPointerLeave",["pointerout","pointerover"]),gi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),gi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),gi("onBeforeInput",["compositionend","keypress","textInput","paste"]),gi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),gi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),gi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Po="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(" "),N7=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Po));function RS(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 m=void 0;if(a)for(var C=o.length-1;0<=C;C--){var R=o[C],H=R.instance,W=R.currentTarget;if(R=R.listener,H!==m&&f.isPropagationStopped())break e;m=R,f.currentTarget=W;try{m(f)}catch(se){Hc(se)}f.currentTarget=null,m=H}else for(C=0;C<o.length;C++){if(R=o[C],H=R.instance,W=R.currentTarget,R=R.listener,H!==m&&f.isPropagationStopped())break e;m=R,f.currentTarget=W;try{m(f)}catch(se){Hc(se)}f.currentTarget=null,m=H}}}}function rt(n,a){var u=a[zn];u===void 0&&(u=a[zn]=new Set);var o=n+"__bubble";u.has(o)||(NS(a,n,2,!1),u.add(o))}function Up(n,a,u){var o=0;a&&(o|=4),NS(u,n,o,a)}var Jc="_reactListening"+Math.random().toString(36).slice(2);function Hp(n){if(!n[Jc]){n[Jc]=!0,Sy.forEach(function(u){u!=="selectionchange"&&(N7.has(u)||Up(u,!1,n),Up(u,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[Jc]||(a[Jc]=!0,Up("selectionchange",!1,a))}}function NS(n,a,u,o){switch(ZS(a)){case 2:var f=tB;break;case 8:f=nB;break;default:f=Jp}u=f.bind(null,a,u,n),f=void 0,!lh||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 Fp(n,a,u,o,f){var m=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var C=o.tag;if(C===3||C===4){var R=o.stateNode.containerInfo;if(R===f)break;if(C===4)for(C=o.return;C!==null;){var H=C.tag;if((H===3||H===4)&&C.stateNode.containerInfo===f)return;C=C.return}for(;R!==null;){if(C=ou(R),C===null)return;if(H=C.tag,H===5||H===6||H===26||H===27){o=m=C;continue e}R=R.parentNode}}o=o.return}My(function(){var W=m,se=ih(u),fe=[];e:{var ee=sT.get(n);if(ee!==void 0){var te=hc,je=n;switch(n){case"keypress":if(fc(u)===0)break e;case"keydown":case"keyup":te=CM;break;case"focusin":je="focus",te=fh;break;case"focusout":je="blur",te=fh;break;case"beforeblur":case"afterblur":te=fh;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":te=Uy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":te=cM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":te=_M;break;case iT:case uT:case lT:te=hM;break;case oT:te=RM;break;case"scroll":case"scrollend":te=oM;break;case"wheel":te=OM;break;case"copy":case"cut":case"paste":te=mM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":te=Fy;break;case"toggle":case"beforetoggle":te=IM}var He=(a&4)!==0,Ot=!He&&(n==="scroll"||n==="scrollend"),G=He?ee!==null?ee+"Capture":null:ee;He=[];for(var Y=W,X;Y!==null;){var ce=Y;if(X=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||X===null||G===null||(ce=to(Y,G),ce!=null&&He.push(Uo(Y,ce,X))),Ot)break;Y=Y.return}0<He.length&&(ee=new te(ee,je,null,u,se),fe.push({event:ee,listeners:He}))}}if((a&7)===0){e:{if(ee=n==="mouseover"||n==="pointerover",te=n==="mouseout"||n==="pointerout",ee&&u!==ah&&(je=u.relatedTarget||u.fromElement)&&(ou(je)||je[At]))break e;if((te||ee)&&(ee=se.window===se?se:(ee=se.ownerDocument)?ee.defaultView||ee.parentWindow:window,te?(je=u.relatedTarget||u.toElement,te=W,je=je?ou(je):null,je!==null&&(Ot=s(je),He=je.tag,je!==Ot||He!==5&&He!==27&&He!==6)&&(je=null)):(te=null,je=W),te!==je)){if(He=Uy,ce="onMouseLeave",G="onMouseEnter",Y="mouse",(n==="pointerout"||n==="pointerover")&&(He=Fy,ce="onPointerLeave",G="onPointerEnter",Y="pointer"),Ot=te==null?ee:eo(te),X=je==null?ee:eo(je),ee=new He(ce,Y+"leave",te,u,se),ee.target=Ot,ee.relatedTarget=X,ce=null,ou(se)===W&&(He=new He(G,Y+"enter",je,u,se),He.target=X,He.relatedTarget=Ot,ce=He),Ot=ce,te&&je)t:{for(He=te,G=je,Y=0,X=He;X;X=Yu(X))Y++;for(X=0,ce=G;ce;ce=Yu(ce))X++;for(;0<Y-X;)He=Yu(He),Y--;for(;0<X-Y;)G=Yu(G),X--;for(;Y--;){if(He===G||G!==null&&He===G.alternate)break t;He=Yu(He),G=Yu(G)}He=null}else He=null;te!==null&&OS(fe,ee,te,He,!1),je!==null&&Ot!==null&&OS(fe,Ot,je,He,!0)}}e:{if(ee=W?eo(W):window,te=ee.nodeName&&ee.nodeName.toLowerCase(),te==="select"||te==="input"&&ee.type==="file")var ve=Xy;else if(Gy(ee))if(Qy)ve=zM;else{ve=HM;var et=UM}else te=ee.nodeName,!te||te.toLowerCase()!=="input"||ee.type!=="checkbox"&&ee.type!=="radio"?W&&rh(W.elementType)&&(ve=Xy):ve=FM;if(ve&&(ve=ve(n,W))){$y(fe,ve,u,se);break e}et&&et(n,ee,W),n==="focusout"&&W&&ee.type==="number"&&W.memoizedProps.value!=null&&nh(ee,"number",ee.value)}switch(et=W?eo(W):window,n){case"focusin":(Gy(et)||et.contentEditable==="true")&&(Eu=et,bh=W,so=null);break;case"focusout":so=bh=Eu=null;break;case"mousedown":Eh=!0;break;case"contextmenu":case"mouseup":case"dragend":Eh=!1,rT(fe,u,se);break;case"selectionchange":if(jM)break;case"keydown":case"keyup":rT(fe,u,se)}var De;if(hh)e:{switch(n){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else bu?qy(n,u)&&(ze="onCompositionEnd"):n==="keydown"&&u.keyCode===229&&(ze="onCompositionStart");ze&&(zy&&u.locale!=="ko"&&(bu||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&bu&&(De=By()):(Ia=se,oh="value"in Ia?Ia.value:Ia.textContent,bu=!0)),et=ef(W,ze),0<et.length&&(ze=new Hy(ze,n,null,u,se),fe.push({event:ze,listeners:et}),De?ze.data=De:(De=Vy(u),De!==null&&(ze.data=De)))),(De=wM?LM(n,u):MM(n,u))&&(ze=ef(W,"onBeforeInput"),0<ze.length&&(et=new Hy("onBeforeInput","beforeinput",null,u,se),fe.push({event:et,listeners:ze}),et.data=De)),_7(fe,n,W,u,se)}RS(fe,a)})}function Uo(n,a,u){return{instance:n,listener:a,currentTarget:u}}function ef(n,a){for(var u=a+"Capture",o=[];n!==null;){var f=n,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=to(n,u),f!=null&&o.unshift(Uo(n,f,m)),f=to(n,a),f!=null&&o.push(Uo(n,f,m))),n.tag===3)return o;n=n.return}return[]}function Yu(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function OS(n,a,u,o,f){for(var m=a._reactName,C=[];u!==null&&u!==o;){var R=u,H=R.alternate,W=R.stateNode;if(R=R.tag,H!==null&&H===o)break;R!==5&&R!==26&&R!==27||W===null||(H=W,f?(W=to(u,m),W!=null&&C.unshift(Uo(u,W,H))):f||(W=to(u,m),W!=null&&C.push(Uo(u,W,H)))),u=u.return}C.length!==0&&n.push({event:a,listeners:C})}var O7=/\r\n?/g,k7=/\u0000|\uFFFD/g;function kS(n){return(typeof n=="string"?n:""+n).replace(O7,`
41
+ `).replace(k7,"")}function IS(n,a){return a=kS(a),kS(n)===a}function tf(){}function Nt(n,a,u,o,f,m){switch(u){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||pu(n,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&pu(n,""+o);break;case"className":uc(n,"class",o);break;case"tabIndex":uc(n,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":uc(n,u,o);break;case"style":wy(n,o,m);break;case"data":if(a!=="object"){uc(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=sc(""+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 m=="function"&&(u==="formAction"?(a!=="input"&&Nt(n,a,"name",f.name,f,null),Nt(n,a,"formEncType",f.formEncType,f,null),Nt(n,a,"formMethod",f.formMethod,f,null),Nt(n,a,"formTarget",f.formTarget,f,null)):(Nt(n,a,"encType",f.encType,f,null),Nt(n,a,"method",f.method,f,null),Nt(n,a,"target",f.target,f,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){n.removeAttribute(u);break}o=sc(""+o),n.setAttribute(u,o);break;case"onClick":o!=null&&(n.onclick=tf);break;case"onScroll":o!=null&&rt("scroll",n);break;case"onScrollEnd":o!=null&&rt("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=sc(""+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":rt("beforetoggle",n),rt("toggle",n),ic(n,"popover",o);break;case"xlinkActuate":ra(n,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ra(n,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ra(n,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ra(n,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ra(n,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ra(n,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ra(n,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ra(n,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ra(n,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ic(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=uM.get(u)||u,ic(n,u,o))}}function zp(n,a,u,o,f,m){switch(u){case"style":wy(n,o,m);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"?pu(n,o):(typeof o=="number"||typeof o=="bigint")&&pu(n,""+o);break;case"onScroll":o!=null&&rt("scroll",n);break;case"onScrollEnd":o!=null&&rt("scrollend",n);break;case"onClick":o!=null&&(n.onclick=tf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Cy.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(f=u.endsWith("Capture"),a=u.slice(2,f?u.length-7:void 0),m=n[Ge]||null,m=m!=null?m[u]:null,typeof m=="function"&&n.removeEventListener(a,m,f),typeof o=="function")){typeof m!="function"&&m!==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,""):ic(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":rt("error",n),rt("load",n);var o=!1,f=!1,m;for(m in u)if(u.hasOwnProperty(m)){var C=u[m];if(C!=null)switch(m){case"src":o=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Nt(n,a,m,C,u,null)}}f&&Nt(n,a,"srcSet",u.srcSet,u,null),o&&Nt(n,a,"src",u.src,u,null);return;case"input":rt("invalid",n);var R=m=C=f=null,H=null,W=null;for(o in u)if(u.hasOwnProperty(o)){var se=u[o];if(se!=null)switch(o){case"name":f=se;break;case"type":C=se;break;case"checked":H=se;break;case"defaultChecked":W=se;break;case"value":m=se;break;case"defaultValue":R=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(i(137,a));break;default:Nt(n,a,o,se,u,null)}}Oy(n,m,R,H,W,C,f,!1),lc(n);return;case"select":rt("invalid",n),o=C=m=null;for(f in u)if(u.hasOwnProperty(f)&&(R=u[f],R!=null))switch(f){case"value":m=R;break;case"defaultValue":C=R;break;case"multiple":o=R;default:Nt(n,a,f,R,u,null)}a=m,u=C,n.multiple=!!o,a!=null?hu(n,!!o,a,!1):u!=null&&hu(n,!!o,u,!0);return;case"textarea":rt("invalid",n),m=f=o=null;for(C in u)if(u.hasOwnProperty(C)&&(R=u[C],R!=null))switch(C){case"value":o=R;break;case"defaultValue":f=R;break;case"children":m=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:Nt(n,a,C,R,u,null)}Iy(n,o,f,m),lc(n);return;case"option":for(H in u)if(u.hasOwnProperty(H)&&(o=u[H],o!=null))switch(H){case"selected":n.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Nt(n,a,H,o,u,null)}return;case"dialog":rt("beforetoggle",n),rt("toggle",n),rt("cancel",n),rt("close",n);break;case"iframe":case"object":rt("load",n);break;case"video":case"audio":for(o=0;o<Po.length;o++)rt(Po[o],n);break;case"image":rt("error",n),rt("load",n);break;case"details":rt("toggle",n);break;case"embed":case"source":case"link":rt("error",n),rt("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(W in u)if(u.hasOwnProperty(W)&&(o=u[W],o!=null))switch(W){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Nt(n,a,W,o,u,null)}return;default:if(rh(a)){for(se in u)u.hasOwnProperty(se)&&(o=u[se],o!==void 0&&zp(n,a,se,o,u,void 0));return}}for(R in u)u.hasOwnProperty(R)&&(o=u[R],o!=null&&Nt(n,a,R,o,u,null))}function I7(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,m=null,C=null,R=null,H=null,W=null,se=null;for(te in u){var fe=u[te];if(u.hasOwnProperty(te)&&fe!=null)switch(te){case"checked":break;case"value":break;case"defaultValue":H=fe;default:o.hasOwnProperty(te)||Nt(n,a,te,null,o,fe)}}for(var ee in o){var te=o[ee];if(fe=u[ee],o.hasOwnProperty(ee)&&(te!=null||fe!=null))switch(ee){case"type":m=te;break;case"name":f=te;break;case"checked":W=te;break;case"defaultChecked":se=te;break;case"value":C=te;break;case"defaultValue":R=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(i(137,a));break;default:te!==fe&&Nt(n,a,ee,te,o,fe)}}th(n,C,R,H,W,se,m,f);return;case"select":te=C=R=ee=null;for(m in u)if(H=u[m],u.hasOwnProperty(m)&&H!=null)switch(m){case"value":break;case"multiple":te=H;default:o.hasOwnProperty(m)||Nt(n,a,m,null,o,H)}for(f in o)if(m=o[f],H=u[f],o.hasOwnProperty(f)&&(m!=null||H!=null))switch(f){case"value":ee=m;break;case"defaultValue":R=m;break;case"multiple":C=m;default:m!==H&&Nt(n,a,f,m,o,H)}a=R,u=C,o=te,ee!=null?hu(n,!!u,ee,!1):!!o!=!!u&&(a!=null?hu(n,!!u,a,!0):hu(n,!!u,u?[]:"",!1));return;case"textarea":te=ee=null;for(R in u)if(f=u[R],u.hasOwnProperty(R)&&f!=null&&!o.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Nt(n,a,R,null,o,f)}for(C in o)if(f=o[C],m=u[C],o.hasOwnProperty(C)&&(f!=null||m!=null))switch(C){case"value":ee=f;break;case"defaultValue":te=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(i(91));break;default:f!==m&&Nt(n,a,C,f,o,m)}ky(n,ee,te);return;case"option":for(var je in u)if(ee=u[je],u.hasOwnProperty(je)&&ee!=null&&!o.hasOwnProperty(je))switch(je){case"selected":n.selected=!1;break;default:Nt(n,a,je,null,o,ee)}for(H in o)if(ee=o[H],te=u[H],o.hasOwnProperty(H)&&ee!==te&&(ee!=null||te!=null))switch(H){case"selected":n.selected=ee&&typeof ee!="function"&&typeof ee!="symbol";break;default:Nt(n,a,H,ee,o,te)}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 He in u)ee=u[He],u.hasOwnProperty(He)&&ee!=null&&!o.hasOwnProperty(He)&&Nt(n,a,He,null,o,ee);for(W in o)if(ee=o[W],te=u[W],o.hasOwnProperty(W)&&ee!==te&&(ee!=null||te!=null))switch(W){case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(i(137,a));break;default:Nt(n,a,W,ee,o,te)}return;default:if(rh(a)){for(var Ot in u)ee=u[Ot],u.hasOwnProperty(Ot)&&ee!==void 0&&!o.hasOwnProperty(Ot)&&zp(n,a,Ot,void 0,o,ee);for(se in o)ee=o[se],te=u[se],!o.hasOwnProperty(se)||ee===te||ee===void 0&&te===void 0||zp(n,a,se,ee,o,te);return}}for(var G in u)ee=u[G],u.hasOwnProperty(G)&&ee!=null&&!o.hasOwnProperty(G)&&Nt(n,a,G,null,o,ee);for(fe in o)ee=o[fe],te=u[fe],!o.hasOwnProperty(fe)||ee===te||ee==null&&te==null||Nt(n,a,fe,ee,o,te)}var Yp=null,jp=null;function nf(n){return n.nodeType===9?n:n.ownerDocument}function DS(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 wS(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function qp(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Vp=null;function D7(){var n=window.event;return n&&n.type==="popstate"?n===Vp?!1:(Vp=n,!0):(Vp=null,!1)}var LS=typeof setTimeout=="function"?setTimeout:void 0,w7=typeof clearTimeout=="function"?clearTimeout:void 0,MS=typeof Promise=="function"?Promise:void 0,L7=typeof queueMicrotask=="function"?queueMicrotask:typeof MS<"u"?function(n){return MS.resolve(null).then(n).catch(M7)}:LS;function M7(n){setTimeout(function(){throw n})}function $a(n){return n==="head"}function BS(n,a){var u=a,o=0,f=0;do{var m=u.nextSibling;if(n.removeChild(u),m&&m.nodeType===8)if(u=m.data,u==="/$"){if(0<o&&8>o){u=o;var C=n.ownerDocument;if(u&1&&Ho(C.documentElement),u&2&&Ho(C.body),u&4)for(u=C.head,Ho(u),C=u.firstChild;C;){var R=C.nextSibling,H=C.nodeName;C[na]||H==="SCRIPT"||H==="STYLE"||H==="LINK"&&C.rel.toLowerCase()==="stylesheet"||u.removeChild(C),C=R}}if(f===0){n.removeChild(m),$o(a);return}f--}else u==="$"||u==="$?"||u==="$!"?f++:o=u.charCodeAt(0)-48;else o=0;u=m}while(u);$o(a)}function Gp(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Gp(u),W0(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}n.removeChild(u)}}function B7(n,a,u,o){for(;n.nodeType===1;){var f=u;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(o){if(!n[na])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(m=n.getAttribute("rel"),m==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(m!==f.rel||n.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(m=n.getAttribute("src"),(m!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===m)return n}else return n;if(n=Nr(n.nextSibling),n===null)break}return null}function P7(n,a,u){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!u||(n=Nr(n.nextSibling),n===null))return null;return n}function $p(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function U7(n,a){var u=n.ownerDocument;if(n.data!=="$?"||u.readyState==="complete")a();else{var o=function(){a(),u.removeEventListener("DOMContentLoaded",o)};u.addEventListener("DOMContentLoaded",o),n._reactRetry=o}}function Nr(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return n}var Xp=null;function PS(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 US(n,a,u){switch(a=nf(u),n){case"html":if(n=a.documentElement,!n)throw Error(i(452));return n;case"head":if(n=a.head,!n)throw Error(i(453));return n;case"body":if(n=a.body,!n)throw Error(i(454));return n;default:throw Error(i(451))}}function Ho(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);W0(n)}var Ar=new Map,HS=new Set;function rf(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var ba=ae.d;ae.d={f:H7,r:F7,D:z7,C:Y7,L:j7,m:q7,X:G7,S:V7,M:$7};function H7(){var n=ba.f(),a=Xc();return n||a}function F7(n){var a=su(n);a!==null&&a.tag===5&&a.type==="form"?i3(a):ba.r(n)}var ju=typeof document>"u"?null:document;function FS(n,a,u){var o=ju;if(o&&typeof a=="string"&&a){var f=gr(a);f='link[rel="'+n+'"][href="'+f+'"]',typeof u=="string"&&(f+='[crossorigin="'+u+'"]'),HS.has(f)||(HS.add(f),n={rel:n,crossOrigin:u,href:a},o.querySelector(f)===null&&(a=o.createElement("link"),Tn(a,"link",n),dn(a),o.head.appendChild(a)))}}function z7(n){ba.D(n),FS("dns-prefetch",n,null)}function Y7(n,a){ba.C(n,a),FS("preconnect",n,a)}function j7(n,a,u){ba.L(n,a,u);var o=ju;if(o&&n&&a){var f='link[rel="preload"][as="'+gr(a)+'"]';a==="image"&&u&&u.imageSrcSet?(f+='[imagesrcset="'+gr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(f+='[imagesizes="'+gr(u.imageSizes)+'"]')):f+='[href="'+gr(n)+'"]';var m=f;switch(a){case"style":m=qu(n);break;case"script":m=Vu(n)}Ar.has(m)||(n=b({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:n,as:a},u),Ar.set(m,n),o.querySelector(f)!==null||a==="style"&&o.querySelector(Fo(m))||a==="script"&&o.querySelector(zo(m))||(a=o.createElement("link"),Tn(a,"link",n),dn(a),o.head.appendChild(a)))}}function q7(n,a){ba.m(n,a);var u=ju;if(u&&n){var o=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+gr(o)+'"][href="'+gr(n)+'"]',m=f;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Vu(n)}if(!Ar.has(m)&&(n=b({rel:"modulepreload",href:n},a),Ar.set(m,n),u.querySelector(f)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(zo(m)))return}o=u.createElement("link"),Tn(o,"link",n),dn(o),u.head.appendChild(o)}}}function V7(n,a,u){ba.S(n,a,u);var o=ju;if(o&&n){var f=cu(o).hoistableStyles,m=qu(n);a=a||"default";var C=f.get(m);if(!C){var R={loading:0,preload:null};if(C=o.querySelector(Fo(m)))R.loading=5;else{n=b({rel:"stylesheet",href:n,"data-precedence":a},u),(u=Ar.get(m))&&Qp(n,u);var H=C=o.createElement("link");dn(H),Tn(H,"link",n),H._p=new Promise(function(W,se){H.onload=W,H.onerror=se}),H.addEventListener("load",function(){R.loading|=1}),H.addEventListener("error",function(){R.loading|=2}),R.loading|=4,af(C,a,o)}C={type:"stylesheet",instance:C,count:1,state:R},f.set(m,C)}}}function G7(n,a){ba.X(n,a);var u=ju;if(u&&n){var o=cu(u).hoistableScripts,f=Vu(n),m=o.get(f);m||(m=u.querySelector(zo(f)),m||(n=b({src:n,async:!0},a),(a=Ar.get(f))&&Kp(n,a),m=u.createElement("script"),dn(m),Tn(m,"link",n),u.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(f,m))}}function $7(n,a){ba.M(n,a);var u=ju;if(u&&n){var o=cu(u).hoistableScripts,f=Vu(n),m=o.get(f);m||(m=u.querySelector(zo(f)),m||(n=b({src:n,async:!0,type:"module"},a),(a=Ar.get(f))&&Kp(n,a),m=u.createElement("script"),dn(m),Tn(m,"link",n),u.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},o.set(f,m))}}function zS(n,a,u,o){var f=(f=Te.current)?rf(f):null;if(!f)throw Error(i(446));switch(n){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=qu(u.href),u=cu(f).hoistableStyles,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 m=cu(f).hoistableStyles,C=m.get(n);if(C||(f=f.ownerDocument||f,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(n,C),(m=f.querySelector(Fo(n)))&&!m._p&&(C.instance=m,C.state.loading=5),Ar.has(n)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Ar.set(n,u),m||X7(f,n,u,C.state))),a&&o===null)throw Error(i(528,""));return C}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=Vu(u),u=cu(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="'+gr(n)+'"'}function Fo(n){return'link[rel="stylesheet"]['+n+"]"}function YS(n){return b({},n,{"data-precedence":n.precedence,precedence:null})}function X7(n,a,u,o){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=n.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),Tn(a,"link",u),dn(a),n.head.appendChild(a))}function Vu(n){return'[src="'+gr(n)+'"]'}function zo(n){return"script[async]"+n}function jS(n,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var o=n.querySelector('style[data-href~="'+gr(u.href)+'"]');if(o)return a.instance=o,dn(o),o;var f=b({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return o=(n.ownerDocument||n).createElement("style"),dn(o),Tn(o,"style",f),af(o,u.precedence,n),a.instance=o;case"stylesheet":f=qu(u.href);var m=n.querySelector(Fo(f));if(m)return a.state.loading|=4,a.instance=m,dn(m),m;o=YS(u),(f=Ar.get(f))&&Qp(o,f),m=(n.ownerDocument||n).createElement("link"),dn(m);var C=m;return C._p=new Promise(function(R,H){C.onload=R,C.onerror=H}),Tn(m,"link",o),a.state.loading|=4,af(m,u.precedence,n),a.instance=m;case"script":return m=Vu(u.src),(f=n.querySelector(zo(m)))?(a.instance=f,dn(f),f):(o=u,(f=Ar.get(m))&&(o=b({},u),Kp(o,f)),n=n.ownerDocument||n,f=n.createElement("script"),dn(f),Tn(f,"link",o),n.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,af(o,u.precedence,n));return a.instance}function af(n,a,u){for(var o=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=o.length?o[o.length-1]:null,m=f,C=0;C<o.length;C++){var R=o[C];if(R.dataset.precedence===a)m=R;else if(m!==f)break}m?m.parentNode.insertBefore(n,m.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(n,a.firstChild))}function Qp(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function Kp(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var uf=null;function qS(n,a,u){if(uf===null){var o=new Map,f=uf=new Map;f.set(u,o)}else f=uf,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 m=u[f];if(!(m[na]||m[Ye]||n==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var C=m.getAttribute(a)||"";C=n+C;var R=o.get(C);R?R.push(m):o.set(C,[m])}}return o}function VS(n,a,u){n=n.ownerDocument||n,n.head.insertBefore(u,a==="title"?n.querySelector("head > title"):null)}function Q7(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 GS(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var Yo=null;function K7(){}function W7(n,a,u){if(Yo===null)throw Error(i(475));var o=Yo;if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var f=qu(u.href),m=n.querySelector(Fo(f));if(m){n=m._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(o.count++,o=lf.bind(o),n.then(o,o)),a.state.loading|=4,a.instance=m,dn(m);return}m=n.ownerDocument||n,u=YS(u),(f=Ar.get(f))&&Qp(u,f),m=m.createElement("link"),dn(m);var C=m;C._p=new Promise(function(R,H){C.onload=R,C.onerror=H}),Tn(m,"link",u),a.instance=m}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(o.count++,a=lf.bind(o),n.addEventListener("load",a),n.addEventListener("error",a))}}function Z7(){if(Yo===null)throw Error(i(475));var n=Yo;return n.stylesheets&&n.count===0&&Wp(n,n.stylesheets),0<n.count?function(a){var u=setTimeout(function(){if(n.stylesheets&&Wp(n,n.stylesheets),n.unsuspend){var o=n.unsuspend;n.unsuspend=null,o()}},6e4);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(u)}}:null}function lf(){if(this.count--,this.count===0){if(this.stylesheets)Wp(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var of=null;function Wp(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,of=new Map,a.forEach(J7,n),of=null,lf.call(n))}function J7(n,a){if(!(a.state.loading&4)){var u=of.get(n);if(u)var o=u.get(null);else{u=new Map,of.set(n,u);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var C=f[m];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(u.set(C.dataset.precedence,C),o=C)}o&&u.set(null,o)}f=a.instance,C=f.getAttribute("data-precedence"),m=u.get(C)||o,m===o&&u.set(null,f),u.set(C,f),this.count++,o=lf.bind(this),f.addEventListener("load",o),f.addEventListener("error",o),m?m.parentNode.insertBefore(f,m.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),a.state.loading|=4}}var jo={$$typeof:M,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function eB(n,a,u,o,f,m,C,R){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Kl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kl(0),this.hiddenUpdates=Kl(null),this.identifierPrefix=o,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function $S(n,a,u,o,f,m,C,R,H,W,se,fe){return n=new eB(n,a,u,C,R,H,W,fe),a=1,m===!0&&(a|=24),m=er(3,null,null,a),n.current=m,m.stateNode=n,a=Dh(),a.refCount++,n.pooledCache=a,a.refCount++,m.memoizedState={element:o,isDehydrated:u,cache:a},Bh(m),n}function XS(n){return n?(n=Cu,n):Cu}function QS(n,a,u,o,f,m){f=XS(f),o.context===null?o.context=f:o.pendingContext=f,o=La(a),o.payload={element:u},m=m===void 0?null:m,m!==null&&(o.callback=m),u=Ma(n,o,a),u!==null&&(ir(u,n,a),yo(u,n,a))}function KS(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var u=n.retryLane;n.retryLane=u!==0&&u<a?u:a}}function Zp(n,a){KS(n,a),(n=n.alternate)&&KS(n,a)}function WS(n){if(n.tag===13){var a=Su(n,67108864);a!==null&&ir(a,n,67108864),Zp(n,67108864)}}var sf=!0;function tB(n,a,u,o){var f=F.T;F.T=null;var m=ae.p;try{ae.p=2,Jp(n,a,u,o)}finally{ae.p=m,F.T=f}}function nB(n,a,u,o){var f=F.T;F.T=null;var m=ae.p;try{ae.p=8,Jp(n,a,u,o)}finally{ae.p=m,F.T=f}}function Jp(n,a,u,o){if(sf){var f=em(o);if(f===null)Fp(n,a,o,cf,u),JS(n,o);else if(aB(f,n,a,u,o))o.stopPropagation();else if(JS(n,o),a&4&&-1<rB.indexOf(n)){for(;f!==null;){var m=su(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var C=fn(m.pendingLanes);if(C!==0){var R=m;for(R.pendingLanes|=2,R.entangledLanes|=2;C;){var H=1<<31-Ae(C);R.entanglements[1]|=H,C&=~H}Xr(m),(xt&6)===0&&(Gc=Me()+500,Bo(0))}}break;case 13:R=Su(m,2),R!==null&&ir(R,m,2),Xc(),Zp(m,2)}if(m=em(o),m===null&&Fp(n,a,o,cf,u),m===f)break;f=m}f!==null&&o.stopPropagation()}else Fp(n,a,o,null,u)}}function em(n){return n=ih(n),tm(n)}var cf=null;function tm(n){if(cf=null,n=ou(n),n!==null){var a=s(n);if(a===null)n=null;else{var u=a.tag;if(u===13){if(n=c(a),n!==null)return n;n=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return cf=n,null}function ZS(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Fe()){case qe:return 2;case $e:return 8;case ct:case Ie:return 32;case un:return 268435456;default:return 32}default:return 32}}var nm=!1,Xa=null,Qa=null,Ka=null,qo=new Map,Vo=new Map,Wa=[],rB="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 JS(n,a){switch(n){case"focusin":case"focusout":Xa=null;break;case"dragenter":case"dragleave":Qa=null;break;case"mouseover":case"mouseout":Ka=null;break;case"pointerover":case"pointerout":qo.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vo.delete(a.pointerId)}}function Go(n,a,u,o,f,m){return n===null||n.nativeEvent!==m?(n={blockedOn:a,domEventName:u,eventSystemFlags:o,nativeEvent:m,targetContainers:[f]},a!==null&&(a=su(a),a!==null&&WS(a)),n):(n.eventSystemFlags|=o,a=n.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),n)}function aB(n,a,u,o,f){switch(a){case"focusin":return Xa=Go(Xa,n,a,u,o,f),!0;case"dragenter":return Qa=Go(Qa,n,a,u,o,f),!0;case"mouseover":return Ka=Go(Ka,n,a,u,o,f),!0;case"pointerover":var m=f.pointerId;return qo.set(m,Go(qo.get(m)||null,n,a,u,o,f)),!0;case"gotpointercapture":return m=f.pointerId,Vo.set(m,Go(Vo.get(m)||null,n,a,u,o,f)),!0}return!1}function eC(n){var a=ou(n.target);if(a!==null){var u=s(a);if(u!==null){if(a=u.tag,a===13){if(a=c(u),a!==null){n.blockedOn=a,xe(n.priority,function(){if(u.tag===13){var o=ar();o=Wl(o);var f=Su(u,o);f!==null&&ir(f,u,o),Zp(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 ff(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var u=em(n.nativeEvent);if(u===null){u=n.nativeEvent;var o=new u.constructor(u.type,u);ah=o,u.target.dispatchEvent(o),ah=null}else return a=su(u),a!==null&&WS(a),n.blockedOn=u,!1;a.shift()}return!0}function tC(n,a,u){ff(n)&&u.delete(a)}function iB(){nm=!1,Xa!==null&&ff(Xa)&&(Xa=null),Qa!==null&&ff(Qa)&&(Qa=null),Ka!==null&&ff(Ka)&&(Ka=null),qo.forEach(tC),Vo.forEach(tC)}function df(n,a){n.blockedOn===a&&(n.blockedOn=null,nm||(nm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,iB)))}var hf=null;function nC(n){hf!==n&&(hf=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){hf===n&&(hf=null);for(var a=0;a<n.length;a+=3){var u=n[a],o=n[a+1],f=n[a+2];if(typeof o!="function"){if(tm(o||u)===null)continue;break}var m=su(u);m!==null&&(n.splice(a,3),a-=3,tp(m,{pending:!0,data:f,method:u.method,action:o},o,f))}}))}function $o(n){function a(H){return df(H,n)}Xa!==null&&df(Xa,n),Qa!==null&&df(Qa,n),Ka!==null&&df(Ka,n),qo.forEach(a),Vo.forEach(a);for(var u=0;u<Wa.length;u++){var o=Wa[u];o.blockedOn===n&&(o.blockedOn=null)}for(;0<Wa.length&&(u=Wa[0],u.blockedOn===null);)eC(u),u.blockedOn===null&&Wa.shift();if(u=(n.ownerDocument||n).$$reactFormReplay,u!=null)for(o=0;o<u.length;o+=3){var f=u[o],m=u[o+1],C=f[Ge]||null;if(typeof m=="function")C||nC(u);else if(C){var R=null;if(m&&m.hasAttribute("formAction")){if(f=m,C=m[Ge]||null)R=C.formAction;else if(tm(f)!==null)continue}else R=C.action;typeof R=="function"?u[o+1]=R:(u.splice(o,3),o-=3),nC(u)}}}function rm(n){this._internalRoot=n}pf.prototype.render=rm.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(i(409));var u=a.current,o=ar();QS(u,o,n,a,null,null)},pf.prototype.unmount=rm.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;QS(n.current,2,null,n,null,null),Xc(),a[At]=null}};function pf(n){this._internalRoot=n}pf.prototype.unstable_scheduleHydration=function(n){if(n){var a=ac();n={blockedOn:null,target:n,priority:a};for(var u=0;u<Wa.length&&a!==0&&a<Wa[u].priority;u++);Wa.splice(u,0,n),u===0&&eC(n)}};var rC=t.version;if(rC!=="19.1.0")throw Error(i(527,rC,"19.1.0"));ae.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(i(188)):(n=Object.keys(n).join(","),Error(i(268,n)));return n=h(a),n=n!==null?p(n):null,n=n===null?null:n.stateNode,n};var uB={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mf.isDisabled&&mf.supportsFiber)try{re=mf.inject(uB),he=mf}catch{}}return Gu.createRoot=function(n,a){if(!l(n))throw Error(i(299));var u=!1,o="",f=y3,m=T3,C=S3,R=null;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(C=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(R=a.unstable_transitionCallbacks)),a=$S(n,1,!1,null,null,u,o,f,m,C,R,null),n[At]=a.current,Hp(n),new rm(a)},Gu.hydrateRoot=function(n,a,u){if(!l(n))throw Error(i(299));var o=!1,f="",m=y3,C=T3,R=S3,H=null,W=null;return u!=null&&(u.unstable_strictMode===!0&&(o=!0),u.identifierPrefix!==void 0&&(f=u.identifierPrefix),u.onUncaughtError!==void 0&&(m=u.onUncaughtError),u.onCaughtError!==void 0&&(C=u.onCaughtError),u.onRecoverableError!==void 0&&(R=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(H=u.unstable_transitionCallbacks),u.formState!==void 0&&(W=u.formState)),a=$S(n,1,!0,a,u??null,o,f,m,C,R,H,W),a.context=XS(null),u=a.current,o=ar(),o=Wl(o),f=La(o),f.callback=null,Ma(u,f,o),u=o,a.current.lanes=u,ea(a,u),Xr(a),n[At]=a.current,Hp(n),new pf(a)},Gu.version="19.1.0",Gu}var hm;function cC(){if(hm)return Ef.exports;hm=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ef.exports=sC(),Ef.exports}var fC=cC();function Ja(){return Ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ja.apply(null,arguments)}function dC(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 hC(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 pC=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(hC(this));var l=this.tags[this.tags.length-1];if(this.isSpeedy){var s=dC(l);try{s.insertRule(i,s.cssRules.length)}catch{}}else l.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var l;return(l=i.parentNode)==null?void 0:l.removeChild(i)}),this.tags=[],this.ctr=0},e}(),Cn="-ms-",Ko="-moz-",dt="-webkit-",pm="comm",Cf="rule",Af="decl",mC="@import",mm="@keyframes",gC="@layer",bC=Math.abs,Wo=String.fromCharCode,EC=Object.assign;function yC(e,t){return gn(e,0)^45?(((t<<2^gn(e,0))<<2^gn(e,1))<<2^gn(e,2))<<2^gn(e,3):0}function gm(e){return e.trim()}function TC(e,t){return(e=t.exec(e))?e[0]:e}function ht(e,t,r){return e.replace(t,r)}function xf(e,t){return e.indexOf(t)}function gn(e,t){return e.charCodeAt(t)|0}function $u(e,t,r){return e.slice(t,r)}function Or(e){return e.length}function _f(e){return e.length}function Zo(e,t){return t.push(e),e}function SC(e,t){return e.map(t).join("")}var Jo=1,wi=1,bm=0,wn=0,Wt=0,Li="";function es(e,t,r,i,l,s,c){return{value:e,root:t,parent:r,type:i,props:l,children:s,line:Jo,column:wi,length:c,return:""}}function Xu(e,t){return EC(es("",null,null,"",null,null,0),e,{length:-e.length},t)}function CC(){return Wt}function AC(){return Wt=wn>0?gn(Li,--wn):0,wi--,Wt===10&&(wi=1,Jo--),Wt}function $n(){return Wt=wn<bm?gn(Li,wn++):0,wi++,Wt===10&&(wi=1,Jo++),Wt}function kr(){return gn(Li,wn)}function ts(){return wn}function Qu(e,t){return $u(Li,e,t)}function Ku(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Em(e){return Jo=wi=1,bm=Or(Li=e),wn=0,[]}function ym(e){return Li="",e}function ns(e){return gm(Qu(wn-1,vf(e===91?e+2:e===40?e+1:e)))}function xC(e){for(;(Wt=kr())&&Wt<33;)$n();return Ku(e)>2||Ku(Wt)>3?"":" "}function _C(e,t){for(;--t&&$n()&&!(Wt<48||Wt>102||Wt>57&&Wt<65||Wt>70&&Wt<97););return Qu(e,ts()+(t<6&&kr()==32&&$n()==32))}function vf(e){for(;$n();)switch(Wt){case e:return wn;case 34:case 39:e!==34&&e!==39&&vf(Wt);break;case 40:e===41&&vf(e);break;case 92:$n();break}return wn}function vC(e,t){for(;$n()&&e+Wt!==57;)if(e+Wt===84&&kr()===47)break;return"/*"+Qu(t,wn-1)+"*"+Wo(e===47?e:$n())}function RC(e){for(;!Ku(kr());)$n();return Qu(e,wn)}function NC(e){return ym(rs("",null,null,null,[""],e=Em(e),0,[0],e))}function rs(e,t,r,i,l,s,c,d,h){for(var p=0,b=0,E=c,T=0,y=0,v=0,x=1,B=1,I=1,P=0,M="",w=l,D=s,N=i,z=M;B;)switch(v=P,P=$n()){case 40:if(v!=108&&gn(z,E-1)==58){xf(z+=ht(ns(P),"&","&\f"),"&\f")!=-1&&(I=-1);break}case 34:case 39:case 91:z+=ns(P);break;case 9:case 10:case 13:case 32:z+=xC(v);break;case 92:z+=_C(ts()-1,7);continue;case 47:switch(kr()){case 42:case 47:Zo(OC(vC($n(),ts()),t,r),h);break;default:z+="/"}break;case 123*x:d[p++]=Or(z)*I;case 125*x:case 59:case 0:switch(P){case 0:case 125:B=0;case 59+b:I==-1&&(z=ht(z,/\f/g,"")),y>0&&Or(z)-E&&Zo(y>32?Sm(z+";",i,r,E-1):Sm(ht(z," ","")+";",i,r,E-2),h);break;case 59:z+=";";default:if(Zo(N=Tm(z,t,r,p,b,l,d,M,w=[],D=[],E),s),P===123)if(b===0)rs(z,t,N,N,w,s,E,d,D);else switch(T===99&&gn(z,3)===110?100:T){case 100:case 108:case 109:case 115:rs(e,N,N,i&&Zo(Tm(e,N,N,0,0,l,d,M,l,w=[],E),D),l,D,E,d,i?w:D);break;default:rs(z,N,N,N,[""],D,0,d,D)}}p=b=y=0,x=I=1,M=z="",E=c;break;case 58:E=1+Or(z),y=v;default:if(x<1){if(P==123)--x;else if(P==125&&x++==0&&AC()==125)continue}switch(z+=Wo(P),P*x){case 38:I=b>0?1:(z+="\f",-1);break;case 44:d[p++]=(Or(z)-1)*I,I=1;break;case 64:kr()===45&&(z+=ns($n())),T=kr(),b=E=Or(M=z+=RC(ts())),P++;break;case 45:v===45&&Or(z)==2&&(x=0)}}return s}function Tm(e,t,r,i,l,s,c,d,h,p,b){for(var E=l-1,T=l===0?s:[""],y=_f(T),v=0,x=0,B=0;v<i;++v)for(var I=0,P=$u(e,E+1,E=bC(x=c[v])),M=e;I<y;++I)(M=gm(x>0?T[I]+" "+P:ht(P,/&\f/g,T[I])))&&(h[B++]=M);return es(e,t,r,l===0?Cf:d,h,p,b)}function OC(e,t,r){return es(e,t,r,pm,Wo(CC()),$u(e,2,-2),0)}function Sm(e,t,r,i){return es(e,t,r,Af,$u(e,0,i),$u(e,i+1,-1),i)}function Mi(e,t){for(var r="",i=_f(e),l=0;l<i;l++)r+=t(e[l],l,e,t)||"";return r}function kC(e,t,r,i){switch(e.type){case gC:if(e.children.length)break;case mC:case Af:return e.return=e.return||e.value;case pm:return"";case mm:return e.return=e.value+"{"+Mi(e.children,i)+"}";case Cf:e.value=e.props.join(",")}return Or(r=Mi(e.children,i))?e.return=e.value+"{"+r+"}":""}function IC(e){var t=_f(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 DC(e){return function(t){t.root||(t=t.return)&&e(t)}}function Cm(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var wC=function(t,r,i){for(var l=0,s=0;l=s,s=kr(),l===38&&s===12&&(r[i]=1),!Ku(s);)$n();return Qu(t,wn)},LC=function(t,r){var i=-1,l=44;do switch(Ku(l)){case 0:l===38&&kr()===12&&(r[i]=1),t[i]+=wC(wn-1,r,i);break;case 2:t[i]+=ns(l);break;case 4:if(l===44){t[++i]=kr()===58?"&\f":"",r[i]=t[i].length;break}default:t[i]+=Wo(l)}while(l=$n());return t},MC=function(t,r){return ym(LC(Em(t),r))},Am=new WeakMap,BC=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&&!Am.get(i))&&!l){Am.set(t,!0);for(var s=[],c=MC(r,s),d=i.props,h=0,p=0;h<c.length;h++)for(var b=0;b<d.length;b++,p++)t.props[p]=s[h]?c[h].replace(/&\f/g,d[b]):d[b]+" "+c[h]}}},PC=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function xm(e,t){switch(yC(e,t)){case 5103:return dt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return dt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dt+e+Ko+e+Cn+e+e;case 6828:case 4268:return dt+e+Cn+e+e;case 6165:return dt+e+Cn+"flex-"+e+e;case 5187:return dt+e+ht(e,/(\w+).+(:[^]+)/,dt+"box-$1$2"+Cn+"flex-$1$2")+e;case 5443:return dt+e+Cn+"flex-item-"+ht(e,/flex-|-self/,"")+e;case 4675:return dt+e+Cn+"flex-line-pack"+ht(e,/align-content|flex-|-self/,"")+e;case 5548:return dt+e+Cn+ht(e,"shrink","negative")+e;case 5292:return dt+e+Cn+ht(e,"basis","preferred-size")+e;case 6060:return dt+"box-"+ht(e,"-grow","")+dt+e+Cn+ht(e,"grow","positive")+e;case 4554:return dt+ht(e,/([^-])(transform)/g,"$1"+dt+"$2")+e;case 6187:return ht(ht(ht(e,/(zoom-|grab)/,dt+"$1"),/(image-set)/,dt+"$1"),e,"")+e;case 5495:case 3959:return ht(e,/(image-set\([^]*)/,dt+"$1$`$1");case 4968:return ht(ht(e,/(.+:)(flex-)?(.*)/,dt+"box-pack:$3"+Cn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dt+e+e;case 4095:case 3583:case 4068:case 2532:return ht(e,/(.+)-inline(.+)/,dt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Or(e)-1-t>6)switch(gn(e,t+1)){case 109:if(gn(e,t+4)!==45)break;case 102:return ht(e,/(.+:)(.+)-([^]+)/,"$1"+dt+"$2-$3$1"+Ko+(gn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~xf(e,"stretch")?xm(ht(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(gn(e,t+1)!==115)break;case 6444:switch(gn(e,Or(e)-3-(~xf(e,"!important")&&10))){case 107:return ht(e,":",":"+dt)+e;case 101:return ht(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dt+(gn(e,14)===45?"inline-":"")+"box$3$1"+dt+"$2$3$1"+Cn+"$2box$3")+e}break;case 5936:switch(gn(e,t+11)){case 114:return dt+e+Cn+ht(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dt+e+Cn+ht(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dt+e+Cn+ht(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dt+e+Cn+e+e}return e}var UC=function(t,r,i,l){if(t.length>-1&&!t.return)switch(t.type){case Af:t.return=xm(t.value,t.length);break;case mm:return Mi([Xu(t,{value:ht(t.value,"@","@"+dt)})],l);case Cf:if(t.length)return SC(t.props,function(s){switch(TC(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mi([Xu(t,{props:[ht(s,/:(read-\w+)/,":"+Ko+"$1")]})],l);case"::placeholder":return Mi([Xu(t,{props:[ht(s,/:(plac\w+)/,":"+dt+"input-$1")]}),Xu(t,{props:[ht(s,/:(plac\w+)/,":"+Ko+"$1")]}),Xu(t,{props:[ht(s,/:(plac\w+)/,Cn+"input-$1")]})],l)}return""})}},HC=[UC],_m=function(t){var r=t.key;if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(x){var B=x.getAttribute("data-emotion");B.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var 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 B=x.getAttribute("data-emotion").split(" "),I=1;I<B.length;I++)s[B[I]]=!0;d.push(x)});var h,p=[BC,PC];{var b,E=[kC,DC(function(x){b.insert(x)})],T=IC(p.concat(l,E)),y=function(B){return Mi(NC(B),T)};h=function(B,I,P,M){b=P,y(B?B+"{"+I.styles+"}":I.styles),M&&(v.inserted[I.name]=!0)}}var v={key:r,sheet:new pC({key:r,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:h};return v.sheet.hydrate(d),v},Rf={exports:{}},Et={};/** @license React v16.13.1
42
42
  * react-is.production.min.js
43
43
  *
44
44
  * Copyright (c) Facebook, Inc. and its affiliates.
45
45
  *
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
- */var vm;function FC(){if(vm)return bt;vm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,E=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,B=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function M(D){if(typeof D=="object"&&D!==null){var N=D.$$typeof;switch(N){case t:switch(D=D.type,D){case h:case p:case i:case s:case o:case b:return D;default:switch(D=D&&D.$$typeof,D){case d:case E:case v:case y:case c:return D;default:return N}}case r:return N}}}function w(D){return M(D)===p}return bt.AsyncMode=h,bt.ConcurrentMode=p,bt.ContextConsumer=d,bt.ContextProvider=c,bt.Element=t,bt.ForwardRef=E,bt.Fragment=i,bt.Lazy=v,bt.Memo=y,bt.Portal=r,bt.Profiler=s,bt.StrictMode=o,bt.Suspense=b,bt.isAsyncMode=function(D){return w(D)||M(D)===h},bt.isConcurrentMode=w,bt.isContextConsumer=function(D){return M(D)===d},bt.isContextProvider=function(D){return M(D)===c},bt.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===t},bt.isForwardRef=function(D){return M(D)===E},bt.isFragment=function(D){return M(D)===i},bt.isLazy=function(D){return M(D)===v},bt.isMemo=function(D){return M(D)===y},bt.isPortal=function(D){return M(D)===r},bt.isProfiler=function(D){return M(D)===s},bt.isStrictMode=function(D){return M(D)===o},bt.isSuspense=function(D){return M(D)===b},bt.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===i||D===p||D===s||D===o||D===b||D===T||typeof D=="object"&&D!==null&&(D.$$typeof===v||D.$$typeof===y||D.$$typeof===c||D.$$typeof===d||D.$$typeof===E||D.$$typeof===B||D.$$typeof===I||D.$$typeof===P||D.$$typeof===x)},bt.typeOf=M,bt}var Rm;function zC(){return Rm||(Rm=1,Rf.exports=FC()),Rf.exports}var Nf,Nm;function YC(){if(Nm)return Nf;Nm=1;var e=zC(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=i,s[e.Memo]=o;function c(v){return e.isMemo(v)?o:s[v.$$typeof]||t}var d=Object.defineProperty,h=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,E=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,T=Object.prototype;function y(v,x,B){if(typeof x!="string"){if(T){var I=b(x);I&&I!==T&&y(v,I,B)}var P=h(x);p&&(P=P.concat(p(x)));for(var M=c(v),w=c(x),D=0;D<P.length;++D){var N=P[D];if(!r[N]&&!(B&&B[N])&&!(w&&w[N])&&!(M&&M[N])){var z=E(x,N);try{d(v,N,z)}catch{}}}}return v}return Nf=y,Nf}YC();var jC=!0;function Om(e,t,r){var i="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}var Of=function(t,r,i){var o=t.key+"-"+r.name;(i===!1||jC===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},kf=function(t,r,i){Of(t,r,i);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function qC(e){for(var t=0,r,i=0,o=e.length;o>=4;++i,o-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var VC={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},GC=/[A-Z]|^ms/g,$C=/_EMO_([^_]+?)_([^]*?)_EMO_/g,km=function(t){return t.charCodeAt(1)===45},Im=function(t){return t!=null&&typeof t!="boolean"},If=Cm(function(e){return km(e)?e:e.replace(GC,"-$&").toLowerCase()}),Dm=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace($C,function(i,o,s){return Ir={name:o,styles:s,next:Ir},o})}return VC[t]!==1&&!km(t)&&typeof r=="number"&&r!==0?r+"px":r};function Wu(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Ir={name:o.name,styles:o.styles,next:Ir},o.name;var s=r;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)Ir={name:c.name,styles:c.styles,next:Ir},c=c.next;var d=s.styles+";";return d}return XC(e,t,r)}case"function":{if(e!==void 0){var h=Ir,p=r(e);return Ir=h,Wu(e,t,p)}break}}var E=r;if(t==null)return E;var b=t[E];return b!==void 0?b:E}function XC(e,t,r){var i="";if(Array.isArray(r))for(var o=0;o<r.length;o++)i+=Wu(e,t,r[o])+";";else for(var s in r){var c=r[s];if(typeof c!="object"){var d=c;t!=null&&t[d]!==void 0?i+=s+"{"+t[d]+"}":Im(d)&&(i+=If(s)+":"+Dm(s,d)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var h=0;h<c.length;h++)Im(c[h])&&(i+=If(s)+":"+Dm(s,c[h])+";");else{var p=Wu(e,t,c);switch(s){case"animation":case"animationName":{i+=If(s)+":"+p+";";break}default:i+=s+"{"+p+"}"}}}return i}var wm=/label:\s*([^\s;{]+)\s*(;|$)/g,Ir;function Zu(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,o="";Ir=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,o+=Wu(r,t,s);else{var c=s;o+=c[0]}for(var d=1;d<e.length;d++)if(o+=Wu(r,t,e[d]),i){var h=s;o+=h[d]}wm.lastIndex=0;for(var p="",E;(E=wm.exec(o))!==null;)p+="-"+E[1];var b=qC(o)+p;return{name:b,styles:o,next:Ir}}var QC=function(t){return t()},Lm=Ef.useInsertionEffect?Ef.useInsertionEffect:!1,Mm=Lm||QC,Bm=Lm||A.useLayoutEffect,Pm=A.createContext(typeof HTMLElement<"u"?_m({key:"css"}):null),KC=Pm.Provider,Df=function(t){return A.forwardRef(function(r,i){var o=A.useContext(Pm);return t(r,o,i)})},Bi=A.createContext({}),WC=function(){return A.useContext(Bi)},wf={}.hasOwnProperty,Lf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ZC=function(t,r){var i={};for(var o in r)wf.call(r,o)&&(i[o]=r[o]);return i[Lf]=t,i},JC=function(t){var r=t.cache,i=t.serialized,o=t.isStringTag;return Of(r,i,o),Mm(function(){return kf(r,i,o)}),null},e6=Df(function(e,t,r){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[Lf],s=[i],c="";typeof e.className=="string"?c=Om(t.registered,s,e.className):e.className!=null&&(c=e.className+" ");var d=Zu(s,void 0,A.useContext(Bi));c+=t.key+"-"+d.name;var h={};for(var p in e)wf.call(e,p)&&p!=="css"&&p!==Lf&&(h[p]=e[p]);return h.className=c,r&&(h.ref=r),A.createElement(A.Fragment,null,A.createElement(JC,{cache:t,serialized:d,isStringTag:typeof o=="string"}),A.createElement(o,h))}),t6=e6,Um=function(t,r){var i=arguments;if(r==null||!wf.call(r,"css"))return A.createElement.apply(void 0,i);var o=i.length,s=new Array(o);s[0]=t6,s[1]=ZC(t,r);for(var c=2;c<o;c++)s[c]=i[c];return A.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Um||(Um={}));var n6=Df(function(e,t){var r=e.styles,i=Zu([r],void 0,A.useContext(Bi)),o=A.useRef();return Bm(function(){var s=t.key+"-global",c=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),d=!1,h=document.querySelector('style[data-emotion="'+s+" "+i.name+'"]');return t.sheet.tags.length&&(c.before=t.sheet.tags[0]),h!==null&&(d=!0,h.setAttribute("data-emotion",s),c.hydrate([h])),o.current=[c,d],function(){c.flush()}},[t]),Bm(function(){var s=o.current,c=s[0],d=s[1];if(d){s[1]=!1;return}if(i.next!==void 0&&kf(t,i.next,!0),c.tags.length){var h=c.tags[c.tags.length-1].nextElementSibling;c.before=h,c.flush()}t.insert("",i,c,!1)},[t,i.name]),null});function Pi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Zu(t)}function Ju(){var e=Pi.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var r6=/^((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)-.*))$/,a6=Cm(function(e){return r6.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),i6=a6,u6=function(t){return t!=="theme"},Hm=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?i6:u6},Fm=function(t,r,i){var o;if(r){var s=r.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(c){return t.__emotion_forwardProp(c)&&s(c)}:s}return typeof o!="function"&&i&&(o=t.__emotion_forwardProp),o},o6=function(t){var r=t.cache,i=t.serialized,o=t.isStringTag;return Of(r,i,o),Mm(function(){return kf(r,i,o)}),null},l6=function e(t,r){var i=t.__emotion_real===t,o=i&&t.__emotion_base||t,s,c;r!==void 0&&(s=r.label,c=r.target);var d=Fm(t,r,i),h=d||Hm(o),p=!h("as");return function(){var E=arguments,b=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&b.push("label:"+s+";"),E[0]==null||E[0].raw===void 0)b.push.apply(b,E);else{var T=E[0];b.push(T[0]);for(var y=E.length,v=1;v<y;v++)b.push(E[v],T[v])}var x=Df(function(B,I,P){var M=p&&B.as||o,w="",D=[],N=B;if(B.theme==null){N={};for(var z in B)N[z]=B[z];N.theme=A.useContext(Bi)}typeof B.className=="string"?w=Om(I.registered,D,B.className):B.className!=null&&(w=B.className+" ");var V=Zu(b.concat(D),I.registered,N);w+=I.key+"-"+V.name,c!==void 0&&(w+=" "+c);var j=p&&d===void 0?Hm(M):h,_={};for(var q in B)p&&q==="as"||j(q)&&(_[q]=B[q]);return _.className=w,P&&(_.ref=P),A.createElement(A.Fragment,null,A.createElement(o6,{cache:I,serialized:V,isStringTag:typeof M=="string"}),A.createElement(M,_))});return x.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=o,x.__emotion_styles=b,x.__emotion_forwardProp=d,Object.defineProperty(x,"toString",{value:function(){return"."+c}}),x.withComponent=function(B,I){var P=e(B,Ja({},r,I,{shouldForwardProp:Fm(x,I,!0)}));return P.apply(void 0,b)},x}},s6=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],He=l6.bind(null);s6.forEach(function(e){He[e]=He(e)});function sB(){}function cB(){}function zm(e){const t=[],r=String(e||"");let i=r.indexOf(","),o=0,s=!1;for(;!s;){i===-1&&(i=r.length,s=!0);const c=r.slice(o,i).trim();(c||!s)&&t.push(c),o=i+1,i=r.indexOf(",",o)}return t}function Ym(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const c6=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,f6=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,d6={};function jm(e,t){return(d6.jsx?f6:c6).test(e)}const h6=/[ \t\n\f\r]/g;function p6(e){return typeof e=="object"?e.type==="text"?qm(e.value):!1:qm(e)}function qm(e){return e.replace(h6,"")===""}let eo=class{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}};eo.prototype.normal={},eo.prototype.property={},eo.prototype.space=void 0;function Vm(e,t){const r={},i={};for(const o of e)Object.assign(r,o.property),Object.assign(i,o.normal);return new eo(r,i,t)}function to(e){return e.toLowerCase()}let Ln=class{constructor(t,r){this.attribute=r,this.property=t}};Ln.prototype.attribute="",Ln.prototype.booleanish=!1,Ln.prototype.boolean=!1,Ln.prototype.commaOrSpaceSeparated=!1,Ln.prototype.commaSeparated=!1,Ln.prototype.defined=!1,Ln.prototype.mustUseProperty=!1,Ln.prototype.number=!1,Ln.prototype.overloadedBoolean=!1,Ln.prototype.property="",Ln.prototype.spaceSeparated=!1,Ln.prototype.space=void 0;let m6=0;const Qe=ei(),Zt=ei(),Gm=ei(),be=ei(),Lt=ei(),Ui=ei(),Xn=ei();function ei(){return 2**++m6}const Mf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Qe,booleanish:Zt,commaOrSpaceSeparated:Xn,commaSeparated:Ui,number:be,overloadedBoolean:Gm,spaceSeparated:Lt},Symbol.toStringTag,{value:"Module"})),Bf=Object.keys(Mf);let Pf=class extends Ln{constructor(t,r,i,o){let s=-1;if(super(t,r),$m(this,"space",o),typeof i=="number")for(;++s<Bf.length;){const c=Bf[s];$m(this,Bf[s],(i&Mf[c])===Mf[c])}}};Pf.prototype.defined=!0;function $m(e,t,r){r&&(e[t]=r)}function Hi(e){const t={},r={};for(const[i,o]of Object.entries(e.properties)){const s=new Pf(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[to(i)]=i,r[to(s.attribute)]=i}return new eo(t,r,e.space)}const Xm=Hi({properties:{ariaActiveDescendant:null,ariaAtomic:Zt,ariaAutoComplete:null,ariaBusy:Zt,ariaChecked:Zt,ariaColCount:be,ariaColIndex:be,ariaColSpan:be,ariaControls:Lt,ariaCurrent:null,ariaDescribedBy:Lt,ariaDetails:null,ariaDisabled:Zt,ariaDropEffect:Lt,ariaErrorMessage:null,ariaExpanded:Zt,ariaFlowTo:Lt,ariaGrabbed:Zt,ariaHasPopup:null,ariaHidden:Zt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Lt,ariaLevel:be,ariaLive:null,ariaModal:Zt,ariaMultiLine:Zt,ariaMultiSelectable:Zt,ariaOrientation:null,ariaOwns:Lt,ariaPlaceholder:null,ariaPosInSet:be,ariaPressed:Zt,ariaReadOnly:Zt,ariaRelevant:null,ariaRequired:Zt,ariaRoleDescription:Lt,ariaRowCount:be,ariaRowIndex:be,ariaRowSpan:be,ariaSelected:Zt,ariaSetSize:be,ariaSort:null,ariaValueMax:be,ariaValueMin:be,ariaValueNow:be,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Qm(e,t){return t in e?e[t]:t}function Km(e,t){return Qm(e,t.toLowerCase())}const g6=Hi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ui,acceptCharset:Lt,accessKey:Lt,action:null,allow:null,allowFullScreen:Qe,allowPaymentRequest:Qe,allowUserMedia:Qe,alt:null,as:null,async:Qe,autoCapitalize:null,autoComplete:Lt,autoFocus:Qe,autoPlay:Qe,blocking:Lt,capture:null,charSet:null,checked:Qe,cite:null,className:Lt,cols:be,colSpan:null,content:null,contentEditable:Zt,controls:Qe,controlsList:Lt,coords:be|Ui,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qe,defer:Qe,dir:null,dirName:null,disabled:Qe,download:Gm,draggable:Zt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qe,formTarget:null,headers:Lt,height:be,hidden:Qe,high:be,href:null,hrefLang:null,htmlFor:Lt,httpEquiv:Lt,id:null,imageSizes:null,imageSrcSet:null,inert:Qe,inputMode:null,integrity:null,is:null,isMap:Qe,itemId:null,itemProp:Lt,itemRef:Lt,itemScope:Qe,itemType:Lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qe,low:be,manifest:null,max:null,maxLength:be,media:null,method:null,min:null,minLength:be,multiple:Qe,muted:Qe,name:null,nonce:null,noModule:Qe,noValidate:Qe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Qe,optimum:be,pattern:null,ping:Lt,placeholder:null,playsInline:Qe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qe,referrerPolicy:null,rel:Lt,required:Qe,reversed:Qe,rows:be,rowSpan:be,sandbox:Lt,scope:null,scoped:Qe,seamless:Qe,selected:Qe,shadowRootClonable:Qe,shadowRootDelegatesFocus:Qe,shadowRootMode:null,shape:null,size:be,sizes:null,slot:null,span:be,spellCheck:Zt,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:Qe,useMap:null,value:Zt,width:be,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Lt,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:Qe,declare:Qe,event:null,face:null,frame:null,frameBorder:null,hSpace:be,leftMargin:be,link:null,longDesc:null,lowSrc:null,marginHeight:be,marginWidth:be,noResize:Qe,noHref:Qe,noShade:Qe,noWrap:Qe,object:null,profile:null,prompt:null,rev:null,rightMargin:be,rules:null,scheme:null,scrolling:Zt,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:Qe,disableRemotePlayback:Qe,prefix:null,property:null,results:be,security:null,unselectable:null},space:"html",transform:Km}),E6=Hi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Xn,accentHeight: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: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:be,diffuseConstant:be,direction:null,display:null,dur:null,divisor:be,dominantBaseline:null,download:Qe,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:Ui,g2:Ui,glyphName:Ui,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:be,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:be,horizOriginX:be,horizOriginY:be,id:null,ideographic:be,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:be,k:be,k1:be,k2:be,k3:be,k4:be,kernelMatrix:Xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:be,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:be,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:be,overlineThickness:be,paintOrder:null,panose1:null,path:null,pathLength:be,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Lt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:be,pointsAtY:be,pointsAtZ:be,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xn,rev:Xn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xn,requiredFeatures:Xn,requiredFonts:Xn,requiredFormats:Xn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:be,specularExponent:be,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:be,strikethroughThickness:be,string:null,stroke:null,strokeDashArray:Xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:be,strokeOpacity:be,strokeWidth:null,style:null,surfaceScale:be,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xn,tabIndex:be,tableValues:null,target:null,targetX:be,targetY:be,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:be,underlineThickness:be,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:be,values:null,vAlphabetic:be,vMathematical:be,vectorEffect:null,vHanging:be,vIdeographic:be,version:null,vertAdvY:be,vertOriginX:be,vertOriginY:be,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:be,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Qm}),Wm=Hi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Zm=Hi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Km}),Jm=Hi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),b6={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"},y6=/[A-Z]/g,e1=/-[a-z]/g,T6=/^data[-\w.:]+$/i;function Uf(e,t){const r=to(t);let i=t,o=Ln;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&T6.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(e1,C6);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!e1.test(s)){let c=s.replace(y6,S6);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}o=Pf}return new o(i,t)}function S6(e){return"-"+e.toLowerCase()}function C6(e){return e.charAt(1).toUpperCase()}const as=Vm([Xm,g6,Wm,Zm,Jm],"html"),Fi=Vm([Xm,E6,Wm,Zm,Jm],"svg");function t1(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function n1(e){return e.join(" ").trim()}var zi={},Hf,r1;function A6(){if(r1)return Hf;r1=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,h=`
49
- `,p="/",E="*",b="",T="comment",y="declaration";Hf=function(x,B){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];B=B||{};var I=1,P=1;function M(J){var Z=J.match(t);Z&&(I+=Z.length);var ne=J.lastIndexOf(h);P=~ne?J.length-ne:P+J.length}function w(){var J={line:I,column:P};return function(Z){return Z.position=new D(J),V(),Z}}function D(J){this.start=J,this.end={line:I,column:P},this.source=B.source}D.prototype.content=x;function N(J){var Z=new Error(B.source+":"+I+":"+P+": "+J);if(Z.reason=J,Z.filename=B.source,Z.line=I,Z.column=P,Z.source=x,!B.silent)throw Z}function z(J){var Z=J.exec(x);if(Z){var ne=Z[0];return M(ne),x=x.slice(ne.length),Z}}function V(){z(r)}function j(J){var Z;for(J=J||[];Z=_();)Z!==!1&&J.push(Z);return J}function _(){var J=w();if(!(p!=x.charAt(0)||E!=x.charAt(1))){for(var Z=2;b!=x.charAt(Z)&&(E!=x.charAt(Z)||p!=x.charAt(Z+1));)++Z;if(Z+=2,b===x.charAt(Z-1))return N("End of comment missing");var ne=x.slice(2,Z-2);return P+=2,M(ne),x=x.slice(Z),P+=2,J({type:T,comment:ne})}}function q(){var J=w(),Z=z(i);if(Z){if(_(),!z(o))return N("property missing ':'");var ne=z(s),F=J({type:y,property:v(Z[0].replace(e,b)),value:ne?v(ne[0].replace(e,b)):b});return z(c),F}}function $(){var J=[];j(J);for(var Z;Z=q();)Z!==!1&&(J.push(Z),j(J));return J}return V(),$()};function v(x){return x?x.replace(d,b):b}return Hf}var a1;function x6(){if(a1)return zi;a1=1;var e=zi&&zi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(zi,"__esModule",{value:!0}),zi.default=r;var t=e(A6());function r(i,o){var s=null;if(!i||typeof i!="string")return s;var c=(0,t.default)(i),d=typeof o=="function";return c.forEach(function(h){if(h.type==="declaration"){var p=h.property,E=h.value;d?o(p,E,h):E&&(s=s||{},s[p]=E)}}),s}return zi}var no={},i1;function _6(){if(i1)return no;i1=1,Object.defineProperty(no,"__esModule",{value:!0}),no.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(p){return!p||r.test(p)||e.test(p)},c=function(p,E){return E.toUpperCase()},d=function(p,E){return"".concat(E,"-")},h=function(p,E){return E===void 0&&(E={}),s(p)?p:(p=p.toLowerCase(),E.reactCompat?p=p.replace(o,d):p=p.replace(i,d),p.replace(t,c))};return no.camelCase=h,no}var ro,u1;function v6(){if(u1)return ro;u1=1;var e=ro&&ro.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(x6()),r=_6();function i(o,s){var c={};return!o||typeof o!="string"||(0,t.default)(o,function(d,h){d&&h&&(c[(0,r.camelCase)(d,s)]=h)}),c}return i.default=i,ro=i,ro}var R6=v6();const N6=or(R6),is=o1("end"),Dr=o1("start");function o1(e){return t;function t(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function O6(e){const t=Dr(e),r=is(e);if(t&&r)return{start:t,end:r}}function ao(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?l1(e.position):"start"in e||"end"in e?l1(e):"line"in e||"column"in e?Ff(e):""}function Ff(e){return s1(e&&e.line)+":"+s1(e&&e.column)}function l1(e){return Ff(e&&e.start)+"-"+Ff(e&&e.end)}function s1(e){return e&&typeof e=="number"?e:1}class An extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let o="",s={},c=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof t=="string"?o=t:!s.cause&&t&&(c=!0,o=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const h=i.indexOf(":");h===-1?s.ruleId=i:(s.source=i.slice(0,h),s.ruleId=i.slice(h+1))}if(!s.place&&s.ancestors&&s.ancestors){const h=s.ancestors[s.ancestors.length-1];h&&(s.place=h.position)}const d=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=d?d.line:void 0,this.name=ao(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}An.prototype.file="",An.prototype.name="",An.prototype.reason="",An.prototype.message="",An.prototype.stack="",An.prototype.column=void 0,An.prototype.line=void 0,An.prototype.ancestors=void 0,An.prototype.cause=void 0,An.prototype.fatal=void 0,An.prototype.place=void 0,An.prototype.ruleId=void 0,An.prototype.source=void 0;const zf={}.hasOwnProperty,k6=new Map,I6=/[A-Z]/g,D6=new Set(["table","tbody","thead","tfoot","tr"]),w6=new Set(["td","th"]),c1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function L6(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=Y6(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=z6(r,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Fi:as,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=f1(o,e,void 0);return s&&typeof s!="string"?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}function f1(e,t,r){if(t.type==="element")return M6(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return B6(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return U6(e,t,r);if(t.type==="mdxjsEsm")return P6(e,t);if(t.type==="root")return H6(e,t,r);if(t.type==="text")return F6(e,t)}function M6(e,t,r){const i=e.schema;let o=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(o=Fi,e.schema=o),e.ancestors.push(t);const s=h1(e,t.tagName,!1),c=j6(e,t);let d=jf(e,t);return D6.has(t.tagName)&&(d=d.filter(function(h){return typeof h=="string"?!p6(h):!0})),d1(e,c,s,t),Yf(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,r)}function B6(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}io(e,t.position)}function P6(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);io(e,t.position)}function U6(e,t,r){const i=e.schema;let o=i;t.name==="svg"&&i.space==="html"&&(o=Fi,e.schema=o),e.ancestors.push(t);const s=t.name===null?e.Fragment:h1(e,t.name,!0),c=q6(e,t),d=jf(e,t);return d1(e,c,s,t),Yf(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,r)}function H6(e,t,r){const i={};return Yf(i,jf(e,t)),e.create(t,e.Fragment,i,r)}function F6(e,t){return t.value}function d1(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function Yf(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function z6(e,t,r){return i;function i(o,s,c,d){const p=Array.isArray(c.children)?r:t;return d?p(s,c,d):p(s,c)}}function Y6(e,t){return r;function r(i,o,s,c){const d=Array.isArray(s.children),h=Dr(i);return t(o,s,c,d,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function j6(e,t){const r={};let i,o;for(o in t.properties)if(o!=="children"&&zf.call(t.properties,o)){const s=V6(e,o,t.properties[o]);if(s){const[c,d]=s;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&w6.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 q6(e,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const c=s.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else io(e,t.position);else{const o=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const d=i.value.data.estree.body[0];d.type,s=e.evaluater.evaluateExpression(d.expression)}else io(e,t.position);else s=i.value===null?!0:i.value;r[o]=s}return r}function jf(e,t){const r=[];let i=-1;const o=e.passKeys?new Map:k6;for(;++i<t.children.length;){const s=t.children[i];let c;if(e.passKeys){const h=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(h){const p=o.get(h)||0;c=h+"-"+p,o.set(h,p+1)}}const d=f1(e,s,c);d!==void 0&&r.push(d)}return r}function V6(e,t,r){const i=Uf(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?Ym(r):n1(r)),i.property==="style"){let o=typeof r=="object"?r:G6(e,String(r));return e.stylePropertyNameCase==="css"&&(o=$6(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&i.space?b6[i.property]||i.property:i.attribute,r]}}function G6(e,t){try{return N6(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,o=new An("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=c1+"#cannot-parse-style-attribute",o}}function h1(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let s=-1,c;for(;++s<o.length;){const d=jm(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}i=c}else i=jm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const o=i.value;return zf.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(i);io(e)}function io(e,t){const r=new An("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=c1+"#cannot-handle-mdx-estrees-without-createevaluater",r}function $6(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(I6,Q6);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Q6(e){return"-"+e.toLowerCase()}const qf={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var Vf={exports:{}},uo={};/**
48
+ */var vm;function FC(){if(vm)return Et;vm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,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,h=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,b=e?Symbol.for("react.forward_ref"):60112,E=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,B=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function M(D){if(typeof D=="object"&&D!==null){var N=D.$$typeof;switch(N){case t:switch(D=D.type,D){case h:case p:case i:case s:case l:case E:return D;default:switch(D=D&&D.$$typeof,D){case d:case b:case v:case y:case c:return D;default:return N}}case r:return N}}}function w(D){return M(D)===p}return Et.AsyncMode=h,Et.ConcurrentMode=p,Et.ContextConsumer=d,Et.ContextProvider=c,Et.Element=t,Et.ForwardRef=b,Et.Fragment=i,Et.Lazy=v,Et.Memo=y,Et.Portal=r,Et.Profiler=s,Et.StrictMode=l,Et.Suspense=E,Et.isAsyncMode=function(D){return w(D)||M(D)===h},Et.isConcurrentMode=w,Et.isContextConsumer=function(D){return M(D)===d},Et.isContextProvider=function(D){return M(D)===c},Et.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===t},Et.isForwardRef=function(D){return M(D)===b},Et.isFragment=function(D){return M(D)===i},Et.isLazy=function(D){return M(D)===v},Et.isMemo=function(D){return M(D)===y},Et.isPortal=function(D){return M(D)===r},Et.isProfiler=function(D){return M(D)===s},Et.isStrictMode=function(D){return M(D)===l},Et.isSuspense=function(D){return M(D)===E},Et.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===i||D===p||D===s||D===l||D===E||D===T||typeof D=="object"&&D!==null&&(D.$$typeof===v||D.$$typeof===y||D.$$typeof===c||D.$$typeof===d||D.$$typeof===b||D.$$typeof===B||D.$$typeof===I||D.$$typeof===P||D.$$typeof===x)},Et.typeOf=M,Et}var Rm;function zC(){return Rm||(Rm=1,Rf.exports=FC()),Rf.exports}var Nf,Nm;function YC(){if(Nm)return Nf;Nm=1;var e=zC(),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(v){return e.isMemo(v)?l:s[v.$$typeof]||t}var d=Object.defineProperty,h=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,T=Object.prototype;function y(v,x,B){if(typeof x!="string"){if(T){var I=E(x);I&&I!==T&&y(v,I,B)}var P=h(x);p&&(P=P.concat(p(x)));for(var M=c(v),w=c(x),D=0;D<P.length;++D){var N=P[D];if(!r[N]&&!(B&&B[N])&&!(w&&w[N])&&!(M&&M[N])){var z=b(x,N);try{d(v,N,z)}catch{}}}}return v}return Nf=y,Nf}YC();var jC=!0;function Om(e,t,r){var i="";return r.split(" ").forEach(function(l){e[l]!==void 0?t.push(e[l]+";"):l&&(i+=l+" ")}),i}var Of=function(t,r,i){var l=t.key+"-"+r.name;(i===!1||jC===!1)&&t.registered[l]===void 0&&(t.registered[l]=r.styles)},kf=function(t,r,i){Of(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 qC(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 VC={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},GC=/[A-Z]|^ms/g,$C=/_EMO_([^_]+?)_([^]*?)_EMO_/g,km=function(t){return t.charCodeAt(1)===45},Im=function(t){return t!=null&&typeof t!="boolean"},If=Cm(function(e){return km(e)?e:e.replace(GC,"-$&").toLowerCase()}),Dm=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace($C,function(i,l,s){return Ir={name:l,styles:s,next:Ir},l})}return VC[t]!==1&&!km(t)&&typeof r=="number"&&r!==0?r+"px":r};function Wu(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var l=r;if(l.anim===1)return Ir={name:l.name,styles:l.styles,next:Ir},l.name;var s=r;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)Ir={name:c.name,styles:c.styles,next:Ir},c=c.next;var d=s.styles+";";return d}return XC(e,t,r)}case"function":{if(e!==void 0){var h=Ir,p=r(e);return Ir=h,Wu(e,t,p)}break}}var b=r;if(t==null)return b;var E=t[b];return E!==void 0?E:b}function XC(e,t,r){var i="";if(Array.isArray(r))for(var l=0;l<r.length;l++)i+=Wu(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]+"}":Im(d)&&(i+=If(s)+":"+Dm(s,d)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var h=0;h<c.length;h++)Im(c[h])&&(i+=If(s)+":"+Dm(s,c[h])+";");else{var p=Wu(e,t,c);switch(s){case"animation":case"animationName":{i+=If(s)+":"+p+";";break}default:i+=s+"{"+p+"}"}}}return i}var wm=/label:\s*([^\s;{]+)\s*(;|$)/g,Ir;function Zu(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,l="";Ir=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,l+=Wu(r,t,s);else{var c=s;l+=c[0]}for(var d=1;d<e.length;d++)if(l+=Wu(r,t,e[d]),i){var h=s;l+=h[d]}wm.lastIndex=0;for(var p="",b;(b=wm.exec(l))!==null;)p+="-"+b[1];var E=qC(l)+p;return{name:E,styles:l,next:Ir}}var QC=function(t){return t()},Lm=bf.useInsertionEffect?bf.useInsertionEffect:!1,Mm=Lm||QC,Bm=Lm||A.useLayoutEffect,Pm=A.createContext(typeof HTMLElement<"u"?_m({key:"css"}):null),KC=Pm.Provider,Df=function(t){return A.forwardRef(function(r,i){var l=A.useContext(Pm);return t(r,l,i)})},Bi=A.createContext({}),WC=function(){return A.useContext(Bi)},wf={}.hasOwnProperty,Lf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ZC=function(t,r){var i={};for(var l in r)wf.call(r,l)&&(i[l]=r[l]);return i[Lf]=t,i},JC=function(t){var r=t.cache,i=t.serialized,l=t.isStringTag;return Of(r,i,l),Mm(function(){return kf(r,i,l)}),null},e6=Df(function(e,t,r){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var l=e[Lf],s=[i],c="";typeof e.className=="string"?c=Om(t.registered,s,e.className):e.className!=null&&(c=e.className+" ");var d=Zu(s,void 0,A.useContext(Bi));c+=t.key+"-"+d.name;var h={};for(var p in e)wf.call(e,p)&&p!=="css"&&p!==Lf&&(h[p]=e[p]);return h.className=c,r&&(h.ref=r),A.createElement(A.Fragment,null,A.createElement(JC,{cache:t,serialized:d,isStringTag:typeof l=="string"}),A.createElement(l,h))}),t6=e6,Um=function(t,r){var i=arguments;if(r==null||!wf.call(r,"css"))return A.createElement.apply(void 0,i);var l=i.length,s=new Array(l);s[0]=t6,s[1]=ZC(t,r);for(var c=2;c<l;c++)s[c]=i[c];return A.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Um||(Um={}));var n6=Df(function(e,t){var r=e.styles,i=Zu([r],void 0,A.useContext(Bi)),l=A.useRef();return Bm(function(){var s=t.key+"-global",c=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),d=!1,h=document.querySelector('style[data-emotion="'+s+" "+i.name+'"]');return t.sheet.tags.length&&(c.before=t.sheet.tags[0]),h!==null&&(d=!0,h.setAttribute("data-emotion",s),c.hydrate([h])),l.current=[c,d],function(){c.flush()}},[t]),Bm(function(){var s=l.current,c=s[0],d=s[1];if(d){s[1]=!1;return}if(i.next!==void 0&&kf(t,i.next,!0),c.tags.length){var h=c.tags[c.tags.length-1].nextElementSibling;c.before=h,c.flush()}t.insert("",i,c,!1)},[t,i.name]),null});function Pi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Zu(t)}function Ju(){var e=Pi.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var r6=/^((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)-.*))$/,a6=Cm(function(e){return r6.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),i6=a6,u6=function(t){return t!=="theme"},Hm=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?i6:u6},Fm=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},l6=function(t){var r=t.cache,i=t.serialized,l=t.isStringTag;return Of(r,i,l),Mm(function(){return kf(r,i,l)}),null},o6=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=Fm(t,r,i),h=d||Hm(l),p=!h("as");return function(){var b=arguments,E=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&E.push("label:"+s+";"),b[0]==null||b[0].raw===void 0)E.push.apply(E,b);else{var T=b[0];E.push(T[0]);for(var y=b.length,v=1;v<y;v++)E.push(b[v],T[v])}var x=Df(function(B,I,P){var M=p&&B.as||l,w="",D=[],N=B;if(B.theme==null){N={};for(var z in B)N[z]=B[z];N.theme=A.useContext(Bi)}typeof B.className=="string"?w=Om(I.registered,D,B.className):B.className!=null&&(w=B.className+" ");var V=Zu(E.concat(D),I.registered,N);w+=I.key+"-"+V.name,c!==void 0&&(w+=" "+c);var j=p&&d===void 0?Hm(M):h,_={};for(var q in B)p&&q==="as"||j(q)&&(_[q]=B[q]);return _.className=w,P&&(_.ref=P),A.createElement(A.Fragment,null,A.createElement(l6,{cache:I,serialized:V,isStringTag:typeof M=="string"}),A.createElement(M,_))});return x.displayName=s!==void 0?s:"Styled("+(typeof l=="string"?l:l.displayName||l.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=l,x.__emotion_styles=E,x.__emotion_forwardProp=d,Object.defineProperty(x,"toString",{value:function(){return"."+c}}),x.withComponent=function(B,I){var P=e(B,Ja({},r,I,{shouldForwardProp:Fm(x,I,!0)}));return P.apply(void 0,E)},x}},s6=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Pe=o6.bind(null);s6.forEach(function(e){Pe[e]=Pe(e)});function cB(){}function fB(){}function zm(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 Ym(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const c6=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,f6=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,d6={};function jm(e,t){return(d6.jsx?f6:c6).test(e)}const h6=/[ \t\n\f\r]/g;function p6(e){return typeof e=="object"?e.type==="text"?qm(e.value):!1:qm(e)}function qm(e){return e.replace(h6,"")===""}let el=class{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}};el.prototype.normal={},el.prototype.property={},el.prototype.space=void 0;function Vm(e,t){const r={},i={};for(const l of e)Object.assign(r,l.property),Object.assign(i,l.normal);return new el(r,i,t)}function tl(e){return e.toLowerCase()}let Ln=class{constructor(t,r){this.attribute=r,this.property=t}};Ln.prototype.attribute="",Ln.prototype.booleanish=!1,Ln.prototype.boolean=!1,Ln.prototype.commaOrSpaceSeparated=!1,Ln.prototype.commaSeparated=!1,Ln.prototype.defined=!1,Ln.prototype.mustUseProperty=!1,Ln.prototype.number=!1,Ln.prototype.overloadedBoolean=!1,Ln.prototype.property="",Ln.prototype.spaceSeparated=!1,Ln.prototype.space=void 0;let m6=0;const Qe=ei(),Zt=ei(),Gm=ei(),Ee=ei(),Lt=ei(),Ui=ei(),Xn=ei();function ei(){return 2**++m6}const Mf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Qe,booleanish:Zt,commaOrSpaceSeparated:Xn,commaSeparated:Ui,number:Ee,overloadedBoolean:Gm,spaceSeparated:Lt},Symbol.toStringTag,{value:"Module"})),Bf=Object.keys(Mf);let Pf=class extends Ln{constructor(t,r,i,l){let s=-1;if(super(t,r),$m(this,"space",l),typeof i=="number")for(;++s<Bf.length;){const c=Bf[s];$m(this,Bf[s],(i&Mf[c])===Mf[c])}}};Pf.prototype.defined=!0;function $m(e,t,r){r&&(e[t]=r)}function Hi(e){const t={},r={};for(const[i,l]of Object.entries(e.properties)){const 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[tl(i)]=i,r[tl(s.attribute)]=i}return new el(t,r,e.space)}const Xm=Hi({properties:{ariaActiveDescendant:null,ariaAtomic:Zt,ariaAutoComplete:null,ariaBusy:Zt,ariaChecked:Zt,ariaColCount:Ee,ariaColIndex:Ee,ariaColSpan:Ee,ariaControls:Lt,ariaCurrent:null,ariaDescribedBy:Lt,ariaDetails:null,ariaDisabled:Zt,ariaDropEffect:Lt,ariaErrorMessage:null,ariaExpanded:Zt,ariaFlowTo:Lt,ariaGrabbed:Zt,ariaHasPopup:null,ariaHidden:Zt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Lt,ariaLevel:Ee,ariaLive:null,ariaModal:Zt,ariaMultiLine:Zt,ariaMultiSelectable:Zt,ariaOrientation:null,ariaOwns:Lt,ariaPlaceholder:null,ariaPosInSet:Ee,ariaPressed:Zt,ariaReadOnly:Zt,ariaRelevant:null,ariaRequired:Zt,ariaRoleDescription:Lt,ariaRowCount:Ee,ariaRowIndex:Ee,ariaRowSpan:Ee,ariaSelected:Zt,ariaSetSize:Ee,ariaSort:null,ariaValueMax:Ee,ariaValueMin:Ee,ariaValueNow:Ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Qm(e,t){return t in e?e[t]:t}function Km(e,t){return Qm(e,t.toLowerCase())}const g6=Hi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ui,acceptCharset:Lt,accessKey:Lt,action:null,allow:null,allowFullScreen:Qe,allowPaymentRequest:Qe,allowUserMedia:Qe,alt:null,as:null,async:Qe,autoCapitalize:null,autoComplete:Lt,autoFocus:Qe,autoPlay:Qe,blocking:Lt,capture:null,charSet:null,checked:Qe,cite:null,className:Lt,cols:Ee,colSpan:null,content:null,contentEditable:Zt,controls:Qe,controlsList:Lt,coords:Ee|Ui,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qe,defer:Qe,dir:null,dirName:null,disabled:Qe,download:Gm,draggable:Zt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qe,formTarget:null,headers:Lt,height:Ee,hidden:Qe,high:Ee,href:null,hrefLang:null,htmlFor:Lt,httpEquiv:Lt,id:null,imageSizes:null,imageSrcSet:null,inert:Qe,inputMode:null,integrity:null,is:null,isMap:Qe,itemId:null,itemProp:Lt,itemRef:Lt,itemScope:Qe,itemType:Lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qe,low:Ee,manifest:null,max:null,maxLength:Ee,media:null,method:null,min:null,minLength:Ee,multiple:Qe,muted:Qe,name:null,nonce:null,noModule:Qe,noValidate:Qe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Qe,optimum:Ee,pattern:null,ping:Lt,placeholder:null,playsInline:Qe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qe,referrerPolicy:null,rel:Lt,required:Qe,reversed:Qe,rows:Ee,rowSpan:Ee,sandbox:Lt,scope:null,scoped:Qe,seamless:Qe,selected:Qe,shadowRootClonable:Qe,shadowRootDelegatesFocus:Qe,shadowRootMode:null,shape:null,size:Ee,sizes:null,slot:null,span:Ee,spellCheck:Zt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ee,step:null,style:null,tabIndex:Ee,target:null,title:null,translate:null,type:null,typeMustMatch:Qe,useMap:null,value:Zt,width:Ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Lt,axis:null,background:null,bgColor:null,border:Ee,borderColor:null,bottomMargin:Ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qe,declare:Qe,event:null,face:null,frame:null,frameBorder:null,hSpace:Ee,leftMargin:Ee,link:null,longDesc:null,lowSrc:null,marginHeight:Ee,marginWidth:Ee,noResize:Qe,noHref:Qe,noShade:Qe,noWrap:Qe,object:null,profile:null,prompt:null,rev:null,rightMargin:Ee,rules:null,scheme:null,scrolling:Zt,standby:null,summary:null,text:null,topMargin:Ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Qe,disableRemotePlayback:Qe,prefix:null,property:null,results:Ee,security:null,unselectable:null},space:"html",transform:Km}),b6=Hi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Xn,accentHeight:Ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ee,amplitude:Ee,arabicForm:null,ascent:Ee,attributeName:null,attributeType:null,azimuth:Ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ee,by:null,calcMode:null,capHeight:Ee,className:Lt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ee,diffuseConstant:Ee,direction:null,display:null,dur:null,divisor:Ee,dominantBaseline:null,download:Qe,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ee,enableBackground:null,end:null,event:null,exponent:Ee,externalResourcesRequired:null,fill:null,fillOpacity:Ee,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ui,g2:Ui,glyphName:Ui,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ee,horizOriginX:Ee,horizOriginY:Ee,id:null,ideographic:Ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ee,k:Ee,k1:Ee,k2:Ee,k3:Ee,k4:Ee,kernelMatrix:Xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ee,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ee,overlineThickness:Ee,paintOrder:null,panose1:null,path:null,pathLength:Ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Lt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ee,pointsAtY:Ee,pointsAtZ:Ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xn,rev:Xn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xn,requiredFeatures:Xn,requiredFonts:Xn,requiredFormats:Xn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ee,specularExponent:Ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ee,strikethroughThickness:Ee,string:null,stroke:null,strokeDashArray:Xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ee,strokeOpacity:Ee,strokeWidth:null,style:null,surfaceScale:Ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xn,tabIndex:Ee,tableValues:null,target:null,targetX:Ee,targetY:Ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ee,underlineThickness:Ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ee,values:null,vAlphabetic:Ee,vMathematical:Ee,vectorEffect:null,vHanging:Ee,vIdeographic:Ee,version:null,vertAdvY:Ee,vertOriginX:Ee,vertOriginY:Ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Qm}),Wm=Hi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Zm=Hi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Km}),Jm=Hi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),E6={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"},y6=/[A-Z]/g,e1=/-[a-z]/g,T6=/^data[-\w.:]+$/i;function Uf(e,t){const r=tl(t);let i=t,l=Ln;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&T6.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(e1,C6);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!e1.test(s)){let c=s.replace(y6,S6);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=Pf}return new l(i,t)}function S6(e){return"-"+e.toLowerCase()}function C6(e){return e.charAt(1).toUpperCase()}const as=Vm([Xm,g6,Wm,Zm,Jm],"html"),Fi=Vm([Xm,b6,Wm,Zm,Jm],"svg");function t1(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function n1(e){return e.join(" ").trim()}var zi={},Hf,r1;function A6(){if(r1)return Hf;r1=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,h=`
49
+ `,p="/",b="*",E="",T="comment",y="declaration";Hf=function(x,B){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];B=B||{};var I=1,P=1;function M(J){var Z=J.match(t);Z&&(I+=Z.length);var ne=J.lastIndexOf(h);P=~ne?J.length-ne:P+J.length}function w(){var J={line:I,column:P};return function(Z){return Z.position=new D(J),V(),Z}}function D(J){this.start=J,this.end={line:I,column:P},this.source=B.source}D.prototype.content=x;function N(J){var Z=new Error(B.source+":"+I+":"+P+": "+J);if(Z.reason=J,Z.filename=B.source,Z.line=I,Z.column=P,Z.source=x,!B.silent)throw Z}function z(J){var Z=J.exec(x);if(Z){var ne=Z[0];return M(ne),x=x.slice(ne.length),Z}}function V(){z(r)}function j(J){var Z;for(J=J||[];Z=_();)Z!==!1&&J.push(Z);return J}function _(){var J=w();if(!(p!=x.charAt(0)||b!=x.charAt(1))){for(var Z=2;E!=x.charAt(Z)&&(b!=x.charAt(Z)||p!=x.charAt(Z+1));)++Z;if(Z+=2,E===x.charAt(Z-1))return N("End of comment missing");var ne=x.slice(2,Z-2);return P+=2,M(ne),x=x.slice(Z),P+=2,J({type:T,comment:ne})}}function q(){var J=w(),Z=z(i);if(Z){if(_(),!z(l))return N("property missing ':'");var ne=z(s),F=J({type:y,property:v(Z[0].replace(e,E)),value:ne?v(ne[0].replace(e,E)):E});return z(c),F}}function $(){var J=[];j(J);for(var Z;Z=q();)Z!==!1&&(J.push(Z),j(J));return J}return V(),$()};function v(x){return x?x.replace(d,E):E}return Hf}var a1;function x6(){if(a1)return zi;a1=1;var e=zi&&zi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(zi,"__esModule",{value:!0}),zi.default=r;var t=e(A6());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(h){if(h.type==="declaration"){var p=h.property,b=h.value;d?l(p,b,h):b&&(s=s||{},s[p]=b)}}),s}return zi}var nl={},i1;function _6(){if(i1)return nl;i1=1,Object.defineProperty(nl,"__esModule",{value:!0}),nl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,s=function(p){return!p||r.test(p)||e.test(p)},c=function(p,b){return b.toUpperCase()},d=function(p,b){return"".concat(b,"-")},h=function(p,b){return b===void 0&&(b={}),s(p)?p:(p=p.toLowerCase(),b.reactCompat?p=p.replace(l,d):p=p.replace(i,d),p.replace(t,c))};return nl.camelCase=h,nl}var rl,u1;function v6(){if(u1)return rl;u1=1;var e=rl&&rl.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(x6()),r=_6();function i(l,s){var c={};return!l||typeof l!="string"||(0,t.default)(l,function(d,h){d&&h&&(c[(0,r.camelCase)(d,s)]=h)}),c}return i.default=i,rl=i,rl}var R6=v6();const N6=lr(R6),is=l1("end"),Dr=l1("start");function l1(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 O6(e){const t=Dr(e),r=is(e);if(t&&r)return{start:t,end:r}}function al(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?o1(e.position):"start"in e||"end"in e?o1(e):"line"in e||"column"in e?Ff(e):""}function Ff(e){return s1(e&&e.line)+":"+s1(e&&e.column)}function o1(e){return Ff(e&&e.start)+"-"+Ff(e&&e.end)}function s1(e){return e&&typeof e=="number"?e:1}class An extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let 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 h=i.indexOf(":");h===-1?s.ruleId=i:(s.source=i.slice(0,h),s.ruleId=i.slice(h+1))}if(!s.place&&s.ancestors&&s.ancestors){const h=s.ancestors[s.ancestors.length-1];h&&(s.place=h.position)}const d=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file,this.message=l,this.line=d?d.line:void 0,this.name=al(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,k6=new Map,I6=/[A-Z]/g,D6=new Set(["table","tbody","thead","tfoot","tr"]),w6=new Set(["td","th"]),c1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function L6(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=Y6(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=z6(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"?Fi:as,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=f1(l,e,void 0);return s&&typeof s!="string"?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}function f1(e,t,r){if(t.type==="element")return M6(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return B6(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return U6(e,t,r);if(t.type==="mdxjsEsm")return P6(e,t);if(t.type==="root")return H6(e,t,r);if(t.type==="text")return F6(e,t)}function M6(e,t,r){const i=e.schema;let l=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=Fi,e.schema=l),e.ancestors.push(t);const s=h1(e,t.tagName,!1),c=j6(e,t);let d=jf(e,t);return D6.has(t.tagName)&&(d=d.filter(function(h){return typeof h=="string"?!p6(h):!0})),d1(e,c,s,t),Yf(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,r)}function B6(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)}il(e,t.position)}function P6(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);il(e,t.position)}function U6(e,t,r){const i=e.schema;let l=i;t.name==="svg"&&i.space==="html"&&(l=Fi,e.schema=l),e.ancestors.push(t);const s=t.name===null?e.Fragment:h1(e,t.name,!0),c=q6(e,t),d=jf(e,t);return d1(e,c,s,t),Yf(c,d),e.ancestors.pop(),e.schema=i,e.create(t,s,c,r)}function H6(e,t,r){const i={};return Yf(i,jf(e,t)),e.create(t,e.Fragment,i,r)}function F6(e,t){return t.value}function d1(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function Yf(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function z6(e,t,r){return i;function i(l,s,c,d){const p=Array.isArray(c.children)?r:t;return d?p(s,c,d):p(s,c)}}function Y6(e,t){return r;function r(i,l,s,c){const d=Array.isArray(s.children),h=Dr(i);return t(l,s,c,d,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function j6(e,t){const r={};let i,l;for(l in t.properties)if(l!=="children"&&zf.call(t.properties,l)){const s=V6(e,l,t.properties[l]);if(s){const[c,d]=s;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&w6.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 q6(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 il(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 il(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:k6;for(;++i<t.children.length;){const s=t.children[i];let c;if(e.passKeys){const h=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(h){const p=l.get(h)||0;c=h+"-"+p,l.set(h,p+1)}}const d=f1(e,s,c);d!==void 0&&r.push(d)}return r}function V6(e,t,r){const i=Uf(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?Ym(r):n1(r)),i.property==="style"){let l=typeof r=="object"?r:G6(e,String(r));return e.stylePropertyNameCase==="css"&&(l=$6(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?E6[i.property]||i.property:i.attribute,r]}}function G6(e,t){try{return N6(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,l=new An("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=c1+"#cannot-parse-style-attribute",l}}function h1(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=jm(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=jm(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);il(e)}function il(e,t){const r=new An("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=c1+"#cannot-handle-mdx-estrees-without-createevaluater",r}function $6(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(I6,Q6);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Q6(e){return"-"+e.toLowerCase()}const qf={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var Vf={exports:{}},ul={};/**
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 p1;function K6(){if(p1)return uo;p1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(i,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var d in o)d!=="key"&&(s[d]=o[d])}else s=o;return o=s.ref,{$$typeof:e,type:i,key:c,ref:o!==void 0?o:null,props:s}}return uo.Fragment=t,uo.jsx=r,uo.jsxs=r,uo}var m1;function W6(){return m1||(m1=1,Vf.exports=K6()),Vf.exports}var pe=W6();const Z6={};function J6(e,t){const r=Z6,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return g1(e,i,o)}function g1(e,t,r){if(eA(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 E1(e.children,t,r)}return Array.isArray(e)?E1(e,t,r):""}function E1(e,t,r){const i=[];let o=-1;for(;++o<e.length;)i[o]=g1(e[o],t,r);return i.join("")}function eA(e){return!!(e&&typeof e=="object")}const b1=document.createElement("i");function Gf(e){const t="&"+e+";";b1.innerHTML=t;const r=b1.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function wr(e,t,r,i){const o=e.length;let s=0,c;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,r=r>0?r:0,i.length<1e4)c=Array.from(i),c.unshift(t,r),e.splice(...c);else for(r&&e.splice(t,r);s<i.length;)c=i.slice(s,s+1e4),c.unshift(t,0),e.splice(...c),s+=1e4,t+=1e4}function lr(e,t){return e.length>0?(wr(e,e.length,0,t),e):t}const y1={}.hasOwnProperty;function tA(e){const t={};let r=-1;for(;++r<e.length;)nA(t,e[r]);return t}function nA(e,t){let r;for(r in t){const o=(y1.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r];let c;if(s)for(c in s){y1.call(o,c)||(o[c]=[]);const d=s[c];rA(o[c],Array.isArray(d)?d:d?[d]:[])}}}function rA(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);wr(e,0,0,i)}function T1(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Yi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Lr=ba(/[A-Za-z]/),Qn=ba(/[\dA-Za-z]/),aA=ba(/[#-'*+\--9=?A-Z^-~]/);function $f(e){return e!==null&&(e<32||e===127)}const Xf=ba(/\d/),iA=ba(/[\dA-Fa-f]/),uA=ba(/[!-/:-@[-`{-~]/);function Le(e){return e!==null&&e<-2}function Mn(e){return e!==null&&(e<0||e===32)}function pt(e){return e===-2||e===-1||e===32}const oA=ba(new RegExp("\\p{P}|\\p{S}","u")),lA=ba(/\s/);function ba(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function ji(e){const t=[];let r=-1,i=0,o=0;for(;++r<e.length;){const s=e.charCodeAt(r);let c="";if(s===37&&Qn(e.charCodeAt(r+1))&&Qn(e.charCodeAt(r+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const d=e.charCodeAt(r+1);s<56320&&d>56319&&d<57344?(c=String.fromCharCode(s,d),o=1):c="�"}else c=String.fromCharCode(s);c&&(t.push(e.slice(i,r),encodeURIComponent(c)),i=r+o+1,c=""),o&&(r+=o,o=0)}return t.join("")+e.slice(i)}function yt(e,t,r,i){const o=i?i-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(h){return pt(h)?(e.enter(r),d(h)):t(h)}function d(h){return pt(h)&&s++<o?(e.consume(h),d):(e.exit(r),t(h))}}const sA={tokenize:cA};function cA(e){const t=e.attempt(this.parser.constructs.contentInitial,i,o);let r;return t;function i(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),yt(e,t,"linePrefix")}function o(d){return e.enter("paragraph"),s(d)}function s(d){const h=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=h),r=h,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Le(d)?(e.consume(d),e.exit("chunkText"),s):(e.consume(d),c)}}const fA={tokenize:dA},S1={tokenize:hA};function dA(e){const t=this,r=[];let i=0,o,s,c;return d;function d(M){if(i<r.length){const w=r[i];return t.containerState=w[1],e.attempt(w[0].continuation,h,p)(M)}return p(M)}function h(M){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&P();const w=t.events.length;let D=w,N;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){N=t.events[D][1].end;break}I(i);let z=w;for(;z<t.events.length;)t.events[z][1].end={...N},z++;return wr(t.events,D+1,0,t.events.slice(w)),t.events.length=z,p(M)}return d(M)}function p(M){if(i===r.length){if(!o)return T(M);if(o.currentConstruct&&o.currentConstruct.concrete)return v(M);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(S1,E,b)(M)}function E(M){return o&&P(),I(i),T(M)}function b(M){return t.parser.lazy[t.now().line]=i!==r.length,c=t.now().offset,v(M)}function T(M){return t.containerState={},e.attempt(S1,y,v)(M)}function y(M){return i++,r.push([t.currentConstruct,t.containerState]),T(M)}function v(M){if(M===null){o&&P(),I(0),e.consume(M);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),x(M)}function x(M){if(M===null){B(e.exit("chunkFlow"),!0),I(0),e.consume(M);return}return Le(M)?(e.consume(M),B(e.exit("chunkFlow")),i=0,t.interrupt=void 0,d):(e.consume(M),x)}function B(M,w){const D=t.sliceStream(M);if(w&&D.push(null),M.previous=s,s&&(s.next=M),s=M,o.defineSkip(M.start),o.write(D),t.parser.lazy[M.start.line]){let N=o.events.length;for(;N--;)if(o.events[N][1].start.offset<c&&(!o.events[N][1].end||o.events[N][1].end.offset>c))return;const z=t.events.length;let V=z,j,_;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if(j){_=t.events[V][1].end;break}j=!0}for(I(i),N=z;N<t.events.length;)t.events[N][1].end={..._},N++;wr(t.events,V+1,0,t.events.slice(z)),t.events.length=N}}function I(M){let w=r.length;for(;w-- >M;){const D=r[w];t.containerState=D[1],D[0].exit.call(t,e)}r.length=M}function P(){o.write([null]),s=void 0,o=void 0,t.containerState._closeFlow=void 0}}function hA(e,t,r){return yt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function C1(e){if(e===null||Mn(e)||lA(e))return 1;if(oA(e))return 2}function Qf(e,t,r){const i=[];let o=-1;for(;++o<e.length;){const s=e[o].resolveAll;s&&!i.includes(s)&&(t=s(t,r),i.push(s))}return t}const Kf={name:"attention",resolveAll:pA,tokenize:mA};function pA(e,t){let r=-1,i,o,s,c,d,h,p,E;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;h=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const b={...e[i][1].end},T={...e[r][1].start};A1(b,-h),A1(T,h),c={type:h>1?"strongSequence":"emphasisSequence",start:b,end:{...e[i][1].end}},d={type:h>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:T},s={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},o={type:h>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[i][1].end={...c.start},e[r][1].start={...d.end},p=[],e[i][1].end.offset-e[i][1].start.offset&&(p=lr(p,[["enter",e[i][1],t],["exit",e[i][1],t]])),p=lr(p,[["enter",o,t],["enter",c,t],["exit",c,t],["enter",s,t]]),p=lr(p,Qf(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),p=lr(p,[["exit",s,t],["enter",d,t],["exit",d,t],["exit",o,t]]),e[r][1].end.offset-e[r][1].start.offset?(E=2,p=lr(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):E=0,wr(e,i-1,r-i+3,p),r=i+p.length-E-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function mA(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=C1(i);let s;return c;function c(h){return s=h,e.enter("attentionSequence"),d(h)}function d(h){if(h===s)return e.consume(h),d;const p=e.exit("attentionSequence"),E=C1(h),b=!E||E===2&&o||r.includes(h),T=!o||o===2&&E||r.includes(i);return p._open=!!(s===42?b:b&&(o||!T)),p._close=!!(s===42?T:T&&(E||!b)),t(h)}}function A1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const gA={name:"autolink",tokenize:EA};function EA(e,t,r){let i=0;return o;function o(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(y){return Lr(y)?(e.consume(y),c):y===64?r(y):p(y)}function c(y){return y===43||y===45||y===46||Qn(y)?(i=1,d(y)):p(y)}function d(y){return y===58?(e.consume(y),i=0,h):(y===43||y===45||y===46||Qn(y))&&i++<32?(e.consume(y),d):(i=0,p(y))}function h(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||$f(y)?r(y):(e.consume(y),h)}function p(y){return y===64?(e.consume(y),E):aA(y)?(e.consume(y),p):r(y)}function E(y){return Qn(y)?b(y):r(y)}function b(y){return y===46?(e.consume(y),i=0,E):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):T(y)}function T(y){if((y===45||Qn(y))&&i++<63){const v=y===45?T:b;return e.consume(y),v}return r(y)}}const us={partial:!0,tokenize:bA};function bA(e,t,r){return i;function i(s){return pt(s)?yt(e,o,"linePrefix")(s):o(s)}function o(s){return s===null||Le(s)?t(s):r(s)}}const x1={continuation:{tokenize:TA},exit:SA,name:"blockQuote",tokenize:yA};function yA(e,t,r){const i=this;return o;function o(c){if(c===62){const d=i.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),s}return r(c)}function s(c){return pt(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function TA(e,t,r){const i=this;return o;function o(c){return pt(c)?yt(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(x1,t,r)(c)}}function SA(e){e.exit("blockQuote")}const _1={name:"characterEscape",tokenize:CA};function CA(e,t,r){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),o}function o(s){return uA(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(s)}}const v1={name:"characterReference",tokenize:AA};function AA(e,t,r){const i=this;let o=0,s,c;return d;function d(b){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(b),e.exit("characterReferenceMarker"),h}function h(b){return b===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(b),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),s=31,c=Qn,E(b))}function p(b){return b===88||b===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(b),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=iA,E):(e.enter("characterReferenceValue"),s=7,c=Xf,E(b))}function E(b){if(b===59&&o){const T=e.exit("characterReferenceValue");return c===Qn&&!Gf(i.sliceSerialize(T))?r(b):(e.enter("characterReferenceMarker"),e.consume(b),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(b)&&o++<s?(e.consume(b),E):r(b)}}const R1={partial:!0,tokenize:_A},N1={concrete:!0,name:"codeFenced",tokenize:xA};function xA(e,t,r){const i=this,o={partial:!0,tokenize:D};let s=0,c=0,d;return h;function h(N){return p(N)}function p(N){const z=i.events[i.events.length-1];return s=z&&z[1].type==="linePrefix"?z[2].sliceSerialize(z[1],!0).length:0,d=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),E(N)}function E(N){return N===d?(c++,e.consume(N),E):c<3?r(N):(e.exit("codeFencedFenceSequence"),pt(N)?yt(e,b,"whitespace")(N):b(N))}function b(N){return N===null||Le(N)?(e.exit("codeFencedFence"),i.interrupt?t(N):e.check(R1,x,w)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),T(N))}function T(N){return N===null||Le(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),b(N)):pt(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),yt(e,y,"whitespace")(N)):N===96&&N===d?r(N):(e.consume(N),T)}function y(N){return N===null||Le(N)?b(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(N))}function v(N){return N===null||Le(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),b(N)):N===96&&N===d?r(N):(e.consume(N),v)}function x(N){return e.attempt(o,w,B)(N)}function B(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),I}function I(N){return s>0&&pt(N)?yt(e,P,"linePrefix",s+1)(N):P(N)}function P(N){return N===null||Le(N)?e.check(R1,x,w)(N):(e.enter("codeFlowValue"),M(N))}function M(N){return N===null||Le(N)?(e.exit("codeFlowValue"),P(N)):(e.consume(N),M)}function w(N){return e.exit("codeFenced"),t(N)}function D(N,z,V){let j=0;return _;function _(ne){return N.enter("lineEnding"),N.consume(ne),N.exit("lineEnding"),q}function q(ne){return N.enter("codeFencedFence"),pt(ne)?yt(N,$,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):$(ne)}function $(ne){return ne===d?(N.enter("codeFencedFenceSequence"),J(ne)):V(ne)}function J(ne){return ne===d?(j++,N.consume(ne),J):j>=c?(N.exit("codeFencedFenceSequence"),pt(ne)?yt(N,Z,"whitespace")(ne):Z(ne)):V(ne)}function Z(ne){return ne===null||Le(ne)?(N.exit("codeFencedFence"),z(ne)):V(ne)}}}function _A(e,t,r){const i=this;return o;function o(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}const Wf={name:"codeIndented",tokenize:RA},vA={partial:!0,tokenize:NA};function RA(e,t,r){const i=this;return o;function o(p){return e.enter("codeIndented"),yt(e,s,"linePrefix",5)(p)}function s(p){const E=i.events[i.events.length-1];return E&&E[1].type==="linePrefix"&&E[2].sliceSerialize(E[1],!0).length>=4?c(p):r(p)}function c(p){return p===null?h(p):Le(p)?e.attempt(vA,c,h)(p):(e.enter("codeFlowValue"),d(p))}function d(p){return p===null||Le(p)?(e.exit("codeFlowValue"),c(p)):(e.consume(p),d)}function h(p){return e.exit("codeIndented"),t(p)}}function NA(e,t,r){const i=this;return o;function o(c){return i.parser.lazy[i.now().line]?r(c):Le(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):yt(e,s,"linePrefix",5)(c)}function s(c){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):Le(c)?o(c):r(c)}}const OA={name:"codeText",previous:IA,resolve:kA,tokenize:DA};function kA(e){let t=e.length-4,r=3,i,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)o===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(o=i):(i===t||e[i][1].type==="lineEnding")&&(e[o][1].type="codeTextData",i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),t-=i-o-2,i=o+2),o=void 0);return e}function IA(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function DA(e,t,r){let i=0,o,s;return c;function c(b){return e.enter("codeText"),e.enter("codeTextSequence"),d(b)}function d(b){return b===96?(e.consume(b),i++,d):(e.exit("codeTextSequence"),h(b))}function h(b){return b===null?r(b):b===32?(e.enter("space"),e.consume(b),e.exit("space"),h):b===96?(s=e.enter("codeTextSequence"),o=0,E(b)):Le(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),h):(e.enter("codeTextData"),p(b))}function p(b){return b===null||b===32||b===96||Le(b)?(e.exit("codeTextData"),h(b)):(e.consume(b),p)}function E(b){return b===96?(e.consume(b),o++,E):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(b)):(s.type="codeTextData",p(b))}}class wA{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){const o=r||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return i&&oo(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),oo(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),oo(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);oo(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);oo(this.left,r.reverse())}}}function oo(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function O1(e){const t={};let r=-1,i,o,s,c,d,h,p;const E=new wA(e);for(;++r<E.length;){for(;r in t;)r=t[r];if(i=E.get(r),r&&i[1].type==="chunkFlow"&&E.get(r-1)[1].type==="listItemPrefix"&&(h=i[1]._tokenizer.events,s=0,s<h.length&&h[s][1].type==="lineEndingBlank"&&(s+=2),s<h.length&&h[s][1].type==="content"))for(;++s<h.length&&h[s][1].type!=="content";)h[s][1].type==="chunkText"&&(h[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,LA(E,r)),r=t[r],p=!0);else if(i[1]._container){for(s=r,o=void 0;s--;)if(c=E.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(E.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(i[1].end={...E.get(o)[1].start},d=E.slice(o,r),d.unshift(i),E.splice(o,r-o+1,d))}}return wr(e,0,Number.POSITIVE_INFINITY,E.slice(0)),!p}function LA(e,t){const r=e.get(t)[1],i=e.get(t)[2];let o=t-1;const s=[];let c=r._tokenizer;c||(c=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,h=[],p={};let E,b,T=-1,y=r,v=0,x=0;const B=[x];for(;y;){for(;e.get(++o)[1]!==y;);s.push(o),y._tokenizer||(E=i.sliceStream(y),y.next||E.push(null),b&&c.defineSkip(y.start),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(E),y._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),b=y,y=y.next}for(y=r;++T<d.length;)d[T][0]==="exit"&&d[T-1][0]==="enter"&&d[T][1].type===d[T-1][1].type&&d[T][1].start.line!==d[T][1].end.line&&(x=T+1,B.push(x),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(c.events=[],y?(y._tokenizer=void 0,y.previous=void 0):B.pop(),T=B.length;T--;){const I=d.slice(B[T],B[T+1]),P=s.pop();h.push([P,P+I.length-1]),e.splice(P,2,I)}for(h.reverse(),T=-1;++T<h.length;)p[v+h[T][0]]=v+h[T][1],v+=h[T][1]-h[T][0]-1;return p}const MA={resolve:PA,tokenize:UA},BA={partial:!0,tokenize:HA};function PA(e){return O1(e),e}function UA(e,t){let r;return i;function i(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?s(d):Le(d)?e.check(BA,c,s)(d):(e.consume(d),o)}function s(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function c(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function HA(e,t,r){const i=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),yt(e,s,"linePrefix")}function s(c){if(c===null||Le(c))return r(c);const d=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):e.interrupt(i.parser.constructs.flow,r,t)(c)}}function k1(e,t,r,i,o,s,c,d,h){const p=h||Number.POSITIVE_INFINITY;let E=0;return b;function b(I){return I===60?(e.enter(i),e.enter(o),e.enter(s),e.consume(I),e.exit(s),T):I===null||I===32||I===41||$f(I)?r(I):(e.enter(i),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),x(I))}function T(I){return I===62?(e.enter(s),e.consume(I),e.exit(s),e.exit(o),e.exit(i),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),y(I))}function y(I){return I===62?(e.exit("chunkString"),e.exit(d),T(I)):I===null||I===60||Le(I)?r(I):(e.consume(I),I===92?v:y)}function v(I){return I===60||I===62||I===92?(e.consume(I),y):y(I)}function x(I){return!E&&(I===null||I===41||Mn(I))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(i),t(I)):E<p&&I===40?(e.consume(I),E++,x):I===41?(e.consume(I),E--,x):I===null||I===32||I===40||$f(I)?r(I):(e.consume(I),I===92?B:x)}function B(I){return I===40||I===41||I===92?(e.consume(I),x):x(I)}}function I1(e,t,r,i,o,s){const c=this;let d=0,h;return p;function p(y){return e.enter(i),e.enter(o),e.consume(y),e.exit(o),e.enter(s),E}function E(y){return d>999||y===null||y===91||y===93&&!h||y===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(y):y===93?(e.exit(s),e.enter(o),e.consume(y),e.exit(o),e.exit(i),t):Le(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),E):(e.enter("chunkString",{contentType:"string"}),b(y))}function b(y){return y===null||y===91||y===93||Le(y)||d++>999?(e.exit("chunkString"),E(y)):(e.consume(y),h||(h=!pt(y)),y===92?T:b)}function T(y){return y===91||y===92||y===93?(e.consume(y),d++,b):b(y)}}function D1(e,t,r,i,o,s){let c;return d;function d(T){return T===34||T===39||T===40?(e.enter(i),e.enter(o),e.consume(T),e.exit(o),c=T===40?41:T,h):r(T)}function h(T){return T===c?(e.enter(o),e.consume(T),e.exit(o),e.exit(i),t):(e.enter(s),p(T))}function p(T){return T===c?(e.exit(s),h(c)):T===null?r(T):Le(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),yt(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),E(T))}function E(T){return T===c||T===null||Le(T)?(e.exit("chunkString"),p(T)):(e.consume(T),T===92?b:E)}function b(T){return T===c||T===92?(e.consume(T),E):E(T)}}function lo(e,t){let r;return i;function i(o){return Le(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,i):pt(o)?yt(e,i,r?"linePrefix":"lineSuffix")(o):t(o)}}const FA={name:"definition",tokenize:YA},zA={partial:!0,tokenize:jA};function YA(e,t,r){const i=this;let o;return s;function s(y){return e.enter("definition"),c(y)}function c(y){return I1.call(i,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function d(y){return o=Yi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),h):r(y)}function h(y){return Mn(y)?lo(e,p)(y):p(y)}function p(y){return k1(e,E,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function E(y){return e.attempt(zA,b,b)(y)}function b(y){return pt(y)?yt(e,T,"whitespace")(y):T(y)}function T(y){return y===null||Le(y)?(e.exit("definition"),i.parser.defined.push(o),t(y)):r(y)}}function jA(e,t,r){return i;function i(d){return Mn(d)?lo(e,o)(d):r(d)}function o(d){return D1(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return pt(d)?yt(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Le(d)?t(d):r(d)}}const qA={name:"hardBreakEscape",tokenize:VA};function VA(e,t,r){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return Le(s)?(e.exit("hardBreakEscape"),t(s)):r(s)}}const GA={name:"headingAtx",resolve:$A,tokenize:XA};function $A(e,t){let r=e.length-2,i=3,o,s;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(o={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},s={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},wr(e,i,r-i+1,[["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t]])),e}function XA(e,t,r){let i=0;return o;function o(E){return e.enter("atxHeading"),s(E)}function s(E){return e.enter("atxHeadingSequence"),c(E)}function c(E){return E===35&&i++<6?(e.consume(E),c):E===null||Mn(E)?(e.exit("atxHeadingSequence"),d(E)):r(E)}function d(E){return E===35?(e.enter("atxHeadingSequence"),h(E)):E===null||Le(E)?(e.exit("atxHeading"),t(E)):pt(E)?yt(e,d,"whitespace")(E):(e.enter("atxHeadingText"),p(E))}function h(E){return E===35?(e.consume(E),h):(e.exit("atxHeadingSequence"),d(E))}function p(E){return E===null||E===35||Mn(E)?(e.exit("atxHeadingText"),d(E)):(e.consume(E),p)}}const QA=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],w1=["pre","script","style","textarea"],KA={concrete:!0,name:"htmlFlow",resolveTo:JA,tokenize:ex},WA={partial:!0,tokenize:nx},ZA={partial:!0,tokenize:tx};function JA(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 ex(e,t,r){const i=this;let o,s,c,d,h;return p;function p(O){return E(O)}function E(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),b}function b(O){return O===33?(e.consume(O),T):O===47?(e.consume(O),s=!0,x):O===63?(e.consume(O),o=3,i.interrupt?t:S):Lr(O)?(e.consume(O),c=String.fromCharCode(O),B):r(O)}function T(O){return O===45?(e.consume(O),o=2,y):O===91?(e.consume(O),o=5,d=0,v):Lr(O)?(e.consume(O),o=4,i.interrupt?t:S):r(O)}function y(O){return O===45?(e.consume(O),i.interrupt?t:S):r(O)}function v(O){const Ee="CDATA[";return O===Ee.charCodeAt(d++)?(e.consume(O),d===Ee.length?i.interrupt?t:$:v):r(O)}function x(O){return Lr(O)?(e.consume(O),c=String.fromCharCode(O),B):r(O)}function B(O){if(O===null||O===47||O===62||Mn(O)){const Ee=O===47,Re=c.toLowerCase();return!Ee&&!s&&w1.includes(Re)?(o=1,i.interrupt?t(O):$(O)):QA.includes(c.toLowerCase())?(o=6,Ee?(e.consume(O),I):i.interrupt?t(O):$(O)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(O):s?P(O):M(O))}return O===45||Qn(O)?(e.consume(O),c+=String.fromCharCode(O),B):r(O)}function I(O){return O===62?(e.consume(O),i.interrupt?t:$):r(O)}function P(O){return pt(O)?(e.consume(O),P):_(O)}function M(O){return O===47?(e.consume(O),_):O===58||O===95||Lr(O)?(e.consume(O),w):pt(O)?(e.consume(O),M):_(O)}function w(O){return O===45||O===46||O===58||O===95||Qn(O)?(e.consume(O),w):D(O)}function D(O){return O===61?(e.consume(O),N):pt(O)?(e.consume(O),D):M(O)}function N(O){return O===null||O===60||O===61||O===62||O===96?r(O):O===34||O===39?(e.consume(O),h=O,z):pt(O)?(e.consume(O),N):V(O)}function z(O){return O===h?(e.consume(O),h=null,j):O===null||Le(O)?r(O):(e.consume(O),z)}function V(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||Mn(O)?D(O):(e.consume(O),V)}function j(O){return O===47||O===62||pt(O)?M(O):r(O)}function _(O){return O===62?(e.consume(O),q):r(O)}function q(O){return O===null||Le(O)?$(O):pt(O)?(e.consume(O),q):r(O)}function $(O){return O===45&&o===2?(e.consume(O),F):O===60&&o===1?(e.consume(O),ae):O===62&&o===4?(e.consume(O),K):O===63&&o===3?(e.consume(O),S):O===93&&o===5?(e.consume(O),oe):Le(O)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(WA,de,J)(O)):O===null||Le(O)?(e.exit("htmlFlowData"),J(O)):(e.consume(O),$)}function J(O){return e.check(ZA,Z,de)(O)}function Z(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),ne}function ne(O){return O===null||Le(O)?J(O):(e.enter("htmlFlowData"),$(O))}function F(O){return O===45?(e.consume(O),S):$(O)}function ae(O){return O===47?(e.consume(O),c="",ie):$(O)}function ie(O){if(O===62){const Ee=c.toLowerCase();return w1.includes(Ee)?(e.consume(O),K):$(O)}return Lr(O)&&c.length<8?(e.consume(O),c+=String.fromCharCode(O),ie):$(O)}function oe(O){return O===93?(e.consume(O),S):$(O)}function S(O){return O===62?(e.consume(O),K):O===45&&o===2?(e.consume(O),S):$(O)}function K(O){return O===null||Le(O)?(e.exit("htmlFlowData"),de(O)):(e.consume(O),K)}function de(O){return e.exit("htmlFlow"),t(O)}}function tx(e,t,r){const i=this;return o;function o(c){return Le(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):r(c)}function s(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}function nx(e,t,r){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(us,t,r)}}const rx={name:"htmlText",tokenize:ax};function ax(e,t,r){const i=this;let o,s,c;return d;function d(S){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(S),h}function h(S){return S===33?(e.consume(S),p):S===47?(e.consume(S),D):S===63?(e.consume(S),M):Lr(S)?(e.consume(S),V):r(S)}function p(S){return S===45?(e.consume(S),E):S===91?(e.consume(S),s=0,v):Lr(S)?(e.consume(S),P):r(S)}function E(S){return S===45?(e.consume(S),y):r(S)}function b(S){return S===null?r(S):S===45?(e.consume(S),T):Le(S)?(c=b,ae(S)):(e.consume(S),b)}function T(S){return S===45?(e.consume(S),y):b(S)}function y(S){return S===62?F(S):S===45?T(S):b(S)}function v(S){const K="CDATA[";return S===K.charCodeAt(s++)?(e.consume(S),s===K.length?x:v):r(S)}function x(S){return S===null?r(S):S===93?(e.consume(S),B):Le(S)?(c=x,ae(S)):(e.consume(S),x)}function B(S){return S===93?(e.consume(S),I):x(S)}function I(S){return S===62?F(S):S===93?(e.consume(S),I):x(S)}function P(S){return S===null||S===62?F(S):Le(S)?(c=P,ae(S)):(e.consume(S),P)}function M(S){return S===null?r(S):S===63?(e.consume(S),w):Le(S)?(c=M,ae(S)):(e.consume(S),M)}function w(S){return S===62?F(S):M(S)}function D(S){return Lr(S)?(e.consume(S),N):r(S)}function N(S){return S===45||Qn(S)?(e.consume(S),N):z(S)}function z(S){return Le(S)?(c=z,ae(S)):pt(S)?(e.consume(S),z):F(S)}function V(S){return S===45||Qn(S)?(e.consume(S),V):S===47||S===62||Mn(S)?j(S):r(S)}function j(S){return S===47?(e.consume(S),F):S===58||S===95||Lr(S)?(e.consume(S),_):Le(S)?(c=j,ae(S)):pt(S)?(e.consume(S),j):F(S)}function _(S){return S===45||S===46||S===58||S===95||Qn(S)?(e.consume(S),_):q(S)}function q(S){return S===61?(e.consume(S),$):Le(S)?(c=q,ae(S)):pt(S)?(e.consume(S),q):j(S)}function $(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(e.consume(S),o=S,J):Le(S)?(c=$,ae(S)):pt(S)?(e.consume(S),$):(e.consume(S),Z)}function J(S){return S===o?(e.consume(S),o=void 0,ne):S===null?r(S):Le(S)?(c=J,ae(S)):(e.consume(S),J)}function Z(S){return S===null||S===34||S===39||S===60||S===61||S===96?r(S):S===47||S===62||Mn(S)?j(S):(e.consume(S),Z)}function ne(S){return S===47||S===62||Mn(S)?j(S):r(S)}function F(S){return S===62?(e.consume(S),e.exit("htmlTextData"),e.exit("htmlText"),t):r(S)}function ae(S){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),ie}function ie(S){return pt(S)?yt(e,oe,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):oe(S)}function oe(S){return e.enter("htmlTextData"),c(S)}}const Zf={name:"labelEnd",resolveAll:lx,resolveTo:sx,tokenize:cx},ix={tokenize:fx},ux={tokenize:dx},ox={tokenize:hx};function lx(e){let t=-1;const r=[];for(;++t<e.length;){const i=e[t][1];if(r.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const o=i.type==="labelImage"?4:2;i.type="data",t+=o}}return e.length!==r.length&&wr(e,0,e.length,r),e}function sx(e,t){let r=e.length,i=0,o,s,c,d;for(;r--;)if(o=e[r][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=r,o.type!=="labelLink")){i=2;break}}else o.type==="labelEnd"&&(c=r);const h={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[s][1].start},end:{...e[c][1].end}},E={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",h,t],["enter",p,t]],d=lr(d,e.slice(s+1,s+i+3)),d=lr(d,[["enter",E,t]]),d=lr(d,Qf(t.parser.constructs.insideSpan.null,e.slice(s+i+4,c-3),t)),d=lr(d,[["exit",E,t],e[c-2],e[c-1],["exit",p,t]]),d=lr(d,e.slice(c+1)),d=lr(d,[["exit",h,t]]),wr(e,s,e.length,d),e}function cx(e,t,r){const i=this;let o=i.events.length,s,c;for(;o--;)if((i.events[o][1].type==="labelImage"||i.events[o][1].type==="labelLink")&&!i.events[o][1]._balanced){s=i.events[o][1];break}return d;function d(T){return s?s._inactive?b(T):(c=i.parser.defined.includes(Yi(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(T),e.exit("labelMarker"),e.exit("labelEnd"),h):r(T)}function h(T){return T===40?e.attempt(ix,E,c?E:b)(T):T===91?e.attempt(ux,E,c?p:b)(T):c?E(T):b(T)}function p(T){return e.attempt(ox,E,b)(T)}function E(T){return t(T)}function b(T){return s._balanced=!0,r(T)}}function fx(e,t,r){return i;function i(b){return e.enter("resource"),e.enter("resourceMarker"),e.consume(b),e.exit("resourceMarker"),o}function o(b){return Mn(b)?lo(e,s)(b):s(b)}function s(b){return b===41?E(b):k1(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(b)}function c(b){return Mn(b)?lo(e,h)(b):E(b)}function d(b){return r(b)}function h(b){return b===34||b===39||b===40?D1(e,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(b):E(b)}function p(b){return Mn(b)?lo(e,E)(b):E(b)}function E(b){return b===41?(e.enter("resourceMarker"),e.consume(b),e.exit("resourceMarker"),e.exit("resource"),t):r(b)}}function dx(e,t,r){const i=this;return o;function o(d){return I1.call(i,e,s,c,"reference","referenceMarker","referenceString")(d)}function s(d){return i.parser.defined.includes(Yi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function c(d){return r(d)}}function hx(e,t,r){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),o}function o(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):r(s)}}const px={name:"labelStartImage",resolveAll:Zf.resolveAll,tokenize:mx};function mx(e,t,r){const i=this;return o;function o(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),s}function s(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(d):t(d)}}const gx={name:"labelStartLink",resolveAll:Zf.resolveAll,tokenize:Ex};function Ex(e,t,r){const i=this;return o;function o(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(c):t(c)}}const Jf={name:"lineEnding",tokenize:bx};function bx(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),yt(e,t,"linePrefix")}}const os={name:"thematicBreak",tokenize:yx};function yx(e,t,r){let i=0,o;return s;function s(p){return e.enter("thematicBreak"),c(p)}function c(p){return o=p,d(p)}function d(p){return p===o?(e.enter("thematicBreakSequence"),h(p)):i>=3&&(p===null||Le(p))?(e.exit("thematicBreak"),t(p)):r(p)}function h(p){return p===o?(e.consume(p),i++,h):(e.exit("thematicBreakSequence"),pt(p)?yt(e,d,"whitespace")(p):d(p))}}const Bn={continuation:{tokenize:Ax},exit:_x,name:"list",tokenize:Cx},Tx={partial:!0,tokenize:vx},Sx={partial:!0,tokenize:xx};function Cx(e,t,r){const i=this,o=i.events[i.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return d;function d(y){const v=i.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!i.containerState.marker||y===i.containerState.marker:Xf(y)){if(i.containerState.type||(i.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(os,r,p)(y):p(y);if(!i.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(y)}return r(y)}function h(y){return Xf(y)&&++c<10?(e.consume(y),h):(!i.interrupt||c<2)&&(i.containerState.marker?y===i.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),p(y)):r(y)}function p(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||y,e.check(us,i.interrupt?r:E,e.attempt(Tx,T,b))}function E(y){return i.containerState.initialBlankLine=!0,s++,T(y)}function b(y){return pt(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),T):r(y)}function T(y){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function Ax(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(us,o,s);function o(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,yt(e,t,"listItemIndent",i.containerState.size+1)(d)}function s(d){return i.containerState.furtherBlankLines||!pt(d)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(d)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Sx,t,c)(d))}function c(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,yt(e,e.attempt(Bn,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function xx(e,t,r){const i=this;return yt(e,o,"listItemIndent",i.containerState.size+1);function o(s){const c=i.events[i.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===i.containerState.size?t(s):r(s)}}function _x(e){e.exit(this.containerState.type)}function vx(e,t,r){const i=this;return yt(e,o,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const c=i.events[i.events.length-1];return!pt(s)&&c&&c[1].type==="listItemPrefixWhitespace"?t(s):r(s)}}const L1={name:"setextUnderline",resolveTo:Rx,tokenize:Nx};function Rx(e,t){let r=e.length,i,o,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",s?(e.splice(o,0,["enter",c,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=c,e.push(["exit",c,t]),e}function Nx(e,t,r){const i=this;let o;return s;function s(p){let E=i.events.length,b;for(;E--;)if(i.events[E][1].type!=="lineEnding"&&i.events[E][1].type!=="linePrefix"&&i.events[E][1].type!=="content"){b=i.events[E][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||b)?(e.enter("setextHeadingLine"),o=p,c(p)):r(p)}function c(p){return e.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===o?(e.consume(p),d):(e.exit("setextHeadingLineSequence"),pt(p)?yt(e,h,"lineSuffix")(p):h(p))}function h(p){return p===null||Le(p)?(e.exit("setextHeadingLine"),t(p)):r(p)}}const Ox={tokenize:kx};function kx(e){const t=this,r=e.attempt(us,i,e.attempt(this.parser.constructs.flowInitial,o,yt(e,e.attempt(this.parser.constructs.flow,o,e.attempt(MA,o)),"linePrefix")));return r;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const Ix={resolveAll:B1()},Dx=M1("string"),wx=M1("text");function M1(e){return{resolveAll:B1(e==="text"?Lx:void 0),tokenize:t};function t(r){const i=this,o=this.parser.constructs[e],s=r.attempt(o,c,d);return c;function c(E){return p(E)?s(E):d(E)}function d(E){if(E===null){r.consume(E);return}return r.enter("data"),r.consume(E),h}function h(E){return p(E)?(r.exit("data"),s(E)):(r.consume(E),h)}function p(E){if(E===null)return!0;const b=o[E];let T=-1;if(b)for(;++T<b.length;){const y=b[T];if(!y.previous||y.previous.call(i,i.previous))return!0}return!1}}}function B1(e){return t;function t(r,i){let o=-1,s;for(;++o<=r.length;)s===void 0?r[o]&&r[o][1].type==="data"&&(s=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==s+2&&(r[s][1].end=r[o-1][1].end,r.splice(s+2,o-s-2),o=s+2),s=void 0);return e?e(r,i):r}}function Lx(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],o=t.sliceStream(i);let s=o.length,c=-1,d=0,h;for(;s--;){const p=o[s];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(p===-2)h=!0,d++;else if(p!==-1){s++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const p={type:r===e.length||h||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:i.start._bufferIndex+c,_index:i.start._index+s,line:i.end.line,column:i.end.column-d,offset:i.end.offset-d},end:{...i.end}};i.end={...p.start},i.start.offset===i.end.offset?Object.assign(i,p):(e.splice(r,0,["enter",p,t],["exit",p,t]),r+=2)}r++}return e}const Mx=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:FA},disable:{null:[]},document:{42:Bn,43:Bn,45:Bn,48:Bn,49:Bn,50:Bn,51:Bn,52:Bn,53:Bn,54:Bn,55:Bn,56:Bn,57:Bn,62:x1},flow:{35:GA,42:os,45:[L1,os],60:KA,61:L1,95:os,96:N1,126:N1},flowInitial:{[-2]:Wf,[-1]:Wf,32:Wf},insideSpan:{null:[Kf,Ix]},string:{38:v1,92:_1},text:{[-5]:Jf,[-4]:Jf,[-3]:Jf,33:px,38:v1,42:Kf,60:[gA,rx],91:gx,92:[qA,_1],93:Zf,95:Kf,96:OA}},Symbol.toStringTag,{value:"Module"}));function Bx(e,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},s=[];let c=[],d=[];const h={attempt:z(D),check:z(N),consume:P,enter:M,exit:w,interrupt:z(N,{interrupt:!0})},p={code:null,containerState:{},defineSkip:x,events:[],now:v,parser:e,previous:null,sliceSerialize:T,sliceStream:y,write:b};let E=t.tokenize.call(p,h);return t.resolveAll&&s.push(t),p;function b(q){return c=lr(c,q),B(),c[c.length-1]!==null?[]:(V(t,0),p.events=Qf(s,p.events,p),p.events)}function T(q,$){return Ux(y(q),$)}function y(q){return Px(c,q)}function v(){const{_bufferIndex:q,_index:$,line:J,column:Z,offset:ne}=i;return{_bufferIndex:q,_index:$,line:J,column:Z,offset:ne}}function x(q){o[q.line]=q.column,_()}function B(){let q;for(;i._index<c.length;){const $=c[i._index];if(typeof $=="string")for(q=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===q&&i._bufferIndex<$.length;)I($.charCodeAt(i._bufferIndex));else I($)}}function I(q){E=E(q)}function P(q){Le(q)?(i.line++,i.column=1,i.offset+=q===-3?2:1,_()):q!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),p.previous=q}function M(q,$){const J=$||{};return J.type=q,J.start=v(),p.events.push(["enter",J,p]),d.push(J),J}function w(q){const $=d.pop();return $.end=v(),p.events.push(["exit",$,p]),$}function D(q,$){V(q,$.from)}function N(q,$){$.restore()}function z(q,$){return J;function J(Z,ne,F){let ae,ie,oe,S;return Array.isArray(Z)?de(Z):"tokenize"in Z?de([Z]):K(Z);function K(Te){return Xe;function Xe(Be){const ut=Be!==null&&Te[Be],Ct=Be!==null&&Te.null,gt=[...Array.isArray(ut)?ut:ut?[ut]:[],...Array.isArray(Ct)?Ct:Ct?[Ct]:[]];return de(gt)(Be)}}function de(Te){return ae=Te,ie=0,Te.length===0?F:O(Te[ie])}function O(Te){return Xe;function Xe(Be){return S=j(),oe=Te,Te.partial||(p.currentConstruct=Te),Te.name&&p.parser.constructs.disable.null.includes(Te.name)?Re():Te.tokenize.call($?Object.assign(Object.create(p),$):p,h,Ee,Re)(Be)}}function Ee(Te){return q(oe,S),ne}function Re(Te){return S.restore(),++ie<ae.length?O(ae[ie]):F}}}function V(q,$){q.resolveAll&&!s.includes(q)&&s.push(q),q.resolve&&wr(p.events,$,p.events.length-$,q.resolve(p.events.slice($),p)),q.resolveTo&&(p.events=q.resolveTo(p.events,p))}function j(){const q=v(),$=p.previous,J=p.currentConstruct,Z=p.events.length,ne=Array.from(d);return{from:Z,restore:F};function F(){i=q,p.previous=$,p.currentConstruct=J,p.events.length=Z,d=ne,_()}}function _(){i.line in o&&i.column<2&&(i.column=o[i.line],i.offset+=o[i.line]-1)}}function Px(e,t){const r=t.start._index,i=t.start._bufferIndex,o=t.end._index,s=t.end._bufferIndex;let c;if(r===o)c=[e[r].slice(i,s)];else{if(c=e.slice(r,o),i>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(i):c.shift()}s>0&&c.push(e[o].slice(0,s))}return c}function Ux(e,t){let r=-1;const i=[];let o;for(;++r<e.length;){const s=e[r];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
57
+ */var p1;function K6(){if(p1)return ul;p1=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 ul.Fragment=t,ul.jsx=r,ul.jsxs=r,ul}var m1;function W6(){return m1||(m1=1,Vf.exports=K6()),Vf.exports}var pe=W6();const Z6={};function J6(e,t){const r=Z6,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return g1(e,i,l)}function g1(e,t,r){if(eA(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return b1(e.children,t,r)}return Array.isArray(e)?b1(e,t,r):""}function b1(e,t,r){const i=[];let l=-1;for(;++l<e.length;)i[l]=g1(e[l],t,r);return i.join("")}function eA(e){return!!(e&&typeof e=="object")}const E1=document.createElement("i");function Gf(e){const t="&"+e+";";E1.innerHTML=t;const r=E1.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function wr(e,t,r,i){const 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?(wr(e,e.length,0,t),e):t}const y1={}.hasOwnProperty;function tA(e){const t={};let r=-1;for(;++r<e.length;)nA(t,e[r]);return t}function nA(e,t){let r;for(r in t){const l=(y1.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r];let c;if(s)for(c in s){y1.call(l,c)||(l[c]=[]);const d=s[c];rA(l[c],Array.isArray(d)?d:d?[d]:[])}}}function rA(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);wr(e,0,0,i)}function T1(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Yi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Lr=Ea(/[A-Za-z]/),Qn=Ea(/[\dA-Za-z]/),aA=Ea(/[#-'*+\--9=?A-Z^-~]/);function $f(e){return e!==null&&(e<32||e===127)}const Xf=Ea(/\d/),iA=Ea(/[\dA-Fa-f]/),uA=Ea(/[!-/:-@[-`{-~]/);function Le(e){return e!==null&&e<-2}function Mn(e){return e!==null&&(e<0||e===32)}function pt(e){return e===-2||e===-1||e===32}const lA=Ea(new RegExp("\\p{P}|\\p{S}","u")),oA=Ea(/\s/);function Ea(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function ji(e){const t=[];let r=-1,i=0,l=0;for(;++r<e.length;){const s=e.charCodeAt(r);let c="";if(s===37&&Qn(e.charCodeAt(r+1))&&Qn(e.charCodeAt(r+2)))l=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const d=e.charCodeAt(r+1);s<56320&&d>56319&&d<57344?(c=String.fromCharCode(s,d),l=1):c="�"}else c=String.fromCharCode(s);c&&(t.push(e.slice(i,r),encodeURIComponent(c)),i=r+l+1,c=""),l&&(r+=l,l=0)}return t.join("")+e.slice(i)}function yt(e,t,r,i){const l=i?i-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(h){return pt(h)?(e.enter(r),d(h)):t(h)}function d(h){return pt(h)&&s++<l?(e.consume(h),d):(e.exit(r),t(h))}}const sA={tokenize:cA};function cA(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"),yt(e,t,"linePrefix")}function l(d){return e.enter("paragraph"),s(d)}function s(d){const h=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=h),r=h,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return Le(d)?(e.consume(d),e.exit("chunkText"),s):(e.consume(d),c)}}const fA={tokenize:dA},S1={tokenize:hA};function dA(e){const t=this,r=[];let i=0,l,s,c;return d;function d(M){if(i<r.length){const w=r[i];return t.containerState=w[1],e.attempt(w[0].continuation,h,p)(M)}return p(M)}function h(M){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&P();const w=t.events.length;let D=w,N;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){N=t.events[D][1].end;break}I(i);let z=w;for(;z<t.events.length;)t.events[z][1].end={...N},z++;return wr(t.events,D+1,0,t.events.slice(w)),t.events.length=z,p(M)}return d(M)}function p(M){if(i===r.length){if(!l)return T(M);if(l.currentConstruct&&l.currentConstruct.concrete)return v(M);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(S1,b,E)(M)}function b(M){return l&&P(),I(i),T(M)}function E(M){return t.parser.lazy[t.now().line]=i!==r.length,c=t.now().offset,v(M)}function T(M){return t.containerState={},e.attempt(S1,y,v)(M)}function y(M){return i++,r.push([t.currentConstruct,t.containerState]),T(M)}function v(M){if(M===null){l&&P(),I(0),e.consume(M);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:s}),x(M)}function x(M){if(M===null){B(e.exit("chunkFlow"),!0),I(0),e.consume(M);return}return Le(M)?(e.consume(M),B(e.exit("chunkFlow")),i=0,t.interrupt=void 0,d):(e.consume(M),x)}function B(M,w){const D=t.sliceStream(M);if(w&&D.push(null),M.previous=s,s&&(s.next=M),s=M,l.defineSkip(M.start),l.write(D),t.parser.lazy[M.start.line]){let N=l.events.length;for(;N--;)if(l.events[N][1].start.offset<c&&(!l.events[N][1].end||l.events[N][1].end.offset>c))return;const z=t.events.length;let V=z,j,_;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if(j){_=t.events[V][1].end;break}j=!0}for(I(i),N=z;N<t.events.length;)t.events[N][1].end={..._},N++;wr(t.events,V+1,0,t.events.slice(z)),t.events.length=N}}function I(M){let w=r.length;for(;w-- >M;){const D=r[w];t.containerState=D[1],D[0].exit.call(t,e)}r.length=M}function P(){l.write([null]),s=void 0,l=void 0,t.containerState._closeFlow=void 0}}function hA(e,t,r){return yt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function C1(e){if(e===null||Mn(e)||oA(e))return 1;if(lA(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",resolveAll:pA,tokenize:mA};function pA(e,t){let r=-1,i,l,s,c,d,h,p,b;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;h=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const E={...e[i][1].end},T={...e[r][1].start};A1(E,-h),A1(T,h),c={type:h>1?"strongSequence":"emphasisSequence",start:E,end:{...e[i][1].end}},d={type:h>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:T},s={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},l={type:h>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[i][1].end={...c.start},e[r][1].start={...d.end},p=[],e[i][1].end.offset-e[i][1].start.offset&&(p=or(p,[["enter",e[i][1],t],["exit",e[i][1],t]])),p=or(p,[["enter",l,t],["enter",c,t],["exit",c,t],["enter",s,t]]),p=or(p,Qf(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),p=or(p,[["exit",s,t],["enter",d,t],["exit",d,t],["exit",l,t]]),e[r][1].end.offset-e[r][1].start.offset?(b=2,p=or(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):b=0,wr(e,i-1,r-i+3,p),r=i+p.length-b-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function mA(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=C1(i);let s;return c;function c(h){return s=h,e.enter("attentionSequence"),d(h)}function d(h){if(h===s)return e.consume(h),d;const p=e.exit("attentionSequence"),b=C1(h),E=!b||b===2&&l||r.includes(h),T=!l||l===2&&b||r.includes(i);return p._open=!!(s===42?E:E&&(l||!T)),p._close=!!(s===42?T:T&&(b||!E)),t(h)}}function A1(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const gA={name:"autolink",tokenize:bA};function bA(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 Lr(y)?(e.consume(y),c):y===64?r(y):p(y)}function c(y){return y===43||y===45||y===46||Qn(y)?(i=1,d(y)):p(y)}function d(y){return y===58?(e.consume(y),i=0,h):(y===43||y===45||y===46||Qn(y))&&i++<32?(e.consume(y),d):(i=0,p(y))}function h(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||$f(y)?r(y):(e.consume(y),h)}function p(y){return y===64?(e.consume(y),b):aA(y)?(e.consume(y),p):r(y)}function b(y){return Qn(y)?E(y):r(y)}function E(y){return y===46?(e.consume(y),i=0,b):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):T(y)}function T(y){if((y===45||Qn(y))&&i++<63){const v=y===45?T:E;return e.consume(y),v}return r(y)}}const us={partial:!0,tokenize:EA};function EA(e,t,r){return i;function i(s){return pt(s)?yt(e,l,"linePrefix")(s):l(s)}function l(s){return s===null||Le(s)?t(s):r(s)}}const x1={continuation:{tokenize:TA},exit:SA,name:"blockQuote",tokenize:yA};function yA(e,t,r){const i=this;return l;function l(c){if(c===62){const d=i.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),s}return r(c)}function s(c){return pt(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function TA(e,t,r){const i=this;return l;function l(c){return pt(c)?yt(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(x1,t,r)(c)}}function SA(e){e.exit("blockQuote")}const _1={name:"characterEscape",tokenize:CA};function CA(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 uA(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(s)}}const v1={name:"characterReference",tokenize:AA};function AA(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"),h}function h(E){return E===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(E),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),s=31,c=Qn,b(E))}function p(E){return E===88||E===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(E),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=iA,b):(e.enter("characterReferenceValue"),s=7,c=Xf,b(E))}function b(E){if(E===59&&l){const T=e.exit("characterReferenceValue");return c===Qn&&!Gf(i.sliceSerialize(T))?r(E):(e.enter("characterReferenceMarker"),e.consume(E),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(E)&&l++<s?(e.consume(E),b):r(E)}}const R1={partial:!0,tokenize:_A},N1={concrete:!0,name:"codeFenced",tokenize:xA};function xA(e,t,r){const i=this,l={partial:!0,tokenize:D};let s=0,c=0,d;return h;function h(N){return p(N)}function p(N){const z=i.events[i.events.length-1];return s=z&&z[1].type==="linePrefix"?z[2].sliceSerialize(z[1],!0).length:0,d=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),b(N)}function b(N){return N===d?(c++,e.consume(N),b):c<3?r(N):(e.exit("codeFencedFenceSequence"),pt(N)?yt(e,E,"whitespace")(N):E(N))}function E(N){return N===null||Le(N)?(e.exit("codeFencedFence"),i.interrupt?t(N):e.check(R1,x,w)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),T(N))}function T(N){return N===null||Le(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),E(N)):pt(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),yt(e,y,"whitespace")(N)):N===96&&N===d?r(N):(e.consume(N),T)}function y(N){return N===null||Le(N)?E(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(N))}function v(N){return N===null||Le(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),E(N)):N===96&&N===d?r(N):(e.consume(N),v)}function x(N){return e.attempt(l,w,B)(N)}function B(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),I}function I(N){return s>0&&pt(N)?yt(e,P,"linePrefix",s+1)(N):P(N)}function P(N){return N===null||Le(N)?e.check(R1,x,w)(N):(e.enter("codeFlowValue"),M(N))}function M(N){return N===null||Le(N)?(e.exit("codeFlowValue"),P(N)):(e.consume(N),M)}function w(N){return e.exit("codeFenced"),t(N)}function D(N,z,V){let j=0;return _;function _(ne){return N.enter("lineEnding"),N.consume(ne),N.exit("lineEnding"),q}function q(ne){return N.enter("codeFencedFence"),pt(ne)?yt(N,$,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):$(ne)}function $(ne){return ne===d?(N.enter("codeFencedFenceSequence"),J(ne)):V(ne)}function J(ne){return ne===d?(j++,N.consume(ne),J):j>=c?(N.exit("codeFencedFenceSequence"),pt(ne)?yt(N,Z,"whitespace")(ne):Z(ne)):V(ne)}function Z(ne){return ne===null||Le(ne)?(N.exit("codeFencedFence"),z(ne)):V(ne)}}}function _A(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:RA},vA={partial:!0,tokenize:NA};function RA(e,t,r){const i=this;return l;function l(p){return e.enter("codeIndented"),yt(e,s,"linePrefix",5)(p)}function s(p){const b=i.events[i.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?c(p):r(p)}function c(p){return p===null?h(p):Le(p)?e.attempt(vA,c,h)(p):(e.enter("codeFlowValue"),d(p))}function d(p){return p===null||Le(p)?(e.exit("codeFlowValue"),c(p)):(e.consume(p),d)}function h(p){return e.exit("codeIndented"),t(p)}}function NA(e,t,r){const i=this;return l;function l(c){return i.parser.lazy[i.now().line]?r(c):Le(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):yt(e,s,"linePrefix",5)(c)}function s(c){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):Le(c)?l(c):r(c)}}const OA={name:"codeText",previous:IA,resolve:kA,tokenize:DA};function kA(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 IA(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function DA(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"),h(E))}function h(E){return E===null?r(E):E===32?(e.enter("space"),e.consume(E),e.exit("space"),h):E===96?(s=e.enter("codeTextSequence"),l=0,b(E)):Le(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),h):(e.enter("codeTextData"),p(E))}function p(E){return E===null||E===32||E===96||Le(E)?(e.exit("codeTextData"),h(E)):(e.consume(E),p)}function b(E){return E===96?(e.consume(E),l++,b):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(E)):(s.type="codeTextData",p(E))}}class wA{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&&ll(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),ll(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ll(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);ll(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ll(this.left,r.reverse())}}}function ll(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function O1(e){const t={};let r=-1,i,l,s,c,d,h,p;const b=new wA(e);for(;++r<b.length;){for(;r in t;)r=t[r];if(i=b.get(r),r&&i[1].type==="chunkFlow"&&b.get(r-1)[1].type==="listItemPrefix"&&(h=i[1]._tokenizer.events,s=0,s<h.length&&h[s][1].type==="lineEndingBlank"&&(s+=2),s<h.length&&h[s][1].type==="content"))for(;++s<h.length&&h[s][1].type!=="content";)h[s][1].type==="chunkText"&&(h[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,LA(b,r)),r=t[r],p=!0);else if(i[1]._container){for(s=r,l=void 0;s--;)if(c=b.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(l&&(b.get(l)[1].type="lineEndingBlank"),c[1].type="lineEnding",l=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;l&&(i[1].end={...b.get(l)[1].start},d=b.slice(l,r),d.unshift(i),b.splice(l,r-l+1,d))}}return wr(e,0,Number.POSITIVE_INFINITY,b.slice(0)),!p}function LA(e,t){const r=e.get(t)[1],i=e.get(t)[2];let l=t-1;const s=[];let c=r._tokenizer;c||(c=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,h=[],p={};let b,E,T=-1,y=r,v=0,x=0;const B=[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,B.push(x),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(c.events=[],y?(y._tokenizer=void 0,y.previous=void 0):B.pop(),T=B.length;T--;){const I=d.slice(B[T],B[T+1]),P=s.pop();h.push([P,P+I.length-1]),e.splice(P,2,I)}for(h.reverse(),T=-1;++T<h.length;)p[v+h[T][0]]=v+h[T][1],v+=h[T][1]-h[T][0]-1;return p}const MA={resolve:PA,tokenize:UA},BA={partial:!0,tokenize:HA};function PA(e){return O1(e),e}function UA(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):Le(d)?e.check(BA,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 HA(e,t,r){const i=this;return l;function l(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),yt(e,s,"linePrefix")}function s(c){if(c===null||Le(c))return r(c);const d=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):e.interrupt(i.parser.constructs.flow,r,t)(c)}}function k1(e,t,r,i,l,s,c,d,h){const p=h||Number.POSITIVE_INFINITY;let b=0;return E;function E(I){return I===60?(e.enter(i),e.enter(l),e.enter(s),e.consume(I),e.exit(s),T):I===null||I===32||I===41||$f(I)?r(I):(e.enter(i),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),x(I))}function T(I){return I===62?(e.enter(s),e.consume(I),e.exit(s),e.exit(l),e.exit(i),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),y(I))}function y(I){return I===62?(e.exit("chunkString"),e.exit(d),T(I)):I===null||I===60||Le(I)?r(I):(e.consume(I),I===92?v:y)}function v(I){return I===60||I===62||I===92?(e.consume(I),y):y(I)}function x(I){return!b&&(I===null||I===41||Mn(I))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(i),t(I)):b<p&&I===40?(e.consume(I),b++,x):I===41?(e.consume(I),b--,x):I===null||I===32||I===40||$f(I)?r(I):(e.consume(I),I===92?B:x)}function B(I){return I===40||I===41||I===92?(e.consume(I),x):x(I)}}function I1(e,t,r,i,l,s){const c=this;let d=0,h;return p;function p(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&&!h||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):Le(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),b):(e.enter("chunkString",{contentType:"string"}),E(y))}function E(y){return y===null||y===91||y===93||Le(y)||d++>999?(e.exit("chunkString"),b(y)):(e.consume(y),h||(h=!pt(y)),y===92?T:E)}function T(y){return y===91||y===92||y===93?(e.consume(y),d++,E):E(y)}}function D1(e,t,r,i,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,h):r(T)}function h(T){return T===c?(e.enter(l),e.consume(T),e.exit(l),e.exit(i),t):(e.enter(s),p(T))}function p(T){return T===c?(e.exit(s),h(c)):T===null?r(T):Le(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),yt(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(T))}function b(T){return T===c||T===null||Le(T)?(e.exit("chunkString"),p(T)):(e.consume(T),T===92?E:b)}function E(T){return T===c||T===92?(e.consume(T),b):b(T)}}function ol(e,t){let r;return i;function i(l){return Le(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,i):pt(l)?yt(e,i,r?"linePrefix":"lineSuffix")(l):t(l)}}const FA={name:"definition",tokenize:YA},zA={partial:!0,tokenize:jA};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 I1.call(i,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function d(y){return l=Yi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),h):r(y)}function h(y){return Mn(y)?ol(e,p)(y):p(y)}function p(y){return k1(e,b,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function b(y){return e.attempt(zA,E,E)(y)}function E(y){return pt(y)?yt(e,T,"whitespace")(y):T(y)}function T(y){return y===null||Le(y)?(e.exit("definition"),i.parser.defined.push(l),t(y)):r(y)}}function jA(e,t,r){return i;function i(d){return Mn(d)?ol(e,l)(d):r(d)}function l(d){return D1(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return pt(d)?yt(e,c,"whitespace")(d):c(d)}function c(d){return d===null||Le(d)?t(d):r(d)}}const qA={name:"hardBreakEscape",tokenize:VA};function VA(e,t,r){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),l}function l(s){return Le(s)?(e.exit("hardBreakEscape"),t(s)):r(s)}}const GA={name:"headingAtx",resolve:$A,tokenize:XA};function $A(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"},wr(e,i,r-i+1,[["enter",l,t],["enter",s,t],["exit",s,t],["exit",l,t]])),e}function XA(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||Mn(b)?(e.exit("atxHeadingSequence"),d(b)):r(b)}function d(b){return b===35?(e.enter("atxHeadingSequence"),h(b)):b===null||Le(b)?(e.exit("atxHeading"),t(b)):pt(b)?yt(e,d,"whitespace")(b):(e.enter("atxHeadingText"),p(b))}function h(b){return b===35?(e.consume(b),h):(e.exit("atxHeadingSequence"),d(b))}function p(b){return b===null||b===35||Mn(b)?(e.exit("atxHeadingText"),d(b)):(e.consume(b),p)}}const QA=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],w1=["pre","script","style","textarea"],KA={concrete:!0,name:"htmlFlow",resolveTo:JA,tokenize:ex},WA={partial:!0,tokenize:nx},ZA={partial:!0,tokenize:tx};function JA(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 ex(e,t,r){const i=this;let l,s,c,d,h;return p;function p(O){return b(O)}function b(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),E}function E(O){return O===33?(e.consume(O),T):O===47?(e.consume(O),s=!0,x):O===63?(e.consume(O),l=3,i.interrupt?t:S):Lr(O)?(e.consume(O),c=String.fromCharCode(O),B):r(O)}function T(O){return O===45?(e.consume(O),l=2,y):O===91?(e.consume(O),l=5,d=0,v):Lr(O)?(e.consume(O),l=4,i.interrupt?t:S):r(O)}function y(O){return O===45?(e.consume(O),i.interrupt?t:S):r(O)}function v(O){const be="CDATA[";return O===be.charCodeAt(d++)?(e.consume(O),d===be.length?i.interrupt?t:$:v):r(O)}function x(O){return Lr(O)?(e.consume(O),c=String.fromCharCode(O),B):r(O)}function B(O){if(O===null||O===47||O===62||Mn(O)){const be=O===47,Re=c.toLowerCase();return!be&&!s&&w1.includes(Re)?(l=1,i.interrupt?t(O):$(O)):QA.includes(c.toLowerCase())?(l=6,be?(e.consume(O),I):i.interrupt?t(O):$(O)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(O):s?P(O):M(O))}return O===45||Qn(O)?(e.consume(O),c+=String.fromCharCode(O),B):r(O)}function I(O){return O===62?(e.consume(O),i.interrupt?t:$):r(O)}function P(O){return pt(O)?(e.consume(O),P):_(O)}function M(O){return O===47?(e.consume(O),_):O===58||O===95||Lr(O)?(e.consume(O),w):pt(O)?(e.consume(O),M):_(O)}function w(O){return O===45||O===46||O===58||O===95||Qn(O)?(e.consume(O),w):D(O)}function D(O){return O===61?(e.consume(O),N):pt(O)?(e.consume(O),D):M(O)}function N(O){return O===null||O===60||O===61||O===62||O===96?r(O):O===34||O===39?(e.consume(O),h=O,z):pt(O)?(e.consume(O),N):V(O)}function z(O){return O===h?(e.consume(O),h=null,j):O===null||Le(O)?r(O):(e.consume(O),z)}function V(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||Mn(O)?D(O):(e.consume(O),V)}function j(O){return O===47||O===62||pt(O)?M(O):r(O)}function _(O){return O===62?(e.consume(O),q):r(O)}function q(O){return O===null||Le(O)?$(O):pt(O)?(e.consume(O),q):r(O)}function $(O){return O===45&&l===2?(e.consume(O),F):O===60&&l===1?(e.consume(O),ae):O===62&&l===4?(e.consume(O),K):O===63&&l===3?(e.consume(O),S):O===93&&l===5?(e.consume(O),le):Le(O)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(WA,de,J)(O)):O===null||Le(O)?(e.exit("htmlFlowData"),J(O)):(e.consume(O),$)}function J(O){return e.check(ZA,Z,de)(O)}function Z(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),ne}function ne(O){return O===null||Le(O)?J(O):(e.enter("htmlFlowData"),$(O))}function F(O){return O===45?(e.consume(O),S):$(O)}function ae(O){return O===47?(e.consume(O),c="",ie):$(O)}function ie(O){if(O===62){const be=c.toLowerCase();return w1.includes(be)?(e.consume(O),K):$(O)}return Lr(O)&&c.length<8?(e.consume(O),c+=String.fromCharCode(O),ie):$(O)}function le(O){return O===93?(e.consume(O),S):$(O)}function S(O){return O===62?(e.consume(O),K):O===45&&l===2?(e.consume(O),S):$(O)}function K(O){return O===null||Le(O)?(e.exit("htmlFlowData"),de(O)):(e.consume(O),K)}function de(O){return e.exit("htmlFlow"),t(O)}}function tx(e,t,r){const i=this;return l;function l(c){return Le(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):r(c)}function s(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}function nx(e,t,r){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(us,t,r)}}const rx={name:"htmlText",tokenize:ax};function ax(e,t,r){const i=this;let l,s,c;return d;function d(S){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(S),h}function h(S){return S===33?(e.consume(S),p):S===47?(e.consume(S),D):S===63?(e.consume(S),M):Lr(S)?(e.consume(S),V):r(S)}function p(S){return S===45?(e.consume(S),b):S===91?(e.consume(S),s=0,v):Lr(S)?(e.consume(S),P):r(S)}function b(S){return S===45?(e.consume(S),y):r(S)}function E(S){return S===null?r(S):S===45?(e.consume(S),T):Le(S)?(c=E,ae(S)):(e.consume(S),E)}function T(S){return S===45?(e.consume(S),y):E(S)}function y(S){return S===62?F(S):S===45?T(S):E(S)}function v(S){const K="CDATA[";return S===K.charCodeAt(s++)?(e.consume(S),s===K.length?x:v):r(S)}function x(S){return S===null?r(S):S===93?(e.consume(S),B):Le(S)?(c=x,ae(S)):(e.consume(S),x)}function B(S){return S===93?(e.consume(S),I):x(S)}function I(S){return S===62?F(S):S===93?(e.consume(S),I):x(S)}function P(S){return S===null||S===62?F(S):Le(S)?(c=P,ae(S)):(e.consume(S),P)}function M(S){return S===null?r(S):S===63?(e.consume(S),w):Le(S)?(c=M,ae(S)):(e.consume(S),M)}function w(S){return S===62?F(S):M(S)}function D(S){return Lr(S)?(e.consume(S),N):r(S)}function N(S){return S===45||Qn(S)?(e.consume(S),N):z(S)}function z(S){return Le(S)?(c=z,ae(S)):pt(S)?(e.consume(S),z):F(S)}function V(S){return S===45||Qn(S)?(e.consume(S),V):S===47||S===62||Mn(S)?j(S):r(S)}function j(S){return S===47?(e.consume(S),F):S===58||S===95||Lr(S)?(e.consume(S),_):Le(S)?(c=j,ae(S)):pt(S)?(e.consume(S),j):F(S)}function _(S){return S===45||S===46||S===58||S===95||Qn(S)?(e.consume(S),_):q(S)}function q(S){return S===61?(e.consume(S),$):Le(S)?(c=q,ae(S)):pt(S)?(e.consume(S),q):j(S)}function $(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(e.consume(S),l=S,J):Le(S)?(c=$,ae(S)):pt(S)?(e.consume(S),$):(e.consume(S),Z)}function J(S){return S===l?(e.consume(S),l=void 0,ne):S===null?r(S):Le(S)?(c=J,ae(S)):(e.consume(S),J)}function Z(S){return S===null||S===34||S===39||S===60||S===61||S===96?r(S):S===47||S===62||Mn(S)?j(S):(e.consume(S),Z)}function ne(S){return S===47||S===62||Mn(S)?j(S):r(S)}function F(S){return S===62?(e.consume(S),e.exit("htmlTextData"),e.exit("htmlText"),t):r(S)}function ae(S){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),ie}function ie(S){return pt(S)?yt(e,le,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):le(S)}function le(S){return e.enter("htmlTextData"),c(S)}}const Zf={name:"labelEnd",resolveAll:ox,resolveTo:sx,tokenize:cx},ix={tokenize:fx},ux={tokenize:dx},lx={tokenize:hx};function ox(e){let t=-1;const r=[];for(;++t<e.length;){const i=e[t][1];if(r.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const l=i.type==="labelImage"?4:2;i.type="data",t+=l}}return e.length!==r.length&&wr(e,0,e.length,r),e}function sx(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 h={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[s][1].start},end:{...e[c][1].end}},b={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",h,t],["enter",p,t]],d=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",p,t]]),d=or(d,e.slice(c+1)),d=or(d,[["exit",h,t]]),wr(e,s,e.length,d),e}function cx(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(Yi(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(T),e.exit("labelMarker"),e.exit("labelEnd"),h):r(T)}function h(T){return T===40?e.attempt(ix,b,c?b:E)(T):T===91?e.attempt(ux,b,c?p:E)(T):c?b(T):E(T)}function p(T){return e.attempt(lx,b,E)(T)}function b(T){return t(T)}function E(T){return s._balanced=!0,r(T)}}function fx(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 Mn(E)?ol(e,s)(E):s(E)}function s(E){return E===41?b(E):k1(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(E)}function c(E){return Mn(E)?ol(e,h)(E):b(E)}function d(E){return r(E)}function h(E){return E===34||E===39||E===40?D1(e,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(E):b(E)}function p(E){return Mn(E)?ol(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 dx(e,t,r){const i=this;return l;function l(d){return I1.call(i,e,s,c,"reference","referenceMarker","referenceString")(d)}function s(d){return i.parser.defined.includes(Yi(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function c(d){return r(d)}}function hx(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 px={name:"labelStartImage",resolveAll:Zf.resolveAll,tokenize:mx};function mx(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 gx={name:"labelStartLink",resolveAll:Zf.resolveAll,tokenize:bx};function bx(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:Ex};function Ex(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),yt(e,t,"linePrefix")}}const ls={name:"thematicBreak",tokenize:yx};function yx(e,t,r){let i=0,l;return s;function s(p){return e.enter("thematicBreak"),c(p)}function c(p){return l=p,d(p)}function d(p){return p===l?(e.enter("thematicBreakSequence"),h(p)):i>=3&&(p===null||Le(p))?(e.exit("thematicBreak"),t(p)):r(p)}function h(p){return p===l?(e.consume(p),i++,h):(e.exit("thematicBreakSequence"),pt(p)?yt(e,d,"whitespace")(p):d(p))}}const Bn={continuation:{tokenize:Ax},exit:_x,name:"list",tokenize:Cx},Tx={partial:!0,tokenize:vx},Sx={partial:!0,tokenize:xx};function Cx(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 v=i.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!i.containerState.marker||y===i.containerState.marker:Xf(y)){if(i.containerState.type||(i.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(ls,r,p)(y):p(y);if(!i.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(y)}return r(y)}function h(y){return Xf(y)&&++c<10?(e.consume(y),h):(!i.interrupt||c<2)&&(i.containerState.marker?y===i.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),p(y)):r(y)}function p(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||y,e.check(us,i.interrupt?r:b,e.attempt(Tx,T,E))}function b(y){return i.containerState.initialBlankLine=!0,s++,T(y)}function E(y){return pt(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),T):r(y)}function T(y){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function Ax(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(us,l,s);function l(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,yt(e,t,"listItemIndent",i.containerState.size+1)(d)}function s(d){return i.containerState.furtherBlankLines||!pt(d)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,c(d)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Sx,t,c)(d))}function c(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,yt(e,e.attempt(Bn,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function xx(e,t,r){const i=this;return yt(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 _x(e){e.exit(this.containerState.type)}function vx(e,t,r){const i=this;return yt(e,l,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(s){const c=i.events[i.events.length-1];return!pt(s)&&c&&c[1].type==="listItemPrefixWhitespace"?t(s):r(s)}}const L1={name:"setextUnderline",resolveTo:Rx,tokenize:Nx};function Rx(e,t){let r=e.length,i,l,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",s?(e.splice(l,0,["enter",c,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=c,e.push(["exit",c,t]),e}function Nx(e,t,r){const i=this;let l;return s;function s(p){let b=i.events.length,E;for(;b--;)if(i.events[b][1].type!=="lineEnding"&&i.events[b][1].type!=="linePrefix"&&i.events[b][1].type!=="content"){E=i.events[b][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||E)?(e.enter("setextHeadingLine"),l=p,c(p)):r(p)}function c(p){return e.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===l?(e.consume(p),d):(e.exit("setextHeadingLineSequence"),pt(p)?yt(e,h,"lineSuffix")(p):h(p))}function h(p){return p===null||Le(p)?(e.exit("setextHeadingLine"),t(p)):r(p)}}const Ox={tokenize:kx};function kx(e){const t=this,r=e.attempt(us,i,e.attempt(this.parser.constructs.flowInitial,l,yt(e,e.attempt(this.parser.constructs.flow,l,e.attempt(MA,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:B1()},Dx=M1("string"),wx=M1("text");function M1(e){return{resolveAll:B1(e==="text"?Lx:void 0),tokenize:t};function t(r){const i=this,l=this.parser.constructs[e],s=r.attempt(l,c,d);return c;function c(b){return p(b)?s(b):d(b)}function d(b){if(b===null){r.consume(b);return}return r.enter("data"),r.consume(b),h}function h(b){return p(b)?(r.exit("data"),s(b)):(r.consume(b),h)}function p(b){if(b===null)return!0;const E=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 B1(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 Lx(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,h;for(;s--;){const p=l[s];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(p===-2)h=!0,d++;else if(p!==-1){s++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const p={type:r===e.length||h||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:i.start._bufferIndex+c,_index:i.start._index+s,line:i.end.line,column:i.end.column-d,offset:i.end.offset-d},end:{...i.end}};i.end={...p.start},i.start.offset===i.end.offset?Object.assign(i,p):(e.splice(r,0,["enter",p,t],["exit",p,t]),r+=2)}r++}return e}const Mx=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:FA},disable:{null:[]},document:{42:Bn,43:Bn,45:Bn,48:Bn,49:Bn,50:Bn,51:Bn,52:Bn,53:Bn,54:Bn,55:Bn,56:Bn,57:Bn,62:x1},flow:{35:GA,42:ls,45:[L1,ls],60:KA,61:L1,95:ls,96:N1,126:N1},flowInitial:{[-2]:Wf,[-1]:Wf,32:Wf},insideSpan:{null:[Kf,Ix]},string:{38:v1,92:_1},text:{[-5]:Jf,[-4]:Jf,[-3]:Jf,33:px,38:v1,42:Kf,60:[gA,rx],91:gx,92:[qA,_1],93:Zf,95:Kf,96:OA}},Symbol.toStringTag,{value:"Module"}));function Bx(e,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const l={},s=[];let c=[],d=[];const h={attempt:z(D),check:z(N),consume:P,enter:M,exit:w,interrupt:z(N,{interrupt:!0})},p={code:null,containerState:{},defineSkip:x,events:[],now:v,parser:e,previous:null,sliceSerialize:T,sliceStream:y,write:E};let b=t.tokenize.call(p,h);return t.resolveAll&&s.push(t),p;function E(q){return c=or(c,q),B(),c[c.length-1]!==null?[]:(V(t,0),p.events=Qf(s,p.events,p),p.events)}function T(q,$){return Ux(y(q),$)}function y(q){return Px(c,q)}function v(){const{_bufferIndex:q,_index:$,line:J,column:Z,offset:ne}=i;return{_bufferIndex:q,_index:$,line:J,column:Z,offset:ne}}function x(q){l[q.line]=q.column,_()}function B(){let q;for(;i._index<c.length;){const $=c[i._index];if(typeof $=="string")for(q=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===q&&i._bufferIndex<$.length;)I($.charCodeAt(i._bufferIndex));else I($)}}function I(q){b=b(q)}function P(q){Le(q)?(i.line++,i.column=1,i.offset+=q===-3?2:1,_()):q!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===c[i._index].length&&(i._bufferIndex=-1,i._index++)),p.previous=q}function M(q,$){const J=$||{};return J.type=q,J.start=v(),p.events.push(["enter",J,p]),d.push(J),J}function w(q){const $=d.pop();return $.end=v(),p.events.push(["exit",$,p]),$}function D(q,$){V(q,$.from)}function N(q,$){$.restore()}function z(q,$){return J;function J(Z,ne,F){let ae,ie,le,S;return Array.isArray(Z)?de(Z):"tokenize"in Z?de([Z]):K(Z);function K(Te){return Xe;function Xe(Be){const ut=Be!==null&&Te[Be],St=Be!==null&&Te.null,gt=[...Array.isArray(ut)?ut:ut?[ut]:[],...Array.isArray(St)?St:St?[St]:[]];return de(gt)(Be)}}function de(Te){return ae=Te,ie=0,Te.length===0?F:O(Te[ie])}function O(Te){return Xe;function Xe(Be){return S=j(),le=Te,Te.partial||(p.currentConstruct=Te),Te.name&&p.parser.constructs.disable.null.includes(Te.name)?Re():Te.tokenize.call($?Object.assign(Object.create(p),$):p,h,be,Re)(Be)}}function be(Te){return q(le,S),ne}function Re(Te){return S.restore(),++ie<ae.length?O(ae[ie]):F}}}function V(q,$){q.resolveAll&&!s.includes(q)&&s.push(q),q.resolve&&wr(p.events,$,p.events.length-$,q.resolve(p.events.slice($),p)),q.resolveTo&&(p.events=q.resolveTo(p.events,p))}function j(){const q=v(),$=p.previous,J=p.currentConstruct,Z=p.events.length,ne=Array.from(d);return{from:Z,restore:F};function F(){i=q,p.previous=$,p.currentConstruct=J,p.events.length=Z,d=ne,_()}}function _(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function Px(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 Ux(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&&o)continue;c=" ";break}default:c=String.fromCharCode(s)}o=s===-2,i.push(c)}return i.join("")}function Hx(e){const i={constructs:tA([Mx,...(e||{}).extensions||[]]),content:o(sA),defined:[],document:o(fA),flow:o(Ox),lazy:{},string:o(Dx),text:o(wx)};return i;function o(s){return c;function c(d){return Bx(i,s,d)}}}function Fx(e){for(;!O1(e););return e}const P1=/[\0\t\n\r]/g;function zx(){let e=1,t="",r=!0,i;return o;function o(s,c,d){const h=[];let p,E,b,T,y;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),b=0,t="",r&&(s.charCodeAt(0)===65279&&b++,r=void 0);b<s.length;){if(P1.lastIndex=b,p=P1.exec(s),T=p&&p.index!==void 0?p.index:s.length,y=s.charCodeAt(T),!p){t=s.slice(b);break}if(y===10&&b===T&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),b<T&&(h.push(s.slice(b,T)),e+=T-b),y){case 0:{h.push(65533),e++;break}case 9:{for(E=Math.ceil(e/4)*4,h.push(-2);e++<E;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:i=!0,e=1}b=T+1}return d&&(i&&h.push(-5),t&&h.push(t),h.push(null)),h}}const Yx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jx(e){return e.replace(Yx,qx)}function qx(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),s=o===120||o===88;return T1(r.slice(s?2:1),s?16:10)}return Gf(r)||e}const U1={}.hasOwnProperty;function Vx(e,t,r){return typeof t!="string"&&(r=t,t=void 0),Gx(r)(Fx(Hx(r).document().write(zx()(e,t,!0))))}function Gx(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(qe),autolinkProtocol:j,autolinkEmail:j,atxHeading:s(we),blockQuote:s(Ct),characterEscape:j,characterReference:j,codeFenced:s(gt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(gt,c),codeText:s(Ne,c),codeTextData:j,data:j,codeFlowValue:j,definition:s(Oe),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Ce),hardBreakEscape:s(ke),hardBreakTrailing:s(ke),htmlFlow:s(Me,c),htmlFlowData:j,htmlText:s(Me,c),htmlTextData:j,image:s(Fe),label:c,link:s(qe),listItem:s(ct),listItemValue:T,listOrdered:s($e,b),listUnordered:s($e),paragraph:s(Ie),reference:O,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(we),strong:s(un),thematicBreak:s(Bt)},exit:{atxHeading:h(),atxHeadingSequence:D,autolink:h(),autolinkEmail:ut,autolinkProtocol:Be,blockQuote:h(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:Re,characterReferenceMarkerNumeric:Re,characterReferenceValue:Te,characterReference:Xe,codeFenced:h(B),codeFencedFence:x,codeFencedFenceInfo:y,codeFencedFenceMeta:v,codeFlowValue:_,codeIndented:h(I),codeText:h(ne),codeTextData:_,data:_,definition:h(),definitionDestinationString:w,definitionLabelString:P,definitionTitleString:M,emphasis:h(),hardBreakEscape:h($),hardBreakTrailing:h($),htmlFlow:h(J),htmlFlowData:_,htmlText:h(Z),htmlTextData:_,image:h(ae),label:oe,labelText:ie,lineEnding:q,link:h(F),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:Ee,resourceDestinationString:S,resourceTitleString:K,resource:de,setextHeading:h(V),setextHeadingLineSequence:z,setextHeadingText:N,strong:h(),thematicBreak:h()}};H1(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(re){let he={type:"root",children:[]};const Se={stack:[he],tokenStack:[],config:t,enter:d,exit:p,buffer:c,resume:E,data:r},Ae=[];let Pe=-1;for(;++Pe<re.length;)if(re[Pe][1].type==="listOrdered"||re[Pe][1].type==="listUnordered")if(re[Pe][0]==="enter")Ae.push(Pe);else{const Ve=Ae.pop();Pe=o(re,Ve,Pe)}for(Pe=-1;++Pe<re.length;){const Ve=t[re[Pe][0]];U1.call(Ve,re[Pe][1].type)&&Ve[re[Pe][1].type].call(Object.assign({sliceSerialize:re[Pe][2].sliceSerialize},Se),re[Pe][1])}if(Se.tokenStack.length>0){const Ve=Se.tokenStack[Se.tokenStack.length-1];(Ve[1]||F1).call(Se,void 0,Ve[0])}for(he.position={start:ya(re.length>0?re[0][1].start:{line:1,column:1,offset:0}),end:ya(re.length>0?re[re.length-2][1].end:{line:1,column:1,offset:0})},Pe=-1;++Pe<t.transforms.length;)he=t.transforms[Pe](he)||he;return he}function o(re,he,Se){let Ae=he-1,Pe=-1,Ve=!1,Tt,At,Zn,fn;for(;++Ae<=Se;){const nn=re[Ae];switch(nn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{nn[0]==="enter"?Pe++:Pe--,fn=void 0;break}case"lineEndingBlank":{nn[0]==="enter"&&(Tt&&!fn&&!Pe&&!Zn&&(Zn=Ae),fn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:fn=void 0}if(!Pe&&nn[0]==="enter"&&nn[1].type==="listItemPrefix"||Pe===-1&&nn[0]==="exit"&&(nn[1].type==="listUnordered"||nn[1].type==="listOrdered")){if(Tt){let Hn=Ae;for(At=void 0;Hn--;){const Fn=re[Hn];if(Fn[1].type==="lineEnding"||Fn[1].type==="lineEndingBlank"){if(Fn[0]==="exit")continue;At&&(re[At][1].type="lineEndingBlank",Ve=!0),Fn[1].type="lineEnding",At=Hn}else if(!(Fn[1].type==="linePrefix"||Fn[1].type==="blockQuotePrefix"||Fn[1].type==="blockQuotePrefixWhitespace"||Fn[1].type==="blockQuoteMarker"||Fn[1].type==="listItemIndent"))break}Zn&&(!At||Zn<At)&&(Tt._spread=!0),Tt.end=Object.assign({},At?re[At][1].start:nn[1].end),re.splice(At||Ae,0,["exit",Tt,nn[2]]),Ae++,Se++}if(nn[1].type==="listItemPrefix"){const Hn={type:"listItem",_spread:!1,start:Object.assign({},nn[1].start),end:void 0};Tt=Hn,re.splice(Ae,0,["enter",Hn,nn[2]]),Ae++,Se++,Zn=void 0,fn=!0}}}return re[he][1]._spread=Ve,Se}function s(re,he){return Se;function Se(Ae){d.call(this,re(Ae),Ae),he&&he.call(this,Ae)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(re,he,Se){this.stack[this.stack.length-1].children.push(re),this.stack.push(re),this.tokenStack.push([he,Se||void 0]),re.position={start:ya(he.start),end:void 0}}function h(re){return he;function he(Se){re&&re.call(this,Se),p.call(this,Se)}}function p(re,he){const Se=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==re.type&&(he?he.call(this,re,Ae[0]):(Ae[1]||F1).call(this,re,Ae[0]));else throw new Error("Cannot close `"+re.type+"` ("+ao({start:re.start,end:re.end})+"): it’s not open");Se.position.end=ya(re.end)}function E(){return J6(this.stack.pop())}function b(){this.data.expectingFirstListItemValue=!0}function T(re){if(this.data.expectingFirstListItemValue){const he=this.stack[this.stack.length-2];he.start=Number.parseInt(this.sliceSerialize(re),10),this.data.expectingFirstListItemValue=void 0}}function y(){const re=this.resume(),he=this.stack[this.stack.length-1];he.lang=re}function v(){const re=this.resume(),he=this.stack[this.stack.length-1];he.meta=re}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function B(){const re=this.resume(),he=this.stack[this.stack.length-1];he.value=re.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function I(){const re=this.resume(),he=this.stack[this.stack.length-1];he.value=re.replace(/(\r?\n|\r)$/g,"")}function P(re){const he=this.resume(),Se=this.stack[this.stack.length-1];Se.label=he,Se.identifier=Yi(this.sliceSerialize(re)).toLowerCase()}function M(){const re=this.resume(),he=this.stack[this.stack.length-1];he.title=re}function w(){const re=this.resume(),he=this.stack[this.stack.length-1];he.url=re}function D(re){const he=this.stack[this.stack.length-1];if(!he.depth){const Se=this.sliceSerialize(re).length;he.depth=Se}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function z(re){const he=this.stack[this.stack.length-1];he.depth=this.sliceSerialize(re).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function j(re){const Se=this.stack[this.stack.length-1].children;let Ae=Se[Se.length-1];(!Ae||Ae.type!=="text")&&(Ae=Ft(),Ae.position={start:ya(re.start),end:void 0},Se.push(Ae)),this.stack.push(Ae)}function _(re){const he=this.stack.pop();he.value+=this.sliceSerialize(re),he.position.end=ya(re.end)}function q(re){const he=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Se=he.children[he.children.length-1];Se.position.end=ya(re.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(he.type)&&(j.call(this,re),_.call(this,re))}function $(){this.data.atHardBreak=!0}function J(){const re=this.resume(),he=this.stack[this.stack.length-1];he.value=re}function Z(){const re=this.resume(),he=this.stack[this.stack.length-1];he.value=re}function ne(){const re=this.resume(),he=this.stack[this.stack.length-1];he.value=re}function F(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const he=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=he,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function ae(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const he=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=he,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function ie(re){const he=this.sliceSerialize(re),Se=this.stack[this.stack.length-2];Se.label=jx(he),Se.identifier=Yi(he).toLowerCase()}function oe(){const re=this.stack[this.stack.length-1],he=this.resume(),Se=this.stack[this.stack.length-1];if(this.data.inReference=!0,Se.type==="link"){const Ae=re.children;Se.children=Ae}else Se.alt=he}function S(){const re=this.resume(),he=this.stack[this.stack.length-1];he.url=re}function K(){const re=this.resume(),he=this.stack[this.stack.length-1];he.title=re}function de(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function Ee(re){const he=this.resume(),Se=this.stack[this.stack.length-1];Se.label=he,Se.identifier=Yi(this.sliceSerialize(re)).toLowerCase(),this.data.referenceType="full"}function Re(re){this.data.characterReferenceType=re.type}function Te(re){const he=this.sliceSerialize(re),Se=this.data.characterReferenceType;let Ae;Se?(Ae=T1(he,Se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=Gf(he);const Pe=this.stack[this.stack.length-1];Pe.value+=Ae}function Xe(re){const he=this.stack.pop();he.position.end=ya(re.end)}function Be(re){_.call(this,re);const he=this.stack[this.stack.length-1];he.url=this.sliceSerialize(re)}function ut(re){_.call(this,re);const he=this.stack[this.stack.length-1];he.url="mailto:"+this.sliceSerialize(re)}function Ct(){return{type:"blockquote",children:[]}}function gt(){return{type:"code",lang:null,meta:null,value:""}}function Ne(){return{type:"inlineCode",value:""}}function Oe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ce(){return{type:"emphasis",children:[]}}function we(){return{type:"heading",depth:0,children:[]}}function ke(){return{type:"break"}}function Me(){return{type:"html",value:""}}function Fe(){return{type:"image",title:null,url:"",alt:null}}function qe(){return{type:"link",title:null,url:"",children:[]}}function $e(re){return{type:"list",ordered:re.type==="listOrdered",start:null,spread:re._spread,children:[]}}function ct(re){return{type:"listItem",spread:re._spread,checked:null,children:[]}}function Ie(){return{type:"paragraph",children:[]}}function un(){return{type:"strong",children:[]}}function Ft(){return{type:"text",value:""}}function Bt(){return{type:"thematicBreak"}}}function ya(e){return{line:e.line,column:e.column,offset:e.offset}}function H1(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?H1(e,i):$x(e,i)}}function $x(e,t){let r;for(r in t)if(U1.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&e[r].push(...i);break}case"transforms":{const i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(e[r],i);break}}}function F1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ao({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ao({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ao({start:t.start,end:t.end})+") is still open")}function Xx(e){const t=this;t.parser=r;function r(i){return Vx(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Qx(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 Kx(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
59
+ `;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&l)continue;c=" ";break}default:c=String.fromCharCode(s)}l=s===-2,i.push(c)}return i.join("")}function Hx(e){const i={constructs:tA([Mx,...(e||{}).extensions||[]]),content:l(sA),defined:[],document:l(fA),flow:l(Ox),lazy:{},string:l(Dx),text:l(wx)};return i;function l(s){return c;function c(d){return Bx(i,s,d)}}}function Fx(e){for(;!O1(e););return e}const P1=/[\0\t\n\r]/g;function zx(){let e=1,t="",r=!0,i;return l;function l(s,c,d){const h=[];let p,b,E,T,y;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),E=0,t="",r&&(s.charCodeAt(0)===65279&&E++,r=void 0);E<s.length;){if(P1.lastIndex=E,p=P1.exec(s),T=p&&p.index!==void 0?p.index:s.length,y=s.charCodeAt(T),!p){t=s.slice(E);break}if(y===10&&E===T&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),E<T&&(h.push(s.slice(E,T)),e+=T-E),y){case 0:{h.push(65533),e++;break}case 9:{for(b=Math.ceil(e/4)*4,h.push(-2);e++<b;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:i=!0,e=1}E=T+1}return d&&(i&&h.push(-5),t&&h.push(t),h.push(null)),h}}const Yx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jx(e){return e.replace(Yx,qx)}function qx(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),s=l===120||l===88;return T1(r.slice(s?2:1),s?16:10)}return Gf(r)||e}const U1={}.hasOwnProperty;function Vx(e,t,r){return typeof t!="string"&&(r=t,t=void 0),Gx(r)(Fx(Hx(r).document().write(zx()(e,t,!0))))}function Gx(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(qe),autolinkProtocol:j,autolinkEmail:j,atxHeading:s(we),blockQuote:s(St),characterEscape:j,characterReference:j,codeFenced:s(gt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(gt,c),codeText:s(Ne,c),codeTextData:j,data:j,codeFlowValue:j,definition:s(Oe),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Ce),hardBreakEscape:s(ke),hardBreakTrailing:s(ke),htmlFlow:s(Me,c),htmlFlowData:j,htmlText:s(Me,c),htmlTextData:j,image:s(Fe),label:c,link:s(qe),listItem:s(ct),listItemValue:T,listOrdered:s($e,E),listUnordered:s($e),paragraph:s(Ie),reference:O,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(we),strong:s(un),thematicBreak:s(Bt)},exit:{atxHeading:h(),atxHeadingSequence:D,autolink:h(),autolinkEmail:ut,autolinkProtocol:Be,blockQuote:h(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:Re,characterReferenceMarkerNumeric:Re,characterReferenceValue:Te,characterReference:Xe,codeFenced:h(B),codeFencedFence:x,codeFencedFenceInfo:y,codeFencedFenceMeta:v,codeFlowValue:_,codeIndented:h(I),codeText:h(ne),codeTextData:_,data:_,definition:h(),definitionDestinationString:w,definitionLabelString:P,definitionTitleString:M,emphasis:h(),hardBreakEscape:h($),hardBreakTrailing:h($),htmlFlow:h(J),htmlFlowData:_,htmlText:h(Z),htmlTextData:_,image:h(ae),label:le,labelText:ie,lineEnding:q,link:h(F),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:be,resourceDestinationString:S,resourceTitleString:K,resource:de,setextHeading:h(V),setextHeadingLineSequence:z,setextHeadingText:N,strong:h(),thematicBreak:h()}};H1(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(re){let he={type:"root",children:[]};const Se={stack:[he],tokenStack:[],config:t,enter:d,exit:p,buffer:c,resume:b,data:r},Ae=[];let Ue=-1;for(;++Ue<re.length;)if(re[Ue][1].type==="listOrdered"||re[Ue][1].type==="listUnordered")if(re[Ue][0]==="enter")Ae.push(Ue);else{const Ve=Ae.pop();Ue=l(re,Ve,Ue)}for(Ue=-1;++Ue<re.length;){const Ve=t[re[Ue][0]];U1.call(Ve,re[Ue][1].type)&&Ve[re[Ue][1].type].call(Object.assign({sliceSerialize:re[Ue][2].sliceSerialize},Se),re[Ue][1])}if(Se.tokenStack.length>0){const Ve=Se.tokenStack[Se.tokenStack.length-1];(Ve[1]||F1).call(Se,void 0,Ve[0])}for(he.position={start:ya(re.length>0?re[0][1].start:{line:1,column:1,offset:0}),end:ya(re.length>0?re[re.length-2][1].end:{line:1,column:1,offset:0})},Ue=-1;++Ue<t.transforms.length;)he=t.transforms[Ue](he)||he;return he}function l(re,he,Se){let Ae=he-1,Ue=-1,Ve=!1,Tt,Ct,Zn,fn;for(;++Ae<=Se;){const nn=re[Ae];switch(nn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{nn[0]==="enter"?Ue++:Ue--,fn=void 0;break}case"lineEndingBlank":{nn[0]==="enter"&&(Tt&&!fn&&!Ue&&!Zn&&(Zn=Ae),fn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:fn=void 0}if(!Ue&&nn[0]==="enter"&&nn[1].type==="listItemPrefix"||Ue===-1&&nn[0]==="exit"&&(nn[1].type==="listUnordered"||nn[1].type==="listOrdered")){if(Tt){let Hn=Ae;for(Ct=void 0;Hn--;){const Fn=re[Hn];if(Fn[1].type==="lineEnding"||Fn[1].type==="lineEndingBlank"){if(Fn[0]==="exit")continue;Ct&&(re[Ct][1].type="lineEndingBlank",Ve=!0),Fn[1].type="lineEnding",Ct=Hn}else if(!(Fn[1].type==="linePrefix"||Fn[1].type==="blockQuotePrefix"||Fn[1].type==="blockQuotePrefixWhitespace"||Fn[1].type==="blockQuoteMarker"||Fn[1].type==="listItemIndent"))break}Zn&&(!Ct||Zn<Ct)&&(Tt._spread=!0),Tt.end=Object.assign({},Ct?re[Ct][1].start:nn[1].end),re.splice(Ct||Ae,0,["exit",Tt,nn[2]]),Ae++,Se++}if(nn[1].type==="listItemPrefix"){const Hn={type:"listItem",_spread:!1,start:Object.assign({},nn[1].start),end:void 0};Tt=Hn,re.splice(Ae,0,["enter",Hn,nn[2]]),Ae++,Se++,Zn=void 0,fn=!0}}}return re[he][1]._spread=Ve,Se}function s(re,he){return Se;function Se(Ae){d.call(this,re(Ae),Ae),he&&he.call(this,Ae)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(re,he,Se){this.stack[this.stack.length-1].children.push(re),this.stack.push(re),this.tokenStack.push([he,Se||void 0]),re.position={start:ya(he.start),end:void 0}}function h(re){return he;function he(Se){re&&re.call(this,Se),p.call(this,Se)}}function p(re,he){const Se=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==re.type&&(he?he.call(this,re,Ae[0]):(Ae[1]||F1).call(this,re,Ae[0]));else throw new Error("Cannot close `"+re.type+"` ("+al({start:re.start,end:re.end})+"): it’s not open");Se.position.end=ya(re.end)}function b(){return J6(this.stack.pop())}function E(){this.data.expectingFirstListItemValue=!0}function T(re){if(this.data.expectingFirstListItemValue){const he=this.stack[this.stack.length-2];he.start=Number.parseInt(this.sliceSerialize(re),10),this.data.expectingFirstListItemValue=void 0}}function y(){const re=this.resume(),he=this.stack[this.stack.length-1];he.lang=re}function v(){const re=this.resume(),he=this.stack[this.stack.length-1];he.meta=re}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function B(){const re=this.resume(),he=this.stack[this.stack.length-1];he.value=re.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function I(){const re=this.resume(),he=this.stack[this.stack.length-1];he.value=re.replace(/(\r?\n|\r)$/g,"")}function P(re){const he=this.resume(),Se=this.stack[this.stack.length-1];Se.label=he,Se.identifier=Yi(this.sliceSerialize(re)).toLowerCase()}function M(){const re=this.resume(),he=this.stack[this.stack.length-1];he.title=re}function w(){const re=this.resume(),he=this.stack[this.stack.length-1];he.url=re}function D(re){const he=this.stack[this.stack.length-1];if(!he.depth){const Se=this.sliceSerialize(re).length;he.depth=Se}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function z(re){const he=this.stack[this.stack.length-1];he.depth=this.sliceSerialize(re).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function j(re){const Se=this.stack[this.stack.length-1].children;let Ae=Se[Se.length-1];(!Ae||Ae.type!=="text")&&(Ae=Ft(),Ae.position={start:ya(re.start),end:void 0},Se.push(Ae)),this.stack.push(Ae)}function _(re){const he=this.stack.pop();he.value+=this.sliceSerialize(re),he.position.end=ya(re.end)}function q(re){const he=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Se=he.children[he.children.length-1];Se.position.end=ya(re.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(he.type)&&(j.call(this,re),_.call(this,re))}function $(){this.data.atHardBreak=!0}function J(){const re=this.resume(),he=this.stack[this.stack.length-1];he.value=re}function Z(){const re=this.resume(),he=this.stack[this.stack.length-1];he.value=re}function ne(){const re=this.resume(),he=this.stack[this.stack.length-1];he.value=re}function F(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const he=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=he,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function ae(){const re=this.stack[this.stack.length-1];if(this.data.inReference){const he=this.data.referenceType||"shortcut";re.type+="Reference",re.referenceType=he,delete re.url,delete re.title}else delete re.identifier,delete re.label;this.data.referenceType=void 0}function ie(re){const he=this.sliceSerialize(re),Se=this.stack[this.stack.length-2];Se.label=jx(he),Se.identifier=Yi(he).toLowerCase()}function le(){const re=this.stack[this.stack.length-1],he=this.resume(),Se=this.stack[this.stack.length-1];if(this.data.inReference=!0,Se.type==="link"){const Ae=re.children;Se.children=Ae}else Se.alt=he}function S(){const re=this.resume(),he=this.stack[this.stack.length-1];he.url=re}function K(){const re=this.resume(),he=this.stack[this.stack.length-1];he.title=re}function de(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function be(re){const he=this.resume(),Se=this.stack[this.stack.length-1];Se.label=he,Se.identifier=Yi(this.sliceSerialize(re)).toLowerCase(),this.data.referenceType="full"}function Re(re){this.data.characterReferenceType=re.type}function Te(re){const he=this.sliceSerialize(re),Se=this.data.characterReferenceType;let Ae;Se?(Ae=T1(he,Se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=Gf(he);const Ue=this.stack[this.stack.length-1];Ue.value+=Ae}function Xe(re){const he=this.stack.pop();he.position.end=ya(re.end)}function Be(re){_.call(this,re);const he=this.stack[this.stack.length-1];he.url=this.sliceSerialize(re)}function ut(re){_.call(this,re);const he=this.stack[this.stack.length-1];he.url="mailto:"+this.sliceSerialize(re)}function St(){return{type:"blockquote",children:[]}}function gt(){return{type:"code",lang:null,meta:null,value:""}}function Ne(){return{type:"inlineCode",value:""}}function Oe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ce(){return{type:"emphasis",children:[]}}function we(){return{type:"heading",depth:0,children:[]}}function ke(){return{type:"break"}}function Me(){return{type:"html",value:""}}function Fe(){return{type:"image",title:null,url:"",alt:null}}function qe(){return{type:"link",title:null,url:"",children:[]}}function $e(re){return{type:"list",ordered:re.type==="listOrdered",start:null,spread:re._spread,children:[]}}function ct(re){return{type:"listItem",spread:re._spread,checked:null,children:[]}}function Ie(){return{type:"paragraph",children:[]}}function un(){return{type:"strong",children:[]}}function Ft(){return{type:"text",value:""}}function Bt(){return{type:"thematicBreak"}}}function ya(e){return{line:e.line,column:e.column,offset:e.offset}}function H1(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?H1(e,i):$x(e,i)}}function $x(e,t){let r;for(r in t)if(U1.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&e[r].push(...i);break}case"transforms":{const i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(e[r],i);break}}}function F1(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+al({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+al({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+al({start:t.start,end:t.end})+") is still open")}function Xx(e){const t=this;t.parser=r;function r(i){return Vx(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Qx(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 Kx(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
60
60
  `}]}function Wx(e,t){const r=t.value?t.value+`
61
- `:"",i={};t.lang&&(i.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function Zx(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Jx(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function e_(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=ji(i.toLowerCase()),s=e.footnoteOrder.indexOf(i);let c,d=e.footnoteCounts.get(i);d===void 0?(d=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=s+1,d+=1,e.footnoteCounts.set(i,d);const h={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,h);const p={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,p),e.applyData(t,p)}function t_(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 n_(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function z1(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const o=e.all(t),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=i:o.push({type:"text",value:i}),o}function r_(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return z1(e,t);const o={src:ji(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(o.title=i.title);const s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,s),e.applyData(t,s)}function a_(e,t){const r={src:ji(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function i_(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 u_(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return z1(e,t);const o={href:ji(i.url||"")};i.title!==null&&i.title!==void 0&&(o.title=i.title);const s={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function o_(e,t){const r={href:ji(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function l_(e,t,r){const i=e.all(t),o=r?s_(r):Y1(t),s={},c=[];if(typeof t.checked=="boolean"){const E=i[0];let b;E&&E.type==="element"&&E.tagName==="p"?b=E:(b={type:"element",tagName:"p",properties:{},children:[]},i.unshift(b)),b.children.length>0&&b.children.unshift({type:"text",value:" "}),b.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 E=i[d];(o||d!==0||E.type!=="element"||E.tagName!=="p")&&c.push({type:"text",value:`
62
- `}),E.type==="element"&&E.tagName==="p"&&!o?c.push(...E.children):c.push(E)}const h=i[i.length-1];h&&(o||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
63
- `});const p={type:"element",tagName:"li",properties:s,children:c};return e.patch(t,p),e.applyData(t,p)}function s_(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let i=-1;for(;!t&&++i<r.length;)t=Y1(r[i])}return t}function Y1(e){const t=e.spread;return t??e.children.length>1}function c_(e,t){const r={},i=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++o<i.length;){const c=i[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function f_(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function d_(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function h_(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function p_(e,t){const r=e.all(t),i=r.shift(),o=[];if(i){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],c),o.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=Dr(t.children[1]),h=is(t.children[t.children.length-1]);d&&h&&(c.position={start:d,end:h}),o.push(c)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,s),e.applyData(t,s)}function m_(e,t,r){const i=r?r.children:void 0,s=(i?i.indexOf(t):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,d=c?c.length:t.children.length;let h=-1;const p=[];for(;++h<d;){const b=t.children[h],T={},y=c?c[h]:void 0;y&&(T.align=y);let v={type:"element",tagName:s,properties:T,children:[]};b&&(v.children=e.all(b),e.patch(b,v),v=e.applyData(b,v)),p.push(v)}const E={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(t,E),e.applyData(t,E)}function g_(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const j1=9,q1=32;function E_(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),o=0;const s=[];for(;i;)s.push(V1(t.slice(o,i.index),o>0,!0),i[0]),o=i.index+i[0].length,i=r.exec(t);return s.push(V1(t.slice(o),o>0,!1)),s.join("")}function V1(e,t,r){let i=0,o=e.length;if(t){let s=e.codePointAt(i);for(;s===j1||s===q1;)i++,s=e.codePointAt(i)}if(r){let s=e.codePointAt(o-1);for(;s===j1||s===q1;)o--,s=e.codePointAt(o-1)}return o>i?e.slice(i,o):""}function b_(e,t){const r={type:"text",value:E_(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function y_(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const T_={blockquote:Qx,break:Kx,code:Wx,delete:Zx,emphasis:Jx,footnoteReference:e_,heading:t_,html:n_,imageReference:r_,image:a_,inlineCode:i_,linkReference:u_,link:o_,listItem:l_,list:c_,paragraph:f_,root:d_,strong:h_,table:p_,tableCell:g_,tableRow:m_,text:b_,thematicBreak:y_,toml:ls,yaml:ls,definition:ls,footnoteDefinition:ls};function ls(){}const G1=-1,ss=0,so=1,cs=2,ed=3,td=4,nd=5,rd=6,$1=7,X1=8,Q1=typeof self=="object"?self:globalThis,S_=(e,t)=>{const r=(o,s)=>(e.set(s,o),o),i=o=>{if(e.has(o))return e.get(o);const[s,c]=t[o];switch(s){case ss:case G1:return r(c,o);case so:{const d=r([],o);for(const h of c)d.push(i(h));return d}case cs:{const d=r({},o);for(const[h,p]of c)d[i(h)]=i(p);return d}case ed:return r(new Date(c),o);case td:{const{source:d,flags:h}=c;return r(new RegExp(d,h),o)}case nd:{const d=r(new Map,o);for(const[h,p]of c)d.set(i(h),i(p));return d}case rd:{const d=r(new Set,o);for(const h of c)d.add(i(h));return d}case $1:{const{name:d,message:h}=c;return r(new Q1[d](h),o)}case X1:return r(BigInt(c),o);case"BigInt":return r(Object(BigInt(c)),o);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return r(new DataView(d),c)}}return r(new Q1[s](c),o)};return i},K1=e=>S_(new Map,e)(0),qi="",{toString:C_}={},{keys:A_}=Object,co=e=>{const t=typeof e;if(t!=="object"||!e)return[ss,t];const r=C_.call(e).slice(8,-1);switch(r){case"Array":return[so,qi];case"Object":return[cs,qi];case"Date":return[ed,qi];case"RegExp":return[td,qi];case"Map":return[nd,qi];case"Set":return[rd,qi];case"DataView":return[so,r]}return r.includes("Array")?[so,r]:r.includes("Error")?[$1,r]:[cs,r]},fs=([e,t])=>e===ss&&(t==="function"||t==="symbol"),x_=(e,t,r,i)=>{const o=(c,d)=>{const h=i.push(c)-1;return r.set(d,h),h},s=c=>{if(r.has(c))return r.get(c);let[d,h]=co(c);switch(d){case ss:{let E=c;switch(h){case"bigint":d=X1,E=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);E=null;break;case"undefined":return o([G1],c)}return o([d,E],c)}case so:{if(h){let T=c;return h==="DataView"?T=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(T=new Uint8Array(c)),o([h,[...T]],c)}const E=[],b=o([d,E],c);for(const T of c)E.push(s(T));return b}case cs:{if(h)switch(h){case"BigInt":return o([h,c.toString()],c);case"Boolean":case"Number":case"String":return o([h,c.valueOf()],c)}if(t&&"toJSON"in c)return s(c.toJSON());const E=[],b=o([d,E],c);for(const T of A_(c))(e||!fs(co(c[T])))&&E.push([s(T),s(c[T])]);return b}case ed:return o([d,c.toISOString()],c);case td:{const{source:E,flags:b}=c;return o([d,{source:E,flags:b}],c)}case nd:{const E=[],b=o([d,E],c);for(const[T,y]of c)(e||!(fs(co(T))||fs(co(y))))&&E.push([s(T),s(y)]);return b}case rd:{const E=[],b=o([d,E],c);for(const T of c)(e||!fs(co(T)))&&E.push(s(T));return b}}const{message:p}=c;return o([d,{name:h,message:p}],c)};return s},W1=(e,{json:t,lossy:r}={})=>{const i=[];return x_(!(t||r),!!t,new Map,i)(e),i},Vi=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?K1(W1(e,t)):structuredClone(e):(e,t)=>K1(W1(e,t));function __(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 v_(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function R_(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||__,i=e.options.footnoteBackLabel||v_,o=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let h=-1;for(;++h<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[h]);if(!p)continue;const E=e.all(p),b=String(p.identifier).toUpperCase(),T=ji(b.toLowerCase());let y=0;const v=[],x=e.footnoteCounts.get(b);for(;x!==void 0&&++y<=x;){v.length>0&&v.push({type:"text",value:" "});let P=typeof r=="string"?r:r(h,y);typeof P=="string"&&(P={type:"text",value:P}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+T+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(h,y),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const B=E[E.length-1];if(B&&B.type==="element"&&B.tagName==="p"){const P=B.children[B.children.length-1];P&&P.type==="text"?P.value+=" ":B.children.push({type:"text",value:" "}),B.children.push(...v)}else E.push(...v);const I={type:"element",tagName:"li",properties:{id:t+"fn-"+T},children:e.wrap(E,!0)};e.patch(p,I),d.push(I)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Vi(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
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 Zx(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Jx(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function e_(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=ji(i.toLowerCase()),s=e.footnoteOrder.indexOf(i);let c,d=e.footnoteCounts.get(i);d===void 0?(d=0,e.footnoteOrder.push(i),c=e.footnoteOrder.length):c=s+1,d+=1,e.footnoteCounts.set(i,d);const h={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,h);const p={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,p),e.applyData(t,p)}function t_(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 n_(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function z1(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const 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 r_(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return z1(e,t);const l={src:ji(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(l.title=i.title);const s={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,s),e.applyData(t,s)}function a_(e,t){const r={src:ji(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function i_(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 u_(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return z1(e,t);const l={href:ji(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 l_(e,t){const r={href:ji(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function o_(e,t,r){const i=e.all(t),l=r?s_(r):Y1(t),s={},c=[];if(typeof t.checked=="boolean"){const b=i[0];let E;b&&b.type==="element"&&b.tagName==="p"?E=b:(E={type:"element",tagName:"p",properties:{},children:[]},i.unshift(E)),E.children.length>0&&E.children.unshift({type:"text",value:" "}),E.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let d=-1;for(;++d<i.length;){const b=i[d];(l||d!==0||b.type!=="element"||b.tagName!=="p")&&c.push({type:"text",value:`
62
+ `}),b.type==="element"&&b.tagName==="p"&&!l?c.push(...b.children):c.push(b)}const h=i[i.length-1];h&&(l||h.type!=="element"||h.tagName!=="p")&&c.push({type:"text",value:`
63
+ `});const p={type:"element",tagName:"li",properties:s,children:c};return e.patch(t,p),e.applyData(t,p)}function s_(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let i=-1;for(;!t&&++i<r.length;)t=Y1(r[i])}return t}function Y1(e){const t=e.spread;return t??e.children.length>1}function c_(e,t){const r={},i=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++l<i.length;){const c=i[l];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function f_(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function d_(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function h_(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function p_(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=Dr(t.children[1]),h=is(t.children[t.children.length-1]);d&&h&&(c.position={start:d,end:h}),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 m_(e,t,r){const i=r?r.children:void 0,s=(i?i.indexOf(t):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,d=c?c.length:t.children.length;let h=-1;const p=[];for(;++h<d;){const E=t.children[h],T={},y=c?c[h]:void 0;y&&(T.align=y);let v={type:"element",tagName:s,properties:T,children:[]};E&&(v.children=e.all(E),e.patch(E,v),v=e.applyData(E,v)),p.push(v)}const b={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(t,b),e.applyData(t,b)}function g_(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const j1=9,q1=32;function b_(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),l=0;const s=[];for(;i;)s.push(V1(t.slice(l,i.index),l>0,!0),i[0]),l=i.index+i[0].length,i=r.exec(t);return s.push(V1(t.slice(l),l>0,!1)),s.join("")}function V1(e,t,r){let i=0,l=e.length;if(t){let s=e.codePointAt(i);for(;s===j1||s===q1;)i++,s=e.codePointAt(i)}if(r){let s=e.codePointAt(l-1);for(;s===j1||s===q1;)l--,s=e.codePointAt(l-1)}return l>i?e.slice(i,l):""}function E_(e,t){const r={type:"text",value:b_(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function y_(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const T_={blockquote:Qx,break:Kx,code:Wx,delete:Zx,emphasis:Jx,footnoteReference:e_,heading:t_,html:n_,imageReference:r_,image:a_,inlineCode:i_,linkReference:u_,link:l_,listItem:o_,list:c_,paragraph:f_,root:d_,strong:h_,table:p_,tableCell:g_,tableRow:m_,text:E_,thematicBreak:y_,toml:os,yaml:os,definition:os,footnoteDefinition:os};function os(){}const G1=-1,ss=0,sl=1,cs=2,ed=3,td=4,nd=5,rd=6,$1=7,X1=8,Q1=typeof self=="object"?self:globalThis,S_=(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 ss:case G1:return r(c,l);case sl:{const d=r([],l);for(const h of c)d.push(i(h));return d}case cs:{const d=r({},l);for(const[h,p]of c)d[i(h)]=i(p);return d}case ed:return r(new Date(c),l);case td:{const{source:d,flags:h}=c;return r(new RegExp(d,h),l)}case nd:{const d=r(new Map,l);for(const[h,p]of c)d.set(i(h),i(p));return d}case rd:{const d=r(new Set,l);for(const h of c)d.add(i(h));return d}case $1:{const{name:d,message:h}=c;return r(new Q1[d](h),l)}case X1:return r(BigInt(c),l);case"BigInt":return r(Object(BigInt(c)),l);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return r(new DataView(d),c)}}return r(new Q1[s](c),l)};return i},K1=e=>S_(new Map,e)(0),qi="",{toString:C_}={},{keys:A_}=Object,cl=e=>{const t=typeof e;if(t!=="object"||!e)return[ss,t];const r=C_.call(e).slice(8,-1);switch(r){case"Array":return[sl,qi];case"Object":return[cs,qi];case"Date":return[ed,qi];case"RegExp":return[td,qi];case"Map":return[nd,qi];case"Set":return[rd,qi];case"DataView":return[sl,r]}return r.includes("Array")?[sl,r]:r.includes("Error")?[$1,r]:[cs,r]},fs=([e,t])=>e===ss&&(t==="function"||t==="symbol"),x_=(e,t,r,i)=>{const l=(c,d)=>{const h=i.push(c)-1;return r.set(d,h),h},s=c=>{if(r.has(c))return r.get(c);let[d,h]=cl(c);switch(d){case ss:{let b=c;switch(h){case"bigint":d=X1,b=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);b=null;break;case"undefined":return l([G1],c)}return l([d,b],c)}case sl:{if(h){let T=c;return h==="DataView"?T=new Uint8Array(c.buffer):h==="ArrayBuffer"&&(T=new Uint8Array(c)),l([h,[...T]],c)}const b=[],E=l([d,b],c);for(const T of c)b.push(s(T));return E}case cs:{if(h)switch(h){case"BigInt":return l([h,c.toString()],c);case"Boolean":case"Number":case"String":return l([h,c.valueOf()],c)}if(t&&"toJSON"in c)return s(c.toJSON());const b=[],E=l([d,b],c);for(const T of A_(c))(e||!fs(cl(c[T])))&&b.push([s(T),s(c[T])]);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[T,y]of c)(e||!(fs(cl(T))||fs(cl(y))))&&b.push([s(T),s(y)]);return E}case rd:{const b=[],E=l([d,b],c);for(const T of c)(e||!fs(cl(T)))&&b.push(s(T));return E}}const{message:p}=c;return l([d,{name:h,message:p}],c)};return s},W1=(e,{json:t,lossy:r}={})=>{const i=[];return x_(!(t||r),!!t,new Map,i)(e),i},Vi=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?K1(W1(e,t)):structuredClone(e):(e,t)=>K1(W1(e,t));function __(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 v_(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function R_(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||__,i=e.options.footnoteBackLabel||v_,l=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let h=-1;for(;++h<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[h]);if(!p)continue;const b=e.all(p),E=String(p.identifier).toUpperCase(),T=ji(E.toLowerCase());let y=0;const v=[],x=e.footnoteCounts.get(E);for(;x!==void 0&&++y<=x;){v.length>0&&v.push({type:"text",value:" "});let P=typeof r=="string"?r:r(h,y);typeof P=="string"&&(P={type:"text",value:P}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+T+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(h,y),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const B=b[b.length-1];if(B&&B.type==="element"&&B.tagName==="p"){const P=B.children[B.children.length-1];P&&P.type==="text"?P.value+=" ":B.children.push({type:"text",value:" "}),B.children.push(...v)}else b.push(...v);const I={type:"element",tagName:"li",properties:{id:t+"fn-"+T},children:e.wrap(b,!0)};e.patch(p,I),d.push(I)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Vi(c),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
64
64
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
65
- `}]}}const ad=function(e){if(e==null)return I_;if(typeof e=="function")return ds(e);if(typeof e=="object")return Array.isArray(e)?N_(e):O_(e);if(typeof e=="string")return k_(e);throw new Error("Expected function, string, or object as test")};function N_(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=ad(e[r]);return ds(i);function i(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}function O_(e){const t=e;return ds(r);function r(i){const o=i;let s;for(s in e)if(o[s]!==t[s])return!1;return!0}}function k_(e){return ds(t);function t(r){return r&&r.type===e}}function ds(e){return t;function t(r,i,o){return!!(D_(r)&&e.call(this,r,typeof i=="number"?i:void 0,o||void 0))}}function I_(){return!0}function D_(e){return e!==null&&typeof e=="object"&&"type"in e}function TB(e){return e}const Z1=[],w_=!0,J1=!1,eg="skip";function tg(e,t,r,i){let o;typeof t=="function"&&typeof r!="function"?(i=r,r=t):o=t;const s=ad(o),c=i?-1:1;d(e,void 0,[])();function d(h,p,E){const b=h&&typeof h=="object"?h:{};if(typeof b.type=="string"){const y=typeof b.tagName=="string"?b.tagName:typeof b.name=="string"?b.name:void 0;Object.defineProperty(T,"name",{value:"node ("+(h.type+(y?"<"+y+">":""))+")"})}return T;function T(){let y=Z1,v,x,B;if((!t||s(h,p,E[E.length-1]||void 0))&&(y=L_(r(h,E)),y[0]===J1))return y;if("children"in h&&h.children){const I=h;if(I.children&&y[0]!==eg)for(x=(i?I.children.length:-1)+c,B=E.concat(I);x>-1&&x<I.children.length;){const P=I.children[x];if(v=d(P,x,B)(),v[0]===J1)return v;x=typeof v[1]=="number"?v[1]:x+c}}return y}}}function L_(e){return Array.isArray(e)?e:typeof e=="number"?[w_,e]:e==null?Z1:[e]}function id(e,t,r,i){let o,s,c;typeof t=="function"&&typeof r!="function"?(s=void 0,c=t,o=r):(s=t,c=r,o=i),tg(e,s,d,o);function d(h,p){const E=p[p.length-1],b=E?E.children.indexOf(h):void 0;return c(h,b,E)}}const ud={}.hasOwnProperty,M_={};function B_(e,t){const r=t||M_,i=new Map,o=new Map,s=new Map,c={...T_,...r.handlers},d={all:p,applyData:U_,definitionById:i,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:c,one:h,options:r,patch:P_,wrap:F_};return id(e,function(E){if(E.type==="definition"||E.type==="footnoteDefinition"){const b=E.type==="definition"?i:o,T=String(E.identifier).toUpperCase();b.has(T)||b.set(T,E)}}),d;function h(E,b){const T=E.type,y=d.handlers[T];if(ud.call(d.handlers,T)&&y)return y(d,E,b);if(d.options.passThrough&&d.options.passThrough.includes(T)){if("children"in E){const{children:x,...B}=E,I=Vi(B);return I.children=d.all(E),I}return Vi(E)}return(d.options.unknownHandler||H_)(d,E,b)}function p(E){const b=[];if("children"in E){const T=E.children;let y=-1;for(;++y<T.length;){const v=d.one(T[y],E);if(v){if(y&&T[y-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=ng(v.value)),!Array.isArray(v)&&v.type==="element")){const x=v.children[0];x&&x.type==="text"&&(x.value=ng(x.value))}Array.isArray(v)?b.push(...v):b.push(v)}}}return b}}function P_(e,t){e.position&&(t.position=O6(e))}function U_(e,t){let r=t;if(e&&e.data){const i=e.data.hName,o=e.data.hChildren,s=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const c="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:c}}r.type==="element"&&s&&Object.assign(r.properties,Vi(s)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function H_(e,t){const r=t.data||{},i="value"in t&&!(ud.call(r,"hProperties")||ud.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function F_(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
65
+ `}]}}const ad=function(e){if(e==null)return I_;if(typeof e=="function")return ds(e);if(typeof e=="object")return Array.isArray(e)?N_(e):O_(e);if(typeof e=="string")return k_(e);throw new Error("Expected function, string, or object as test")};function N_(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=ad(e[r]);return ds(i);function i(...l){let s=-1;for(;++s<t.length;)if(t[s].apply(this,l))return!0;return!1}}function O_(e){const t=e;return ds(r);function r(i){const l=i;let s;for(s in e)if(l[s]!==t[s])return!1;return!0}}function k_(e){return ds(t);function t(r){return r&&r.type===e}}function ds(e){return t;function t(r,i,l){return!!(D_(r)&&e.call(this,r,typeof i=="number"?i:void 0,l||void 0))}}function I_(){return!0}function D_(e){return e!==null&&typeof e=="object"&&"type"in e}function SB(e){return e}const Z1=[],w_=!0,J1=!1,eg="skip";function tg(e,t,r,i){let l;typeof t=="function"&&typeof r!="function"?(i=r,r=t):l=t;const s=ad(l),c=i?-1:1;d(e,void 0,[])();function d(h,p,b){const E=h&&typeof h=="object"?h:{};if(typeof E.type=="string"){const y=typeof E.tagName=="string"?E.tagName:typeof E.name=="string"?E.name:void 0;Object.defineProperty(T,"name",{value:"node ("+(h.type+(y?"<"+y+">":""))+")"})}return T;function T(){let y=Z1,v,x,B;if((!t||s(h,p,b[b.length-1]||void 0))&&(y=L_(r(h,b)),y[0]===J1))return y;if("children"in h&&h.children){const I=h;if(I.children&&y[0]!==eg)for(x=(i?I.children.length:-1)+c,B=b.concat(I);x>-1&&x<I.children.length;){const P=I.children[x];if(v=d(P,x,B)(),v[0]===J1)return v;x=typeof v[1]=="number"?v[1]:x+c}}return y}}}function L_(e){return Array.isArray(e)?e:typeof e=="number"?[w_,e]:e==null?Z1:[e]}function id(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),tg(e,s,d,l);function d(h,p){const b=p[p.length-1],E=b?b.children.indexOf(h):void 0;return c(h,E,b)}}const ud={}.hasOwnProperty,M_={};function B_(e,t){const r=t||M_,i=new Map,l=new Map,s=new Map,c={...T_,...r.handlers},d={all:p,applyData:U_,definitionById:i,footnoteById:l,footnoteCounts:s,footnoteOrder:[],handlers:c,one:h,options:r,patch:P_,wrap:F_};return id(e,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const E=b.type==="definition"?i:l,T=String(b.identifier).toUpperCase();E.has(T)||E.set(T,b)}}),d;function h(b,E){const T=b.type,y=d.handlers[T];if(ud.call(d.handlers,T)&&y)return y(d,b,E);if(d.options.passThrough&&d.options.passThrough.includes(T)){if("children"in b){const{children:x,...B}=b,I=Vi(B);return I.children=d.all(b),I}return Vi(b)}return(d.options.unknownHandler||H_)(d,b,E)}function p(b){const E=[];if("children"in b){const T=b.children;let y=-1;for(;++y<T.length;){const v=d.one(T[y],b);if(v){if(y&&T[y-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=ng(v.value)),!Array.isArray(v)&&v.type==="element")){const x=v.children[0];x&&x.type==="text"&&(x.value=ng(x.value))}Array.isArray(v)?E.push(...v):E.push(v)}}}return E}}function P_(e,t){e.position&&(t.position=O6(e))}function U_(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,Vi(s)),"children"in r&&r.children&&l!==null&&l!==void 0&&(r.children=l)}return r}function H_(e,t){const r=t.data||{},i="value"in t&&!(ud.call(r,"hProperties")||ud.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function F_(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 ng(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function rg(e,t){const r=B_(e,t),i=r.one(e,void 0),o=R_(r),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return o&&s.children.push({type:"text",value:`
69
- `},o),s}function z_(e,t){return e&&"run"in e?async function(r,i){const o=rg(r,{file:i,...t});await e.run(o,i)}:function(r,i){return rg(r,{file:i,...e||t})}}function ag(e){if(e)throw e}var od,ig;function Y_(){if(ig)return od;ig=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):t.call(p)==="[object Array]"},s=function(p){if(!p||t.call(p)!=="[object Object]")return!1;var E=e.call(p,"constructor"),b=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!E&&!b)return!1;var T;for(T in p);return typeof T>"u"||e.call(p,T)},c=function(p,E){r&&E.name==="__proto__"?r(p,E.name,{enumerable:!0,configurable:!0,value:E.newValue,writable:!0}):p[E.name]=E.newValue},d=function(p,E){if(E==="__proto__")if(e.call(p,E)){if(i)return i(p,E).value}else return;return p[E]};return od=function h(){var p,E,b,T,y,v,x=arguments[0],B=1,I=arguments.length,P=!1;for(typeof x=="boolean"&&(P=x,x=arguments[1]||{},B=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});B<I;++B)if(p=arguments[B],p!=null)for(E in p)b=d(x,E),T=d(p,E),x!==T&&(P&&T&&(s(T)||(y=o(T)))?(y?(y=!1,v=b&&o(b)?b:[]):v=b&&s(b)?b:{},c(x,{name:E,newValue:h(P,v,T)})):typeof T<"u"&&c(x,{name:E,newValue:T}));return x},od}var j_=Y_();const ld=or(j_);function sd(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function q_(){const e=[],t={run:r,use:i};return t;function r(...o){let s=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...o);function d(h,...p){const E=e[++s];let b=-1;if(h){c(h);return}for(;++b<o.length;)(p[b]===null||p[b]===void 0)&&(p[b]=o[b]);o=p,E?V_(E,d)(...p):c(null,...p)}}function i(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function V_(e,t){let r;return i;function i(...c){const d=e.length>c.length;let h;d&&c.push(o);try{h=e.apply(this,c)}catch(p){const E=p;if(d&&r)throw E;return o(E)}d||(h&&h.then&&typeof h.then=="function"?h.then(s,o):h instanceof Error?o(h):s(h))}function o(c,...d){r||(r=!0,t(c,...d))}function s(c){o(null,c)}}const Mr={basename:G_,dirname:$_,extname:X_,join:Q_,sep:"/"};function G_(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');fo(e);let r=0,i=-1,o=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else i<0&&(s=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let c=-1,d=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else c<0&&(s=!0,c=o+1),d>-1&&(e.codePointAt(o)===t.codePointAt(d--)?d<0&&(i=o):(d=-1,i=c));return r===i?i=c:i<0&&(i=e.length),e.slice(r,i)}function $_(e){if(fo(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function X_(e){fo(e);let t=e.length,r=-1,i=0,o=-1,s=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){i=t+1;break}continue}r<0&&(c=!0,r=t+1),d===46?o<0?o=t:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||r<0||s===0||s===1&&o===r-1&&o===i+1?"":e.slice(o,r)}function Q_(...e){let t=-1,r;for(;++t<e.length;)fo(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":K_(r)}function K_(e){fo(e);const t=e.codePointAt(0)===47;let r=W_(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function W_(e,t){let r="",i=0,o=-1,s=0,c=-1,d,h;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(o===c-1||s===1))if(o!==c-1&&s===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(h=r.lastIndexOf("/"),h!==r.length-1){h<0?(r="",i=0):(r=r.slice(0,h),i=r.length-1-r.lastIndexOf("/")),o=c,s=0;continue}}else if(r.length>0){r="",i=0,o=c,s=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(o+1,c):r=e.slice(o+1,c),i=c-o-1;o=c,s=0}else d===46&&s>-1?s++:s=-1}return r}function fo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Z_={cwd:J_};function J_(){return"/"}function cd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function e4(e){if(typeof e=="string")e=new URL(e);else if(!cd(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return t4(e)}function t4(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const fd=["history","path","basename","stem","extname","dirname"];class ug{constructor(t){let r;t?cd(t)?r={path:t}:typeof t=="string"||n4(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Z_.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<fd.length;){const s=fd[i];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let o;for(o in r)fd.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?Mr.basename(this.path):void 0}set basename(t){hd(t,"basename"),dd(t,"basename"),this.path=Mr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Mr.dirname(this.path):void 0}set dirname(t){og(this.basename,"dirname"),this.path=Mr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Mr.extname(this.path):void 0}set extname(t){if(dd(t,"extname"),og(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Mr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){cd(t)&&(t=e4(t)),hd(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Mr.basename(this.path,this.extname):void 0}set stem(t){hd(t,"stem"),dd(t,"stem"),this.path=Mr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const o=this.message(t,r,i);throw o.fatal=!0,o}info(t,r,i){const o=this.message(t,r,i);return o.fatal=void 0,o}message(t,r,i){const o=new An(t,r,i);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function dd(e,t){if(e&&e.includes(Mr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Mr.sep+"`")}function hd(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function og(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function n4(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const r4=function(e){const i=this.constructor.prototype,o=i[e],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,i),s},a4={}.hasOwnProperty;class pd extends r4{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=q_()}copy(){const t=new pd;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(ld(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Ed("data",this.frozen),this.namespace[t]=r,this):a4.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ed("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const o=r.call(t,...i);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=hs(t),i=this.parser||this.Parser;return md("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),md("process",this.parser||this.Parser),gd("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(s,c){const d=hs(t),h=i.parse(d);i.run(h,d,function(E,b,T){if(E||!b||!T)return p(E);const y=b,v=i.stringify(y,T);o4(v)?T.value=v:T.result=v,p(E,T)});function p(E,b){E||!b?c(E):s?s(b):r(void 0,b)}}}processSync(t){let r=!1,i;return this.freeze(),md("processSync",this.parser||this.Parser),gd("processSync",this.compiler||this.Compiler),this.process(t,o),sg("processSync","process",r),i;function o(s,c){r=!0,ag(s),i=c}}run(t,r,i){lg(t),this.freeze();const o=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?s(void 0,i):new Promise(s);function s(c,d){const h=hs(r);o.run(t,h,p);function p(E,b,T){const y=b||t;E?d(E):c?c(y):i(void 0,y,T)}}}runSync(t,r){let i=!1,o;return this.run(t,r,s),sg("runSync","run",i),o;function s(c,d){ag(c),o=d,i=!0}}stringify(t,r){this.freeze();const i=hs(r),o=this.compiler||this.Compiler;return gd("stringify",o),lg(t),o(t,i)}use(t,...r){const i=this.attachers,o=this.namespace;if(Ed("use",this.frozen),t!=null)if(typeof t=="function")h(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(p){if(typeof p=="function")h(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[E,...b]=p;h(E,b)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(o.settings=ld(!0,o.settings,p.settings))}function d(p){let E=-1;if(p!=null)if(Array.isArray(p))for(;++E<p.length;){const b=p[E];s(b)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function h(p,E){let b=-1,T=-1;for(;++b<i.length;)if(i[b][0]===p){T=b;break}if(T===-1)i.push([p,...E]);else if(E.length>0){let[y,...v]=E;const x=i[T][1];sd(x)&&sd(y)&&(y=ld(!0,x,y)),i[T]=[p,y,...v]}}}}const i4=new pd().freeze();function md(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function gd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ed(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function lg(e){if(!sd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function sg(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function hs(e){return u4(e)?e:new ug(e)}function u4(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function o4(e){return typeof e=="string"||l4(e)}function l4(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const s4="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",cg=[],fg={allowDangerousHtml:!0},c4=/^(https?|ircs?|mailto|xmpp)$/i,f4=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function dg(e){const t=d4(e),r=h4(e);return p4(t.runSync(t.parse(r),r),e)}function d4(e){const t=e.rehypePlugins||cg,r=e.remarkPlugins||cg,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...fg}:fg;return i4().use(Xx).use(r).use(z_,i).use(t)}function h4(e){const t=e.children||"",r=new ug;return typeof t=="string"&&(r.value=t),r}function p4(e,t){const r=t.allowedElements,i=t.allowElement,o=t.components,s=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,h=t.urlTransform||m4;for(const E of f4)Object.hasOwn(t,E.from)&&(""+E.from+(E.to?"use `"+E.to+"` instead":"remove it")+s4+E.id,void 0);return id(e,p),L6(e,{Fragment:pe.Fragment,components:o,ignoreInvalidStyle:!0,jsx:pe.jsx,jsxs:pe.jsxs,passKeys:!0,passNode:!0});function p(E,b,T){if(E.type==="raw"&&T&&typeof b=="number")return c?T.children.splice(b,1):T.children[b]={type:"text",value:E.value},b;if(E.type==="element"){let y;for(y in qf)if(Object.hasOwn(qf,y)&&Object.hasOwn(E.properties,y)){const v=E.properties[y],x=qf[y];(x===null||x.includes(E.tagName))&&(E.properties[y]=h(String(v||""),y,E))}}if(E.type==="element"){let y=r?!r.includes(E.tagName):s?s.includes(E.tagName):!1;if(!y&&i&&typeof b=="number"&&(y=!i(E,b,T)),y&&T&&typeof b=="number")return d&&E.children?T.children.splice(b,1,...E.children):T.children.splice(b,1),b}}}function m4(e){const t=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||r!==-1&&t>r||i!==-1&&t>i||c4.test(e.slice(0,t))?e:""}const hg=/[#.]/g;function g4(e,t){const r=e||"",i={};let o=0,s,c;for(;o<r.length;){hg.lastIndex=o;const d=hg.exec(r),h=r.slice(o,d?d.index:r.length);h&&(s?s==="#"?i.id=h:Array.isArray(i.className)?i.className.push(h):i.className=[h]:c=h,o+=h.length),d&&(s=d[0],o++)}return{type:"element",tagName:c||t||"div",properties:i,children:[]}}function pg(e,t,r){const i=r?T4(r):void 0;function o(s,c,...d){let h;if(s==null){h={type:"root",children:[]};const p=c;d.unshift(p)}else{h=g4(s,t);const p=h.tagName.toLowerCase(),E=i?i.get(p):void 0;if(h.tagName=E||p,E4(c))d.unshift(c);else for(const[b,T]of Object.entries(c))b4(e,h.properties,b,T)}for(const p of d)bd(h.children,p);return h.type==="element"&&h.tagName==="template"&&(h.content={type:"root",children:h.children},h.children=[]),h}return o}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 o=t[i];if(o&&typeof o=="object"){if(!Array.isArray(o))return!0;const s=o;for(const c of s)if(typeof c!="number"&&typeof c!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function b4(e,t,r,i){const o=Uf(e,r);let s;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;s=i}else typeof i=="boolean"?s=i:typeof i=="string"?o.spaceSeparated?s=t1(i):o.commaSeparated?s=zm(i):o.commaOrSpaceSeparated?s=t1(zm(i).join(" ")):s=mg(o,o.property,i):Array.isArray(i)?s=[...i]:s=o.property==="style"?y4(i):String(i);if(Array.isArray(s)){const c=[];for(const d of s)c.push(mg(o,o.property,d));s=c}o.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[o.property]=s}}function bd(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)bd(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?bd(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function mg(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||to(r)===to(t)))return!0}return r}function y4(e){const t=[];for(const[r,i]of Object.entries(e))t.push([r,i].join(": "));return t.join("; ")}function T4(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const S4=["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"],C4=pg(as,"div"),A4=pg(Fi,"g",S4);function x4(e){const t=String(e),r=[];return{toOffset:o,toPoint:i};function i(s){if(typeof s=="number"&&s>-1&&s<=t.length){let c=0;for(;;){let d=r[c];if(d===void 0){const h=gg(t,r[c-1]);d=h===-1?t.length+1:h+1,r[c]=d}if(d>s)return{line:c+1,column:s-(c>0?r[c-1]:0)+1,offset:s};c++}}}function o(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;r.length<s.line;){const d=r[r.length-1],h=gg(t,d),p=h===-1?t.length+1:h+1;if(d===p)break;r.push(p)}const c=(s.line>1?r[s.line-2]:0)+s.column-1;if(c<r[s.line-1])return c}}}function gg(e,t){const r=e.indexOf("\r",t),i=e.indexOf(`
70
- `,t);return i===-1?r:r===-1||r+1===i?i:r<i?r:i}const ti={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Eg={}.hasOwnProperty,_4=Object.prototype;function v4(e,t){const r=t||{};return yd({file:r.file||void 0,location:!1,schema:r.space==="svg"?Fi:as,verbose:r.verbose||!1},e)}function yd(e,t){let r;switch(t.nodeName){case"#comment":{const i=t;return r={type:"comment",value:i.data},ps(e,i,r),r}case"#document":case"#document-fragment":{const i=t,o="mode"in i?i.mode==="quirks"||i.mode==="limited-quirks":!1;if(r={type:"root",children:bg(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const s=String(e.file),c=x4(s),d=c.toPoint(0),h=c.toPoint(s.length);r.position={start:d,end:h}}return r}case"#documentType":{const i=t;return r={type:"doctype"},ps(e,i,r),r}case"#text":{const i=t;return r={type:"text",value:i.value},ps(e,i,r),r}default:return r=R4(e,t),r}}function bg(e,t){let r=-1;const i=[];for(;++r<t.length;){const o=yd(e,t[r]);i.push(o)}return i}function R4(e,t){const r=e.schema;e.schema=t.namespaceURI===ti.svg?Fi:as;let i=-1;const o={};for(;++i<t.attrs.length;){const d=t.attrs[i],h=(d.prefix?d.prefix+":":"")+d.name;Eg.call(_4,h)||(o[h]=d.value)}const c=(e.schema.space==="svg"?A4:C4)(t.tagName,o,bg(e,t.childNodes));if(ps(e,t,c),c.tagName==="template"){const d=t,h=d.sourceCodeLocation,p=h&&h.startTag&&Gi(h.startTag),E=h&&h.endTag&&Gi(h.endTag),b=yd(e,d.content);p&&E&&e.file&&(b.position={start:p.end,end:E.start}),c.content=b}return e.schema=r,c}function ps(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=N4(e,r,t.sourceCodeLocation);i&&(e.location=!0,r.position=i)}}function N4(e,t,r){const i=Gi(r);if(t.type==="element"){const o=t.children[t.children.length-1];if(i&&!r.endTag&&o&&o.position&&o.position.end&&(i.end=Object.assign({},o.position.end)),e.verbose){const s={};let c;if(r.attrs)for(c in r.attrs)Eg.call(r.attrs,c)&&(s[Uf(e.schema,c).property]=Gi(r.attrs[c]));r.startTag;const d=Gi(r.startTag),h=r.endTag?Gi(r.endTag):void 0,p={opening:d};h&&(p.closing=h),p.properties=s,t.data={position:p}}}return i}function Gi(e){const t=yg({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=yg({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function yg(e){return e.line&&e.column?e:void 0}class ho{constructor(t,r,i){this.property=t,this.normal=r,i&&(this.space=i)}}ho.prototype.property={},ho.prototype.normal={},ho.prototype.space=null;function Tg(e,t){const r={},i={};let o=-1;for(;++o<e.length;)Object.assign(r,e[o].property),Object.assign(i,e[o].normal);return new ho(r,i,t)}function Td(e){return e.toLowerCase()}class sr{constructor(t,r){this.property=t,this.attribute=r}}sr.prototype.space=null,sr.prototype.boolean=!1,sr.prototype.booleanish=!1,sr.prototype.overloadedBoolean=!1,sr.prototype.number=!1,sr.prototype.commaSeparated=!1,sr.prototype.spaceSeparated=!1,sr.prototype.commaOrSpaceSeparated=!1,sr.prototype.mustUseProperty=!1,sr.prototype.defined=!1;let O4=0;const Ke=ni(),Jt=ni(),Sg=ni(),ye=ni(),Mt=ni(),$i=ni(),Kn=ni();function ni(){return 2**++O4}const Sd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ke,booleanish:Jt,commaOrSpaceSeparated:Kn,commaSeparated:$i,number:ye,overloadedBoolean:Sg,spaceSeparated:Mt},Symbol.toStringTag,{value:"Module"})),Cd=Object.keys(Sd);class Ad extends sr{constructor(t,r,i,o){let s=-1;if(super(t,r),Cg(this,"space",o),typeof i=="number")for(;++s<Cd.length;){const c=Cd[s];Cg(this,Cd[s],(i&Sd[c])===Sd[c])}}}Ad.prototype.defined=!0;function Cg(e,t,r){r&&(e[t]=r)}const k4={}.hasOwnProperty;function Xi(e){const t={},r={};let i;for(i in e.properties)if(k4.call(e.properties,i)){const o=e.properties[i],s=new Ad(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[Td(i)]=i,r[Td(s.attribute)]=i}return new ho(t,r,e.space)}const Ag=Xi({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),xg=Xi({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function _g(e,t){return t in e?e[t]:t}function vg(e,t){return _g(e,t.toLowerCase())}const Rg=Xi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:vg,properties:{xmlns:null,xmlnsXLink:null}}),Ng=Xi({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Jt,ariaAutoComplete:null,ariaBusy:Jt,ariaChecked:Jt,ariaColCount:ye,ariaColIndex:ye,ariaColSpan:ye,ariaControls:Mt,ariaCurrent:null,ariaDescribedBy:Mt,ariaDetails:null,ariaDisabled:Jt,ariaDropEffect:Mt,ariaErrorMessage:null,ariaExpanded:Jt,ariaFlowTo:Mt,ariaGrabbed:Jt,ariaHasPopup:null,ariaHidden:Jt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Mt,ariaLevel:ye,ariaLive:null,ariaModal:Jt,ariaMultiLine:Jt,ariaMultiSelectable:Jt,ariaOrientation:null,ariaOwns:Mt,ariaPlaceholder:null,ariaPosInSet:ye,ariaPressed:Jt,ariaReadOnly:Jt,ariaRelevant:null,ariaRequired:Jt,ariaRoleDescription:Mt,ariaRowCount:ye,ariaRowIndex:ye,ariaRowSpan:ye,ariaSelected:Jt,ariaSetSize:ye,ariaSort:null,ariaValueMax:ye,ariaValueMin:ye,ariaValueNow:ye,ariaValueText:null,role:null}}),I4=Xi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:vg,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:$i,acceptCharset:Mt,accessKey:Mt,action:null,allow:null,allowFullScreen:Ke,allowPaymentRequest:Ke,allowUserMedia:Ke,alt:null,as:null,async:Ke,autoCapitalize:null,autoComplete:Mt,autoFocus:Ke,autoPlay:Ke,blocking:Mt,capture:null,charSet:null,checked:Ke,cite:null,className:Mt,cols:ye,colSpan:null,content:null,contentEditable:Jt,controls:Ke,controlsList:Mt,coords:ye|$i,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ke,defer:Ke,dir:null,dirName:null,disabled:Ke,download:Sg,draggable:Jt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ke,formTarget:null,headers:Mt,height:ye,hidden:Ke,high:ye,href:null,hrefLang:null,htmlFor:Mt,httpEquiv:Mt,id:null,imageSizes:null,imageSrcSet:null,inert:Ke,inputMode:null,integrity:null,is:null,isMap:Ke,itemId:null,itemProp:Mt,itemRef:Mt,itemScope:Ke,itemType:Mt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ke,low:ye,manifest:null,max:null,maxLength:ye,media:null,method:null,min:null,minLength:ye,multiple:Ke,muted:Ke,name:null,nonce:null,noModule:Ke,noValidate:Ke,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ke,optimum:ye,pattern:null,ping:Mt,placeholder:null,playsInline:Ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ke,referrerPolicy:null,rel:Mt,required:Ke,reversed:Ke,rows:ye,rowSpan:ye,sandbox:Mt,scope:null,scoped:Ke,seamless:Ke,selected:Ke,shadowRootClonable:Ke,shadowRootDelegatesFocus:Ke,shadowRootMode:null,shape:null,size:ye,sizes:null,slot:null,span:ye,spellCheck:Jt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ye,step:null,style:null,tabIndex:ye,target:null,title:null,translate:null,type:null,typeMustMatch:Ke,useMap:null,value:Jt,width:ye,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Mt,axis:null,background:null,bgColor:null,border:ye,borderColor:null,bottomMargin:ye,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ke,declare:Ke,event:null,face:null,frame:null,frameBorder:null,hSpace:ye,leftMargin:ye,link:null,longDesc:null,lowSrc:null,marginHeight:ye,marginWidth:ye,noResize:Ke,noHref:Ke,noShade:Ke,noWrap:Ke,object:null,profile:null,prompt:null,rev:null,rightMargin:ye,rules:null,scheme:null,scrolling:Jt,standby:null,summary:null,text:null,topMargin:ye,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ye,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ke,disableRemotePlayback:Ke,prefix:null,property:null,results:ye,security:null,unselectable:null}}),D4=Xi({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:_g,properties:{about:Kn,accentHeight:ye,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ye,amplitude:ye,arabicForm:null,ascent:ye,attributeName:null,attributeType:null,azimuth:ye,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ye,by:null,calcMode:null,capHeight:ye,className:Mt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ye,diffuseConstant:ye,direction:null,display:null,dur:null,divisor:ye,dominantBaseline:null,download:Ke,dx:null,dy:null,edgeMode:null,editable:null,elevation:ye,enableBackground:null,end:null,event:null,exponent:ye,externalResourcesRequired:null,fill:null,fillOpacity:ye,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:$i,g2:$i,glyphName:$i,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ye,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ye,horizOriginX:ye,horizOriginY:ye,id:null,ideographic:ye,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ye,k:ye,k1:ye,k2:ye,k3:ye,k4:ye,kernelMatrix:Kn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ye,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ye,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ye,overlineThickness:ye,paintOrder:null,panose1:null,path:null,pathLength:ye,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Mt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ye,pointsAtY:ye,pointsAtZ:ye,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kn,rev:Kn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kn,requiredFeatures:Kn,requiredFonts:Kn,requiredFormats:Kn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ye,specularExponent:ye,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ye,strikethroughThickness:ye,string:null,stroke:null,strokeDashArray:Kn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ye,strokeOpacity:ye,strokeWidth:null,style:null,surfaceScale:ye,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kn,tabIndex:ye,tableValues:null,target:null,targetX:ye,targetY:ye,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ye,underlineThickness:ye,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ye,values:null,vAlphabetic:ye,vMathematical:ye,vectorEffect:null,vHanging:ye,vIdeographic:ye,version:null,vertAdvY:ye,vertOriginX:ye,vertOriginY:ye,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ye,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),w4=/^data[-\w.:]+$/i,Og=/-[a-z]/g,L4=/[A-Z]/g;function M4(e,t){const r=Td(t);let i=t,o=sr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&w4.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(Og,P4);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!Og.test(s)){let c=s.replace(L4,B4);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}o=Ad}return new o(i,t)}function B4(e){return"-"+e.toLowerCase()}function P4(e){return e.charAt(1).toUpperCase()}const U4=Tg([xg,Ag,Rg,Ng,I4],"html"),kg=Tg([xg,Ag,Rg,Ng,D4],"svg"),Ig={}.hasOwnProperty;function Dg(e,t){const r=t||{};function i(o,...s){let c=i.invalid;const d=i.handlers;if(o&&Ig.call(o,e)){const h=String(o[e]);c=Ig.call(d,h)?d[h]:i.unknown}if(c)return c.call(this,o,...s)}return i.handlers=r.handlers||{},i.invalid=r.invalid,i.unknown=r.unknown,i}const H4={},F4={}.hasOwnProperty,wg=Dg("type",{handlers:{root:Y4,element:$4,text:V4,comment:G4,doctype:q4}});function z4(e,t){const i=(t||H4).space;return wg(e,i==="svg"?kg:U4)}function Y4(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=xd(e.children,r,t),Qi(e,r),r}function j4(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=xd(e.children,r,t),Qi(e,r),r}function q4(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Qi(e,t),t}function V4(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Qi(e,t),t}function G4(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Qi(e,t),t}function $4(e,t){const r=t;let i=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=kg);const o=[];let s;if(e.properties){for(s in e.properties)if(s!=="children"&&F4.call(e.properties,s)){const h=X4(i,s,e.properties[s]);h&&o.push(h)}}const c=i.space,d={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:ti[c],childNodes:[],parentNode:null};return d.childNodes=xd(e.children,d,i),Qi(e,d),e.tagName==="template"&&e.content&&(d.content=j4(e.content,i)),d}function X4(e,t,r){const i=M4(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&i.boolean)return;Array.isArray(r)&&(r=i.commaSeparated?Ym(r):n1(r));const o={name:i.attribute,value:r===!0?"":String(r)};if(i.space&&i.space!=="html"&&i.space!=="svg"){const s=o.name.indexOf(":");s<0?o.prefix="":(o.name=o.name.slice(s+1),o.prefix=i.attribute.slice(0,s)),o.namespace=ti[i.space]}return o}function xd(e,t,r){let i=-1;const o=[];if(e)for(;++i<e.length;){const s=wg(e[i],r);s.parentNode=t,o.push(s)}return o}function Qi(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const Q4=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],K4=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ut="�";var k;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(k||(k={}));const Pn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Lg(e){return e>=55296&&e<=57343}function W4(e){return e>=56320&&e<=57343}function Z4(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||K4.has(e)}var ue;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ue||(ue={}));const J4=65536;class ev{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=J4,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,r){const{line:i,col:o,offset:s}=this,c=o+r,d=s+r;return{code:t,startLine:i,endLine:i,startCol:c,endCol:c,startOffset:d,endOffset:d}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const r=this.html.charCodeAt(this.pos+1);if(W4(r))return this.pos++,this._addGap(),Z4(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,k.EOF;return this._err(ue.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let i=0;i<t.length;i++)if((this.html.charCodeAt(this.pos+i)|32)!==t.charCodeAt(i))return!1;return!0}peek(t){const r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,k.EOF;const i=this.html.charCodeAt(r);return i===k.CARRIAGE_RETURN?k.LINE_FEED:i}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,k.EOF;let t=this.html.charCodeAt(this.pos);return t===k.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,k.LINE_FEED):t===k.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Lg(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===k.LINE_FEED||t===k.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Mg(t)?this._err(ue.controlCharacterInInputStream):Bg(t)&&this._err(ue.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Je;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Je||(Je={}));function Pg(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}const tv=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୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢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;怳Ādp໩໮uct;戏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ǣጓ\0጖y;䐎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Ā;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀ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Ā;e᜚᜜lƀ;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\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩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ↄⅪ←ٖ↛ǰ↉\0↎proø₞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;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\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\0⹻m;櫳;櫽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))),nv=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function rv(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=nv.get(e))!==null&&t!==void 0?t:e}var sn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(sn||(sn={}));const av=32;var Ta;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ta||(Ta={}));function _d(e){return e>=sn.ZERO&&e<=sn.NINE}function iv(e){return e>=sn.UPPER_A&&e<=sn.UPPER_F||e>=sn.LOWER_A&&e<=sn.LOWER_F}function uv(e){return e>=sn.UPPER_A&&e<=sn.UPPER_Z||e>=sn.LOWER_A&&e<=sn.LOWER_Z||_d(e)}function ov(e){return e===sn.EQUALS||uv(e)}var cn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(cn||(cn={}));var Qr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Qr||(Qr={}));class lv{constructor(t,r,i){this.decodeTree=t,this.emitCodePoint=r,this.errors=i,this.state=cn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Qr.Strict}startEntity(t){this.decodeMode=t,this.state=cn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case cn.EntityStart:return t.charCodeAt(r)===sn.NUM?(this.state=cn.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=cn.NamedEntity,this.stateNamedEntity(t,r));case cn.NumericStart:return this.stateNumericStart(t,r);case cn.NumericDecimal:return this.stateNumericDecimal(t,r);case cn.NumericHex:return this.stateNumericHex(t,r);case cn.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|av)===sn.LOWER_X?(this.state=cn.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=cn.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,i,o){if(r!==i){const s=i-r;this.result=this.result*Math.pow(o,s)+Number.parseInt(t.substr(r,s),o),this.consumed+=s}}stateNumericHex(t,r){const i=r;for(;r<t.length;){const o=t.charCodeAt(r);if(_d(o)||iv(o))r+=1;else return this.addToNumericResult(t,i,r,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,i,r,16),-1}stateNumericDecimal(t,r){const i=r;for(;r<t.length;){const o=t.charCodeAt(r);if(_d(o))r+=1;else return this.addToNumericResult(t,i,r,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,i,r,10),-1}emitNumericEntity(t,r){var i;if(this.consumed<=r)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===sn.SEMI)this.consumed+=1;else if(this.decodeMode===Qr.Strict)return 0;return this.emitCodePoint(rv(this.result),this.consumed),this.errors&&(t!==sn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:i}=this;let o=i[this.treeIndex],s=(o&Ta.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const c=t.charCodeAt(r);if(this.treeIndex=sv(i,o,this.treeIndex+Math.max(1,s),c),this.treeIndex<0)return this.result===0||this.decodeMode===Qr.Attribute&&(s===0||ov(c))?0:this.emitNotTerminatedNamedEntity();if(o=i[this.treeIndex],s=(o&Ta.VALUE_LENGTH)>>14,s!==0){if(c===sn.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Qr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:i}=this,o=(i[r]&Ta.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,i){const{decodeTree:o}=this;return this.emitCodePoint(r===1?o[t]&~Ta.VALUE_LENGTH:o[t+1],i),r===3&&this.emitCodePoint(o[t+2],i),i}end(){var t;switch(this.state){case cn.NamedEntity:return this.result!==0&&(this.decodeMode!==Qr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case cn.NumericDecimal:return this.emitNumericEntity(0,2);case cn.NumericHex:return this.emitNumericEntity(0,3);case cn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case cn.EntityStart:return 0}}}function sv(e,t,r,i){const o=(t&Ta.BRANCH_LENGTH)>>7,s=t&Ta.JUMP_TABLE;if(o===0)return s!==0&&i===s?r:-1;if(s){const h=i-s;return h<0||h>=o?-1:e[r+h]-1}let c=r,d=c+o-1;for(;c<=d;){const h=c+d>>>1,p=e[h];if(p<i)c=h+1;else if(p>i)d=h-1;else return e[h+o]}return-1}var me;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(me||(me={}));var ri;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(ri||(ri={}));var cr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(cr||(cr={}));var 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 cv=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 Ki(e){var t;return(t=cv.get(e))!==null&&t!==void 0?t:g.UNKNOWN}const ge=g,fv={[me.HTML]:new Set([ge.ADDRESS,ge.APPLET,ge.AREA,ge.ARTICLE,ge.ASIDE,ge.BASE,ge.BASEFONT,ge.BGSOUND,ge.BLOCKQUOTE,ge.BODY,ge.BR,ge.BUTTON,ge.CAPTION,ge.CENTER,ge.COL,ge.COLGROUP,ge.DD,ge.DETAILS,ge.DIR,ge.DIV,ge.DL,ge.DT,ge.EMBED,ge.FIELDSET,ge.FIGCAPTION,ge.FIGURE,ge.FOOTER,ge.FORM,ge.FRAME,ge.FRAMESET,ge.H1,ge.H2,ge.H3,ge.H4,ge.H5,ge.H6,ge.HEAD,ge.HEADER,ge.HGROUP,ge.HR,ge.HTML,ge.IFRAME,ge.IMG,ge.INPUT,ge.LI,ge.LINK,ge.LISTING,ge.MAIN,ge.MARQUEE,ge.MENU,ge.META,ge.NAV,ge.NOEMBED,ge.NOFRAMES,ge.NOSCRIPT,ge.OBJECT,ge.OL,ge.P,ge.PARAM,ge.PLAINTEXT,ge.PRE,ge.SCRIPT,ge.SECTION,ge.SELECT,ge.SOURCE,ge.STYLE,ge.SUMMARY,ge.TABLE,ge.TBODY,ge.TD,ge.TEMPLATE,ge.TEXTAREA,ge.TFOOT,ge.TH,ge.THEAD,ge.TITLE,ge.TR,ge.TRACK,ge.UL,ge.WBR,ge.XMP]),[me.MATHML]:new Set([ge.MI,ge.MO,ge.MN,ge.MS,ge.MTEXT,ge.ANNOTATION_XML]),[me.SVG]:new Set([ge.TITLE,ge.FOREIGN_OBJECT,ge.DESC]),[me.XLINK]:new Set,[me.XML]:new Set,[me.XMLNS]:new Set},vd=new Set([ge.H1,ge.H2,ge.H3,ge.H4,ge.H5,ge.H6]);Q.STYLE,Q.SCRIPT,Q.XMP,Q.IFRAME,Q.NOEMBED,Q.NOFRAMES,Q.PLAINTEXT;var L;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(L||(L={}));const $t={DATA:L.DATA,RCDATA:L.RCDATA,RAWTEXT:L.RAWTEXT,SCRIPT_DATA:L.SCRIPT_DATA,PLAINTEXT:L.PLAINTEXT,CDATA_SECTION:L.CDATA_SECTION};function dv(e){return e>=k.DIGIT_0&&e<=k.DIGIT_9}function po(e){return e>=k.LATIN_CAPITAL_A&&e<=k.LATIN_CAPITAL_Z}function hv(e){return e>=k.LATIN_SMALL_A&&e<=k.LATIN_SMALL_Z}function Sa(e){return hv(e)||po(e)}function Ug(e){return Sa(e)||dv(e)}function ms(e){return e+32}function Hg(e){return e===k.SPACE||e===k.LINE_FEED||e===k.TABULATION||e===k.FORM_FEED}function Fg(e){return Hg(e)||e===k.SOLIDUS||e===k.GREATER_THAN_SIGN}function pv(e){return e===k.NULL?ue.nullCharacterReference:e>1114111?ue.characterReferenceOutsideUnicodeRange:Lg(e)?ue.surrogateCharacterReference:Bg(e)?ue.noncharacterCharacterReference:Mg(e)||e===k.CARRIAGE_RETURN?ue.controlCharacterReference:null}class mv{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=L.DATA,this.returnState=L.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new ev(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new lv(tv,(i,o)=>{this.preprocessor.pos=this.entityStartPos+o-1,this._flushCodePointConsumedAsCharacterReference(i)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ue.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:i=>{this._err(ue.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+i)},validateNumericCharacterReference:i=>{const o=pv(i);o&&this._err(o,1)}}:void 0)}_err(t,r=0){var i,o;(o=(i=this.handler).onParseError)===null||o===void 0||o.call(i,this.preprocessor.getError(t,r))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,r,i){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||i==null||i()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Je.START_TAG,tagName:"",tagID:g.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Je.END_TAG,tagName:"",tagID:g.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Je.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Je.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;const i=this.currentToken;if(Pg(i,this.currentAttr.name)===null){if(i.attrs.push(this.currentAttr),i.location&&this.currentLocation){const o=(t=(r=i.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);o[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(ue.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Ki(t.tagName),t.type===Je.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ue.endTagWithAttributes),t.selfClosing&&this._err(ue.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Je.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Je.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Je.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Je.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){const r=Hg(t)?Je.WHITESPACE_CHARACTER:t===k.NULL?Je.NULL_CHARACTER:Je.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Je.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=L.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Qr.Attribute:Qr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===L.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===L.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===L.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case L.DATA:{this._stateData(t);break}case L.RCDATA:{this._stateRcdata(t);break}case L.RAWTEXT:{this._stateRawtext(t);break}case L.SCRIPT_DATA:{this._stateScriptData(t);break}case L.PLAINTEXT:{this._statePlaintext(t);break}case L.TAG_OPEN:{this._stateTagOpen(t);break}case L.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case L.TAG_NAME:{this._stateTagName(t);break}case L.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case L.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case L.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case L.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case L.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case L.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case L.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case L.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case L.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case L.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case L.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case L.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case L.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case L.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case L.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case L.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case L.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case L.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case L.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case L.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case L.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case L.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case L.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case L.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case L.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case L.BOGUS_COMMENT:{this._stateBogusComment(t);break}case L.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case L.COMMENT_START:{this._stateCommentStart(t);break}case L.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case L.COMMENT:{this._stateComment(t);break}case L.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case L.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case L.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case L.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case L.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case L.COMMENT_END:{this._stateCommentEnd(t);break}case L.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case L.DOCTYPE:{this._stateDoctype(t);break}case L.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case L.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case L.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case L.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case L.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case L.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case L.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case L.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case L.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case L.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case L.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case L.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case L.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case L.CDATA_SECTION:{this._stateCdataSection(t);break}case L.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case L.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case L.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case L.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case k.LESS_THAN_SIGN:{this.state=L.TAG_OPEN;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this._emitCodePoint(t);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case k.AMPERSAND:{this._startCharacterReference();break}case k.LESS_THAN_SIGN:{this.state=L.RCDATA_LESS_THAN_SIGN;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ut);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case k.LESS_THAN_SIGN:{this.state=L.RAWTEXT_LESS_THAN_SIGN;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ut);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_LESS_THAN_SIGN;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ut);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case k.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ut);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Sa(t))this._createStartTagToken(),this.state=L.TAG_NAME,this._stateTagName(t);else switch(t){case k.EXCLAMATION_MARK:{this.state=L.MARKUP_DECLARATION_OPEN;break}case k.SOLIDUS:{this.state=L.END_TAG_OPEN;break}case k.QUESTION_MARK:{this._err(ue.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=L.BOGUS_COMMENT,this._stateBogusComment(t);break}case k.EOF:{this._err(ue.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ue.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=L.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Sa(t))this._createEndTagToken(),this.state=L.TAG_NAME,this._stateTagName(t);else switch(t){case k.GREATER_THAN_SIGN:{this._err(ue.missingEndTagName),this.state=L.DATA;break}case k.EOF:{this._err(ue.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ue.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=L.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=L.BEFORE_ATTRIBUTE_NAME;break}case k.SOLIDUS:{this.state=L.SELF_CLOSING_START_TAG;break}case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentTagToken();break}case k.NULL:{this._err(ue.unexpectedNullCharacter),r.tagName+=Ut;break}case k.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(po(t)?ms(t):t)}}_stateRcdataLessThanSign(t){t===k.SOLIDUS?this.state=L.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=L.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Sa(t)?(this.state=L.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=L.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=L.BEFORE_ATTRIBUTE_NAME,!1;case k.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=L.SELF_CLOSING_START_TAG,!1;case k.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=L.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===k.SOLIDUS?this.state=L.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=L.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Sa(t)?(this.state=L.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=L.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case k.SOLIDUS:{this.state=L.SCRIPT_DATA_END_TAG_OPEN;break}case k.EXCLAMATION_MARK:{this.state=L.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=L.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Sa(t)?(this.state=L.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===k.HYPHEN_MINUS?(this.state=L.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===k.HYPHEN_MINUS?(this.state=L.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case k.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ut);break}case k.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case k.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_ESCAPED,this._emitChars(Ut);break}case k.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case k.HYPHEN_MINUS:{this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.GREATER_THAN_SIGN:{this.state=L.SCRIPT_DATA,this._emitChars(">");break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_ESCAPED,this._emitChars(Ut);break}case k.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===k.SOLIDUS?this.state=L.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Sa(t)?(this._emitChars("<"),this.state=L.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Sa(t)?(this.state=L.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Pn.SCRIPT,!1)&&Fg(this.preprocessor.peek(Pn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Pn.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case k.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ut);break}case k.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case k.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ut);break}case k.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case k.HYPHEN_MINUS:{this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.GREATER_THAN_SIGN:{this.state=L.SCRIPT_DATA,this._emitChars(">");break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ut);break}case k.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===k.SOLIDUS?(this.state=L.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Pn.SCRIPT,!1)&&Fg(this.preprocessor.peek(Pn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Pn.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=L.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.SOLIDUS:case k.GREATER_THAN_SIGN:case k.EOF:{this.state=L.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case k.EQUALS_SIGN:{this._err(ue.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=L.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=L.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:case k.SOLIDUS:case k.GREATER_THAN_SIGN:case k.EOF:{this._leaveAttrName(),this.state=L.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case k.EQUALS_SIGN:{this._leaveAttrName(),this.state=L.BEFORE_ATTRIBUTE_VALUE;break}case k.QUOTATION_MARK:case k.APOSTROPHE:case k.LESS_THAN_SIGN:{this._err(ue.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.name+=Ut;break}default:this.currentAttr.name+=String.fromCodePoint(po(t)?ms(t):t)}}_stateAfterAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.SOLIDUS:{this.state=L.SELF_CLOSING_START_TAG;break}case k.EQUALS_SIGN:{this.state=L.BEFORE_ATTRIBUTE_VALUE;break}case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=L.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{this.state=L.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this.state=L.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ue.missingAttributeValue),this.state=L.DATA,this.emitCurrentTagToken();break}default:this.state=L.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case k.QUOTATION_MARK:{this.state=L.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.value+=Ut;break}case k.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case k.APOSTROPHE:{this.state=L.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.value+=Ut;break}case k.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this._leaveAttrValue(),this.state=L.BEFORE_ATTRIBUTE_NAME;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=L.DATA,this.emitCurrentTagToken();break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.value+=Ut;break}case k.QUOTATION_MARK:case k.APOSTROPHE:case k.LESS_THAN_SIGN:case k.EQUALS_SIGN:case k.GRAVE_ACCENT:{this._err(ue.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case k.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this._leaveAttrValue(),this.state=L.BEFORE_ATTRIBUTE_NAME;break}case k.SOLIDUS:{this._leaveAttrValue(),this.state=L.SELF_CLOSING_START_TAG;break}case k.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=L.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this._err(ue.missingWhitespaceBetweenAttributes),this.state=L.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case k.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=L.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this._err(ue.unexpectedSolidusInTag),this.state=L.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentComment(r);break}case k.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case k.NULL:{this._err(ue.unexpectedNullCharacter),r.data+=Ut;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Pn.DASH_DASH,!0)?(this._createCommentToken(Pn.DASH_DASH.length+1),this.state=L.COMMENT_START):this._consumeSequenceIfMatch(Pn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Pn.DOCTYPE.length+1),this.state=L.DOCTYPE):this._consumeSequenceIfMatch(Pn.CDATA_START,!0)?this.inForeignNode?this.state=L.CDATA_SECTION:(this._err(ue.cdataInHtmlContent),this._createCommentToken(Pn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=L.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ue.incorrectlyOpenedComment),this._createCommentToken(2),this.state=L.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case k.HYPHEN_MINUS:{this.state=L.COMMENT_START_DASH;break}case k.GREATER_THAN_SIGN:{this._err(ue.abruptClosingOfEmptyComment),this.state=L.DATA;const r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=L.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const r=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=L.COMMENT_END;break}case k.GREATER_THAN_SIGN:{this._err(ue.abruptClosingOfEmptyComment),this.state=L.DATA,this.emitCurrentComment(r);break}case k.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=L.COMMENT,this._stateComment(t)}}_stateComment(t){const r=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=L.COMMENT_END_DASH;break}case k.LESS_THAN_SIGN:{r.data+="<",this.state=L.COMMENT_LESS_THAN_SIGN;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),r.data+=Ut;break}case k.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case k.EXCLAMATION_MARK:{r.data+="!",this.state=L.COMMENT_LESS_THAN_SIGN_BANG;break}case k.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=L.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===k.HYPHEN_MINUS?this.state=L.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=L.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===k.HYPHEN_MINUS?this.state=L.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=L.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==k.GREATER_THAN_SIGN&&t!==k.EOF&&this._err(ue.nestedComment),this.state=L.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=L.COMMENT_END;break}case k.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=L.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const r=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentComment(r);break}case k.EXCLAMATION_MARK:{this.state=L.COMMENT_END_BANG;break}case k.HYPHEN_MINUS:{r.data+="-";break}case k.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=L.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const r=this.currentToken;switch(t){case k.HYPHEN_MINUS:{r.data+="--!",this.state=L.COMMENT_END_DASH;break}case k.GREATER_THAN_SIGN:{this._err(ue.incorrectlyClosedComment),this.state=L.DATA,this.emitCurrentComment(r);break}case k.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=L.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=L.BEFORE_DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this.state=L.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case k.EOF:{this._err(ue.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingWhitespaceBeforeDoctypeName),this.state=L.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(po(t))this._createDoctypeToken(String.fromCharCode(ms(t))),this.state=L.DOCTYPE_NAME;else switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.NULL:{this._err(ue.unexpectedNullCharacter),this._createDoctypeToken(Ut),this.state=L.DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this._err(ue.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.EOF:{this._err(ue.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=L.DOCTYPE_NAME}}_stateDoctypeName(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=L.AFTER_DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.NULL:{this._err(ue.unexpectedNullCharacter),r.name+=Ut;break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(po(t)?ms(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Pn.PUBLIC,!1)?this.state=L.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Pn.SYSTEM,!1)?this.state=L.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ue.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=L.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.QUOTATION_MARK:{this._err(ue.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(ue.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ue.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{r.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{r.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ue.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case k.QUOTATION_MARK:{this.state=L.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),r.publicId+=Ut;break}case k.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case k.APOSTROPHE:{this.state=L.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),r.publicId+=Ut;break}case k.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=L.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.QUOTATION_MARK:{this._err(ue.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(ue.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.QUOTATION_MARK:{r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=L.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.QUOTATION_MARK:{this._err(ue.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(ue.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ue.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ue.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case k.QUOTATION_MARK:{this.state=L.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),r.systemId+=Ut;break}case k.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case k.APOSTROPHE:{this.state=L.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),r.systemId+=Ut;break}case k.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.NULL:{this._err(ue.unexpectedNullCharacter);break}case k.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case k.RIGHT_SQUARE_BRACKET:{this.state=L.CDATA_SECTION_BRACKET;break}case k.EOF:{this._err(ue.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===k.RIGHT_SQUARE_BRACKET?this.state=L.CDATA_SECTION_END:(this._emitChars("]"),this.state=L.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case k.GREATER_THAN_SIGN:{this.state=L.DATA;break}case k.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=L.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(k.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ug(this.preprocessor.peek(1))?L.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Ug(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===k.SEMICOLON&&this._err(ue.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const zg=new Set([g.DD,g.DT,g.LI,g.OPTGROUP,g.OPTION,g.P,g.RB,g.RP,g.RT,g.RTC]),Yg=new Set([...zg,g.CAPTION,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]),gs=new Set([g.APPLET,g.CAPTION,g.HTML,g.MARQUEE,g.OBJECT,g.TABLE,g.TD,g.TEMPLATE,g.TH]),gv=new Set([...gs,g.OL,g.UL]),Ev=new Set([...gs,g.BUTTON]),jg=new Set([g.ANNOTATION_XML,g.MI,g.MN,g.MO,g.MS,g.MTEXT]),qg=new Set([g.DESC,g.FOREIGN_OBJECT,g.TITLE]),bv=new Set([g.TR,g.TEMPLATE,g.HTML]),yv=new Set([g.TBODY,g.TFOOT,g.THEAD,g.TEMPLATE,g.HTML]),Tv=new Set([g.TABLE,g.TEMPLATE,g.HTML]),Sv=new Set([g.TD,g.TH]);class Cv{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,i){this.treeAdapter=r,this.handler=i,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=g.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===g.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===me.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){const i=this._indexOf(t);this.items[i]=r,i===this.stackTop&&(this.current=r)}insertAfter(t,r,i){const o=this._indexOf(t)+1;this.items.splice(o,0,r),this.tagIDs.splice(o,0,i),this.stackTop++,o===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,o===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==me.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(t){for(;this.stackTop>=t;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){const r=this._indexOf(t);this.shortenToLength(Math.max(r,0))}popUntilPopped(t,r){const i=this._indexOfTagNames(t,r);this.shortenToLength(Math.max(i,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(vd,me.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Sv,me.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let i=this.stackTop;i>=0;i--)if(t.has(this.tagIDs[i])&&this.treeAdapter.getNamespaceURI(this.items[i])===r)return i;return-1}clearBackTo(t,r){const i=this._indexOfTagNames(t,r);this.shortenToLength(i+1)}clearBackToTableContext(){this.clearBackTo(Tv,me.HTML)}clearBackToTableBodyContext(){this.clearBackTo(yv,me.HTML)}clearBackToTableRowContext(){this.clearBackTo(bv,me.HTML)}remove(t){const r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===g.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===g.HTML}hasInDynamicScope(t,r){for(let i=this.stackTop;i>=0;i--){const o=this.tagIDs[i];switch(this.treeAdapter.getNamespaceURI(this.items[i])){case me.HTML:{if(o===t)return!0;if(r.has(o))return!1;break}case me.SVG:{if(qg.has(o))return!1;break}case me.MATHML:{if(jg.has(o))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,gs)}hasInListItemScope(t){return this.hasInDynamicScope(t,gv)}hasInButtonScope(t){return this.hasInDynamicScope(t,Ev)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case me.HTML:{if(vd.has(r))return!0;if(gs.has(r))return!1;break}case me.SVG:{if(qg.has(r))return!1;break}case me.MATHML:{if(jg.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===me.HTML)switch(this.tagIDs[r]){case t:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===me.HTML)switch(this.tagIDs[t]){case g.TBODY:case g.THEAD:case g.TFOOT:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===me.HTML)switch(this.tagIDs[r]){case t:return!0;case g.OPTION:case g.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&zg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Yg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Yg.has(this.currentTagId);)this.pop()}}const Rd=3;var Br;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Br||(Br={}));const Vg={type:Br.Marker};class Av{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){const i=[],o=r.length,s=this.treeAdapter.getTagName(t),c=this.treeAdapter.getNamespaceURI(t);for(let d=0;d<this.entries.length;d++){const h=this.entries[d];if(h.type===Br.Marker)break;const{element:p}=h;if(this.treeAdapter.getTagName(p)===s&&this.treeAdapter.getNamespaceURI(p)===c){const E=this.treeAdapter.getAttrList(p);E.length===o&&i.push({idx:d,attrs:E})}}return i}_ensureNoahArkCondition(t){if(this.entries.length<Rd)return;const r=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,r);if(i.length<Rd)return;const o=new Map(r.map(c=>[c.name,c.value]));let s=0;for(let c=0;c<i.length;c++){const d=i[c];d.attrs.every(h=>o.get(h.name)===h.value)&&(s+=1,s>=Rd&&this.entries.splice(d.idx,1))}}insertMarker(){this.entries.unshift(Vg)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:Br.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:Br.Element,element:t,token:r})}removeEntry(t){const r=this.entries.indexOf(t);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){const t=this.entries.indexOf(Vg);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const r=this.entries.find(i=>i.type===Br.Marker||this.treeAdapter.getTagName(i.element)===t);return r&&r.type===Br.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===Br.Element&&r.element===t)}}const Ca={createDocument(){return{nodeName:"#document",mode:cr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const i=e.childNodes.indexOf(r);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,i){const o=e.childNodes.find(s=>s.nodeName==="#documentType");if(o)o.name=t,o.publicId=r,o.systemId=i;else{const s={nodeName:"#documentType",name:t,publicId:r,systemId:i,parentNode:null};Ca.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(Ca.isTextNode(r)){r.value+=t;return}}Ca.appendChild(e,Ca.createTextNode(t))},insertTextBefore(e,t,r){const i=e.childNodes[e.childNodes.indexOf(r)-1];i&&Ca.isTextNode(i)?i.value+=t:Ca.insertBefore(e,Ca.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(i=>i.name));for(let i=0;i<t.length;i++)r.has(t[i].name)||e.attrs.push(t[i])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Gg="html",xv="about:legacy-compat",_v="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",$g=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],vv=[...$g,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Rv=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Xg=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Nv=[...Xg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Qg(e,t){return t.some(r=>e.startsWith(r))}function Ov(e){return e.name===Gg&&e.publicId===null&&(e.systemId===null||e.systemId===xv)}function kv(e){if(e.name!==Gg)return cr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===_v)return cr.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),Rv.has(r))return cr.QUIRKS;let i=t===null?vv:$g;if(Qg(r,i))return cr.QUIRKS;if(i=t===null?Xg:Nv,Qg(r,i))return cr.LIMITED_QUIRKS}return cr.NO_QUIRKS}const Kg={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Iv="definitionurl",Dv="definitionURL",wv=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])),Lv=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:me.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:me.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:me.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:me.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:me.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:me.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:me.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:me.XML}],["xml:space",{prefix:"xml",name:"space",namespace:me.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:me.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:me.XMLNS}]]),Mv=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])),Bv=new Set([g.B,g.BIG,g.BLOCKQUOTE,g.BODY,g.BR,g.CENTER,g.CODE,g.DD,g.DIV,g.DL,g.DT,g.EM,g.EMBED,g.H1,g.H2,g.H3,g.H4,g.H5,g.H6,g.HEAD,g.HR,g.I,g.IMG,g.LI,g.LISTING,g.MENU,g.META,g.NOBR,g.OL,g.P,g.PRE,g.RUBY,g.S,g.SMALL,g.SPAN,g.STRONG,g.STRIKE,g.SUB,g.SUP,g.TABLE,g.TT,g.U,g.UL,g.VAR]);function Pv(e){const t=e.tagID;return t===g.FONT&&e.attrs.some(({name:i})=>i===ri.COLOR||i===ri.SIZE||i===ri.FACE)||Bv.has(t)}function Wg(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Iv){e.attrs[t].name=Dv;break}}function Zg(e){for(let t=0;t<e.attrs.length;t++){const r=wv.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function Nd(e){for(let t=0;t<e.attrs.length;t++){const r=Lv.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 Uv(e){const t=Mv.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Ki(e.tagName))}function Hv(e,t){return t===me.MATHML&&(e===g.MI||e===g.MO||e===g.MN||e===g.MS||e===g.MTEXT)}function Fv(e,t,r){if(t===me.MATHML&&e===g.ANNOTATION_XML){for(let i=0;i<r.length;i++)if(r[i].name===ri.ENCODING){const o=r[i].value.toLowerCase();return o===Kg.TEXT_HTML||o===Kg.APPLICATION_XML}}return t===me.SVG&&(e===g.FOREIGN_OBJECT||e===g.DESC||e===g.TITLE)}function zv(e,t,r,i){return(!i||i===me.HTML)&&Fv(e,t,r)||(!i||i===me.MATHML)&&Hv(e,t)}const Yv="hidden",jv=8,qv=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 Vv={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Jg=new Set([g.TABLE,g.TBODY,g.TFOOT,g.THEAD,g.TR]),eE={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ca,onParseError:null};class tE{constructor(t,r,i=null,o=null){this.fragmentContext=i,this.scriptHandler=o,this.currentToken=null,this.stopped=!1,this.insertionMode=U.INITIAL,this.originalInsertionMode=U.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...eE,...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 mv(this.options,this),this.activeFormattingElements=new Av(this.treeAdapter),this.fragmentContextID=i?Ki(this.treeAdapter.getTagName(i)):g.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new Cv(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={...eE,...r};t??(t=i.treeAdapter.createElement(Q.TEMPLATE,me.HTML,[]));const o=i.treeAdapter.createElement("documentmock",me.HTML,[]),s=new this(i,o,t);return s.fragmentContextID===g.TEMPLATE&&s.tmplInsertionModeStack.unshift(U.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,i){var o;if(!this.onParseError)return;const s=(o=t.location)!==null&&o!==void 0?o:Vv,c={code:r,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:i?s.startLine:s.endLine,endCol:i?s.startCol:s.endCol,endOffset:i?s.startOffset:s.endOffset};this.onParseError(c)}onItemPush(t,r,i){var o,s;(s=(o=this.treeAdapter).onItemPush)===null||s===void 0||s.call(o,t),i&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var i,o;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(o=(i=this.treeAdapter).onItemPop)===null||o===void 0||o.call(i,t,this.openElements.current),r){let s,c;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,c=this.fragmentContextID):{current:s,currentTagId:c}=this.openElements,this._setContextModes(s,c)}}_setContextModes(t,r){const i=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===me.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&t!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,me.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=U.TEXT}switchToPlaintextParsing(){this.insertionMode=U.TEXT,this.originalInsertionMode=U.IN_BODY,this.tokenizer.state=$t.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===Q.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==me.HTML))switch(this.fragmentContextID){case g.TITLE:case g.TEXTAREA:{this.tokenizer.state=$t.RCDATA;break}case g.STYLE:case g.XMP:case g.IFRAME:case g.NOEMBED:case g.NOFRAMES:case g.NOSCRIPT:{this.tokenizer.state=$t.RAWTEXT;break}case g.SCRIPT:{this.tokenizer.state=$t.SCRIPT_DATA;break}case g.PLAINTEXT:{this.tokenizer.state=$t.PLAINTEXT;break}}}_setDocumentType(t){const r=t.name||"",i=t.publicId||"",o=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,i,o),t.location){const c=this.treeAdapter.getChildNodes(this.document).find(d=>this.treeAdapter.isDocumentTypeNode(d));c&&this.treeAdapter.setNodeSourceCodeLocation(c,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){const i=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,i)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const i=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(i??this.document,t)}}_appendElement(t,r){const i=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(i,t.location)}_insertElement(t,r){const i=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(i,t.location),this.openElements.push(i,t.tagID)}_insertFakeElement(t,r){const i=this.treeAdapter.createElement(t,me.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,r)}_insertTemplate(t){const r=this.treeAdapter.createElement(t.tagName,me.HTML,t.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,i),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(Q.HTML,me.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,g.HTML)}_appendCommentNode(t,r){const i=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,i),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_insertCharacters(t){let r,i;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:i}=this._findFosterParentingLocation(),i?this.treeAdapter.insertTextBefore(r,t.chars,i):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;const o=this.treeAdapter.getChildNodes(r),s=i?o.lastIndexOf(i):o.length,c=o[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(c)){const{endLine:h,endCol:p,endOffset:E}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(c,{endLine:h,endCol:p,endOffset:E})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,t.location)}_adoptNodes(t,r){for(let i=this.treeAdapter.getFirstChild(t);i;i=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(r,i)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){const i=r.location,o=this.treeAdapter.getTagName(t),s=r.type===Je.END_TAG&&o===r.tagName?{endTag:{...i},endLine:i.endLine,endCol:i.endCol,endOffset:i.endOffset}:{endLine:i.startLine,endCol:i.startCol,endOffset:i.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,i;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,i=this.fragmentContextID):{current:r,currentTagId:i}=this.openElements,t.tagID===g.SVG&&this.treeAdapter.getTagName(r)===Q.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===me.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===g.MGLYPH||t.tagID===g.MALIGNMARK)&&i!==void 0&&!this._isIntegrationPoint(i,r,me.HTML)}_processToken(t){switch(t.type){case Je.CHARACTER:{this.onCharacter(t);break}case Je.NULL_CHARACTER:{this.onNullCharacter(t);break}case Je.COMMENT:{this.onComment(t);break}case Je.DOCTYPE:{this.onDoctype(t);break}case Je.START_TAG:{this._processStartTag(t);break}case Je.END_TAG:{this.onEndTag(t);break}case Je.EOF:{this.onEof(t);break}case Je.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,i){const o=this.treeAdapter.getNamespaceURI(r),s=this.treeAdapter.getAttrList(r);return zv(t,o,s,i)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(o=>o.type===Br.Marker||this.openElements.contains(o.element)),i=r===-1?t-1:r-1;for(let o=i;o>=0;o--){const s=this.activeFormattingElements.entries[o];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=U.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case g.TR:{this.insertionMode=U.IN_ROW;return}case g.TBODY:case g.THEAD:case g.TFOOT:{this.insertionMode=U.IN_TABLE_BODY;return}case g.CAPTION:{this.insertionMode=U.IN_CAPTION;return}case g.COLGROUP:{this.insertionMode=U.IN_COLUMN_GROUP;return}case g.TABLE:{this.insertionMode=U.IN_TABLE;return}case g.BODY:{this.insertionMode=U.IN_BODY;return}case g.FRAMESET:{this.insertionMode=U.IN_FRAMESET;return}case g.SELECT:{this._resetInsertionModeForSelect(t);return}case g.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case g.HTML:{this.insertionMode=this.headElement?U.AFTER_HEAD:U.BEFORE_HEAD;return}case g.TD:case g.TH:{if(t>0){this.insertionMode=U.IN_CELL;return}break}case g.HEAD:{if(t>0){this.insertionMode=U.IN_HEAD;return}break}}this.insertionMode=U.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){const i=this.openElements.tagIDs[r];if(i===g.TEMPLATE)break;if(i===g.TABLE){this.insertionMode=U.IN_SELECT_IN_TABLE;return}}this.insertionMode=U.IN_SELECT}_isElementCausesFosterParenting(t){return Jg.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case g.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===me.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case g.TABLE:{const i=this.treeAdapter.getParentNode(r);return i?{parent:i,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){const i=this.treeAdapter.getNamespaceURI(t);return fv[i].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){SR(this,t);return}switch(this.insertionMode){case U.INITIAL:{mo(this,t);break}case U.BEFORE_HTML:{go(this,t);break}case U.BEFORE_HEAD:{Eo(this,t);break}case U.IN_HEAD:{bo(this,t);break}case U.IN_HEAD_NO_SCRIPT:{yo(this,t);break}case U.AFTER_HEAD:{To(this,t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:{rE(this,t);break}case U.TEXT:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Dd(this,t);break}case U.IN_TABLE_TEXT:{fE(this,t);break}case U.IN_COLUMN_GROUP:{ys(this,t);break}case U.AFTER_BODY:{Cs(this,t);break}case U.AFTER_AFTER_BODY:{As(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){TR(this,t);return}switch(this.insertionMode){case U.INITIAL:{mo(this,t);break}case U.BEFORE_HTML:{go(this,t);break}case U.BEFORE_HEAD:{Eo(this,t);break}case U.IN_HEAD:{bo(this,t);break}case U.IN_HEAD_NO_SCRIPT:{yo(this,t);break}case U.AFTER_HEAD:{To(this,t);break}case U.TEXT:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Dd(this,t);break}case U.IN_COLUMN_GROUP:{ys(this,t);break}case U.AFTER_BODY:{Cs(this,t);break}case U.AFTER_AFTER_BODY:{As(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){kd(this,t);return}switch(this.insertionMode){case U.INITIAL:case U.BEFORE_HTML:case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_TEMPLATE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{kd(this,t);break}case U.IN_TABLE_TEXT:{Ao(this,t);break}case U.AFTER_BODY:{Zv(this,t);break}case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{Jv(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case U.INITIAL:{e5(this,t);break}case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:{this._err(t,ue.misplacedDoctype);break}case U.IN_TABLE_TEXT:{Ao(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ue.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?CR(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{mo(this,t);break}case U.BEFORE_HTML:{t5(this,t);break}case U.BEFORE_HEAD:{r5(this,t);break}case U.IN_HEAD:{xr(this,t);break}case U.IN_HEAD_NO_SCRIPT:{u5(this,t);break}case U.AFTER_HEAD:{l5(this,t);break}case U.IN_BODY:{xn(this,t);break}case U.IN_TABLE:{Wi(this,t);break}case U.IN_TABLE_TEXT:{Ao(this,t);break}case U.IN_CAPTION:{aR(this,t);break}case U.IN_COLUMN_GROUP:{wd(this,t);break}case U.IN_TABLE_BODY:{Ts(this,t);break}case U.IN_ROW:{Ss(this,t);break}case U.IN_CELL:{oR(this,t);break}case U.IN_SELECT:{pE(this,t);break}case U.IN_SELECT_IN_TABLE:{sR(this,t);break}case U.IN_TEMPLATE:{fR(this,t);break}case U.AFTER_BODY:{hR(this,t);break}case U.IN_FRAMESET:{pR(this,t);break}case U.AFTER_FRAMESET:{gR(this,t);break}case U.AFTER_AFTER_BODY:{bR(this,t);break}case U.AFTER_AFTER_FRAMESET:{yR(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?AR(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{mo(this,t);break}case U.BEFORE_HTML:{n5(this,t);break}case U.BEFORE_HEAD:{a5(this,t);break}case U.IN_HEAD:{i5(this,t);break}case U.IN_HEAD_NO_SCRIPT:{o5(this,t);break}case U.AFTER_HEAD:{s5(this,t);break}case U.IN_BODY:{bs(this,t);break}case U.TEXT:{X5(this,t);break}case U.IN_TABLE:{So(this,t);break}case U.IN_TABLE_TEXT:{Ao(this,t);break}case U.IN_CAPTION:{iR(this,t);break}case U.IN_COLUMN_GROUP:{uR(this,t);break}case U.IN_TABLE_BODY:{Ld(this,t);break}case U.IN_ROW:{hE(this,t);break}case U.IN_CELL:{lR(this,t);break}case U.IN_SELECT:{mE(this,t);break}case U.IN_SELECT_IN_TABLE:{cR(this,t);break}case U.IN_TEMPLATE:{dR(this,t);break}case U.AFTER_BODY:{EE(this,t);break}case U.IN_FRAMESET:{mR(this,t);break}case U.AFTER_FRAMESET:{ER(this,t);break}case U.AFTER_AFTER_BODY:{As(this,t);break}}}onEof(t){switch(this.insertionMode){case U.INITIAL:{mo(this,t);break}case U.BEFORE_HTML:{go(this,t);break}case U.BEFORE_HEAD:{Eo(this,t);break}case U.IN_HEAD:{bo(this,t);break}case U.IN_HEAD_NO_SCRIPT:{yo(this,t);break}case U.AFTER_HEAD:{To(this,t);break}case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{sE(this,t);break}case U.TEXT:{Q5(this,t);break}case U.IN_TABLE_TEXT:{Ao(this,t);break}case U.IN_TEMPLATE:{gE(this,t);break}case U.AFTER_BODY:case U.IN_FRAMESET:case U.AFTER_FRAMESET:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{Id(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===k.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.TEXT:case U.IN_COLUMN_GROUP:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{this._insertCharacters(t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:case U.AFTER_BODY:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{nE(this,t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Dd(this,t);break}case U.IN_TABLE_TEXT:{cE(this,t);break}}}}function Gv(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):lE(e,t),r}function $v(e,t){let r=null,i=e.openElements.stackTop;for(;i>=0;i--){const o=e.openElements.items[i];if(o===t.element)break;e._isSpecialElement(o,e.openElements.tagIDs[i])&&(r=o)}return r||(e.openElements.shortenToLength(Math.max(i,0)),e.activeFormattingElements.removeEntry(t)),r}function Xv(e,t,r){let i=t,o=e.openElements.getCommonAncestor(t);for(let s=0,c=o;c!==r;s++,c=o){o=e.openElements.getCommonAncestor(c);const d=e.activeFormattingElements.getElementEntry(c),h=d&&s>=qv;!d||h?(h&&e.activeFormattingElements.removeEntry(d),e.openElements.remove(c)):(c=Qv(e,d),i===t&&(e.activeFormattingElements.bookmark=d),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(c,i),i=c)}return i}function Qv(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 Kv(e,t,r){const i=e.treeAdapter.getTagName(t),o=Ki(i);if(e._isElementCausesFosterParenting(o))e._fosterParentElement(r);else{const s=e.treeAdapter.getNamespaceURI(t);o===g.TEMPLATE&&s===me.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Wv(e,t,r){const i=e.treeAdapter.getNamespaceURI(r.element),{token:o}=r,s=e.treeAdapter.createElement(o.tagName,i,o.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,o),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,s,o.tagID)}function Od(e,t){for(let r=0;r<jv;r++){const i=Gv(e,t);if(!i)break;const o=$v(e,i);if(!o)break;e.activeFormattingElements.bookmark=i;const s=Xv(e,o,i.element),c=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(s),c&&Kv(e,c,s),Wv(e,o,i)}}function kd(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Zv(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Jv(e,t){e._appendCommentNode(t,e.document)}function Id(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=r;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const i=e.openElements.items[0],o=e.treeAdapter.getNodeSourceCodeLocation(i);if(o&&!o.endTag&&(e._setEndLocation(i,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],c=e.treeAdapter.getNodeSourceCodeLocation(s);c&&!c.endTag&&e._setEndLocation(s,t)}}}}function e5(e,t){e._setDocumentType(t);const r=t.forceQuirks?cr.QUIRKS:kv(t);Ov(t)||e._err(t,ue.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=U.BEFORE_HTML}function mo(e,t){e._err(t,ue.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,cr.QUIRKS),e.insertionMode=U.BEFORE_HTML,e._processToken(t)}function t5(e,t){t.tagID===g.HTML?(e._insertElement(t,me.HTML),e.insertionMode=U.BEFORE_HEAD):go(e,t)}function n5(e,t){const r=t.tagID;(r===g.HTML||r===g.HEAD||r===g.BODY||r===g.BR)&&go(e,t)}function go(e,t){e._insertFakeRootElement(),e.insertionMode=U.BEFORE_HEAD,e._processToken(t)}function r5(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.HEAD:{e._insertElement(t,me.HTML),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD;break}default:Eo(e,t)}}function a5(e,t){const r=t.tagID;r===g.HEAD||r===g.BODY||r===g.HTML||r===g.BR?Eo(e,t):e._err(t,ue.endTagWithoutMatchingOpenElement)}function Eo(e,t){e._insertFakeElement(Q.HEAD,g.HEAD),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD,e._processToken(t)}function xr(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:{e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break}case g.TITLE:{e._switchToTextParsing(t,$t.RCDATA);break}case g.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,$t.RAWTEXT):(e._insertElement(t,me.HTML),e.insertionMode=U.IN_HEAD_NO_SCRIPT);break}case g.NOFRAMES:case g.STYLE:{e._switchToTextParsing(t,$t.RAWTEXT);break}case g.SCRIPT:{e._switchToTextParsing(t,$t.SCRIPT_DATA);break}case g.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=U.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(U.IN_TEMPLATE);break}case g.HEAD:{e._err(t,ue.misplacedStartTagForHeadElement);break}default:bo(e,t)}}function i5(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:{bo(e,t);break}case g.TEMPLATE:{ai(e,t);break}default:e._err(t,ue.endTagWithoutMatchingOpenElement)}}function ai(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==g.TEMPLATE&&e._err(t,ue.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ue.endTagWithoutMatchingOpenElement)}function bo(e,t){e.openElements.pop(),e.insertionMode=U.AFTER_HEAD,e._processToken(t)}function u5(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.BASEFONT:case g.BGSOUND:case g.HEAD:case g.LINK:case g.META:case g.NOFRAMES:case g.STYLE:{xr(e,t);break}case g.NOSCRIPT:{e._err(t,ue.nestedNoscriptInHead);break}default:yo(e,t)}}function o5(e,t){switch(t.tagID){case g.NOSCRIPT:{e.openElements.pop(),e.insertionMode=U.IN_HEAD;break}case g.BR:{yo(e,t);break}default:e._err(t,ue.endTagWithoutMatchingOpenElement)}}function yo(e,t){const r=t.type===Je.EOF?ue.openElementsLeftAfterEof:ue.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=U.IN_HEAD,e._processToken(t)}function l5(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.BODY:{e._insertElement(t,me.HTML),e.framesetOk=!1,e.insertionMode=U.IN_BODY;break}case g.FRAMESET:{e._insertElement(t,me.HTML),e.insertionMode=U.IN_FRAMESET;break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{e._err(t,ue.abandonedHeadElementChild),e.openElements.push(e.headElement,g.HEAD),xr(e,t),e.openElements.remove(e.headElement);break}case g.HEAD:{e._err(t,ue.misplacedStartTagForHeadElement);break}default:To(e,t)}}function s5(e,t){switch(t.tagID){case g.BODY:case g.HTML:case g.BR:{To(e,t);break}case g.TEMPLATE:{ai(e,t);break}default:e._err(t,ue.endTagWithoutMatchingOpenElement)}}function To(e,t){e._insertFakeElement(Q.BODY,g.BODY),e.insertionMode=U.IN_BODY,Es(e,t)}function Es(e,t){switch(t.type){case Je.CHARACTER:{rE(e,t);break}case Je.WHITESPACE_CHARACTER:{nE(e,t);break}case Je.COMMENT:{kd(e,t);break}case Je.START_TAG:{xn(e,t);break}case Je.END_TAG:{bs(e,t);break}case Je.EOF:{sE(e,t);break}}}function nE(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function rE(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function c5(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function f5(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function d5(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,me.HTML),e.insertionMode=U.IN_FRAMESET)}function h5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,me.HTML)}function p5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&vd.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,me.HTML)}function m5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,me.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function g5(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,me.HTML),r||(e.formElement=e.openElements.current))}function E5(e,t){e.framesetOk=!1;const r=t.tagID;for(let i=e.openElements.stackTop;i>=0;i--){const o=e.openElements.tagIDs[i];if(r===g.LI&&o===g.LI||(r===g.DD||r===g.DT)&&(o===g.DD||o===g.DT)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(o!==g.ADDRESS&&o!==g.DIV&&o!==g.P&&e._isSpecialElement(e.openElements.items[i],o))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,me.HTML)}function b5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,me.HTML),e.tokenizer.state=$t.PLAINTEXT}function y5(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.framesetOk=!1}function T5(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(Q.A);r&&(Od(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function S5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function C5(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(Od(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function A5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function x5(e,t){e.treeAdapter.getDocumentMode(e.document)!==cr.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,me.HTML),e.framesetOk=!1,e.insertionMode=U.IN_TABLE}function aE(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,me.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function iE(e){const t=Pg(e,ri.TYPE);return t!=null&&t.toLowerCase()===Yv}function _5(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,me.HTML),iE(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function v5(e,t){e._appendElement(t,me.HTML),t.ackSelfClosing=!0}function R5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,me.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function N5(e,t){t.tagName=Q.IMG,t.tagID=g.IMG,aE(e,t)}function O5(e,t){e._insertElement(t,me.HTML),e.skipNextNewLine=!0,e.tokenizer.state=$t.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=U.TEXT}function k5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,$t.RAWTEXT)}function I5(e,t){e.framesetOk=!1,e._switchToTextParsing(t,$t.RAWTEXT)}function uE(e,t){e._switchToTextParsing(t,$t.RAWTEXT)}function D5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===U.IN_TABLE||e.insertionMode===U.IN_CAPTION||e.insertionMode===U.IN_TABLE_BODY||e.insertionMode===U.IN_ROW||e.insertionMode===U.IN_CELL?U.IN_SELECT_IN_TABLE:U.IN_SELECT}function w5(e,t){e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML)}function L5(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,me.HTML)}function M5(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,me.HTML)}function B5(e,t){e._reconstructActiveFormattingElements(),Wg(t),Nd(t),t.selfClosing?e._appendElement(t,me.MATHML):e._insertElement(t,me.MATHML),t.ackSelfClosing=!0}function P5(e,t){e._reconstructActiveFormattingElements(),Zg(t),Nd(t),t.selfClosing?e._appendElement(t,me.SVG):e._insertElement(t,me.SVG),t.ackSelfClosing=!0}function oE(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML)}function xn(e,t){switch(t.tagID){case g.I:case g.S:case g.B:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.SMALL:case g.STRIKE:case g.STRONG:{S5(e,t);break}case g.A:{T5(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{p5(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:{h5(e,t);break}case g.LI:case g.DD:case g.DT:{E5(e,t);break}case g.BR:case g.IMG:case g.WBR:case g.AREA:case g.EMBED:case g.KEYGEN:{aE(e,t);break}case g.HR:{R5(e,t);break}case g.RB:case g.RTC:{L5(e,t);break}case g.RT:case g.RP:{M5(e,t);break}case g.PRE:case g.LISTING:{m5(e,t);break}case g.XMP:{k5(e,t);break}case g.SVG:{P5(e,t);break}case g.HTML:{c5(e,t);break}case g.BASE:case g.LINK:case g.META:case g.STYLE:case g.TITLE:case g.SCRIPT:case g.BGSOUND:case g.BASEFONT:case g.TEMPLATE:{xr(e,t);break}case g.BODY:{f5(e,t);break}case g.FORM:{g5(e,t);break}case g.NOBR:{C5(e,t);break}case g.MATH:{B5(e,t);break}case g.TABLE:{x5(e,t);break}case g.INPUT:{_5(e,t);break}case g.PARAM:case g.TRACK:case g.SOURCE:{v5(e,t);break}case g.IMAGE:{N5(e,t);break}case g.BUTTON:{y5(e,t);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{A5(e,t);break}case g.IFRAME:{I5(e,t);break}case g.SELECT:{D5(e,t);break}case g.OPTION:case g.OPTGROUP:{w5(e,t);break}case g.NOEMBED:case g.NOFRAMES:{uE(e,t);break}case g.FRAMESET:{d5(e,t);break}case g.TEXTAREA:{O5(e,t);break}case g.NOSCRIPT:{e.options.scriptingEnabled?uE(e,t):oE(e,t);break}case g.PLAINTEXT:{b5(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:oE(e,t)}}function U5(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 H5(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=U.AFTER_BODY,EE(e,t))}function F5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function z5(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):r&&e.openElements.remove(r))}function Y5(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(Q.P,g.P),e._closePElement()}function j5(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}function q5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function V5(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function G5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function $5(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Q.BR,g.BR),e.openElements.pop(),e.framesetOk=!1}function lE(e,t){const r=t.tagName,i=t.tagID;for(let o=e.openElements.stackTop;o>0;o--){const s=e.openElements.items[o],c=e.openElements.tagIDs[o];if(i===c&&(i!==g.UNKNOWN||e.treeAdapter.getTagName(s)===r)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=o&&e.openElements.shortenToLength(o);break}if(e._isSpecialElement(s,c))break}}function bs(e,t){switch(t.tagID){case g.A:case g.B:case g.I:case g.S:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.NOBR:case g.SMALL:case g.STRIKE:case g.STRONG:{Od(e,t);break}case g.P:{Y5(e);break}case g.DL:case g.UL:case g.OL:case g.DIR:case g.DIV:case g.NAV:case g.PRE:case g.MAIN:case g.MENU:case g.ASIDE:case g.BUTTON:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.ADDRESS:case g.ARTICLE:case g.DETAILS:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.LISTING:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{F5(e,t);break}case g.LI:{j5(e);break}case g.DD:case g.DT:{q5(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{V5(e);break}case g.BR:{$5(e);break}case g.BODY:{U5(e,t);break}case g.HTML:{H5(e,t);break}case g.FORM:{z5(e);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{G5(e,t);break}case g.TEMPLATE:{ai(e,t);break}default:lE(e,t)}}function sE(e,t){e.tmplInsertionModeStack.length>0?gE(e,t):Id(e,t)}function X5(e,t){var r;t.tagID===g.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Q5(e,t){e._err(t,ue.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Dd(e,t){if(e.openElements.currentTagId!==void 0&&Jg.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=U.IN_TABLE_TEXT,t.type){case Je.CHARACTER:{fE(e,t);break}case Je.WHITESPACE_CHARACTER:{cE(e,t);break}}else Co(e,t)}function K5(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,me.HTML),e.insertionMode=U.IN_CAPTION}function W5(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,me.HTML),e.insertionMode=U.IN_COLUMN_GROUP}function Z5(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Q.COLGROUP,g.COLGROUP),e.insertionMode=U.IN_COLUMN_GROUP,wd(e,t)}function J5(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,me.HTML),e.insertionMode=U.IN_TABLE_BODY}function eR(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Q.TBODY,g.TBODY),e.insertionMode=U.IN_TABLE_BODY,Ts(e,t)}function tR(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function nR(e,t){iE(t)?e._appendElement(t,me.HTML):Co(e,t),t.ackSelfClosing=!0}function rR(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,me.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Wi(e,t){switch(t.tagID){case g.TD:case g.TH:case g.TR:{eR(e,t);break}case g.STYLE:case g.SCRIPT:case g.TEMPLATE:{xr(e,t);break}case g.COL:{Z5(e,t);break}case g.FORM:{rR(e,t);break}case g.TABLE:{tR(e,t);break}case g.TBODY:case g.TFOOT:case g.THEAD:{J5(e,t);break}case g.INPUT:{nR(e,t);break}case g.CAPTION:{K5(e,t);break}case g.COLGROUP:{W5(e,t);break}default:Co(e,t)}}function So(e,t){switch(t.tagID){case g.TABLE:{e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode());break}case g.TEMPLATE:{ai(e,t);break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:Co(e,t)}}function Co(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Es(e,t),e.fosterParentingEnabled=r}function cE(e,t){e.pendingCharacterTokens.push(t)}function fE(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Ao(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Co(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const dE=new Set([g.CAPTION,g.COL,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]);function aR(e,t){const r=t.tagID;dE.has(r)?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,Wi(e,t)):xn(e,t)}function iR(e,t){const r=t.tagID;switch(r){case g.CAPTION:case g.TABLE:{e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,r===g.TABLE&&So(e,t));break}case g.BODY:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:bs(e,t)}}function wd(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.COL:{e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break}case g.TEMPLATE:{xr(e,t);break}default:ys(e,t)}}function uR(e,t){switch(t.tagID){case g.COLGROUP:{e.openElements.currentTagId===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case g.TEMPLATE:{ai(e,t);break}case g.COL:break;default:ys(e,t)}}function ys(e,t){e.openElements.currentTagId===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE,e._processToken(t))}function Ts(e,t){switch(t.tagID){case g.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,me.HTML),e.insertionMode=U.IN_ROW;break}case g.TH:case g.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Q.TR,g.TR),e.insertionMode=U.IN_ROW,Ss(e,t);break}case g.CAPTION:case g.COL:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,Wi(e,t));break}default:Wi(e,t)}}function Ld(e,t){const r=t.tagID;switch(t.tagID){case g.TBODY:case g.TFOOT:case g.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case g.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,So(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TD:case g.TH:case g.TR:break;default:So(e,t)}}function Ss(e,t){switch(t.tagID){case g.TH:case g.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,me.HTML),e.insertionMode=U.IN_CELL,e.activeFormattingElements.insertMarker();break}case g.CAPTION:case g.COL:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:case g.TR:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Ts(e,t));break}default:Wi(e,t)}}function hE(e,t){switch(t.tagID){case g.TR:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY);break}case g.TABLE:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Ld(e,t));break}case g.TBODY:case g.TFOOT:case g.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(g.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Ld(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TD:case g.TH:break;default:So(e,t)}}function oR(e,t){const r=t.tagID;dE.has(r)?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),Ss(e,t)):xn(e,t)}function lR(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(),hE(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:break;default:bs(e,t)}}function pE(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.OPTION:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._insertElement(t,me.HTML);break}case g.OPTGROUP:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop(),e._insertElement(t,me.HTML);break}case g.HR:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop(),e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break}case g.INPUT:case g.KEYGEN:case g.TEXTAREA:case g.SELECT:{e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),t.tagID!==g.SELECT&&e._processStartTag(t));break}case g.SCRIPT:case g.TEMPLATE:{xr(e,t);break}}}function mE(e,t){switch(t.tagID){case g.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===g.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===g.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop();break}case g.OPTION:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop();break}case g.SELECT:{e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode());break}case g.TEMPLATE:{ai(e,t);break}}}function sR(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)):pE(e,t)}function cR(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)):mE(e,t)}function fR(e,t){switch(t.tagID){case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{xr(e,t);break}case g.CAPTION:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{e.tmplInsertionModeStack[0]=U.IN_TABLE,e.insertionMode=U.IN_TABLE,Wi(e,t);break}case g.COL:{e.tmplInsertionModeStack[0]=U.IN_COLUMN_GROUP,e.insertionMode=U.IN_COLUMN_GROUP,wd(e,t);break}case g.TR:{e.tmplInsertionModeStack[0]=U.IN_TABLE_BODY,e.insertionMode=U.IN_TABLE_BODY,Ts(e,t);break}case g.TD:case g.TH:{e.tmplInsertionModeStack[0]=U.IN_ROW,e.insertionMode=U.IN_ROW,Ss(e,t);break}default:e.tmplInsertionModeStack[0]=U.IN_BODY,e.insertionMode=U.IN_BODY,xn(e,t)}}function dR(e,t){t.tagID===g.TEMPLATE&&ai(e,t)}function gE(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Id(e,t)}function hR(e,t){t.tagID===g.HTML?xn(e,t):Cs(e,t)}function EE(e,t){var r;if(t.tagID===g.HTML){if(e.fragmentContext||(e.insertionMode=U.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===g.HTML){e._setEndLocation(e.openElements.items[0],t);const i=e.openElements.items[1];i&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(i))===null||r===void 0)&&r.endTag)&&e._setEndLocation(i,t)}}else Cs(e,t)}function Cs(e,t){e.insertionMode=U.IN_BODY,Es(e,t)}function pR(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.FRAMESET:{e._insertElement(t,me.HTML);break}case g.FRAME:{e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break}case g.NOFRAMES:{xr(e,t);break}}}function mR(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 gR(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.NOFRAMES:{xr(e,t);break}}}function ER(e,t){t.tagID===g.HTML&&(e.insertionMode=U.AFTER_AFTER_FRAMESET)}function bR(e,t){t.tagID===g.HTML?xn(e,t):As(e,t)}function As(e,t){e.insertionMode=U.IN_BODY,Es(e,t)}function yR(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.NOFRAMES:{xr(e,t);break}}}function TR(e,t){t.chars=Ut,e._insertCharacters(t)}function SR(e,t){e._insertCharacters(t),e.framesetOk=!1}function bE(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==me.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function CR(e,t){if(Pv(t))bE(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(r);i===me.MATHML?Wg(t):i===me.SVG&&(Uv(t),Zg(t)),Nd(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function AR(e,t){if(t.tagID===g.P||t.tagID===g.BR){bE(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(i)===me.HTML){e._endTagOutsideForeignContent(t);break}const o=e.treeAdapter.getTagName(i);if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(r);break}}}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 xR=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,_R=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),yE={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function TE(e,t){const r=MR(e),i=Dg("type",{handlers:{root:vR,element:RR,text:NR,comment:CE,doctype:OR,raw:IR},unknown:DR}),o={parser:r?new tE(yE):tE.getFragmentParser(void 0,yE),handle(d){i(d,o)},stitches:!1,options:t||{}};i(e,o),Zi(o,Dr());const s=r?o.parser.document:o.parser.getFragment(),c=v4(s,{file:o.options.file});return o.stitches&&id(c,"comment",function(d,h,p){const E=d;if(E.value.stitch&&p&&h!==void 0){const b=p.children;return b[h]=E.value.stitch,h}}),c.type==="root"&&c.children.length===1&&c.children[0].type===e.type?c.children[0]:c}function SE(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function vR(e,t){SE(e.children,t)}function RR(e,t){wR(e,t),SE(e.children,t),LR(e,t)}function NR(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:Je.CHARACTER,chars:e.value,location:xo(e)};Zi(t,Dr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function OR(e,t){const r={type:Je.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:xo(e)};Zi(t,Dr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function kR(e,t){t.stitches=!0;const r=BR(e);if("children"in e&&"children"in r){const i=TE({type:"root",children:e.children},t.options);r.children=i.children}CE({type:"comment",value:{stitch:r}},t)}function CE(e,t){const r=e.value,i={type:Je.COMMENT,data:r,location:xo(e)};Zi(t,Dr(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function IR(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,AE(t,Dr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(xR,"&lt;$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 DR(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))kR(r,t);else{let i="";throw _R.has(r.type)&&(i=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+i)}}function Zi(e,t){AE(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=$t.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function AE(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 wR(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===$t.PLAINTEXT)return;Zi(t,Dr(e));const i=t.parser.openElements.current;let o="namespaceURI"in i?i.namespaceURI:ti.html;o===ti.html&&r==="svg"&&(o=ti.svg);const s=z4({...e,children:[]},{space:o===ti.svg?"svg":"html"}),c={type:Je.START_TAG,tagName:r,tagID:Ki(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:xo(e)};t.parser.currentToken=c,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function LR(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Q4.includes(r)||t.parser.tokenizer.state===$t.PLAINTEXT)return;Zi(t,is(e));const i={type:Je.END_TAG,tagName:r,tagID:Ki(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:xo(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===$t.RCDATA||t.parser.tokenizer.state===$t.RAWTEXT||t.parser.tokenizer.state===$t.SCRIPT_DATA)&&(t.parser.tokenizer.state=$t.DATA)}function MR(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function xo(e){const t=Dr(e)||{line:void 0,column:void 0,offset:void 0},r=is(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function BR(e){return"children"in e?Vi({...e,children:[]}):Vi(e)}function PR(e){return function(t,r){return TE(t,{...e,file:r})}}const UR=({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"})),HR=({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"})),xE=({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"})),FR=({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"})),_E=({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"})),zR=({color:e="currentColor",size:t=24,className:r,...i})=>St.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},St.createElement("path",{d:"M6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z"})),Md=({color:e="currentColor",size:t=24,className:r,...i})=>St.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},St.createElement("path",{d:"M17.0007 1.20825 18.3195 3.68108 20.7923 4.99992 18.3195 6.31876 17.0007 8.79159 15.6818 6.31876 13.209 4.99992 15.6818 3.68108 17.0007 1.20825ZM10.6673 9.33325 15.6673 11.9999 10.6673 14.6666 8.00065 19.6666 5.33398 14.6666.333984 11.9999 5.33398 9.33325 8.00065 4.33325 10.6673 9.33325ZM11.4173 11.9999 9.18905 10.8115 8.00065 8.58325 6.81224 10.8115 4.58398 11.9999 6.81224 13.1883 8.00065 15.4166 9.18905 13.1883 11.4173 11.9999ZM19.6673 16.3333 18.0007 13.2083 16.334 16.3333 13.209 17.9999 16.334 19.6666 18.0007 22.7916 19.6673 19.6666 22.7923 17.9999 19.6673 16.3333Z"}));function vE(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=vE(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function tt(){for(var e,t,r=0,i="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=vE(e))&&(i&&(i+=" "),i+=t);return i}function On(e,t,r=void 0){const i={};for(const o in e){const s=e[o];let c="",d=!0;for(let h=0;h<s.length;h+=1){const p=s[h];p&&(c+=(d===!0?"":" ")+t(p),d=!1,r&&r[p]&&(c+=" "+r[p]))}i[o]=c}return i}const RE=A.createContext();function YR({value:e,...t}){return pe.jsx(RE.Provider,{value:e??!0,...t})}const Bd=()=>A.useContext(RE)??!1;var Pd={exports:{}},Rt={};/**
68
+ `}),r}function ng(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function rg(e,t){const r=B_(e,t),i=r.one(e,void 0),l=R_(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 z_(e,t){return e&&"run"in e?async function(r,i){const l=rg(r,{file:i,...t});await e.run(l,i)}:function(r,i){return rg(r,{file:i,...e||t})}}function ag(e){if(e)throw e}var ld,ig;function Y_(){if(ig)return ld;ig=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(p){return typeof Array.isArray=="function"?Array.isArray(p):t.call(p)==="[object Array]"},s=function(p){if(!p||t.call(p)!=="[object Object]")return!1;var b=e.call(p,"constructor"),E=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!b&&!E)return!1;var T;for(T in p);return typeof T>"u"||e.call(p,T)},c=function(p,b){r&&b.name==="__proto__"?r(p,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):p[b.name]=b.newValue},d=function(p,b){if(b==="__proto__")if(e.call(p,b)){if(i)return i(p,b).value}else return;return p[b]};return ld=function h(){var p,b,E,T,y,v,x=arguments[0],B=1,I=arguments.length,P=!1;for(typeof x=="boolean"&&(P=x,x=arguments[1]||{},B=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});B<I;++B)if(p=arguments[B],p!=null)for(b in p)E=d(x,b),T=d(p,b),x!==T&&(P&&T&&(s(T)||(y=l(T)))?(y?(y=!1,v=E&&l(E)?E:[]):v=E&&s(E)?E:{},c(x,{name:b,newValue:h(P,v,T)})):typeof T<"u"&&c(x,{name:b,newValue:T}));return x},ld}var j_=Y_();const od=lr(j_);function sd(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function q_(){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(h,...p){const b=e[++s];let E=-1;if(h){c(h);return}for(;++E<l.length;)(p[E]===null||p[E]===void 0)&&(p[E]=l[E]);l=p,b?V_(b,d)(...p):c(null,...p)}}function i(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function V_(e,t){let r;return i;function i(...c){const d=e.length>c.length;let h;d&&c.push(l);try{h=e.apply(this,c)}catch(p){const b=p;if(d&&r)throw b;return l(b)}d||(h&&h.then&&typeof h.then=="function"?h.then(s,l):h instanceof Error?l(h):s(h))}function l(c,...d){r||(r=!0,t(c,...d))}function s(c){l(null,c)}}const Mr={basename:G_,dirname:$_,extname:X_,join:Q_,sep:"/"};function G_(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 $_(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 X_(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 Q_(...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?".":K_(r)}function K_(e){fl(e);const t=e.codePointAt(0)===47;let r=W_(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function W_(e,t){let r="",i=0,l=-1,s=0,c=-1,d,h;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(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(h=r.lastIndexOf("/"),h!==r.length-1){h<0?(r="",i=0):(r=r.slice(0,h),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 Z_={cwd:J_};function J_(){return"/"}function cd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function e4(e){if(typeof e=="string")e=new URL(e);else if(!cd(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return t4(e)}function t4(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 fd=["history","path","basename","stem","extname","dirname"];class ug{constructor(t){let r;t?cd(t)?r={path:t}:typeof t=="string"||n4(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Z_.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<fd.length;){const s=fd[i];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let l;for(l in r)fd.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?Mr.basename(this.path):void 0}set basename(t){hd(t,"basename"),dd(t,"basename"),this.path=Mr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Mr.dirname(this.path):void 0}set dirname(t){lg(this.basename,"dirname"),this.path=Mr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Mr.extname(this.path):void 0}set extname(t){if(dd(t,"extname"),lg(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Mr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){cd(t)&&(t=e4(t)),hd(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Mr.basename(this.path,this.extname):void 0}set stem(t){hd(t,"stem"),dd(t,"stem"),this.path=Mr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const 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 dd(e,t){if(e&&e.includes(Mr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Mr.sep+"`")}function hd(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function lg(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function n4(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const r4=function(e){const i=this.constructor.prototype,l=i[e],s=function(){return l.apply(s,arguments)};return Object.setPrototypeOf(s,i),s},a4={}.hasOwnProperty;class pd extends r4{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=q_()}copy(){const t=new pd;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(od(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(bd("data",this.frozen),this.namespace[t]=r,this):a4.call(this.namespace,t)&&this.namespace[t]||void 0:t?(bd("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const 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=hs(t),i=this.parser||this.Parser;return md("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),md("process",this.parser||this.Parser),gd("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(s,c){const d=hs(t),h=i.parse(d);i.run(h,d,function(b,E,T){if(b||!E||!T)return p(b);const y=E,v=i.stringify(y,T);l4(v)?T.value=v:T.result=v,p(b,T)});function p(b,E){b||!E?c(b):s?s(E):r(void 0,E)}}}processSync(t){let r=!1,i;return this.freeze(),md("processSync",this.parser||this.Parser),gd("processSync",this.compiler||this.Compiler),this.process(t,l),sg("processSync","process",r),i;function l(s,c){r=!0,ag(s),i=c}}run(t,r,i){og(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 h=hs(r);l.run(t,h,p);function p(b,E,T){const y=E||t;b?d(b):c?c(y):i(void 0,y,T)}}}runSync(t,r){let i=!1,l;return this.run(t,r,s),sg("runSync","run",i),l;function s(c,d){ag(c),l=d,i=!0}}stringify(t,r){this.freeze();const i=hs(r),l=this.compiler||this.Compiler;return gd("stringify",l),og(t),l(t,i)}use(t,...r){const i=this.attachers,l=this.namespace;if(bd("use",this.frozen),t!=null)if(typeof t=="function")h(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(p){if(typeof p=="function")h(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[b,...E]=p;h(b,E)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(l.settings=od(!0,l.settings,p.settings))}function d(p){let b=-1;if(p!=null)if(Array.isArray(p))for(;++b<p.length;){const E=p[b];s(E)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function h(p,b){let E=-1,T=-1;for(;++E<i.length;)if(i[E][0]===p){T=E;break}if(T===-1)i.push([p,...b]);else if(b.length>0){let[y,...v]=b;const x=i[T][1];sd(x)&&sd(y)&&(y=od(!0,x,y)),i[T]=[p,y,...v]}}}}const i4=new pd().freeze();function md(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function gd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function bd(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function og(e){if(!sd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function sg(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function hs(e){return u4(e)?e:new ug(e)}function u4(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function l4(e){return typeof e=="string"||o4(e)}function o4(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const s4="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",cg=[],fg={allowDangerousHtml:!0},c4=/^(https?|ircs?|mailto|xmpp)$/i,f4=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function dg(e){const t=d4(e),r=h4(e);return p4(t.runSync(t.parse(r),r),e)}function d4(e){const t=e.rehypePlugins||cg,r=e.remarkPlugins||cg,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...fg}:fg;return i4().use(Xx).use(r).use(z_,i).use(t)}function h4(e){const t=e.children||"",r=new ug;return typeof t=="string"&&(r.value=t),r}function p4(e,t){const r=t.allowedElements,i=t.allowElement,l=t.components,s=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,h=t.urlTransform||m4;for(const b of f4)Object.hasOwn(t,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+s4+b.id,void 0);return id(e,p),L6(e,{Fragment:pe.Fragment,components:l,ignoreInvalidStyle:!0,jsx:pe.jsx,jsxs:pe.jsxs,passKeys:!0,passNode:!0});function p(b,E,T){if(b.type==="raw"&&T&&typeof E=="number")return c?T.children.splice(E,1):T.children[E]={type:"text",value:b.value},E;if(b.type==="element"){let y;for(y in qf)if(Object.hasOwn(qf,y)&&Object.hasOwn(b.properties,y)){const v=b.properties[y],x=qf[y];(x===null||x.includes(b.tagName))&&(b.properties[y]=h(String(v||""),y,b))}}if(b.type==="element"){let y=r?!r.includes(b.tagName):s?s.includes(b.tagName):!1;if(!y&&i&&typeof E=="number"&&(y=!i(b,E,T)),y&&T&&typeof E=="number")return d&&b.children?T.children.splice(E,1,...b.children):T.children.splice(E,1),E}}}function m4(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||c4.test(e.slice(0,t))?e:""}const hg=/[#.]/g;function g4(e,t){const r=e||"",i={};let l=0,s,c;for(;l<r.length;){hg.lastIndex=l;const d=hg.exec(r),h=r.slice(l,d?d.index:r.length);h&&(s?s==="#"?i.id=h:Array.isArray(i.className)?i.className.push(h):i.className=[h]:c=h,l+=h.length),d&&(s=d[0],l++)}return{type:"element",tagName:c||t||"div",properties:i,children:[]}}function pg(e,t,r){const i=r?T4(r):void 0;function l(s,c,...d){let h;if(s==null){h={type:"root",children:[]};const p=c;d.unshift(p)}else{h=g4(s,t);const p=h.tagName.toLowerCase(),b=i?i.get(p):void 0;if(h.tagName=b||p,b4(c))d.unshift(c);else for(const[E,T]of Object.entries(c))E4(e,h.properties,E,T)}for(const p of d)Ed(h.children,p);return h.type==="element"&&h.tagName==="template"&&(h.content={type:"root",children:h.children},h.children=[]),h}return l}function b4(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 E4(e,t,r,i){const l=Uf(e,r);let s;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;s=i}else typeof i=="boolean"?s=i:typeof i=="string"?l.spaceSeparated?s=t1(i):l.commaSeparated?s=zm(i):l.commaOrSpaceSeparated?s=t1(zm(i).join(" ")):s=mg(l,l.property,i):Array.isArray(i)?s=[...i]:s=l.property==="style"?y4(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 Ed(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)Ed(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Ed(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function mg(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||tl(r)===tl(t)))return!0}return r}function y4(e){const t=[];for(const[r,i]of Object.entries(e))t.push([r,i].join(": "));return t.join("; ")}function T4(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const S4=["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"],C4=pg(as,"div"),A4=pg(Fi,"g",S4);function x4(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 h=gg(t,r[c-1]);d=h===-1?t.length+1:h+1,r[c]=d}if(d>s)return{line:c+1,column:s-(c>0?r[c-1]:0)+1,offset:s};c++}}}function 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],h=gg(t,d),p=h===-1?t.length+1:h+1;if(d===p)break;r.push(p)}const c=(s.line>1?r[s.line-2]:0)+s.column-1;if(c<r[s.line-1])return c}}}function gg(e,t){const r=e.indexOf("\r",t),i=e.indexOf(`
70
+ `,t);return i===-1?r:r===-1||r+1===i?i:r<i?r:i}const ti={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},bg={}.hasOwnProperty,_4=Object.prototype;function v4(e,t){const r=t||{};return yd({file:r.file||void 0,location:!1,schema:r.space==="svg"?Fi:as,verbose:r.verbose||!1},e)}function yd(e,t){let r;switch(t.nodeName){case"#comment":{const i=t;return r={type:"comment",value:i.data},ps(e,i,r),r}case"#document":case"#document-fragment":{const i=t,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=x4(s),d=c.toPoint(0),h=c.toPoint(s.length);r.position={start:d,end:h}}return r}case"#documentType":{const i=t;return r={type:"doctype"},ps(e,i,r),r}case"#text":{const i=t;return r={type:"text",value:i.value},ps(e,i,r),r}default:return r=R4(e,t),r}}function Eg(e,t){let r=-1;const i=[];for(;++r<t.length;){const l=yd(e,t[r]);i.push(l)}return i}function R4(e,t){const r=e.schema;e.schema=t.namespaceURI===ti.svg?Fi:as;let i=-1;const l={};for(;++i<t.attrs.length;){const d=t.attrs[i],h=(d.prefix?d.prefix+":":"")+d.name;bg.call(_4,h)||(l[h]=d.value)}const c=(e.schema.space==="svg"?A4:C4)(t.tagName,l,Eg(e,t.childNodes));if(ps(e,t,c),c.tagName==="template"){const d=t,h=d.sourceCodeLocation,p=h&&h.startTag&&Gi(h.startTag),b=h&&h.endTag&&Gi(h.endTag),E=yd(e,d.content);p&&b&&e.file&&(E.position={start:p.end,end:b.start}),c.content=E}return e.schema=r,c}function ps(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=N4(e,r,t.sourceCodeLocation);i&&(e.location=!0,r.position=i)}}function N4(e,t,r){const i=Gi(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[Uf(e.schema,c).property]=Gi(r.attrs[c]));r.startTag;const d=Gi(r.startTag),h=r.endTag?Gi(r.endTag):void 0,p={opening:d};h&&(p.closing=h),p.properties=s,t.data={position:p}}}return i}function Gi(e){const t=yg({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=yg({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function yg(e){return e.line&&e.column?e:void 0}class dl{constructor(t,r,i){this.property=t,this.normal=r,i&&(this.space=i)}}dl.prototype.property={},dl.prototype.normal={},dl.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 dl(r,i,t)}function Td(e){return e.toLowerCase()}class sr{constructor(t,r){this.property=t,this.attribute=r}}sr.prototype.space=null,sr.prototype.boolean=!1,sr.prototype.booleanish=!1,sr.prototype.overloadedBoolean=!1,sr.prototype.number=!1,sr.prototype.commaSeparated=!1,sr.prototype.spaceSeparated=!1,sr.prototype.commaOrSpaceSeparated=!1,sr.prototype.mustUseProperty=!1,sr.prototype.defined=!1;let O4=0;const Ke=ni(),Jt=ni(),Sg=ni(),ye=ni(),Mt=ni(),$i=ni(),Kn=ni();function ni(){return 2**++O4}const Sd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ke,booleanish:Jt,commaOrSpaceSeparated:Kn,commaSeparated:$i,number:ye,overloadedBoolean:Sg,spaceSeparated:Mt},Symbol.toStringTag,{value:"Module"})),Cd=Object.keys(Sd);class Ad extends sr{constructor(t,r,i,l){let s=-1;if(super(t,r),Cg(this,"space",l),typeof i=="number")for(;++s<Cd.length;){const c=Cd[s];Cg(this,Cd[s],(i&Sd[c])===Sd[c])}}}Ad.prototype.defined=!0;function Cg(e,t,r){r&&(e[t]=r)}const k4={}.hasOwnProperty;function Xi(e){const t={},r={};let i;for(i in e.properties)if(k4.call(e.properties,i)){const l=e.properties[i],s=new Ad(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,r[Td(i)]=i,r[Td(s.attribute)]=i}return new dl(t,r,e.space)}const Ag=Xi({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),xg=Xi({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function _g(e,t){return t in e?e[t]:t}function vg(e,t){return _g(e,t.toLowerCase())}const Rg=Xi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:vg,properties:{xmlns:null,xmlnsXLink:null}}),Ng=Xi({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Jt,ariaAutoComplete:null,ariaBusy:Jt,ariaChecked:Jt,ariaColCount:ye,ariaColIndex:ye,ariaColSpan:ye,ariaControls:Mt,ariaCurrent:null,ariaDescribedBy:Mt,ariaDetails:null,ariaDisabled:Jt,ariaDropEffect:Mt,ariaErrorMessage:null,ariaExpanded:Jt,ariaFlowTo:Mt,ariaGrabbed:Jt,ariaHasPopup:null,ariaHidden:Jt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Mt,ariaLevel:ye,ariaLive:null,ariaModal:Jt,ariaMultiLine:Jt,ariaMultiSelectable:Jt,ariaOrientation:null,ariaOwns:Mt,ariaPlaceholder:null,ariaPosInSet:ye,ariaPressed:Jt,ariaReadOnly:Jt,ariaRelevant:null,ariaRequired:Jt,ariaRoleDescription:Mt,ariaRowCount:ye,ariaRowIndex:ye,ariaRowSpan:ye,ariaSelected:Jt,ariaSetSize:ye,ariaSort:null,ariaValueMax:ye,ariaValueMin:ye,ariaValueNow:ye,ariaValueText:null,role:null}}),I4=Xi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:vg,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:$i,acceptCharset:Mt,accessKey:Mt,action:null,allow:null,allowFullScreen:Ke,allowPaymentRequest:Ke,allowUserMedia:Ke,alt:null,as:null,async:Ke,autoCapitalize:null,autoComplete:Mt,autoFocus:Ke,autoPlay:Ke,blocking:Mt,capture:null,charSet:null,checked:Ke,cite:null,className:Mt,cols:ye,colSpan:null,content:null,contentEditable:Jt,controls:Ke,controlsList:Mt,coords:ye|$i,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ke,defer:Ke,dir:null,dirName:null,disabled:Ke,download:Sg,draggable:Jt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ke,formTarget:null,headers:Mt,height:ye,hidden:Ke,high:ye,href:null,hrefLang:null,htmlFor:Mt,httpEquiv:Mt,id:null,imageSizes:null,imageSrcSet:null,inert:Ke,inputMode:null,integrity:null,is:null,isMap:Ke,itemId:null,itemProp:Mt,itemRef:Mt,itemScope:Ke,itemType:Mt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ke,low:ye,manifest:null,max:null,maxLength:ye,media:null,method:null,min:null,minLength:ye,multiple:Ke,muted:Ke,name:null,nonce:null,noModule:Ke,noValidate:Ke,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ke,optimum:ye,pattern:null,ping:Mt,placeholder:null,playsInline:Ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ke,referrerPolicy:null,rel:Mt,required:Ke,reversed:Ke,rows:ye,rowSpan:ye,sandbox:Mt,scope:null,scoped:Ke,seamless:Ke,selected:Ke,shadowRootClonable:Ke,shadowRootDelegatesFocus:Ke,shadowRootMode:null,shape:null,size:ye,sizes:null,slot:null,span:ye,spellCheck:Jt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ye,step:null,style:null,tabIndex:ye,target:null,title:null,translate:null,type:null,typeMustMatch:Ke,useMap:null,value:Jt,width:ye,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Mt,axis:null,background:null,bgColor:null,border:ye,borderColor:null,bottomMargin:ye,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ke,declare:Ke,event:null,face:null,frame:null,frameBorder:null,hSpace:ye,leftMargin:ye,link:null,longDesc:null,lowSrc:null,marginHeight:ye,marginWidth:ye,noResize:Ke,noHref:Ke,noShade:Ke,noWrap:Ke,object:null,profile:null,prompt:null,rev:null,rightMargin:ye,rules:null,scheme:null,scrolling:Jt,standby:null,summary:null,text:null,topMargin:ye,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ye,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ke,disableRemotePlayback:Ke,prefix:null,property:null,results:ye,security:null,unselectable:null}}),D4=Xi({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:_g,properties:{about:Kn,accentHeight:ye,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ye,amplitude:ye,arabicForm:null,ascent:ye,attributeName:null,attributeType:null,azimuth:ye,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ye,by:null,calcMode:null,capHeight:ye,className:Mt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ye,diffuseConstant:ye,direction:null,display:null,dur:null,divisor:ye,dominantBaseline:null,download:Ke,dx:null,dy:null,edgeMode:null,editable:null,elevation:ye,enableBackground:null,end:null,event:null,exponent:ye,externalResourcesRequired:null,fill:null,fillOpacity:ye,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:$i,g2:$i,glyphName:$i,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ye,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ye,horizOriginX:ye,horizOriginY:ye,id:null,ideographic:ye,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ye,k:ye,k1:ye,k2:ye,k3:ye,k4:ye,kernelMatrix:Kn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ye,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ye,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ye,overlineThickness:ye,paintOrder:null,panose1:null,path:null,pathLength:ye,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Mt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ye,pointsAtY:ye,pointsAtZ:ye,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kn,rev:Kn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kn,requiredFeatures:Kn,requiredFonts:Kn,requiredFormats:Kn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ye,specularExponent:ye,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ye,strikethroughThickness:ye,string:null,stroke:null,strokeDashArray:Kn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ye,strokeOpacity:ye,strokeWidth:null,style:null,surfaceScale:ye,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kn,tabIndex:ye,tableValues:null,target:null,targetX:ye,targetY:ye,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ye,underlineThickness:ye,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ye,values:null,vAlphabetic:ye,vMathematical:ye,vectorEffect:null,vHanging:ye,vIdeographic:ye,version:null,vertAdvY:ye,vertOriginX:ye,vertOriginY:ye,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ye,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),w4=/^data[-\w.:]+$/i,Og=/-[a-z]/g,L4=/[A-Z]/g;function M4(e,t){const r=Td(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"&&w4.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(Og,P4);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!Og.test(s)){let c=s.replace(L4,B4);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=Ad}return new l(i,t)}function B4(e){return"-"+e.toLowerCase()}function P4(e){return e.charAt(1).toUpperCase()}const U4=Tg([xg,Ag,Rg,Ng,I4],"html"),kg=Tg([xg,Ag,Rg,Ng,D4],"svg"),Ig={}.hasOwnProperty;function Dg(e,t){const r=t||{};function i(l,...s){let c=i.invalid;const d=i.handlers;if(l&&Ig.call(l,e)){const h=String(l[e]);c=Ig.call(d,h)?d[h]: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 H4={},F4={}.hasOwnProperty,wg=Dg("type",{handlers:{root:Y4,element:$4,text:V4,comment:G4,doctype:q4}});function z4(e,t){const i=(t||H4).space;return wg(e,i==="svg"?kg:U4)}function Y4(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=xd(e.children,r,t),Qi(e,r),r}function j4(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=xd(e.children,r,t),Qi(e,r),r}function q4(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Qi(e,t),t}function V4(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Qi(e,t),t}function G4(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Qi(e,t),t}function $4(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"&&F4.call(e.properties,s)){const h=X4(i,s,e.properties[s]);h&&l.push(h)}}const c=i.space,d={nodeName:e.tagName,tagName:e.tagName,attrs:l,namespaceURI:ti[c],childNodes:[],parentNode:null};return d.childNodes=xd(e.children,d,i),Qi(e,d),e.tagName==="template"&&e.content&&(d.content=j4(e.content,i)),d}function X4(e,t,r){const i=M4(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&i.boolean)return;Array.isArray(r)&&(r=i.commaSeparated?Ym(r):n1(r));const 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=ti[i.space]}return l}function xd(e,t,r){let i=-1;const l=[];if(e)for(;++i<e.length;){const s=wg(e[i],r);s.parentNode=t,l.push(s)}return l}function Qi(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const Q4=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],K4=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ut="�";var k;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(k||(k={}));const Pn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Lg(e){return e>=55296&&e<=57343}function W4(e){return e>=56320&&e<=57343}function Z4(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||K4.has(e)}var ue;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ue||(ue={}));const J4=65536;class ev{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=J4,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(W4(r))return this.pos++,this._addGap(),Z4(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,k.EOF;return this._err(ue.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let i=0;i<t.length;i++)if((this.html.charCodeAt(this.pos+i)|32)!==t.charCodeAt(i))return!1;return!0}peek(t){const r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,k.EOF;const i=this.html.charCodeAt(r);return i===k.CARRIAGE_RETURN?k.LINE_FEED:i}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,k.EOF;let t=this.html.charCodeAt(this.pos);return t===k.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,k.LINE_FEED):t===k.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Lg(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===k.LINE_FEED||t===k.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Mg(t)?this._err(ue.controlCharacterInInputStream):Bg(t)&&this._err(ue.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Je;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Je||(Je={}));function Pg(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}const tv=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୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢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;怳Ādp໩໮uct;戏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ǣጓ\0጖y;䐎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Ā;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀ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Ā;e᜚᜜lƀ;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\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩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ↄⅪ←ٖ↛ǰ↉\0↎proø₞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;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\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\0⹻m;櫳;櫽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))),nv=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function rv(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=nv.get(e))!==null&&t!==void 0?t:e}var sn;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(sn||(sn={}));const av=32;var Ta;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ta||(Ta={}));function _d(e){return e>=sn.ZERO&&e<=sn.NINE}function iv(e){return e>=sn.UPPER_A&&e<=sn.UPPER_F||e>=sn.LOWER_A&&e<=sn.LOWER_F}function uv(e){return e>=sn.UPPER_A&&e<=sn.UPPER_Z||e>=sn.LOWER_A&&e<=sn.LOWER_Z||_d(e)}function lv(e){return e===sn.EQUALS||uv(e)}var cn;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(cn||(cn={}));var Qr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Qr||(Qr={}));class ov{constructor(t,r,i){this.decodeTree=t,this.emitCodePoint=r,this.errors=i,this.state=cn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Qr.Strict}startEntity(t){this.decodeMode=t,this.state=cn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case cn.EntityStart:return t.charCodeAt(r)===sn.NUM?(this.state=cn.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=cn.NamedEntity,this.stateNamedEntity(t,r));case cn.NumericStart:return this.stateNumericStart(t,r);case cn.NumericDecimal:return this.stateNumericDecimal(t,r);case cn.NumericHex:return this.stateNumericHex(t,r);case cn.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|av)===sn.LOWER_X?(this.state=cn.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=cn.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,i,l){if(r!==i){const s=i-r;this.result=this.result*Math.pow(l,s)+Number.parseInt(t.substr(r,s),l),this.consumed+=s}}stateNumericHex(t,r){const i=r;for(;r<t.length;){const l=t.charCodeAt(r);if(_d(l)||iv(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(_d(l))r+=1;else return this.addToNumericResult(t,i,r,10),this.emitNumericEntity(l,2)}return this.addToNumericResult(t,i,r,10),-1}emitNumericEntity(t,r){var i;if(this.consumed<=r)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===sn.SEMI)this.consumed+=1;else if(this.decodeMode===Qr.Strict)return 0;return this.emitCodePoint(rv(this.result),this.consumed),this.errors&&(t!==sn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:i}=this;let l=i[this.treeIndex],s=(l&Ta.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const c=t.charCodeAt(r);if(this.treeIndex=sv(i,l,this.treeIndex+Math.max(1,s),c),this.treeIndex<0)return this.result===0||this.decodeMode===Qr.Attribute&&(s===0||lv(c))?0:this.emitNotTerminatedNamedEntity();if(l=i[this.treeIndex],s=(l&Ta.VALUE_LENGTH)>>14,s!==0){if(c===sn.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Qr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:i}=this,l=(i[r]&Ta.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,l,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,i){const{decodeTree:l}=this;return this.emitCodePoint(r===1?l[t]&~Ta.VALUE_LENGTH:l[t+1],i),r===3&&this.emitCodePoint(l[t+2],i),i}end(){var t;switch(this.state){case cn.NamedEntity:return this.result!==0&&(this.decodeMode!==Qr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case cn.NumericDecimal:return this.emitNumericEntity(0,2);case cn.NumericHex:return this.emitNumericEntity(0,3);case cn.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case cn.EntityStart:return 0}}}function sv(e,t,r,i){const l=(t&Ta.BRANCH_LENGTH)>>7,s=t&Ta.JUMP_TABLE;if(l===0)return s!==0&&i===s?r:-1;if(s){const h=i-s;return h<0||h>=l?-1:e[r+h]-1}let c=r,d=c+l-1;for(;c<=d;){const h=c+d>>>1,p=e[h];if(p<i)c=h+1;else if(p>i)d=h-1;else return e[h+l]}return-1}var me;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(me||(me={}));var ri;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(ri||(ri={}));var cr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(cr||(cr={}));var 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 cv=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 Ki(e){var t;return(t=cv.get(e))!==null&&t!==void 0?t:g.UNKNOWN}const ge=g,fv={[me.HTML]:new Set([ge.ADDRESS,ge.APPLET,ge.AREA,ge.ARTICLE,ge.ASIDE,ge.BASE,ge.BASEFONT,ge.BGSOUND,ge.BLOCKQUOTE,ge.BODY,ge.BR,ge.BUTTON,ge.CAPTION,ge.CENTER,ge.COL,ge.COLGROUP,ge.DD,ge.DETAILS,ge.DIR,ge.DIV,ge.DL,ge.DT,ge.EMBED,ge.FIELDSET,ge.FIGCAPTION,ge.FIGURE,ge.FOOTER,ge.FORM,ge.FRAME,ge.FRAMESET,ge.H1,ge.H2,ge.H3,ge.H4,ge.H5,ge.H6,ge.HEAD,ge.HEADER,ge.HGROUP,ge.HR,ge.HTML,ge.IFRAME,ge.IMG,ge.INPUT,ge.LI,ge.LINK,ge.LISTING,ge.MAIN,ge.MARQUEE,ge.MENU,ge.META,ge.NAV,ge.NOEMBED,ge.NOFRAMES,ge.NOSCRIPT,ge.OBJECT,ge.OL,ge.P,ge.PARAM,ge.PLAINTEXT,ge.PRE,ge.SCRIPT,ge.SECTION,ge.SELECT,ge.SOURCE,ge.STYLE,ge.SUMMARY,ge.TABLE,ge.TBODY,ge.TD,ge.TEMPLATE,ge.TEXTAREA,ge.TFOOT,ge.TH,ge.THEAD,ge.TITLE,ge.TR,ge.TRACK,ge.UL,ge.WBR,ge.XMP]),[me.MATHML]:new Set([ge.MI,ge.MO,ge.MN,ge.MS,ge.MTEXT,ge.ANNOTATION_XML]),[me.SVG]:new Set([ge.TITLE,ge.FOREIGN_OBJECT,ge.DESC]),[me.XLINK]:new Set,[me.XML]:new Set,[me.XMLNS]:new Set},vd=new Set([ge.H1,ge.H2,ge.H3,ge.H4,ge.H5,ge.H6]);Q.STYLE,Q.SCRIPT,Q.XMP,Q.IFRAME,Q.NOEMBED,Q.NOFRAMES,Q.PLAINTEXT;var L;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(L||(L={}));const $t={DATA:L.DATA,RCDATA:L.RCDATA,RAWTEXT:L.RAWTEXT,SCRIPT_DATA:L.SCRIPT_DATA,PLAINTEXT:L.PLAINTEXT,CDATA_SECTION:L.CDATA_SECTION};function dv(e){return e>=k.DIGIT_0&&e<=k.DIGIT_9}function hl(e){return e>=k.LATIN_CAPITAL_A&&e<=k.LATIN_CAPITAL_Z}function hv(e){return e>=k.LATIN_SMALL_A&&e<=k.LATIN_SMALL_Z}function Sa(e){return hv(e)||hl(e)}function Ug(e){return Sa(e)||dv(e)}function ms(e){return e+32}function Hg(e){return e===k.SPACE||e===k.LINE_FEED||e===k.TABULATION||e===k.FORM_FEED}function Fg(e){return Hg(e)||e===k.SOLIDUS||e===k.GREATER_THAN_SIGN}function pv(e){return e===k.NULL?ue.nullCharacterReference:e>1114111?ue.characterReferenceOutsideUnicodeRange:Lg(e)?ue.surrogateCharacterReference:Bg(e)?ue.noncharacterCharacterReference:Mg(e)||e===k.CARRIAGE_RETURN?ue.controlCharacterReference:null}class mv{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=L.DATA,this.returnState=L.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new ev(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new ov(tv,(i,l)=>{this.preprocessor.pos=this.entityStartPos+l-1,this._flushCodePointConsumedAsCharacterReference(i)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ue.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:i=>{this._err(ue.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+i)},validateNumericCharacterReference:i=>{const l=pv(i);l&&this._err(l,1)}}:void 0)}_err(t,r=0){var i,l;(l=(i=this.handler).onParseError)===null||l===void 0||l.call(i,this.preprocessor.getError(t,r))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,r,i){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||i==null||i()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Je.START_TAG,tagName:"",tagID:g.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Je.END_TAG,tagName:"",tagID:g.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Je.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Je.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;const i=this.currentToken;if(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(ue.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Ki(t.tagName),t.type===Je.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ue.endTagWithAttributes),t.selfClosing&&this._err(ue.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Je.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Je.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Je.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Je.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){const r=Hg(t)?Je.WHITESPACE_CHARACTER:t===k.NULL?Je.NULL_CHARACTER:Je.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Je.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=L.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Qr.Attribute:Qr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===L.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===L.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===L.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case L.DATA:{this._stateData(t);break}case L.RCDATA:{this._stateRcdata(t);break}case L.RAWTEXT:{this._stateRawtext(t);break}case L.SCRIPT_DATA:{this._stateScriptData(t);break}case L.PLAINTEXT:{this._statePlaintext(t);break}case L.TAG_OPEN:{this._stateTagOpen(t);break}case L.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case L.TAG_NAME:{this._stateTagName(t);break}case L.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case L.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case L.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case L.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case L.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case L.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case L.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case L.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case L.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case L.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case L.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case L.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case L.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case L.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case L.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case L.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case L.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case L.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case L.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case L.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case L.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case L.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case L.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case L.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case L.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case L.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case L.BOGUS_COMMENT:{this._stateBogusComment(t);break}case L.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case L.COMMENT_START:{this._stateCommentStart(t);break}case L.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case L.COMMENT:{this._stateComment(t);break}case L.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case L.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case L.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case L.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case L.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case L.COMMENT_END:{this._stateCommentEnd(t);break}case L.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case L.DOCTYPE:{this._stateDoctype(t);break}case L.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case L.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case L.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case L.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case L.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case L.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case L.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case L.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case L.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case L.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case L.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case L.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case L.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case L.CDATA_SECTION:{this._stateCdataSection(t);break}case L.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case L.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case L.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case L.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case k.LESS_THAN_SIGN:{this.state=L.TAG_OPEN;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this._emitCodePoint(t);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case k.AMPERSAND:{this._startCharacterReference();break}case k.LESS_THAN_SIGN:{this.state=L.RCDATA_LESS_THAN_SIGN;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ut);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case k.LESS_THAN_SIGN:{this.state=L.RAWTEXT_LESS_THAN_SIGN;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ut);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_LESS_THAN_SIGN;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ut);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case k.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ut);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Sa(t))this._createStartTagToken(),this.state=L.TAG_NAME,this._stateTagName(t);else switch(t){case k.EXCLAMATION_MARK:{this.state=L.MARKUP_DECLARATION_OPEN;break}case k.SOLIDUS:{this.state=L.END_TAG_OPEN;break}case k.QUESTION_MARK:{this._err(ue.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=L.BOGUS_COMMENT,this._stateBogusComment(t);break}case k.EOF:{this._err(ue.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ue.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=L.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Sa(t))this._createEndTagToken(),this.state=L.TAG_NAME,this._stateTagName(t);else switch(t){case k.GREATER_THAN_SIGN:{this._err(ue.missingEndTagName),this.state=L.DATA;break}case k.EOF:{this._err(ue.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ue.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=L.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=L.BEFORE_ATTRIBUTE_NAME;break}case k.SOLIDUS:{this.state=L.SELF_CLOSING_START_TAG;break}case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentTagToken();break}case k.NULL:{this._err(ue.unexpectedNullCharacter),r.tagName+=Ut;break}case k.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(hl(t)?ms(t):t)}}_stateRcdataLessThanSign(t){t===k.SOLIDUS?this.state=L.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=L.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Sa(t)?(this.state=L.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=L.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=L.BEFORE_ATTRIBUTE_NAME,!1;case k.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=L.SELF_CLOSING_START_TAG,!1;case k.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=L.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===k.SOLIDUS?this.state=L.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=L.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Sa(t)?(this.state=L.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=L.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case k.SOLIDUS:{this.state=L.SCRIPT_DATA_END_TAG_OPEN;break}case k.EXCLAMATION_MARK:{this.state=L.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=L.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Sa(t)?(this.state=L.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===k.HYPHEN_MINUS?(this.state=L.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===k.HYPHEN_MINUS?(this.state=L.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=L.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case k.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ut);break}case k.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case k.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_ESCAPED,this._emitChars(Ut);break}case k.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case k.HYPHEN_MINUS:{this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.GREATER_THAN_SIGN:{this.state=L.SCRIPT_DATA,this._emitChars(">");break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_ESCAPED,this._emitChars(Ut);break}case k.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===k.SOLIDUS?this.state=L.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Sa(t)?(this._emitChars("<"),this.state=L.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Sa(t)?(this.state=L.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Pn.SCRIPT,!1)&&Fg(this.preprocessor.peek(Pn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Pn.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=L.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case k.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this._emitChars(Ut);break}case k.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case k.HYPHEN_MINUS:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ut);break}case k.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case k.HYPHEN_MINUS:{this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.GREATER_THAN_SIGN:{this.state=L.SCRIPT_DATA,this._emitChars(">");break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ut);break}case k.EOF:{this._err(ue.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===k.SOLIDUS?(this.state=L.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Pn.SCRIPT,!1)&&Fg(this.preprocessor.peek(Pn.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Pn.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=L.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=L.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.SOLIDUS:case k.GREATER_THAN_SIGN:case k.EOF:{this.state=L.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case k.EQUALS_SIGN:{this._err(ue.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=L.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=L.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:case k.SOLIDUS:case k.GREATER_THAN_SIGN:case k.EOF:{this._leaveAttrName(),this.state=L.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case k.EQUALS_SIGN:{this._leaveAttrName(),this.state=L.BEFORE_ATTRIBUTE_VALUE;break}case k.QUOTATION_MARK:case k.APOSTROPHE:case k.LESS_THAN_SIGN:{this._err(ue.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.name+=Ut;break}default:this.currentAttr.name+=String.fromCodePoint(hl(t)?ms(t):t)}}_stateAfterAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.SOLIDUS:{this.state=L.SELF_CLOSING_START_TAG;break}case k.EQUALS_SIGN:{this.state=L.BEFORE_ATTRIBUTE_VALUE;break}case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=L.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{this.state=L.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this.state=L.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ue.missingAttributeValue),this.state=L.DATA,this.emitCurrentTagToken();break}default:this.state=L.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case k.QUOTATION_MARK:{this.state=L.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.value+=Ut;break}case k.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case k.APOSTROPHE:{this.state=L.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.value+=Ut;break}case k.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this._leaveAttrValue(),this.state=L.BEFORE_ATTRIBUTE_NAME;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=L.DATA,this.emitCurrentTagToken();break}case k.NULL:{this._err(ue.unexpectedNullCharacter),this.currentAttr.value+=Ut;break}case k.QUOTATION_MARK:case k.APOSTROPHE:case k.LESS_THAN_SIGN:case k.EQUALS_SIGN:case k.GRAVE_ACCENT:{this._err(ue.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case k.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this._leaveAttrValue(),this.state=L.BEFORE_ATTRIBUTE_NAME;break}case k.SOLIDUS:{this._leaveAttrValue(),this.state=L.SELF_CLOSING_START_TAG;break}case k.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=L.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this._err(ue.missingWhitespaceBetweenAttributes),this.state=L.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case k.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=L.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(ue.eofInTag),this._emitEOFToken();break}default:this._err(ue.unexpectedSolidusInTag),this.state=L.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentComment(r);break}case k.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case k.NULL:{this._err(ue.unexpectedNullCharacter),r.data+=Ut;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Pn.DASH_DASH,!0)?(this._createCommentToken(Pn.DASH_DASH.length+1),this.state=L.COMMENT_START):this._consumeSequenceIfMatch(Pn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Pn.DOCTYPE.length+1),this.state=L.DOCTYPE):this._consumeSequenceIfMatch(Pn.CDATA_START,!0)?this.inForeignNode?this.state=L.CDATA_SECTION:(this._err(ue.cdataInHtmlContent),this._createCommentToken(Pn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=L.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ue.incorrectlyOpenedComment),this._createCommentToken(2),this.state=L.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case k.HYPHEN_MINUS:{this.state=L.COMMENT_START_DASH;break}case k.GREATER_THAN_SIGN:{this._err(ue.abruptClosingOfEmptyComment),this.state=L.DATA;const r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=L.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const r=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=L.COMMENT_END;break}case k.GREATER_THAN_SIGN:{this._err(ue.abruptClosingOfEmptyComment),this.state=L.DATA,this.emitCurrentComment(r);break}case k.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=L.COMMENT,this._stateComment(t)}}_stateComment(t){const r=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=L.COMMENT_END_DASH;break}case k.LESS_THAN_SIGN:{r.data+="<",this.state=L.COMMENT_LESS_THAN_SIGN;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),r.data+=Ut;break}case k.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case k.EXCLAMATION_MARK:{r.data+="!",this.state=L.COMMENT_LESS_THAN_SIGN_BANG;break}case k.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=L.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===k.HYPHEN_MINUS?this.state=L.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=L.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===k.HYPHEN_MINUS?this.state=L.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=L.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==k.GREATER_THAN_SIGN&&t!==k.EOF&&this._err(ue.nestedComment),this.state=L.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=L.COMMENT_END;break}case k.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=L.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const r=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentComment(r);break}case k.EXCLAMATION_MARK:{this.state=L.COMMENT_END_BANG;break}case k.HYPHEN_MINUS:{r.data+="-";break}case k.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=L.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const r=this.currentToken;switch(t){case k.HYPHEN_MINUS:{r.data+="--!",this.state=L.COMMENT_END_DASH;break}case k.GREATER_THAN_SIGN:{this._err(ue.incorrectlyClosedComment),this.state=L.DATA,this.emitCurrentComment(r);break}case k.EOF:{this._err(ue.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=L.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=L.BEFORE_DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this.state=L.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case k.EOF:{this._err(ue.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingWhitespaceBeforeDoctypeName),this.state=L.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(hl(t))this._createDoctypeToken(String.fromCharCode(ms(t))),this.state=L.DOCTYPE_NAME;else switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.NULL:{this._err(ue.unexpectedNullCharacter),this._createDoctypeToken(Ut),this.state=L.DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this._err(ue.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.EOF:{this._err(ue.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=L.DOCTYPE_NAME}}_stateDoctypeName(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=L.AFTER_DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.NULL:{this._err(ue.unexpectedNullCharacter),r.name+=Ut;break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(hl(t)?ms(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Pn.PUBLIC,!1)?this.state=L.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Pn.SYSTEM,!1)?this.state=L.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ue.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=L.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.QUOTATION_MARK:{this._err(ue.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(ue.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ue.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{r.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{r.publicId="",this.state=L.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ue.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case k.QUOTATION_MARK:{this.state=L.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),r.publicId+=Ut;break}case k.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case k.APOSTROPHE:{this.state=L.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),r.publicId+=Ut;break}case k.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=L.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case k.GREATER_THAN_SIGN:{this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.QUOTATION_MARK:{this._err(ue.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(ue.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.QUOTATION_MARK:{r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=L.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.QUOTATION_MARK:{this._err(ue.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(ue.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ue.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{r.systemId="",this.state=L.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ue.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.DATA,this.emitCurrentDoctype(r);break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case k.QUOTATION_MARK:{this.state=L.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),r.systemId+=Ut;break}case k.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case k.APOSTROPHE:{this.state=L.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.NULL:{this._err(ue.unexpectedNullCharacter),r.systemId+=Ut;break}case k.GREATER_THAN_SIGN:{this._err(ue.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.EOF:{this._err(ue.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(ue.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=L.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=L.DATA;break}case k.NULL:{this._err(ue.unexpectedNullCharacter);break}case k.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case k.RIGHT_SQUARE_BRACKET:{this.state=L.CDATA_SECTION_BRACKET;break}case k.EOF:{this._err(ue.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===k.RIGHT_SQUARE_BRACKET?this.state=L.CDATA_SECTION_END:(this._emitChars("]"),this.state=L.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case k.GREATER_THAN_SIGN:{this.state=L.DATA;break}case k.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=L.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(k.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ug(this.preprocessor.peek(1))?L.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Ug(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===k.SEMICOLON&&this._err(ue.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const zg=new Set([g.DD,g.DT,g.LI,g.OPTGROUP,g.OPTION,g.P,g.RB,g.RP,g.RT,g.RTC]),Yg=new Set([...zg,g.CAPTION,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]),gs=new Set([g.APPLET,g.CAPTION,g.HTML,g.MARQUEE,g.OBJECT,g.TABLE,g.TD,g.TEMPLATE,g.TH]),gv=new Set([...gs,g.OL,g.UL]),bv=new Set([...gs,g.BUTTON]),jg=new Set([g.ANNOTATION_XML,g.MI,g.MN,g.MO,g.MS,g.MTEXT]),qg=new Set([g.DESC,g.FOREIGN_OBJECT,g.TITLE]),Ev=new Set([g.TR,g.TEMPLATE,g.HTML]),yv=new Set([g.TBODY,g.TFOOT,g.THEAD,g.TEMPLATE,g.HTML]),Tv=new Set([g.TABLE,g.TEMPLATE,g.HTML]),Sv=new Set([g.TD,g.TH]);class Cv{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,i){this.treeAdapter=r,this.handler=i,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=g.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===g.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===me.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){const i=this._indexOf(t);this.items[i]=r,i===this.stackTop&&(this.current=r)}insertAfter(t,r,i){const l=this._indexOf(t)+1;this.items.splice(l,0,r),this.tagIDs.splice(l,0,i),this.stackTop++,l===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,l===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==me.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(t){for(;this.stackTop>=t;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){const r=this._indexOf(t);this.shortenToLength(Math.max(r,0))}popUntilPopped(t,r){const i=this._indexOfTagNames(t,r);this.shortenToLength(Math.max(i,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(vd,me.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Sv,me.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let i=this.stackTop;i>=0;i--)if(t.has(this.tagIDs[i])&&this.treeAdapter.getNamespaceURI(this.items[i])===r)return i;return-1}clearBackTo(t,r){const i=this._indexOfTagNames(t,r);this.shortenToLength(i+1)}clearBackToTableContext(){this.clearBackTo(Tv,me.HTML)}clearBackToTableBodyContext(){this.clearBackTo(yv,me.HTML)}clearBackToTableRowContext(){this.clearBackTo(Ev,me.HTML)}remove(t){const r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===g.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===g.HTML}hasInDynamicScope(t,r){for(let i=this.stackTop;i>=0;i--){const l=this.tagIDs[i];switch(this.treeAdapter.getNamespaceURI(this.items[i])){case me.HTML:{if(l===t)return!0;if(r.has(l))return!1;break}case me.SVG:{if(qg.has(l))return!1;break}case me.MATHML:{if(jg.has(l))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,gs)}hasInListItemScope(t){return this.hasInDynamicScope(t,gv)}hasInButtonScope(t){return this.hasInDynamicScope(t,bv)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case me.HTML:{if(vd.has(r))return!0;if(gs.has(r))return!1;break}case me.SVG:{if(qg.has(r))return!1;break}case me.MATHML:{if(jg.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===me.HTML)switch(this.tagIDs[r]){case t:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===me.HTML)switch(this.tagIDs[t]){case g.TBODY:case g.THEAD:case g.TFOOT:return!0;case g.TABLE:case g.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===me.HTML)switch(this.tagIDs[r]){case t:return!0;case g.OPTION:case g.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&zg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Yg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Yg.has(this.currentTagId);)this.pop()}}const Rd=3;var Br;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Br||(Br={}));const Vg={type:Br.Marker};class Av{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 h=this.entries[d];if(h.type===Br.Marker)break;const{element:p}=h;if(this.treeAdapter.getTagName(p)===s&&this.treeAdapter.getNamespaceURI(p)===c){const b=this.treeAdapter.getAttrList(p);b.length===l&&i.push({idx:d,attrs:b})}}return i}_ensureNoahArkCondition(t){if(this.entries.length<Rd)return;const r=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,r);if(i.length<Rd)return;const 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(h=>l.get(h.name)===h.value)&&(s+=1,s>=Rd&&this.entries.splice(d.idx,1))}}insertMarker(){this.entries.unshift(Vg)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:Br.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:Br.Element,element:t,token:r})}removeEntry(t){const r=this.entries.indexOf(t);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){const t=this.entries.indexOf(Vg);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const r=this.entries.find(i=>i.type===Br.Marker||this.treeAdapter.getTagName(i.element)===t);return r&&r.type===Br.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===Br.Element&&r.element===t)}}const Ca={createDocument(){return{nodeName:"#document",mode:cr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const i=e.childNodes.indexOf(r);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,i){const l=e.childNodes.find(s=>s.nodeName==="#documentType");if(l)l.name=t,l.publicId=r,l.systemId=i;else{const s={nodeName:"#documentType",name:t,publicId:r,systemId:i,parentNode:null};Ca.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if(Ca.isTextNode(r)){r.value+=t;return}}Ca.appendChild(e,Ca.createTextNode(t))},insertTextBefore(e,t,r){const i=e.childNodes[e.childNodes.indexOf(r)-1];i&&Ca.isTextNode(i)?i.value+=t:Ca.insertBefore(e,Ca.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(i=>i.name));for(let i=0;i<t.length;i++)r.has(t[i].name)||e.attrs.push(t[i])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Gg="html",xv="about:legacy-compat",_v="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",$g=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],vv=[...$g,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Rv=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Xg=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Nv=[...Xg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Qg(e,t){return t.some(r=>e.startsWith(r))}function Ov(e){return e.name===Gg&&e.publicId===null&&(e.systemId===null||e.systemId===xv)}function kv(e){if(e.name!==Gg)return cr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===_v)return cr.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),Rv.has(r))return cr.QUIRKS;let i=t===null?vv:$g;if(Qg(r,i))return cr.QUIRKS;if(i=t===null?Xg:Nv,Qg(r,i))return cr.LIMITED_QUIRKS}return cr.NO_QUIRKS}const Kg={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Iv="definitionurl",Dv="definitionURL",wv=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])),Lv=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:me.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:me.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:me.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:me.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:me.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:me.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:me.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:me.XML}],["xml:space",{prefix:"xml",name:"space",namespace:me.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:me.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:me.XMLNS}]]),Mv=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])),Bv=new Set([g.B,g.BIG,g.BLOCKQUOTE,g.BODY,g.BR,g.CENTER,g.CODE,g.DD,g.DIV,g.DL,g.DT,g.EM,g.EMBED,g.H1,g.H2,g.H3,g.H4,g.H5,g.H6,g.HEAD,g.HR,g.I,g.IMG,g.LI,g.LISTING,g.MENU,g.META,g.NOBR,g.OL,g.P,g.PRE,g.RUBY,g.S,g.SMALL,g.SPAN,g.STRONG,g.STRIKE,g.SUB,g.SUP,g.TABLE,g.TT,g.U,g.UL,g.VAR]);function Pv(e){const t=e.tagID;return t===g.FONT&&e.attrs.some(({name:i})=>i===ri.COLOR||i===ri.SIZE||i===ri.FACE)||Bv.has(t)}function Wg(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Iv){e.attrs[t].name=Dv;break}}function Zg(e){for(let t=0;t<e.attrs.length;t++){const r=wv.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function Nd(e){for(let t=0;t<e.attrs.length;t++){const r=Lv.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 Uv(e){const t=Mv.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Ki(e.tagName))}function Hv(e,t){return t===me.MATHML&&(e===g.MI||e===g.MO||e===g.MN||e===g.MS||e===g.MTEXT)}function Fv(e,t,r){if(t===me.MATHML&&e===g.ANNOTATION_XML){for(let i=0;i<r.length;i++)if(r[i].name===ri.ENCODING){const l=r[i].value.toLowerCase();return l===Kg.TEXT_HTML||l===Kg.APPLICATION_XML}}return t===me.SVG&&(e===g.FOREIGN_OBJECT||e===g.DESC||e===g.TITLE)}function zv(e,t,r,i){return(!i||i===me.HTML)&&Fv(e,t,r)||(!i||i===me.MATHML)&&Hv(e,t)}const Yv="hidden",jv=8,qv=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 Vv={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Jg=new Set([g.TABLE,g.TBODY,g.TFOOT,g.THEAD,g.TR]),eb={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ca,onParseError:null};class tb{constructor(t,r,i=null,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={...eb,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new mv(this.options,this),this.activeFormattingElements=new Av(this.treeAdapter),this.fragmentContextID=i?Ki(this.treeAdapter.getTagName(i)):g.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new Cv(this.document,this.treeAdapter,this)}static parse(t,r){const i=new this(r);return i.tokenizer.write(t,!0),i.document}static getFragmentParser(t,r){const i={...eb,...r};t??(t=i.treeAdapter.createElement(Q.TEMPLATE,me.HTML,[]));const l=i.treeAdapter.createElement("documentmock",me.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:Vv,c={code:r,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:i?s.startLine:s.endLine,endCol:i?s.startCol:s.endCol,endOffset:i?s.startOffset:s.endOffset};this.onParseError(c)}onItemPush(t,r,i){var l,s;(s=(l=this.treeAdapter).onItemPush)===null||s===void 0||s.call(l,t),i&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var i,l;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(l=(i=this.treeAdapter).onItemPop)===null||l===void 0||l.call(i,t,this.openElements.current),r){let s,c;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,c=this.fragmentContextID):{current:s,currentTagId:c}=this.openElements,this._setContextModes(s,c)}}_setContextModes(t,r){const i=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===me.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&t!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,me.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=U.TEXT}switchToPlaintextParsing(){this.insertionMode=U.TEXT,this.originalInsertionMode=U.IN_BODY,this.tokenizer.state=$t.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===Q.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==me.HTML))switch(this.fragmentContextID){case g.TITLE:case g.TEXTAREA:{this.tokenizer.state=$t.RCDATA;break}case g.STYLE:case g.XMP:case g.IFRAME:case g.NOEMBED:case g.NOFRAMES:case g.NOSCRIPT:{this.tokenizer.state=$t.RAWTEXT;break}case g.SCRIPT:{this.tokenizer.state=$t.SCRIPT_DATA;break}case g.PLAINTEXT:{this.tokenizer.state=$t.PLAINTEXT;break}}}_setDocumentType(t){const r=t.name||"",i=t.publicId||"",l=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,i,l),t.location){const c=this.treeAdapter.getChildNodes(this.document).find(d=>this.treeAdapter.isDocumentTypeNode(d));c&&this.treeAdapter.setNodeSourceCodeLocation(c,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){const i=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,i)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const i=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(i??this.document,t)}}_appendElement(t,r){const i=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(i,t.location)}_insertElement(t,r){const i=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(i,t.location),this.openElements.push(i,t.tagID)}_insertFakeElement(t,r){const i=this.treeAdapter.createElement(t,me.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,r)}_insertTemplate(t){const r=this.treeAdapter.createElement(t.tagName,me.HTML,t.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,i),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(Q.HTML,me.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,g.HTML)}_appendCommentNode(t,r){const i=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,i),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_insertCharacters(t){let r,i;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:i}=this._findFosterParentingLocation(),i?this.treeAdapter.insertTextBefore(r,t.chars,i):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;const l=this.treeAdapter.getChildNodes(r),s=i?l.lastIndexOf(i):l.length,c=l[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(c)){const{endLine:h,endCol:p,endOffset:b}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(c,{endLine:h,endCol:p,endOffset:b})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,t.location)}_adoptNodes(t,r){for(let i=this.treeAdapter.getFirstChild(t);i;i=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(r,i)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){const i=r.location,l=this.treeAdapter.getTagName(t),s=r.type===Je.END_TAG&&l===r.tagName?{endTag:{...i},endLine:i.endLine,endCol:i.endCol,endOffset:i.endOffset}:{endLine:i.startLine,endCol:i.startCol,endOffset:i.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,i;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,i=this.fragmentContextID):{current:r,currentTagId:i}=this.openElements,t.tagID===g.SVG&&this.treeAdapter.getTagName(r)===Q.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===me.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===g.MGLYPH||t.tagID===g.MALIGNMARK)&&i!==void 0&&!this._isIntegrationPoint(i,r,me.HTML)}_processToken(t){switch(t.type){case Je.CHARACTER:{this.onCharacter(t);break}case Je.NULL_CHARACTER:{this.onNullCharacter(t);break}case Je.COMMENT:{this.onComment(t);break}case Je.DOCTYPE:{this.onDoctype(t);break}case Je.START_TAG:{this._processStartTag(t);break}case Je.END_TAG:{this.onEndTag(t);break}case Je.EOF:{this.onEof(t);break}case Je.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,i){const l=this.treeAdapter.getNamespaceURI(r),s=this.treeAdapter.getAttrList(r);return zv(t,l,s,i)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(l=>l.type===Br.Marker||this.openElements.contains(l.element)),i=r===-1?t-1:r-1;for(let l=i;l>=0;l--){const s=this.activeFormattingElements.entries[l];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=U.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(g.P),this.openElements.popUntilTagNamePopped(g.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case g.TR:{this.insertionMode=U.IN_ROW;return}case g.TBODY:case g.THEAD:case g.TFOOT:{this.insertionMode=U.IN_TABLE_BODY;return}case g.CAPTION:{this.insertionMode=U.IN_CAPTION;return}case g.COLGROUP:{this.insertionMode=U.IN_COLUMN_GROUP;return}case g.TABLE:{this.insertionMode=U.IN_TABLE;return}case g.BODY:{this.insertionMode=U.IN_BODY;return}case g.FRAMESET:{this.insertionMode=U.IN_FRAMESET;return}case g.SELECT:{this._resetInsertionModeForSelect(t);return}case g.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case g.HTML:{this.insertionMode=this.headElement?U.AFTER_HEAD:U.BEFORE_HEAD;return}case g.TD:case g.TH:{if(t>0){this.insertionMode=U.IN_CELL;return}break}case g.HEAD:{if(t>0){this.insertionMode=U.IN_HEAD;return}break}}this.insertionMode=U.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){const i=this.openElements.tagIDs[r];if(i===g.TEMPLATE)break;if(i===g.TABLE){this.insertionMode=U.IN_SELECT_IN_TABLE;return}}this.insertionMode=U.IN_SELECT}_isElementCausesFosterParenting(t){return Jg.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case g.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===me.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case g.TABLE:{const i=this.treeAdapter.getParentNode(r);return i?{parent:i,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){const i=this.treeAdapter.getNamespaceURI(t);return fv[i].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){S8(this,t);return}switch(this.insertionMode){case U.INITIAL:{pl(this,t);break}case U.BEFORE_HTML:{ml(this,t);break}case U.BEFORE_HEAD:{gl(this,t);break}case U.IN_HEAD:{bl(this,t);break}case U.IN_HEAD_NO_SCRIPT:{El(this,t);break}case U.AFTER_HEAD:{yl(this,t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:{rb(this,t);break}case U.TEXT:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Dd(this,t);break}case U.IN_TABLE_TEXT:{fb(this,t);break}case U.IN_COLUMN_GROUP:{ys(this,t);break}case U.AFTER_BODY:{Cs(this,t);break}case U.AFTER_AFTER_BODY:{As(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){T8(this,t);return}switch(this.insertionMode){case U.INITIAL:{pl(this,t);break}case U.BEFORE_HTML:{ml(this,t);break}case U.BEFORE_HEAD:{gl(this,t);break}case U.IN_HEAD:{bl(this,t);break}case U.IN_HEAD_NO_SCRIPT:{El(this,t);break}case U.AFTER_HEAD:{yl(this,t);break}case U.TEXT:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Dd(this,t);break}case U.IN_COLUMN_GROUP:{ys(this,t);break}case U.AFTER_BODY:{Cs(this,t);break}case U.AFTER_AFTER_BODY:{As(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){kd(this,t);return}switch(this.insertionMode){case U.INITIAL:case U.BEFORE_HTML:case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_TEMPLATE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{kd(this,t);break}case U.IN_TABLE_TEXT:{Cl(this,t);break}case U.AFTER_BODY:{Zv(this,t);break}case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{Jv(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case U.INITIAL:{e5(this,t);break}case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:{this._err(t,ue.misplacedDoctype);break}case U.IN_TABLE_TEXT:{Cl(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ue.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?C8(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{pl(this,t);break}case U.BEFORE_HTML:{t5(this,t);break}case U.BEFORE_HEAD:{r5(this,t);break}case U.IN_HEAD:{xr(this,t);break}case U.IN_HEAD_NO_SCRIPT:{u5(this,t);break}case U.AFTER_HEAD:{o5(this,t);break}case U.IN_BODY:{xn(this,t);break}case U.IN_TABLE:{Wi(this,t);break}case U.IN_TABLE_TEXT:{Cl(this,t);break}case U.IN_CAPTION:{a8(this,t);break}case U.IN_COLUMN_GROUP:{wd(this,t);break}case U.IN_TABLE_BODY:{Ts(this,t);break}case U.IN_ROW:{Ss(this,t);break}case U.IN_CELL:{l8(this,t);break}case U.IN_SELECT:{pb(this,t);break}case U.IN_SELECT_IN_TABLE:{s8(this,t);break}case U.IN_TEMPLATE:{f8(this,t);break}case U.AFTER_BODY:{h8(this,t);break}case U.IN_FRAMESET:{p8(this,t);break}case U.AFTER_FRAMESET:{g8(this,t);break}case U.AFTER_AFTER_BODY:{E8(this,t);break}case U.AFTER_AFTER_FRAMESET:{y8(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?A8(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{pl(this,t);break}case U.BEFORE_HTML:{n5(this,t);break}case U.BEFORE_HEAD:{a5(this,t);break}case U.IN_HEAD:{i5(this,t);break}case U.IN_HEAD_NO_SCRIPT:{l5(this,t);break}case U.AFTER_HEAD:{s5(this,t);break}case U.IN_BODY:{Es(this,t);break}case U.TEXT:{X5(this,t);break}case U.IN_TABLE:{Tl(this,t);break}case U.IN_TABLE_TEXT:{Cl(this,t);break}case U.IN_CAPTION:{i8(this,t);break}case U.IN_COLUMN_GROUP:{u8(this,t);break}case U.IN_TABLE_BODY:{Ld(this,t);break}case U.IN_ROW:{hb(this,t);break}case U.IN_CELL:{o8(this,t);break}case U.IN_SELECT:{mb(this,t);break}case U.IN_SELECT_IN_TABLE:{c8(this,t);break}case U.IN_TEMPLATE:{d8(this,t);break}case U.AFTER_BODY:{bb(this,t);break}case U.IN_FRAMESET:{m8(this,t);break}case U.AFTER_FRAMESET:{b8(this,t);break}case U.AFTER_AFTER_BODY:{As(this,t);break}}}onEof(t){switch(this.insertionMode){case U.INITIAL:{pl(this,t);break}case U.BEFORE_HTML:{ml(this,t);break}case U.BEFORE_HEAD:{gl(this,t);break}case U.IN_HEAD:{bl(this,t);break}case U.IN_HEAD_NO_SCRIPT:{El(this,t);break}case U.AFTER_HEAD:{yl(this,t);break}case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{sb(this,t);break}case U.TEXT:{Q5(this,t);break}case U.IN_TABLE_TEXT:{Cl(this,t);break}case U.IN_TEMPLATE:{gb(this,t);break}case U.AFTER_BODY:case U.IN_FRAMESET:case U.AFTER_FRAMESET:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{Id(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===k.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.TEXT:case U.IN_COLUMN_GROUP:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{this._insertCharacters(t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:case U.AFTER_BODY:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{nb(this,t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{Dd(this,t);break}case U.IN_TABLE_TEXT:{cb(this,t);break}}}}function Gv(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):ob(e,t),r}function $v(e,t){let r=null,i=e.openElements.stackTop;for(;i>=0;i--){const l=e.openElements.items[i];if(l===t.element)break;e._isSpecialElement(l,e.openElements.tagIDs[i])&&(r=l)}return r||(e.openElements.shortenToLength(Math.max(i,0)),e.activeFormattingElements.removeEntry(t)),r}function Xv(e,t,r){let i=t,l=e.openElements.getCommonAncestor(t);for(let s=0,c=l;c!==r;s++,c=l){l=e.openElements.getCommonAncestor(c);const d=e.activeFormattingElements.getElementEntry(c),h=d&&s>=qv;!d||h?(h&&e.activeFormattingElements.removeEntry(d),e.openElements.remove(c)):(c=Qv(e,d),i===t&&(e.activeFormattingElements.bookmark=d),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(c,i),i=c)}return i}function Qv(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 Kv(e,t,r){const i=e.treeAdapter.getTagName(t),l=Ki(i);if(e._isElementCausesFosterParenting(l))e._fosterParentElement(r);else{const s=e.treeAdapter.getNamespaceURI(t);l===g.TEMPLATE&&s===me.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Wv(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 Od(e,t){for(let r=0;r<jv;r++){const i=Gv(e,t);if(!i)break;const l=$v(e,i);if(!l)break;e.activeFormattingElements.bookmark=i;const s=Xv(e,l,i.element),c=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(s),c&&Kv(e,c,s),Wv(e,l,i)}}function kd(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Zv(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Jv(e,t){e._appendCommentNode(t,e.document)}function Id(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=r;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const i=e.openElements.items[0],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 e5(e,t){e._setDocumentType(t);const r=t.forceQuirks?cr.QUIRKS:kv(t);Ov(t)||e._err(t,ue.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=U.BEFORE_HTML}function pl(e,t){e._err(t,ue.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,cr.QUIRKS),e.insertionMode=U.BEFORE_HTML,e._processToken(t)}function t5(e,t){t.tagID===g.HTML?(e._insertElement(t,me.HTML),e.insertionMode=U.BEFORE_HEAD):ml(e,t)}function n5(e,t){const r=t.tagID;(r===g.HTML||r===g.HEAD||r===g.BODY||r===g.BR)&&ml(e,t)}function ml(e,t){e._insertFakeRootElement(),e.insertionMode=U.BEFORE_HEAD,e._processToken(t)}function r5(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.HEAD:{e._insertElement(t,me.HTML),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD;break}default:gl(e,t)}}function a5(e,t){const r=t.tagID;r===g.HEAD||r===g.BODY||r===g.HTML||r===g.BR?gl(e,t):e._err(t,ue.endTagWithoutMatchingOpenElement)}function gl(e,t){e._insertFakeElement(Q.HEAD,g.HEAD),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD,e._processToken(t)}function xr(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:{e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break}case g.TITLE:{e._switchToTextParsing(t,$t.RCDATA);break}case g.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,$t.RAWTEXT):(e._insertElement(t,me.HTML),e.insertionMode=U.IN_HEAD_NO_SCRIPT);break}case g.NOFRAMES:case g.STYLE:{e._switchToTextParsing(t,$t.RAWTEXT);break}case g.SCRIPT:{e._switchToTextParsing(t,$t.SCRIPT_DATA);break}case g.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=U.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(U.IN_TEMPLATE);break}case g.HEAD:{e._err(t,ue.misplacedStartTagForHeadElement);break}default:bl(e,t)}}function i5(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:{bl(e,t);break}case g.TEMPLATE:{ai(e,t);break}default:e._err(t,ue.endTagWithoutMatchingOpenElement)}}function ai(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==g.TEMPLATE&&e._err(t,ue.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ue.endTagWithoutMatchingOpenElement)}function bl(e,t){e.openElements.pop(),e.insertionMode=U.AFTER_HEAD,e._processToken(t)}function u5(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.BASEFONT:case g.BGSOUND:case g.HEAD:case g.LINK:case g.META:case g.NOFRAMES:case g.STYLE:{xr(e,t);break}case g.NOSCRIPT:{e._err(t,ue.nestedNoscriptInHead);break}default:El(e,t)}}function l5(e,t){switch(t.tagID){case g.NOSCRIPT:{e.openElements.pop(),e.insertionMode=U.IN_HEAD;break}case g.BR:{El(e,t);break}default:e._err(t,ue.endTagWithoutMatchingOpenElement)}}function El(e,t){const r=t.type===Je.EOF?ue.openElementsLeftAfterEof:ue.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=U.IN_HEAD,e._processToken(t)}function o5(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.BODY:{e._insertElement(t,me.HTML),e.framesetOk=!1,e.insertionMode=U.IN_BODY;break}case g.FRAMESET:{e._insertElement(t,me.HTML),e.insertionMode=U.IN_FRAMESET;break}case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{e._err(t,ue.abandonedHeadElementChild),e.openElements.push(e.headElement,g.HEAD),xr(e,t),e.openElements.remove(e.headElement);break}case g.HEAD:{e._err(t,ue.misplacedStartTagForHeadElement);break}default:yl(e,t)}}function s5(e,t){switch(t.tagID){case g.BODY:case g.HTML:case g.BR:{yl(e,t);break}case g.TEMPLATE:{ai(e,t);break}default:e._err(t,ue.endTagWithoutMatchingOpenElement)}}function yl(e,t){e._insertFakeElement(Q.BODY,g.BODY),e.insertionMode=U.IN_BODY,bs(e,t)}function bs(e,t){switch(t.type){case Je.CHARACTER:{rb(e,t);break}case Je.WHITESPACE_CHARACTER:{nb(e,t);break}case Je.COMMENT:{kd(e,t);break}case Je.START_TAG:{xn(e,t);break}case Je.END_TAG:{Es(e,t);break}case Je.EOF:{sb(e,t);break}}}function nb(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function rb(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function c5(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function f5(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function d5(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,me.HTML),e.insertionMode=U.IN_FRAMESET)}function h5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,me.HTML)}function p5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&vd.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,me.HTML)}function m5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,me.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function g5(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,me.HTML),r||(e.formElement=e.openElements.current))}function b5(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,me.HTML)}function E5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,me.HTML),e.tokenizer.state=$t.PLAINTEXT}function y5(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.framesetOk=!1}function T5(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(Q.A);r&&(Od(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function S5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function C5(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(Od(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,me.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function A5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function x5(e,t){e.treeAdapter.getDocumentMode(e.document)!==cr.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,me.HTML),e.framesetOk=!1,e.insertionMode=U.IN_TABLE}function ab(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,me.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ib(e){const t=Pg(e,ri.TYPE);return t!=null&&t.toLowerCase()===Yv}function _5(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,me.HTML),ib(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function v5(e,t){e._appendElement(t,me.HTML),t.ackSelfClosing=!0}function R5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,me.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function N5(e,t){t.tagName=Q.IMG,t.tagID=g.IMG,ab(e,t)}function O5(e,t){e._insertElement(t,me.HTML),e.skipNextNewLine=!0,e.tokenizer.state=$t.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=U.TEXT}function k5(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,$t.RAWTEXT)}function I5(e,t){e.framesetOk=!1,e._switchToTextParsing(t,$t.RAWTEXT)}function ub(e,t){e._switchToTextParsing(t,$t.RAWTEXT)}function D5(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===U.IN_TABLE||e.insertionMode===U.IN_CAPTION||e.insertionMode===U.IN_TABLE_BODY||e.insertionMode===U.IN_ROW||e.insertionMode===U.IN_CELL?U.IN_SELECT_IN_TABLE:U.IN_SELECT}function w5(e,t){e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML)}function L5(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,me.HTML)}function M5(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,me.HTML)}function B5(e,t){e._reconstructActiveFormattingElements(),Wg(t),Nd(t),t.selfClosing?e._appendElement(t,me.MATHML):e._insertElement(t,me.MATHML),t.ackSelfClosing=!0}function P5(e,t){e._reconstructActiveFormattingElements(),Zg(t),Nd(t),t.selfClosing?e._appendElement(t,me.SVG):e._insertElement(t,me.SVG),t.ackSelfClosing=!0}function lb(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,me.HTML)}function xn(e,t){switch(t.tagID){case g.I:case g.S:case g.B:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.SMALL:case g.STRIKE:case g.STRONG:{S5(e,t);break}case g.A:{T5(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{p5(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:{h5(e,t);break}case g.LI:case g.DD:case g.DT:{b5(e,t);break}case g.BR:case g.IMG:case g.WBR:case g.AREA:case g.EMBED:case g.KEYGEN:{ab(e,t);break}case g.HR:{R5(e,t);break}case g.RB:case g.RTC:{L5(e,t);break}case g.RT:case g.RP:{M5(e,t);break}case g.PRE:case g.LISTING:{m5(e,t);break}case g.XMP:{k5(e,t);break}case g.SVG:{P5(e,t);break}case g.HTML:{c5(e,t);break}case g.BASE:case g.LINK:case g.META:case g.STYLE:case g.TITLE:case g.SCRIPT:case g.BGSOUND:case g.BASEFONT:case g.TEMPLATE:{xr(e,t);break}case g.BODY:{f5(e,t);break}case g.FORM:{g5(e,t);break}case g.NOBR:{C5(e,t);break}case g.MATH:{B5(e,t);break}case g.TABLE:{x5(e,t);break}case g.INPUT:{_5(e,t);break}case g.PARAM:case g.TRACK:case g.SOURCE:{v5(e,t);break}case g.IMAGE:{N5(e,t);break}case g.BUTTON:{y5(e,t);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{A5(e,t);break}case g.IFRAME:{I5(e,t);break}case g.SELECT:{D5(e,t);break}case g.OPTION:case g.OPTGROUP:{w5(e,t);break}case g.NOEMBED:case g.NOFRAMES:{ub(e,t);break}case g.FRAMESET:{d5(e,t);break}case g.TEXTAREA:{O5(e,t);break}case g.NOSCRIPT:{e.options.scriptingEnabled?ub(e,t):lb(e,t);break}case g.PLAINTEXT:{E5(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:lb(e,t)}}function U5(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 H5(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=U.AFTER_BODY,bb(e,t))}function F5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function z5(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):r&&e.openElements.remove(r))}function Y5(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(Q.P,g.P),e._closePElement()}function j5(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}function q5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function V5(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function G5(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function $5(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Q.BR,g.BR),e.openElements.pop(),e.framesetOk=!1}function ob(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 Es(e,t){switch(t.tagID){case g.A:case g.B:case g.I:case g.S:case g.U:case g.EM:case g.TT:case g.BIG:case g.CODE:case g.FONT:case g.NOBR:case g.SMALL:case g.STRIKE:case g.STRONG:{Od(e,t);break}case g.P:{Y5(e);break}case g.DL:case g.UL:case g.OL:case g.DIR:case g.DIV:case g.NAV:case g.PRE:case g.MAIN:case g.MENU:case g.ASIDE:case g.BUTTON:case g.CENTER:case g.FIGURE:case g.FOOTER:case g.HEADER:case g.HGROUP:case g.DIALOG:case g.ADDRESS:case g.ARTICLE:case g.DETAILS:case g.SEARCH:case g.SECTION:case g.SUMMARY:case g.LISTING:case g.FIELDSET:case g.BLOCKQUOTE:case g.FIGCAPTION:{F5(e,t);break}case g.LI:{j5(e);break}case g.DD:case g.DT:{q5(e,t);break}case g.H1:case g.H2:case g.H3:case g.H4:case g.H5:case g.H6:{V5(e);break}case g.BR:{$5(e);break}case g.BODY:{U5(e,t);break}case g.HTML:{H5(e,t);break}case g.FORM:{z5(e);break}case g.APPLET:case g.OBJECT:case g.MARQUEE:{G5(e,t);break}case g.TEMPLATE:{ai(e,t);break}default:ob(e,t)}}function sb(e,t){e.tmplInsertionModeStack.length>0?gb(e,t):Id(e,t)}function X5(e,t){var r;t.tagID===g.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Q5(e,t){e._err(t,ue.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Dd(e,t){if(e.openElements.currentTagId!==void 0&&Jg.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=U.IN_TABLE_TEXT,t.type){case Je.CHARACTER:{fb(e,t);break}case Je.WHITESPACE_CHARACTER:{cb(e,t);break}}else Sl(e,t)}function K5(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,me.HTML),e.insertionMode=U.IN_CAPTION}function W5(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,me.HTML),e.insertionMode=U.IN_COLUMN_GROUP}function Z5(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Q.COLGROUP,g.COLGROUP),e.insertionMode=U.IN_COLUMN_GROUP,wd(e,t)}function J5(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,me.HTML),e.insertionMode=U.IN_TABLE_BODY}function e8(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Q.TBODY,g.TBODY),e.insertionMode=U.IN_TABLE_BODY,Ts(e,t)}function t8(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function n8(e,t){ib(t)?e._appendElement(t,me.HTML):Sl(e,t),t.ackSelfClosing=!0}function r8(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,me.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Wi(e,t){switch(t.tagID){case g.TD:case g.TH:case g.TR:{e8(e,t);break}case g.STYLE:case g.SCRIPT:case g.TEMPLATE:{xr(e,t);break}case g.COL:{Z5(e,t);break}case g.FORM:{r8(e,t);break}case g.TABLE:{t8(e,t);break}case g.TBODY:case g.TFOOT:case g.THEAD:{J5(e,t);break}case g.INPUT:{n8(e,t);break}case g.CAPTION:{K5(e,t);break}case g.COLGROUP:{W5(e,t);break}default:Sl(e,t)}}function Tl(e,t){switch(t.tagID){case g.TABLE:{e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode());break}case g.TEMPLATE:{ai(e,t);break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:Sl(e,t)}}function Sl(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,bs(e,t),e.fosterParentingEnabled=r}function cb(e,t){e.pendingCharacterTokens.push(t)}function fb(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Cl(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Sl(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const db=new Set([g.CAPTION,g.COL,g.COLGROUP,g.TBODY,g.TD,g.TFOOT,g.TH,g.THEAD,g.TR]);function a8(e,t){const r=t.tagID;db.has(r)?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,Wi(e,t)):xn(e,t)}function i8(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&&Tl(e,t));break}case g.BODY:case g.COL:case g.COLGROUP:case g.HTML:case g.TBODY:case g.TD:case g.TFOOT:case g.TH:case g.THEAD:case g.TR:break;default:Es(e,t)}}function wd(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.COL:{e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break}case g.TEMPLATE:{xr(e,t);break}default:ys(e,t)}}function u8(e,t){switch(t.tagID){case g.COLGROUP:{e.openElements.currentTagId===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case g.TEMPLATE:{ai(e,t);break}case g.COL:break;default:ys(e,t)}}function ys(e,t){e.openElements.currentTagId===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE,e._processToken(t))}function Ts(e,t){switch(t.tagID){case g.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,me.HTML),e.insertionMode=U.IN_ROW;break}case g.TH:case g.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Q.TR,g.TR),e.insertionMode=U.IN_ROW,Ss(e,t);break}case g.CAPTION:case g.COL:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,Wi(e,t));break}default:Wi(e,t)}}function Ld(e,t){const r=t.tagID;switch(t.tagID){case g.TBODY:case g.TFOOT:case g.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case g.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,Tl(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:Tl(e,t)}}function Ss(e,t){switch(t.tagID){case g.TH:case g.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,me.HTML),e.insertionMode=U.IN_CELL,e.activeFormattingElements.insertMarker();break}case g.CAPTION:case g.COL:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:case g.TR:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Ts(e,t));break}default:Wi(e,t)}}function hb(e,t){switch(t.tagID){case g.TR:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY);break}case g.TABLE:{e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Ld(e,t));break}case g.TBODY:case g.TFOOT:case g.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(g.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Ld(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:case g.TD:case g.TH:break;default:Tl(e,t)}}function l8(e,t){const r=t.tagID;db.has(r)?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),Ss(e,t)):xn(e,t)}function o8(e,t){const r=t.tagID;switch(r){case g.TD:case g.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_ROW);break}case g.TABLE:case g.TBODY:case g.TFOOT:case g.THEAD:case g.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),hb(e,t));break}case g.BODY:case g.CAPTION:case g.COL:case g.COLGROUP:case g.HTML:break;default:Es(e,t)}}function pb(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.OPTION:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e._insertElement(t,me.HTML);break}case g.OPTGROUP:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop(),e._insertElement(t,me.HTML);break}case g.HR:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop(),e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break}case g.INPUT:case g.KEYGEN:case g.TEXTAREA:case g.SELECT:{e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),t.tagID!==g.SELECT&&e._processStartTag(t));break}case g.SCRIPT:case g.TEMPLATE:{xr(e,t);break}}}function mb(e,t){switch(t.tagID){case g.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===g.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===g.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===g.OPTGROUP&&e.openElements.pop();break}case g.OPTION:{e.openElements.currentTagId===g.OPTION&&e.openElements.pop();break}case g.SELECT:{e.openElements.hasInSelectScope(g.SELECT)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode());break}case g.TEMPLATE:{ai(e,t);break}}}function s8(e,t){const r=t.tagID;r===g.CAPTION||r===g.TABLE||r===g.TBODY||r===g.TFOOT||r===g.THEAD||r===g.TR||r===g.TD||r===g.TH?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processStartTag(t)):pb(e,t)}function c8(e,t){const r=t.tagID;r===g.CAPTION||r===g.TABLE||r===g.TBODY||r===g.TFOOT||r===g.THEAD||r===g.TR||r===g.TD||r===g.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e.onEndTag(t)):mb(e,t)}function f8(e,t){switch(t.tagID){case g.BASE:case g.BASEFONT:case g.BGSOUND:case g.LINK:case g.META:case g.NOFRAMES:case g.SCRIPT:case g.STYLE:case g.TEMPLATE:case g.TITLE:{xr(e,t);break}case g.CAPTION:case g.COLGROUP:case g.TBODY:case g.TFOOT:case g.THEAD:{e.tmplInsertionModeStack[0]=U.IN_TABLE,e.insertionMode=U.IN_TABLE,Wi(e,t);break}case g.COL:{e.tmplInsertionModeStack[0]=U.IN_COLUMN_GROUP,e.insertionMode=U.IN_COLUMN_GROUP,wd(e,t);break}case g.TR:{e.tmplInsertionModeStack[0]=U.IN_TABLE_BODY,e.insertionMode=U.IN_TABLE_BODY,Ts(e,t);break}case g.TD:case g.TH:{e.tmplInsertionModeStack[0]=U.IN_ROW,e.insertionMode=U.IN_ROW,Ss(e,t);break}default:e.tmplInsertionModeStack[0]=U.IN_BODY,e.insertionMode=U.IN_BODY,xn(e,t)}}function d8(e,t){t.tagID===g.TEMPLATE&&ai(e,t)}function gb(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Id(e,t)}function h8(e,t){t.tagID===g.HTML?xn(e,t):Cs(e,t)}function bb(e,t){var r;if(t.tagID===g.HTML){if(e.fragmentContext||(e.insertionMode=U.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===g.HTML){e._setEndLocation(e.openElements.items[0],t);const i=e.openElements.items[1];i&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(i))===null||r===void 0)&&r.endTag)&&e._setEndLocation(i,t)}}else Cs(e,t)}function Cs(e,t){e.insertionMode=U.IN_BODY,bs(e,t)}function p8(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.FRAMESET:{e._insertElement(t,me.HTML);break}case g.FRAME:{e._appendElement(t,me.HTML),t.ackSelfClosing=!0;break}case g.NOFRAMES:{xr(e,t);break}}}function m8(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 g8(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.NOFRAMES:{xr(e,t);break}}}function b8(e,t){t.tagID===g.HTML&&(e.insertionMode=U.AFTER_AFTER_FRAMESET)}function E8(e,t){t.tagID===g.HTML?xn(e,t):As(e,t)}function As(e,t){e.insertionMode=U.IN_BODY,bs(e,t)}function y8(e,t){switch(t.tagID){case g.HTML:{xn(e,t);break}case g.NOFRAMES:{xr(e,t);break}}}function T8(e,t){t.chars=Ut,e._insertCharacters(t)}function S8(e,t){e._insertCharacters(t),e.framesetOk=!1}function Eb(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==me.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function C8(e,t){if(Pv(t))Eb(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(r);i===me.MATHML?Wg(t):i===me.SVG&&(Uv(t),Zg(t)),Nd(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function A8(e,t){if(t.tagID===g.P||t.tagID===g.BR){Eb(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(i)===me.HTML){e._endTagOutsideForeignContent(t);break}const 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 x8=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,_8=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),yb={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Tb(e,t){const r=M8(e),i=Dg("type",{handlers:{root:v8,element:R8,text:N8,comment:Cb,doctype:O8,raw:I8},unknown:D8}),l={parser:r?new tb(yb):tb.getFragmentParser(void 0,yb),handle(d){i(d,l)},stitches:!1,options:t||{}};i(e,l),Zi(l,Dr());const s=r?l.parser.document:l.parser.getFragment(),c=v4(s,{file:l.options.file});return l.stitches&&id(c,"comment",function(d,h,p){const b=d;if(b.value.stitch&&p&&h!==void 0){const E=p.children;return E[h]=b.value.stitch,h}}),c.type==="root"&&c.children.length===1&&c.children[0].type===e.type?c.children[0]:c}function Sb(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function v8(e,t){Sb(e.children,t)}function R8(e,t){w8(e,t),Sb(e.children,t),L8(e,t)}function N8(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:Je.CHARACTER,chars:e.value,location:Al(e)};Zi(t,Dr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function O8(e,t){const r={type:Je.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Al(e)};Zi(t,Dr(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function k8(e,t){t.stitches=!0;const r=B8(e);if("children"in e&&"children"in r){const i=Tb({type:"root",children:e.children},t.options);r.children=i.children}Cb({type:"comment",value:{stitch:r}},t)}function Cb(e,t){const r=e.value,i={type:Je.COMMENT,data:r,location:Al(e)};Zi(t,Dr(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function I8(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Ab(t,Dr(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(x8,"&lt;$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 D8(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))k8(r,t);else{let i="";throw _8.has(r.type)&&(i=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+i)}}function Zi(e,t){Ab(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=$t.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Ab(e,t){if(t&&t.offset!==void 0){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function w8(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===$t.PLAINTEXT)return;Zi(t,Dr(e));const i=t.parser.openElements.current;let l="namespaceURI"in i?i.namespaceURI:ti.html;l===ti.html&&r==="svg"&&(l=ti.svg);const s=z4({...e,children:[]},{space:l===ti.svg?"svg":"html"}),c={type:Je.START_TAG,tagName:r,tagID:Ki(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:Al(e)};t.parser.currentToken=c,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function L8(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Q4.includes(r)||t.parser.tokenizer.state===$t.PLAINTEXT)return;Zi(t,is(e));const i={type:Je.END_TAG,tagName:r,tagID:Ki(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Al(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===$t.RCDATA||t.parser.tokenizer.state===$t.RAWTEXT||t.parser.tokenizer.state===$t.SCRIPT_DATA)&&(t.parser.tokenizer.state=$t.DATA)}function M8(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Al(e){const t=Dr(e)||{line:void 0,column:void 0,offset:void 0},r=is(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function B8(e){return"children"in e?Vi({...e,children:[]}):Vi(e)}function P8(e){return function(t,r){return Tb(t,{...e,file:r})}}const U8=({color:e="currentColor",size:t=24,className:r,...i})=>kt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},kt.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"})),H8=({color:e="currentColor",size:t=24,className:r,...i})=>kt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},kt.createElement("path",{d:"M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z"})),xb=({color:e="currentColor",size:t=24,className:r,...i})=>kt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},kt.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"})),_b=({color:e="currentColor",size:t=24,className:r,...i})=>kt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},kt.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"})),F8=({color:e="currentColor",size:t=24,className:r,...i})=>kt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},kt.createElement("path",{d:"M6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z"})),Md=({color:e="currentColor",size:t=24,className:r,...i})=>kt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:t,height:t,fill:e,...i,className:"remixicon "+(r||"")},kt.createElement("path",{d:"M17.0007 1.20825 18.3195 3.68108 20.7923 4.99992 18.3195 6.31876 17.0007 8.79159 15.6818 6.31876 13.209 4.99992 15.6818 3.68108 17.0007 1.20825ZM10.6673 9.33325 15.6673 11.9999 10.6673 14.6666 8.00065 19.6666 5.33398 14.6666.333984 11.9999 5.33398 9.33325 8.00065 4.33325 10.6673 9.33325ZM11.4173 11.9999 9.18905 10.8115 8.00065 8.58325 6.81224 10.8115 4.58398 11.9999 6.81224 13.1883 8.00065 15.4166 9.18905 13.1883 11.4173 11.9999ZM19.6673 16.3333 18.0007 13.2083 16.334 16.3333 13.209 17.9999 16.334 19.6666 18.0007 22.7916 19.6673 19.6666 22.7923 17.9999 19.6673 16.3333Z"}));function vb(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var 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 tt(){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 On(e,t,r=void 0){const i={};for(const l in e){const s=e[l];let c="",d=!0;for(let h=0;h<s.length;h+=1){const p=s[h];p&&(c+=(d===!0?"":" ")+t(p),d=!1,r&&r[p]&&(c+=" "+r[p]))}i[l]=c}return i}const Rb=A.createContext();function z8({value:e,...t}){return pe.jsx(Rb.Provider,{value:e??!0,...t})}const Bd=()=>A.useContext(Rb)??!1;var Pd={exports:{}},vt={};/**
71
71
  * @license React
72
72
  * react-is.production.js
73
73
  *
@@ -75,19 +75,19 @@ Error generating stack: `+u.message+`
75
75
  *
76
76
  * This source code is licensed under the MIT license found in the
77
77
  * LICENSE file in the root directory of this source tree.
78
- */var NE;function jR(){if(NE)return Rt;NE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),T=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function v(x){if(typeof x=="object"&&x!==null){var B=x.$$typeof;switch(B){case e:switch(x=x.type,x){case r:case o:case i:case h:case p:case T:return x;default:switch(x=x&&x.$$typeof,x){case c:case d:case b:case E:return x;case s:return x;default:return B}}case t:return B}}}return Rt.ContextConsumer=s,Rt.ContextProvider=c,Rt.Element=e,Rt.ForwardRef=d,Rt.Fragment=r,Rt.Lazy=b,Rt.Memo=E,Rt.Portal=t,Rt.Profiler=o,Rt.StrictMode=i,Rt.Suspense=h,Rt.SuspenseList=p,Rt.isContextConsumer=function(x){return v(x)===s},Rt.isContextProvider=function(x){return v(x)===c},Rt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Rt.isForwardRef=function(x){return v(x)===d},Rt.isFragment=function(x){return v(x)===r},Rt.isLazy=function(x){return v(x)===b},Rt.isMemo=function(x){return v(x)===E},Rt.isPortal=function(x){return v(x)===t},Rt.isProfiler=function(x){return v(x)===o},Rt.isStrictMode=function(x){return v(x)===i},Rt.isSuspense=function(x){return v(x)===h},Rt.isSuspenseList=function(x){return v(x)===p},Rt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===o||x===i||x===h||x===p||typeof x=="object"&&x!==null&&(x.$$typeof===b||x.$$typeof===E||x.$$typeof===c||x.$$typeof===s||x.$$typeof===d||x.$$typeof===y||x.getModuleId!==void 0)},Rt.typeOf=v,Rt}var OE;function qR(){return OE||(OE=1,Pd.exports=jR()),Pd.exports}var kE=qR();function Pr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function IE(e){if(A.isValidElement(e)||kE.isValidElementType(e)||!Pr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=IE(e[r])}),t}function Un(e,t,r={clone:!0}){const i=r.clone?{...e}:e;return Pr(e)&&Pr(t)&&Object.keys(t).forEach(o=>{A.isValidElement(t[o])||kE.isValidElementType(t[o])?i[o]=t[o]:Pr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Pr(e[o])?i[o]=Un(e[o],t[o],r):r.clone?i[o]=Pr(t[o])?IE(t[o]):t[o]:i[o]=t[o]}),i}function Aa(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>r.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${r} for the full message.`}function st(e){if(typeof e!="string")throw new Error(Aa(7));return e.charAt(0).toUpperCase()+e.slice(1)}function DE(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function xs(e,t=166){let r;function i(...o){const s=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(s,t)}return i.clear=()=>{clearTimeout(r)},i}function xa(e){return e&&e.ownerDocument||document}function Ur(e){return xa(e).defaultView||window}function wE(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const _a=typeof window<"u"?A.useLayoutEffect:A.useEffect;let LE=0;function VR(e){const[t,r]=A.useState(e),i=e||t;return A.useEffect(()=>{t==null&&(LE+=1,r(`mui-${LE}`))},[t]),i}const ME={...Ef}.useId;function GR(e){if(ME!==void 0){const t=ME();return e??t}return VR(e)}function Hr(e){const t=A.useRef(e);return _a(()=>{t.current=e}),A.useRef((...r)=>(0,t.current)(...r)).current}function _r(...e){const t=A.useRef(void 0),r=A.useCallback(i=>{const o=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const c=s,d=c(i);return typeof d=="function"?d:()=>{c(null)}}return s.current=i,()=>{s.current=null}});return()=>{o.forEach(s=>s==null?void 0:s())}},e);return A.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=r(i))},e)}const BE={};function PE(e,t){const r=A.useRef(BE);return r.current===BE&&(r.current=e(t)),r}const $R=[];function XR(e){A.useEffect(e,$R)}class Ud{constructor(){Xl(this,"currentId",null);Xl(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Xl(this,"disposeEffect",()=>this.clear)}static create(){return new Ud}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function QR(){const e=PE(Ud.create).current;return XR(e.disposeEffect),e}function UE(e){try{return e.matches(":focus-visible")}catch{}return!1}function KR(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function _s(e,t){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const o=i;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const s=e[o],c=t[o];if(!c)r[o]=s||{};else if(!s)r[o]=c;else{r[o]={...c};for(const d in s)if(Object.prototype.hasOwnProperty.call(s,d)){const h=d;r[o][h]=_s(s[h],c[h])}}}else r[o]===void 0&&(r[o]=e[o])}return r}const HE=e=>e,WR=(()=>{let e=HE;return{configure(t){e=t},generate(t){return e(t)},reset(){e=HE}}})(),ZR={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function _n(e,t,r="Mui"){const i=ZR[t];return i?`${r}-${i}`:`${WR.generate(e)}-${t}`}function vn(e,t,r="Mui"){const i={};return t.forEach(o=>{i[o]=_n(e,o,r)}),i}function JR(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function e8(e){return typeof e=="string"}function FE(e,t,r){return e===void 0||e8(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function zE(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 YE(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 jE(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:i,externalForwardedProps:o,className:s}=e;if(!t){const y=tt(r==null?void 0:r.className,s,o==null?void 0:o.className,i==null?void 0:i.className),v={...r==null?void 0:r.style,...o==null?void 0:o.style,...i==null?void 0:i.style},x={...r,...o,...i};return y.length>0&&(x.className=y),Object.keys(v).length>0&&(x.style=v),{props:x,internalRef:void 0}}const c=zE({...o,...i}),d=YE(i),h=YE(o),p=t(c),E=tt(p==null?void 0:p.className,r==null?void 0:r.className,s,o==null?void 0:o.className,i==null?void 0:i.className),b={...p==null?void 0:p.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...i==null?void 0:i.style},T={...p,...r,...h,...d};return E.length>0&&(T.className=E),Object.keys(b).length>0&&(T.style=b),{props:T,internalRef:p.ref}}function qE(e,t,r){return typeof e=="function"?e(t,r):e}function vs(e){var b;const{elementType:t,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1,...s}=e,c=o?{}:qE(r,i),{props:d,internalRef:h}=jE({...s,externalSlotProps:c}),p=_r(h,c==null?void 0:c.ref,(b=e.additionalProps)==null?void 0:b.ref);return FE(t,{...d,ref:p},i)}function Rs(e){var t;return parseInt(A.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function t8(e){const t=xa(e);return t.body===e?Ur(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function _o(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function VE(e){return parseInt(Ur(e).getComputedStyle(e).paddingRight,10)||0}function n8(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 GE(e,t,r,i,o){const s=[t,r,...i];[].forEach.call(e.children,c=>{const d=!s.includes(c),h=!n8(c);d&&h&&_o(c,o)})}function Hd(e,t){let r=-1;return e.some((i,o)=>t(i)?(r=o,!0):!1),r}function r8(e,t){const r=[],i=e.container;if(!t.disableScrollLock){if(t8(i)){const c=KR(Ur(i));r.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${VE(i)+c}px`;const d=xa(i).querySelectorAll(".mui-fixed");[].forEach.call(d,h=>{r.push({value:h.style.paddingRight,property:"padding-right",el:h}),h.style.paddingRight=`${VE(h)+c}px`})}let s;if(i.parentNode instanceof DocumentFragment)s=xa(i).body;else{const c=i.parentElement,d=Ur(i);s=(c==null?void 0:c.nodeName)==="HTML"&&d.getComputedStyle(c).overflowY==="scroll"?c:i}r.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{r.forEach(({value:s,el:c,property:d})=>{s?c.style.setProperty(d,s):c.style.removeProperty(d)})}}function a8(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class i8{constructor(){this.modals=[],this.containers=[]}add(t,r){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&_o(t.modalRef,!1);const o=a8(r);GE(r,t.mount,t.modalRef,o,!0);const s=Hd(this.containers,c=>c.container===r);return s!==-1?(this.containers[s].modals.push(t),i):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),i)}mount(t,r){const i=Hd(this.containers,s=>s.modals.includes(t)),o=this.containers[i];o.restore||(o.restore=r8(o,r))}remove(t,r=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const o=Hd(this.containers,c=>c.modals.includes(t)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(i,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&_o(t.modalRef,r),GE(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const c=s.modals[s.modals.length-1];c.modalRef&&_o(c.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const u8=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function o8(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 l8(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 s8(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||l8(e))}function c8(e){const t=[],r=[];return Array.from(e.querySelectorAll(u8)).forEach((i,o)=>{const s=o8(i);s===-1||!s8(i)||(s===0?t.push(i):r.push({documentOrder:o,tabIndex:s,node:i}))}),r.sort((i,o)=>i.tabIndex===o.tabIndex?i.documentOrder-o.documentOrder:i.tabIndex-o.tabIndex).map(i=>i.node).concat(t)}function f8(){return!0}function d8(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:o=!1,getTabbable:s=c8,isEnabled:c=f8,open:d}=e,h=A.useRef(!1),p=A.useRef(null),E=A.useRef(null),b=A.useRef(null),T=A.useRef(null),y=A.useRef(!1),v=A.useRef(null),x=_r(Rs(t),v),B=A.useRef(null);A.useEffect(()=>{!d||!v.current||(y.current=!r)},[r,d]),A.useEffect(()=>{if(!d||!v.current)return;const M=xa(v.current);return v.current.contains(M.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),y.current&&v.current.focus()),()=>{o||(b.current&&b.current.focus&&(h.current=!0,b.current.focus()),b.current=null)}},[d]),A.useEffect(()=>{if(!d||!v.current)return;const M=xa(v.current),w=z=>{B.current=z,!(i||!c()||z.key!=="Tab")&&M.activeElement===v.current&&z.shiftKey&&(h.current=!0,E.current&&E.current.focus())},D=()=>{var j,_;const z=v.current;if(z===null)return;if(!M.hasFocus()||!c()||h.current){h.current=!1;return}if(z.contains(M.activeElement)||i&&M.activeElement!==p.current&&M.activeElement!==E.current)return;if(M.activeElement!==T.current)T.current=null;else if(T.current!==null)return;if(!y.current)return;let V=[];if((M.activeElement===p.current||M.activeElement===E.current)&&(V=s(v.current)),V.length>0){const q=!!((j=B.current)!=null&&j.shiftKey&&((_=B.current)==null?void 0:_.key)==="Tab"),$=V[0],J=V[V.length-1];typeof $!="string"&&typeof J!="string"&&(q?J.focus():$.focus())}else z.focus()};M.addEventListener("focusin",D),M.addEventListener("keydown",w,!0);const N=setInterval(()=>{M.activeElement&&M.activeElement.tagName==="BODY"&&D()},50);return()=>{clearInterval(N),M.removeEventListener("focusin",D),M.removeEventListener("keydown",w,!0)}},[r,i,o,c,d,s]);const I=M=>{b.current===null&&(b.current=M.relatedTarget),y.current=!0,T.current=M.target;const w=t.props.onFocus;w&&w(M)},P=M=>{b.current===null&&(b.current=M.relatedTarget),y.current=!0};return pe.jsxs(A.Fragment,{children:[pe.jsx("div",{tabIndex:d?0:-1,onFocus:P,ref:p,"data-testid":"sentinelStart"}),A.cloneElement(t,{ref:x,onFocus:I}),pe.jsx("div",{tabIndex:d?0:-1,onFocus:P,ref:E,"data-testid":"sentinelEnd"})]})}var $E=fm();const Ns=or($E);function h8(e){return typeof e=="function"?e():e}const p8=A.forwardRef(function(t,r){const{children:i,container:o,disablePortal:s=!1}=t,[c,d]=A.useState(null),h=_r(A.isValidElement(i)?Rs(i):null,r);if(_a(()=>{s||d(h8(o)||document.body)},[o,s]),_a(()=>{if(c&&!s)return wE(r,c),()=>{wE(r,null)}},[r,c,s]),s){if(A.isValidElement(i)){const p={ref:h};return A.cloneElement(i,p)}return i}return c&&$E.createPortal(i,c)});function vo(e,t){return t?Un(e,t,{clone:!1}):e}function m8(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,o)=>{var c,d;const s=/min-width:\s*([0-9.]+)/;return+(((c=i.match(s))==null?void 0:c[1])||0)-+(((d=o.match(s))==null?void 0:d[1])||0)});return r.length?r.reduce((i,o)=>{const s=t[o];return delete i[o],i[o]=s,i},{...t}):t}function g8(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function E8(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,i,o]=r,s=Number.isNaN(+i)?i||0:+i;return e.containerQueries(o).up(s)}function b8(e){const t=(s,c)=>s.replace("@media",c?`@container ${c}`:"@container");function r(s,c){s.up=(...d)=>t(e.breakpoints.up(...d),c),s.down=(...d)=>t(e.breakpoints.down(...d),c),s.between=(...d)=>t(e.breakpoints.between(...d),c),s.only=(...d)=>t(e.breakpoints.only(...d),c),s.not=(...d)=>{const h=t(e.breakpoints.not(...d),c);return h.includes("not all and")?h.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):h}}const i={},o=s=>(r(i,s),i);return r(o),{...e,containerQueries:o}}const Os={xs:0,sm:600,md:900,lg:1200,xl:1536},XE={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Os[e]}px)`},y8={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Os[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Kr(e,t,r){const i=e.theme||{};if(Array.isArray(t)){const s=i.breakpoints||XE;return t.reduce((c,d,h)=>(c[s.up(s.keys[h])]=r(t[h]),c),{})}if(typeof t=="object"){const s=i.breakpoints||XE;return Object.keys(t).reduce((c,d)=>{if(g8(s.keys,d)){const h=E8(i.containerQueries?i:y8,d);h&&(c[h]=r(t[d],d))}else if(Object.keys(s.values||Os).includes(d)){const h=s.up(d);c[h]=r(t[d],d)}else{const h=d;c[h]=t[h]}return c},{})}return r(t)}function T8(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((i,o)=>{const s=e.up(o);return i[s]={},i},{}))||{}}function S8(e,t){return e.reduce((r,i)=>{const o=r[i];return(!o||Object.keys(o).length===0)&&delete r[i],r},t)}function ks(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const i=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(i!=null)return i}return t.split(".").reduce((i,o)=>i&&i[o]!=null?i[o]:null,e)}function Is(e,t,r,i=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||i:o=ks(e,r)||i,t&&(o=t(o,i,e)),o}function Xt(e){const{prop:t,cssProperty:r=e.prop,themeKey:i,transform:o}=e,s=c=>{if(c[t]==null)return null;const d=c[t],h=c.theme,p=ks(h,i)||{};return Kr(c,d,b=>{let T=Is(p,o,b);return b===T&&typeof b=="string"&&(T=Is(p,o,`${t}${b==="default"?"":st(b)}`,b)),r===!1?T:{[r]:T}})};return s.propTypes={},s.filterProps=[t],s}function C8(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const A8={m:"margin",p:"padding"},x8={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},QE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_8=C8(e=>{if(e.length>2)if(QE[e])e=QE[e];else return[e];const[t,r]=e.split(""),i=A8[t],o=x8[r]||"";return Array.isArray(o)?o.map(s=>i+s):[i+o]}),Fd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],zd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Fd,...zd];function Ro(e,t,r,i){const o=ks(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:typeof o=="string"?`calc(${s} * ${o})`:o*s:Array.isArray(o)?s=>{if(typeof s=="string")return s;const c=Math.abs(s),d=o[c];return s>=0?d:typeof d=="number"?-d:`-${d}`}:typeof o=="function"?o:()=>{}}function Yd(e){return Ro(e,"spacing",8)}function No(e,t){return typeof t=="string"||t==null?t:e(t)}function v8(e,t){return r=>e.reduce((i,o)=>(i[o]=No(t,r),i),{})}function R8(e,t,r,i){if(!t.includes(r))return null;const o=_8(r),s=v8(o,i),c=e[r];return Kr(e,c,s)}function KE(e,t){const r=Yd(e.theme);return Object.keys(e).map(i=>R8(e,t,i,r)).reduce(vo,{})}function jt(e){return KE(e,Fd)}jt.propTypes={},jt.filterProps=Fd;function qt(e){return KE(e,zd)}qt.propTypes={},qt.filterProps=zd;function Ds(...e){const t=e.reduce((i,o)=>(o.filterProps.forEach(s=>{i[s]=o}),i),{}),r=i=>Object.keys(i).reduce((o,s)=>t[s]?vo(o,t[s](i)):o,{});return r.propTypes={},r.filterProps=e.reduce((i,o)=>i.concat(o.filterProps),[]),r}function fr(e){return typeof e!="number"?e:`${e}px solid`}function dr(e,t){return Xt({prop:e,themeKey:"borders",transform:t})}const N8=dr("border",fr),O8=dr("borderTop",fr),k8=dr("borderRight",fr),I8=dr("borderBottom",fr),D8=dr("borderLeft",fr),w8=dr("borderColor"),L8=dr("borderTopColor"),M8=dr("borderRightColor"),B8=dr("borderBottomColor"),P8=dr("borderLeftColor"),U8=dr("outline",fr),H8=dr("outlineColor"),ws=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ro(e.theme,"shape.borderRadius",4),r=i=>({borderRadius:No(t,i)});return Kr(e,e.borderRadius,r)}return null};ws.propTypes={},ws.filterProps=["borderRadius"],Ds(N8,O8,k8,I8,D8,w8,L8,M8,B8,P8,ws,U8,H8);const Ls=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ro(e.theme,"spacing",8),r=i=>({gap:No(t,i)});return Kr(e,e.gap,r)}return null};Ls.propTypes={},Ls.filterProps=["gap"];const Ms=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ro(e.theme,"spacing",8),r=i=>({columnGap:No(t,i)});return Kr(e,e.columnGap,r)}return null};Ms.propTypes={},Ms.filterProps=["columnGap"];const Bs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ro(e.theme,"spacing",8),r=i=>({rowGap:No(t,i)});return Kr(e,e.rowGap,r)}return null};Bs.propTypes={},Bs.filterProps=["rowGap"];const F8=Xt({prop:"gridColumn"}),z8=Xt({prop:"gridRow"}),Y8=Xt({prop:"gridAutoFlow"}),j8=Xt({prop:"gridAutoColumns"}),q8=Xt({prop:"gridAutoRows"}),V8=Xt({prop:"gridTemplateColumns"}),G8=Xt({prop:"gridTemplateRows"}),$8=Xt({prop:"gridTemplateAreas"}),X8=Xt({prop:"gridArea"});Ds(Ls,Ms,Bs,F8,z8,Y8,j8,q8,V8,G8,$8,X8);function Ji(e,t){return t==="grey"?t:e}const Q8=Xt({prop:"color",themeKey:"palette",transform:Ji}),K8=Xt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ji}),W8=Xt({prop:"backgroundColor",themeKey:"palette",transform:Ji});Ds(Q8,K8,W8);function Wn(e){return e<=1&&e!==0?`${e*100}%`:e}const Z8=Xt({prop:"width",transform:Wn}),jd=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var o,s,c,d,h;const i=((c=(s=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:s.values)==null?void 0:c[r])||Os[r];return i?((h=(d=e.theme)==null?void 0:d.breakpoints)==null?void 0:h.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Wn(r)}};return Kr(e,e.maxWidth,t)}return null};jd.filterProps=["maxWidth"];const J8=Xt({prop:"minWidth",transform:Wn}),eN=Xt({prop:"height",transform:Wn}),tN=Xt({prop:"maxHeight",transform:Wn}),nN=Xt({prop:"minHeight",transform:Wn});Xt({prop:"size",cssProperty:"width",transform:Wn}),Xt({prop:"size",cssProperty:"height",transform:Wn});const rN=Xt({prop:"boxSizing"});Ds(Z8,jd,J8,eN,tN,nN,rN);const Oo={border:{themeKey:"borders",transform:fr},borderTop:{themeKey:"borders",transform:fr},borderRight:{themeKey:"borders",transform:fr},borderBottom:{themeKey:"borders",transform:fr},borderLeft:{themeKey:"borders",transform:fr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:fr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ws},color:{themeKey:"palette",transform:Ji},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ji},backgroundColor:{themeKey:"palette",transform:Ji},p:{style:qt},pt:{style:qt},pr:{style:qt},pb:{style:qt},pl:{style:qt},px:{style:qt},py:{style:qt},padding:{style:qt},paddingTop:{style:qt},paddingRight:{style:qt},paddingBottom:{style:qt},paddingLeft:{style:qt},paddingX:{style:qt},paddingY:{style:qt},paddingInline:{style:qt},paddingInlineStart:{style:qt},paddingInlineEnd:{style:qt},paddingBlock:{style:qt},paddingBlockStart:{style:qt},paddingBlockEnd:{style:qt},m:{style:jt},mt:{style:jt},mr:{style:jt},mb:{style:jt},ml:{style:jt},mx:{style:jt},my:{style:jt},margin:{style:jt},marginTop:{style:jt},marginRight:{style:jt},marginBottom:{style:jt},marginLeft:{style:jt},marginX:{style:jt},marginY:{style:jt},marginInline:{style:jt},marginInlineStart:{style:jt},marginInlineEnd:{style:jt},marginBlock:{style:jt},marginBlockStart:{style:jt},marginBlockEnd:{style:jt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ls},rowGap:{style:Bs},columnGap:{style:Ms},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wn},maxWidth:{style:jd},minWidth:{transform:Wn},height:{transform:Wn},maxHeight:{transform:Wn},minHeight:{transform:Wn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function aN(...e){const t=e.reduce((i,o)=>i.concat(Object.keys(o)),[]),r=new Set(t);return e.every(i=>r.size===Object.keys(i).length)}function iN(e,t){return typeof e=="function"?e(t):e}function uN(){function e(r,i,o,s){const c={[r]:i,theme:o},d=s[r];if(!d)return{[r]:i};const{cssProperty:h=r,themeKey:p,transform:E,style:b}=d;if(i==null)return null;if(p==="typography"&&i==="inherit")return{[r]:i};const T=ks(o,p)||{};return b?b(c):Kr(c,i,v=>{let x=Is(T,E,v);return v===x&&typeof v=="string"&&(x=Is(T,E,`${r}${v==="default"?"":st(v)}`,v)),h===!1?x:{[h]:x}})}function t(r){const{sx:i,theme:o={}}=r||{};if(!i)return null;const s=o.unstable_sxConfig??Oo;function c(d){let h=d;if(typeof d=="function")h=d(o);else if(typeof d!="object")return d;if(!h)return null;const p=T8(o.breakpoints),E=Object.keys(p);let b=p;return Object.keys(h).forEach(T=>{const y=iN(h[T],o);if(y!=null)if(typeof y=="object")if(s[T])b=vo(b,e(T,y,o,s));else{const v=Kr({theme:o},y,x=>({[T]:x}));aN(v,y)?b[T]=t({sx:y,theme:o}):b=vo(b,v)}else b=vo(b,e(T,y,o,s))}),m8(o,S8(E,b))}return Array.isArray(i)?i.map(c):c(i)}return t}const ii=uN();ii.filterProps=["sx"];const oN=e=>{var i;const t={systemProps:{},otherProps:{}},r=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??Oo;return Object.keys(e).forEach(o=>{r[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function lN(e){const{sx:t,...r}=e,{systemProps:i,otherProps:o}=oN(r);let s;return Array.isArray(t)?s=[i,...t]:typeof t=="function"?s=(...c)=>{const d=t(...c);return Pr(d)?{...i,...d}:i}:s={...i,...t},{...o,sx:s}}function sN(e){return e==null||Object.keys(e).length===0}function WE(e){const{styles:t,defaultTheme:r={}}=e,i=typeof t=="function"?o=>t(sN(o)?r:o):t;return pe.jsx(n6,{styles:i})}/**
78
+ */var Nb;function Y8(){if(Nb)return vt;Nb=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),T=Symbol.for("react.view_transition"),y=Symbol.for("react.client.reference");function v(x){if(typeof x=="object"&&x!==null){var B=x.$$typeof;switch(B){case e:switch(x=x.type,x){case r:case l:case i:case h:case p:case T:return x;default:switch(x=x&&x.$$typeof,x){case c:case d:case E:case b:return x;case s:return x;default:return B}}case t:return B}}}return vt.ContextConsumer=s,vt.ContextProvider=c,vt.Element=e,vt.ForwardRef=d,vt.Fragment=r,vt.Lazy=E,vt.Memo=b,vt.Portal=t,vt.Profiler=l,vt.StrictMode=i,vt.Suspense=h,vt.SuspenseList=p,vt.isContextConsumer=function(x){return v(x)===s},vt.isContextProvider=function(x){return v(x)===c},vt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},vt.isForwardRef=function(x){return v(x)===d},vt.isFragment=function(x){return v(x)===r},vt.isLazy=function(x){return v(x)===E},vt.isMemo=function(x){return v(x)===b},vt.isPortal=function(x){return v(x)===t},vt.isProfiler=function(x){return v(x)===l},vt.isStrictMode=function(x){return v(x)===i},vt.isSuspense=function(x){return v(x)===h},vt.isSuspenseList=function(x){return v(x)===p},vt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===l||x===i||x===h||x===p||typeof x=="object"&&x!==null&&(x.$$typeof===E||x.$$typeof===b||x.$$typeof===c||x.$$typeof===s||x.$$typeof===d||x.$$typeof===y||x.getModuleId!==void 0)},vt.typeOf=v,vt}var Ob;function j8(){return Ob||(Ob=1,Pd.exports=Y8()),Pd.exports}var kb=j8();function Pr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ib(e){if(A.isValidElement(e)||kb.isValidElementType(e)||!Pr(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Ib(e[r])}),t}function Un(e,t,r={clone:!0}){const i=r.clone?{...e}:e;return Pr(e)&&Pr(t)&&Object.keys(t).forEach(l=>{A.isValidElement(t[l])||kb.isValidElementType(t[l])?i[l]=t[l]:Pr(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&Pr(e[l])?i[l]=Un(e[l],t[l],r):r.clone?i[l]=Pr(t[l])?Ib(t[l]):t[l]:i[l]=t[l]}),i}function Aa(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(i=>r.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${r} for the full message.`}function st(e){if(typeof e!="string")throw new Error(Aa(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Db(...e){return e.reduce((t,r)=>r==null?t:function(...l){t.apply(this,l),r.apply(this,l)},()=>{})}function xs(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 xa(e){return e&&e.ownerDocument||document}function Ur(e){return xa(e).defaultView||window}function wb(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const _a=typeof window<"u"?A.useLayoutEffect:A.useEffect;let Lb=0;function q8(e){const[t,r]=A.useState(e),i=e||t;return A.useEffect(()=>{t==null&&(Lb+=1,r(`mui-${Lb}`))},[t]),i}const Mb={...bf}.useId;function V8(e){if(Mb!==void 0){const t=Mb();return e??t}return q8(e)}function Hr(e){const t=A.useRef(e);return _a(()=>{t.current=e}),A.useRef((...r)=>(0,t.current)(...r)).current}function _r(...e){const t=A.useRef(void 0),r=A.useCallback(i=>{const l=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const c=s,d=c(i);return typeof d=="function"?d:()=>{c(null)}}return s.current=i,()=>{s.current=null}});return()=>{l.forEach(s=>s==null?void 0:s())}},e);return A.useMemo(()=>e.every(i=>i==null)?null:i=>{t.current&&(t.current(),t.current=void 0),i!=null&&(t.current=r(i))},e)}const Bb={};function Pb(e,t){const r=A.useRef(Bb);return r.current===Bb&&(r.current=e(t)),r}const G8=[];function $8(e){A.useEffect(e,G8)}class Ud{constructor(){Xo(this,"currentId",null);Xo(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Xo(this,"disposeEffect",()=>this.clear)}static create(){return new Ud}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function X8(){const e=Pb(Ud.create).current;return $8(e.disposeEffect),e}function Ub(e){try{return e.matches(":focus-visible")}catch{}return!1}function Q8(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function _s(e,t){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const 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 h=d;r[l][h]=_s(s[h],c[h])}}}else r[l]===void 0&&(r[l]=e[l])}return r}const Hb=e=>e,K8=(()=>{let e=Hb;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Hb}}})(),W8={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function _n(e,t,r="Mui"){const i=W8[t];return i?`${r}-${i}`:`${K8.generate(e)}-${t}`}function vn(e,t,r="Mui"){const i={};return t.forEach(l=>{i[l]=_n(e,l,r)}),i}function Z8(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function J8(e){return typeof e=="string"}function Fb(e,t,r){return e===void 0||J8(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function zb(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{r[i]=e[i]}),r}function Yb(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function jb(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:i,externalForwardedProps:l,className:s}=e;if(!t){const y=tt(r==null?void 0:r.className,s,l==null?void 0:l.className,i==null?void 0:i.className),v={...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(v).length>0&&(x.style=v),{props:x,internalRef:void 0}}const c=zb({...l,...i}),d=Yb(i),h=Yb(l),p=t(c),b=tt(p==null?void 0:p.className,r==null?void 0:r.className,s,l==null?void 0:l.className,i==null?void 0:i.className),E={...p==null?void 0:p.style,...r==null?void 0:r.style,...l==null?void 0:l.style,...i==null?void 0:i.style},T={...p,...r,...h,...d};return b.length>0&&(T.className=b),Object.keys(E).length>0&&(T.style=E),{props:T,internalRef:p.ref}}function qb(e,t,r){return typeof e=="function"?e(t,r):e}function vs(e){var E;const{elementType:t,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:l=!1,...s}=e,c=l?{}:qb(r,i),{props:d,internalRef:h}=jb({...s,externalSlotProps:c}),p=_r(h,c==null?void 0:c.ref,(E=e.additionalProps)==null?void 0:E.ref);return Fb(t,{...d,ref:p},i)}function Rs(e){var t;return parseInt(A.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function eR(e){const t=xa(e);return t.body===e?Ur(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function xl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Vb(e){return parseInt(Ur(e).getComputedStyle(e).paddingRight,10)||0}function tR(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||i}function Gb(e,t,r,i,l){const s=[t,r,...i];[].forEach.call(e.children,c=>{const d=!s.includes(c),h=!tR(c);d&&h&&xl(c,l)})}function Hd(e,t){let r=-1;return e.some((i,l)=>t(i)?(r=l,!0):!1),r}function nR(e,t){const r=[],i=e.container;if(!t.disableScrollLock){if(eR(i)){const c=Q8(Ur(i));r.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${Vb(i)+c}px`;const d=xa(i).querySelectorAll(".mui-fixed");[].forEach.call(d,h=>{r.push({value:h.style.paddingRight,property:"padding-right",el:h}),h.style.paddingRight=`${Vb(h)+c}px`})}let s;if(i.parentNode instanceof DocumentFragment)s=xa(i).body;else{const c=i.parentElement,d=Ur(i);s=(c==null?void 0:c.nodeName)==="HTML"&&d.getComputedStyle(c).overflowY==="scroll"?c:i}r.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{r.forEach(({value:s,el:c,property:d})=>{s?c.style.setProperty(d,s):c.style.removeProperty(d)})}}function rR(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class aR{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&&xl(t.modalRef,!1);const l=rR(r);Gb(r,t.mount,t.modalRef,l,!0);const s=Hd(this.containers,c=>c.container===r);return s!==-1?(this.containers[s].modals.push(t),i):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:l}),i)}mount(t,r){const i=Hd(this.containers,s=>s.modals.includes(t)),l=this.containers[i];l.restore||(l.restore=nR(l,r))}remove(t,r=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const l=Hd(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&&xl(t.modalRef,r),Gb(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&&xl(c.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const iR=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function uR(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 lR(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function oR(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||lR(e))}function sR(e){const t=[],r=[];return Array.from(e.querySelectorAll(iR)).forEach((i,l)=>{const s=uR(i);s===-1||!oR(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 cR(){return!0}function fR(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:l=!1,getTabbable:s=sR,isEnabled:c=cR,open:d}=e,h=A.useRef(!1),p=A.useRef(null),b=A.useRef(null),E=A.useRef(null),T=A.useRef(null),y=A.useRef(!1),v=A.useRef(null),x=_r(Rs(t),v),B=A.useRef(null);A.useEffect(()=>{!d||!v.current||(y.current=!r)},[r,d]),A.useEffect(()=>{if(!d||!v.current)return;const M=xa(v.current);return v.current.contains(M.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),y.current&&v.current.focus()),()=>{l||(E.current&&E.current.focus&&(h.current=!0,E.current.focus()),E.current=null)}},[d]),A.useEffect(()=>{if(!d||!v.current)return;const M=xa(v.current),w=z=>{B.current=z,!(i||!c()||z.key!=="Tab")&&M.activeElement===v.current&&z.shiftKey&&(h.current=!0,b.current&&b.current.focus())},D=()=>{var j,_;const z=v.current;if(z===null)return;if(!M.hasFocus()||!c()||h.current){h.current=!1;return}if(z.contains(M.activeElement)||i&&M.activeElement!==p.current&&M.activeElement!==b.current)return;if(M.activeElement!==T.current)T.current=null;else if(T.current!==null)return;if(!y.current)return;let V=[];if((M.activeElement===p.current||M.activeElement===b.current)&&(V=s(v.current)),V.length>0){const q=!!((j=B.current)!=null&&j.shiftKey&&((_=B.current)==null?void 0:_.key)==="Tab"),$=V[0],J=V[V.length-1];typeof $!="string"&&typeof J!="string"&&(q?J.focus():$.focus())}else z.focus()};M.addEventListener("focusin",D),M.addEventListener("keydown",w,!0);const N=setInterval(()=>{M.activeElement&&M.activeElement.tagName==="BODY"&&D()},50);return()=>{clearInterval(N),M.removeEventListener("focusin",D),M.removeEventListener("keydown",w,!0)}},[r,i,l,c,d,s]);const I=M=>{E.current===null&&(E.current=M.relatedTarget),y.current=!0,T.current=M.target;const w=t.props.onFocus;w&&w(M)},P=M=>{E.current===null&&(E.current=M.relatedTarget),y.current=!0};return pe.jsxs(A.Fragment,{children:[pe.jsx("div",{tabIndex:d?0:-1,onFocus:P,ref:p,"data-testid":"sentinelStart"}),A.cloneElement(t,{ref:x,onFocus:I}),pe.jsx("div",{tabIndex:d?0:-1,onFocus:P,ref:b,"data-testid":"sentinelEnd"})]})}var $b=fm();const Ns=lr($b);function dR(e){return typeof e=="function"?e():e}const hR=A.forwardRef(function(t,r){const{children:i,container:l,disablePortal:s=!1}=t,[c,d]=A.useState(null),h=_r(A.isValidElement(i)?Rs(i):null,r);if(_a(()=>{s||d(dR(l)||document.body)},[l,s]),_a(()=>{if(c&&!s)return wb(r,c),()=>{wb(r,null)}},[r,c,s]),s){if(A.isValidElement(i)){const p={ref:h};return A.cloneElement(i,p)}return i}return c&&$b.createPortal(i,c)});function _l(e,t){return t?Un(e,t,{clone:!1}):e}function pR(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 mR(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function gR(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 bR(e){const t=(s,c)=>s.replace("@media",c?`@container ${c}`:"@container");function r(s,c){s.up=(...d)=>t(e.breakpoints.up(...d),c),s.down=(...d)=>t(e.breakpoints.down(...d),c),s.between=(...d)=>t(e.breakpoints.between(...d),c),s.only=(...d)=>t(e.breakpoints.only(...d),c),s.not=(...d)=>{const h=t(e.breakpoints.not(...d),c);return h.includes("not all and")?h.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):h}}const i={},l=s=>(r(i,s),i);return r(l),{...e,containerQueries:l}}const Os={xs:0,sm:600,md:900,lg:1200,xl:1536},Xb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Os[e]}px)`},ER={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Os[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Kr(e,t,r){const i=e.theme||{};if(Array.isArray(t)){const s=i.breakpoints||Xb;return t.reduce((c,d,h)=>(c[s.up(s.keys[h])]=r(t[h]),c),{})}if(typeof t=="object"){const s=i.breakpoints||Xb;return Object.keys(t).reduce((c,d)=>{if(mR(s.keys,d)){const h=gR(i.containerQueries?i:ER,d);h&&(c[h]=r(t[d],d))}else if(Object.keys(s.values||Os).includes(d)){const h=s.up(d);c[h]=r(t[d],d)}else{const h=d;c[h]=t[h]}return c},{})}return r(t)}function yR(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((i,l)=>{const s=e.up(l);return i[s]={},i},{}))||{}}function TR(e,t){return e.reduce((r,i)=>{const l=r[i];return(!l||Object.keys(l).length===0)&&delete r[i],r},t)}function ks(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const i=`vars.${t}`.split(".").reduce((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 Is(e,t,r,i=r){let l;return typeof e=="function"?l=e(r):Array.isArray(e)?l=e[r]||i:l=ks(e,r)||i,t&&(l=t(l,i,e)),l}function Xt(e){const{prop:t,cssProperty:r=e.prop,themeKey:i,transform:l}=e,s=c=>{if(c[t]==null)return null;const d=c[t],h=c.theme,p=ks(h,i)||{};return Kr(c,d,E=>{let T=Is(p,l,E);return E===T&&typeof E=="string"&&(T=Is(p,l,`${t}${E==="default"?"":st(E)}`,E)),r===!1?T:{[r]:T}})};return s.propTypes={},s.filterProps=[t],s}function SR(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const CR={m:"margin",p:"padding"},AR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Qb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xR=SR(e=>{if(e.length>2)if(Qb[e])e=Qb[e];else return[e];const[t,r]=e.split(""),i=CR[t],l=AR[r]||"";return Array.isArray(l)?l.map(s=>i+s):[i+l]}),Fd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],zd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Fd,...zd];function vl(e,t,r,i){const l=ks(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 Yd(e){return vl(e,"spacing",8)}function Rl(e,t){return typeof t=="string"||t==null?t:e(t)}function _R(e,t){return r=>e.reduce((i,l)=>(i[l]=Rl(t,r),i),{})}function vR(e,t,r,i){if(!t.includes(r))return null;const l=xR(r),s=_R(l,i),c=e[r];return Kr(e,c,s)}function Kb(e,t){const r=Yd(e.theme);return Object.keys(e).map(i=>vR(e,t,i,r)).reduce(_l,{})}function jt(e){return Kb(e,Fd)}jt.propTypes={},jt.filterProps=Fd;function qt(e){return Kb(e,zd)}qt.propTypes={},qt.filterProps=zd;function Ds(...e){const t=e.reduce((i,l)=>(l.filterProps.forEach(s=>{i[s]=l}),i),{}),r=i=>Object.keys(i).reduce((l,s)=>t[s]?_l(l,t[s](i)):l,{});return r.propTypes={},r.filterProps=e.reduce((i,l)=>i.concat(l.filterProps),[]),r}function fr(e){return typeof e!="number"?e:`${e}px solid`}function dr(e,t){return Xt({prop:e,themeKey:"borders",transform:t})}const RR=dr("border",fr),NR=dr("borderTop",fr),OR=dr("borderRight",fr),kR=dr("borderBottom",fr),IR=dr("borderLeft",fr),DR=dr("borderColor"),wR=dr("borderTopColor"),LR=dr("borderRightColor"),MR=dr("borderBottomColor"),BR=dr("borderLeftColor"),PR=dr("outline",fr),UR=dr("outlineColor"),ws=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=vl(e.theme,"shape.borderRadius",4),r=i=>({borderRadius:Rl(t,i)});return Kr(e,e.borderRadius,r)}return null};ws.propTypes={},ws.filterProps=["borderRadius"],Ds(RR,NR,OR,kR,IR,DR,wR,LR,MR,BR,ws,PR,UR);const Ls=e=>{if(e.gap!==void 0&&e.gap!==null){const t=vl(e.theme,"spacing",8),r=i=>({gap:Rl(t,i)});return Kr(e,e.gap,r)}return null};Ls.propTypes={},Ls.filterProps=["gap"];const Ms=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=vl(e.theme,"spacing",8),r=i=>({columnGap:Rl(t,i)});return Kr(e,e.columnGap,r)}return null};Ms.propTypes={},Ms.filterProps=["columnGap"];const Bs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=vl(e.theme,"spacing",8),r=i=>({rowGap:Rl(t,i)});return Kr(e,e.rowGap,r)}return null};Bs.propTypes={},Bs.filterProps=["rowGap"];const HR=Xt({prop:"gridColumn"}),FR=Xt({prop:"gridRow"}),zR=Xt({prop:"gridAutoFlow"}),YR=Xt({prop:"gridAutoColumns"}),jR=Xt({prop:"gridAutoRows"}),qR=Xt({prop:"gridTemplateColumns"}),VR=Xt({prop:"gridTemplateRows"}),GR=Xt({prop:"gridTemplateAreas"}),$R=Xt({prop:"gridArea"});Ds(Ls,Ms,Bs,HR,FR,zR,YR,jR,qR,VR,GR,$R);function Ji(e,t){return t==="grey"?t:e}const XR=Xt({prop:"color",themeKey:"palette",transform:Ji}),QR=Xt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ji}),KR=Xt({prop:"backgroundColor",themeKey:"palette",transform:Ji});Ds(XR,QR,KR);function Wn(e){return e<=1&&e!==0?`${e*100}%`:e}const WR=Xt({prop:"width",transform:Wn}),jd=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var l,s,c,d,h;const i=((c=(s=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:s.values)==null?void 0:c[r])||Os[r];return i?((h=(d=e.theme)==null?void 0:d.breakpoints)==null?void 0:h.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Wn(r)}};return Kr(e,e.maxWidth,t)}return null};jd.filterProps=["maxWidth"];const ZR=Xt({prop:"minWidth",transform:Wn}),JR=Xt({prop:"height",transform:Wn}),eN=Xt({prop:"maxHeight",transform:Wn}),tN=Xt({prop:"minHeight",transform:Wn});Xt({prop:"size",cssProperty:"width",transform:Wn}),Xt({prop:"size",cssProperty:"height",transform:Wn});const nN=Xt({prop:"boxSizing"});Ds(WR,jd,ZR,JR,eN,tN,nN);const Nl={border:{themeKey:"borders",transform:fr},borderTop:{themeKey:"borders",transform:fr},borderRight:{themeKey:"borders",transform:fr},borderBottom:{themeKey:"borders",transform:fr},borderLeft:{themeKey:"borders",transform:fr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:fr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ws},color:{themeKey:"palette",transform:Ji},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ji},backgroundColor:{themeKey:"palette",transform:Ji},p:{style:qt},pt:{style:qt},pr:{style:qt},pb:{style:qt},pl:{style:qt},px:{style:qt},py:{style:qt},padding:{style:qt},paddingTop:{style:qt},paddingRight:{style:qt},paddingBottom:{style:qt},paddingLeft:{style:qt},paddingX:{style:qt},paddingY:{style:qt},paddingInline:{style:qt},paddingInlineStart:{style:qt},paddingInlineEnd:{style:qt},paddingBlock:{style:qt},paddingBlockStart:{style:qt},paddingBlockEnd:{style:qt},m:{style:jt},mt:{style:jt},mr:{style:jt},mb:{style:jt},ml:{style:jt},mx:{style:jt},my:{style:jt},margin:{style:jt},marginTop:{style:jt},marginRight:{style:jt},marginBottom:{style:jt},marginLeft:{style:jt},marginX:{style:jt},marginY:{style:jt},marginInline:{style:jt},marginInlineStart:{style:jt},marginInlineEnd:{style:jt},marginBlock:{style:jt},marginBlockStart:{style:jt},marginBlockEnd:{style:jt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ls},rowGap:{style:Bs},columnGap:{style:Ms},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wn},maxWidth:{style:jd},minWidth:{transform:Wn},height:{transform:Wn},maxHeight:{transform:Wn},minHeight:{transform:Wn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function rN(...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 aN(e,t){return typeof e=="function"?e(t):e}function iN(){function e(r,i,l,s){const c={[r]:i,theme:l},d=s[r];if(!d)return{[r]:i};const{cssProperty:h=r,themeKey:p,transform:b,style:E}=d;if(i==null)return null;if(p==="typography"&&i==="inherit")return{[r]:i};const T=ks(l,p)||{};return E?E(c):Kr(c,i,v=>{let x=Is(T,b,v);return v===x&&typeof v=="string"&&(x=Is(T,b,`${r}${v==="default"?"":st(v)}`,v)),h===!1?x:{[h]:x}})}function t(r){const{sx:i,theme:l={}}=r||{};if(!i)return null;const s=l.unstable_sxConfig??Nl;function c(d){let h=d;if(typeof d=="function")h=d(l);else if(typeof d!="object")return d;if(!h)return null;const p=yR(l.breakpoints),b=Object.keys(p);let E=p;return Object.keys(h).forEach(T=>{const y=aN(h[T],l);if(y!=null)if(typeof y=="object")if(s[T])E=_l(E,e(T,y,l,s));else{const v=Kr({theme:l},y,x=>({[T]:x}));rN(v,y)?E[T]=t({sx:y,theme:l}):E=_l(E,v)}else E=_l(E,e(T,y,l,s))}),pR(l,TR(b,E))}return Array.isArray(i)?i.map(c):c(i)}return t}const ii=iN();ii.filterProps=["sx"];const uN=e=>{var i;const t={systemProps:{},otherProps:{}},r=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??Nl;return Object.keys(e).forEach(l=>{r[l]?t.systemProps[l]=e[l]:t.otherProps[l]=e[l]}),t};function lN(e){const{sx:t,...r}=e,{systemProps:i,otherProps:l}=uN(r);let s;return Array.isArray(t)?s=[i,...t]:typeof t=="function"?s=(...c)=>{const d=t(...c);return Pr(d)?{...i,...d}:i}:s={...i,...t},{...l,sx:s}}function oN(e){return e==null||Object.keys(e).length===0}function Wb(e){const{styles:t,defaultTheme:r={}}=e,i=typeof t=="function"?l=>t(oN(l)?r:l):t;return pe.jsx(n6,{styles:i})}/**
79
79
  * @mui/styled-engine v6.4.11
80
80
  *
81
81
  * @license MIT
82
82
  * This source code is licensed under the MIT license found in the
83
83
  * LICENSE file in the root directory of this source tree.
84
- */function cN(e,t){return He(e,t)}function fN(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const ZE=[];function JE(e){return ZE[0]=e,Zu(ZE)}const dN=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 hN(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5,...o}=e,s=dN(t),c=Object.keys(s);function d(T){return`@media (min-width:${typeof t[T]=="number"?t[T]:T}${r})`}function h(T){return`@media (max-width:${(typeof t[T]=="number"?t[T]:T)-i/100}${r})`}function p(T,y){const v=c.indexOf(y);return`@media (min-width:${typeof t[T]=="number"?t[T]:T}${r}) and (max-width:${(v!==-1&&typeof t[c[v]]=="number"?t[c[v]]:y)-i/100}${r})`}function E(T){return c.indexOf(T)+1<c.length?p(T,c[c.indexOf(T)+1]):d(T)}function b(T){const y=c.indexOf(T);return y===0?d(c[1]):y===c.length-1?h(c[y]):p(T,c[c.indexOf(T)+1]).replace("@media","@media not all and")}return{keys:c,values:s,up:d,down:h,between:p,only:E,not:b,unit:r,...o}}const pN={borderRadius:4};function eb(e=8,t=Yd({spacing:e})){if(e.mui)return e;const r=(...i)=>(i.length===0?[1]:i).map(s=>{const c=t(s);return typeof c=="number"?`${c}px`:c}).join(" ");return r.mui=!0,r}function mN(e,t){var i;const r=this;if(r.vars){if(!((i=r.colorSchemes)!=null&&i[e])||typeof r.getColorSchemeSelector!="function")return{};let o=r.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return r.palette.mode===e?t:{}}function qd(e={},...t){const{breakpoints:r={},palette:i={},spacing:o,shape:s={},...c}=e,d=hN(r),h=eb(o);let p=Un({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:h,shape:{...pN,...s}},c);return p=b8(p),p.applyStyles=mN,p=t.reduce((E,b)=>Un(E,b),p),p.unstable_sxConfig={...Oo,...c==null?void 0:c.unstable_sxConfig},p.unstable_sx=function(b){return ii({sx:b,theme:this})},p}function gN(e){return Object.keys(e).length===0}function tb(e=null){const t=A.useContext(Bi);return!t||gN(t)?e:t}const EN=qd();function Vd(e=EN){return tb(e)}function bN({styles:e,themeId:t,defaultTheme:r={}}){const i=Vd(r),o=typeof e=="function"?e(t&&i[t]||i):e;return pe.jsx(WE,{styles:o})}function nb(e){const{variants:t,...r}=e,i={variants:t,style:JE(r),isProcessed:!0};return i.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=JE(o.style))}),i}const yN=qd();function Gd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function TN(e){return e?(t,r)=>r[e]:null}function SN(e,t,r){e.theme=xN(e.theme)?r:e.theme[t]||e.theme}function Ps(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>Ps(e,i));if(Array.isArray(r==null?void 0:r.variants)){let i;if(r.isProcessed)i=r.style;else{const{variants:o,...s}=r;i=s}return rb(e,r.variants,[i])}return r!=null&&r.isProcessed?r.style:r}function rb(e,t,r=[]){var o;let i;e:for(let s=0;s<t.length;s+=1){const c=t[s];if(typeof c.props=="function"){if(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),!c.props(i))continue}else for(const d in c.props)if(e[d]!==c.props[d]&&((o=e.ownerState)==null?void 0:o[d])!==c.props[d])continue e;typeof c.style=="function"?(i??(i={...e,...e.ownerState,ownerState:e.ownerState}),r.push(c.style(i))):r.push(c.style)}return r}function CN(e={}){const{themeId:t,defaultTheme:r=yN,rootShouldForwardProp:i=Gd,slotShouldForwardProp:o=Gd}=e;function s(d){SN(d,t,r)}return(d,h={})=>{fN(d,D=>D.filter(N=>N!==ii));const{name:p,slot:E,skipVariantsResolver:b,skipSx:T,overridesResolver:y=TN(vN(E)),...v}=h,x=b!==void 0?b:E&&E!=="Root"&&E!=="root"||!1,B=T||!1;let I=Gd;E==="Root"||E==="root"?I=i:E?I=o:_N(d)&&(I=void 0);const P=cN(d,{shouldForwardProp:I,label:AN(),...v}),M=D=>{if(typeof D=="function"&&D.__emotion_real!==D)return function(z){return Ps(z,D)};if(Pr(D)){const N=nb(D);return N.variants?function(V){return Ps(V,N)}:N.style}return D},w=(...D)=>{const N=[],z=D.map(M),V=[];if(N.push(s),p&&y&&V.push(function($){var F,ae;const Z=(ae=(F=$.theme.components)==null?void 0:F[p])==null?void 0:ae.styleOverrides;if(!Z)return null;const ne={};for(const ie in Z)ne[ie]=Ps($,Z[ie]);return y($,ne)}),p&&!x&&V.push(function($){var ne,F;const J=$.theme,Z=(F=(ne=J==null?void 0:J.components)==null?void 0:ne[p])==null?void 0:F.variants;return Z?rb($,Z):null}),B||V.push(ii),Array.isArray(z[0])){const q=z.shift(),$=new Array(N.length).fill(""),J=new Array(V.length).fill("");let Z;Z=[...$,...q,...J],Z.raw=[...$,...q.raw,...J],N.unshift(Z)}const j=[...N,...z,...V],_=P(...j);return d.muiName&&(_.muiName=d.muiName),_};return P.withConfig&&(w.withConfig=P.withConfig),w}}function AN(e,t){return void 0}function xN(e){for(const t in e)return!1;return!0}function _N(e){return typeof e=="string"&&e.charCodeAt(0)>96}function vN(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function RN(e){const{theme:t,name:r,props:i}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?i:_s(t.components[r].defaultProps,i)}function NN({props:e,name:t,defaultTheme:r,themeId:i}){let o=Vd(r);return o=o[i]||o,RN({theme:o,name:t,props:e})}function $d(e,t=0,r=1){return JR(e,t,r)}function ON(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(i=>i+i)),r?`rgb${r.length===4?"a":""}(${r.map((i,o)=>o<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function va(e){if(e.type)return e;if(e.charAt(0)==="#")return va(ON(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Aa(9,e));let i=e.substring(t+1,e.length-1),o;if(r==="color"){if(i=i.split(" "),o=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Aa(10,o))}else i=i.split(",");return i=i.map(s=>parseFloat(s)),{type:r,values:i,colorSpace:o}}const kN=e=>{const t=va(e);return t.values.slice(0,3).map((r,i)=>t.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")},ko=(e,t)=>{try{return kN(e)}catch{return e}};function Us(e){const{type:t,colorSpace:r}=e;let{values:i}=e;return t.includes("rgb")?i=i.map((o,s)=>s<3?parseInt(o,10):o):t.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),t.includes("color")?i=`${r} ${i.join(" ")}`:i=`${i.join(", ")}`,`${t}(${i})`}function ab(e){e=va(e);const{values:t}=e,r=t[0],i=t[1]/100,o=t[2]/100,s=i*Math.min(o,1-o),c=(p,E=(p+r/30)%12)=>o-s*Math.max(Math.min(E-3,9-E,1),-1);let d="rgb";const h=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(d+="a",h.push(t[3])),Us({type:d,values:h})}function Xd(e){e=va(e);let t=e.type==="hsl"||e.type==="hsla"?va(ab(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 IN(e,t){const r=Xd(e),i=Xd(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function Io(e,t){return e=va(e),t=$d(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Us(e)}function Hs(e,t,r){try{return Io(e,t)}catch{return e}}function Do(e,t){if(e=va(e),t=$d(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Us(e)}function It(e,t,r){try{return Do(e,t)}catch{return e}}function wo(e,t){if(e=va(e),t=$d(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Us(e)}function Dt(e,t,r){try{return wo(e,t)}catch{return e}}function DN(e,t=.15){return Xd(e)>.5?Do(e,t):wo(e,t)}function Fs(e,t,r){try{return DN(e,t)}catch{return e}}const ib=A.createContext(null);function Qd(){return A.useContext(ib)}const wN=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function LN(e,t){return typeof t=="function"?t(e):{...e,...t}}function MN(e){const{children:t,theme:r}=e,i=Qd(),o=A.useMemo(()=>{const s=i===null?{...r}:LN(i,r);return s!=null&&(s[wN]=i!==null),s},[r,i]);return pe.jsx(ib.Provider,{value:o,children:t})}const ub=A.createContext(void 0);function BN({value:e,children:t}){return pe.jsx(ub.Provider,{value:e,children:t})}function PN(e){const{theme:t,name:r,props:i}=e;if(!t||!t.components||!t.components[r])return i;const o=t.components[r];return o.defaultProps?_s(o.defaultProps,i):!o.styleOverrides&&!o.variants?_s(o,i):i}function UN({props:e,name:t}){const r=A.useContext(ub);return PN({props:e,name:t,theme:{components:r}})}const ob={};function lb(e,t,r,i=!1){return A.useMemo(()=>{const o=e&&t[e]||t;if(typeof r=="function"){const s=r(o),c=e?{...t,[e]:s}:s;return i?()=>c:c}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,i])}function sb(e){const{children:t,theme:r,themeId:i}=e,o=tb(ob),s=Qd()||ob,c=lb(i,o,r),d=lb(i,s,r,!0),h=(i?c[i]:c).direction==="rtl";return pe.jsx(MN,{theme:d,children:pe.jsx(Bi.Provider,{value:c,children:pe.jsx(YR,{value:h,children:pe.jsx(BN,{value:i?c[i].components:c.components,children:t})})})})}const cb={theme:void 0};function HN(e){let t,r;return function(o){let s=t;return(s===void 0||o.theme!==r)&&(cb.theme=o.theme,s=nb(e(cb)),t=s,r=o.theme),s}}const Kd="mode",Wd="color-scheme",FN="data-color-scheme";function zN(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:i="dark",modeStorageKey:o=Kd,colorSchemeStorageKey:s=Wd,attribute:c=FN,colorSchemeNode:d="document.documentElement",nonce:h}=e||{};let p="",E=c;if(c==="class"&&(E=".%s"),c==="data"&&(E="[data-%s]"),E.startsWith(".")){const T=E.substring(1);p+=`${d}.classList.remove('${T}'.replace('%s', light), '${T}'.replace('%s', dark));
85
- ${d}.classList.add('${T}'.replace('%s', colorScheme));`}const b=E.match(/\[([^\]]+)\]/);if(b){const[T,y]=b[1].split("=");y||(p+=`${d}.removeAttribute('${T}'.replace('%s', light));
84
+ */function sN(e,t){return Pe(e,t)}function cN(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Zb=[];function Jb(e){return Zb[0]=e,Zu(Zb)}const fN=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 dN(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5,...l}=e,s=fN(t),c=Object.keys(s);function d(T){return`@media (min-width:${typeof t[T]=="number"?t[T]:T}${r})`}function h(T){return`@media (max-width:${(typeof t[T]=="number"?t[T]:T)-i/100}${r})`}function p(T,y){const v=c.indexOf(y);return`@media (min-width:${typeof t[T]=="number"?t[T]:T}${r}) and (max-width:${(v!==-1&&typeof t[c[v]]=="number"?t[c[v]]:y)-i/100}${r})`}function b(T){return c.indexOf(T)+1<c.length?p(T,c[c.indexOf(T)+1]):d(T)}function E(T){const y=c.indexOf(T);return y===0?d(c[1]):y===c.length-1?h(c[y]):p(T,c[c.indexOf(T)+1]).replace("@media","@media not all and")}return{keys:c,values:s,up:d,down:h,between:p,only:b,not:E,unit:r,...l}}const hN={borderRadius:4};function eE(e=8,t=Yd({spacing:e})){if(e.mui)return e;const r=(...i)=>(i.length===0?[1]:i).map(s=>{const c=t(s);return typeof c=="number"?`${c}px`:c}).join(" ");return r.mui=!0,r}function pN(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 qd(e={},...t){const{breakpoints:r={},palette:i={},spacing:l,shape:s={},...c}=e,d=dN(r),h=eE(l);let p=Un({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:h,shape:{...hN,...s}},c);return p=bR(p),p.applyStyles=pN,p=t.reduce((b,E)=>Un(b,E),p),p.unstable_sxConfig={...Nl,...c==null?void 0:c.unstable_sxConfig},p.unstable_sx=function(E){return ii({sx:E,theme:this})},p}function mN(e){return Object.keys(e).length===0}function tE(e=null){const t=A.useContext(Bi);return!t||mN(t)?e:t}const gN=qd();function Vd(e=gN){return tE(e)}function bN({styles:e,themeId:t,defaultTheme:r={}}){const i=Vd(r),l=typeof e=="function"?e(t&&i[t]||i):e;return pe.jsx(Wb,{styles:l})}function nE(e){const{variants:t,...r}=e,i={variants:t,style:Jb(r),isProcessed:!0};return i.style===r||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=Jb(l.style))}),i}const EN=qd();function Gd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function yN(e){return e?(t,r)=>r[e]:null}function TN(e,t,r){e.theme=AN(e.theme)?r:e.theme[t]||e.theme}function Ps(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>Ps(e,i));if(Array.isArray(r==null?void 0:r.variants)){let i;if(r.isProcessed)i=r.style;else{const{variants:l,...s}=r;i=s}return rE(e,r.variants,[i])}return r!=null&&r.isProcessed?r.style:r}function rE(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 SN(e={}){const{themeId:t,defaultTheme:r=EN,rootShouldForwardProp:i=Gd,slotShouldForwardProp:l=Gd}=e;function s(d){TN(d,t,r)}return(d,h={})=>{cN(d,D=>D.filter(N=>N!==ii));const{name:p,slot:b,skipVariantsResolver:E,skipSx:T,overridesResolver:y=yN(_N(b)),...v}=h,x=E!==void 0?E:b&&b!=="Root"&&b!=="root"||!1,B=T||!1;let I=Gd;b==="Root"||b==="root"?I=i:b?I=l:xN(d)&&(I=void 0);const P=sN(d,{shouldForwardProp:I,label:CN(),...v}),M=D=>{if(typeof D=="function"&&D.__emotion_real!==D)return function(z){return Ps(z,D)};if(Pr(D)){const N=nE(D);return N.variants?function(V){return Ps(V,N)}:N.style}return D},w=(...D)=>{const N=[],z=D.map(M),V=[];if(N.push(s),p&&y&&V.push(function($){var F,ae;const Z=(ae=(F=$.theme.components)==null?void 0:F[p])==null?void 0:ae.styleOverrides;if(!Z)return null;const ne={};for(const ie in Z)ne[ie]=Ps($,Z[ie]);return y($,ne)}),p&&!x&&V.push(function($){var ne,F;const J=$.theme,Z=(F=(ne=J==null?void 0:J.components)==null?void 0:ne[p])==null?void 0:F.variants;return Z?rE($,Z):null}),B||V.push(ii),Array.isArray(z[0])){const q=z.shift(),$=new Array(N.length).fill(""),J=new Array(V.length).fill("");let Z;Z=[...$,...q,...J],Z.raw=[...$,...q.raw,...J],N.unshift(Z)}const j=[...N,...z,...V],_=P(...j);return d.muiName&&(_.muiName=d.muiName),_};return P.withConfig&&(w.withConfig=P.withConfig),w}}function CN(e,t){return void 0}function AN(e){for(const t in e)return!1;return!0}function xN(e){return typeof e=="string"&&e.charCodeAt(0)>96}function _N(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function vN(e){const{theme:t,name:r,props:i}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?i:_s(t.components[r].defaultProps,i)}function RN({props:e,name:t,defaultTheme:r,themeId:i}){let l=Vd(r);return l=l[i]||l,vN({theme:l,name:t,props:e})}function $d(e,t=0,r=1){return Z8(e,t,r)}function NN(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(i=>i+i)),r?`rgb${r.length===4?"a":""}(${r.map((i,l)=>l<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function va(e){if(e.type)return e;if(e.charAt(0)==="#")return va(NN(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(Aa(9,e));let i=e.substring(t+1,e.length-1),l;if(r==="color"){if(i=i.split(" "),l=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(l))throw new Error(Aa(10,l))}else i=i.split(",");return i=i.map(s=>parseFloat(s)),{type:r,values:i,colorSpace:l}}const ON=e=>{const t=va(e);return t.values.slice(0,3).map((r,i)=>t.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")},Ol=(e,t)=>{try{return ON(e)}catch{return e}};function Us(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 aE(e){e=va(e);const{values:t}=e,r=t[0],i=t[1]/100,l=t[2]/100,s=i*Math.min(l,1-l),c=(p,b=(p+r/30)%12)=>l-s*Math.max(Math.min(b-3,9-b,1),-1);let d="rgb";const h=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return e.type==="hsla"&&(d+="a",h.push(t[3])),Us({type:d,values:h})}function Xd(e){e=va(e);let t=e.type==="hsl"||e.type==="hsla"?va(aE(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function kN(e,t){const r=Xd(e),i=Xd(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function kl(e,t){return e=va(e),t=$d(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Us(e)}function Hs(e,t,r){try{return kl(e,t)}catch{return e}}function Il(e,t){if(e=va(e),t=$d(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Us(e)}function It(e,t,r){try{return Il(e,t)}catch{return e}}function Dl(e,t){if(e=va(e),t=$d(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Us(e)}function Dt(e,t,r){try{return Dl(e,t)}catch{return e}}function IN(e,t=.15){return Xd(e)>.5?Il(e,t):Dl(e,t)}function Fs(e,t,r){try{return IN(e,t)}catch{return e}}const iE=A.createContext(null);function Qd(){return A.useContext(iE)}const DN=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function wN(e,t){return typeof t=="function"?t(e):{...e,...t}}function LN(e){const{children:t,theme:r}=e,i=Qd(),l=A.useMemo(()=>{const s=i===null?{...r}:wN(i,r);return s!=null&&(s[DN]=i!==null),s},[r,i]);return pe.jsx(iE.Provider,{value:l,children:t})}const uE=A.createContext(void 0);function MN({value:e,children:t}){return pe.jsx(uE.Provider,{value:e,children:t})}function BN(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?_s(l.defaultProps,i):!l.styleOverrides&&!l.variants?_s(l,i):i}function PN({props:e,name:t}){const r=A.useContext(uE);return BN({props:e,name:t,theme:{components:r}})}const lE={};function oE(e,t,r,i=!1){return A.useMemo(()=>{const l=e&&t[e]||t;if(typeof r=="function"){const s=r(l),c=e?{...t,[e]:s}:s;return i?()=>c:c}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,i])}function sE(e){const{children:t,theme:r,themeId:i}=e,l=tE(lE),s=Qd()||lE,c=oE(i,l,r),d=oE(i,s,r,!0),h=(i?c[i]:c).direction==="rtl";return pe.jsx(LN,{theme:d,children:pe.jsx(Bi.Provider,{value:c,children:pe.jsx(z8,{value:h,children:pe.jsx(MN,{value:i?c[i].components:c.components,children:t})})})})}const cE={theme:void 0};function UN(e){let t,r;return function(l){let s=t;return(s===void 0||l.theme!==r)&&(cE.theme=l.theme,s=nE(e(cE)),t=s,r=l.theme),s}}const Kd="mode",Wd="color-scheme",HN="data-color-scheme";function FN(e){const{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:i="dark",modeStorageKey:l=Kd,colorSchemeStorageKey:s=Wd,attribute:c=HN,colorSchemeNode:d="document.documentElement",nonce:h}=e||{};let p="",b=c;if(c==="class"&&(b=".%s"),c==="data"&&(b="[data-%s]"),b.startsWith(".")){const T=b.substring(1);p+=`${d}.classList.remove('${T}'.replace('%s', light), '${T}'.replace('%s', dark));
85
+ ${d}.classList.add('${T}'.replace('%s', colorScheme));`}const E=b.match(/\[([^\]]+)\]/);if(E){const[T,y]=E[1].split("=");y||(p+=`${d}.removeAttribute('${T}'.replace('%s', light));
86
86
  ${d}.removeAttribute('${T}'.replace('%s', dark));`),p+=`
87
- ${d}.setAttribute('${T}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else p+=`${d}.setAttribute('${E}', colorScheme);`;return pe.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(function() {
87
+ ${d}.setAttribute('${T}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else p+=`${d}.setAttribute('${b}', colorScheme);`;return pe.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(function() {
88
88
  try {
89
89
  let colorScheme = '';
90
- const mode = localStorage.getItem('${o}') || '${t}';
90
+ const mode = localStorage.getItem('${l}') || '${t}';
91
91
  const dark = localStorage.getItem('${s}-dark') || '${i}';
92
92
  const light = localStorage.getItem('${s}-light') || '${r}';
93
93
  if (mode === 'system') {
@@ -108,14 +108,14 @@ try {
108
108
  if (colorScheme) {
109
109
  ${p}
110
110
  }
111
- } catch(e){}})();`}},"mui-color-scheme-init")}function YN(){}const jN=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(r){if(typeof window>"u")return;if(!t)return r;let i;try{i=t.localStorage.getItem(e)}catch{}return i||r},set:r=>{if(t)try{t.localStorage.setItem(e,r)}catch{}},subscribe:r=>{if(!t)return YN;const i=o=>{const s=o.newValue;o.key===e&&r(s)};return t.addEventListener("storage",i),()=>{t.removeEventListener("storage",i)}}});function Zd(){}function fb(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function db(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 qN(e){return db(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function VN(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:i,supportedColorSchemes:o=[],modeStorageKey:s=Kd,colorSchemeStorageKey:c=Wd,storageWindow:d=typeof window>"u"?void 0:window,storageManager:h=jN,noSsr:p=!1}=e,E=o.join(","),b=o.length>1,T=A.useMemo(()=>h==null?void 0:h({key:s,storageWindow:d}),[h,s,d]),y=A.useMemo(()=>h==null?void 0:h({key:`${c}-light`,storageWindow:d}),[h,c,d]),v=A.useMemo(()=>h==null?void 0:h({key:`${c}-dark`,storageWindow:d}),[h,c,d]),[x,B]=A.useState(()=>{const V=(T==null?void 0:T.get(t))||t,j=(y==null?void 0:y.get(r))||r,_=(v==null?void 0:v.get(i))||i;return{mode:V,systemMode:fb(V),lightColorScheme:j,darkColorScheme:_}}),[I,P]=A.useState(p||!b);A.useEffect(()=>{P(!0)},[]);const M=qN(x),w=A.useCallback(V=>{B(j=>{if(V===j.mode)return j;const _=V??t;return T==null||T.set(_),{...j,mode:_,systemMode:fb(_)}})},[T,t]),D=A.useCallback(V=>{V?typeof V=="string"?V&&!E.includes(V)?console.error(`\`${V}\` does not exist in \`theme.colorSchemes\`.`):B(j=>{const _={...j};return db(j,q=>{q==="light"&&(y==null||y.set(V),_.lightColorScheme=V),q==="dark"&&(v==null||v.set(V),_.darkColorScheme=V)}),_}):B(j=>{const _={...j},q=V.light===null?r:V.light,$=V.dark===null?i:V.dark;return q&&(E.includes(q)?(_.lightColorScheme=q,y==null||y.set(q)):console.error(`\`${q}\` does not exist in \`theme.colorSchemes\`.`)),$&&(E.includes($)?(_.darkColorScheme=$,v==null||v.set($)):console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`)),_}):B(j=>(y==null||y.set(r),v==null||v.set(i),{...j,lightColorScheme:r,darkColorScheme:i}))},[E,y,v,r,i]),N=A.useCallback(V=>{x.mode==="system"&&B(j=>{const _=V!=null&&V.matches?"dark":"light";return j.systemMode===_?j:{...j,systemMode:_}})},[x.mode]),z=A.useRef(N);return z.current=N,A.useEffect(()=>{if(typeof window.matchMedia!="function"||!b)return;const V=(..._)=>z.current(..._),j=window.matchMedia("(prefers-color-scheme: dark)");return j.addListener(V),V(j),()=>{j.removeListener(V)}},[b]),A.useEffect(()=>{if(b){const V=(T==null?void 0:T.subscribe(q=>{(!q||["light","dark","system"].includes(q))&&w(q||t)}))||Zd,j=(y==null?void 0:y.subscribe(q=>{(!q||E.match(q))&&D({light:q})}))||Zd,_=(v==null?void 0:v.subscribe(q=>{(!q||E.match(q))&&D({dark:q})}))||Zd;return()=>{V(),j(),_()}}},[D,w,E,t,d,b,T,y,v]),{...x,mode:I?x.mode:void 0,systemMode:I?x.systemMode:void 0,colorScheme:I?M:void 0,setMode:w,setColorScheme:D}}const GN="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function $N(e){const{themeId:t,theme:r={},modeStorageKey:i=Kd,colorSchemeStorageKey:o=Wd,disableTransitionOnChange:s=!1,defaultColorScheme:c,resolveTheme:d}=e,h={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},p=A.createContext(void 0),E=()=>A.useContext(p)||h,b={},T={};function y(I){var Ft,Bt,re,he;const{children:P,theme:M,modeStorageKey:w=i,colorSchemeStorageKey:D=o,disableTransitionOnChange:N=s,storageManager:z,storageWindow:V=typeof window>"u"?void 0:window,documentNode:j=typeof document>"u"?void 0:document,colorSchemeNode:_=typeof document>"u"?void 0:document.documentElement,disableNestedContext:q=!1,disableStyleSheetGeneration:$=!1,defaultMode:J="system",noSsr:Z}=I,ne=A.useRef(!1),F=Qd(),ae=A.useContext(p),ie=!!ae&&!q,oe=A.useMemo(()=>M||(typeof r=="function"?r():r),[M]),S=oe[t],K=S||oe,{colorSchemes:de=b,components:O=T,cssVarPrefix:Ee}=K,Re=Object.keys(de).filter(Se=>!!de[Se]).join(","),Te=A.useMemo(()=>Re.split(","),[Re]),Xe=typeof c=="string"?c:c.light,Be=typeof c=="string"?c:c.dark,ut=de[Xe]&&de[Be]?J:((Bt=(Ft=de[K.defaultColorScheme])==null?void 0:Ft.palette)==null?void 0:Bt.mode)||((re=K.palette)==null?void 0:re.mode),{mode:Ct,setMode:gt,systemMode:Ne,lightColorScheme:Oe,darkColorScheme:Ce,colorScheme:we,setColorScheme:ke}=VN({supportedColorSchemes:Te,defaultLightColorScheme:Xe,defaultDarkColorScheme:Be,modeStorageKey:w,colorSchemeStorageKey:D,defaultMode:ut,storageManager:z,storageWindow:V,noSsr:Z});let Me=Ct,Fe=we;ie&&(Me=ae.mode,Fe=ae.colorScheme);const qe=A.useMemo(()=>{var Ve;const Se=Fe||K.defaultColorScheme,Ae=((Ve=K.generateThemeVars)==null?void 0:Ve.call(K))||K.vars,Pe={...K,components:O,colorSchemes:de,cssVarPrefix:Ee,vars:Ae};if(typeof Pe.generateSpacing=="function"&&(Pe.spacing=Pe.generateSpacing()),Se){const Tt=de[Se];Tt&&typeof Tt=="object"&&Object.keys(Tt).forEach(At=>{Tt[At]&&typeof Tt[At]=="object"?Pe[At]={...Pe[At],...Tt[At]}:Pe[At]=Tt[At]})}return d?d(Pe):Pe},[K,Fe,O,de,Ee]),$e=K.colorSchemeSelector;_a(()=>{if(Fe&&_&&$e&&$e!=="media"){const Se=$e;let Ae=$e;if(Se==="class"&&(Ae=".%s"),Se==="data"&&(Ae="[data-%s]"),Se!=null&&Se.startsWith("data-")&&!Se.includes("%s")&&(Ae=`[${Se}="%s"]`),Ae.startsWith("."))_.classList.remove(...Te.map(Pe=>Ae.substring(1).replace("%s",Pe))),_.classList.add(Ae.substring(1).replace("%s",Fe));else{const Pe=Ae.replace("%s",Fe).match(/\[([^\]]+)\]/);if(Pe){const[Ve,Tt]=Pe[1].split("=");Tt||Te.forEach(At=>{_.removeAttribute(Ve.replace(Fe,At))}),_.setAttribute(Ve,Tt?Tt.replace(/"|'/g,""):"")}else _.setAttribute(Ae,Fe)}}},[Fe,$e,_,Te]),A.useEffect(()=>{let Se;if(N&&ne.current&&j){const Ae=j.createElement("style");Ae.appendChild(j.createTextNode(GN)),j.head.appendChild(Ae),window.getComputedStyle(j.body),Se=setTimeout(()=>{j.head.removeChild(Ae)},1)}return()=>{clearTimeout(Se)}},[Fe,N,j]),A.useEffect(()=>(ne.current=!0,()=>{ne.current=!1}),[]);const ct=A.useMemo(()=>({allColorSchemes:Te,colorScheme:Fe,darkColorScheme:Ce,lightColorScheme:Oe,mode:Me,setColorScheme:ke,setMode:gt,systemMode:Ne}),[Te,Fe,Ce,Oe,Me,ke,gt,Ne,qe.colorSchemeSelector]);let Ie=!0;($||K.cssVariables===!1||ie&&(F==null?void 0:F.cssVarPrefix)===Ee)&&(Ie=!1);const un=pe.jsxs(A.Fragment,{children:[pe.jsx(sb,{themeId:S?t:void 0,theme:qe,children:P}),Ie&&pe.jsx(WE,{styles:((he=qe.generateStyleSheets)==null?void 0:he.call(qe))||[]})]});return ie?un:pe.jsx(p.Provider,{value:ct,children:un})}const v=typeof c=="string"?c:c.light,x=typeof c=="string"?c:c.dark;return{CssVarsProvider:y,useColorScheme:E,getInitColorSchemeScript:I=>zN({colorSchemeStorageKey:o,defaultLightColorScheme:v,defaultDarkColorScheme:x,modeStorageKey:i,...I})}}function XN(e=""){function t(...i){if(!i.length)return"";const o=i[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...i.slice(1))})`:`, ${o}`}return(i,...o)=>`var(--${e?`${e}-`:""}${i}${t(...o)})`}const hb=(e,t,r,i=[])=>{let o=e;t.forEach((s,c)=>{c===t.length-1?Array.isArray(o)?o[Number(s)]=r:o&&typeof o=="object"&&(o[s]=r):o&&typeof o=="object"&&(o[s]||(o[s]=i.includes(s)?[]:{}),o=o[s])})},QN=(e,t,r)=>{function i(o,s=[],c=[]){Object.entries(o).forEach(([d,h])=>{(!r||r&&!r([...s,d]))&&h!=null&&(typeof h=="object"&&Object.keys(h).length>0?i(h,[...s,d],Array.isArray(h)?[...c,d]:c):t([...s,d],h,c))})}i(e)},KN=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Jd(e,t){const{prefix:r,shouldSkipGeneratingVar:i}=t||{},o={},s={},c={};return QN(e,(d,h,p)=>{if((typeof h=="string"||typeof h=="number")&&(!i||!i(d,h))){const E=`--${r?`${r}-`:""}${d.join("-")}`,b=KN(d,h);Object.assign(o,{[E]:b}),hb(s,d,`var(${E})`,p),hb(c,d,`var(${E}, ${b})`,p)}},d=>d[0]==="vars"),{css:o,vars:s,varsWithDefaults:c}}function WN(e,t={}){const{getSelector:r=B,disableCssColorScheme:i,colorSchemeSelector:o}=t,{colorSchemes:s={},components:c,defaultColorScheme:d="light",...h}=e,{vars:p,css:E,varsWithDefaults:b}=Jd(h,t);let T=b;const y={},{[d]:v,...x}=s;if(Object.entries(x||{}).forEach(([M,w])=>{const{vars:D,css:N,varsWithDefaults:z}=Jd(w,t);T=Un(T,z),y[M]={css:N,vars:D}}),v){const{css:M,vars:w,varsWithDefaults:D}=Jd(v,t);T=Un(T,D),y[d]={css:M,vars:w}}function B(M,w){var N,z;let D=o;if(o==="class"&&(D=".%s"),o==="data"&&(D="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(D=`[${o}="%s"]`),M){if(D==="media")return e.defaultColorScheme===M?":root":{[`@media (prefers-color-scheme: ${((z=(N=s[M])==null?void 0:N.palette)==null?void 0:z.mode)||M})`]:{":root":w}};if(D)return e.defaultColorScheme===M?`:root, ${D.replace("%s",String(M))}`:D.replace("%s",String(M))}return":root"}return{vars:T,generateThemeVars:()=>{let M={...p};return Object.entries(y).forEach(([,{vars:w}])=>{M=Un(M,w)}),M},generateStyleSheets:()=>{var V,j;const M=[],w=e.defaultColorScheme||"light";function D(_,q){Object.keys(q).length&&M.push(typeof _=="string"?{[_]:{...q}}:_)}D(r(void 0,{...E}),E);const{[w]:N,...z}=y;if(N){const{css:_}=N,q=(j=(V=s[w])==null?void 0:V.palette)==null?void 0:j.mode,$=!i&&q?{colorScheme:q,..._}:{..._};D(r(w,{...$}),$)}return Object.entries(z).forEach(([_,{css:q}])=>{var Z,ne;const $=(ne=(Z=s[_])==null?void 0:Z.palette)==null?void 0:ne.mode,J=!i&&$?{colorScheme:$,...q}:{...q};D(r(_,{...J}),J)}),M}}}function ZN(e){return function(r){return e==="media"?`@media (prefers-color-scheme: ${r})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const Lo={black:"#000",white:"#fff"},JN={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},eu={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},tu={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Mo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},nu={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ru={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},au={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function pb(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Lo.white,default:Lo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const eO=pb();function mb(){return{text:{primary:Lo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Lo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const gb=mb();function Eb(e,t,r,i){const o=i.light||i,s=i.dark||i*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=wo(e.main,o):t==="dark"&&(e.dark=Do(e.main,s)))}function tO(e="light"){return e==="dark"?{main:nu[200],light:nu[50],dark:nu[400]}:{main:nu[700],light:nu[400],dark:nu[800]}}function nO(e="light"){return e==="dark"?{main:eu[200],light:eu[50],dark:eu[400]}:{main:eu[500],light:eu[300],dark:eu[700]}}function rO(e="light"){return e==="dark"?{main:tu[500],light:tu[300],dark:tu[700]}:{main:tu[700],light:tu[400],dark:tu[800]}}function aO(e="light"){return e==="dark"?{main:ru[400],light:ru[300],dark:ru[700]}:{main:ru[700],light:ru[500],dark:ru[900]}}function iO(e="light"){return e==="dark"?{main:au[400],light:au[300],dark:au[700]}:{main:au[800],light:au[500],dark:au[900]}}function uO(e="light"){return e==="dark"?{main:Mo[400],light:Mo[300],dark:Mo[700]}:{main:"#ed6c02",light:Mo[500],dark:Mo[900]}}function e0(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:i=.2,...o}=e,s=e.primary||tO(t),c=e.secondary||nO(t),d=e.error||rO(t),h=e.info||aO(t),p=e.success||iO(t),E=e.warning||uO(t);function b(x){return IN(x,gb.text.primary)>=r?gb.text.primary:eO.text.primary}const T=({color:x,name:B,mainShade:I=500,lightShade:P=300,darkShade:M=700})=>{if(x={...x},!x.main&&x[I]&&(x.main=x[I]),!x.hasOwnProperty("main"))throw new Error(Aa(11,B?` (${B})`:"",I));if(typeof x.main!="string")throw new Error(Aa(12,B?` (${B})`:"",JSON.stringify(x.main)));return Eb(x,"light",P,i),Eb(x,"dark",M,i),x.contrastText||(x.contrastText=b(x.main)),x};let y;return t==="light"?y=pb():t==="dark"&&(y=mb()),Un({common:{...Lo},mode:t,primary:T({color:s,name:"primary"}),secondary:T({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:T({color:d,name:"error"}),warning:T({color:E,name:"warning"}),info:T({color:h,name:"info"}),success:T({color:p,name:"success"}),grey:JN,contrastThreshold:r,getContrastText:b,augmentColor:T,tonalOffset:i,...y},o)}function oO(e){const t={};return Object.entries(e).forEach(i=>{const[o,s]=i;typeof s=="object"&&(t[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function lO(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function sO(e){return Math.round(e*1e5)/1e5}const bb={textTransform:"uppercase"},yb='"Roboto", "Helvetica", "Arial", sans-serif';function Tb(e,t){const{fontFamily:r=yb,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:p,pxToRem:E,...b}=typeof t=="function"?t(e):t,T=i/14,y=E||(B=>`${B/h*T}rem`),v=(B,I,P,M,w)=>({fontFamily:r,fontWeight:B,fontSize:y(I),lineHeight:P,...r===yb?{letterSpacing:`${sO(M/I)}em`}:{},...w,...p}),x={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(s,48,1.167,0),h4:v(s,34,1.235,.25),h5:v(s,24,1.334,0),h6:v(c,20,1.6,.15),subtitle1:v(s,16,1.75,.15),subtitle2:v(c,14,1.57,.1),body1:v(s,16,1.5,.15),body2:v(s,14,1.43,.15),button:v(c,14,1.75,.4,bb),caption:v(s,12,1.66,.4),overline:v(s,12,2.66,1,bb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Un({htmlFontSize:h,pxToRem:y,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...x},b,{clone:!1})}const cO=.2,fO=.14,dO=.12;function Ht(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${cO})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${fO})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${dO})`].join(",")}const hO=["none",Ht(0,2,1,-1,0,1,1,0,0,1,3,0),Ht(0,3,1,-2,0,2,2,0,0,1,5,0),Ht(0,3,3,-2,0,3,4,0,0,1,8,0),Ht(0,2,4,-1,0,4,5,0,0,1,10,0),Ht(0,3,5,-1,0,5,8,0,0,1,14,0),Ht(0,3,5,-1,0,6,10,0,0,1,18,0),Ht(0,4,5,-2,0,7,10,1,0,2,16,1),Ht(0,5,5,-3,0,8,10,1,0,3,14,2),Ht(0,5,6,-3,0,9,12,1,0,3,16,2),Ht(0,6,6,-3,0,10,14,1,0,4,18,3),Ht(0,6,7,-4,0,11,15,1,0,4,20,3),Ht(0,7,8,-4,0,12,17,2,0,5,22,4),Ht(0,7,8,-4,0,13,19,2,0,5,24,4),Ht(0,7,9,-4,0,14,21,2,0,5,26,4),Ht(0,8,9,-5,0,15,22,2,0,6,28,5),Ht(0,8,10,-5,0,16,24,2,0,6,30,5),Ht(0,8,11,-5,0,17,26,2,0,6,32,5),Ht(0,9,11,-5,0,18,28,2,0,7,34,6),Ht(0,9,12,-6,0,19,29,2,0,7,36,6),Ht(0,10,13,-6,0,20,31,3,0,8,38,7),Ht(0,10,13,-6,0,21,33,3,0,8,40,7),Ht(0,10,14,-6,0,22,35,3,0,8,42,7),Ht(0,11,14,-7,0,23,36,3,0,9,44,8),Ht(0,11,15,-7,0,24,38,3,0,9,46,8)],pO={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)"},mO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Sb(e){return`${Math.round(e)}ms`}function gO(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function EO(e){const t={...pO,...e.easing},r={...mO,...e.duration};return{getAutoHeightDuration:gO,create:(o=["all"],s={})=>{const{duration:c=r.standard,easing:d=t.easeInOut,delay:h=0,...p}=s;return(Array.isArray(o)?o:[o]).map(E=>`${E} ${typeof c=="string"?c:Sb(c)} ${d} ${typeof h=="string"?h:Sb(h)}`).join(",")},...e,easing:t,duration:r}}const bO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function yO(e){return Pr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Cb(e={}){const t={...e};function r(i){const o=Object.entries(i);for(let s=0;s<o.length;s++){const[c,d]=o[s];!yO(d)||c.startsWith("unstable_")?delete i[c]:Pr(d)&&(i[c]={...d},r(i[c]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
111
+ } catch(e){}})();`}},"mui-color-scheme-init")}function zN(){}const YN=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(r){if(typeof window>"u")return;if(!t)return r;let i;try{i=t.localStorage.getItem(e)}catch{}return i||r},set:r=>{if(t)try{t.localStorage.setItem(e,r)}catch{}},subscribe:r=>{if(!t)return zN;const i=l=>{const s=l.newValue;l.key===e&&r(s)};return t.addEventListener("storage",i),()=>{t.removeEventListener("storage",i)}}});function Zd(){}function fE(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function dE(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function jN(e){return dE(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function qN(e){const{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:i,supportedColorSchemes:l=[],modeStorageKey:s=Kd,colorSchemeStorageKey:c=Wd,storageWindow:d=typeof window>"u"?void 0:window,storageManager:h=YN,noSsr:p=!1}=e,b=l.join(","),E=l.length>1,T=A.useMemo(()=>h==null?void 0:h({key:s,storageWindow:d}),[h,s,d]),y=A.useMemo(()=>h==null?void 0:h({key:`${c}-light`,storageWindow:d}),[h,c,d]),v=A.useMemo(()=>h==null?void 0:h({key:`${c}-dark`,storageWindow:d}),[h,c,d]),[x,B]=A.useState(()=>{const V=(T==null?void 0:T.get(t))||t,j=(y==null?void 0:y.get(r))||r,_=(v==null?void 0:v.get(i))||i;return{mode:V,systemMode:fE(V),lightColorScheme:j,darkColorScheme:_}}),[I,P]=A.useState(p||!E);A.useEffect(()=>{P(!0)},[]);const M=jN(x),w=A.useCallback(V=>{B(j=>{if(V===j.mode)return j;const _=V??t;return T==null||T.set(_),{...j,mode:_,systemMode:fE(_)}})},[T,t]),D=A.useCallback(V=>{V?typeof V=="string"?V&&!b.includes(V)?console.error(`\`${V}\` does not exist in \`theme.colorSchemes\`.`):B(j=>{const _={...j};return dE(j,q=>{q==="light"&&(y==null||y.set(V),_.lightColorScheme=V),q==="dark"&&(v==null||v.set(V),_.darkColorScheme=V)}),_}):B(j=>{const _={...j},q=V.light===null?r:V.light,$=V.dark===null?i:V.dark;return q&&(b.includes(q)?(_.lightColorScheme=q,y==null||y.set(q)):console.error(`\`${q}\` does not exist in \`theme.colorSchemes\`.`)),$&&(b.includes($)?(_.darkColorScheme=$,v==null||v.set($)):console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`)),_}):B(j=>(y==null||y.set(r),v==null||v.set(i),{...j,lightColorScheme:r,darkColorScheme:i}))},[b,y,v,r,i]),N=A.useCallback(V=>{x.mode==="system"&&B(j=>{const _=V!=null&&V.matches?"dark":"light";return j.systemMode===_?j:{...j,systemMode:_}})},[x.mode]),z=A.useRef(N);return z.current=N,A.useEffect(()=>{if(typeof window.matchMedia!="function"||!E)return;const V=(..._)=>z.current(..._),j=window.matchMedia("(prefers-color-scheme: dark)");return j.addListener(V),V(j),()=>{j.removeListener(V)}},[E]),A.useEffect(()=>{if(E){const V=(T==null?void 0:T.subscribe(q=>{(!q||["light","dark","system"].includes(q))&&w(q||t)}))||Zd,j=(y==null?void 0:y.subscribe(q=>{(!q||b.match(q))&&D({light:q})}))||Zd,_=(v==null?void 0:v.subscribe(q=>{(!q||b.match(q))&&D({dark:q})}))||Zd;return()=>{V(),j(),_()}}},[D,w,b,t,d,E,T,y,v]),{...x,mode:I?x.mode:void 0,systemMode:I?x.systemMode:void 0,colorScheme:I?M:void 0,setMode:w,setColorScheme:D}}const VN="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function GN(e){const{themeId:t,theme:r={},modeStorageKey:i=Kd,colorSchemeStorageKey:l=Wd,disableTransitionOnChange:s=!1,defaultColorScheme:c,resolveTheme:d}=e,h={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},p=A.createContext(void 0),b=()=>A.useContext(p)||h,E={},T={};function y(I){var Ft,Bt,re,he;const{children:P,theme:M,modeStorageKey:w=i,colorSchemeStorageKey:D=l,disableTransitionOnChange:N=s,storageManager:z,storageWindow:V=typeof window>"u"?void 0:window,documentNode:j=typeof document>"u"?void 0:document,colorSchemeNode:_=typeof document>"u"?void 0:document.documentElement,disableNestedContext:q=!1,disableStyleSheetGeneration:$=!1,defaultMode:J="system",noSsr:Z}=I,ne=A.useRef(!1),F=Qd(),ae=A.useContext(p),ie=!!ae&&!q,le=A.useMemo(()=>M||(typeof r=="function"?r():r),[M]),S=le[t],K=S||le,{colorSchemes:de=E,components:O=T,cssVarPrefix:be}=K,Re=Object.keys(de).filter(Se=>!!de[Se]).join(","),Te=A.useMemo(()=>Re.split(","),[Re]),Xe=typeof c=="string"?c:c.light,Be=typeof c=="string"?c:c.dark,ut=de[Xe]&&de[Be]?J:((Bt=(Ft=de[K.defaultColorScheme])==null?void 0:Ft.palette)==null?void 0:Bt.mode)||((re=K.palette)==null?void 0:re.mode),{mode:St,setMode:gt,systemMode:Ne,lightColorScheme:Oe,darkColorScheme:Ce,colorScheme:we,setColorScheme:ke}=qN({supportedColorSchemes:Te,defaultLightColorScheme:Xe,defaultDarkColorScheme:Be,modeStorageKey:w,colorSchemeStorageKey:D,defaultMode:ut,storageManager:z,storageWindow:V,noSsr:Z});let Me=St,Fe=we;ie&&(Me=ae.mode,Fe=ae.colorScheme);const qe=A.useMemo(()=>{var Ve;const Se=Fe||K.defaultColorScheme,Ae=((Ve=K.generateThemeVars)==null?void 0:Ve.call(K))||K.vars,Ue={...K,components:O,colorSchemes:de,cssVarPrefix:be,vars:Ae};if(typeof Ue.generateSpacing=="function"&&(Ue.spacing=Ue.generateSpacing()),Se){const Tt=de[Se];Tt&&typeof Tt=="object"&&Object.keys(Tt).forEach(Ct=>{Tt[Ct]&&typeof Tt[Ct]=="object"?Ue[Ct]={...Ue[Ct],...Tt[Ct]}:Ue[Ct]=Tt[Ct]})}return d?d(Ue):Ue},[K,Fe,O,de,be]),$e=K.colorSchemeSelector;_a(()=>{if(Fe&&_&&$e&&$e!=="media"){const Se=$e;let Ae=$e;if(Se==="class"&&(Ae=".%s"),Se==="data"&&(Ae="[data-%s]"),Se!=null&&Se.startsWith("data-")&&!Se.includes("%s")&&(Ae=`[${Se}="%s"]`),Ae.startsWith("."))_.classList.remove(...Te.map(Ue=>Ae.substring(1).replace("%s",Ue))),_.classList.add(Ae.substring(1).replace("%s",Fe));else{const Ue=Ae.replace("%s",Fe).match(/\[([^\]]+)\]/);if(Ue){const[Ve,Tt]=Ue[1].split("=");Tt||Te.forEach(Ct=>{_.removeAttribute(Ve.replace(Fe,Ct))}),_.setAttribute(Ve,Tt?Tt.replace(/"|'/g,""):"")}else _.setAttribute(Ae,Fe)}}},[Fe,$e,_,Te]),A.useEffect(()=>{let Se;if(N&&ne.current&&j){const Ae=j.createElement("style");Ae.appendChild(j.createTextNode(VN)),j.head.appendChild(Ae),window.getComputedStyle(j.body),Se=setTimeout(()=>{j.head.removeChild(Ae)},1)}return()=>{clearTimeout(Se)}},[Fe,N,j]),A.useEffect(()=>(ne.current=!0,()=>{ne.current=!1}),[]);const ct=A.useMemo(()=>({allColorSchemes:Te,colorScheme:Fe,darkColorScheme:Ce,lightColorScheme:Oe,mode:Me,setColorScheme:ke,setMode:gt,systemMode:Ne}),[Te,Fe,Ce,Oe,Me,ke,gt,Ne,qe.colorSchemeSelector]);let Ie=!0;($||K.cssVariables===!1||ie&&(F==null?void 0:F.cssVarPrefix)===be)&&(Ie=!1);const un=pe.jsxs(A.Fragment,{children:[pe.jsx(sE,{themeId:S?t:void 0,theme:qe,children:P}),Ie&&pe.jsx(Wb,{styles:((he=qe.generateStyleSheets)==null?void 0:he.call(qe))||[]})]});return ie?un:pe.jsx(p.Provider,{value:ct,children:un})}const v=typeof c=="string"?c:c.light,x=typeof c=="string"?c:c.dark;return{CssVarsProvider:y,useColorScheme:b,getInitColorSchemeScript:I=>FN({colorSchemeStorageKey:l,defaultLightColorScheme:v,defaultDarkColorScheme:x,modeStorageKey:i,...I})}}function $N(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 hE=(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])})},XN=(e,t,r)=>{function i(l,s=[],c=[]){Object.entries(l).forEach(([d,h])=>{(!r||r&&!r([...s,d]))&&h!=null&&(typeof h=="object"&&Object.keys(h).length>0?i(h,[...s,d],Array.isArray(h)?[...c,d]:c):t([...s,d],h,c))})}i(e)},QN=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>e.includes(i))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Jd(e,t){const{prefix:r,shouldSkipGeneratingVar:i}=t||{},l={},s={},c={};return XN(e,(d,h,p)=>{if((typeof h=="string"||typeof h=="number")&&(!i||!i(d,h))){const b=`--${r?`${r}-`:""}${d.join("-")}`,E=QN(d,h);Object.assign(l,{[b]:E}),hE(s,d,`var(${b})`,p),hE(c,d,`var(${b}, ${E})`,p)}},d=>d[0]==="vars"),{css:l,vars:s,varsWithDefaults:c}}function KN(e,t={}){const{getSelector:r=B,disableCssColorScheme:i,colorSchemeSelector:l}=t,{colorSchemes:s={},components:c,defaultColorScheme:d="light",...h}=e,{vars:p,css:b,varsWithDefaults:E}=Jd(h,t);let T=E;const y={},{[d]:v,...x}=s;if(Object.entries(x||{}).forEach(([M,w])=>{const{vars:D,css:N,varsWithDefaults:z}=Jd(w,t);T=Un(T,z),y[M]={css:N,vars:D}}),v){const{css:M,vars:w,varsWithDefaults:D}=Jd(v,t);T=Un(T,D),y[d]={css:M,vars:w}}function B(M,w){var N,z;let D=l;if(l==="class"&&(D=".%s"),l==="data"&&(D="[data-%s]"),l!=null&&l.startsWith("data-")&&!l.includes("%s")&&(D=`[${l}="%s"]`),M){if(D==="media")return e.defaultColorScheme===M?":root":{[`@media (prefers-color-scheme: ${((z=(N=s[M])==null?void 0:N.palette)==null?void 0:z.mode)||M})`]:{":root":w}};if(D)return e.defaultColorScheme===M?`:root, ${D.replace("%s",String(M))}`:D.replace("%s",String(M))}return":root"}return{vars:T,generateThemeVars:()=>{let M={...p};return Object.entries(y).forEach(([,{vars:w}])=>{M=Un(M,w)}),M},generateStyleSheets:()=>{var V,j;const M=[],w=e.defaultColorScheme||"light";function D(_,q){Object.keys(q).length&&M.push(typeof _=="string"?{[_]:{...q}}:_)}D(r(void 0,{...b}),b);const{[w]:N,...z}=y;if(N){const{css:_}=N,q=(j=(V=s[w])==null?void 0:V.palette)==null?void 0:j.mode,$=!i&&q?{colorScheme:q,..._}:{..._};D(r(w,{...$}),$)}return Object.entries(z).forEach(([_,{css:q}])=>{var Z,ne;const $=(ne=(Z=s[_])==null?void 0:Z.palette)==null?void 0:ne.mode,J=!i&&$?{colorScheme:$,...q}:{...q};D(r(_,{...J}),J)}),M}}}function WN(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 wl={black:"#000",white:"#fff"},ZN={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},eu={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},tu={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ll={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},nu={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ru={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},au={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function pE(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:wl.white,default:wl.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 JN=pE();function mE(){return{text:{primary:wl.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:wl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const gE=mE();function bE(e,t,r,i){const l=i.light||i,s=i.dark||i*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Dl(e.main,l):t==="dark"&&(e.dark=Il(e.main,s)))}function eO(e="light"){return e==="dark"?{main:nu[200],light:nu[50],dark:nu[400]}:{main:nu[700],light:nu[400],dark:nu[800]}}function tO(e="light"){return e==="dark"?{main:eu[200],light:eu[50],dark:eu[400]}:{main:eu[500],light:eu[300],dark:eu[700]}}function nO(e="light"){return e==="dark"?{main:tu[500],light:tu[300],dark:tu[700]}:{main:tu[700],light:tu[400],dark:tu[800]}}function rO(e="light"){return e==="dark"?{main:ru[400],light:ru[300],dark:ru[700]}:{main:ru[700],light:ru[500],dark:ru[900]}}function aO(e="light"){return e==="dark"?{main:au[400],light:au[300],dark:au[700]}:{main:au[800],light:au[500],dark:au[900]}}function iO(e="light"){return e==="dark"?{main:Ll[400],light:Ll[300],dark:Ll[700]}:{main:"#ed6c02",light:Ll[500],dark:Ll[900]}}function e0(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:i=.2,...l}=e,s=e.primary||eO(t),c=e.secondary||tO(t),d=e.error||nO(t),h=e.info||rO(t),p=e.success||aO(t),b=e.warning||iO(t);function E(x){return kN(x,gE.text.primary)>=r?gE.text.primary:JN.text.primary}const T=({color:x,name:B,mainShade:I=500,lightShade:P=300,darkShade:M=700})=>{if(x={...x},!x.main&&x[I]&&(x.main=x[I]),!x.hasOwnProperty("main"))throw new Error(Aa(11,B?` (${B})`:"",I));if(typeof x.main!="string")throw new Error(Aa(12,B?` (${B})`:"",JSON.stringify(x.main)));return bE(x,"light",P,i),bE(x,"dark",M,i),x.contrastText||(x.contrastText=E(x.main)),x};let y;return t==="light"?y=pE():t==="dark"&&(y=mE()),Un({common:{...wl},mode:t,primary:T({color:s,name:"primary"}),secondary:T({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:T({color:d,name:"error"}),warning:T({color:b,name:"warning"}),info:T({color:h,name:"info"}),success:T({color:p,name:"success"}),grey:ZN,contrastThreshold:r,getContrastText:E,augmentColor:T,tonalOffset:i,...y},l)}function uO(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 lO(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function oO(e){return Math.round(e*1e5)/1e5}const EE={textTransform:"uppercase"},yE='"Roboto", "Helvetica", "Arial", sans-serif';function TE(e,t){const{fontFamily:r=yE,fontSize:i=14,fontWeightLight:l=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:p,pxToRem:b,...E}=typeof t=="function"?t(e):t,T=i/14,y=b||(B=>`${B/h*T}rem`),v=(B,I,P,M,w)=>({fontFamily:r,fontWeight:B,fontSize:y(I),lineHeight:P,...r===yE?{letterSpacing:`${oO(M/I)}em`}:{},...w,...p}),x={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(s,48,1.167,0),h4:v(s,34,1.235,.25),h5:v(s,24,1.334,0),h6:v(c,20,1.6,.15),subtitle1:v(s,16,1.75,.15),subtitle2:v(c,14,1.57,.1),body1:v(s,16,1.5,.15),body2:v(s,14,1.43,.15),button:v(c,14,1.75,.4,EE),caption:v(s,12,1.66,.4),overline:v(s,12,2.66,1,EE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Un({htmlFontSize:h,pxToRem:y,fontFamily:r,fontSize:i,fontWeightLight:l,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:d,...x},E,{clone:!1})}const sO=.2,cO=.14,fO=.12;function Ht(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${sO})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${cO})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${fO})`].join(",")}const dO=["none",Ht(0,2,1,-1,0,1,1,0,0,1,3,0),Ht(0,3,1,-2,0,2,2,0,0,1,5,0),Ht(0,3,3,-2,0,3,4,0,0,1,8,0),Ht(0,2,4,-1,0,4,5,0,0,1,10,0),Ht(0,3,5,-1,0,5,8,0,0,1,14,0),Ht(0,3,5,-1,0,6,10,0,0,1,18,0),Ht(0,4,5,-2,0,7,10,1,0,2,16,1),Ht(0,5,5,-3,0,8,10,1,0,3,14,2),Ht(0,5,6,-3,0,9,12,1,0,3,16,2),Ht(0,6,6,-3,0,10,14,1,0,4,18,3),Ht(0,6,7,-4,0,11,15,1,0,4,20,3),Ht(0,7,8,-4,0,12,17,2,0,5,22,4),Ht(0,7,8,-4,0,13,19,2,0,5,24,4),Ht(0,7,9,-4,0,14,21,2,0,5,26,4),Ht(0,8,9,-5,0,15,22,2,0,6,28,5),Ht(0,8,10,-5,0,16,24,2,0,6,30,5),Ht(0,8,11,-5,0,17,26,2,0,6,32,5),Ht(0,9,11,-5,0,18,28,2,0,7,34,6),Ht(0,9,12,-6,0,19,29,2,0,7,36,6),Ht(0,10,13,-6,0,20,31,3,0,8,38,7),Ht(0,10,13,-6,0,21,33,3,0,8,40,7),Ht(0,10,14,-6,0,22,35,3,0,8,42,7),Ht(0,11,14,-7,0,23,36,3,0,9,44,8),Ht(0,11,15,-7,0,24,38,3,0,9,46,8)],hO={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)"},pO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function SE(e){return`${Math.round(e)}ms`}function mO(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function gO(e){const t={...hO,...e.easing},r={...pO,...e.duration};return{getAutoHeightDuration:mO,create:(l=["all"],s={})=>{const{duration:c=r.standard,easing:d=t.easeInOut,delay:h=0,...p}=s;return(Array.isArray(l)?l:[l]).map(b=>`${b} ${typeof c=="string"?c:SE(c)} ${d} ${typeof h=="string"?h:SE(h)}`).join(",")},...e,easing:t,duration:r}}const bO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function EO(e){return Pr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function CE(e={}){const t={...e};function r(i){const l=Object.entries(i);for(let s=0;s<l.length;s++){const[c,d]=l[s];!EO(d)||c.startsWith("unstable_")?delete i[c]:Pr(d)&&(i[c]={...d},r(i[c]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
112
112
 
113
113
  const theme = ${JSON.stringify(t,null,2)};
114
114
 
115
115
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
116
116
  theme.transitions = createTransitions(theme.transitions || {});
117
117
 
118
- export default theme;`}function t0(e={},...t){const{breakpoints:r,mixins:i={},spacing:o,palette:s={},transitions:c={},typography:d={},shape:h,...p}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Aa(20));const E=e0(s),b=qd(e);let T=Un(b,{mixins:lO(b.breakpoints,i),palette:E,shadows:hO.slice(),typography:Tb(E,d),transitions:EO(c),zIndex:{...bO}});return T=Un(T,p),T=t.reduce((y,v)=>Un(y,v),T),T.unstable_sxConfig={...Oo,...p==null?void 0:p.unstable_sxConfig},T.unstable_sx=function(v){return ii({sx:v,theme:this})},T.toRuntimeSource=Cb,T}function n0(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const TO=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=n0(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Ab(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function xb(e){return e==="dark"?TO:[]}function SO(e){const{palette:t={mode:"light"},opacity:r,overlays:i,...o}=e,s=e0(t);return{palette:s,opacity:{...Ab(s.mode),...r},overlays:i||xb(s.mode),...o}}function CO(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 AO=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],xO=e=>(t,r)=>{const i=e.rootSelector||":root",o=e.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const c={};return AO(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 _O(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function le(e,t,r){!e[t]&&r&&(e[t]=r)}function Bo(e){return typeof e!="string"||!e.startsWith("hsl")?e:ab(e)}function Wr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ko(Bo(e[t])))}function vO(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Fr=e=>{try{return e()}catch{}},RO=(e="mui")=>XN(e);function r0(e,t,r,i){if(!t)return;t=t===!0?{}:t;const o=i==="dark"?"dark":"light";if(!r){e[i]=SO({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:s,...c}=t0({...r,palette:{mode:o,...t==null?void 0:t.palette}});return e[i]={...t,palette:s,opacity:{...Ab(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||xb(o)},c}function NO(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:c=CO,colorSchemeSelector:d=r.light&&r.dark?"media":void 0,rootSelector:h=":root",...p}=e,E=Object.keys(r)[0],b=i||(r.light&&E!=="light"?"light":E),T=RO(s),{[b]:y,light:v,dark:x,...B}=r,I={...B};let P=y;if((b==="dark"&&!("dark"in r)||b==="light"&&!("light"in r))&&(P=!0),!P)throw new Error(Aa(21,b));const M=r0(I,P,p,b);v&&!I.light&&r0(I,v,void 0,"light"),x&&!I.dark&&r0(I,x,void 0,"dark");let w={defaultColorScheme:b,...M,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:h,getCssVar:T,colorSchemes:I,font:{...oO(M.typography),...M.font},spacing:vO(p.spacing)};Object.keys(w.colorSchemes).forEach(j=>{const _=w.colorSchemes[j].palette,q=$=>{const J=$.split("-"),Z=J[1],ne=J[2];return T($,_[Z][ne])};if(_.mode==="light"&&(le(_.common,"background","#fff"),le(_.common,"onBackground","#000")),_.mode==="dark"&&(le(_.common,"background","#000"),le(_.common,"onBackground","#fff")),_O(_,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_.mode==="light"){le(_.Alert,"errorColor",It(_.error.light,.6)),le(_.Alert,"infoColor",It(_.info.light,.6)),le(_.Alert,"successColor",It(_.success.light,.6)),le(_.Alert,"warningColor",It(_.warning.light,.6)),le(_.Alert,"errorFilledBg",q("palette-error-main")),le(_.Alert,"infoFilledBg",q("palette-info-main")),le(_.Alert,"successFilledBg",q("palette-success-main")),le(_.Alert,"warningFilledBg",q("palette-warning-main")),le(_.Alert,"errorFilledColor",Fr(()=>_.getContrastText(_.error.main))),le(_.Alert,"infoFilledColor",Fr(()=>_.getContrastText(_.info.main))),le(_.Alert,"successFilledColor",Fr(()=>_.getContrastText(_.success.main))),le(_.Alert,"warningFilledColor",Fr(()=>_.getContrastText(_.warning.main))),le(_.Alert,"errorStandardBg",Dt(_.error.light,.9)),le(_.Alert,"infoStandardBg",Dt(_.info.light,.9)),le(_.Alert,"successStandardBg",Dt(_.success.light,.9)),le(_.Alert,"warningStandardBg",Dt(_.warning.light,.9)),le(_.Alert,"errorIconColor",q("palette-error-main")),le(_.Alert,"infoIconColor",q("palette-info-main")),le(_.Alert,"successIconColor",q("palette-success-main")),le(_.Alert,"warningIconColor",q("palette-warning-main")),le(_.AppBar,"defaultBg",q("palette-grey-100")),le(_.Avatar,"defaultBg",q("palette-grey-400")),le(_.Button,"inheritContainedBg",q("palette-grey-300")),le(_.Button,"inheritContainedHoverBg",q("palette-grey-A100")),le(_.Chip,"defaultBorder",q("palette-grey-400")),le(_.Chip,"defaultAvatarColor",q("palette-grey-700")),le(_.Chip,"defaultIconColor",q("palette-grey-700")),le(_.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),le(_.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),le(_.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),le(_.LinearProgress,"primaryBg",Dt(_.primary.main,.62)),le(_.LinearProgress,"secondaryBg",Dt(_.secondary.main,.62)),le(_.LinearProgress,"errorBg",Dt(_.error.main,.62)),le(_.LinearProgress,"infoBg",Dt(_.info.main,.62)),le(_.LinearProgress,"successBg",Dt(_.success.main,.62)),le(_.LinearProgress,"warningBg",Dt(_.warning.main,.62)),le(_.Skeleton,"bg",`rgba(${q("palette-text-primaryChannel")} / 0.11)`),le(_.Slider,"primaryTrack",Dt(_.primary.main,.62)),le(_.Slider,"secondaryTrack",Dt(_.secondary.main,.62)),le(_.Slider,"errorTrack",Dt(_.error.main,.62)),le(_.Slider,"infoTrack",Dt(_.info.main,.62)),le(_.Slider,"successTrack",Dt(_.success.main,.62)),le(_.Slider,"warningTrack",Dt(_.warning.main,.62));const $=Fs(_.background.default,.8);le(_.SnackbarContent,"bg",$),le(_.SnackbarContent,"color",Fr(()=>_.getContrastText($))),le(_.SpeedDialAction,"fabHoverBg",Fs(_.background.paper,.15)),le(_.StepConnector,"border",q("palette-grey-400")),le(_.StepContent,"border",q("palette-grey-400")),le(_.Switch,"defaultColor",q("palette-common-white")),le(_.Switch,"defaultDisabledColor",q("palette-grey-100")),le(_.Switch,"primaryDisabledColor",Dt(_.primary.main,.62)),le(_.Switch,"secondaryDisabledColor",Dt(_.secondary.main,.62)),le(_.Switch,"errorDisabledColor",Dt(_.error.main,.62)),le(_.Switch,"infoDisabledColor",Dt(_.info.main,.62)),le(_.Switch,"successDisabledColor",Dt(_.success.main,.62)),le(_.Switch,"warningDisabledColor",Dt(_.warning.main,.62)),le(_.TableCell,"border",Dt(Hs(_.divider,1),.88)),le(_.Tooltip,"bg",Hs(_.grey[700],.92))}if(_.mode==="dark"){le(_.Alert,"errorColor",Dt(_.error.light,.6)),le(_.Alert,"infoColor",Dt(_.info.light,.6)),le(_.Alert,"successColor",Dt(_.success.light,.6)),le(_.Alert,"warningColor",Dt(_.warning.light,.6)),le(_.Alert,"errorFilledBg",q("palette-error-dark")),le(_.Alert,"infoFilledBg",q("palette-info-dark")),le(_.Alert,"successFilledBg",q("palette-success-dark")),le(_.Alert,"warningFilledBg",q("palette-warning-dark")),le(_.Alert,"errorFilledColor",Fr(()=>_.getContrastText(_.error.dark))),le(_.Alert,"infoFilledColor",Fr(()=>_.getContrastText(_.info.dark))),le(_.Alert,"successFilledColor",Fr(()=>_.getContrastText(_.success.dark))),le(_.Alert,"warningFilledColor",Fr(()=>_.getContrastText(_.warning.dark))),le(_.Alert,"errorStandardBg",It(_.error.light,.9)),le(_.Alert,"infoStandardBg",It(_.info.light,.9)),le(_.Alert,"successStandardBg",It(_.success.light,.9)),le(_.Alert,"warningStandardBg",It(_.warning.light,.9)),le(_.Alert,"errorIconColor",q("palette-error-main")),le(_.Alert,"infoIconColor",q("palette-info-main")),le(_.Alert,"successIconColor",q("palette-success-main")),le(_.Alert,"warningIconColor",q("palette-warning-main")),le(_.AppBar,"defaultBg",q("palette-grey-900")),le(_.AppBar,"darkBg",q("palette-background-paper")),le(_.AppBar,"darkColor",q("palette-text-primary")),le(_.Avatar,"defaultBg",q("palette-grey-600")),le(_.Button,"inheritContainedBg",q("palette-grey-800")),le(_.Button,"inheritContainedHoverBg",q("palette-grey-700")),le(_.Chip,"defaultBorder",q("palette-grey-700")),le(_.Chip,"defaultAvatarColor",q("palette-grey-300")),le(_.Chip,"defaultIconColor",q("palette-grey-300")),le(_.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),le(_.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),le(_.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),le(_.LinearProgress,"primaryBg",It(_.primary.main,.5)),le(_.LinearProgress,"secondaryBg",It(_.secondary.main,.5)),le(_.LinearProgress,"errorBg",It(_.error.main,.5)),le(_.LinearProgress,"infoBg",It(_.info.main,.5)),le(_.LinearProgress,"successBg",It(_.success.main,.5)),le(_.LinearProgress,"warningBg",It(_.warning.main,.5)),le(_.Skeleton,"bg",`rgba(${q("palette-text-primaryChannel")} / 0.13)`),le(_.Slider,"primaryTrack",It(_.primary.main,.5)),le(_.Slider,"secondaryTrack",It(_.secondary.main,.5)),le(_.Slider,"errorTrack",It(_.error.main,.5)),le(_.Slider,"infoTrack",It(_.info.main,.5)),le(_.Slider,"successTrack",It(_.success.main,.5)),le(_.Slider,"warningTrack",It(_.warning.main,.5));const $=Fs(_.background.default,.98);le(_.SnackbarContent,"bg",$),le(_.SnackbarContent,"color",Fr(()=>_.getContrastText($))),le(_.SpeedDialAction,"fabHoverBg",Fs(_.background.paper,.15)),le(_.StepConnector,"border",q("palette-grey-600")),le(_.StepContent,"border",q("palette-grey-600")),le(_.Switch,"defaultColor",q("palette-grey-300")),le(_.Switch,"defaultDisabledColor",q("palette-grey-600")),le(_.Switch,"primaryDisabledColor",It(_.primary.main,.55)),le(_.Switch,"secondaryDisabledColor",It(_.secondary.main,.55)),le(_.Switch,"errorDisabledColor",It(_.error.main,.55)),le(_.Switch,"infoDisabledColor",It(_.info.main,.55)),le(_.Switch,"successDisabledColor",It(_.success.main,.55)),le(_.Switch,"warningDisabledColor",It(_.warning.main,.55)),le(_.TableCell,"border",It(Hs(_.divider,1),.68)),le(_.Tooltip,"bg",Hs(_.grey[700],.92))}Wr(_.background,"default"),Wr(_.background,"paper"),Wr(_.common,"background"),Wr(_.common,"onBackground"),Wr(_,"divider"),Object.keys(_).forEach($=>{const J=_[$];$!=="tonalOffset"&&J&&typeof J=="object"&&(J.main&&le(_[$],"mainChannel",ko(Bo(J.main))),J.light&&le(_[$],"lightChannel",ko(Bo(J.light))),J.dark&&le(_[$],"darkChannel",ko(Bo(J.dark))),J.contrastText&&le(_[$],"contrastTextChannel",ko(Bo(J.contrastText))),$==="text"&&(Wr(_[$],"primary"),Wr(_[$],"secondary")),$==="action"&&(J.active&&Wr(_[$],"active"),J.selected&&Wr(_[$],"selected")))})}),w=t.reduce((j,_)=>Un(j,_),w);const D={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:xO(w)},{vars:N,generateThemeVars:z,generateStyleSheets:V}=WN(w,D);return w.vars=N,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([j,_])=>{w[j]=_}),w.generateThemeVars=z,w.generateStyleSheets=V,w.generateSpacing=function(){return eb(p.spacing,Yd(this))},w.getColorSchemeSelector=ZN(d),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=c,w.unstable_sxConfig={...Oo,...p==null?void 0:p.unstable_sxConfig},w.unstable_sx=function(_){return ii({sx:_,theme:this})},w.toRuntimeSource=Cb,w}function _b(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:e0({...r===!0?{}:r.palette,mode:t})})}function zs(e={},...t){const{palette:r,cssVariables:i=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:s=r==null?void 0:r.mode,...c}=e,d=s||"light",h=o==null?void 0:o[d],p={...o,...r?{[d]:{...typeof h!="boolean"&&h,palette:r}}:void 0};if(i===!1){if(!("colorSchemes"in e))return t0(e,...t);let E=r;"palette"in e||p[d]&&(p[d]!==!0?E=p[d].palette:d==="dark"&&(E={mode:"dark"}));const b=t0({...e,palette:E},...t);return b.defaultColorScheme=d,b.colorSchemes=p,b.palette.mode==="light"&&(b.colorSchemes.light={...p.light!==!0&&p.light,palette:b.palette},_b(b,"dark",p.dark)),b.palette.mode==="dark"&&(b.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:b.palette},_b(b,"light",p.light)),b}return!r&&!("light"in p)&&d==="light"&&(p.light=!0),NO({...c,colorSchemes:p,defaultColorScheme:d,...typeof i!="boolean"&&i},...t)}const Ys=zs(),zr="$$material";function Po(){const e=Vd(Ys);return e[zr]||e}function OO(e){return pe.jsx(bN,{...e,defaultTheme:Ys,themeId:zr})}function kO(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const vb=e=>kO(e)&&e!=="classes",mt=CN({themeId:zr,defaultTheme:Ys,rootShouldForwardProp:vb});function IO(e){return function(r){return pe.jsx(OO,{styles:typeof e=="function"?i=>e({theme:i,...r}):e})}}function DO(){return lN}const Rn=HN;function kn(e){return UN(e)}function en(e,t){const{className:r,elementType:i,ownerState:o,externalForwardedProps:s,internalForwardedProps:c,shouldForwardComponentProp:d=!1,...h}=t,{component:p,slots:E={[e]:void 0},slotProps:b={[e]:void 0},...T}=s,y=E[e]||i,v=qE(b[e],o),{props:{component:x,...B},internalRef:I}=jE({className:r,...h,externalForwardedProps:e==="root"?T:void 0,externalSlotProps:v}),P=_r(I,v==null?void 0:v.ref,t.ref),M=e==="root"?x||p:x,w=FE(y,{...e==="root"&&!p&&!E[e]&&c,...e!=="root"&&!E[e]&&c,...B,...M&&!d&&{as:M},...M&&d&&{component:M},ref:P},o);return[y,w]}function js(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function a0(e,t){return a0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},a0(e,t)}function Rb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a0(e,t)}const Nb={disabled:!1},qs=St.createContext(null);var wO=function(t){return t.scrollTop},Uo="unmounted",ui="exited",oi="entering",iu="entered",i0="exiting",Yr=function(e){Rb(t,e);function t(i,o){var s;s=e.call(this,i,o)||this;var c=o,d=c&&!c.isMounting?i.enter:i.appear,h;return s.appearStatus=null,i.in?d?(h=ui,s.appearStatus=oi):h=iu:i.unmountOnExit||i.mountOnEnter?h=Uo:h=ui,s.state={status:h},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var c=o.in;return c&&s.status===Uo?{status:ui}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var s=null;if(o!==this.props){var c=this.state.status;this.props.in?c!==oi&&c!==iu&&(s=oi):(c===oi||c===iu)&&(s=i0)}this.updateStatus(!1,s)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,s,c,d;return s=c=d=o,o!=null&&typeof o!="number"&&(s=o.exit,c=o.enter,d=o.appear!==void 0?o.appear:c),{exit:s,enter:c,appear:d}},r.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===oi){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Ns.findDOMNode(this);c&&wO(c)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ui&&this.setState({status:Uo})},r.performEnter=function(o){var s=this,c=this.props.enter,d=this.context?this.context.isMounting:o,h=this.props.nodeRef?[d]:[Ns.findDOMNode(this),d],p=h[0],E=h[1],b=this.getTimeouts(),T=d?b.appear:b.enter;if(!o&&!c||Nb.disabled){this.safeSetState({status:iu},function(){s.props.onEntered(p)});return}this.props.onEnter(p,E),this.safeSetState({status:oi},function(){s.props.onEntering(p,E),s.onTransitionEnd(T,function(){s.safeSetState({status:iu},function(){s.props.onEntered(p,E)})})})},r.performExit=function(){var o=this,s=this.props.exit,c=this.getTimeouts(),d=this.props.nodeRef?void 0:Ns.findDOMNode(this);if(!s||Nb.disabled){this.safeSetState({status:ui},function(){o.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:i0},function(){o.props.onExiting(d),o.onTransitionEnd(c.exit,function(){o.safeSetState({status:ui},function(){o.props.onExited(d)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},r.setNextCallback=function(o){var s=this,c=!0;return this.nextCallback=function(d){c&&(c=!1,s.nextCallback=null,o(d))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},r.onTransitionEnd=function(o,s){this.setNextCallback(s);var c=this.props.nodeRef?this.props.nodeRef.current:Ns.findDOMNode(this),d=o==null&&!this.props.addEndListener;if(!c||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],p=h[0],E=h[1];this.props.addEndListener(p,E)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Uo)return null;var s=this.props,c=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var d=js(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return St.createElement(qs.Provider,{value:null},typeof c=="function"?c(o,d):St.cloneElement(St.Children.only(c),d))},t}(St.Component);Yr.contextType=qs,Yr.propTypes={};function uu(){}Yr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:uu,onEntering:uu,onEntered:uu,onExit:uu,onExiting:uu,onExited:uu},Yr.UNMOUNTED=Uo,Yr.EXITED=ui,Yr.ENTERING=oi,Yr.ENTERED=iu,Yr.EXITING=i0;function LO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u0(e,t){var r=function(s){return t&&A.isValidElement(s)?t(s):s},i=Object.create(null);return e&&A.Children.map(e,function(o){return o}).forEach(function(o){i[o.key]=r(o)}),i}function MO(e,t){e=e||{},t=t||{};function r(E){return E in t?t[E]:e[E]}var i=Object.create(null),o=[];for(var s in e)s in t?o.length&&(i[s]=o,o=[]):o.push(s);var c,d={};for(var h in t){if(i[h])for(c=0;c<i[h].length;c++){var p=i[h][c];d[i[h][c]]=r(p)}d[h]=r(h)}for(c=0;c<o.length;c++)d[o[c]]=r(o[c]);return d}function li(e,t,r){return r[t]!=null?r[t]:e.props[t]}function BO(e,t){return u0(e.children,function(r){return A.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:li(r,"appear",e),enter:li(r,"enter",e),exit:li(r,"exit",e)})})}function PO(e,t,r){var i=u0(e.children),o=MO(t,i);return Object.keys(o).forEach(function(s){var c=o[s];if(A.isValidElement(c)){var d=s in t,h=s in i,p=t[s],E=A.isValidElement(p)&&!p.props.in;h&&(!d||E)?o[s]=A.cloneElement(c,{onExited:r.bind(null,c),in:!0,exit:li(c,"exit",e),enter:li(c,"enter",e)}):!h&&d&&!E?o[s]=A.cloneElement(c,{in:!1}):h&&d&&A.isValidElement(p)&&(o[s]=A.cloneElement(c,{onExited:r.bind(null,c),in:p.props.in,exit:li(c,"exit",e),enter:li(c,"enter",e)}))}}),o}var UO=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},HO={component:"div",childFactory:function(t){return t}},o0=function(e){Rb(t,e);function t(i,o){var s;s=e.call(this,i,o)||this;var c=s.handleExited.bind(LO(s));return s.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},s}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var c=s.children,d=s.handleExited,h=s.firstRender;return{children:h?BO(o,d):PO(o,c,d),firstRender:!1}},r.handleExited=function(o,s){var c=u0(this.props.children);o.key in c||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(d){var h=Ja({},d.children);return delete h[o.key],{children:h}}))},r.render=function(){var o=this.props,s=o.component,c=o.childFactory,d=js(o,["component","childFactory"]),h=this.state.contextValue,p=UO(this.state.children).map(c);return delete d.appear,delete d.enter,delete d.exit,s===null?St.createElement(qs.Provider,{value:h},p):St.createElement(qs.Provider,{value:h},St.createElement(s,d,p))},t}(St.Component);o0.propTypes={},o0.defaultProps=HO;const Ob=e=>e.scrollTop;function Vs(e,t){const{timeout:r,easing:i,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof i=="object"?i[t.mode]:i),delay:o.transitionDelay}}const FO={entering:{opacity:1},entered:{opacity:1}},zO=A.forwardRef(function(t,r){const i=Po(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:s,appear:c=!0,children:d,easing:h,in:p,onEnter:E,onEntered:b,onEntering:T,onExit:y,onExited:v,onExiting:x,style:B,timeout:I=o,TransitionComponent:P=Yr,...M}=t,w=A.useRef(null),D=_r(w,Rs(d),r),N=Z=>ne=>{if(Z){const F=w.current;ne===void 0?Z(F):Z(F,ne)}},z=N(T),V=N((Z,ne)=>{Ob(Z);const F=Vs({style:B,timeout:I,easing:h},{mode:"enter"});Z.style.webkitTransition=i.transitions.create("opacity",F),Z.style.transition=i.transitions.create("opacity",F),E&&E(Z,ne)}),j=N(b),_=N(x),q=N(Z=>{const ne=Vs({style:B,timeout:I,easing:h},{mode:"exit"});Z.style.webkitTransition=i.transitions.create("opacity",ne),Z.style.transition=i.transitions.create("opacity",ne),y&&y(Z)}),$=N(v),J=Z=>{s&&s(w.current,Z)};return pe.jsx(P,{appear:c,in:p,nodeRef:w,onEnter:V,onEntered:j,onEntering:z,onExit:q,onExited:$,onExiting:_,addEndListener:J,timeout:I,...M,children:(Z,{ownerState:ne,...F})=>A.cloneElement(d,{style:{opacity:0,visibility:Z==="exited"&&!p?"hidden":void 0,...FO[Z],...B,...d.props.style},ref:D,...F})})});function YO(e){return _n("MuiBackdrop",e)}vn("MuiBackdrop",["root","invisible"]);const jO=e=>{const{classes:t,invisible:r}=e;return On({root:["root",r&&"invisible"]},YO,t)},qO=mt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),VO=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:c="div",invisible:d=!1,open:h,components:p={},componentsProps:E={},slotProps:b={},slots:T={},TransitionComponent:y,transitionDuration:v,...x}=i,B={...i,component:c,invisible:d},I=jO(B),P={transition:y,root:p.Root,...T},M={...E,...b},w={slots:P,slotProps:M},[D,N]=en("root",{elementType:qO,externalForwardedProps:w,className:tt(I.root,s),ownerState:B}),[z,V]=en("transition",{elementType:zO,externalForwardedProps:w,ownerState:B});return pe.jsx(z,{in:h,timeout:v,...x,...V,children:pe.jsx(D,{"aria-hidden":!0,...N,classes:I,ref:r,children:o})})});function GO(e){return typeof e=="function"?e():e}function $O(e){return e?e.props.hasOwnProperty("in"):!1}const kb=()=>{},Gs=new i8;function XO(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:i=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:c,children:d,onClose:h,open:p,rootRef:E}=e,b=A.useRef({}),T=A.useRef(null),y=A.useRef(null),v=_r(y,E),[x,B]=A.useState(!p),I=$O(d);let P=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(P=!1);const M=()=>xa(T.current),w=()=>(b.current.modalRef=y.current,b.current.mount=T.current,b.current),D=()=>{Gs.mount(w(),{disableScrollLock:i}),y.current&&(y.current.scrollTop=0)},N=Hr(()=>{const ne=GO(t)||M().body;Gs.add(w(),ne),y.current&&D()}),z=()=>Gs.isTopModal(w()),V=Hr(ne=>{T.current=ne,ne&&(p&&z()?D():y.current&&_o(y.current,P))}),j=A.useCallback(()=>{Gs.remove(w(),P)},[P]);A.useEffect(()=>()=>{j()},[j]),A.useEffect(()=>{p?N():(!I||!o)&&j()},[p,j,I,o,N]);const _=ne=>F=>{var ae;(ae=ne.onKeyDown)==null||ae.call(ne,F),!(F.key!=="Escape"||F.which===229||!z())&&(r||(F.stopPropagation(),h&&h(F,"escapeKeyDown")))},q=ne=>F=>{var ae;(ae=ne.onClick)==null||ae.call(ne,F),F.target===F.currentTarget&&h&&h(F,"backdropClick")};return{getRootProps:(ne={})=>{const F=zE(e);delete F.onTransitionEnter,delete F.onTransitionExited;const ae={...F,...ne};return{role:"presentation",...ae,onKeyDown:_(ae),ref:v}},getBackdropProps:(ne={})=>{const F=ne;return{"aria-hidden":!0,...F,onClick:q(F),open:p}},getTransitionProps:()=>{const ne=()=>{B(!1),s&&s()},F=()=>{B(!0),c&&c(),o&&j()};return{onEnter:DE(ne,(d==null?void 0:d.props.onEnter)??kb),onExited:DE(F,(d==null?void 0:d.props.onExited)??kb)}},rootRef:v,portalRef:V,isTopModal:z,exited:x,hasTransition:I}}function QO(e){return _n("MuiModal",e)}vn("MuiModal",["root","hidden","backdrop"]);const KO=e=>{const{open:t,exited:r,classes:i}=e;return On({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},QO,i)},WO=mt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Rn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),ZO=mt(VO,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),JO=A.forwardRef(function(t,r){const i=kn({name:"MuiModal",props:t}),{BackdropComponent:o=ZO,BackdropProps:s,classes:c,className:d,closeAfterTransition:h=!1,children:p,container:E,component:b,components:T={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:B=!1,disablePortal:I=!1,disableRestoreFocus:P=!1,disableScrollLock:M=!1,hideBackdrop:w=!1,keepMounted:D=!1,onBackdropClick:N,onClose:z,onTransitionEnter:V,onTransitionExited:j,open:_,slotProps:q={},slots:$={},theme:J,...Z}=i,ne={...i,closeAfterTransition:h,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:B,disablePortal:I,disableRestoreFocus:P,disableScrollLock:M,hideBackdrop:w,keepMounted:D},{getRootProps:F,getBackdropProps:ae,getTransitionProps:ie,portalRef:oe,isTopModal:S,exited:K,hasTransition:de}=XO({...ne,rootRef:r}),O={...ne,exited:K},Ee=KO(O),Re={};if(p.props.tabIndex===void 0&&(Re.tabIndex="-1"),de){const{onEnter:gt,onExited:Ne}=ie();Re.onEnter=gt,Re.onExited=Ne}const Te={slots:{root:T.Root,backdrop:T.Backdrop,...$},slotProps:{...y,...q}},[Xe,Be]=en("root",{ref:r,elementType:WO,externalForwardedProps:{...Te,...Z,component:b},getSlotProps:F,ownerState:O,className:tt(d,Ee==null?void 0:Ee.root,!O.open&&O.exited&&(Ee==null?void 0:Ee.hidden))}),[ut,Ct]=en("backdrop",{ref:s==null?void 0:s.ref,elementType:o,externalForwardedProps:Te,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:gt=>ae({...gt,onClick:Ne=>{N&&N(Ne),gt!=null&&gt.onClick&&gt.onClick(Ne)}}),className:tt(s==null?void 0:s.className,Ee==null?void 0:Ee.backdrop),ownerState:O});return!D&&!_&&(!de||K)?null:pe.jsx(p8,{ref:oe,container:E,disablePortal:I,children:pe.jsxs(Xe,{...Be,children:[!w&&o?pe.jsx(ut,{...Ct}):null,pe.jsx(d8,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:P,isEnabled:S,open:_,children:A.cloneElement(p,Re)})]})})});function e9(e){return _n("MuiSvgIcon",e)}vn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const t9=e=>{const{color:t,fontSize:r,classes:i}=e,o={root:["root",t!=="inherit"&&`color${st(t)}`,`fontSize${st(r)}`]};return On(o,e9,i)},n9=mt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${st(r.color)}`],t[`fontSize${st(r.fontSize)}`]]}})(Rn(({theme:e})=>{var t,r,i,o,s,c,d,h,p,E,b,T,y,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(i=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:i.shorter}),variants:[{props:x=>!x.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((c=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:c.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((h=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:h.call(d,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((E=(p=e.typography)==null?void 0:p.pxToRem)==null?void 0:E.call(p,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,x])=>x&&x.main).map(([x])=>{var B,I;return{props:{color:x},style:{color:(I=(B=(e.vars??e).palette)==null?void 0:B[x])==null?void 0:I.main}}}),{props:{color:"action"},style:{color:(T=(b=(e.vars??e).palette)==null?void 0:b.action)==null?void 0:T.active}},{props:{color:"disabled"},style:{color:(v=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),l0=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:c="inherit",component:d="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:E=!1,titleAccess:b,viewBox:T="0 0 24 24",...y}=i,v=A.isValidElement(o)&&o.type==="svg",x={...i,color:c,component:d,fontSize:h,instanceFontSize:t.fontSize,inheritViewBox:E,viewBox:T,hasSvgAsChild:v},B={};E||(B.viewBox=T);const I=t9(x);return pe.jsxs(n9,{as:d,className:tt(I.root,s),focusable:"false",color:p,"aria-hidden":b?void 0:!0,role:b?"img":void 0,ref:r,...B,...y,...v&&o.props,ownerState:x,children:[v?o.props.children:o,b?pe.jsx("title",{children:b}):null]})});l0.muiName="SvgIcon";function si(e,t){function r(i,o){return pe.jsx(l0,{"data-testid":`${t}Icon`,ref:o,...i,children:e})}return r.muiName=l0.muiName,A.memo(A.forwardRef(r))}function r9(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return o=>{const s=typeof t=="function"?t(o):t,c=typeof e=="function"?e({...o,...s}):e,d=tt(o==null?void 0:o.className,s==null?void 0:s.className,c==null?void 0:c.className);return{...s,...c,...!!d&&{className:d},...(s==null?void 0:s.style)&&(c==null?void 0:c.style)&&{style:{...s.style,...c.style}},...(s==null?void 0:s.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=t,i=tt(r==null?void 0:r.className,e==null?void 0:e.className);return{...t,...e,...!!i&&{className:i},...(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:{...r.style,...e.style}},...(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function a9(e,t,r){const i=t.getBoundingClientRect(),o=r&&r.getBoundingClientRect(),s=Ur(t);let c;if(t.fakeTransform)c=t.fakeTransform;else{const p=s.getComputedStyle(t);c=p.getPropertyValue("-webkit-transform")||p.getPropertyValue("transform")}let d=0,h=0;if(c&&c!=="none"&&typeof c=="string"){const p=c.split("(")[1].split(")")[0].split(",");d=parseInt(p[4],10),h=parseInt(p[5],10)}return e==="left"?o?`translateX(${o.right+d-i.left}px)`:`translateX(${s.innerWidth+d-i.left}px)`:e==="right"?o?`translateX(-${i.right-o.left-d}px)`:`translateX(-${i.left+i.width-d}px)`:e==="up"?o?`translateY(${o.bottom+h-i.top}px)`:`translateY(${s.innerHeight+h-i.top}px)`:o?`translateY(-${i.top-o.top+i.height-h}px)`:`translateY(-${i.top+i.height-h}px)`}function i9(e){return typeof e=="function"?e():e}function $s(e,t,r){const i=i9(r),o=a9(e,t,i);o&&(t.style.webkitTransform=o,t.style.transform=o)}const u9=A.forwardRef(function(t,r){const i=Po(),o={enter:i.transitions.easing.easeOut,exit:i.transitions.easing.sharp},s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:c,appear:d=!0,children:h,container:p,direction:E="down",easing:b=o,in:T,onEnter:y,onEntered:v,onEntering:x,onExit:B,onExited:I,onExiting:P,style:M,timeout:w=s,TransitionComponent:D=Yr,...N}=t,z=A.useRef(null),V=_r(Rs(h),z,r),j=ie=>oe=>{ie&&(oe===void 0?ie(z.current):ie(z.current,oe))},_=j((ie,oe)=>{$s(E,ie,p),Ob(ie),y&&y(ie,oe)}),q=j((ie,oe)=>{const S=Vs({timeout:w,style:M,easing:b},{mode:"enter"});ie.style.webkitTransition=i.transitions.create("-webkit-transform",{...S}),ie.style.transition=i.transitions.create("transform",{...S}),ie.style.webkitTransform="none",ie.style.transform="none",x&&x(ie,oe)}),$=j(v),J=j(P),Z=j(ie=>{const oe=Vs({timeout:w,style:M,easing:b},{mode:"exit"});ie.style.webkitTransition=i.transitions.create("-webkit-transform",oe),ie.style.transition=i.transitions.create("transform",oe),$s(E,ie,p),B&&B(ie)}),ne=j(ie=>{ie.style.webkitTransition="",ie.style.transition="",I&&I(ie)}),F=ie=>{c&&c(z.current,ie)},ae=A.useCallback(()=>{z.current&&$s(E,z.current,p)},[E,p]);return A.useEffect(()=>{if(T||E==="down"||E==="right")return;const ie=xs(()=>{z.current&&$s(E,z.current,p)}),oe=Ur(z.current);return oe.addEventListener("resize",ie),()=>{ie.clear(),oe.removeEventListener("resize",ie)}},[E,T,p]),A.useEffect(()=>{T||ae()},[T,ae]),pe.jsx(D,{nodeRef:z,onEnter:_,onEntered:$,onEntering:q,onExit:Z,onExited:ne,onExiting:J,addEndListener:F,appear:d,in:T,timeout:w,...N,children:(ie,{ownerState:oe,...S})=>A.cloneElement(h,{ref:V,style:{visibility:ie==="exited"&&!T?"hidden":void 0,...M,...h.props.style},...S})})});function o9(e){return _n("MuiPaper",e)}vn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const l9=e=>{const{square:t,elevation:r,variant:i,classes:o}=e,s={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${r}`]};return On(s,o9,o)},s9=mt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Rn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ib=A.forwardRef(function(t,r){var y;const i=kn({props:t,name:"MuiPaper"}),o=Po(),{className:s,component:c="div",elevation:d=1,square:h=!1,variant:p="elevation",...E}=i,b={...i,component:c,elevation:d,square:h,variant:p},T=l9(b);return pe.jsx(s9,{as:c,ownerState:b,className:tt(T.root,s),ref:r,...E,style:{...p==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[d],...o.vars&&{"--Paper-overlay":(y=o.vars.overlays)==null?void 0:y[d]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Io("#fff",n0(d))}, ${Io("#fff",n0(d))})`}},...E.style}})});function c9(e){return _n("MuiDrawer",e)}vn("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Db=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},f9=e=>{const{classes:t,anchor:r,variant:i}=e,o={root:["root",`anchor${st(r)}`],docked:[(i==="permanent"||i==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${st(r)}`,i!=="temporary"&&`paperAnchorDocked${st(r)}`]};return On(o,c9,t)},d9=mt(JO,{name:"MuiDrawer",slot:"Root",overridesResolver:Db})(Rn(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),h9=mt("div",{shouldForwardProp:vb,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Db})({flex:"0 0 auto"}),p9=mt(Ib,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${st(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${st(r.anchor)}`]]}})(Rn(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),wb={left:"right",right:"left",top:"down",bottom:"up"};function m9(e){return["left","right"].includes(e)}function g9({direction:e},t){return e==="rtl"&&m9(t)?wb[t]:t}const E9=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiDrawer"}),o=Po(),s=Bd(),c={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:h,children:p,className:E,elevation:b=16,hideBackdrop:T=!1,ModalProps:{BackdropProps:y,...v}={},onClose:x,open:B=!1,PaperProps:I={},SlideProps:P,TransitionComponent:M,transitionDuration:w=c,variant:D="temporary",slots:N={},slotProps:z={},...V}=i,j=A.useRef(!1);A.useEffect(()=>{j.current=!0},[]);const _=g9({direction:s?"rtl":"ltr"},d),$={...i,anchor:d,elevation:b,open:B,variant:D,...V},J=f9($),Z={slots:{transition:M,...N},slotProps:{paper:I,transition:P,...z,backdrop:r9(z.backdrop||{...h,...y},{transitionDuration:w})}},[ne,F]=en("root",{ref:r,elementType:d9,className:tt(J.root,J.modal,E),shouldForwardComponentProp:!0,ownerState:$,externalForwardedProps:{...Z,...V,...v},additionalProps:{open:B,onClose:x,hideBackdrop:T,slots:{backdrop:Z.slots.backdrop},slotProps:{backdrop:Z.slotProps.backdrop}}}),[ae,ie]=en("paper",{elementType:p9,shouldForwardComponentProp:!0,className:tt(J.paper,I.className),ownerState:$,externalForwardedProps:Z,additionalProps:{elevation:D==="temporary"?b:0,square:!0}}),[oe,S]=en("docked",{elementType:h9,ref:r,className:tt(J.root,J.docked,E),ownerState:$,externalForwardedProps:Z,additionalProps:V}),[K,de]=en("transition",{elementType:u9,ownerState:$,externalForwardedProps:Z,additionalProps:{in:B,direction:wb[_],timeout:w,appear:j.current}}),O=pe.jsx(ae,{...ie,children:p});if(D==="permanent")return pe.jsx(oe,{...S,children:O});const Ee=pe.jsx(K,{...de,children:O});return D==="persistent"?pe.jsx(oe,{...S,children:Ee}):pe.jsx(ne,{...F,children:Ee})});class Xs{constructor(){Xl(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Xs}static use(){const t=PE(Xs.create).current,[r,i]=A.useState(!1);return t.shouldMount=r,t.setShouldMount=i,A.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=y9(),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 b9(){return Xs.use()}function y9(){let e,t;const r=new Promise((i,o)=>{e=i,t=o});return r.resolve=e,r.reject=t,r}function T9(e){const{className:t,classes:r,pulsate:i=!1,rippleX:o,rippleY:s,rippleSize:c,in:d,onExited:h,timeout:p}=e,[E,b]=A.useState(!1),T=tt(t,r.ripple,r.rippleVisible,i&&r.ripplePulsate),y={width:c,height:c,top:-(c/2)+s,left:-(c/2)+o},v=tt(r.child,E&&r.childLeaving,i&&r.childPulsate);return!d&&!E&&b(!0),A.useEffect(()=>{if(!d&&h!=null){const x=setTimeout(h,p);return()=>{clearTimeout(x)}}},[h,d,p]),pe.jsx("span",{className:T,style:y,children:pe.jsx("span",{className:v})})}const hr=vn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),s0=550,S9=80,C9=Ju`
118
+ export default theme;`}function t0(e={},...t){const{breakpoints:r,mixins:i={},spacing:l,palette:s={},transitions:c={},typography:d={},shape:h,...p}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Aa(20));const b=e0(s),E=qd(e);let T=Un(E,{mixins:lO(E.breakpoints,i),palette:b,shadows:dO.slice(),typography:TE(b,d),transitions:gO(c),zIndex:{...bO}});return T=Un(T,p),T=t.reduce((y,v)=>Un(y,v),T),T.unstable_sxConfig={...Nl,...p==null?void 0:p.unstable_sxConfig},T.unstable_sx=function(v){return ii({sx:v,theme:this})},T.toRuntimeSource=CE,T}function n0(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const yO=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=n0(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function AE(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function xE(e){return e==="dark"?yO:[]}function TO(e){const{palette:t={mode:"light"},opacity:r,overlays:i,...l}=e,s=e0(t);return{palette:s,opacity:{...AE(s.mode),...r},overlays:i||xE(s.mode),...l}}function SO(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 CO=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],AO=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 CO(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 xO(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function oe(e,t,r){!e[t]&&r&&(e[t]=r)}function Ml(e){return typeof e!="string"||!e.startsWith("hsl")?e:aE(e)}function Wr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ol(Ml(e[t])))}function _O(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Fr=e=>{try{return e()}catch{}},vO=(e="mui")=>$N(e);function r0(e,t,r,i){if(!t)return;t=t===!0?{}:t;const l=i==="dark"?"dark":"light";if(!r){e[i]=TO({...t,palette:{mode:l,...t==null?void 0:t.palette}});return}const{palette:s,...c}=t0({...r,palette:{mode:l,...t==null?void 0:t.palette}});return e[i]={...t,palette:s,opacity:{...AE(l),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||xE(l)},c}function RO(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:l=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:c=SO,colorSchemeSelector:d=r.light&&r.dark?"media":void 0,rootSelector:h=":root",...p}=e,b=Object.keys(r)[0],E=i||(r.light&&b!=="light"?"light":b),T=vO(s),{[E]:y,light:v,dark:x,...B}=r,I={...B};let P=y;if((E==="dark"&&!("dark"in r)||E==="light"&&!("light"in r))&&(P=!0),!P)throw new Error(Aa(21,E));const M=r0(I,P,p,E);v&&!I.light&&r0(I,v,void 0,"light"),x&&!I.dark&&r0(I,x,void 0,"dark");let w={defaultColorScheme:E,...M,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:h,getCssVar:T,colorSchemes:I,font:{...uO(M.typography),...M.font},spacing:_O(p.spacing)};Object.keys(w.colorSchemes).forEach(j=>{const _=w.colorSchemes[j].palette,q=$=>{const J=$.split("-"),Z=J[1],ne=J[2];return T($,_[Z][ne])};if(_.mode==="light"&&(oe(_.common,"background","#fff"),oe(_.common,"onBackground","#000")),_.mode==="dark"&&(oe(_.common,"background","#000"),oe(_.common,"onBackground","#fff")),xO(_,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_.mode==="light"){oe(_.Alert,"errorColor",It(_.error.light,.6)),oe(_.Alert,"infoColor",It(_.info.light,.6)),oe(_.Alert,"successColor",It(_.success.light,.6)),oe(_.Alert,"warningColor",It(_.warning.light,.6)),oe(_.Alert,"errorFilledBg",q("palette-error-main")),oe(_.Alert,"infoFilledBg",q("palette-info-main")),oe(_.Alert,"successFilledBg",q("palette-success-main")),oe(_.Alert,"warningFilledBg",q("palette-warning-main")),oe(_.Alert,"errorFilledColor",Fr(()=>_.getContrastText(_.error.main))),oe(_.Alert,"infoFilledColor",Fr(()=>_.getContrastText(_.info.main))),oe(_.Alert,"successFilledColor",Fr(()=>_.getContrastText(_.success.main))),oe(_.Alert,"warningFilledColor",Fr(()=>_.getContrastText(_.warning.main))),oe(_.Alert,"errorStandardBg",Dt(_.error.light,.9)),oe(_.Alert,"infoStandardBg",Dt(_.info.light,.9)),oe(_.Alert,"successStandardBg",Dt(_.success.light,.9)),oe(_.Alert,"warningStandardBg",Dt(_.warning.light,.9)),oe(_.Alert,"errorIconColor",q("palette-error-main")),oe(_.Alert,"infoIconColor",q("palette-info-main")),oe(_.Alert,"successIconColor",q("palette-success-main")),oe(_.Alert,"warningIconColor",q("palette-warning-main")),oe(_.AppBar,"defaultBg",q("palette-grey-100")),oe(_.Avatar,"defaultBg",q("palette-grey-400")),oe(_.Button,"inheritContainedBg",q("palette-grey-300")),oe(_.Button,"inheritContainedHoverBg",q("palette-grey-A100")),oe(_.Chip,"defaultBorder",q("palette-grey-400")),oe(_.Chip,"defaultAvatarColor",q("palette-grey-700")),oe(_.Chip,"defaultIconColor",q("palette-grey-700")),oe(_.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),oe(_.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),oe(_.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),oe(_.LinearProgress,"primaryBg",Dt(_.primary.main,.62)),oe(_.LinearProgress,"secondaryBg",Dt(_.secondary.main,.62)),oe(_.LinearProgress,"errorBg",Dt(_.error.main,.62)),oe(_.LinearProgress,"infoBg",Dt(_.info.main,.62)),oe(_.LinearProgress,"successBg",Dt(_.success.main,.62)),oe(_.LinearProgress,"warningBg",Dt(_.warning.main,.62)),oe(_.Skeleton,"bg",`rgba(${q("palette-text-primaryChannel")} / 0.11)`),oe(_.Slider,"primaryTrack",Dt(_.primary.main,.62)),oe(_.Slider,"secondaryTrack",Dt(_.secondary.main,.62)),oe(_.Slider,"errorTrack",Dt(_.error.main,.62)),oe(_.Slider,"infoTrack",Dt(_.info.main,.62)),oe(_.Slider,"successTrack",Dt(_.success.main,.62)),oe(_.Slider,"warningTrack",Dt(_.warning.main,.62));const $=Fs(_.background.default,.8);oe(_.SnackbarContent,"bg",$),oe(_.SnackbarContent,"color",Fr(()=>_.getContrastText($))),oe(_.SpeedDialAction,"fabHoverBg",Fs(_.background.paper,.15)),oe(_.StepConnector,"border",q("palette-grey-400")),oe(_.StepContent,"border",q("palette-grey-400")),oe(_.Switch,"defaultColor",q("palette-common-white")),oe(_.Switch,"defaultDisabledColor",q("palette-grey-100")),oe(_.Switch,"primaryDisabledColor",Dt(_.primary.main,.62)),oe(_.Switch,"secondaryDisabledColor",Dt(_.secondary.main,.62)),oe(_.Switch,"errorDisabledColor",Dt(_.error.main,.62)),oe(_.Switch,"infoDisabledColor",Dt(_.info.main,.62)),oe(_.Switch,"successDisabledColor",Dt(_.success.main,.62)),oe(_.Switch,"warningDisabledColor",Dt(_.warning.main,.62)),oe(_.TableCell,"border",Dt(Hs(_.divider,1),.88)),oe(_.Tooltip,"bg",Hs(_.grey[700],.92))}if(_.mode==="dark"){oe(_.Alert,"errorColor",Dt(_.error.light,.6)),oe(_.Alert,"infoColor",Dt(_.info.light,.6)),oe(_.Alert,"successColor",Dt(_.success.light,.6)),oe(_.Alert,"warningColor",Dt(_.warning.light,.6)),oe(_.Alert,"errorFilledBg",q("palette-error-dark")),oe(_.Alert,"infoFilledBg",q("palette-info-dark")),oe(_.Alert,"successFilledBg",q("palette-success-dark")),oe(_.Alert,"warningFilledBg",q("palette-warning-dark")),oe(_.Alert,"errorFilledColor",Fr(()=>_.getContrastText(_.error.dark))),oe(_.Alert,"infoFilledColor",Fr(()=>_.getContrastText(_.info.dark))),oe(_.Alert,"successFilledColor",Fr(()=>_.getContrastText(_.success.dark))),oe(_.Alert,"warningFilledColor",Fr(()=>_.getContrastText(_.warning.dark))),oe(_.Alert,"errorStandardBg",It(_.error.light,.9)),oe(_.Alert,"infoStandardBg",It(_.info.light,.9)),oe(_.Alert,"successStandardBg",It(_.success.light,.9)),oe(_.Alert,"warningStandardBg",It(_.warning.light,.9)),oe(_.Alert,"errorIconColor",q("palette-error-main")),oe(_.Alert,"infoIconColor",q("palette-info-main")),oe(_.Alert,"successIconColor",q("palette-success-main")),oe(_.Alert,"warningIconColor",q("palette-warning-main")),oe(_.AppBar,"defaultBg",q("palette-grey-900")),oe(_.AppBar,"darkBg",q("palette-background-paper")),oe(_.AppBar,"darkColor",q("palette-text-primary")),oe(_.Avatar,"defaultBg",q("palette-grey-600")),oe(_.Button,"inheritContainedBg",q("palette-grey-800")),oe(_.Button,"inheritContainedHoverBg",q("palette-grey-700")),oe(_.Chip,"defaultBorder",q("palette-grey-700")),oe(_.Chip,"defaultAvatarColor",q("palette-grey-300")),oe(_.Chip,"defaultIconColor",q("palette-grey-300")),oe(_.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),oe(_.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),oe(_.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),oe(_.LinearProgress,"primaryBg",It(_.primary.main,.5)),oe(_.LinearProgress,"secondaryBg",It(_.secondary.main,.5)),oe(_.LinearProgress,"errorBg",It(_.error.main,.5)),oe(_.LinearProgress,"infoBg",It(_.info.main,.5)),oe(_.LinearProgress,"successBg",It(_.success.main,.5)),oe(_.LinearProgress,"warningBg",It(_.warning.main,.5)),oe(_.Skeleton,"bg",`rgba(${q("palette-text-primaryChannel")} / 0.13)`),oe(_.Slider,"primaryTrack",It(_.primary.main,.5)),oe(_.Slider,"secondaryTrack",It(_.secondary.main,.5)),oe(_.Slider,"errorTrack",It(_.error.main,.5)),oe(_.Slider,"infoTrack",It(_.info.main,.5)),oe(_.Slider,"successTrack",It(_.success.main,.5)),oe(_.Slider,"warningTrack",It(_.warning.main,.5));const $=Fs(_.background.default,.98);oe(_.SnackbarContent,"bg",$),oe(_.SnackbarContent,"color",Fr(()=>_.getContrastText($))),oe(_.SpeedDialAction,"fabHoverBg",Fs(_.background.paper,.15)),oe(_.StepConnector,"border",q("palette-grey-600")),oe(_.StepContent,"border",q("palette-grey-600")),oe(_.Switch,"defaultColor",q("palette-grey-300")),oe(_.Switch,"defaultDisabledColor",q("palette-grey-600")),oe(_.Switch,"primaryDisabledColor",It(_.primary.main,.55)),oe(_.Switch,"secondaryDisabledColor",It(_.secondary.main,.55)),oe(_.Switch,"errorDisabledColor",It(_.error.main,.55)),oe(_.Switch,"infoDisabledColor",It(_.info.main,.55)),oe(_.Switch,"successDisabledColor",It(_.success.main,.55)),oe(_.Switch,"warningDisabledColor",It(_.warning.main,.55)),oe(_.TableCell,"border",It(Hs(_.divider,1),.68)),oe(_.Tooltip,"bg",Hs(_.grey[700],.92))}Wr(_.background,"default"),Wr(_.background,"paper"),Wr(_.common,"background"),Wr(_.common,"onBackground"),Wr(_,"divider"),Object.keys(_).forEach($=>{const J=_[$];$!=="tonalOffset"&&J&&typeof J=="object"&&(J.main&&oe(_[$],"mainChannel",Ol(Ml(J.main))),J.light&&oe(_[$],"lightChannel",Ol(Ml(J.light))),J.dark&&oe(_[$],"darkChannel",Ol(Ml(J.dark))),J.contrastText&&oe(_[$],"contrastTextChannel",Ol(Ml(J.contrastText))),$==="text"&&(Wr(_[$],"primary"),Wr(_[$],"secondary")),$==="action"&&(J.active&&Wr(_[$],"active"),J.selected&&Wr(_[$],"selected")))})}),w=t.reduce((j,_)=>Un(j,_),w);const D={prefix:s,disableCssColorScheme:l,shouldSkipGeneratingVar:c,getSelector:AO(w)},{vars:N,generateThemeVars:z,generateStyleSheets:V}=KN(w,D);return w.vars=N,Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([j,_])=>{w[j]=_}),w.generateThemeVars=z,w.generateStyleSheets=V,w.generateSpacing=function(){return eE(p.spacing,Yd(this))},w.getColorSchemeSelector=WN(d),w.spacing=w.generateSpacing(),w.shouldSkipGeneratingVar=c,w.unstable_sxConfig={...Nl,...p==null?void 0:p.unstable_sxConfig},w.unstable_sx=function(_){return ii({sx:_,theme:this})},w.toRuntimeSource=CE,w}function _E(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:e0({...r===!0?{}:r.palette,mode:t})})}function zs(e={},...t){const{palette:r,cssVariables:i=!1,colorSchemes:l=r?void 0:{light:!0},defaultColorScheme:s=r==null?void 0:r.mode,...c}=e,d=s||"light",h=l==null?void 0:l[d],p={...l,...r?{[d]:{...typeof h!="boolean"&&h,palette:r}}:void 0};if(i===!1){if(!("colorSchemes"in e))return t0(e,...t);let b=r;"palette"in e||p[d]&&(p[d]!==!0?b=p[d].palette:d==="dark"&&(b={mode:"dark"}));const E=t0({...e,palette:b},...t);return E.defaultColorScheme=d,E.colorSchemes=p,E.palette.mode==="light"&&(E.colorSchemes.light={...p.light!==!0&&p.light,palette:E.palette},_E(E,"dark",p.dark)),E.palette.mode==="dark"&&(E.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:E.palette},_E(E,"light",p.light)),E}return!r&&!("light"in p)&&d==="light"&&(p.light=!0),RO({...c,colorSchemes:p,defaultColorScheme:d,...typeof i!="boolean"&&i},...t)}const Ys=zs(),zr="$$material";function Bl(){const e=Vd(Ys);return e[zr]||e}function NO(e){return pe.jsx(bN,{...e,defaultTheme:Ys,themeId:zr})}function OO(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const vE=e=>OO(e)&&e!=="classes",mt=SN({themeId:zr,defaultTheme:Ys,rootShouldForwardProp:vE});function kO(e){return function(r){return pe.jsx(NO,{styles:typeof e=="function"?i=>e({theme:i,...r}):e})}}function IO(){return lN}const Rn=UN;function kn(e){return PN(e)}function en(e,t){const{className:r,elementType:i,ownerState:l,externalForwardedProps:s,internalForwardedProps:c,shouldForwardComponentProp:d=!1,...h}=t,{component:p,slots:b={[e]:void 0},slotProps:E={[e]:void 0},...T}=s,y=b[e]||i,v=qb(E[e],l),{props:{component:x,...B},internalRef:I}=jb({className:r,...h,externalForwardedProps:e==="root"?T:void 0,externalSlotProps:v}),P=_r(I,v==null?void 0:v.ref,t.ref),M=e==="root"?x||p:x,w=Fb(y,{...e==="root"&&!p&&!b[e]&&c,...e!=="root"&&!b[e]&&c,...B,...M&&!d&&{as:M},...M&&d&&{component:M},ref:P},l);return[y,w]}function js(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function a0(e,t){return a0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},a0(e,t)}function RE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a0(e,t)}const NE={disabled:!1},qs=kt.createContext(null);var DO=function(t){return t.scrollTop},Pl="unmounted",ui="exited",li="entering",iu="entered",i0="exiting",Yr=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,h;return s.appearStatus=null,i.in?d?(h=ui,s.appearStatus=li):h=iu:i.unmountOnExit||i.mountOnEnter?h=Pl:h=ui,s.state={status:h},s.nextCallback=null,s}t.getDerivedStateFromProps=function(l,s){var c=l.in;return c&&s.status===Pl?{status:ui}: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!==li&&c!==iu&&(s=li):(c===li||c===iu)&&(s=i0)}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===li){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Ns.findDOMNode(this);c&&DO(c)}this.performEnter(l)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ui&&this.setState({status:Pl})},r.performEnter=function(l){var s=this,c=this.props.enter,d=this.context?this.context.isMounting:l,h=this.props.nodeRef?[d]:[Ns.findDOMNode(this),d],p=h[0],b=h[1],E=this.getTimeouts(),T=d?E.appear:E.enter;if(!l&&!c||NE.disabled){this.safeSetState({status:iu},function(){s.props.onEntered(p)});return}this.props.onEnter(p,b),this.safeSetState({status:li},function(){s.props.onEntering(p,b),s.onTransitionEnd(T,function(){s.safeSetState({status:iu},function(){s.props.onEntered(p,b)})})})},r.performExit=function(){var l=this,s=this.props.exit,c=this.getTimeouts(),d=this.props.nodeRef?void 0:Ns.findDOMNode(this);if(!s||NE.disabled){this.safeSetState({status:ui},function(){l.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:i0},function(){l.props.onExiting(d),l.onTransitionEnd(c.exit,function(){l.safeSetState({status:ui},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:Ns.findDOMNode(this),d=l==null&&!this.props.addEndListener;if(!c||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],p=h[0],b=h[1];this.props.addEndListener(p,b)}l!=null&&setTimeout(this.nextCallback,l)},r.render=function(){var l=this.state.status;if(l===Pl)return null;var s=this.props,c=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var d=js(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return kt.createElement(qs.Provider,{value:null},typeof c=="function"?c(l,d):kt.cloneElement(kt.Children.only(c),d))},t}(kt.Component);Yr.contextType=qs,Yr.propTypes={};function uu(){}Yr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:uu,onEntering:uu,onEntered:uu,onExit:uu,onExiting:uu,onExited:uu},Yr.UNMOUNTED=Pl,Yr.EXITED=ui,Yr.ENTERING=li,Yr.ENTERED=iu,Yr.EXITING=i0;function wO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u0(e,t){var r=function(s){return t&&A.isValidElement(s)?t(s):s},i=Object.create(null);return e&&A.Children.map(e,function(l){return l}).forEach(function(l){i[l.key]=r(l)}),i}function LO(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 h in t){if(i[h])for(c=0;c<i[h].length;c++){var p=i[h][c];d[i[h][c]]=r(p)}d[h]=r(h)}for(c=0;c<l.length;c++)d[l[c]]=r(l[c]);return d}function oi(e,t,r){return r[t]!=null?r[t]:e.props[t]}function MO(e,t){return u0(e.children,function(r){return A.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:oi(r,"appear",e),enter:oi(r,"enter",e),exit:oi(r,"exit",e)})})}function BO(e,t,r){var i=u0(e.children),l=LO(t,i);return Object.keys(l).forEach(function(s){var c=l[s];if(A.isValidElement(c)){var d=s in t,h=s in i,p=t[s],b=A.isValidElement(p)&&!p.props.in;h&&(!d||b)?l[s]=A.cloneElement(c,{onExited:r.bind(null,c),in:!0,exit:oi(c,"exit",e),enter:oi(c,"enter",e)}):!h&&d&&!b?l[s]=A.cloneElement(c,{in:!1}):h&&d&&A.isValidElement(p)&&(l[s]=A.cloneElement(c,{onExited:r.bind(null,c),in:p.props.in,exit:oi(c,"exit",e),enter:oi(c,"enter",e)}))}}),l}var PO=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},UO={component:"div",childFactory:function(t){return t}},l0=function(e){RE(t,e);function t(i,l){var s;s=e.call(this,i,l)||this;var c=s.handleExited.bind(wO(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,h=s.firstRender;return{children:h?MO(l,d):BO(l,c,d),firstRender:!1}},r.handleExited=function(l,s){var c=u0(this.props.children);l.key in c||(l.props.onExited&&l.props.onExited(s),this.mounted&&this.setState(function(d){var h=Ja({},d.children);return delete h[l.key],{children:h}}))},r.render=function(){var l=this.props,s=l.component,c=l.childFactory,d=js(l,["component","childFactory"]),h=this.state.contextValue,p=PO(this.state.children).map(c);return delete d.appear,delete d.enter,delete d.exit,s===null?kt.createElement(qs.Provider,{value:h},p):kt.createElement(qs.Provider,{value:h},kt.createElement(s,d,p))},t}(kt.Component);l0.propTypes={},l0.defaultProps=UO;const OE=e=>e.scrollTop;function Vs(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 HO={entering:{opacity:1},entered:{opacity:1}},FO=A.forwardRef(function(t,r){const i=Bl(),l={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:s,appear:c=!0,children:d,easing:h,in:p,onEnter:b,onEntered:E,onEntering:T,onExit:y,onExited:v,onExiting:x,style:B,timeout:I=l,TransitionComponent:P=Yr,...M}=t,w=A.useRef(null),D=_r(w,Rs(d),r),N=Z=>ne=>{if(Z){const F=w.current;ne===void 0?Z(F):Z(F,ne)}},z=N(T),V=N((Z,ne)=>{OE(Z);const F=Vs({style:B,timeout:I,easing:h},{mode:"enter"});Z.style.webkitTransition=i.transitions.create("opacity",F),Z.style.transition=i.transitions.create("opacity",F),b&&b(Z,ne)}),j=N(E),_=N(x),q=N(Z=>{const ne=Vs({style:B,timeout:I,easing:h},{mode:"exit"});Z.style.webkitTransition=i.transitions.create("opacity",ne),Z.style.transition=i.transitions.create("opacity",ne),y&&y(Z)}),$=N(v),J=Z=>{s&&s(w.current,Z)};return pe.jsx(P,{appear:c,in:p,nodeRef:w,onEnter:V,onEntered:j,onEntering:z,onExit:q,onExited:$,onExiting:_,addEndListener:J,timeout:I,...M,children:(Z,{ownerState:ne,...F})=>A.cloneElement(d,{style:{opacity:0,visibility:Z==="exited"&&!p?"hidden":void 0,...HO[Z],...B,...d.props.style},ref:D,...F})})});function zO(e){return _n("MuiBackdrop",e)}vn("MuiBackdrop",["root","invisible"]);const YO=e=>{const{classes:t,invisible:r}=e;return On({root:["root",r&&"invisible"]},zO,t)},jO=mt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),qO=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiBackdrop"}),{children:l,className:s,component:c="div",invisible:d=!1,open:h,components:p={},componentsProps:b={},slotProps:E={},slots:T={},TransitionComponent:y,transitionDuration:v,...x}=i,B={...i,component:c,invisible:d},I=YO(B),P={transition:y,root:p.Root,...T},M={...b,...E},w={slots:P,slotProps:M},[D,N]=en("root",{elementType:jO,externalForwardedProps:w,className:tt(I.root,s),ownerState:B}),[z,V]=en("transition",{elementType:FO,externalForwardedProps:w,ownerState:B});return pe.jsx(z,{in:h,timeout:v,...x,...V,children:pe.jsx(D,{"aria-hidden":!0,...N,classes:I,ref:r,children:l})})});function VO(e){return typeof e=="function"?e():e}function GO(e){return e?e.props.hasOwnProperty("in"):!1}const kE=()=>{},Gs=new aR;function $O(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:i=!1,closeAfterTransition:l=!1,onTransitionEnter:s,onTransitionExited:c,children:d,onClose:h,open:p,rootRef:b}=e,E=A.useRef({}),T=A.useRef(null),y=A.useRef(null),v=_r(y,b),[x,B]=A.useState(!p),I=GO(d);let P=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(P=!1);const M=()=>xa(T.current),w=()=>(E.current.modalRef=y.current,E.current.mount=T.current,E.current),D=()=>{Gs.mount(w(),{disableScrollLock:i}),y.current&&(y.current.scrollTop=0)},N=Hr(()=>{const ne=VO(t)||M().body;Gs.add(w(),ne),y.current&&D()}),z=()=>Gs.isTopModal(w()),V=Hr(ne=>{T.current=ne,ne&&(p&&z()?D():y.current&&xl(y.current,P))}),j=A.useCallback(()=>{Gs.remove(w(),P)},[P]);A.useEffect(()=>()=>{j()},[j]),A.useEffect(()=>{p?N():(!I||!l)&&j()},[p,j,I,l,N]);const _=ne=>F=>{var ae;(ae=ne.onKeyDown)==null||ae.call(ne,F),!(F.key!=="Escape"||F.which===229||!z())&&(r||(F.stopPropagation(),h&&h(F,"escapeKeyDown")))},q=ne=>F=>{var ae;(ae=ne.onClick)==null||ae.call(ne,F),F.target===F.currentTarget&&h&&h(F,"backdropClick")};return{getRootProps:(ne={})=>{const F=zb(e);delete F.onTransitionEnter,delete F.onTransitionExited;const ae={...F,...ne};return{role:"presentation",...ae,onKeyDown:_(ae),ref:v}},getBackdropProps:(ne={})=>{const F=ne;return{"aria-hidden":!0,...F,onClick:q(F),open:p}},getTransitionProps:()=>{const ne=()=>{B(!1),s&&s()},F=()=>{B(!0),c&&c(),l&&j()};return{onEnter:Db(ne,(d==null?void 0:d.props.onEnter)??kE),onExited:Db(F,(d==null?void 0:d.props.onExited)??kE)}},rootRef:v,portalRef:V,isTopModal:z,exited:x,hasTransition:I}}function XO(e){return _n("MuiModal",e)}vn("MuiModal",["root","hidden","backdrop"]);const QO=e=>{const{open:t,exited:r,classes:i}=e;return On({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},XO,i)},KO=mt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Rn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),WO=mt(qO,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ZO=A.forwardRef(function(t,r){const i=kn({name:"MuiModal",props:t}),{BackdropComponent:l=WO,BackdropProps:s,classes:c,className:d,closeAfterTransition:h=!1,children:p,container:b,component:E,components:T={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:B=!1,disablePortal:I=!1,disableRestoreFocus:P=!1,disableScrollLock:M=!1,hideBackdrop:w=!1,keepMounted:D=!1,onBackdropClick:N,onClose:z,onTransitionEnter:V,onTransitionExited:j,open:_,slotProps:q={},slots:$={},theme:J,...Z}=i,ne={...i,closeAfterTransition:h,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:B,disablePortal:I,disableRestoreFocus:P,disableScrollLock:M,hideBackdrop:w,keepMounted:D},{getRootProps:F,getBackdropProps:ae,getTransitionProps:ie,portalRef:le,isTopModal:S,exited:K,hasTransition:de}=$O({...ne,rootRef:r}),O={...ne,exited:K},be=QO(O),Re={};if(p.props.tabIndex===void 0&&(Re.tabIndex="-1"),de){const{onEnter:gt,onExited:Ne}=ie();Re.onEnter=gt,Re.onExited=Ne}const Te={slots:{root:T.Root,backdrop:T.Backdrop,...$},slotProps:{...y,...q}},[Xe,Be]=en("root",{ref:r,elementType:KO,externalForwardedProps:{...Te,...Z,component:E},getSlotProps:F,ownerState:O,className:tt(d,be==null?void 0:be.root,!O.open&&O.exited&&(be==null?void 0:be.hidden))}),[ut,St]=en("backdrop",{ref:s==null?void 0:s.ref,elementType:l,externalForwardedProps:Te,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:gt=>ae({...gt,onClick:Ne=>{N&&N(Ne),gt!=null&&gt.onClick&&gt.onClick(Ne)}}),className:tt(s==null?void 0:s.className,be==null?void 0:be.backdrop),ownerState:O});return!D&&!_&&(!de||K)?null:pe.jsx(hR,{ref:le,container:b,disablePortal:I,children:pe.jsxs(Xe,{...Be,children:[!w&&l?pe.jsx(ut,{...St}):null,pe.jsx(fR,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:P,isEnabled:S,open:_,children:A.cloneElement(p,Re)})]})})});function JO(e){return _n("MuiSvgIcon",e)}vn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const e9=e=>{const{color:t,fontSize:r,classes:i}=e,l={root:["root",t!=="inherit"&&`color${st(t)}`,`fontSize${st(r)}`]};return On(l,JO,i)},t9=mt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${st(r.color)}`],t[`fontSize${st(r.fontSize)}`]]}})(Rn(({theme:e})=>{var t,r,i,l,s,c,d,h,p,b,E,T,y,v;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:((h=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:h.call(d,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((b=(p=e.typography)==null?void 0:p.pxToRem)==null?void 0:b.call(p,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,x])=>x&&x.main).map(([x])=>{var B,I;return{props:{color:x},style:{color:(I=(B=(e.vars??e).palette)==null?void 0:B[x])==null?void 0:I.main}}}),{props:{color:"action"},style:{color:(T=(E=(e.vars??e).palette)==null?void 0:E.action)==null?void 0:T.active}},{props:{color:"disabled"},style:{color:(v=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:v.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),o0=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiSvgIcon"}),{children:l,className:s,color:c="inherit",component:d="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:b=!1,titleAccess:E,viewBox:T="0 0 24 24",...y}=i,v=A.isValidElement(l)&&l.type==="svg",x={...i,color:c,component:d,fontSize:h,instanceFontSize:t.fontSize,inheritViewBox:b,viewBox:T,hasSvgAsChild:v},B={};b||(B.viewBox=T);const I=e9(x);return pe.jsxs(t9,{as:d,className:tt(I.root,s),focusable:"false",color:p,"aria-hidden":E?void 0:!0,role:E?"img":void 0,ref:r,...B,...y,...v&&l.props,ownerState:x,children:[v?l.props.children:l,E?pe.jsx("title",{children:E}):null]})});o0.muiName="SvgIcon";function si(e,t){function r(i,l){return pe.jsx(o0,{"data-testid":`${t}Icon`,ref:l,...i,children:e})}return r.muiName=o0.muiName,A.memo(A.forwardRef(r))}function n9(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return l=>{const s=typeof t=="function"?t(l):t,c=typeof e=="function"?e({...l,...s}):e,d=tt(l==null?void 0:l.className,s==null?void 0:s.className,c==null?void 0:c.className);return{...s,...c,...!!d&&{className:d},...(s==null?void 0:s.style)&&(c==null?void 0:c.style)&&{style:{...s.style,...c.style}},...(s==null?void 0:s.sx)&&(c==null?void 0:c.sx)&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const r=t,i=tt(r==null?void 0:r.className,e==null?void 0:e.className);return{...t,...e,...!!i&&{className:i},...(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:{...r.style,...e.style}},...(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function r9(e,t,r){const i=t.getBoundingClientRect(),l=r&&r.getBoundingClientRect(),s=Ur(t);let c;if(t.fakeTransform)c=t.fakeTransform;else{const p=s.getComputedStyle(t);c=p.getPropertyValue("-webkit-transform")||p.getPropertyValue("transform")}let d=0,h=0;if(c&&c!=="none"&&typeof c=="string"){const p=c.split("(")[1].split(")")[0].split(",");d=parseInt(p[4],10),h=parseInt(p[5],10)}return e==="left"?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+h-i.top}px)`:`translateY(${s.innerHeight+h-i.top}px)`:l?`translateY(-${i.top-l.top+i.height-h}px)`:`translateY(-${i.top+i.height-h}px)`}function a9(e){return typeof e=="function"?e():e}function $s(e,t,r){const i=a9(r),l=r9(e,t,i);l&&(t.style.webkitTransform=l,t.style.transform=l)}const i9=A.forwardRef(function(t,r){const i=Bl(),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:h,container:p,direction:b="down",easing:E=l,in:T,onEnter:y,onEntered:v,onEntering:x,onExit:B,onExited:I,onExiting:P,style:M,timeout:w=s,TransitionComponent:D=Yr,...N}=t,z=A.useRef(null),V=_r(Rs(h),z,r),j=ie=>le=>{ie&&(le===void 0?ie(z.current):ie(z.current,le))},_=j((ie,le)=>{$s(b,ie,p),OE(ie),y&&y(ie,le)}),q=j((ie,le)=>{const S=Vs({timeout:w,style:M,easing:E},{mode:"enter"});ie.style.webkitTransition=i.transitions.create("-webkit-transform",{...S}),ie.style.transition=i.transitions.create("transform",{...S}),ie.style.webkitTransform="none",ie.style.transform="none",x&&x(ie,le)}),$=j(v),J=j(P),Z=j(ie=>{const le=Vs({timeout:w,style:M,easing:E},{mode:"exit"});ie.style.webkitTransition=i.transitions.create("-webkit-transform",le),ie.style.transition=i.transitions.create("transform",le),$s(b,ie,p),B&&B(ie)}),ne=j(ie=>{ie.style.webkitTransition="",ie.style.transition="",I&&I(ie)}),F=ie=>{c&&c(z.current,ie)},ae=A.useCallback(()=>{z.current&&$s(b,z.current,p)},[b,p]);return A.useEffect(()=>{if(T||b==="down"||b==="right")return;const ie=xs(()=>{z.current&&$s(b,z.current,p)}),le=Ur(z.current);return le.addEventListener("resize",ie),()=>{ie.clear(),le.removeEventListener("resize",ie)}},[b,T,p]),A.useEffect(()=>{T||ae()},[T,ae]),pe.jsx(D,{nodeRef:z,onEnter:_,onEntered:$,onEntering:q,onExit:Z,onExited:ne,onExiting:J,addEndListener:F,appear:d,in:T,timeout:w,...N,children:(ie,{ownerState:le,...S})=>A.cloneElement(h,{ref:V,style:{visibility:ie==="exited"&&!T?"hidden":void 0,...M,...h.props.style},...S})})});function u9(e){return _n("MuiPaper",e)}vn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const l9=e=>{const{square:t,elevation:r,variant:i,classes:l}=e,s={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${r}`]};return On(s,u9,l)},o9=mt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Rn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),IE=A.forwardRef(function(t,r){var y;const i=kn({props:t,name:"MuiPaper"}),l=Bl(),{className:s,component:c="div",elevation:d=1,square:h=!1,variant:p="elevation",...b}=i,E={...i,component:c,elevation:d,square:h,variant:p},T=l9(E);return pe.jsx(o9,{as:c,ownerState:E,className:tt(T.root,s),ref:r,...b,style:{...p==="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(${kl("#fff",n0(d))}, ${kl("#fff",n0(d))})`}},...b.style}})});function s9(e){return _n("MuiDrawer",e)}vn("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const DE=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},c9=e=>{const{classes:t,anchor:r,variant:i}=e,l={root:["root",`anchor${st(r)}`],docked:[(i==="permanent"||i==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${st(r)}`,i!=="temporary"&&`paperAnchorDocked${st(r)}`]};return On(l,s9,t)},f9=mt(ZO,{name:"MuiDrawer",slot:"Root",overridesResolver:DE})(Rn(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),d9=mt("div",{shouldForwardProp:vE,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:DE})({flex:"0 0 auto"}),h9=mt(IE,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${st(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${st(r.anchor)}`]]}})(Rn(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),wE={left:"right",right:"left",top:"down",bottom:"up"};function p9(e){return["left","right"].includes(e)}function m9({direction:e},t){return e==="rtl"&&p9(t)?wE[t]:t}const g9=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiDrawer"}),l=Bl(),s=Bd(),c={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:h,children:p,className:b,elevation:E=16,hideBackdrop:T=!1,ModalProps:{BackdropProps:y,...v}={},onClose:x,open:B=!1,PaperProps:I={},SlideProps:P,TransitionComponent:M,transitionDuration:w=c,variant:D="temporary",slots:N={},slotProps:z={},...V}=i,j=A.useRef(!1);A.useEffect(()=>{j.current=!0},[]);const _=m9({direction:s?"rtl":"ltr"},d),$={...i,anchor:d,elevation:E,open:B,variant:D,...V},J=c9($),Z={slots:{transition:M,...N},slotProps:{paper:I,transition:P,...z,backdrop:n9(z.backdrop||{...h,...y},{transitionDuration:w})}},[ne,F]=en("root",{ref:r,elementType:f9,className:tt(J.root,J.modal,b),shouldForwardComponentProp:!0,ownerState:$,externalForwardedProps:{...Z,...V,...v},additionalProps:{open:B,onClose:x,hideBackdrop:T,slots:{backdrop:Z.slots.backdrop},slotProps:{backdrop:Z.slotProps.backdrop}}}),[ae,ie]=en("paper",{elementType:h9,shouldForwardComponentProp:!0,className:tt(J.paper,I.className),ownerState:$,externalForwardedProps:Z,additionalProps:{elevation:D==="temporary"?E:0,square:!0}}),[le,S]=en("docked",{elementType:d9,ref:r,className:tt(J.root,J.docked,b),ownerState:$,externalForwardedProps:Z,additionalProps:V}),[K,de]=en("transition",{elementType:i9,ownerState:$,externalForwardedProps:Z,additionalProps:{in:B,direction:wE[_],timeout:w,appear:j.current}}),O=pe.jsx(ae,{...ie,children:p});if(D==="permanent")return pe.jsx(le,{...S,children:O});const be=pe.jsx(K,{...de,children:O});return D==="persistent"?pe.jsx(le,{...S,children:be}):pe.jsx(ne,{...F,children:be})});class Xs{constructor(){Xo(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Xs}static use(){const t=Pb(Xs.create).current,[r,i]=A.useState(!1);return t.shouldMount=r,t.setShouldMount=i,A.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=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 b9(){return Xs.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 y9(e){const{className:t,classes:r,pulsate:i=!1,rippleX:l,rippleY:s,rippleSize:c,in:d,onExited:h,timeout:p}=e,[b,E]=A.useState(!1),T=tt(t,r.ripple,r.rippleVisible,i&&r.ripplePulsate),y={width:c,height:c,top:-(c/2)+s,left:-(c/2)+l},v=tt(r.child,b&&r.childLeaving,i&&r.childPulsate);return!d&&!b&&E(!0),A.useEffect(()=>{if(!d&&h!=null){const x=setTimeout(h,p);return()=>{clearTimeout(x)}}},[h,d,p]),pe.jsx("span",{className:T,style:y,children:pe.jsx("span",{className:v})})}const hr=vn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),s0=550,T9=80,S9=Ju`
119
119
  0% {
120
120
  transform: scale(0);
121
121
  opacity: 0.1;
@@ -125,7 +125,7 @@ export default theme;`}function t0(e={},...t){const{breakpoints:r,mixins:i={},sp
125
125
  transform: scale(1);
126
126
  opacity: 0.3;
127
127
  }
128
- `,A9=Ju`
128
+ `,C9=Ju`
129
129
  0% {
130
130
  opacity: 1;
131
131
  }
@@ -133,7 +133,7 @@ export default theme;`}function t0(e={},...t){const{breakpoints:r,mixins:i={},sp
133
133
  100% {
134
134
  opacity: 0;
135
135
  }
136
- `,x9=Ju`
136
+ `,A9=Ju`
137
137
  0% {
138
138
  transform: scale(1);
139
139
  }
@@ -145,14 +145,14 @@ export default theme;`}function t0(e={},...t){const{breakpoints:r,mixins:i={},sp
145
145
  100% {
146
146
  transform: scale(1);
147
147
  }
148
- `,_9=mt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),v9=mt(T9,{name:"MuiTouchRipple",slot:"Ripple"})`
148
+ `,x9=mt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_9=mt(y9,{name:"MuiTouchRipple",slot:"Ripple"})`
149
149
  opacity: 0;
150
150
  position: absolute;
151
151
 
152
152
  &.${hr.rippleVisible} {
153
153
  opacity: 0.3;
154
154
  transform: scale(1);
155
- animation-name: ${C9};
155
+ animation-name: ${S9};
156
156
  animation-duration: ${s0}ms;
157
157
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
158
158
  }
@@ -172,7 +172,7 @@ export default theme;`}function t0(e={},...t){const{breakpoints:r,mixins:i={},sp
172
172
 
173
173
  & .${hr.childLeaving} {
174
174
  opacity: 0;
175
- animation-name: ${A9};
175
+ animation-name: ${C9};
176
176
  animation-duration: ${s0}ms;
177
177
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
178
178
  }
@@ -182,18 +182,18 @@ export default theme;`}function t0(e={},...t){const{breakpoints:r,mixins:i={},sp
182
182
  /* @noflip */
183
183
  left: 0px;
184
184
  top: 0;
185
- animation-name: ${x9};
185
+ animation-name: ${A9};
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
- `,R9=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:c,...d}=i,[h,p]=A.useState([]),E=A.useRef(0),b=A.useRef(null);A.useEffect(()=>{b.current&&(b.current(),b.current=null)},[h]);const T=A.useRef(!1),y=QR(),v=A.useRef(null),x=A.useRef(null),B=A.useCallback(w=>{const{pulsate:D,rippleX:N,rippleY:z,rippleSize:V,cb:j}=w;p(_=>[..._,pe.jsx(v9,{classes:{ripple:tt(s.ripple,hr.ripple),rippleVisible:tt(s.rippleVisible,hr.rippleVisible),ripplePulsate:tt(s.ripplePulsate,hr.ripplePulsate),child:tt(s.child,hr.child),childLeaving:tt(s.childLeaving,hr.childLeaving),childPulsate:tt(s.childPulsate,hr.childPulsate)},timeout:s0,pulsate:D,rippleX:N,rippleY:z,rippleSize:V},E.current)]),E.current+=1,b.current=j},[s]),I=A.useCallback((w={},D={},N=()=>{})=>{const{pulsate:z=!1,center:V=o||D.pulsate,fakeElement:j=!1}=D;if((w==null?void 0:w.type)==="mousedown"&&T.current){T.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(T.current=!0);const _=j?null:x.current,q=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let $,J,Z;if(V||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)$=Math.round(q.width/2),J=Math.round(q.height/2);else{const{clientX:ne,clientY:F}=w.touches&&w.touches.length>0?w.touches[0]:w;$=Math.round(ne-q.left),J=Math.round(F-q.top)}if(V)Z=Math.sqrt((2*q.width**2+q.height**2)/3),Z%2===0&&(Z+=1);else{const ne=Math.max(Math.abs((_?_.clientWidth:0)-$),$)*2+2,F=Math.max(Math.abs((_?_.clientHeight:0)-J),J)*2+2;Z=Math.sqrt(ne**2+F**2)}w!=null&&w.touches?v.current===null&&(v.current=()=>{B({pulsate:z,rippleX:$,rippleY:J,rippleSize:Z,cb:N})},y.start(S9,()=>{v.current&&(v.current(),v.current=null)})):B({pulsate:z,rippleX:$,rippleY:J,rippleSize:Z,cb:N})},[o,B,y]),P=A.useCallback(()=>{I({},{pulsate:!0})},[I]),M=A.useCallback((w,D)=>{if(y.clear(),(w==null?void 0:w.type)==="touchend"&&v.current){v.current(),v.current=null,y.start(0,()=>{M(w,D)});return}v.current=null,p(N=>N.length>0?N.slice(1):N),b.current=D},[y]);return A.useImperativeHandle(r,()=>({pulsate:P,start:I,stop:M}),[P,I,M]),pe.jsx(_9,{className:tt(hr.root,s.root,c),ref:x,...d,children:pe.jsx(o0,{component:null,exit:!0,children:h})})});function N9(e){return _n("MuiButtonBase",e)}const O9=vn("MuiButtonBase",["root","disabled","focusVisible"]),k9=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:i,classes:o}=e,c=On({root:["root",t&&"disabled",r&&"focusVisible"]},N9,o);return r&&i&&(c.root+=` ${i}`),c},I9=mt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${O9.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),c0=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:c,className:d,component:h="button",disabled:p=!1,disableRipple:E=!1,disableTouchRipple:b=!1,focusRipple:T=!1,focusVisibleClassName:y,LinkComponent:v="a",onBlur:x,onClick:B,onContextMenu:I,onDragLeave:P,onFocus:M,onFocusVisible:w,onKeyDown:D,onKeyUp:N,onMouseDown:z,onMouseLeave:V,onMouseUp:j,onTouchEnd:_,onTouchMove:q,onTouchStart:$,tabIndex:J=0,TouchRippleProps:Z,touchRippleRef:ne,type:F,...ae}=i,ie=A.useRef(null),oe=b9(),S=_r(oe.ref,ne),[K,de]=A.useState(!1);p&&K&&de(!1),A.useImperativeHandle(o,()=>({focusVisible:()=>{de(!0),ie.current.focus()}}),[]);const O=oe.shouldMount&&!E&&!p;A.useEffect(()=>{K&&T&&!E&&oe.pulsate()},[E,T,K,oe]);const Ee=Zr(oe,"start",z,b),Re=Zr(oe,"stop",I,b),Te=Zr(oe,"stop",P,b),Xe=Zr(oe,"stop",j,b),Be=Zr(oe,"stop",Ie=>{K&&Ie.preventDefault(),V&&V(Ie)},b),ut=Zr(oe,"start",$,b),Ct=Zr(oe,"stop",_,b),gt=Zr(oe,"stop",q,b),Ne=Zr(oe,"stop",Ie=>{UE(Ie.target)||de(!1),x&&x(Ie)},!1),Oe=Hr(Ie=>{ie.current||(ie.current=Ie.currentTarget),UE(Ie.target)&&(de(!0),w&&w(Ie)),M&&M(Ie)}),Ce=()=>{const Ie=ie.current;return h&&h!=="button"&&!(Ie.tagName==="A"&&Ie.href)},we=Hr(Ie=>{T&&!Ie.repeat&&K&&Ie.key===" "&&oe.stop(Ie,()=>{oe.start(Ie)}),Ie.target===Ie.currentTarget&&Ce()&&Ie.key===" "&&Ie.preventDefault(),D&&D(Ie),Ie.target===Ie.currentTarget&&Ce()&&Ie.key==="Enter"&&!p&&(Ie.preventDefault(),B&&B(Ie))}),ke=Hr(Ie=>{T&&Ie.key===" "&&K&&!Ie.defaultPrevented&&oe.stop(Ie,()=>{oe.pulsate(Ie)}),N&&N(Ie),B&&Ie.target===Ie.currentTarget&&Ce()&&Ie.key===" "&&!Ie.defaultPrevented&&B(Ie)});let Me=h;Me==="button"&&(ae.href||ae.to)&&(Me=v);const Fe={};Me==="button"?(Fe.type=F===void 0?"button":F,Fe.disabled=p):(!ae.href&&!ae.to&&(Fe.role="button"),p&&(Fe["aria-disabled"]=p));const qe=_r(r,ie),$e={...i,centerRipple:s,component:h,disabled:p,disableRipple:E,disableTouchRipple:b,focusRipple:T,tabIndex:J,focusVisible:K},ct=k9($e);return pe.jsxs(I9,{as:Me,className:tt(ct.root,d),ownerState:$e,onBlur:Ne,onClick:B,onContextMenu:Re,onFocus:Oe,onKeyDown:we,onKeyUp:ke,onMouseDown:Ee,onMouseLeave:Be,onMouseUp:Xe,onDragLeave:Te,onTouchEnd:Ct,onTouchMove:gt,onTouchStart:ut,ref:qe,tabIndex:p?-1:J,type:F,...Fe,...ae,children:[c,O?pe.jsx(R9,{ref:S,center:s,...Z}):null]})});function Zr(e,t,r,i=!1){return Hr(o=>(r&&r(o),i||e[t](o),!0))}function D9(e){return _n("MuiTab",e)}const pr=vn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),w9=e=>{const{classes:t,textColor:r,fullWidth:i,wrapped:o,icon:s,label:c,selected:d,disabled:h}=e,p={root:["root",s&&c&&"labelIcon",`textColor${st(r)}`,i&&"fullWidth",o&&"wrapped",d&&"selected",h&&"disabled"],icon:["iconWrapper","icon"]};return On(p,D9,t)},L9=mt(c0,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${st(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${pr.iconWrapper}`]:t.iconWrapper},{[`& .${pr.icon}`]:t.icon}]}})(Rn(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${pr.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${pr.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${pr.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${pr.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${pr.selected}`]:{opacity:1},[`&.${pr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${pr.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${pr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${pr.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${pr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),M9=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiTab"}),{className:o,disabled:s=!1,disableFocusRipple:c=!1,fullWidth:d,icon:h,iconPosition:p="top",indicator:E,label:b,onChange:T,onClick:y,onFocus:v,selected:x,selectionFollowsFocus:B,textColor:I="inherit",value:P,wrapped:M=!1,...w}=i,D={...i,disabled:s,disableFocusRipple:c,selected:x,icon:!!h,iconPosition:p,label:!!b,fullWidth:d,textColor:I,wrapped:M},N=w9(D),z=h&&b&&A.isValidElement(h)?A.cloneElement(h,{className:tt(N.icon,h.props.className)}):h,V=_=>{!x&&T&&T(_,P),y&&y(_)},j=_=>{B&&!x&&T&&T(_,P),v&&v(_)};return pe.jsxs(L9,{focusRipple:!c,className:tt(N.root,o),ref:r,role:"tab","aria-selected":x,disabled:s,onClick:V,onFocus:j,ownerState:D,tabIndex:x?0:-1,...w,children:[p==="top"||p==="start"?pe.jsxs(A.Fragment,{children:[z,b]}):pe.jsxs(A.Fragment,{children:[b,z]}),E]})});function B9(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function P9(e,t,r,i={},o=()=>{}){const{ease:s=B9,duration:c=300}=i;let d=null;const h=t[e];let p=!1;const E=()=>{p=!0},b=T=>{if(p){o(new Error("Animation cancelled"));return}d===null&&(d=T);const y=Math.min(1,(T-d)/c);if(t[e]=s(y)*(r-h)+h,y>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(b)};return h===r?(o(new Error("Element already at target position")),E):(requestAnimationFrame(b),E)}const U9={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function H9(e){const{onChange:t,...r}=e,i=A.useRef(),o=A.useRef(null),s=()=>{i.current=o.current.offsetHeight-o.current.clientHeight};return _a(()=>{const c=xs(()=>{const h=i.current;s(),h!==i.current&&t(i.current)}),d=Ur(o.current);return d.addEventListener("resize",c),()=>{c.clear(),d.removeEventListener("resize",c)}},[t]),A.useEffect(()=>{s(),t(i.current)},[t]),pe.jsx("div",{style:U9,...r,ref:o})}const F9=si(pe.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),z9=si(pe.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Y9(e){return _n("MuiTabScrollButton",e)}const j9=vn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),q9=e=>{const{classes:t,orientation:r,disabled:i}=e;return On({root:["root",r,i&&"disabled"]},Y9,t)},V9=mt(c0,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${j9.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),G9=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:c={},direction:d,orientation:h,disabled:p,...E}=i,b=Bd(),T={isRtl:b,...i},y=q9(T),v=s.StartScrollButtonIcon??F9,x=s.EndScrollButtonIcon??z9,B=vs({elementType:v,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:T}),I=vs({elementType:x,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:T});return pe.jsx(V9,{component:"div",className:tt(y.root,o),ref:r,role:null,ownerState:T,tabIndex:null,...E,style:{...E.style,...h==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${b?-90:90}deg)`}},children:d==="left"?pe.jsx(v,{...B}):pe.jsx(x,{...I})})});function $9(e){return _n("MuiTabs",e)}const f0=vn("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Lb=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Mb=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Qs=(e,t,r)=>{let i=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(i)return;i=!0}const s=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||s)o=r(e,o);else{o.focus();return}}},X9=e=>{const{vertical:t,fixed:r,hideScrollbar:i,scrollableX:o,scrollableY:s,centered:c,scrollButtonsHideMobile:d,classes:h}=e;return On({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",i&&"hideScrollbar",o&&"scrollableX",s&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",c&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",d&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},$9,h)},Q9=mt("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${f0.scrollButtons}`]:t.scrollButtons},{[`& .${f0.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Rn(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${f0.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),K9=mt("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),W9=mt("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.list,t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),Z9=mt("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Rn(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),J9=mt(H9)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Bb={},ek=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiTabs"}),o=Po(),s=Bd(),{"aria-label":c,"aria-labelledby":d,action:h,centered:p=!1,children:E,className:b,component:T="div",allowScrollButtonsMobile:y=!1,indicatorColor:v="primary",onChange:x,orientation:B="horizontal",ScrollButtonComponent:I,scrollButtons:P="auto",selectionFollowsFocus:M,slots:w={},slotProps:D={},TabIndicatorProps:N={},TabScrollButtonProps:z={},textColor:V="primary",value:j,variant:_="standard",visibleScrollbar:q=!1,...$}=i,J=_==="scrollable",Z=B==="vertical",ne=Z?"scrollTop":"scrollLeft",F=Z?"top":"left",ae=Z?"bottom":"right",ie=Z?"clientHeight":"clientWidth",oe=Z?"height":"width",S={...i,component:T,allowScrollButtonsMobile:y,indicatorColor:v,orientation:B,vertical:Z,scrollButtons:P,textColor:V,variant:_,visibleScrollbar:q,fixed:!J,hideScrollbar:J&&!q,scrollableX:J&&!Z,scrollableY:J&&Z,centered:p&&!J,scrollButtonsHideMobile:!y},K=X9(S),de=vs({elementType:w.StartScrollButtonIcon,externalSlotProps:D.startScrollButtonIcon,ownerState:S}),O=vs({elementType:w.EndScrollButtonIcon,externalSlotProps:D.endScrollButtonIcon,ownerState:S}),[Ee,Re]=A.useState(!1),[Te,Xe]=A.useState(Bb),[Be,ut]=A.useState(!1),[Ct,gt]=A.useState(!1),[Ne,Oe]=A.useState(!1),[Ce,we]=A.useState({overflow:"hidden",scrollbarWidth:0}),ke=new Map,Me=A.useRef(null),Fe=A.useRef(null),qe={slots:w,slotProps:{indicator:N,scrollButton:z,...D}},$e=()=>{const xe=Me.current;let _e;if(xe){const Ge=xe.getBoundingClientRect();_e={clientWidth:xe.clientWidth,scrollLeft:xe.scrollLeft,scrollTop:xe.scrollTop,scrollWidth:xe.scrollWidth,top:Ge.top,bottom:Ge.bottom,left:Ge.left,right:Ge.right}}let Ye;if(xe&&j!==!1){const Ge=Fe.current.children;if(Ge.length>0){const xt=Ge[ke.get(j)];Ye=xt?xt.getBoundingClientRect():null}}return{tabsMeta:_e,tabMeta:Ye}},ct=Hr(()=>{const{tabsMeta:xe,tabMeta:_e}=$e();let Ye=0,Ge;Z?(Ge="top",_e&&xe&&(Ye=_e.top-xe.top+xe.scrollTop)):(Ge=s?"right":"left",_e&&xe&&(Ye=(s?-1:1)*(_e[Ge]-xe[Ge]+xe.scrollLeft)));const xt={[Ge]:Ye,[oe]:_e?_e[oe]:0};if(typeof Te[Ge]!="number"||typeof Te[oe]!="number")Xe(xt);else{const zn=Math.abs(Te[Ge]-xt[Ge]),ta=Math.abs(Te[oe]-xt[oe]);(zn>=1||ta>=1)&&Xe(xt)}}),Ie=(xe,{animation:_e=!0}={})=>{_e?P9(ne,Me.current,xe,{duration:o.transitions.duration.standard}):Me.current[ne]=xe},un=xe=>{let _e=Me.current[ne];Z?_e+=xe:_e+=xe*(s?-1:1),Ie(_e)},Ft=()=>{const xe=Me.current[ie];let _e=0;const Ye=Array.from(Fe.current.children);for(let Ge=0;Ge<Ye.length;Ge+=1){const xt=Ye[Ge];if(_e+xt[ie]>xe){Ge===0&&(_e=xe);break}_e+=xt[ie]}return _e},Bt=()=>{un(-1*Ft())},re=()=>{un(Ft())},[he,{onChange:Se,...Ae}]=en("scrollbar",{className:tt(K.scrollableX,K.hideScrollbar),elementType:J9,shouldForwardComponentProp:!0,externalForwardedProps:qe,ownerState:S}),Pe=A.useCallback(xe=>{Se==null||Se(xe),we({overflow:null,scrollbarWidth:xe})},[Se]),[Ve,Tt]=en("scrollButtons",{className:tt(K.scrollButtons,z.className),elementType:G9,externalForwardedProps:qe,ownerState:S,additionalProps:{orientation:B,slots:{StartScrollButtonIcon:w.startScrollButtonIcon||w.StartScrollButtonIcon,EndScrollButtonIcon:w.endScrollButtonIcon||w.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:de,endScrollButtonIcon:O}}}),At=()=>{const xe={};xe.scrollbarSizeListener=J?pe.jsx(he,{...Ae,onChange:Pe}):null;const Ye=J&&(P==="auto"&&(Be||Ct)||P===!0);return xe.scrollButtonStart=Ye?pe.jsx(Ve,{direction:s?"right":"left",onClick:Bt,disabled:!Be,...Tt}):null,xe.scrollButtonEnd=Ye?pe.jsx(Ve,{direction:s?"left":"right",onClick:re,disabled:!Ct,...Tt}):null,xe},Zn=Hr(xe=>{const{tabsMeta:_e,tabMeta:Ye}=$e();if(!(!Ye||!_e)){if(Ye[F]<_e[F]){const Ge=_e[ne]+(Ye[F]-_e[F]);Ie(Ge,{animation:xe})}else if(Ye[ae]>_e[ae]){const Ge=_e[ne]+(Ye[ae]-_e[ae]);Ie(Ge,{animation:xe})}}}),fn=Hr(()=>{J&&P!==!1&&Oe(!Ne)});A.useEffect(()=>{const xe=xs(()=>{Me.current&&ct()});let _e;const Ye=zn=>{zn.forEach(ta=>{ta.removedNodes.forEach(mi=>{_e==null||_e.unobserve(mi)}),ta.addedNodes.forEach(mi=>{_e==null||_e.observe(mi)})}),xe(),fn()},Ge=Ur(Me.current);Ge.addEventListener("resize",xe);let xt;return typeof ResizeObserver<"u"&&(_e=new ResizeObserver(xe),Array.from(Fe.current.children).forEach(zn=>{_e.observe(zn)})),typeof MutationObserver<"u"&&(xt=new MutationObserver(Ye),xt.observe(Fe.current,{childList:!0})),()=>{xe.clear(),Ge.removeEventListener("resize",xe),xt==null||xt.disconnect(),_e==null||_e.disconnect()}},[ct,fn]),A.useEffect(()=>{const xe=Array.from(Fe.current.children),_e=xe.length;if(typeof IntersectionObserver<"u"&&_e>0&&J&&P!==!1){const Ye=xe[0],Ge=xe[_e-1],xt={root:Me.current,threshold:.99},zn=na=>{ut(!na[0].isIntersecting)},ta=new IntersectionObserver(zn,xt);ta.observe(Ye);const mi=na=>{gt(!na[0].isIntersecting)},el=new IntersectionObserver(mi,xt);return el.observe(Ge),()=>{ta.disconnect(),el.disconnect()}}},[J,P,Ne,E==null?void 0:E.length]),A.useEffect(()=>{Re(!0)},[]),A.useEffect(()=>{ct()}),A.useEffect(()=>{Zn(Bb!==Te)},[Zn,Te]),A.useImperativeHandle(h,()=>({updateIndicator:ct,updateScrollButtons:fn}),[ct,fn]);const[nn,Hn]=en("indicator",{className:tt(K.indicator,N.className),elementType:Z9,externalForwardedProps:qe,ownerState:S,additionalProps:{style:Te}}),Fn=pe.jsx(nn,{...Hn});let pi=0;const tc=A.Children.map(E,xe=>{if(!A.isValidElement(xe))return null;const _e=xe.props.value===void 0?pi:xe.props.value;ke.set(_e,pi);const Ye=_e===j;return pi+=1,A.cloneElement(xe,{fullWidth:_==="fullWidth",indicator:Ye&&!Ee&&Fn,selected:Ye,selectionFollowsFocus:M,onChange:x,textColor:V,value:_e,...pi===1&&j===!1&&!xe.props.tabIndex?{tabIndex:0}:{}})}),Wo=xe=>{if(xe.altKey||xe.shiftKey||xe.ctrlKey||xe.metaKey)return;const _e=Fe.current,Ye=xa(_e).activeElement;if(Ye.getAttribute("role")!=="tab")return;let xt=B==="horizontal"?"ArrowLeft":"ArrowUp",zn=B==="horizontal"?"ArrowRight":"ArrowDown";switch(B==="horizontal"&&s&&(xt="ArrowRight",zn="ArrowLeft"),xe.key){case xt:xe.preventDefault(),Qs(_e,Ye,Mb);break;case zn:xe.preventDefault(),Qs(_e,Ye,Lb);break;case"Home":xe.preventDefault(),Qs(_e,null,Lb);break;case"End":xe.preventDefault(),Qs(_e,null,Mb);break}},ea=At(),[K0,nc]=en("root",{ref:r,className:tt(K.root,b),elementType:Q9,externalForwardedProps:{...qe,...$,component:T},ownerState:S}),[rc,Zo]=en("scroller",{ref:Me,className:K.scroller,elementType:K9,externalForwardedProps:qe,ownerState:S,additionalProps:{style:{overflow:Ce.overflow,[Z?`margin${s?"Left":"Right"}`:"marginBottom"]:q?void 0:-Ce.scrollbarWidth}}}),[Jo,ac]=en("list",{ref:Fe,className:tt(K.list,K.flexContainer),elementType:W9,externalForwardedProps:qe,ownerState:S,getSlotProps:xe=>({...xe,onKeyDown:_e=>{var Ye;Wo(_e),(Ye=xe.onKeyDown)==null||Ye.call(xe,_e)}})});return pe.jsxs(K0,{...nc,children:[ea.scrollButtonStart,ea.scrollbarSizeListener,pe.jsxs(rc,{...Zo,children:[pe.jsx(Jo,{"aria-label":c,"aria-labelledby":d,"aria-orientation":B==="vertical"?"vertical":null,role:"tablist",...ac,children:tc}),Ee&&Fn]}),ea.scrollButtonEnd]})}),Pb=A.createContext(null);function tk(){const[e,t]=A.useState(null);return A.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function nk(e){const{children:t,value:r}=e,i=tk(),o=A.useMemo(()=>({idPrefix:i,value:r}),[i,r]);return pe.jsx(Pb.Provider,{value:o,children:t})}function Ub(){return A.useContext(Pb)}function Hb(e,t){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-P-${t}`}function Fb(e,t){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-T-${t}`}const rk=["children"],ak=A.forwardRef(function(t,r){const{children:i}=t,o=js(t,rk),s=Ub();if(s===null)throw new TypeError("No TabContext provided");const c=A.Children.map(i,d=>A.isValidElement(d)?A.cloneElement(d,{"aria-controls":Hb(s,d.props.value),id:Fb(s,d.props.value)}):null);return pe.jsx(ek,Ja({},o,{ref:r,value:s.value,children:c}))});function ik({props:e,name:t}){return NN({props:e,name:t,defaultTheme:Ys,themeId:zr})}function d0({theme:e,...t}){const r=zr in e?e[zr]:void 0;return pe.jsx(sb,{...t,themeId:r?zr:void 0,theme:r||e})}const Ks={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:uk}=$N({themeId:zr,theme:()=>zs({cssVariables:!0}),colorSchemeStorageKey:Ks.colorSchemeStorageKey,modeStorageKey:Ks.modeStorageKey,defaultColorScheme:{light:Ks.defaultLightColorScheme,dark:Ks.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:Tb(e.palette,e.typography)};return t.unstable_sx=function(i){return ii({sx:i,theme:this})},t}}),ok=uk;function lk({theme:e,...t}){if(typeof e=="function")return pe.jsx(d0,{theme:e,...t});const r=zr in e?e[zr]:e;return"colorSchemes"in r?pe.jsx(ok,{theme:e,...t}):"vars"in r?pe.jsx(d0,{theme:e,...t}):pe.jsx(d0,{theme:{...e,vars:null},...t})}const tn={text:{roman:400,medium:500,bold:700}},it=e=>`${e/16}rem`,zb={fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeightLight:tn.text.roman,fontWeightRegular:tn.text.roman,fontWeightMedium:tn.text.medium,fontWeightBold:tn.text.bold,h1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.bold,fontStyle:"normal",fontSize:it(52),lineHeight:it(60)},h2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.bold,fontStyle:"normal",fontSize:it(34),lineHeight:it(40)},h3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.bold,fontStyle:"normal",fontSize:it(28),lineHeight:it(36)},h4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.bold,fontStyle:"normal",fontSize:it(24),lineHeight:it(30)},h5:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(18),lineHeight:it(22)},subtitle1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(16),lineHeight:it(20)},subtitle2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(14),lineHeight:it(18)},subtitle3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(12),lineHeight:it(16)},subtitle4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(10),lineHeight:it(14)},body1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.roman,fontStyle:"normal",fontSize:it(16),lineHeight:it(20)},body2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.roman,fontStyle:"normal",fontSize:it(14),lineHeight:it(18)},body3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.roman,fontStyle:"normal",fontSize:it(12),lineHeight:it(16)},body4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.roman,fontStyle:"normal",fontSize:it(10),lineHeight:it(14)},buttonLarge:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(16),lineHeight:it(20)},button:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(14),lineHeight:it(18),textTransform:"none"},buttonSmall:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(12),lineHeight:it(16)}},sk={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:xB}=zs({typography:zb,custom:{}}),ck=He.a({color:"inherit",textDecoration:"none"}),fk=A.forwardRef(function({Component:t,...r},i){const o=WC(),s=t??o.custom.LinkAdapter;return A.createElement(ck,{as:s,ref:i,...r},r.children)}),dk={variant:!0,size:!0,edge:!0,startIcon:!0,endIcon:!0,responsive:!0,color:!0},Yb=e=>!dk[e],h0={variant:"primary",size:"medium",edge:"rounded",responsive:!1},jb={small:1,medium:1,large:2},qb={small:"small",medium:"small",large:"medium"},Vb=(e,t,r)=>{const i=t?jb[e]:0;return[{boxSizing:"border-box",borderWidth:jb[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}]},Gb=e=>{const{size:t,variant:r,edge:i,theme:o,color:s,responsive:c}={...h0,...e},{colors:d}=o.custom,h=r==="secondary"||r==="bordered";return Pi([{color:o.palette.text.primary,textAlign:"center",display:"inline-flex",justifyContent:"center",alignItems:"center",transition:`background ${o.transitions.duration.short}ms`,cursor:"pointer",":disabled":{cursor:"default"},minWidth:"100px"},...Vb(t,h,o),c&&{[o.breakpoints.down("sm")]:Vb(qb[t],h,o)},r==="primary"&&{backgroundColor:d.mitRed,color:d.white,border:"none",boxShadow:"0px 2px 4px 0px rgba(37, 38, 43, 0.10), 0px 3px 8px 0px rgba(37, 38, 43, 0.12)",":hover:not(:disabled)":{backgroundColor:d.red,boxShadow:"none"},":disabled":{backgroundColor:d.silverGray,boxShadow:"none"}},r==="secondary"&&{color:d.red,backgroundColor:"transparent",borderColor:"currentcolor",borderStyle:"solid",":hover:not(:disabled)":{backgroundColor:"rgba(255, 20, 35, 0.06)"},":disabled":{color:d.silverGray}},r==="text"&&{backgroundColor:"transparent",borderStyle:"none",color:d.darkGray2,":hover:not(:disabled)":{backgroundColor:"rgba(64, 70, 76, 0.06)"},":disabled":{color:d.silverGray}},r==="bordered"&&{backgroundColor:d.white,color:d.silverGrayDark,border:`1px solid ${d.silverGrayLight}`,":hover:not(:disabled)":{backgroundColor:d.lightGray1,color:d.darkGray2},":disabled":{backgroundColor:d.lightGray2,border:`1px solid ${d.lightGray2}`,color:d.silverGrayDark}},r==="tertiary"&&{color:d.darkGray2,border:"none",backgroundColor:d.lightGray2,":hover:not(:disabled)":{backgroundColor:d.white},":disabled":{backgroundColor:d.lightGray2,color:d.silverGrayLight}},i==="rounded"&&{borderRadius:"4px"},i==="circular"&&{borderRadius:"100vh"},s==="secondary"&&{color:o.custom.colors.silverGray,borderColor:o.custom.colors.silverGray,":hover:not(:disabled)":{backgroundColor:o.custom.colors.lightGray1}}])},$b=He("button",{shouldForwardProp:Yb})(Gb),Xb=He(fk,{shouldForwardProp:Yb})(Gb),Qb=He.span(({size:e,side:t})=>[{height:"1em",display:"flex",alignItems:"center"},t==="start"&&{marginLeft:"-4px",marginRight:"8px"},t==="end"&&{marginLeft:"8px",marginRight:"-4px"},{"& svg, & .MuiSvgIcon-root":{width:"1em",height:"1em",fontSize:it({small:16,medium:20,large:24}[e])}}]),Kb=e=>{const{children:t,size:r=h0.size}=e;return A.createElement(A.Fragment,null,e.startIcon?A.createElement(Qb,{size:r,side:"start"},e.startIcon):null,t,e.endIcon?A.createElement(Qb,{size:r,side:"end"},e.endIcon):null)},Wb=A.forwardRef(({children:e,...t},r)=>A.createElement($b,{ref:r,type:"button",...t},A.createElement(Kb,{...t},e)));Wb.displayName="Button";const Zb=A.forwardRef(({children:e,Component:t,...r},i)=>A.createElement(Xb,{Component:t,ref:i,...r},A.createElement(Kb,{...r},e)));Zb.displayName="ButtonLink";const hk={variant:"scrollable",allowScrollButtonsMobile:!0,scrollButtons:"auto"},pk=He(({styleVariant:e,...t})=>A.createElement(ak,{...hk,...t}))(({theme:e,styleVariant:t})=>({minHeight:"unset",".MuiTabs-indicator":{display:"none"},".MuiTabs-flexContainer":{gap:"8px",alignItems:"center"},".MuiTabs-scroller":{display:"flex"},...t==="chat"&&{flexGrow:1,".MuiTabs-flexContainer":{flexGrow:1,gap:"8px",alignItems:"center",backgroundColor:e.custom.colors.lightGray1,padding:"4px",borderRadius:"8px"},button:{flexGrow:1,backgroundColor:"transparent",...e.typography.body2},"button[aria-selected=true], button[aria-selected=true]:hover":{backgroundColor:e.custom.colors.darkGray1,color:e.custom.colors.white,cursor:"default"}}})),Jb=({theme:e})=>Pi({minWidth:"auto",":focus-visible":{outlineOffset:"-1px"},'&[aria-selected="true"]':{backgroundColor:e.custom.colors.white,borderColor:e.custom.colors.darkGray2}}),mk=He(Wb)(Jb),gk=He(Zb)(Jb),e2={variant:"tertiary",size:"small"},t2=A.forwardRef((e,t)=>{const{className:r,...i}=e;return A.createElement(mk,{...e2,...i,ref:t})});t2.displayName="TabButtonInner";const Ek=A.forwardRef((e,t)=>{const{className:r,...i}=e;return A.createElement(gk,{...e2,...i,ref:t},e.children)});Ek.displayName="TabLinkInner";const p0=e=>A.createElement(M9,{...e,component:t2});function bk(e){return typeof e.main=="string"}function yk(e,t=[]){if(!bk(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function ci(e=[]){return([,t])=>t&&yk(t,e)}function Tk(e){return _n("MuiTypography",e)}vn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Sk={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Ck=DO(),Ak=e=>{const{align:t,gutterBottom:r,noWrap:i,paragraph:o,variant:s,classes:c}=e,d={root:["root",s,e.align!=="inherit"&&`align${st(t)}`,r&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return On(d,Tk,c)},xk=mt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${st(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Rn(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,i])=>r!=="inherit"&&i&&typeof i=="object").map(([r,i])=>({props:{variant:r},style:i})),...Object.entries(e.palette).filter(ci()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${st(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),n2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},fi=A.forwardRef(function(t,r){const{color:i,...o}=kn({props:t,name:"MuiTypography"}),s=!Sk[i],c=Ck({...o,...s&&{color:i}}),{align:d="inherit",className:h,component:p,gutterBottom:E=!1,noWrap:b=!1,paragraph:T=!1,variant:y="body1",variantMapping:v=n2,...x}=c,B={...c,align:d,color:i,className:h,component:p,gutterBottom:E,noWrap:b,paragraph:T,variant:y,variantMapping:v},I=p||(T?"p":v[y]||n2[y])||"span",P=Ak(B);return pe.jsx(xk,{as:I,ref:r,className:tt(P.root,h),...x,ownerState:B,style:{...d!=="inherit"&&{"--Typography-textAlign":d},...x.style}})});function _k(e){return _n("MuiTabPanel",e)}vn("MuiTabPanel",["root","hidden"]);const vk=["children","className","value","keepMounted"],Rk=e=>{const{classes:t,hidden:r}=e;return On({root:["root",r&&"hidden"]},_k,t)},Nk=mt("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),Ok=A.forwardRef(function(t,r){const i=ik({props:t,name:"MuiTabPanel"}),{children:o,className:s,value:c,keepMounted:d=!1}=i,h=js(i,vk),p=Ja({},i),E=Rk(p),b=Ub();if(b===null)throw new TypeError("No TabContext provided");const T=Hb(b,c),y=Fb(b,c);return pe.jsx(Nk,Ja({"aria-labelledby":y,className:tt(E.root,s),hidden:c!==b.value,id:T,ref:r,role:"tabpanel",ownerState:p},h,{children:(d||c===b.value)&&o}))});var m0={exports:{}};/*!
191
+ `,v9=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiTouchRipple"}),{center:l=!1,classes:s={},className:c,...d}=i,[h,p]=A.useState([]),b=A.useRef(0),E=A.useRef(null);A.useEffect(()=>{E.current&&(E.current(),E.current=null)},[h]);const T=A.useRef(!1),y=X8(),v=A.useRef(null),x=A.useRef(null),B=A.useCallback(w=>{const{pulsate:D,rippleX:N,rippleY:z,rippleSize:V,cb:j}=w;p(_=>[..._,pe.jsx(_9,{classes:{ripple:tt(s.ripple,hr.ripple),rippleVisible:tt(s.rippleVisible,hr.rippleVisible),ripplePulsate:tt(s.ripplePulsate,hr.ripplePulsate),child:tt(s.child,hr.child),childLeaving:tt(s.childLeaving,hr.childLeaving),childPulsate:tt(s.childPulsate,hr.childPulsate)},timeout:s0,pulsate:D,rippleX:N,rippleY:z,rippleSize:V},b.current)]),b.current+=1,E.current=j},[s]),I=A.useCallback((w={},D={},N=()=>{})=>{const{pulsate:z=!1,center:V=l||D.pulsate,fakeElement:j=!1}=D;if((w==null?void 0:w.type)==="mousedown"&&T.current){T.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(T.current=!0);const _=j?null:x.current,q=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let $,J,Z;if(V||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)$=Math.round(q.width/2),J=Math.round(q.height/2);else{const{clientX:ne,clientY:F}=w.touches&&w.touches.length>0?w.touches[0]:w;$=Math.round(ne-q.left),J=Math.round(F-q.top)}if(V)Z=Math.sqrt((2*q.width**2+q.height**2)/3),Z%2===0&&(Z+=1);else{const ne=Math.max(Math.abs((_?_.clientWidth:0)-$),$)*2+2,F=Math.max(Math.abs((_?_.clientHeight:0)-J),J)*2+2;Z=Math.sqrt(ne**2+F**2)}w!=null&&w.touches?v.current===null&&(v.current=()=>{B({pulsate:z,rippleX:$,rippleY:J,rippleSize:Z,cb:N})},y.start(T9,()=>{v.current&&(v.current(),v.current=null)})):B({pulsate:z,rippleX:$,rippleY:J,rippleSize:Z,cb:N})},[l,B,y]),P=A.useCallback(()=>{I({},{pulsate:!0})},[I]),M=A.useCallback((w,D)=>{if(y.clear(),(w==null?void 0:w.type)==="touchend"&&v.current){v.current(),v.current=null,y.start(0,()=>{M(w,D)});return}v.current=null,p(N=>N.length>0?N.slice(1):N),E.current=D},[y]);return A.useImperativeHandle(r,()=>({pulsate:P,start:I,stop:M}),[P,I,M]),pe.jsx(x9,{className:tt(hr.root,s.root,c),ref:x,...d,children:pe.jsx(l0,{component:null,exit:!0,children:h})})});function R9(e){return _n("MuiButtonBase",e)}const N9=vn("MuiButtonBase",["root","disabled","focusVisible"]),O9=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:i,classes:l}=e,c=On({root:["root",t&&"disabled",r&&"focusVisible"]},R9,l);return r&&i&&(c.root+=` ${i}`),c},k9=mt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${N9.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),c0=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiButtonBase"}),{action:l,centerRipple:s=!1,children:c,className:d,component:h="button",disabled:p=!1,disableRipple:b=!1,disableTouchRipple:E=!1,focusRipple:T=!1,focusVisibleClassName:y,LinkComponent:v="a",onBlur:x,onClick:B,onContextMenu:I,onDragLeave:P,onFocus:M,onFocusVisible:w,onKeyDown:D,onKeyUp:N,onMouseDown:z,onMouseLeave:V,onMouseUp:j,onTouchEnd:_,onTouchMove:q,onTouchStart:$,tabIndex:J=0,TouchRippleProps:Z,touchRippleRef:ne,type:F,...ae}=i,ie=A.useRef(null),le=b9(),S=_r(le.ref,ne),[K,de]=A.useState(!1);p&&K&&de(!1),A.useImperativeHandle(l,()=>({focusVisible:()=>{de(!0),ie.current.focus()}}),[]);const O=le.shouldMount&&!b&&!p;A.useEffect(()=>{K&&T&&!b&&le.pulsate()},[b,T,K,le]);const be=Zr(le,"start",z,E),Re=Zr(le,"stop",I,E),Te=Zr(le,"stop",P,E),Xe=Zr(le,"stop",j,E),Be=Zr(le,"stop",Ie=>{K&&Ie.preventDefault(),V&&V(Ie)},E),ut=Zr(le,"start",$,E),St=Zr(le,"stop",_,E),gt=Zr(le,"stop",q,E),Ne=Zr(le,"stop",Ie=>{Ub(Ie.target)||de(!1),x&&x(Ie)},!1),Oe=Hr(Ie=>{ie.current||(ie.current=Ie.currentTarget),Ub(Ie.target)&&(de(!0),w&&w(Ie)),M&&M(Ie)}),Ce=()=>{const Ie=ie.current;return h&&h!=="button"&&!(Ie.tagName==="A"&&Ie.href)},we=Hr(Ie=>{T&&!Ie.repeat&&K&&Ie.key===" "&&le.stop(Ie,()=>{le.start(Ie)}),Ie.target===Ie.currentTarget&&Ce()&&Ie.key===" "&&Ie.preventDefault(),D&&D(Ie),Ie.target===Ie.currentTarget&&Ce()&&Ie.key==="Enter"&&!p&&(Ie.preventDefault(),B&&B(Ie))}),ke=Hr(Ie=>{T&&Ie.key===" "&&K&&!Ie.defaultPrevented&&le.stop(Ie,()=>{le.pulsate(Ie)}),N&&N(Ie),B&&Ie.target===Ie.currentTarget&&Ce()&&Ie.key===" "&&!Ie.defaultPrevented&&B(Ie)});let Me=h;Me==="button"&&(ae.href||ae.to)&&(Me=v);const Fe={};Me==="button"?(Fe.type=F===void 0?"button":F,Fe.disabled=p):(!ae.href&&!ae.to&&(Fe.role="button"),p&&(Fe["aria-disabled"]=p));const qe=_r(r,ie),$e={...i,centerRipple:s,component:h,disabled:p,disableRipple:b,disableTouchRipple:E,focusRipple:T,tabIndex:J,focusVisible:K},ct=O9($e);return pe.jsxs(k9,{as:Me,className:tt(ct.root,d),ownerState:$e,onBlur:Ne,onClick:B,onContextMenu:Re,onFocus:Oe,onKeyDown:we,onKeyUp:ke,onMouseDown:be,onMouseLeave:Be,onMouseUp:Xe,onDragLeave:Te,onTouchEnd:St,onTouchMove:gt,onTouchStart:ut,ref:qe,tabIndex:p?-1:J,type:F,...Fe,...ae,children:[c,O?pe.jsx(v9,{ref:S,center:s,...Z}):null]})});function Zr(e,t,r,i=!1){return Hr(l=>(r&&r(l),i||e[t](l),!0))}function I9(e){return _n("MuiTab",e)}const pr=vn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),D9=e=>{const{classes:t,textColor:r,fullWidth:i,wrapped:l,icon:s,label:c,selected:d,disabled:h}=e,p={root:["root",s&&c&&"labelIcon",`textColor${st(r)}`,i&&"fullWidth",l&&"wrapped",d&&"selected",h&&"disabled"],icon:["iconWrapper","icon"]};return On(p,I9,t)},w9=mt(c0,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${st(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${pr.iconWrapper}`]:t.iconWrapper},{[`& .${pr.icon}`]:t.icon}]}})(Rn(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="top",style:{[`& > .${pr.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="bottom",style:{[`& > .${pr.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="start",style:{[`& > .${pr.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:r})=>t.icon&&t.label&&r==="end",style:{[`& > .${pr.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${pr.selected}`]:{opacity:1},[`&.${pr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${pr.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${pr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${pr.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${pr.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),L9=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiTab"}),{className:l,disabled:s=!1,disableFocusRipple:c=!1,fullWidth:d,icon:h,iconPosition:p="top",indicator:b,label:E,onChange:T,onClick:y,onFocus:v,selected:x,selectionFollowsFocus:B,textColor:I="inherit",value:P,wrapped:M=!1,...w}=i,D={...i,disabled:s,disableFocusRipple:c,selected:x,icon:!!h,iconPosition:p,label:!!E,fullWidth:d,textColor:I,wrapped:M},N=D9(D),z=h&&E&&A.isValidElement(h)?A.cloneElement(h,{className:tt(N.icon,h.props.className)}):h,V=_=>{!x&&T&&T(_,P),y&&y(_)},j=_=>{B&&!x&&T&&T(_,P),v&&v(_)};return pe.jsxs(w9,{focusRipple:!c,className:tt(N.root,l),ref:r,role:"tab","aria-selected":x,disabled:s,onClick:V,onFocus:j,ownerState:D,tabIndex:x?0:-1,...w,children:[p==="top"||p==="start"?pe.jsxs(A.Fragment,{children:[z,E]}):pe.jsxs(A.Fragment,{children:[E,z]}),b]})});function M9(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function B9(e,t,r,i={},l=()=>{}){const{ease:s=M9,duration:c=300}=i;let d=null;const h=t[e];let p=!1;const b=()=>{p=!0},E=T=>{if(p){l(new Error("Animation cancelled"));return}d===null&&(d=T);const y=Math.min(1,(T-d)/c);if(t[e]=s(y)*(r-h)+h,y>=1){requestAnimationFrame(()=>{l(null)});return}requestAnimationFrame(E)};return h===r?(l(new Error("Element already at target position")),b):(requestAnimationFrame(E),b)}const P9={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function U9(e){const{onChange:t,...r}=e,i=A.useRef(),l=A.useRef(null),s=()=>{i.current=l.current.offsetHeight-l.current.clientHeight};return _a(()=>{const c=xs(()=>{const h=i.current;s(),h!==i.current&&t(i.current)}),d=Ur(l.current);return d.addEventListener("resize",c),()=>{c.clear(),d.removeEventListener("resize",c)}},[t]),A.useEffect(()=>{s(),t(i.current)},[t]),pe.jsx("div",{style:P9,...r,ref:l})}const H9=si(pe.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),F9=si(pe.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function z9(e){return _n("MuiTabScrollButton",e)}const Y9=vn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),j9=e=>{const{classes:t,orientation:r,disabled:i}=e;return On({root:["root",r,i&&"disabled"]},z9,t)},q9=mt(c0,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${Y9.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),V9=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiTabScrollButton"}),{className:l,slots:s={},slotProps:c={},direction:d,orientation:h,disabled:p,...b}=i,E=Bd(),T={isRtl:E,...i},y=j9(T),v=s.StartScrollButtonIcon??H9,x=s.EndScrollButtonIcon??F9,B=vs({elementType:v,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:T}),I=vs({elementType:x,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:T});return pe.jsx(q9,{component:"div",className:tt(y.root,l),ref:r,role:null,ownerState:T,tabIndex:null,...b,style:{...b.style,...h==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${E?-90:90}deg)`}},children:d==="left"?pe.jsx(v,{...B}):pe.jsx(x,{...I})})});function G9(e){return _n("MuiTabs",e)}const f0=vn("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),LE=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,ME=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Qs=(e,t,r)=>{let i=!1,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}}},$9=e=>{const{vertical:t,fixed:r,hideScrollbar:i,scrollableX:l,scrollableY:s,centered:c,scrollButtonsHideMobile:d,classes:h}=e;return On({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",i&&"hideScrollbar",l&&"scrollableX",s&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",c&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",d&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]},G9,h)},X9=mt("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${f0.scrollButtons}`]:t.scrollButtons},{[`& .${f0.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(Rn(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${f0.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),Q9=mt("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),K9=mt("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.list,t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),W9=mt("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(Rn(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),Z9=mt(U9)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),BE={},J9=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiTabs"}),l=Bl(),s=Bd(),{"aria-label":c,"aria-labelledby":d,action:h,centered:p=!1,children:b,className:E,component:T="div",allowScrollButtonsMobile:y=!1,indicatorColor:v="primary",onChange:x,orientation:B="horizontal",ScrollButtonComponent:I,scrollButtons:P="auto",selectionFollowsFocus:M,slots:w={},slotProps:D={},TabIndicatorProps:N={},TabScrollButtonProps:z={},textColor:V="primary",value:j,variant:_="standard",visibleScrollbar:q=!1,...$}=i,J=_==="scrollable",Z=B==="vertical",ne=Z?"scrollTop":"scrollLeft",F=Z?"top":"left",ae=Z?"bottom":"right",ie=Z?"clientHeight":"clientWidth",le=Z?"height":"width",S={...i,component:T,allowScrollButtonsMobile:y,indicatorColor:v,orientation:B,vertical:Z,scrollButtons:P,textColor:V,variant:_,visibleScrollbar:q,fixed:!J,hideScrollbar:J&&!q,scrollableX:J&&!Z,scrollableY:J&&Z,centered:p&&!J,scrollButtonsHideMobile:!y},K=$9(S),de=vs({elementType:w.StartScrollButtonIcon,externalSlotProps:D.startScrollButtonIcon,ownerState:S}),O=vs({elementType:w.EndScrollButtonIcon,externalSlotProps:D.endScrollButtonIcon,ownerState:S}),[be,Re]=A.useState(!1),[Te,Xe]=A.useState(BE),[Be,ut]=A.useState(!1),[St,gt]=A.useState(!1),[Ne,Oe]=A.useState(!1),[Ce,we]=A.useState({overflow:"hidden",scrollbarWidth:0}),ke=new Map,Me=A.useRef(null),Fe=A.useRef(null),qe={slots:w,slotProps:{indicator:N,scrollButton:z,...D}},$e=()=>{const xe=Me.current;let _e;if(xe){const Ge=xe.getBoundingClientRect();_e={clientWidth:xe.clientWidth,scrollLeft:xe.scrollLeft,scrollTop:xe.scrollTop,scrollWidth:xe.scrollWidth,top:Ge.top,bottom:Ge.bottom,left:Ge.left,right:Ge.right}}let Ye;if(xe&&j!==!1){const Ge=Fe.current.children;if(Ge.length>0){const At=Ge[ke.get(j)];Ye=At?At.getBoundingClientRect():null}}return{tabsMeta:_e,tabMeta:Ye}},ct=Hr(()=>{const{tabsMeta:xe,tabMeta:_e}=$e();let Ye=0,Ge;Z?(Ge="top",_e&&xe&&(Ye=_e.top-xe.top+xe.scrollTop)):(Ge=s?"right":"left",_e&&xe&&(Ye=(s?-1:1)*(_e[Ge]-xe[Ge]+xe.scrollLeft)));const At={[Ge]:Ye,[le]:_e?_e[le]:0};if(typeof Te[Ge]!="number"||typeof Te[le]!="number")Xe(At);else{const zn=Math.abs(Te[Ge]-At[Ge]),ta=Math.abs(Te[le]-At[le]);(zn>=1||ta>=1)&&Xe(At)}}),Ie=(xe,{animation:_e=!0}={})=>{_e?B9(ne,Me.current,xe,{duration:l.transitions.duration.standard}):Me.current[ne]=xe},un=xe=>{let _e=Me.current[ne];Z?_e+=xe:_e+=xe*(s?-1:1),Ie(_e)},Ft=()=>{const xe=Me.current[ie];let _e=0;const Ye=Array.from(Fe.current.children);for(let Ge=0;Ge<Ye.length;Ge+=1){const At=Ye[Ge];if(_e+At[ie]>xe){Ge===0&&(_e=xe);break}_e+=At[ie]}return _e},Bt=()=>{un(-1*Ft())},re=()=>{un(Ft())},[he,{onChange:Se,...Ae}]=en("scrollbar",{className:tt(K.scrollableX,K.hideScrollbar),elementType:Z9,shouldForwardComponentProp:!0,externalForwardedProps:qe,ownerState:S}),Ue=A.useCallback(xe=>{Se==null||Se(xe),we({overflow:null,scrollbarWidth:xe})},[Se]),[Ve,Tt]=en("scrollButtons",{className:tt(K.scrollButtons,z.className),elementType:V9,externalForwardedProps:qe,ownerState:S,additionalProps:{orientation:B,slots:{StartScrollButtonIcon:w.startScrollButtonIcon||w.StartScrollButtonIcon,EndScrollButtonIcon:w.endScrollButtonIcon||w.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:de,endScrollButtonIcon:O}}}),Ct=()=>{const xe={};xe.scrollbarSizeListener=J?pe.jsx(he,{...Ae,onChange:Ue}):null;const Ye=J&&(P==="auto"&&(Be||St)||P===!0);return xe.scrollButtonStart=Ye?pe.jsx(Ve,{direction:s?"right":"left",onClick:Bt,disabled:!Be,...Tt}):null,xe.scrollButtonEnd=Ye?pe.jsx(Ve,{direction:s?"left":"right",onClick:re,disabled:!St,...Tt}):null,xe},Zn=Hr(xe=>{const{tabsMeta:_e,tabMeta:Ye}=$e();if(!(!Ye||!_e)){if(Ye[F]<_e[F]){const Ge=_e[ne]+(Ye[F]-_e[F]);Ie(Ge,{animation:xe})}else if(Ye[ae]>_e[ae]){const Ge=_e[ne]+(Ye[ae]-_e[ae]);Ie(Ge,{animation:xe})}}}),fn=Hr(()=>{J&&P!==!1&&Oe(!Ne)});A.useEffect(()=>{const xe=xs(()=>{Me.current&&ct()});let _e;const Ye=zn=>{zn.forEach(ta=>{ta.removedNodes.forEach(mi=>{_e==null||_e.unobserve(mi)}),ta.addedNodes.forEach(mi=>{_e==null||_e.observe(mi)})}),xe(),fn()},Ge=Ur(Me.current);Ge.addEventListener("resize",xe);let At;return typeof ResizeObserver<"u"&&(_e=new ResizeObserver(xe),Array.from(Fe.current.children).forEach(zn=>{_e.observe(zn)})),typeof MutationObserver<"u"&&(At=new MutationObserver(Ye),At.observe(Fe.current,{childList:!0})),()=>{xe.clear(),Ge.removeEventListener("resize",xe),At==null||At.disconnect(),_e==null||_e.disconnect()}},[ct,fn]),A.useEffect(()=>{const xe=Array.from(Fe.current.children),_e=xe.length;if(typeof IntersectionObserver<"u"&&_e>0&&J&&P!==!1){const Ye=xe[0],Ge=xe[_e-1],At={root:Me.current,threshold:.99},zn=na=>{ut(!na[0].isIntersecting)},ta=new IntersectionObserver(zn,At);ta.observe(Ye);const mi=na=>{gt(!na[0].isIntersecting)},Jl=new IntersectionObserver(mi,At);return Jl.observe(Ge),()=>{ta.disconnect(),Jl.disconnect()}}},[J,P,Ne,b==null?void 0:b.length]),A.useEffect(()=>{Re(!0)},[]),A.useEffect(()=>{ct()}),A.useEffect(()=>{Zn(BE!==Te)},[Zn,Te]),A.useImperativeHandle(h,()=>({updateIndicator:ct,updateScrollButtons:fn}),[ct,fn]);const[nn,Hn]=en("indicator",{className:tt(K.indicator,N.className),elementType:W9,externalForwardedProps:qe,ownerState:S,additionalProps:{style:Te}}),Fn=pe.jsx(nn,{...Hn});let pi=0;const tc=A.Children.map(b,xe=>{if(!A.isValidElement(xe))return null;const _e=xe.props.value===void 0?pi:xe.props.value;ke.set(_e,pi);const Ye=_e===j;return pi+=1,A.cloneElement(xe,{fullWidth:_==="fullWidth",indicator:Ye&&!be&&Fn,selected:Ye,selectionFollowsFocus:M,onChange:x,textColor:V,value:_e,...pi===1&&j===!1&&!xe.props.tabIndex?{tabIndex:0}:{}})}),Kl=xe=>{if(xe.altKey||xe.shiftKey||xe.ctrlKey||xe.metaKey)return;const _e=Fe.current,Ye=xa(_e).activeElement;if(Ye.getAttribute("role")!=="tab")return;let At=B==="horizontal"?"ArrowLeft":"ArrowUp",zn=B==="horizontal"?"ArrowRight":"ArrowDown";switch(B==="horizontal"&&s&&(At="ArrowRight",zn="ArrowLeft"),xe.key){case At:xe.preventDefault(),Qs(_e,Ye,ME);break;case zn:xe.preventDefault(),Qs(_e,Ye,LE);break;case"Home":xe.preventDefault(),Qs(_e,null,LE);break;case"End":xe.preventDefault(),Qs(_e,null,ME);break}},ea=Ct(),[K0,nc]=en("root",{ref:r,className:tt(K.root,E),elementType:X9,externalForwardedProps:{...qe,...$,component:T},ownerState:S}),[rc,Wl]=en("scroller",{ref:Me,className:K.scroller,elementType:Q9,externalForwardedProps:qe,ownerState:S,additionalProps:{style:{overflow:Ce.overflow,[Z?`margin${s?"Left":"Right"}`:"marginBottom"]:q?void 0:-Ce.scrollbarWidth}}}),[Zl,ac]=en("list",{ref:Fe,className:tt(K.list,K.flexContainer),elementType:K9,externalForwardedProps:qe,ownerState:S,getSlotProps:xe=>({...xe,onKeyDown:_e=>{var Ye;Kl(_e),(Ye=xe.onKeyDown)==null||Ye.call(xe,_e)}})});return pe.jsxs(K0,{...nc,children:[ea.scrollButtonStart,ea.scrollbarSizeListener,pe.jsxs(rc,{...Wl,children:[pe.jsx(Zl,{"aria-label":c,"aria-labelledby":d,"aria-orientation":B==="vertical"?"vertical":null,role:"tablist",...ac,children:tc}),be&&Fn]}),ea.scrollButtonEnd]})}),PE=A.createContext(null);function ek(){const[e,t]=A.useState(null);return A.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function tk(e){const{children:t,value:r}=e,i=ek(),l=A.useMemo(()=>({idPrefix:i,value:r}),[i,r]);return pe.jsx(PE.Provider,{value:l,children:t})}function UE(){return A.useContext(PE)}function HE(e,t){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-P-${t}`}function FE(e,t){const{idPrefix:r}=e;return r===null?null:`${e.idPrefix}-T-${t}`}const nk=["children"],rk=A.forwardRef(function(t,r){const{children:i}=t,l=js(t,nk),s=UE();if(s===null)throw new TypeError("No TabContext provided");const c=A.Children.map(i,d=>A.isValidElement(d)?A.cloneElement(d,{"aria-controls":HE(s,d.props.value),id:FE(s,d.props.value)}):null);return pe.jsx(J9,Ja({},l,{ref:r,value:s.value,children:c}))});function ak({props:e,name:t}){return RN({props:e,name:t,defaultTheme:Ys,themeId:zr})}function d0({theme:e,...t}){const r=zr in e?e[zr]:void 0;return pe.jsx(sE,{...t,themeId:r?zr:void 0,theme:r||e})}const Ks={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:ik}=GN({themeId:zr,theme:()=>zs({cssVariables:!0}),colorSchemeStorageKey:Ks.colorSchemeStorageKey,modeStorageKey:Ks.modeStorageKey,defaultColorScheme:{light:Ks.defaultLightColorScheme,dark:Ks.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:TE(e.palette,e.typography)};return t.unstable_sx=function(i){return ii({sx:i,theme:this})},t}}),uk=ik;function lk({theme:e,...t}){if(typeof e=="function")return pe.jsx(d0,{theme:e,...t});const r=zr in e?e[zr]:e;return"colorSchemes"in r?pe.jsx(uk,{theme:e,...t}):"vars"in r?pe.jsx(d0,{theme:e,...t}):pe.jsx(d0,{theme:{...e,vars:null},...t})}const tn={text:{roman:400,medium:500,bold:700}},it=e=>`${e/16}rem`,zE={fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeightLight:tn.text.roman,fontWeightRegular:tn.text.roman,fontWeightMedium:tn.text.medium,fontWeightBold:tn.text.bold,h1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.bold,fontStyle:"normal",fontSize:it(52),lineHeight:it(60)},h2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.bold,fontStyle:"normal",fontSize:it(34),lineHeight:it(40)},h3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.bold,fontStyle:"normal",fontSize:it(28),lineHeight:it(36)},h4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.bold,fontStyle:"normal",fontSize:it(24),lineHeight:it(30)},h5:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(18),lineHeight:it(22)},subtitle1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(16),lineHeight:it(20)},subtitle2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(14),lineHeight:it(18)},subtitle3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(12),lineHeight:it(16)},subtitle4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(10),lineHeight:it(14)},body1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.roman,fontStyle:"normal",fontSize:it(16),lineHeight:it(20)},body2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.roman,fontStyle:"normal",fontSize:it(14),lineHeight:it(18)},body3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.roman,fontStyle:"normal",fontSize:it(12),lineHeight:it(16)},body4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.roman,fontStyle:"normal",fontSize:it(10),lineHeight:it(14)},buttonLarge:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(16),lineHeight:it(20)},button:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(14),lineHeight:it(18),textTransform:"none"},buttonSmall:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:tn.text.medium,fontStyle:"normal",fontSize:it(12),lineHeight:it(16)}},ok={defaultProps:{variantMapping:{h1:"span",h2:"span",h3:"span",h4:"span",h5:"span",body1:"p",body2:"p",body3:"p",body4:"p",subtitle1:"p",subtitle2:"p",subtitle3:"p",subtitle4:"p",button:"span"}}},{typography:_B}=zs({typography:zE,custom:{}}),sk=Pe.a({color:"inherit",textDecoration:"none"}),ck=A.forwardRef(function({Component:t,...r},i){const l=WC(),s=t??l.custom.LinkAdapter;return A.createElement(sk,{as:s,ref:i,...r},r.children)}),fk={variant:!0,size:!0,edge:!0,startIcon:!0,endIcon:!0,responsive:!0,color:!0},YE=e=>!fk[e],h0={variant:"primary",size:"medium",edge:"rounded",responsive:!1},jE={small:1,medium:1,large:2},qE={small:"small",medium:"small",large:"medium"},VE=(e,t,r)=>{const i=t?jE[e]:0;return[{boxSizing:"border-box",borderWidth:jE[e]},e==="large"&&{padding:`${14-i}px 24px`,...r.typography.buttonLarge},e==="medium"&&{padding:`${11-i}px 16px`,...r.typography.button},e==="small"&&{padding:`${8-i}px 12px`,...r.typography.buttonSmall}]},GE=e=>{const{size:t,variant:r,edge:i,theme:l,color:s,responsive:c}={...h0,...e},{colors:d}=l.custom,h=r==="secondary"||r==="bordered";return Pi([{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"},...VE(t,h,l),c&&{[l.breakpoints.down("sm")]:VE(qE[t],h,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=Pe("button",{shouldForwardProp:YE})(GE),XE=Pe(ck,{shouldForwardProp:YE})(GE),QE=Pe.span(({size:e,side:t})=>[{height:"1em",display:"flex",alignItems:"center"},t==="start"&&{marginLeft:"-4px",marginRight:"8px"},t==="end"&&{marginLeft:"8px",marginRight:"-4px"},{"& svg, & .MuiSvgIcon-root":{width:"1em",height:"1em",fontSize:it({small:16,medium:20,large:24}[e])}}]),KE=e=>{const{children:t,size:r=h0.size}=e;return A.createElement(A.Fragment,null,e.startIcon?A.createElement(QE,{size:r,side:"start"},e.startIcon):null,t,e.endIcon?A.createElement(QE,{size:r,side:"end"},e.endIcon):null)},WE=A.forwardRef(({children:e,...t},r)=>A.createElement($E,{ref:r,type:"button",...t},A.createElement(KE,{...t},e)));WE.displayName="Button";const ZE=A.forwardRef(({children:e,Component:t,...r},i)=>A.createElement(XE,{Component:t,ref:i,...r},A.createElement(KE,{...r},e)));ZE.displayName="ButtonLink";const dk={variant:"scrollable",allowScrollButtonsMobile:!0,scrollButtons:"auto"},hk=Pe(({styleVariant:e,...t})=>A.createElement(rk,{...dk,...t}))(({theme:e,styleVariant:t})=>({minHeight:"unset",".MuiTabs-indicator":{display:"none"},".MuiTabs-flexContainer":{gap:"8px",alignItems:"center"},".MuiTabs-scroller":{display:"flex"},...t==="chat"&&{flexGrow:1,".MuiTabs-flexContainer":{flexGrow:1,gap:"8px",alignItems:"center",backgroundColor:e.custom.colors.lightGray1,padding:"4px",borderRadius:"8px"},button:{flexGrow:1,backgroundColor:"transparent",...e.typography.body2},"button[aria-selected=true], button[aria-selected=true]:hover":{backgroundColor:e.custom.colors.darkGray1,color:e.custom.colors.white,cursor:"default"}}})),JE=({theme:e})=>Pi({minWidth:"auto",":focus-visible":{outlineOffset:"-1px"},'&[aria-selected="true"]':{backgroundColor:e.custom.colors.white,borderColor:e.custom.colors.darkGray2}}),pk=Pe(WE)(JE),mk=Pe(ZE)(JE),e2={variant:"tertiary",size:"small"},t2=A.forwardRef((e,t)=>{const{className:r,...i}=e;return A.createElement(pk,{...e2,...i,ref:t})});t2.displayName="TabButtonInner";const gk=A.forwardRef((e,t)=>{const{className:r,...i}=e;return A.createElement(mk,{...e2,...i,ref:t},e.children)});gk.displayName="TabLinkInner";const p0=e=>A.createElement(L9,{...e,component:t2});function bk(e){return typeof e.main=="string"}function Ek(e,t=[]){if(!bk(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function ci(e=[]){return([,t])=>t&&Ek(t,e)}function yk(e){return _n("MuiTypography",e)}vn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Tk={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Sk=IO(),Ck=e=>{const{align:t,gutterBottom:r,noWrap:i,paragraph:l,variant:s,classes:c}=e,d={root:["root",s,e.align!=="inherit"&&`align${st(t)}`,r&&"gutterBottom",i&&"noWrap",l&&"paragraph"]};return On(d,yk,c)},Ak=mt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${st(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Rn(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,i])=>r!=="inherit"&&i&&typeof i=="object").map(([r,i])=>({props:{variant:r},style:i})),...Object.entries(e.palette).filter(ci()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${st(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),n2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},fi=A.forwardRef(function(t,r){const{color:i,...l}=kn({props:t,name:"MuiTypography"}),s=!Tk[i],c=Sk({...l,...s&&{color:i}}),{align:d="inherit",className:h,component:p,gutterBottom:b=!1,noWrap:E=!1,paragraph:T=!1,variant:y="body1",variantMapping:v=n2,...x}=c,B={...c,align:d,color:i,className:h,component:p,gutterBottom:b,noWrap:E,paragraph:T,variant:y,variantMapping:v},I=p||(T?"p":v[y]||n2[y])||"span",P=Ck(B);return pe.jsx(Ak,{as:I,ref:r,className:tt(P.root,h),...x,ownerState:B,style:{...d!=="inherit"&&{"--Typography-textAlign":d},...x.style}})});function xk(e){return _n("MuiTabPanel",e)}vn("MuiTabPanel",["root","hidden"]);const _k=["children","className","value","keepMounted"],vk=e=>{const{classes:t,hidden:r}=e;return On({root:["root",r&&"hidden"]},xk,t)},Rk=mt("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),Nk=A.forwardRef(function(t,r){const i=ak({props:t,name:"MuiTabPanel"}),{children:l,className:s,value:c,keepMounted:d=!1}=i,h=js(i,_k),p=Ja({},i),b=vk(p),E=UE();if(E===null)throw new TypeError("No TabContext provided");const T=HE(E,c),y=FE(E,c);return pe.jsx(Rk,Ja({"aria-labelledby":y,className:tt(b.root,s),hidden:c!==E.value,id:T,ref:r,role:"tabpanel",ownerState:p},h,{children:(d||c===E.value)&&l}))});var m0={exports:{}};/*!
192
192
  Copyright (c) 2018 Jed Watson.
193
193
  Licensed under the MIT License (MIT), see
194
194
  http://jedwatson.github.io/classnames
195
- */var r2;function kk(){return r2||(r2=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",c=0;c<arguments.length;c++){var d=arguments[c];d&&(s=o(s,i(d)))}return s}function i(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var d in s)t.call(s,d)&&s[d]&&(c=o(c,d));return c}function o(s,c){return c?s?s+" "+c:s+c:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(m0)),m0.exports}var Ik=kk();const Ho=or(Ik);function Ws(e){return parseInt(e,10)||0}const Dk={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function wk(e){for(const t in e)return!1;return!0}function a2(e){return wk(e)||e.outerHeightStyle===0&&!e.overflowing}const Lk=A.forwardRef(function(t,r){const{onChange:i,maxRows:o,minRows:s=1,style:c,value:d,...h}=t,{current:p}=A.useRef(d!=null),E=A.useRef(null),b=_r(r,E),T=A.useRef(null),y=A.useRef(null),v=A.useCallback(()=>{const M=E.current,w=y.current;if(!M||!w)return;const N=Ur(M).getComputedStyle(M);if(N.width==="0px")return{outerHeightStyle:0,overflowing:!1};w.style.width=N.width,w.value=M.value||t.placeholder||"x",w.value.slice(-1)===`
196
- `&&(w.value+=" ");const z=N.boxSizing,V=Ws(N.paddingBottom)+Ws(N.paddingTop),j=Ws(N.borderBottomWidth)+Ws(N.borderTopWidth),_=w.scrollHeight;w.value="x";const q=w.scrollHeight;let $=_;s&&($=Math.max(Number(s)*q,$)),o&&($=Math.min(Number(o)*q,$)),$=Math.max($,q);const J=$+(z==="border-box"?V+j:0),Z=Math.abs($-_)<=1;return{outerHeightStyle:J,overflowing:Z}},[o,s,t.placeholder]),x=Hr(()=>{const M=E.current,w=v();if(!M||!w||a2(w))return!1;const D=w.outerHeightStyle;return T.current!=null&&T.current!==D}),B=A.useCallback(()=>{const M=E.current,w=v();if(!M||!w||a2(w))return;const D=w.outerHeightStyle;T.current!==D&&(T.current=D,M.style.height=`${D}px`),M.style.overflow=w.overflowing?"hidden":""},[v]),I=A.useRef(-1);_a(()=>{const M=xs(B),w=E==null?void 0:E.current;if(!w)return;const D=Ur(w);D.addEventListener("resize",M);let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(()=>{x()&&(N.unobserve(w),cancelAnimationFrame(I.current),B(),I.current=requestAnimationFrame(()=>{N.observe(w)}))}),N.observe(w)),()=>{M.clear(),cancelAnimationFrame(I.current),D.removeEventListener("resize",M),N&&N.disconnect()}},[v,B,x]),_a(()=>{B()});const P=M=>{p||B(),i&&i(M)};return pe.jsxs(A.Fragment,{children:[pe.jsx("textarea",{value:d,onChange:P,ref:b,rows:s,style:c,...h}),pe.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...Dk.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function i2(e){return typeof e=="string"}function Mk({props:e,states:t,muiFormControl:r}){return t.reduce((i,o)=>(i[o]=e[o],r&&typeof e[o]>"u"&&(i[o]=r[o]),i),{})}const u2=A.createContext(void 0);function Bk(){return A.useContext(u2)}function o2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Pk(e,t=!1){return e&&(o2(e.value)&&e.value!==""||t&&o2(e.defaultValue)&&e.defaultValue!=="")}function Uk(e){return _n("MuiInputBase",e)}const g0=vn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var l2;const Hk=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${st(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Fk=(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]},zk=e=>{const{classes:t,color:r,disabled:i,error:o,endAdornment:s,focused:c,formControl:d,fullWidth:h,hiddenLabel:p,multiline:E,readOnly:b,size:T,startAdornment:y,type:v}=e,x={root:["root",`color${st(r)}`,i&&"disabled",o&&"error",h&&"fullWidth",c&&"focused",d&&"formControl",T&&T!=="medium"&&`size${st(T)}`,E&&"multiline",y&&"adornedStart",s&&"adornedEnd",p&&"hiddenLabel",b&&"readOnly"],input:["input",i&&"disabled",v==="search"&&"inputTypeSearch",E&&"inputMultiline",T==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",b&&"readOnly"]};return On(x,Uk,t)},Yk=mt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Hk})(Rn(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${g0.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),jk=mt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Fk})(Rn(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${g0.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${g0.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),s2=IO({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),qk=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:c,className:d,color:h,components:p={},componentsProps:E={},defaultValue:b,disabled:T,disableInjectingGlobalStyles:y,endAdornment:v,error:x,fullWidth:B=!1,id:I,inputComponent:P="input",inputProps:M={},inputRef:w,margin:D,maxRows:N,minRows:z,multiline:V=!1,name:j,onBlur:_,onChange:q,onClick:$,onFocus:J,onKeyDown:Z,onKeyUp:ne,placeholder:F,readOnly:ae,renderSuffix:ie,rows:oe,size:S,slotProps:K={},slots:de={},startAdornment:O,type:Ee="text",value:Re,...Te}=i,Xe=M.value!=null?M.value:Re,{current:Be}=A.useRef(Xe!=null),ut=A.useRef(),Ct=A.useCallback(Ve=>{},[]),gt=_r(ut,w,M.ref,Ct),[Ne,Oe]=A.useState(!1),Ce=Bk(),we=Mk({props:i,muiFormControl:Ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});we.focused=Ce?Ce.focused:Ne,A.useEffect(()=>{!Ce&&T&&Ne&&(Oe(!1),_&&_())},[Ce,T,Ne,_]);const ke=Ce&&Ce.onFilled,Me=Ce&&Ce.onEmpty,Fe=A.useCallback(Ve=>{Pk(Ve)?ke&&ke():Me&&Me()},[ke,Me]);_a(()=>{Be&&Fe({value:Xe})},[Xe,Fe,Be]);const qe=Ve=>{J&&J(Ve),M.onFocus&&M.onFocus(Ve),Ce&&Ce.onFocus?Ce.onFocus(Ve):Oe(!0)},$e=Ve=>{_&&_(Ve),M.onBlur&&M.onBlur(Ve),Ce&&Ce.onBlur?Ce.onBlur(Ve):Oe(!1)},ct=(Ve,...Tt)=>{if(!Be){const At=Ve.target||ut.current;if(At==null)throw new Error(Aa(1));Fe({value:At.value})}M.onChange&&M.onChange(Ve,...Tt),q&&q(Ve,...Tt)};A.useEffect(()=>{Fe(ut.current)},[]);const Ie=Ve=>{ut.current&&Ve.currentTarget===Ve.target&&ut.current.focus(),$&&$(Ve)};let un=P,Ft=M;V&&un==="input"&&(oe?Ft={type:void 0,minRows:oe,maxRows:oe,...Ft}:Ft={type:void 0,maxRows:N,minRows:z,...Ft},un=Lk);const Bt=Ve=>{Fe(Ve.animationName==="mui-auto-fill-cancel"?ut.current:{value:"x"})};A.useEffect(()=>{Ce&&Ce.setAdornedStart(!!O)},[Ce,O]);const re={...i,color:we.color||"primary",disabled:we.disabled,endAdornment:v,error:we.error,focused:we.focused,formControl:Ce,fullWidth:B,hiddenLabel:we.hiddenLabel,multiline:V,size:we.size,startAdornment:O,type:Ee},he=zk(re),Se=de.root||p.Root||Yk,Ae=K.root||E.root||{},Pe=de.input||p.Input||jk;return Ft={...Ft,...K.input??E.input},pe.jsxs(A.Fragment,{children:[!y&&typeof s2=="function"&&(l2||(l2=pe.jsx(s2,{}))),pe.jsxs(Se,{...Ae,ref:r,onClick:Ie,...Te,...!i2(Se)&&{ownerState:{...re,...Ae.ownerState}},className:tt(he.root,Ae.className,d,ae&&"MuiInputBase-readOnly"),children:[O,pe.jsx(u2.Provider,{value:null,children:pe.jsx(Pe,{"aria-invalid":we.error,"aria-describedby":o,autoComplete:s,autoFocus:c,defaultValue:b,disabled:we.disabled,id:I,onAnimationStart:Bt,name:j,placeholder:F,readOnly:ae,required:we.required,rows:oe,value:Xe,onKeyDown:Z,onKeyUp:ne,type:Ee,...Ft,...!i2(Pe)&&{as:un,ownerState:{...re,...Ft.ownerState}},ref:gt,className:tt(he.input,Ft.className,ae&&"MuiInputBase-readOnly"),onBlur:$e,onChange:ct,onFocus:qe})}),v,ie?ie({...we,startAdornment:O}):null]})]})}),Vk={size:"medium"},Gk={small:"small",medium:"small",large:"medium",chat:"chat",hero:"large"},c2=({size:e,theme:t,multiline:r})=>Pi([(e==="small"||e==="medium")&&{...t.typography.body2},(e==="large"||e==="chat"||e==="hero")&&{".remixicon":{width:"24px",height:"24px"},...t.typography.body1},e==="medium"&&{paddingLeft:"12px",paddingRight:"12px"},e==="small"&&!r&&{height:"32px"},e==="medium"&&!r&&{height:"40px"},e==="large"&&!r&&{height:"48px"},e==="chat"&&!r&&{height:"56px"},e==="hero"&&!r&&{height:"72px"},e==="small"&&{padding:"0 8px",".Mit-AdornmentButton":{width:"32px",".remixicon":{width:"16px",height:"16px"}}},e==="medium"&&{padding:"0 12px",".Mit-AdornmentButton":{width:"40px",".remixicon":{width:"20px",height:"20px"}}},e==="large"&&{padding:"0 16px",".Mit-AdornmentButton":{width:"48px"}},e==="chat"&&{padding:"0 16px",borderRadius:"8px",borderColor:t.custom.colors.silverGrayLight,backgroundColor:t.custom.colors.white,".Mit-AdornmentButton":{padding:"0 16px"}},e==="hero"&&{padding:"0 24px",".Mit-AdornmentButton":{width:"72px"}}]),$k=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"}}}),Xk=Object.keys({responsive:!0}),f2=He(qk,{shouldForwardProp:e=>!Xk.includes(e)})(({theme:e,size:t=Vk.size,multiline:r,responsive:i})=>[$k(e),c2({size:t,theme:e,multiline:r}),i&&{[e.breakpoints.down("sm")]:c2({size:Gk[t],theme:e,multiline:r})}]),Qk=He.button(({theme:e,disabled:t})=>({...e.typography.button,display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",border:"none",background:"transparent",transition:`background ${e.transitions.duration.short}ms`,cursor:t?"default":"pointer",":disabled":{cursor:"default",svg:{fill:e.custom.colors.silverGray}},":hover":{background:t?"inherit":"rgba(0, 0, 0, 0.06)"},color:e.custom.colors.silverGray,".MuiInputBase-root:hover &":{color:"inherit"},".MuiInputBase-root.Mui-focused &":{color:"inherit"},".MuiInputBase-root.Mui-disabled &":{color:"inherit"},height:"100%"})),Kk=e=>e.preventDefault(),E0=({className:e,...t})=>A.createElement(Qk,{onMouseDown:Kk,className:Ho("Mit-AdornmentButton",e),...t}),Wk=({className:e})=>A.createElement("svg",{className:e,width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A.createElement("g",{clipPath:"url(#clip0_16894_46778)"},A.createElement("path",{d:"M32.5546 5.17074C33.7099 6.67302 32.4042 7.80224 32.2498 7.94865L32.9819 8.97157C33.7621 8.23748 34.8612 6.35612 33.4291 4.49682C32.7933 3.67046 31.8246 3.32347 30.6251 3.49396C29.7868 3.6143 29.1209 3.95327 29.0928 3.96731L29.6102 4.74753C29.9974 4.57504 31.6059 3.93321 32.5546 5.16873V5.17074Z",fill:"#40464C"}),A.createElement("path",{d:"M8.63481 5.04446L9.0881 4.22412C9.06002 4.21209 8.36805 3.92728 7.52163 3.87513C6.31219 3.80292 5.37351 4.22412 4.80589 5.10062C3.52825 7.07023 4.7738 8.85532 5.61219 9.52523L6.25803 8.44616C6.09356 8.31177 4.69959 7.29086 5.73053 5.70033C6.57895 4.3926 8.23166 4.90406 8.63079 5.04446H8.63481Z",fill:"#40464C"}),A.createElement("path",{d:"M25.1577 7.25851C25.1778 7.25851 25.1978 7.25851 25.2179 7.25851C27.4382 7.29862 28.6296 8.96136 28.6296 8.96136L29.129 8.81896C29.109 8.75076 28.9144 8.12297 28.3468 7.48315C27.8133 6.88344 26.8425 6.16138 25.2399 6.1333C25.2119 6.1333 25.1858 6.1333 25.1577 6.1333C22.7168 6.1333 21.6056 8.07483 21.3589 9.11179L22.4721 9.37053C22.4941 9.28428 23.0216 7.2565 25.1577 7.2565V7.25851Z",fill:"#40464C"}),A.createElement("path",{d:"M9.90619 9.34454C9.92625 9.2583 10.4357 7.23252 12.5898 7.23252C12.6099 7.23252 12.63 7.23252 12.65 7.23252C14.8703 7.27063 15.9213 8.97549 15.9213 8.97549L16.5612 8.79498C16.5411 8.72478 16.3465 8.09899 15.7789 7.46118C15.2454 6.86147 14.2746 6.13941 12.6721 6.11133C12.646 6.11133 12.6179 6.11133 12.5898 6.11133C10.1489 6.11133 9.03772 8.05286 8.79102 9.08982L9.90619 9.34655V9.34454Z",fill:"#40464C"}),A.createElement("path",{d:"M19.6383 26.256L19.1973 26.269L19.363 31.8525L19.804 31.8394L19.6383 26.256Z",fill:"#40464C"}),A.createElement("path",{d:"M14.1281 38.5777C14.786 38.9107 16.2321 39.4201 16.2321 39.4201L16.8318 39.5906L17.4616 39.725L17.8748 39.7912C17.8748 39.7912 19.0702 39.9336 19.704 39.9336C19.7562 39.9336 19.8103 39.9336 19.8625 39.9336C20.9255 39.9236 22.7748 39.6508 22.7748 39.6508L23.2782 39.5525L24.3031 39.2837L24.6461 39.1614L26.3068 38.5015L26.5977 38.3451L27.1994 37.984L27.4842 37.7754C27.4842 37.7754 28.6114 36.9411 29.0326 36.5359C29.4137 36.1689 29.6905 35.7797 29.8931 35.3987C30.3323 35.2482 31.6862 34.7689 33.1443 34.0187C33.732 33.7821 34.7429 33.0981 34.8091 33.054C38.0985 30.8718 39.7712 28.3907 39.9718 25.6429C40.3729 20.1592 36.6684 16.9922 35.6836 16.218C35.6415 14.8 35.469 13.0871 35.0137 11.318C35.6054 10.7163 36.173 9.95213 36.4518 9.02148C36.9472 7.36275 36.881 5.67595 36.2612 4.27195C35.5733 2.70949 34.2715 1.60234 32.4945 1.06681C30.6272 0.503205 28.6515 1.0989 27.2616 1.76079C25.1215 0.767959 22.6424 0.166244 19.9989 0.0238384C16.7235 -0.152665 13.8012 0.661656 11.3843 2.11179C9.95424 1.46394 7.56945 0.781999 5.46144 1.60635C3.73251 2.28428 2.52507 3.49373 1.96347 5.10432C1.46004 6.55245 1.52823 8.23925 2.15602 9.85385C2.56519 10.9028 3.50988 11.9338 4.33022 12.6378C4.0093 14.2404 3.89297 15.7366 3.8669 16.922C2.79584 17.8306 -1.06115 21.5793 0.276664 27.3718C0.936544 30.2279 2.92421 32.6528 6.02705 34.3858C6.36201 34.5723 6.709 34.7508 7.06 34.9173L8.38778 35.503C9.49494 35.9562 10.4898 36.2852 11.0012 36.4456C11.5528 36.931 12.1645 37.4004 12.8284 37.8316L14.1281 38.5797V38.5777ZM3.45572 9.54899C1.84714 6.20345 3.8328 3.63012 6.13536 2.72955C8.15111 1.9413 10.9029 3.49974 12.0201 4.09143L11.982 3.05648C14.2104 1.73271 16.9141 0.946468 19.9427 1.10893C22.151 1.22727 24.243 1.68457 26.0922 2.43672L26.2687 3.57195C27.3338 2.89201 29.8449 1.61437 31.9168 2.24016C34.2856 2.95419 36.199 5.26678 35.136 8.82292C34.765 10.0665 33.4472 11.2378 32.8696 11.6931L33.9827 12.1544C34.5945 15.2994 34.2796 18.1856 34.1372 19.1684C33.2426 18.8495 32.0612 18.5607 30.5209 18.3962C30.4547 16.6773 30.1117 12.9106 28.3126 11.2278C27.6106 10.5719 26.7621 10.2289 25.7894 10.2129C24.8186 10.1988 23.9862 10.5137 23.3304 11.1536C22.3716 12.0902 21.5332 13.5885 21.3948 15.8369C21.3447 16.6432 21.3587 17.3813 21.3868 17.9289C20.6186 17.7945 19.7943 17.7223 18.984 17.7203L18.5929 17.7143C17.951 17.7323 17.3714 17.7845 16.8479 17.8607C16.7717 16.1979 16.3926 12.9727 14.6516 11.3662C13.9577 10.7263 13.1213 10.3954 12.1605 10.3794C11.1978 10.3653 10.3815 10.6722 9.73362 11.294C7.87432 13.0831 7.72188 17.1005 7.73592 18.4684C6.76516 18.5767 5.99095 18.7432 5.3772 18.9297C5.27691 18.0191 5.08637 15.5501 5.56975 12.7561L6.26573 12.012C5.65399 11.6028 4.09755 10.8687 3.45974 9.54297L3.45572 9.54899ZM26.4673 13.0008C24.1888 13.1432 24.3011 17.0123 24.3914 18.2197C23.8017 18.2398 23.2842 18.2678 22.8691 18.2939C22.7708 16.4948 22.8951 13.1773 24.2189 11.8856C24.6261 11.4885 25.1155 11.296 25.7152 11.296C25.7312 11.296 25.7473 11.296 25.7613 11.296C26.4091 11.306 26.9567 11.5286 27.4341 11.9759C27.9636 12.4713 28.3968 13.2415 28.7177 14.2424C28.2464 13.4702 27.5364 12.9346 26.4653 13.0008H26.4673ZM27.7931 18.2718L26.9427 18.2257C26.4553 18.2057 25.9779 18.1956 25.5146 18.1896C25.4524 17.614 25.3601 15.9893 26.3309 15.9613C27.6607 15.9232 27.8051 17.4916 27.7931 18.2718ZM14.2364 18.2718L13.386 18.2257C12.8986 18.2057 12.4213 18.1956 11.958 18.1896C11.8958 17.614 11.8035 15.9893 12.7743 15.9613C14.1041 15.9232 14.2485 17.4916 14.2364 18.2718ZM19.2628 25.34C19.7903 25.4463 21.6436 25.9257 23.3143 26.7019C23.2662 27.2675 23.1579 28.1701 22.9112 29.0807C22.5722 30.3342 21.6596 32.2256 21.3347 32.8775C21.0318 32.8915 20.5224 32.9116 20.1252 32.9176C19.5355 32.9256 18.8777 32.9397 18.5347 32.9457C18.1596 32.4242 17.0886 30.8878 16.3946 29.4296C15.9192 28.4328 15.6204 27.5302 15.4599 26.9767C16.8439 26.1082 18.9358 25.4403 19.2628 25.338V25.34ZM10.7325 18.342C10.5881 18.342 10.4416 18.342 10.2892 18.342C9.94221 18.342 9.61528 18.3481 9.30038 18.3601C9.17001 16.7094 9.21614 13.3458 10.6081 12.006C11.0193 11.6109 11.5187 11.4203 12.1325 11.4324C12.7723 11.4424 13.3118 11.659 13.7832 12.0942C14.3528 12.6197 14.8101 13.4641 15.135 14.5713C14.6757 13.6868 13.9396 13.0389 12.7683 13.1111C10.4075 13.2556 10.6462 17.3913 10.7325 18.342ZM38.8686 25.4343C38.644 30.7454 31.6521 33.1182 30.3905 33.5093C30.4065 33.07 30.3524 32.7872 30.3524 32.7872C30.3303 32.8474 28.1561 38.7622 19.8525 38.8445C19.8023 38.8445 19.7562 38.8445 19.706 38.8445C13.3118 38.8445 7.3769 32.0411 7.3769 32.0411C7.68979 32.6027 8.24939 33.4712 9.04967 34.4319C7.42905 33.9686 2.62536 32.1855 1.45201 27.097C0.475229 22.8609 2.56719 19.9125 3.88495 18.5406C3.90902 19.0942 3.94311 19.4412 3.94712 19.5114L3.95114 19.5455C3.25716 19.9446 3.1308 20.2455 3.1308 20.2455C3.16088 20.2334 6.46229 19.387 10.2792 19.4251C11.5067 19.4372 12.4614 19.4833 13.1935 19.5415C13.0089 19.8102 12.9187 20.083 12.9167 20.3417C12.9127 21.4649 15.2393 21.8902 16.5089 22.3354C17.4015 22.6483 18.1536 22.9712 18.5848 23.1678C18.5909 23.6492 18.5989 24.287 18.6009 24.7944C17.7364 25.0251 15.7488 25.6288 14.4972 26.5795L14.439 26.6317C14.445 26.6618 14.5233 27.0108 14.6958 27.5603C13.8754 27.7308 12.9067 27.8471 11.7935 27.8451C7.76801 27.8411 5.18465 26.1844 5.18465 26.1844C5.26287 26.2967 7.17633 28.9282 11.7935 28.9322C12.1786 28.9322 12.5456 28.9182 12.8986 28.8941C13.1915 29.4918 13.713 30.7133 14.4811 31.7984C15.5362 33.2866 16.9562 34.6365 19.8585 34.6365C23.7857 34.6365 25.9779 32.4202 27.1292 29.1649C27.2977 29.1649 27.4641 29.1609 27.6326 29.1549C27.9174 29.1448 28.2022 29.1268 28.4891 29.1007C32.8595 28.6996 34.5925 26.9004 34.6647 26.8222C34.6647 26.8222 30.4406 27.8291 28.3908 28.0176C26.8945 28.156 25.4203 28.0417 24.0845 27.8191C24.2209 26.9145 24.243 26.2285 24.245 26.1423L24.251 26.1343C22.6444 25.3179 20.7209 24.9048 19.8043 24.7403C19.8003 24.1386 19.7903 23.3704 19.7843 22.893C20.1513 22.7005 20.6206 22.4738 21.1461 22.2612C23.0496 21.489 24.8427 21.2624 24.8748 20.0349C24.8828 19.746 24.7645 19.4813 24.5478 19.2406C26.1785 19.2226 28.2745 19.2567 30.2441 19.4592C34.1973 19.8644 36.7025 20.767 36.7185 20.775C36.7185 20.775 36.4598 20.3297 35.5211 19.7962V19.7822C35.5351 19.6859 35.6415 18.9297 35.6776 17.7704C36.9873 18.9979 39.0291 21.5492 38.8646 25.4302L38.8686 25.4343Z",fill:"#40464C"})),A.createElement("defs",null,A.createElement("clipPath",{id:"clip0_16894_46778"},A.createElement("rect",{width:"40",height:"39.9338",fill:"white"})))),Zk=He.div(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",gap:"16px",padding:"114px 32px 24px",[e.breakpoints.down("md")]:{padding:"114px 16px 24px",width:"100%"},boxSizing:"border-box",position:"absolute",zIndex:1,background:"white",bottom:0,top:0,left:0,right:0})),Jk=He.div(({theme:e})=>({position:"relative",padding:"16px",border:`1px solid ${e.custom.colors.lightGray2}`,borderRadius:"8px","svg:first-child":{fill:e.custom.colors.red,position:"absolute",top:"-10px",left:"-10px"}})),eI=He(Wk)({width:"40px",height:"40px",display:"block"}),tI=He(fi)({textAlign:"center",padding:"0 40px"}),nI=He(f2)({borderRadius:"8px",margin:"8px 0 24px 0",flexShrink:0,"button:focus-visible":{outlineOffset:"-1px",borderRadius:"7px"}}),rI=He(_E)(({theme:e})=>({fill:e.custom.colors.red,"button:disabled &":{fill:e.custom.colors.silverGray}})),aI=He.div(({theme:e})=>({display:"flex",gap:"16px",width:"100%",[e.breakpoints.down("sm")]:{flexDirection:"column"}})),iI=He.button(({theme:e})=>({flex:1,display:"flex",alignItems:"center",borderRadius:"8px",border:`1px solid ${e.custom.colors.lightGray2}`,padding:"12px 16px",color:e.custom.colors.darkGray2,backgroundColor:"transparent",textAlign:"left",[e.breakpoints.down("sm")]:{padding:"12px 36px"},":hover":{cursor:"pointer",borderColor:"transparent",color:e.custom.colors.white,backgroundColor:e.custom.colors.darkGray1}})),uI=({title:e,conversationStarters:t,className:r,onPromptSubmit:i})=>{const[o,s]=A.useState(""),c=h=>{s(h.target.value)},d=h=>{h.key==="Enter"&&o?i(o):s(o)};return A.createElement(Zk,{className:r,"data-testid":"ai-chat-entry-screen"},A.createElement(Jk,null,A.createElement(Md,null),A.createElement(eI,null)),e?A.createElement(tI,{variant:"h4"},e):null,A.createElement(nI,{fullWidth:!0,size:"chat",onChange:c,onKeyDown:d,inputProps:{"aria-label":"Ask a question"},endAdornment:A.createElement(E0,{"aria-label":"Send",onClick:()=>i(o)},A.createElement(rI,null)),responsive:!0}),A.createElement(aI,null,t==null?void 0:t.map(({content:h},p)=>A.createElement(iI,{key:p,onClick:()=>i(h),tabIndex:0,onKeyDown:E=>{E.key==="Enter"&&i(h)}},A.createElement(fi,{variant:"body2"},h)))))},oI=(...e)=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r&&(r.current=t)})},d2=e=>e.scrollHeight-e.clientHeight-e.scrollTop,lI=e=>{e.scrollTop=e.scrollHeight},sI=He.div({overflow:"auto"}),cI=A.forwardRef(function({children:t,threshold:r=2,className:i},o){const s=A.useRef(null),[c,d]=A.useState(t),h=A.useRef(null);return A.useLayoutEffect(()=>{s.current&&(h.current=d2(s.current)<r,d(t))},[t,r]),A.useLayoutEffect(()=>{if(!s.current)return;const p=d2(s.current)<r;h.current&&!p&&(lI(s.current),h.current=null)},[c,r]),A.createElement(sI,{className:i,ref:oI(s,o)},c)}),h2=He.span({clipPath:"inset(100%)",clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),fI={loadingMessages:[{delay:1500,text:"Loading"},{delay:4e3,text:"Still loading"}]},dI=({message:e,isLoading:t,loadingMessages:r=fI.loadingMessages})=>{var c;const[i,o]=A.useState(-1);A.useEffect(()=>{o(-1)},[t,r]),A.useEffect(()=>{const d=r[i+1];if(!t||!d)return()=>{};const h=setTimeout(()=>{o(i+1)},d.delay);return()=>{clearTimeout(h)}},[t,i,r]);const s=(c=r[i])==null?void 0:c.text;return A.createElement(h2,{"aria-atomic":"true","aria-live":"polite"},t?s:e)};function hI(e){return _n("MuiAlert",e)}const p2=vn("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function pI(e){return _n("MuiCircularProgress",e)}vn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ra=44,b0=Ju`
195
+ */var r2;function Ok(){return r2||(r2=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",c=0;c<arguments.length;c++){var d=arguments[c];d&&(s=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})()}(m0)),m0.exports}var kk=Ok();const Ul=lr(kk);function Ws(e){return parseInt(e,10)||0}const Ik={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Dk(e){for(const t in e)return!1;return!0}function a2(e){return Dk(e)||e.outerHeightStyle===0&&!e.overflowing}const wk=A.forwardRef(function(t,r){const{onChange:i,maxRows:l,minRows:s=1,style:c,value:d,...h}=t,{current:p}=A.useRef(d!=null),b=A.useRef(null),E=_r(r,b),T=A.useRef(null),y=A.useRef(null),v=A.useCallback(()=>{const M=b.current,w=y.current;if(!M||!w)return;const N=Ur(M).getComputedStyle(M);if(N.width==="0px")return{outerHeightStyle:0,overflowing:!1};w.style.width=N.width,w.value=M.value||t.placeholder||"x",w.value.slice(-1)===`
196
+ `&&(w.value+=" ");const z=N.boxSizing,V=Ws(N.paddingBottom)+Ws(N.paddingTop),j=Ws(N.borderBottomWidth)+Ws(N.borderTopWidth),_=w.scrollHeight;w.value="x";const q=w.scrollHeight;let $=_;s&&($=Math.max(Number(s)*q,$)),l&&($=Math.min(Number(l)*q,$)),$=Math.max($,q);const J=$+(z==="border-box"?V+j:0),Z=Math.abs($-_)<=1;return{outerHeightStyle:J,overflowing:Z}},[l,s,t.placeholder]),x=Hr(()=>{const M=b.current,w=v();if(!M||!w||a2(w))return!1;const D=w.outerHeightStyle;return T.current!=null&&T.current!==D}),B=A.useCallback(()=>{const M=b.current,w=v();if(!M||!w||a2(w))return;const D=w.outerHeightStyle;T.current!==D&&(T.current=D,M.style.height=`${D}px`),M.style.overflow=w.overflowing?"hidden":""},[v]),I=A.useRef(-1);_a(()=>{const M=xs(B),w=b==null?void 0:b.current;if(!w)return;const D=Ur(w);D.addEventListener("resize",M);let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(()=>{x()&&(N.unobserve(w),cancelAnimationFrame(I.current),B(),I.current=requestAnimationFrame(()=>{N.observe(w)}))}),N.observe(w)),()=>{M.clear(),cancelAnimationFrame(I.current),D.removeEventListener("resize",M),N&&N.disconnect()}},[v,B,x]),_a(()=>{B()});const P=M=>{p||B(),i&&i(M)};return pe.jsxs(A.Fragment,{children:[pe.jsx("textarea",{value:d,onChange:P,ref:E,rows:s,style:c,...h}),pe.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...Ik.shadow,...c,paddingTop:0,paddingBottom:0}})]})});function i2(e){return typeof e=="string"}function Lk({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 u2=A.createContext(void 0);function Mk(){return A.useContext(u2)}function l2(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Bk(e,t=!1){return e&&(l2(e.value)&&e.value!==""||t&&l2(e.defaultValue)&&e.defaultValue!=="")}function Pk(e){return _n("MuiInputBase",e)}const g0=vn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var o2;const Uk=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${st(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Hk=(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]},Fk=e=>{const{classes:t,color:r,disabled:i,error:l,endAdornment:s,focused:c,formControl:d,fullWidth:h,hiddenLabel:p,multiline:b,readOnly:E,size:T,startAdornment:y,type:v}=e,x={root:["root",`color${st(r)}`,i&&"disabled",l&&"error",h&&"fullWidth",c&&"focused",d&&"formControl",T&&T!=="medium"&&`size${st(T)}`,b&&"multiline",y&&"adornedStart",s&&"adornedEnd",p&&"hiddenLabel",E&&"readOnly"],input:["input",i&&"disabled",v==="search"&&"inputTypeSearch",b&&"inputMultiline",T==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",y&&"inputAdornedStart",s&&"inputAdornedEnd",E&&"readOnly"]};return On(x,Pk,t)},zk=mt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Uk})(Rn(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${g0.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Yk=mt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Hk})(Rn(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},l=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${g0.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},[`&.${g0.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),s2=kO({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),jk=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:s,autoFocus:c,className:d,color:h,components:p={},componentsProps:b={},defaultValue:E,disabled:T,disableInjectingGlobalStyles:y,endAdornment:v,error:x,fullWidth:B=!1,id:I,inputComponent:P="input",inputProps:M={},inputRef:w,margin:D,maxRows:N,minRows:z,multiline:V=!1,name:j,onBlur:_,onChange:q,onClick:$,onFocus:J,onKeyDown:Z,onKeyUp:ne,placeholder:F,readOnly:ae,renderSuffix:ie,rows:le,size:S,slotProps:K={},slots:de={},startAdornment:O,type:be="text",value:Re,...Te}=i,Xe=M.value!=null?M.value:Re,{current:Be}=A.useRef(Xe!=null),ut=A.useRef(),St=A.useCallback(Ve=>{},[]),gt=_r(ut,w,M.ref,St),[Ne,Oe]=A.useState(!1),Ce=Mk(),we=Lk({props:i,muiFormControl:Ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});we.focused=Ce?Ce.focused:Ne,A.useEffect(()=>{!Ce&&T&&Ne&&(Oe(!1),_&&_())},[Ce,T,Ne,_]);const ke=Ce&&Ce.onFilled,Me=Ce&&Ce.onEmpty,Fe=A.useCallback(Ve=>{Bk(Ve)?ke&&ke():Me&&Me()},[ke,Me]);_a(()=>{Be&&Fe({value:Xe})},[Xe,Fe,Be]);const qe=Ve=>{J&&J(Ve),M.onFocus&&M.onFocus(Ve),Ce&&Ce.onFocus?Ce.onFocus(Ve):Oe(!0)},$e=Ve=>{_&&_(Ve),M.onBlur&&M.onBlur(Ve),Ce&&Ce.onBlur?Ce.onBlur(Ve):Oe(!1)},ct=(Ve,...Tt)=>{if(!Be){const Ct=Ve.target||ut.current;if(Ct==null)throw new Error(Aa(1));Fe({value:Ct.value})}M.onChange&&M.onChange(Ve,...Tt),q&&q(Ve,...Tt)};A.useEffect(()=>{Fe(ut.current)},[]);const Ie=Ve=>{ut.current&&Ve.currentTarget===Ve.target&&ut.current.focus(),$&&$(Ve)};let un=P,Ft=M;V&&un==="input"&&(le?Ft={type:void 0,minRows:le,maxRows:le,...Ft}:Ft={type:void 0,maxRows:N,minRows:z,...Ft},un=wk);const Bt=Ve=>{Fe(Ve.animationName==="mui-auto-fill-cancel"?ut.current:{value:"x"})};A.useEffect(()=>{Ce&&Ce.setAdornedStart(!!O)},[Ce,O]);const re={...i,color:we.color||"primary",disabled:we.disabled,endAdornment:v,error:we.error,focused:we.focused,formControl:Ce,fullWidth:B,hiddenLabel:we.hiddenLabel,multiline:V,size:we.size,startAdornment:O,type:be},he=Fk(re),Se=de.root||p.Root||zk,Ae=K.root||b.root||{},Ue=de.input||p.Input||Yk;return Ft={...Ft,...K.input??b.input},pe.jsxs(A.Fragment,{children:[!y&&typeof s2=="function"&&(o2||(o2=pe.jsx(s2,{}))),pe.jsxs(Se,{...Ae,ref:r,onClick:Ie,...Te,...!i2(Se)&&{ownerState:{...re,...Ae.ownerState}},className:tt(he.root,Ae.className,d,ae&&"MuiInputBase-readOnly"),children:[O,pe.jsx(u2.Provider,{value:null,children:pe.jsx(Ue,{"aria-invalid":we.error,"aria-describedby":l,autoComplete:s,autoFocus:c,defaultValue:E,disabled:we.disabled,id:I,onAnimationStart:Bt,name:j,placeholder:F,readOnly:ae,required:we.required,rows:le,value:Xe,onKeyDown:Z,onKeyUp:ne,type:be,...Ft,...!i2(Ue)&&{as:un,ownerState:{...re,...Ft.ownerState}},ref:gt,className:tt(he.input,Ft.className,ae&&"MuiInputBase-readOnly"),onBlur:$e,onChange:ct,onFocus:qe})}),v,ie?ie({...we,startAdornment:O}):null]})]})}),qk={size:"medium"},Vk={small:"small",medium:"small",large:"medium",chat:"chat",hero:"large"},c2=({size:e,theme:t,multiline:r})=>Pi([(e==="small"||e==="medium")&&{...t.typography.body2},(e==="large"||e==="chat"||e==="hero")&&{".remixicon":{width:"24px",height:"24px"},...t.typography.body1},e==="medium"&&{paddingLeft:"12px",paddingRight:"12px"},e==="small"&&!r&&{height:"32px"},e==="medium"&&!r&&{height:"40px"},e==="large"&&!r&&{height:"48px"},e==="chat"&&!r&&{height:"56px"},e==="hero"&&!r&&{height:"72px"},e==="small"&&{padding:"0 8px",".Mit-AdornmentButton":{width:"32px",".remixicon":{width:"16px",height:"16px"}}},e==="medium"&&{padding:"0 12px",".Mit-AdornmentButton":{width:"40px",".remixicon":{width:"20px",height:"20px"}}},e==="large"&&{padding:"0 16px",".Mit-AdornmentButton":{width:"48px"}},e==="chat"&&{padding:"0 16px",borderRadius:"8px",borderColor:t.custom.colors.silverGrayLight,backgroundColor:t.custom.colors.white,".Mit-AdornmentButton":{padding:"0 16px"}},e==="hero"&&{padding:"0 24px",".Mit-AdornmentButton":{width:"72px"}}]),Gk=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"}}}),$k=Object.keys({responsive:!0}),f2=Pe(jk,{shouldForwardProp:e=>!$k.includes(e)})(({theme:e,size:t=qk.size,multiline:r,responsive:i})=>[Gk(e),c2({size:t,theme:e,multiline:r}),i&&{[e.breakpoints.down("sm")]:c2({size:Vk[t],theme:e,multiline:r})}]),Xk=Pe.button(({theme:e,disabled:t})=>({...e.typography.button,display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",border:"none",background:"transparent",transition:`background ${e.transitions.duration.short}ms`,cursor:t?"default":"pointer",":disabled":{cursor:"default",svg:{fill:e.custom.colors.silverGray}},":hover":{background:t?"inherit":"rgba(0, 0, 0, 0.06)"},color:e.custom.colors.silverGray,".MuiInputBase-root:hover &":{color:"inherit"},".MuiInputBase-root.Mui-focused &":{color:"inherit"},".MuiInputBase-root.Mui-disabled &":{color:"inherit"},height:"100%"})),Qk=e=>e.preventDefault(),b0=({className:e,...t})=>A.createElement(Xk,{onMouseDown:Qk,className:Ul("Mit-AdornmentButton",e),...t}),Kk=({className:e})=>A.createElement("svg",{className:e,width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A.createElement("g",{clipPath:"url(#clip0_16894_46778)"},A.createElement("path",{d:"M32.5546 5.17074C33.7099 6.67302 32.4042 7.80224 32.2498 7.94865L32.9819 8.97157C33.7621 8.23748 34.8612 6.35612 33.4291 4.49682C32.7933 3.67046 31.8246 3.32347 30.6251 3.49396C29.7868 3.6143 29.1209 3.95327 29.0928 3.96731L29.6102 4.74753C29.9974 4.57504 31.6059 3.93321 32.5546 5.16873V5.17074Z",fill:"#40464C"}),A.createElement("path",{d:"M8.63481 5.04446L9.0881 4.22412C9.06002 4.21209 8.36805 3.92728 7.52163 3.87513C6.31219 3.80292 5.37351 4.22412 4.80589 5.10062C3.52825 7.07023 4.7738 8.85532 5.61219 9.52523L6.25803 8.44616C6.09356 8.31177 4.69959 7.29086 5.73053 5.70033C6.57895 4.3926 8.23166 4.90406 8.63079 5.04446H8.63481Z",fill:"#40464C"}),A.createElement("path",{d:"M25.1577 7.25851C25.1778 7.25851 25.1978 7.25851 25.2179 7.25851C27.4382 7.29862 28.6296 8.96136 28.6296 8.96136L29.129 8.81896C29.109 8.75076 28.9144 8.12297 28.3468 7.48315C27.8133 6.88344 26.8425 6.16138 25.2399 6.1333C25.2119 6.1333 25.1858 6.1333 25.1577 6.1333C22.7168 6.1333 21.6056 8.07483 21.3589 9.11179L22.4721 9.37053C22.4941 9.28428 23.0216 7.2565 25.1577 7.2565V7.25851Z",fill:"#40464C"}),A.createElement("path",{d:"M9.90619 9.34454C9.92625 9.2583 10.4357 7.23252 12.5898 7.23252C12.6099 7.23252 12.63 7.23252 12.65 7.23252C14.8703 7.27063 15.9213 8.97549 15.9213 8.97549L16.5612 8.79498C16.5411 8.72478 16.3465 8.09899 15.7789 7.46118C15.2454 6.86147 14.2746 6.13941 12.6721 6.11133C12.646 6.11133 12.6179 6.11133 12.5898 6.11133C10.1489 6.11133 9.03772 8.05286 8.79102 9.08982L9.90619 9.34655V9.34454Z",fill:"#40464C"}),A.createElement("path",{d:"M19.6383 26.256L19.1973 26.269L19.363 31.8525L19.804 31.8394L19.6383 26.256Z",fill:"#40464C"}),A.createElement("path",{d:"M14.1281 38.5777C14.786 38.9107 16.2321 39.4201 16.2321 39.4201L16.8318 39.5906L17.4616 39.725L17.8748 39.7912C17.8748 39.7912 19.0702 39.9336 19.704 39.9336C19.7562 39.9336 19.8103 39.9336 19.8625 39.9336C20.9255 39.9236 22.7748 39.6508 22.7748 39.6508L23.2782 39.5525L24.3031 39.2837L24.6461 39.1614L26.3068 38.5015L26.5977 38.3451L27.1994 37.984L27.4842 37.7754C27.4842 37.7754 28.6114 36.9411 29.0326 36.5359C29.4137 36.1689 29.6905 35.7797 29.8931 35.3987C30.3323 35.2482 31.6862 34.7689 33.1443 34.0187C33.732 33.7821 34.7429 33.0981 34.8091 33.054C38.0985 30.8718 39.7712 28.3907 39.9718 25.6429C40.3729 20.1592 36.6684 16.9922 35.6836 16.218C35.6415 14.8 35.469 13.0871 35.0137 11.318C35.6054 10.7163 36.173 9.95213 36.4518 9.02148C36.9472 7.36275 36.881 5.67595 36.2612 4.27195C35.5733 2.70949 34.2715 1.60234 32.4945 1.06681C30.6272 0.503205 28.6515 1.0989 27.2616 1.76079C25.1215 0.767959 22.6424 0.166244 19.9989 0.0238384C16.7235 -0.152665 13.8012 0.661656 11.3843 2.11179C9.95424 1.46394 7.56945 0.781999 5.46144 1.60635C3.73251 2.28428 2.52507 3.49373 1.96347 5.10432C1.46004 6.55245 1.52823 8.23925 2.15602 9.85385C2.56519 10.9028 3.50988 11.9338 4.33022 12.6378C4.0093 14.2404 3.89297 15.7366 3.8669 16.922C2.79584 17.8306 -1.06115 21.5793 0.276664 27.3718C0.936544 30.2279 2.92421 32.6528 6.02705 34.3858C6.36201 34.5723 6.709 34.7508 7.06 34.9173L8.38778 35.503C9.49494 35.9562 10.4898 36.2852 11.0012 36.4456C11.5528 36.931 12.1645 37.4004 12.8284 37.8316L14.1281 38.5797V38.5777ZM3.45572 9.54899C1.84714 6.20345 3.8328 3.63012 6.13536 2.72955C8.15111 1.9413 10.9029 3.49974 12.0201 4.09143L11.982 3.05648C14.2104 1.73271 16.9141 0.946468 19.9427 1.10893C22.151 1.22727 24.243 1.68457 26.0922 2.43672L26.2687 3.57195C27.3338 2.89201 29.8449 1.61437 31.9168 2.24016C34.2856 2.95419 36.199 5.26678 35.136 8.82292C34.765 10.0665 33.4472 11.2378 32.8696 11.6931L33.9827 12.1544C34.5945 15.2994 34.2796 18.1856 34.1372 19.1684C33.2426 18.8495 32.0612 18.5607 30.5209 18.3962C30.4547 16.6773 30.1117 12.9106 28.3126 11.2278C27.6106 10.5719 26.7621 10.2289 25.7894 10.2129C24.8186 10.1988 23.9862 10.5137 23.3304 11.1536C22.3716 12.0902 21.5332 13.5885 21.3948 15.8369C21.3447 16.6432 21.3587 17.3813 21.3868 17.9289C20.6186 17.7945 19.7943 17.7223 18.984 17.7203L18.5929 17.7143C17.951 17.7323 17.3714 17.7845 16.8479 17.8607C16.7717 16.1979 16.3926 12.9727 14.6516 11.3662C13.9577 10.7263 13.1213 10.3954 12.1605 10.3794C11.1978 10.3653 10.3815 10.6722 9.73362 11.294C7.87432 13.0831 7.72188 17.1005 7.73592 18.4684C6.76516 18.5767 5.99095 18.7432 5.3772 18.9297C5.27691 18.0191 5.08637 15.5501 5.56975 12.7561L6.26573 12.012C5.65399 11.6028 4.09755 10.8687 3.45974 9.54297L3.45572 9.54899ZM26.4673 13.0008C24.1888 13.1432 24.3011 17.0123 24.3914 18.2197C23.8017 18.2398 23.2842 18.2678 22.8691 18.2939C22.7708 16.4948 22.8951 13.1773 24.2189 11.8856C24.6261 11.4885 25.1155 11.296 25.7152 11.296C25.7312 11.296 25.7473 11.296 25.7613 11.296C26.4091 11.306 26.9567 11.5286 27.4341 11.9759C27.9636 12.4713 28.3968 13.2415 28.7177 14.2424C28.2464 13.4702 27.5364 12.9346 26.4653 13.0008H26.4673ZM27.7931 18.2718L26.9427 18.2257C26.4553 18.2057 25.9779 18.1956 25.5146 18.1896C25.4524 17.614 25.3601 15.9893 26.3309 15.9613C27.6607 15.9232 27.8051 17.4916 27.7931 18.2718ZM14.2364 18.2718L13.386 18.2257C12.8986 18.2057 12.4213 18.1956 11.958 18.1896C11.8958 17.614 11.8035 15.9893 12.7743 15.9613C14.1041 15.9232 14.2485 17.4916 14.2364 18.2718ZM19.2628 25.34C19.7903 25.4463 21.6436 25.9257 23.3143 26.7019C23.2662 27.2675 23.1579 28.1701 22.9112 29.0807C22.5722 30.3342 21.6596 32.2256 21.3347 32.8775C21.0318 32.8915 20.5224 32.9116 20.1252 32.9176C19.5355 32.9256 18.8777 32.9397 18.5347 32.9457C18.1596 32.4242 17.0886 30.8878 16.3946 29.4296C15.9192 28.4328 15.6204 27.5302 15.4599 26.9767C16.8439 26.1082 18.9358 25.4403 19.2628 25.338V25.34ZM10.7325 18.342C10.5881 18.342 10.4416 18.342 10.2892 18.342C9.94221 18.342 9.61528 18.3481 9.30038 18.3601C9.17001 16.7094 9.21614 13.3458 10.6081 12.006C11.0193 11.6109 11.5187 11.4203 12.1325 11.4324C12.7723 11.4424 13.3118 11.659 13.7832 12.0942C14.3528 12.6197 14.8101 13.4641 15.135 14.5713C14.6757 13.6868 13.9396 13.0389 12.7683 13.1111C10.4075 13.2556 10.6462 17.3913 10.7325 18.342ZM38.8686 25.4343C38.644 30.7454 31.6521 33.1182 30.3905 33.5093C30.4065 33.07 30.3524 32.7872 30.3524 32.7872C30.3303 32.8474 28.1561 38.7622 19.8525 38.8445C19.8023 38.8445 19.7562 38.8445 19.706 38.8445C13.3118 38.8445 7.3769 32.0411 7.3769 32.0411C7.68979 32.6027 8.24939 33.4712 9.04967 34.4319C7.42905 33.9686 2.62536 32.1855 1.45201 27.097C0.475229 22.8609 2.56719 19.9125 3.88495 18.5406C3.90902 19.0942 3.94311 19.4412 3.94712 19.5114L3.95114 19.5455C3.25716 19.9446 3.1308 20.2455 3.1308 20.2455C3.16088 20.2334 6.46229 19.387 10.2792 19.4251C11.5067 19.4372 12.4614 19.4833 13.1935 19.5415C13.0089 19.8102 12.9187 20.083 12.9167 20.3417C12.9127 21.4649 15.2393 21.8902 16.5089 22.3354C17.4015 22.6483 18.1536 22.9712 18.5848 23.1678C18.5909 23.6492 18.5989 24.287 18.6009 24.7944C17.7364 25.0251 15.7488 25.6288 14.4972 26.5795L14.439 26.6317C14.445 26.6618 14.5233 27.0108 14.6958 27.5603C13.8754 27.7308 12.9067 27.8471 11.7935 27.8451C7.76801 27.8411 5.18465 26.1844 5.18465 26.1844C5.26287 26.2967 7.17633 28.9282 11.7935 28.9322C12.1786 28.9322 12.5456 28.9182 12.8986 28.8941C13.1915 29.4918 13.713 30.7133 14.4811 31.7984C15.5362 33.2866 16.9562 34.6365 19.8585 34.6365C23.7857 34.6365 25.9779 32.4202 27.1292 29.1649C27.2977 29.1649 27.4641 29.1609 27.6326 29.1549C27.9174 29.1448 28.2022 29.1268 28.4891 29.1007C32.8595 28.6996 34.5925 26.9004 34.6647 26.8222C34.6647 26.8222 30.4406 27.8291 28.3908 28.0176C26.8945 28.156 25.4203 28.0417 24.0845 27.8191C24.2209 26.9145 24.243 26.2285 24.245 26.1423L24.251 26.1343C22.6444 25.3179 20.7209 24.9048 19.8043 24.7403C19.8003 24.1386 19.7903 23.3704 19.7843 22.893C20.1513 22.7005 20.6206 22.4738 21.1461 22.2612C23.0496 21.489 24.8427 21.2624 24.8748 20.0349C24.8828 19.746 24.7645 19.4813 24.5478 19.2406C26.1785 19.2226 28.2745 19.2567 30.2441 19.4592C34.1973 19.8644 36.7025 20.767 36.7185 20.775C36.7185 20.775 36.4598 20.3297 35.5211 19.7962V19.7822C35.5351 19.6859 35.6415 18.9297 35.6776 17.7704C36.9873 18.9979 39.0291 21.5492 38.8646 25.4302L38.8686 25.4343Z",fill:"#40464C"})),A.createElement("defs",null,A.createElement("clipPath",{id:"clip0_16894_46778"},A.createElement("rect",{width:"40",height:"39.9338",fill:"white"})))),Wk=Pe.div(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",gap:"16px",padding:"114px 32px 24px",[e.breakpoints.down("md")]:{padding:"114px 16px 24px",width:"100%"},boxSizing:"border-box",position:"absolute",zIndex:1,background:"white",bottom:0,top:0,left:0,right:0})),Zk=Pe.div(({theme:e})=>({position:"relative",padding:"16px",border:`1px solid ${e.custom.colors.lightGray2}`,borderRadius:"8px","svg:first-child":{fill:e.custom.colors.red,position:"absolute",top:"-10px",left:"-10px"}})),Jk=Pe(Kk)({width:"40px",height:"40px",display:"block"}),eI=Pe(fi)({textAlign:"center",padding:"0 40px"}),tI=Pe(f2)({borderRadius:"8px",margin:"8px 0 24px 0",flexShrink:0,"button:focus-visible":{outlineOffset:"-1px",borderRadius:"7px"}}),nI=Pe(_b)(({theme:e})=>({fill:e.custom.colors.red,"button:disabled &":{fill:e.custom.colors.silverGray}})),rI=Pe.div(({theme:e})=>({display:"flex",gap:"16px",width:"100%",[e.breakpoints.down("sm")]:{flexDirection:"column"}})),aI=Pe.button(({theme:e})=>({flex:1,display:"flex",alignItems:"center",borderRadius:"8px",border:`1px solid ${e.custom.colors.lightGray2}`,padding:"12px 16px",color:e.custom.colors.darkGray2,backgroundColor:"transparent",textAlign:"left",[e.breakpoints.down("sm")]:{padding:"12px 36px"},":hover":{cursor:"pointer",borderColor:"transparent",color:e.custom.colors.white,backgroundColor:e.custom.colors.darkGray1}})),iI=({title:e,conversationStarters:t,className:r,onPromptSubmit:i})=>{const[l,s]=A.useState(""),c=h=>{s(h.target.value)},d=h=>{h.key==="Enter"&&l?i(l):s(l)};return A.createElement(Wk,{className:r,"data-testid":"ai-chat-entry-screen"},A.createElement(Zk,null,A.createElement(Md,null),A.createElement(Jk,null)),e?A.createElement(eI,{variant:"h4"},e):null,A.createElement(tI,{fullWidth:!0,size:"chat",onChange:c,onKeyDown:d,inputProps:{"aria-label":"Ask a question"},endAdornment:A.createElement(b0,{"aria-label":"Send",onClick:()=>i(l)},A.createElement(nI,null)),responsive:!0}),A.createElement(rI,null,t==null?void 0:t.map(({content:h},p)=>A.createElement(aI,{key:p,onClick:()=>i(h),tabIndex:0,onKeyDown:b=>{b.key==="Enter"&&i(h)}},A.createElement(fi,{variant:"body2"},h)))))},uI=(...e)=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r&&(r.current=t)})},d2=e=>e.scrollHeight-e.clientHeight-e.scrollTop,lI=e=>{e.scrollTop=e.scrollHeight},oI=Pe.div({overflow:"auto"}),sI=A.forwardRef(function({children:t,threshold:r=2,className:i},l){const s=A.useRef(null),[c,d]=A.useState(t),h=A.useRef(null);return A.useLayoutEffect(()=>{s.current&&(h.current=d2(s.current)<r,d(t))},[t,r]),A.useLayoutEffect(()=>{if(!s.current)return;const p=d2(s.current)<r;h.current&&!p&&(lI(s.current),h.current=null)},[c,r]),A.createElement(oI,{className:i,ref:uI(s,l)},c)}),h2=Pe.span({clipPath:"inset(100%)",clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),cI={loadingMessages:[{delay:1500,text:"Loading"},{delay:4e3,text:"Still loading"}]},fI=({message:e,isLoading:t,loadingMessages:r=cI.loadingMessages})=>{var c;const[i,l]=A.useState(-1);A.useEffect(()=>{l(-1)},[t,r]),A.useEffect(()=>{const d=r[i+1];if(!t||!d)return()=>{};const h=setTimeout(()=>{l(i+1)},d.delay);return()=>{clearTimeout(h)}},[t,i,r]);const s=(c=r[i])==null?void 0:c.text;return A.createElement(h2,{"aria-atomic":"true","aria-live":"polite"},t?s:e)};function dI(e){return _n("MuiAlert",e)}const p2=vn("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function hI(e){return _n("MuiCircularProgress",e)}vn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ra=44,E0=Ju`
197
197
  0% {
198
198
  transform: rotate(0deg);
199
199
  }
@@ -216,14 +216,14 @@ export default theme;`}function t0(e={},...t){const{breakpoints:r,mixins:i={},sp
216
216
  stroke-dasharray: 1px, 200px;
217
217
  stroke-dashoffset: -126px;
218
218
  }
219
- `,mI=typeof b0!="string"?Pi`
220
- animation: ${b0} 1.4s linear infinite;
221
- `:null,gI=typeof y0!="string"?Pi`
219
+ `,pI=typeof E0!="string"?Pi`
220
+ animation: ${E0} 1.4s linear infinite;
221
+ `:null,mI=typeof y0!="string"?Pi`
222
222
  animation: ${y0} 1.4s ease-in-out infinite;
223
- `:null,EI=e=>{const{classes:t,variant:r,color:i,disableShrink:o}=e,s={root:["root",r,`color${st(i)}`],svg:["svg"],circle:["circle",`circle${st(r)}`,o&&"circleDisableShrink"]};return On(s,pI,t)},bI=mt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${st(r.color)}`]]}})(Rn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:mI||{animation:`${b0} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ci()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),yI=mt("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),TI=mt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${st(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Rn(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:gI||{animation:`${y0} 1.4s ease-in-out infinite`}}]}))),SI=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:c=!1,size:d=40,style:h,thickness:p=3.6,value:E=0,variant:b="indeterminate",...T}=i,y={...i,color:s,disableShrink:c,size:d,thickness:p,value:E,variant:b},v=EI(y),x={},B={},I={};if(b==="determinate"){const P=2*Math.PI*((Ra-p)/2);x.strokeDasharray=P.toFixed(3),I["aria-valuenow"]=Math.round(E),x.strokeDashoffset=`${((100-E)/100*P).toFixed(3)}px`,B.transform="rotate(-90deg)"}return pe.jsx(bI,{className:tt(v.root,o),style:{width:d,height:d,...B,...h},ownerState:y,ref:r,role:"progressbar",...I,...T,children:pe.jsx(yI,{className:v.svg,ownerState:y,viewBox:`${Ra/2} ${Ra/2} ${Ra} ${Ra}`,children:pe.jsx(TI,{className:v.circle,style:x,ownerState:y,cx:Ra,cy:Ra,r:(Ra-p)/2,fill:"none",strokeWidth:p})})})});function CI(e){return _n("MuiIconButton",e)}const m2=vn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),AI=e=>{const{classes:t,disabled:r,color:i,edge:o,size:s,loading:c}=e,d={root:["root",c&&"loading",r&&"disabled",i!=="default"&&`color${st(i)}`,o&&`edge${st(o)}`,`size${st(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return On(d,CI,t)},xI=mt(c0,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${st(r.color)}`],r.edge&&t[`edge${st(r.edge)}`],t[`size${st(r.size)}`]]}})(Rn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Io(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Rn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(ci()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(ci()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Io((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${m2.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${m2.loading}`]:{color:"transparent"}}))),_I=mt("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),vI=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:c,color:d="default",disabled:h=!1,disableFocusRipple:p=!1,size:E="medium",id:b,loading:T=null,loadingIndicator:y,...v}=i,x=GR(b),B=y??pe.jsx(SI,{"aria-labelledby":x,color:"inherit",size:16}),I={...i,edge:o,color:d,disabled:h,disableFocusRipple:p,loading:T,loadingIndicator:B,size:E},P=AI(I);return pe.jsxs(xI,{id:T?x:b,className:tt(P.root,c),centerRipple:!0,focusRipple:!p,disabled:h||T,ref:r,...v,ownerState:I,children:[typeof T=="boolean"&&pe.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:pe.jsx(_I,{className:P.loadingIndicator,ownerState:I,children:T&&B})}),s]})}),RI=si(pe.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),NI=si(pe.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),OI=si(pe.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),kI=si(pe.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),II=si(pe.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),DI=e=>{const{variant:t,color:r,severity:i,classes:o}=e,s={root:["root",`color${st(r||i)}`,`${t}${st(r||i)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return On(s,hI,o)},wI=mt(Ib,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${st(r.color||r.severity)}`]]}})(Rn(({theme:e})=>{const t=e.palette.mode==="light"?Do:wo,r=e.palette.mode==="light"?wo:Do;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(ci(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:r(e.palette[i].light,.9),[`& .${p2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(ci(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${p2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(ci(["dark"])).map(([i])=>({props:{colorSeverity:i,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}}}))]}})),LI=mt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),MI=mt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),BI=mt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),g2={success:pe.jsx(RI,{fontSize:"inherit"}),warning:pe.jsx(NI,{fontSize:"inherit"}),error:pe.jsx(OI,{fontSize:"inherit"}),info:pe.jsx(kI,{fontSize:"inherit"})},PI=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiAlert"}),{action:o,children:s,className:c,closeText:d="Close",color:h,components:p={},componentsProps:E={},icon:b,iconMapping:T=g2,onClose:y,role:v="alert",severity:x="success",slotProps:B={},slots:I={},variant:P="standard",...M}=i,w={...i,color:h,severity:x,variant:P,colorSeverity:h||x},D=DI(w),N={slots:{closeButton:p.CloseButton,closeIcon:p.CloseIcon,...I},slotProps:{...E,...B}},[z,V]=en("root",{ref:r,shouldForwardComponentProp:!0,className:tt(D.root,c),elementType:wI,externalForwardedProps:{...N,...M},ownerState:w,additionalProps:{role:v,elevation:0}}),[j,_]=en("icon",{className:D.icon,elementType:LI,externalForwardedProps:N,ownerState:w}),[q,$]=en("message",{className:D.message,elementType:MI,externalForwardedProps:N,ownerState:w}),[J,Z]=en("action",{className:D.action,elementType:BI,externalForwardedProps:N,ownerState:w}),[ne,F]=en("closeButton",{elementType:vI,externalForwardedProps:N,ownerState:w}),[ae,ie]=en("closeIcon",{elementType:II,externalForwardedProps:N,ownerState:w});return pe.jsxs(z,{...V,children:[b!==!1?pe.jsx(j,{..._,children:b||T[x]||g2[x]}):null,pe.jsx(q,{...$,children:s}),o!=null?pe.jsx(J,{...Z,children:o}):null,o==null&&y?pe.jsx(J,{...Z,children:pe.jsx(ne,{size:"small","aria-label":d,title:d,color:"inherit",onClick:y,...F,children:pe.jsx(ae,{fontSize:"small",...ie})})}):null]})}),E2=(e,t)=>({info:e.custom.colors.blue,success:e.custom.colors.green,warning:e.custom.colors.orange,error:e.custom.colors.lightRed})[t],UI=He(PI)(({theme:e,severity:t})=>({padding:"11px 16px",borderRadius:4,borderWidth:2,borderStyle:"solid",borderColor:E2(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:E2(e,t)}},button:{padding:0,":hover":{margin:0,background:"none"}}})),HI=He.span({display:"none"}),FI=({visible:e=!0,severity:t="info",closable:r,children:i,className:o})=>{const[s,c]=A.useState(e),d=A.useId(),h=()=>{c(!1)};return A.useEffect(()=>{c(e)},[e]),s?A.createElement(UI,{severity:t,onClose:r?h:void 0,role:"alert","aria-describedby":d,className:o},i,A.createElement(HI,{id:d},t," message")):null},zI=He.div(({externalScroll:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0",gap:"16px",color:t.custom.colors.white,borderRadius:"8px 8px 0 0",...e&&{position:"sticky",top:0,padding:"32px 0 26px",zIndex:2,backgroundColor:t.custom.colors.white,borderRadius:0}})),YI=He.div(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",color:e.custom.colors.darkGray2,img:{width:"24px",height:"24px"},svg:{fill:e.custom.colors.red,width:"24px",height:"24px"}})),jI=({askTimTitle:e,externalScroll:t,className:r})=>e?A.createElement(zI,{externalScroll:t,className:r},A.createElement(YI,null,A.createElement(Md,null),A.createElement(fi,{variant:"body1"},"Ask",A.createElement("strong",null,"TIM")," ",e))):null;var b2="vercel.ai.error",qI=Symbol.for(b2),y2,VI=class aC extends Error{constructor({name:t,message:r,cause:i}){super(r),this[y2]=!0,this.name=t,this.cause=i}static isInstance(t){return aC.hasMarker(t,b2)}static hasMarker(t,r){const i=Symbol.for(r);return t!=null&&typeof t=="object"&&i in t&&typeof t[i]=="boolean"&&t[i]===!0}};y2=qI;var ou=VI;function T2(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var S2="AI_InvalidArgumentError",C2=`vercel.ai.error.${S2}`,GI=Symbol.for(C2),A2,$I=class extends ou{constructor({message:e,cause:t,argument:r}){super({name:S2,message:e,cause:t}),this[A2]=!0,this.argument=r}static isInstance(e){return ou.hasMarker(e,C2)}};A2=GI;var x2="AI_JSONParseError",_2=`vercel.ai.error.${x2}`,XI=Symbol.for(_2),v2,R2=class extends ou{constructor({text:e,cause:t}){super({name:x2,message:`JSON parsing failed: Text: ${e}.
224
- Error message: ${T2(t)}`,cause:t}),this[v2]=!0,this.text=e}static isInstance(e){return ou.hasMarker(e,_2)}};v2=XI;var N2="AI_TypeValidationError",O2=`vercel.ai.error.${N2}`,QI=Symbol.for(O2),k2,KI=class am extends ou{constructor({value:t,cause:r}){super({name:N2,message:`Type validation failed: Value: ${JSON.stringify(t)}.
225
- Error message: ${T2(r)}`,cause:r}),this[k2]=!0,this.value=t}static isInstance(t){return ou.hasMarker(t,O2)}static wrap({value:t,cause:r}){return am.isInstance(r)&&r.value===t?r:new am({value:t,cause:r})}};k2=QI;var I2=KI;let WI=(e,t=21)=>(r=t)=>{let i="",o=r|0;for(;o--;)i+=e[Math.random()*e.length|0];return i};var di={exports:{}},D2;function ZI(){if(D2)return di.exports;D2=1;const e=typeof Buffer<"u",t=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,r=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function i(d,h,p){p==null&&h!==null&&typeof h=="object"&&(p=h,h=void 0),e&&Buffer.isBuffer(d)&&(d=d.toString()),d&&d.charCodeAt(0)===65279&&(d=d.slice(1));const E=JSON.parse(d,h);if(E===null||typeof E!="object")return E;const b=p&&p.protoAction||"error",T=p&&p.constructorAction||"error";if(b==="ignore"&&T==="ignore")return E;if(b!=="ignore"&&T!=="ignore"){if(t.test(d)===!1&&r.test(d)===!1)return E}else if(b!=="ignore"&&T==="ignore"){if(t.test(d)===!1)return E}else if(r.test(d)===!1)return E;return o(E,{protoAction:b,constructorAction:T,safe:p&&p.safe})}function o(d,{protoAction:h="error",constructorAction:p="error",safe:E}={}){let b=[d];for(;b.length;){const T=b;b=[];for(const y of T){if(h!=="ignore"&&Object.prototype.hasOwnProperty.call(y,"__proto__")){if(E===!0)return null;if(h==="error")throw new SyntaxError("Object contains forbidden prototype property");delete y.__proto__}if(p!=="ignore"&&Object.prototype.hasOwnProperty.call(y,"constructor")&&Object.prototype.hasOwnProperty.call(y.constructor,"prototype")){if(E===!0)return null;if(p==="error")throw new SyntaxError("Object contains forbidden prototype property");delete y.constructor}for(const v in y){const x=y[v];x&&typeof x=="object"&&b.push(x)}}}return d}function s(d,h,p){const E=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return i(d,h,p)}finally{Error.stackTraceLimit=E}}function c(d,h){const p=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return i(d,h,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=p}}return di.exports=s,di.exports.default=s,di.exports.parse=s,di.exports.safeParse=c,di.exports.scan=o,di.exports}var JI=ZI();const eD=or(JI);var tD=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:i="-"}={})=>{const o=WI(r,t);if(e==null)return o;if(r.includes(i))throw new $I({argument:"separator",message:`The separator "${i}" must not be part of the alphabet "${r}".`});return s=>`${e}${i}${o(s)}`},T0=tD(),S0=Symbol.for("vercel.ai.validator");function nD(e){return{[S0]:!0,validate:e}}function rD(e){return typeof e=="object"&&e!==null&&S0 in e&&e[S0]===!0&&"validate"in e}function aD(e){return rD(e)?e:iD(e)}function iD(e){return nD(t=>{const r=e.safeParse(t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}})}function uD({value:e,schema:t}){const r=aD(t);try{if(r.validate==null)return{success:!0,value:e};const i=r.validate(e);return i.success?i:{success:!1,error:I2.wrap({value:e,cause:i.error})}}catch(i){return{success:!1,error:I2.wrap({value:e,cause:i})}}}function w2({text:e,schema:t}){try{const r=eD.parse(e);if(t==null)return{success:!0,value:r,rawValue:r};const i=uD({value:r,schema:t});return i.success?{...i,rawValue:r}:i}catch(r){return{success:!1,error:R2.isInstance(r)?r:new R2({text:e,cause:r})}}}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");var Fo={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},zo={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},Yo={code:"4",name:"assistant_message",parse:e=>{if(e==null||typeof e!="object"||!("id"in e)||!("role"in e)||!("content"in e)||typeof e.id!="string"||typeof e.role!="string"||e.role!=="assistant"||!Array.isArray(e.content)||!e.content.every(t=>t!=null&&typeof t=="object"&&"type"in t&&t.type==="text"&&"text"in t&&t.text!=null&&typeof t.text=="object"&&"value"in t.text&&typeof t.text.value=="string"))throw new Error('"assistant_message" parts expect an object with an "id", "role", and "content" property.');return{type:"assistant_message",value:e}}},jo={code:"5",name:"assistant_control_data",parse:e=>{if(e==null||typeof e!="object"||!("threadId"in e)||!("messageId"in e)||typeof e.threadId!="string"||typeof e.messageId!="string")throw new Error('"assistant_control_data" parts expect an object with a "threadId" and "messageId" property.');return{type:"assistant_control_data",value:{threadId:e.threadId,messageId:e.messageId}}}},qo={code:"6",name:"data_message",parse:e=>{if(e==null||typeof e!="object"||!("role"in e)||!("data"in e)||typeof e.role!="string"||e.role!=="data")throw new Error('"data_message" parts expect an object with a "role" and "data" property.');return{type:"data_message",value:e}}},oD=[Fo,zo,Yo,jo,qo];Fo.code+"",zo.code+"",Yo.code+"",jo.code+"",qo.code+"",Fo.name+"",Fo.code,zo.name+"",zo.code,Yo.name+"",Yo.code,jo.name+"",jo.code,qo.name+"",qo.code,oD.map(e=>e.code);function lD({promptTokens:e,completionTokens:t}){return{promptTokens:e,completionTokens:t,totalTokens:e+t}}function sD(e){const t=["ROOT"];let r=-1,i=null;function o(h,p,E){switch(h){case'"':{r=p,t.pop(),t.push(E),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{r=p,i=p,t.pop(),t.push(E),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(E),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=p,t.pop(),t.push(E),t.push("INSIDE_NUMBER");break}case"{":{r=p,t.pop(),t.push(E),t.push("INSIDE_OBJECT_START");break}case"[":{r=p,t.pop(),t.push(E),t.push("INSIDE_ARRAY_START");break}}}function s(h,p){switch(h){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{r=p,t.pop();break}}}function c(h,p){switch(h){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=p,t.pop();break}}}for(let h=0;h<e.length;h++){const p=e[h];switch(t[t.length-1]){case"ROOT":o(p,h,"FINISH");break;case"INSIDE_OBJECT_START":{switch(p){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{r=h,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(p){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(p){case'"':{t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(p){case":":{t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{o(p,h,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{s(p,h);break}case"INSIDE_STRING":{switch(p){case'"':{t.pop(),r=h;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:r=h}break}case"INSIDE_ARRAY_START":{switch(p){case"]":{r=h,t.pop();break}default:{r=h,o(p,h,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(p){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=h,t.pop();break}default:{r=h;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{o(p,h,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),r=h;break}case"INSIDE_NUMBER":{switch(p){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=h;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(p,h),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(p,h);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(p,h);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(p,h);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{const b=e.substring(i,h+1);!"false".startsWith(b)&&!"true".startsWith(b)&&!"null".startsWith(b)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?s(p,h):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(p,h)):r=h;break}}}let d=e.slice(0,r+1);for(let h=t.length-1;h>=0;h--)switch(t[h]){case"INSIDE_STRING":{d+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{d+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{d+="]";break}case"INSIDE_LITERAL":{const E=e.substring(i,e.length);"true".startsWith(E)?d+="true".slice(E.length):"false".startsWith(E)?d+="false".slice(E.length):"null".startsWith(E)&&(d+="null".slice(E.length))}}return d}function cD(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=w2({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=w2({text:sD(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var fD={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},dD={code:"2",name:"data",parse:e=>{if(!Array.isArray(e))throw new Error('"data" parts expect an array value.');return{type:"data",value:e}}},hD={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},pD={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}}},mD={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}}},gD={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}}},ED={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}}},bD={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}}},yD={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}}},TD={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}}},SD={code:"f",name:"start_step",parse:e=>{if(e==null||typeof e!="object"||!("messageId"in e)||typeof e.messageId!="string")throw new Error('"start_step" parts expect an object with an "id" property.');return{type:"start_step",value:{messageId:e.messageId}}}},CD={code:"g",name:"reasoning",parse:e=>{if(typeof e!="string")throw new Error('"reasoning" parts expect a string value.');return{type:"reasoning",value:e}}},AD={code:"h",name:"source",parse:e=>{if(e==null||typeof e!="object")throw new Error('"source" parts expect a Source object.');return{type:"source",value:e}}},xD={code:"i",name:"redacted_reasoning",parse:e=>{if(e==null||typeof e!="object"||!("data"in e)||typeof e.data!="string")throw new Error('"redacted_reasoning" parts expect an object with a "data" property.');return{type:"redacted_reasoning",value:{data:e.data}}}},_D={code:"j",name:"reasoning_signature",parse:e=>{if(e==null||typeof e!="object"||!("signature"in e)||typeof e.signature!="string")throw new Error('"reasoning_signature" parts expect an object with a "signature" property.');return{type:"reasoning_signature",value:{signature:e.signature}}}},vD={code:"k",name:"file",parse:e=>{if(e==null||typeof e!="object"||!("data"in e)||typeof e.data!="string"||!("mimeType"in e)||typeof e.mimeType!="string")throw new Error('"file" parts expect an object with a "data" and "mimeType" property.');return{type:"file",value:e}}},C0=[fD,dD,hD,pD,mD,gD,ED,bD,yD,TD,SD,CD,AD,xD,_D,vD],RD=Object.fromEntries(C0.map(e=>[e.code,e]));Object.fromEntries(C0.map(e=>[e.name,e.code]));var ND=C0.map(e=>e.code),OD=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(!ND.includes(r))throw new Error(`Failed to parse stream string. Invalid code ${r}.`);const i=r,o=e.slice(t+1),s=JSON.parse(o);return RD[i].parse(s)},kD=10;function ID(e,t){const r=new Uint8Array(t);let i=0;for(const o of e)r.set(o,i),i+=o.length;return e.length=0,r}async function DD({stream:e,onTextPart:t,onReasoningPart:r,onReasoningSignaturePart:i,onRedactedReasoningPart:o,onSourcePart:s,onFilePart:c,onDataPart:d,onErrorPart:h,onToolCallStreamingStartPart:p,onToolCallDeltaPart:E,onToolCallPart:b,onToolResultPart:T,onMessageAnnotationsPart:y,onFinishMessagePart:v,onFinishStepPart:x,onStartStepPart:B}){const I=e.getReader(),P=new TextDecoder,M=[];let w=0;for(;;){const{value:D}=await I.read();if(D&&(M.push(D),w+=D.length,D[D.length-1]!==kD))continue;if(M.length===0)break;const N=ID(M,w);w=0;const z=P.decode(N,{stream:!0}).split(`
226
- `).filter(V=>V!=="").map(OD);for(const{type:V,value:j}of z)switch(V){case"text":await(t==null?void 0:t(j));break;case"reasoning":await(r==null?void 0:r(j));break;case"reasoning_signature":await(i==null?void 0:i(j));break;case"redacted_reasoning":await(o==null?void 0:o(j));break;case"file":await(c==null?void 0:c(j));break;case"source":await(s==null?void 0:s(j));break;case"data":await(d==null?void 0:d(j));break;case"error":await(h==null?void 0:h(j));break;case"message_annotations":await(y==null?void 0:y(j));break;case"tool_call_streaming_start":await(p==null?void 0:p(j));break;case"tool_call_delta":await(E==null?void 0:E(j));break;case"tool_call":await(b==null?void 0:b(j));break;case"tool_result":await(T==null?void 0:T(j));break;case"finish_message":await(v==null?void 0:v(j));break;case"finish_step":await(x==null?void 0:x(j));break;case"start_step":await(B==null?void 0:B(j));break;default:{const _=V;throw new Error(`Unknown stream part type: ${_}`)}}}}async function wD({stream:e,update:t,onToolCall:r,onFinish:i,generateId:o=T0,getCurrentDate:s=()=>new Date,lastMessage:c}){var d,h;const p=(c==null?void 0:c.role)==="assistant";let E=p?1+((h=(d=c.toolInvocations)==null?void 0:d.reduce((N,z)=>{var V;return Math.max(N,(V=z.step)!=null?V:0)},0))!=null?h:0):0;const b=p?structuredClone(c):{id:o(),createdAt:s(),role:"assistant",content:"",parts:[]};let T,y,v;function x(N,z){const V=b.parts.find(j=>j.type==="tool-invocation"&&j.toolInvocation.toolCallId===N);V!=null?V.toolInvocation=z:b.parts.push({type:"tool-invocation",toolInvocation:z})}const B=[];let I=p?c==null?void 0:c.annotations:void 0;const P={};let M={completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},w="unknown";function D(){const N=[...B];I!=null&&I.length&&(b.annotations=I);const z={...structuredClone(b),revisionId:o()};t({message:z,data:N,replaceLastMessage:p})}await DD({stream:e,onTextPart(N){T==null?(T={type:"text",text:N},b.parts.push(T)):T.text+=N,b.content+=N,D()},onReasoningPart(N){var z;v==null?(v={type:"text",text:N},y!=null&&y.details.push(v)):v.text+=N,y==null?(y={type:"reasoning",reasoning:N,details:[v]},b.parts.push(y)):y.reasoning+=N,b.reasoning=((z=b.reasoning)!=null?z:"")+N,D()},onReasoningSignaturePart(N){v!=null&&(v.signature=N.signature)},onRedactedReasoningPart(N){y==null&&(y={type:"reasoning",reasoning:"",details:[]},b.parts.push(y)),y.details.push({type:"redacted",data:N.data}),v=void 0,D()},onFilePart(N){b.parts.push({type:"file",mimeType:N.mimeType,data:N.data}),D()},onSourcePart(N){b.parts.push({type:"source",source:N}),D()},onToolCallStreamingStartPart(N){b.toolInvocations==null&&(b.toolInvocations=[]),P[N.toolCallId]={text:"",step:E,toolName:N.toolName,index:b.toolInvocations.length};const z={state:"partial-call",step:E,toolCallId:N.toolCallId,toolName:N.toolName,args:void 0};b.toolInvocations.push(z),x(N.toolCallId,z),D()},onToolCallDeltaPart(N){const z=P[N.toolCallId];z.text+=N.argsTextDelta;const{value:V}=cD(z.text),j={state:"partial-call",step:z.step,toolCallId:N.toolCallId,toolName:z.toolName,args:V};b.toolInvocations[z.index]=j,x(N.toolCallId,j),D()},async onToolCallPart(N){const z={state:"call",step:E,...N};if(P[N.toolCallId]!=null?b.toolInvocations[P[N.toolCallId].index]=z:(b.toolInvocations==null&&(b.toolInvocations=[]),b.toolInvocations.push(z)),x(N.toolCallId,z),D(),r){const V=await r({toolCall:N});if(V!=null){const j={state:"result",step:E,...N,result:V};b.toolInvocations[b.toolInvocations.length-1]=j,x(N.toolCallId,j),D()}}},onToolResultPart(N){const z=b.toolInvocations;if(z==null)throw new Error("tool_result must be preceded by a tool_call");const V=z.findIndex(_=>_.toolCallId===N.toolCallId);if(V===-1)throw new Error("tool_result must be preceded by a tool_call with the same toolCallId");const j={...z[V],state:"result",...N};z[V]=j,x(N.toolCallId,j),D()},onDataPart(N){B.push(...N),D()},onMessageAnnotationsPart(N){I==null?I=[...N]:I.push(...N),D()},onFinishStepPart(N){E+=1,T=N.isContinued?T:void 0,y=void 0,v=void 0},onStartStepPart(N){p||(b.id=N.messageId),b.parts.push({type:"step-start"}),D()},onFinishMessagePart(N){w=N.finishReason,N.usage!=null&&(M=lD(N.usage))},onErrorPart(N){throw new Error(N)}}),i==null||i({message:b,finishReason:w,usage:M})}async function LD({stream:e,onTextPart:t}){const r=e.pipeThrough(new TextDecoderStream).getReader();for(;;){const{done:i,value:o}=await r.read();if(i)break;await t(o)}}async function MD({stream:e,update:t,onFinish:r,getCurrentDate:i=()=>new Date,generateId:o=T0}){const s={type:"text",text:""},c={id:o(),createdAt:i(),role:"assistant",content:"",parts:[s]};await LD({stream:e,onTextPart:d=>{c.content+=d,s.text+=d,t({message:{...c},data:[],replaceLastMessage:!1})}}),r==null||r(c,{usage:{completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},finishReason:"unknown"})}var BD=()=>fetch;async function PD({api:e,body:t,streamProtocol:r="data",credentials:i,headers:o,abortController:s,restoreMessagesOnFailure:c,onResponse:d,onUpdate:h,onFinish:p,onToolCall:E,generateId:b,fetch:T=BD(),lastMessage:y,requestType:v="generate"}){var x,B,I;const M=await(v==="resume"?T(`${e}?chatId=${t.id}`,{method:"GET",headers:{"Content-Type":"application/json",...o},signal:(x=s==null?void 0:s())==null?void 0:x.signal,credentials:i}):T(e,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",...o},signal:(B=s==null?void 0:s())==null?void 0:B.signal,credentials:i})).catch(w=>{throw c(),w});if(d)try{await d(M)}catch(w){throw w}if(!M.ok)throw c(),new Error((I=await M.text())!=null?I:"Failed to fetch the chat response.");if(!M.body)throw new Error("The response body is empty.");switch(r){case"text":{await MD({stream:M.body,update:h,onFinish:p,generateId:b});return}case"data":{await wD({stream:M.body,update:h,lastMessage:y,onToolCall:E,onFinish({message:w,finishReason:D,usage:N}){p&&w!=null&&p(w,{usage:N,finishReason:D})},generateId:b});return}default:{const w=r;throw new Error(`Unknown stream protocol: ${w}`)}}}function A0(e){return e==null?void 0:e.reduce((t,r)=>{var i;return Math.max(t,(i=r.step)!=null?i:0)},0)}function L2(e){var t;return(t=e.parts)!=null?t:[...e.toolInvocations?e.toolInvocations.map(r=>({type:"tool-invocation",toolInvocation:r})):[],...e.reasoning?[{type:"reasoning",reasoning:e.reasoning,details:[{type:"text",text:e.reasoning}]}]:[],...e.content?[{type:"text",text:e.content}]:[]]}function x0(e){return e.map(t=>({...t,parts:L2(t)}))}function _0(e,t){if(e===t)return!0;if(e==null||t==null)return!1;if(typeof e!="object"&&typeof t!="object")return e===t;if(e.constructor!==t.constructor)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(Array.isArray(e)){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!_0(e[o],t[o]))return!1;return!0}const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(const o of r)if(!i.includes(o)||!_0(e[o],t[o]))return!1;return!0}async function M2(e){if(!e)return[];if(globalThis.FileList&&e instanceof globalThis.FileList)return Promise.all(Array.from(e).map(async t=>{const{name:r,type:i}=t,o=await new Promise((s,c)=>{const d=new FileReader;d.onload=h=>{var p;s((p=h.target)==null?void 0:p.result)},d.onerror=h=>c(h),d.readAsDataURL(t)});return{name:r,contentType:i,url:o}}));if(Array.isArray(e))return e;throw new Error("Invalid attachments type")}function UD({originalMaxToolInvocationStep:e,originalMessageCount:t,maxSteps:r,messages:i}){var o;const s=i[i.length-1];return r>1&&s!=null&&(i.length>t||A0(s.toolInvocations)!==e)&&B2(s)&&((o=A0(s.toolInvocations))!=null?o:0)<r}function B2(e){if(e.role!=="assistant")return!1;const t=e.parts.reduce((i,o,s)=>o.type==="step-start"?s:i,-1),r=e.parts.slice(t+1).filter(i=>i.type==="tool-invocation");return r.length>0&&r.every(i=>"result"in i.toolInvocation)}function HD({messages:e,toolCallId:t,toolResult:r}){var i;const o=e[e.length-1],s=o.parts.find(d=>d.type==="tool-invocation"&&d.toolInvocation.toolCallId===t);if(s==null)return;const c={...s.toolInvocation,state:"result",result:r};s.toolInvocation=c,o.toolInvocations=(i=o.toolInvocations)==null?void 0:i.map(d=>d.toolCallId===t?c:d)}var v0={exports:{}},R0={};/**
223
+ `:null,gI=e=>{const{classes:t,variant:r,color:i,disableShrink:l}=e,s={root:["root",r,`color${st(i)}`],svg:["svg"],circle:["circle",`circle${st(r)}`,l&&"circleDisableShrink"]};return On(s,hI,t)},bI=mt("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${st(r.color)}`]]}})(Rn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:pI||{animation:`${E0} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ci()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),EI=mt("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),yI=mt("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${st(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Rn(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:mI||{animation:`${y0} 1.4s ease-in-out infinite`}}]}))),TI=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiCircularProgress"}),{className:l,color:s="primary",disableShrink:c=!1,size:d=40,style:h,thickness:p=3.6,value:b=0,variant:E="indeterminate",...T}=i,y={...i,color:s,disableShrink:c,size:d,thickness:p,value:b,variant:E},v=gI(y),x={},B={},I={};if(E==="determinate"){const P=2*Math.PI*((Ra-p)/2);x.strokeDasharray=P.toFixed(3),I["aria-valuenow"]=Math.round(b),x.strokeDashoffset=`${((100-b)/100*P).toFixed(3)}px`,B.transform="rotate(-90deg)"}return pe.jsx(bI,{className:tt(v.root,l),style:{width:d,height:d,...B,...h},ownerState:y,ref:r,role:"progressbar",...I,...T,children:pe.jsx(EI,{className:v.svg,ownerState:y,viewBox:`${Ra/2} ${Ra/2} ${Ra} ${Ra}`,children:pe.jsx(yI,{className:v.circle,style:x,ownerState:y,cx:Ra,cy:Ra,r:(Ra-p)/2,fill:"none",strokeWidth:p})})})});function SI(e){return _n("MuiIconButton",e)}const m2=vn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),CI=e=>{const{classes:t,disabled:r,color:i,edge:l,size:s,loading:c}=e,d={root:["root",c&&"loading",r&&"disabled",i!=="default"&&`color${st(i)}`,l&&`edge${st(l)}`,`size${st(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return On(d,SI,t)},AI=mt(c0,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${st(r.color)}`],r.edge&&t[`edge${st(r.edge)}`],t[`size${st(r.size)}`]]}})(Rn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:kl(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Rn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(ci()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(ci()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kl((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${m2.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${m2.loading}`]:{color:"transparent"}}))),xI=mt("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),_I=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiIconButton"}),{edge:l=!1,children:s,className:c,color:d="default",disabled:h=!1,disableFocusRipple:p=!1,size:b="medium",id:E,loading:T=null,loadingIndicator:y,...v}=i,x=V8(E),B=y??pe.jsx(TI,{"aria-labelledby":x,color:"inherit",size:16}),I={...i,edge:l,color:d,disabled:h,disableFocusRipple:p,loading:T,loadingIndicator:B,size:b},P=CI(I);return pe.jsxs(AI,{id:T?x:E,className:tt(P.root,c),centerRipple:!0,focusRipple:!p,disabled:h||T,ref:r,...v,ownerState:I,children:[typeof T=="boolean"&&pe.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:pe.jsx(xI,{className:P.loadingIndicator,ownerState:I,children:T&&B})}),s]})}),vI=si(pe.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),RI=si(pe.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),NI=si(pe.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),OI=si(pe.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),kI=si(pe.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),II=e=>{const{variant:t,color:r,severity:i,classes:l}=e,s={root:["root",`color${st(r||i)}`,`${t}${st(r||i)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return On(s,dI,l)},DI=mt(IE,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${st(r.color||r.severity)}`]]}})(Rn(({theme:e})=>{const t=e.palette.mode==="light"?Il:Dl,r=e.palette.mode==="light"?Dl:Il;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(ci(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:r(e.palette[i].light,.9),[`& .${p2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(ci(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${i}Color`]:t(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${p2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(ci(["dark"])).map(([i])=>({props:{colorSeverity:i,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}}}))]}})),wI=mt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),LI=mt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),MI=mt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),g2={success:pe.jsx(vI,{fontSize:"inherit"}),warning:pe.jsx(RI,{fontSize:"inherit"}),error:pe.jsx(NI,{fontSize:"inherit"}),info:pe.jsx(OI,{fontSize:"inherit"})},BI=A.forwardRef(function(t,r){const i=kn({props:t,name:"MuiAlert"}),{action:l,children:s,className:c,closeText:d="Close",color:h,components:p={},componentsProps:b={},icon:E,iconMapping:T=g2,onClose:y,role:v="alert",severity:x="success",slotProps:B={},slots:I={},variant:P="standard",...M}=i,w={...i,color:h,severity:x,variant:P,colorSeverity:h||x},D=II(w),N={slots:{closeButton:p.CloseButton,closeIcon:p.CloseIcon,...I},slotProps:{...b,...B}},[z,V]=en("root",{ref:r,shouldForwardComponentProp:!0,className:tt(D.root,c),elementType:DI,externalForwardedProps:{...N,...M},ownerState:w,additionalProps:{role:v,elevation:0}}),[j,_]=en("icon",{className:D.icon,elementType:wI,externalForwardedProps:N,ownerState:w}),[q,$]=en("message",{className:D.message,elementType:LI,externalForwardedProps:N,ownerState:w}),[J,Z]=en("action",{className:D.action,elementType:MI,externalForwardedProps:N,ownerState:w}),[ne,F]=en("closeButton",{elementType:_I,externalForwardedProps:N,ownerState:w}),[ae,ie]=en("closeIcon",{elementType:kI,externalForwardedProps:N,ownerState:w});return pe.jsxs(z,{...V,children:[E!==!1?pe.jsx(j,{..._,children:E||T[x]||g2[x]}):null,pe.jsx(q,{...$,children:s}),l!=null?pe.jsx(J,{...Z,children:l}):null,l==null&&y?pe.jsx(J,{...Z,children:pe.jsx(ne,{size:"small","aria-label":d,title:d,color:"inherit",onClick:y,...F,children:pe.jsx(ae,{fontSize:"small",...ie})})}):null]})}),b2=(e,t)=>({info:e.custom.colors.blue,success:e.custom.colors.green,warning:e.custom.colors.orange,error:e.custom.colors.lightRed})[t],PI=Pe(BI)(({theme:e,severity:t})=>({padding:"11px 16px",borderRadius:4,borderWidth:2,borderStyle:"solid",borderColor:b2(e,t),background:"#FFF",".MuiAlert-message":{...e.typography.body2,color:e.custom.colors.darkGray2,alignSelf:"center"},"> div":{paddingTop:0,paddingBottom:0},".MuiAlert-icon":{marginRight:8,svg:{width:16,fill:b2(e,t)}},button:{padding:0,":hover":{margin:0,background:"none"}}})),UI=Pe.span({display:"none"}),HI=({visible:e=!0,severity:t="info",closable:r,children:i,className:l})=>{const[s,c]=A.useState(e),d=A.useId(),h=()=>{c(!1)};return A.useEffect(()=>{c(e)},[e]),s?A.createElement(PI,{severity:t,onClose:r?h:void 0,role:"alert","aria-describedby":d,className:l},i,A.createElement(UI,{id:d},t," message")):null},FI=Pe.div(({externalScroll:e,theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0",gap:"16px",color:t.custom.colors.white,borderRadius:"8px 8px 0 0",...e&&{position:"sticky",top:0,padding:"32px 0 26px",zIndex:2,backgroundColor:t.custom.colors.white,borderRadius:0}})),zI=Pe.div(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",color:e.custom.colors.darkGray2,img:{width:"24px",height:"24px"},svg:{fill:e.custom.colors.red,width:"24px",height:"24px"}})),YI=({askTimTitle:e,externalScroll:t,className:r})=>e?A.createElement(FI,{externalScroll:t,className:r},A.createElement(zI,null,A.createElement(Md,null),A.createElement(fi,{variant:"body1"},"Ask",A.createElement("strong",null,"TIM")," ",e))):null;var E2="vercel.ai.error",jI=Symbol.for(E2),y2,qI=class aC extends Error{constructor({name:t,message:r,cause:i}){super(r),this[y2]=!0,this.name=t,this.cause=i}static isInstance(t){return aC.hasMarker(t,E2)}static hasMarker(t,r){const i=Symbol.for(r);return t!=null&&typeof t=="object"&&i in t&&typeof t[i]=="boolean"&&t[i]===!0}};y2=jI;var lu=qI;function T2(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var S2="AI_InvalidArgumentError",C2=`vercel.ai.error.${S2}`,VI=Symbol.for(C2),A2,GI=class extends lu{constructor({message:e,cause:t,argument:r}){super({name:S2,message:e,cause:t}),this[A2]=!0,this.argument=r}static isInstance(e){return lu.hasMarker(e,C2)}};A2=VI;var x2="AI_JSONParseError",_2=`vercel.ai.error.${x2}`,$I=Symbol.for(_2),v2,R2=class extends lu{constructor({text:e,cause:t}){super({name:x2,message:`JSON parsing failed: Text: ${e}.
224
+ Error message: ${T2(t)}`,cause:t}),this[v2]=!0,this.text=e}static isInstance(e){return lu.hasMarker(e,_2)}};v2=$I;var N2="AI_TypeValidationError",O2=`vercel.ai.error.${N2}`,XI=Symbol.for(O2),k2,QI=class am extends lu{constructor({value:t,cause:r}){super({name:N2,message:`Type validation failed: Value: ${JSON.stringify(t)}.
225
+ Error message: ${T2(r)}`,cause:r}),this[k2]=!0,this.value=t}static isInstance(t){return lu.hasMarker(t,O2)}static wrap({value:t,cause:r}){return am.isInstance(r)&&r.value===t?r:new am({value:t,cause:r})}};k2=XI;var I2=QI;let KI=(e,t=21)=>(r=t)=>{let i="",l=r|0;for(;l--;)i+=e[Math.random()*e.length|0];return i};var di={exports:{}},D2;function WI(){if(D2)return di.exports;D2=1;const e=typeof Buffer<"u",t=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,r=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function i(d,h,p){p==null&&h!==null&&typeof h=="object"&&(p=h,h=void 0),e&&Buffer.isBuffer(d)&&(d=d.toString()),d&&d.charCodeAt(0)===65279&&(d=d.slice(1));const b=JSON.parse(d,h);if(b===null||typeof b!="object")return b;const E=p&&p.protoAction||"error",T=p&&p.constructorAction||"error";if(E==="ignore"&&T==="ignore")return b;if(E!=="ignore"&&T!=="ignore"){if(t.test(d)===!1&&r.test(d)===!1)return b}else if(E!=="ignore"&&T==="ignore"){if(t.test(d)===!1)return b}else if(r.test(d)===!1)return b;return l(b,{protoAction:E,constructorAction:T,safe:p&&p.safe})}function l(d,{protoAction:h="error",constructorAction:p="error",safe:b}={}){let E=[d];for(;E.length;){const T=E;E=[];for(const y of T){if(h!=="ignore"&&Object.prototype.hasOwnProperty.call(y,"__proto__")){if(b===!0)return null;if(h==="error")throw new SyntaxError("Object contains forbidden prototype property");delete y.__proto__}if(p!=="ignore"&&Object.prototype.hasOwnProperty.call(y,"constructor")&&Object.prototype.hasOwnProperty.call(y.constructor,"prototype")){if(b===!0)return null;if(p==="error")throw new SyntaxError("Object contains forbidden prototype property");delete y.constructor}for(const v in y){const x=y[v];x&&typeof x=="object"&&E.push(x)}}}return d}function s(d,h,p){const b=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return i(d,h,p)}finally{Error.stackTraceLimit=b}}function c(d,h){const p=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return i(d,h,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=p}}return di.exports=s,di.exports.default=s,di.exports.parse=s,di.exports.safeParse=c,di.exports.scan=l,di.exports}var ZI=WI();const JI=lr(ZI);var eD=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:i="-"}={})=>{const l=KI(r,t);if(e==null)return l;if(r.includes(i))throw new GI({argument:"separator",message:`The separator "${i}" must not be part of the alphabet "${r}".`});return s=>`${e}${i}${l(s)}`},T0=eD(),S0=Symbol.for("vercel.ai.validator");function tD(e){return{[S0]:!0,validate:e}}function nD(e){return typeof e=="object"&&e!==null&&S0 in e&&e[S0]===!0&&"validate"in e}function rD(e){return nD(e)?e:aD(e)}function aD(e){return tD(t=>{const r=e.safeParse(t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}})}function iD({value:e,schema:t}){const r=rD(t);try{if(r.validate==null)return{success:!0,value:e};const i=r.validate(e);return i.success?i:{success:!1,error:I2.wrap({value:e,cause:i.error})}}catch(i){return{success:!1,error:I2.wrap({value:e,cause:i})}}}function w2({text:e,schema:t}){try{const r=JI.parse(e);if(t==null)return{success:!0,value:r,rawValue:r};const i=iD({value:r,schema:t});return i.success?{...i,rawValue:r}:i}catch(r){return{success:!1,error:R2.isInstance(r)?r:new R2({text:e,cause:r})}}}new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");var Hl={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},Fl={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},zl={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}}},Yl={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}}}},jl={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}}},uD=[Hl,Fl,zl,Yl,jl];Hl.code+"",Fl.code+"",zl.code+"",Yl.code+"",jl.code+"",Hl.name+"",Hl.code,Fl.name+"",Fl.code,zl.name+"",zl.code,Yl.name+"",Yl.code,jl.name+"",jl.code,uD.map(e=>e.code);function lD({promptTokens:e,completionTokens:t}){return{promptTokens:e,completionTokens:t,totalTokens:e+t}}function oD(e){const t=["ROOT"];let r=-1,i=null;function l(h,p,b){switch(h){case'"':{r=p,t.pop(),t.push(b),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{r=p,i=p,t.pop(),t.push(b),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(b),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=p,t.pop(),t.push(b),t.push("INSIDE_NUMBER");break}case"{":{r=p,t.pop(),t.push(b),t.push("INSIDE_OBJECT_START");break}case"[":{r=p,t.pop(),t.push(b),t.push("INSIDE_ARRAY_START");break}}}function s(h,p){switch(h){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{r=p,t.pop();break}}}function c(h,p){switch(h){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=p,t.pop();break}}}for(let h=0;h<e.length;h++){const p=e[h];switch(t[t.length-1]){case"ROOT":l(p,h,"FINISH");break;case"INSIDE_OBJECT_START":{switch(p){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{r=h,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(p){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(p){case'"':{t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(p){case":":{t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{l(p,h,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{s(p,h);break}case"INSIDE_STRING":{switch(p){case'"':{t.pop(),r=h;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:r=h}break}case"INSIDE_ARRAY_START":{switch(p){case"]":{r=h,t.pop();break}default:{r=h,l(p,h,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(p){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=h,t.pop();break}default:{r=h;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{l(p,h,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),r=h;break}case"INSIDE_NUMBER":{switch(p){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=h;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(p,h),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(p,h);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(p,h);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(p,h);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{const E=e.substring(i,h+1);!"false".startsWith(E)&&!"true".startsWith(E)&&!"null".startsWith(E)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?s(p,h):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(p,h)):r=h;break}}}let d=e.slice(0,r+1);for(let h=t.length-1;h>=0;h--)switch(t[h]){case"INSIDE_STRING":{d+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{d+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{d+="]";break}case"INSIDE_LITERAL":{const b=e.substring(i,e.length);"true".startsWith(b)?d+="true".slice(b.length):"false".startsWith(b)?d+="false".slice(b.length):"null".startsWith(b)&&(d+="null".slice(b.length))}}return d}function sD(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=w2({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=w2({text:oD(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var cD={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},fD={code:"2",name:"data",parse:e=>{if(!Array.isArray(e))throw new Error('"data" parts expect an array value.');return{type:"data",value:e}}},dD={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},hD={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}}},pD={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}}},mD={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}}},gD={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}}},bD={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}}},ED={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}}},yD={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}}},TD={code:"f",name:"start_step",parse:e=>{if(e==null||typeof e!="object"||!("messageId"in e)||typeof e.messageId!="string")throw new Error('"start_step" parts expect an object with an "id" property.');return{type:"start_step",value:{messageId:e.messageId}}}},SD={code:"g",name:"reasoning",parse:e=>{if(typeof e!="string")throw new Error('"reasoning" parts expect a string value.');return{type:"reasoning",value:e}}},CD={code:"h",name:"source",parse:e=>{if(e==null||typeof e!="object")throw new Error('"source" parts expect a Source object.');return{type:"source",value:e}}},AD={code:"i",name:"redacted_reasoning",parse:e=>{if(e==null||typeof e!="object"||!("data"in e)||typeof e.data!="string")throw new Error('"redacted_reasoning" parts expect an object with a "data" property.');return{type:"redacted_reasoning",value:{data:e.data}}}},xD={code:"j",name:"reasoning_signature",parse:e=>{if(e==null||typeof e!="object"||!("signature"in e)||typeof e.signature!="string")throw new Error('"reasoning_signature" parts expect an object with a "signature" property.');return{type:"reasoning_signature",value:{signature:e.signature}}}},_D={code:"k",name:"file",parse:e=>{if(e==null||typeof e!="object"||!("data"in e)||typeof e.data!="string"||!("mimeType"in e)||typeof e.mimeType!="string")throw new Error('"file" parts expect an object with a "data" and "mimeType" property.');return{type:"file",value:e}}},C0=[cD,fD,dD,hD,pD,mD,gD,bD,ED,yD,TD,SD,CD,AD,xD,_D],vD=Object.fromEntries(C0.map(e=>[e.code,e]));Object.fromEntries(C0.map(e=>[e.name,e.code]));var RD=C0.map(e=>e.code),ND=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(!RD.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 vD[i].parse(s)},OD=10;function kD(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 ID({stream:e,onTextPart:t,onReasoningPart:r,onReasoningSignaturePart:i,onRedactedReasoningPart:l,onSourcePart:s,onFilePart:c,onDataPart:d,onErrorPart:h,onToolCallStreamingStartPart:p,onToolCallDeltaPart:b,onToolCallPart:E,onToolResultPart:T,onMessageAnnotationsPart:y,onFinishMessagePart:v,onFinishStepPart:x,onStartStepPart:B}){const I=e.getReader(),P=new TextDecoder,M=[];let w=0;for(;;){const{value:D}=await I.read();if(D&&(M.push(D),w+=D.length,D[D.length-1]!==OD))continue;if(M.length===0)break;const N=kD(M,w);w=0;const z=P.decode(N,{stream:!0}).split(`
226
+ `).filter(V=>V!=="").map(ND);for(const{type:V,value:j}of z)switch(V){case"text":await(t==null?void 0:t(j));break;case"reasoning":await(r==null?void 0:r(j));break;case"reasoning_signature":await(i==null?void 0:i(j));break;case"redacted_reasoning":await(l==null?void 0:l(j));break;case"file":await(c==null?void 0:c(j));break;case"source":await(s==null?void 0:s(j));break;case"data":await(d==null?void 0:d(j));break;case"error":await(h==null?void 0:h(j));break;case"message_annotations":await(y==null?void 0:y(j));break;case"tool_call_streaming_start":await(p==null?void 0:p(j));break;case"tool_call_delta":await(b==null?void 0:b(j));break;case"tool_call":await(E==null?void 0:E(j));break;case"tool_result":await(T==null?void 0:T(j));break;case"finish_message":await(v==null?void 0:v(j));break;case"finish_step":await(x==null?void 0:x(j));break;case"start_step":await(B==null?void 0:B(j));break;default:{const _=V;throw new Error(`Unknown stream part type: ${_}`)}}}}async function DD({stream:e,update:t,onToolCall:r,onFinish:i,generateId:l=T0,getCurrentDate:s=()=>new Date,lastMessage:c}){var d,h;const p=(c==null?void 0:c.role)==="assistant";let b=p?1+((h=(d=c.toolInvocations)==null?void 0:d.reduce((N,z)=>{var V;return Math.max(N,(V=z.step)!=null?V:0)},0))!=null?h:0):0;const E=p?structuredClone(c):{id:l(),createdAt:s(),role:"assistant",content:"",parts:[]};let T,y,v;function x(N,z){const V=E.parts.find(j=>j.type==="tool-invocation"&&j.toolInvocation.toolCallId===N);V!=null?V.toolInvocation=z:E.parts.push({type:"tool-invocation",toolInvocation:z})}const B=[];let I=p?c==null?void 0:c.annotations:void 0;const P={};let M={completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},w="unknown";function D(){const N=[...B];I!=null&&I.length&&(E.annotations=I);const z={...structuredClone(E),revisionId:l()};t({message:z,data:N,replaceLastMessage:p})}await ID({stream:e,onTextPart(N){T==null?(T={type:"text",text:N},E.parts.push(T)):T.text+=N,E.content+=N,D()},onReasoningPart(N){var z;v==null?(v={type:"text",text:N},y!=null&&y.details.push(v)):v.text+=N,y==null?(y={type:"reasoning",reasoning:N,details:[v]},E.parts.push(y)):y.reasoning+=N,E.reasoning=((z=E.reasoning)!=null?z:"")+N,D()},onReasoningSignaturePart(N){v!=null&&(v.signature=N.signature)},onRedactedReasoningPart(N){y==null&&(y={type:"reasoning",reasoning:"",details:[]},E.parts.push(y)),y.details.push({type:"redacted",data:N.data}),v=void 0,D()},onFilePart(N){E.parts.push({type:"file",mimeType:N.mimeType,data:N.data}),D()},onSourcePart(N){E.parts.push({type:"source",source:N}),D()},onToolCallStreamingStartPart(N){E.toolInvocations==null&&(E.toolInvocations=[]),P[N.toolCallId]={text:"",step:b,toolName:N.toolName,index:E.toolInvocations.length};const z={state:"partial-call",step:b,toolCallId:N.toolCallId,toolName:N.toolName,args:void 0};E.toolInvocations.push(z),x(N.toolCallId,z),D()},onToolCallDeltaPart(N){const z=P[N.toolCallId];z.text+=N.argsTextDelta;const{value:V}=sD(z.text),j={state:"partial-call",step:z.step,toolCallId:N.toolCallId,toolName:z.toolName,args:V};E.toolInvocations[z.index]=j,x(N.toolCallId,j),D()},async onToolCallPart(N){const z={state:"call",step:b,...N};if(P[N.toolCallId]!=null?E.toolInvocations[P[N.toolCallId].index]=z:(E.toolInvocations==null&&(E.toolInvocations=[]),E.toolInvocations.push(z)),x(N.toolCallId,z),D(),r){const V=await r({toolCall:N});if(V!=null){const j={state:"result",step:b,...N,result:V};E.toolInvocations[E.toolInvocations.length-1]=j,x(N.toolCallId,j),D()}}},onToolResultPart(N){const z=E.toolInvocations;if(z==null)throw new Error("tool_result must be preceded by a tool_call");const V=z.findIndex(_=>_.toolCallId===N.toolCallId);if(V===-1)throw new Error("tool_result must be preceded by a tool_call with the same toolCallId");const j={...z[V],state:"result",...N};z[V]=j,x(N.toolCallId,j),D()},onDataPart(N){B.push(...N),D()},onMessageAnnotationsPart(N){I==null?I=[...N]:I.push(...N),D()},onFinishStepPart(N){b+=1,T=N.isContinued?T:void 0,y=void 0,v=void 0},onStartStepPart(N){p||(E.id=N.messageId),E.parts.push({type:"step-start"}),D()},onFinishMessagePart(N){w=N.finishReason,N.usage!=null&&(M=lD(N.usage))},onErrorPart(N){throw new Error(N)}}),i==null||i({message:E,finishReason:w,usage:M})}async function wD({stream:e,onTextPart:t}){const r=e.pipeThrough(new TextDecoderStream).getReader();for(;;){const{done:i,value:l}=await r.read();if(i)break;await t(l)}}async function LD({stream:e,update:t,onFinish:r,getCurrentDate:i=()=>new Date,generateId:l=T0}){const s={type:"text",text:""},c={id:l(),createdAt:i(),role:"assistant",content:"",parts:[s]};await wD({stream:e,onTextPart:d=>{c.content+=d,s.text+=d,t({message:{...c},data:[],replaceLastMessage:!1})}}),r==null||r(c,{usage:{completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},finishReason:"unknown"})}var MD=()=>fetch;async function BD({api:e,body:t,streamProtocol:r="data",credentials:i,headers:l,abortController:s,restoreMessagesOnFailure:c,onResponse:d,onUpdate:h,onFinish:p,onToolCall:b,generateId:E,fetch:T=MD(),lastMessage:y,requestType:v="generate"}){var x,B,I;const M=await(v==="resume"?T(`${e}?chatId=${t.id}`,{method:"GET",headers:{"Content-Type":"application/json",...l},signal:(x=s==null?void 0:s())==null?void 0:x.signal,credentials:i}):T(e,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",...l},signal:(B=s==null?void 0:s())==null?void 0:B.signal,credentials:i})).catch(w=>{throw c(),w});if(d)try{await d(M)}catch(w){throw w}if(!M.ok)throw c(),new Error((I=await M.text())!=null?I:"Failed to fetch the chat response.");if(!M.body)throw new Error("The response body is empty.");switch(r){case"text":{await LD({stream:M.body,update:h,onFinish:p,generateId:E});return}case"data":{await DD({stream:M.body,update:h,lastMessage:y,onToolCall:b,onFinish({message:w,finishReason:D,usage:N}){p&&w!=null&&p(w,{usage:N,finishReason:D})},generateId:E});return}default:{const w=r;throw new Error(`Unknown stream protocol: ${w}`)}}}function A0(e){return e==null?void 0:e.reduce((t,r)=>{var i;return Math.max(t,(i=r.step)!=null?i:0)},0)}function L2(e){var t;return(t=e.parts)!=null?t:[...e.toolInvocations?e.toolInvocations.map(r=>({type:"tool-invocation",toolInvocation:r})):[],...e.reasoning?[{type:"reasoning",reasoning:e.reasoning,details:[{type:"text",text:e.reasoning}]}]:[],...e.content?[{type:"text",text:e.content}]:[]]}function x0(e){return e.map(t=>({...t,parts:L2(t)}))}function _0(e,t){if(e===t)return!0;if(e==null||t==null)return!1;if(typeof e!="object"&&typeof t!="object")return e===t;if(e.constructor!==t.constructor)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(Array.isArray(e)){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l++)if(!_0(e[l],t[l]))return!1;return!0}const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(const l of r)if(!i.includes(l)||!_0(e[l],t[l]))return!1;return!0}async function M2(e){if(!e)return[];if(globalThis.FileList&&e instanceof globalThis.FileList)return Promise.all(Array.from(e).map(async t=>{const{name:r,type:i}=t,l=await new Promise((s,c)=>{const d=new FileReader;d.onload=h=>{var p;s((p=h.target)==null?void 0:p.result)},d.onerror=h=>c(h),d.readAsDataURL(t)});return{name:r,contentType:i,url:l}}));if(Array.isArray(e))return e;throw new Error("Invalid attachments type")}function PD({originalMaxToolInvocationStep:e,originalMessageCount:t,maxSteps:r,messages:i}){var l;const s=i[i.length-1];return r>1&&s!=null&&(i.length>t||A0(s.toolInvocations)!==e)&&B2(s)&&((l=A0(s.toolInvocations))!=null?l:0)<r}function B2(e){if(e.role!=="assistant")return!1;const t=e.parts.reduce((i,l,s)=>l.type==="step-start"?s:i,-1),r=e.parts.slice(t+1).filter(i=>i.type==="tool-invocation");return r.length>0&&r.every(i=>"result"in i.toolInvocation)}function UD({messages:e,toolCallId:t,toolResult:r}){var i;const l=e[e.length-1],s=l.parts.find(d=>d.type==="tool-invocation"&&d.toolInvocation.toolCallId===t);if(s==null)return;const c={...s.toolInvocation,state:"result",result:r};s.toolInvocation=c,l.toolInvocations=(i=l.toolInvocations)==null?void 0:i.map(d=>d.toolCallId===t?c:d)}var v0={exports:{}},R0={};/**
227
227
  * @license React
228
228
  * use-sync-external-store-shim.production.js
229
229
  *
@@ -231,15 +231,15 @@ Error message: ${T2(r)}`,cause:r}),this[k2]=!0,this.value=t}static isInstance(t)
231
231
  *
232
232
  * This source code is licensed under the MIT license found in the
233
233
  * LICENSE file in the root directory of this source tree.
234
- */var P2;function FD(){if(P2)return R0;P2=1;var e=Ql();function t(b,T){return b===T&&(b!==0||1/b===1/T)||b!==b&&T!==T}var r=typeof Object.is=="function"?Object.is:t,i=e.useState,o=e.useEffect,s=e.useLayoutEffect,c=e.useDebugValue;function d(b,T){var y=T(),v=i({inst:{value:y,getSnapshot:T}}),x=v[0].inst,B=v[1];return s(function(){x.value=y,x.getSnapshot=T,h(x)&&B({inst:x})},[b,y,T]),o(function(){return h(x)&&B({inst:x}),b(function(){h(x)&&B({inst:x})})},[b]),c(y),y}function h(b){var T=b.getSnapshot;b=b.value;try{var y=T();return!r(b,y)}catch{return!0}}function p(b,T){return T()}var E=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:d;return R0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:E,R0}var U2;function zD(){return U2||(U2=1,v0.exports=FD()),v0.exports}var YD=zD();const H2=0,F2=1,z2=2,Y2=3;var j2=Object.prototype.hasOwnProperty;function N0(e,t){var r,i;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((i=e.length)===t.length)for(;i--&&N0(e[i],t[i]););return i===-1}if(!r||typeof e=="object"){i=0;for(r in e)if(j2.call(e,r)&&++i&&!j2.call(t,r)||!(r in t)||!N0(e[r],t[r]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}const Jr=new WeakMap,Na=()=>{},In=Na(),O0=Object,lt=e=>e===In,jr=e=>typeof e=="function",Oa=(e,t)=>({...e,...t}),q2=e=>jr(e.then),k0={},Zs={},I0="undefined",Vo=typeof window!=I0,D0=typeof document!=I0,jD=Vo&&"Deno"in window,qD=()=>Vo&&typeof window.requestAnimationFrame!=I0,V2=(e,t)=>{const r=Jr.get(e);return[()=>!lt(t)&&e.get(t)||k0,i=>{if(!lt(t)){const o=e.get(t);t in Zs||(Zs[t]=o),r[5](t,Oa(o,i),o||k0)}},r[6],()=>!lt(t)&&t in Zs?Zs[t]:!lt(t)&&e.get(t)||k0]};let w0=!0;const VD=()=>w0,[L0,M0]=Vo&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Na,Na],GD=()=>{const e=D0&&document.visibilityState;return lt(e)||e!=="hidden"},$D=e=>(D0&&document.addEventListener("visibilitychange",e),L0("focus",e),()=>{D0&&document.removeEventListener("visibilitychange",e),M0("focus",e)}),XD=e=>{const t=()=>{w0=!0,e()},r=()=>{w0=!1};return L0("online",t),L0("offline",r),()=>{M0("online",t),M0("offline",r)}},QD={isOnline:VD,isVisible:GD},KD={initFocus:$D,initReconnect:XD},G2=!St.useId,Go=!Vo||jD,WD=e=>qD()?window.requestAnimationFrame(e):setTimeout(e,1),B0=Go?A.useEffect:A.useLayoutEffect,P0=typeof navigator<"u"&&navigator.connection,$2=!Go&&P0&&(["slow-2g","2g"].includes(P0.effectiveType)||P0.saveData),Js=new WeakMap,U0=(e,t)=>O0.prototype.toString.call(e)===`[object ${t}]`;let ZD=0;const H0=e=>{const t=typeof e,r=U0(e,"Date"),i=U0(e,"RegExp"),o=U0(e,"Object");let s,c;if(O0(e)===e&&!r&&!i){if(s=Js.get(e),s)return s;if(s=++ZD+"~",Js.set(e,s),Array.isArray(e)){for(s="@",c=0;c<e.length;c++)s+=H0(e[c])+",";Js.set(e,s)}if(o){s="#";const d=O0.keys(e).sort();for(;!lt(c=d.pop());)lt(e[c])||(s+=c+":"+H0(e[c])+",");Js.set(e,s)}}else s=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return s},F0=e=>{if(jr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?H0(e):"",[e,t]};let JD=0;const z0=()=>++JD;async function X2(...e){const[t,r,i,o]=e,s=Oa({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let c=s.populateCache;const d=s.rollbackOnError;let h=s.optimisticData;const p=T=>typeof d=="function"?d(T):d!==!1,E=s.throwOnError;if(jr(r)){const T=r,y=[],v=t.keys();for(const x of v)!/^\$(inf|sub)\$/.test(x)&&T(t.get(x)._k)&&y.push(x);return Promise.all(y.map(b))}return b(r);async function b(T){const[y]=F0(T);if(!y)return;const[v,x]=V2(t,y),[B,I,P,M]=Jr.get(t),w=()=>{const J=B[y];return(jr(s.revalidate)?s.revalidate(v().data,T):s.revalidate!==!1)&&(delete P[y],delete M[y],J&&J[0])?J[0](z2).then(()=>v().data):v().data};if(e.length<3)return w();let D=i,N;const z=z0();I[y]=[z,0];const V=!lt(h),j=v(),_=j.data,q=j._c,$=lt(q)?_:q;if(V&&(h=jr(h)?h($,_):h,x({data:h,_c:$})),jr(D))try{D=D($)}catch(J){N=J}if(D&&q2(D))if(D=await D.catch(J=>{N=J}),z!==I[y][0]){if(N)throw N;return D}else N&&V&&p(N)&&(c=!0,x({data:$,_c:In}));if(c&&!N)if(jr(c)){const J=c(D,$);x({data:J,error:In,_c:In})}else x({data:D,error:In,_c:In});if(I[y][1]=z0(),Promise.resolve(w()).then(()=>{x({_c:In})}),N){if(E)throw N;return}return D}}const Q2=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},ew=(e,t)=>{if(!Jr.has(e)){const r=Oa(KD,t),i=Object.create(null),o=X2.bind(In,e);let s=Na;const c=Object.create(null),d=(E,b)=>{const T=c[E]||[];return c[E]=T,T.push(b),()=>T.splice(T.indexOf(b),1)},h=(E,b,T)=>{e.set(E,b);const y=c[E];if(y)for(const v of y)v(b,T)},p=()=>{if(!Jr.has(e)&&(Jr.set(e,[i,Object.create(null),Object.create(null),Object.create(null),o,h,d]),!Go)){const E=r.initFocus(setTimeout.bind(In,Q2.bind(In,i,H2))),b=r.initReconnect(setTimeout.bind(In,Q2.bind(In,i,F2)));s=()=>{E&&E(),b&&b(),Jr.delete(e)}}};return p(),[e,o,p,s]}return[e,Jr.get(e)[4]]},tw=(e,t,r,i,o)=>{const s=r.errorRetryCount,c=o.retryCount,d=~~((Math.random()+.5)*(1<<(c<8?c:8)))*r.errorRetryInterval;!lt(s)&&c>s||setTimeout(i,d,o)},nw=N0,[K2,rw]=ew(new Map),aw=Oa({onLoadingSlow:Na,onSuccess:Na,onError:Na,onErrorRetry:tw,onDiscarded:Na,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:$2?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:$2?5e3:3e3,compare:nw,isPaused:()=>!1,cache:K2,mutate:rw,fallback:{}},QD),iw=(e,t)=>{const r=Oa(e,t);if(t){const{use:i,fallback:o}=e,{use:s,fallback:c}=t;i&&s&&(r.use=i.concat(s)),o&&c&&(r.fallback=Oa(o,c))}return r},uw=A.createContext({}),ow="$inf$",W2=Vo&&window.__SWR_DEVTOOLS_USE__,lw=W2?window.__SWR_DEVTOOLS_USE__:[],sw=()=>{W2&&(window.__SWR_DEVTOOLS_REACT__=St)},cw=e=>jr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],fw=()=>Oa(aw,A.useContext(uw)),dw=e=>(t,r,i)=>e(t,r&&((...s)=>{const[c]=F0(t),[,,,d]=Jr.get(K2);if(c.startsWith(ow))return r(...s);const h=d[c];return lt(h)?r(...s):(delete d[c],h)}),i),hw=lw.concat(dw),pw=e=>function(...r){const i=fw(),[o,s,c]=cw(r),d=iw(i,c);let h=e;const{use:p}=d,E=(p||[]).concat(hw);for(let b=E.length;b--;)h=E[b](h);return h(o,s||d.fetcher||null,d)},mw=(e,t,r)=>{const i=t[e]||(t[e]=[]);return i.push(r),()=>{const o=i.indexOf(r);o>=0&&(i[o]=i[i.length-1],i.pop())}};sw();const Y0=St.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),j0={dedupe:!0},ec=pw((e,t,r)=>{const{cache:i,compare:o,suspense:s,fallbackData:c,revalidateOnMount:d,revalidateIfStale:h,refreshInterval:p,refreshWhenHidden:E,refreshWhenOffline:b,keepPreviousData:T}=r,[y,v,x,B]=Jr.get(i),[I,P]=F0(e),M=A.useRef(!1),w=A.useRef(!1),D=A.useRef(I),N=A.useRef(t),z=A.useRef(r),V=()=>z.current,j=()=>V().isVisible()&&V().isOnline(),[_,q,$,J]=V2(i,I),Z=A.useRef({}).current,ne=lt(c)?lt(r.fallback)?In:r.fallback[I]:c,F=(Oe,Ce)=>{for(const we in Z){const ke=we;if(ke==="data"){if(!o(Oe[ke],Ce[ke])&&(!lt(Oe[ke])||!o(Re,Ce[ke])))return!1}else if(Ce[ke]!==Oe[ke])return!1}return!0},ae=A.useMemo(()=>{const Oe=!I||!t?!1:lt(d)?V().isPaused()||s?!1:h!==!1:d,Ce=$e=>{const ct=Oa($e);return delete ct._k,Oe?{isValidating:!0,isLoading:!0,...ct}:ct},we=_(),ke=J(),Me=Ce(we),Fe=we===ke?Me:Ce(ke);let qe=Me;return[()=>{const $e=Ce(_());return F($e,qe)?(qe.data=$e.data,qe.isLoading=$e.isLoading,qe.isValidating=$e.isValidating,qe.error=$e.error,qe):(qe=$e,$e)},()=>Fe]},[i,I]),ie=YD.useSyncExternalStore(A.useCallback(Oe=>$(I,(Ce,we)=>{F(we,Ce)||Oe()}),[i,I]),ae[0],ae[1]),oe=!M.current,S=y[I]&&y[I].length>0,K=ie.data,de=lt(K)?ne&&q2(ne)?Y0(ne):ne:K,O=ie.error,Ee=A.useRef(de),Re=T?lt(K)?lt(Ee.current)?de:Ee.current:K:de,Te=S&&!lt(O)?!1:oe&&!lt(d)?d:V().isPaused()?!1:s?lt(de)?!1:h:lt(de)||h,Xe=!!(I&&t&&oe&&Te),Be=lt(ie.isValidating)?Xe:ie.isValidating,ut=lt(ie.isLoading)?Xe:ie.isLoading,Ct=A.useCallback(async Oe=>{const Ce=N.current;if(!I||!Ce||w.current||V().isPaused())return!1;let we,ke,Me=!0;const Fe=Oe||{},qe=!x[I]||!Fe.dedupe,$e=()=>G2?!w.current&&I===D.current&&M.current:I===D.current,ct={isValidating:!1,isLoading:!1},Ie=()=>{q(ct)},un=()=>{const Bt=x[I];Bt&&Bt[1]===ke&&delete x[I]},Ft={isValidating:!0};lt(_().data)&&(Ft.isLoading=!0);try{if(qe&&(q(Ft),r.loadingTimeout&&lt(_().data)&&setTimeout(()=>{Me&&$e()&&V().onLoadingSlow(I,r)},r.loadingTimeout),x[I]=[Ce(P),z0()]),[we,ke]=x[I],we=await we,qe&&setTimeout(un,r.dedupingInterval),!x[I]||x[I][1]!==ke)return qe&&$e()&&V().onDiscarded(I),!1;ct.error=In;const Bt=v[I];if(!lt(Bt)&&(ke<=Bt[0]||ke<=Bt[1]||Bt[1]===0))return Ie(),qe&&$e()&&V().onDiscarded(I),!1;const re=_().data;ct.data=o(re,we)?re:we,qe&&$e()&&V().onSuccess(we,I,r)}catch(Bt){un();const re=V(),{shouldRetryOnError:he}=re;re.isPaused()||(ct.error=Bt,qe&&$e()&&(re.onError(Bt,I,re),(he===!0||jr(he)&&he(Bt))&&(!V().revalidateOnFocus||!V().revalidateOnReconnect||j())&&re.onErrorRetry(Bt,I,re,Se=>{const Ae=y[I];Ae&&Ae[0]&&Ae[0](Y2,Se)},{retryCount:(Fe.retryCount||0)+1,dedupe:!0})))}return Me=!1,Ie(),!0},[I,i]),gt=A.useCallback((...Oe)=>X2(i,D.current,...Oe),[]);if(B0(()=>{N.current=t,z.current=r,lt(K)||(Ee.current=K)}),B0(()=>{if(!I)return;const Oe=Ct.bind(In,j0);let Ce=0;V().revalidateOnFocus&&(Ce=Date.now()+V().focusThrottleInterval);const ke=mw(I,y,(Me,Fe={})=>{if(Me==H2){const qe=Date.now();V().revalidateOnFocus&&qe>Ce&&j()&&(Ce=qe+V().focusThrottleInterval,Oe())}else if(Me==F2)V().revalidateOnReconnect&&j()&&Oe();else{if(Me==z2)return Ct();if(Me==Y2)return Ct(Fe)}});return w.current=!1,D.current=I,M.current=!0,q({_k:P}),Te&&(lt(de)||Go?Oe():WD(Oe)),()=>{w.current=!0,ke()}},[I]),B0(()=>{let Oe;function Ce(){const ke=jr(p)?p(_().data):p;ke&&Oe!==-1&&(Oe=setTimeout(we,ke))}function we(){!_().error&&(E||V().isVisible())&&(b||V().isOnline())?Ct(j0).then(Ce):Ce()}return Ce(),()=>{Oe&&(clearTimeout(Oe),Oe=-1)}},[p,E,b,I]),A.useDebugValue(Re),s&&lt(de)&&I){if(!G2&&Go)throw new Error("Fallback data is required when using Suspense in SSR.");N.current=t,z.current=r,w.current=!1;const Oe=B[I];if(!lt(Oe)){const Ce=gt(Oe);Y0(Ce)}if(lt(O)){const Ce=Ct(j0);lt(Re)||(Ce.status="fulfilled",Ce.value=!0),Y0(Ce)}else throw O}return{mutate:gt,get data(){return Z.data=!0,Re},get error(){return Z.error=!0,O},get isValidating(){return Z.isValidating=!0,Be},get isLoading(){return Z.isLoading=!0,ut}}});var q0,Z2;function gw(){if(Z2)return q0;Z2=1;function e(t,r){if(typeof t!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof t}\`.`);let i,o=0;return function(...c){clearTimeout(i);const d=Date.now(),h=d-o,p=r-h;p<=0?(o=d,t.apply(this,c)):i=setTimeout(()=>{o=Date.now(),t.apply(this,c)},p)}}return q0=e,q0}var Ew=gw();const bw=or(Ew);function J2(e,t){return t!=null?bw(e,t):e}function yw(e){const[t,r]=A.useState(e);return A.useEffect(()=>{_0(e,t)||r(e)},[e,t]),t}function Tw({api:e="/api/chat",id:t,initialMessages:r,initialInput:i="",sendExtraMessageFields:o,onToolCall:s,experimental_prepareRequestBody:c,maxSteps:d=1,streamProtocol:h="data",onResponse:p,onFinish:E,onError:b,credentials:T,headers:y,body:v,generateId:x=T0,fetch:B,keepLastMessageOnError:I=!0,experimental_throttle:P}={}){const[M]=A.useState(x),w=t??M,D=typeof e=="string"?[e,w]:w,N=yw(r??[]),z=A.useMemo(()=>x0(N),[N]),{data:V,mutate:j}=ec([D,"messages"],null,{fallbackData:z}),_=A.useRef(V||[]);A.useEffect(()=>{_.current=V||[]},[V]);const{data:q,mutate:$}=ec([D,"streamData"],null),J=A.useRef(q);A.useEffect(()=>{J.current=q},[q]);const{data:Z="ready",mutate:ne}=ec([D,"status"],null),{data:F=void 0,mutate:ae}=ec([D,"error"],null),ie=A.useRef(null),oe=A.useRef({credentials:T,headers:y,body:v});A.useEffect(()=>{oe.current={credentials:T,headers:y,body:v}},[T,y,v]);const S=A.useCallback(async(Ne,Oe="generate")=>{var Ce,we;ne("submitted"),ae(void 0);const ke=x0(Ne.messages),Me=ke.length,Fe=A0((Ce=ke[ke.length-1])==null?void 0:Ce.toolInvocations);try{const $e=new AbortController;ie.current=$e;const ct=J2(j,P),Ie=J2($,P),un=_.current;ct(ke,!1);const Ft=o?ke:ke.map(({role:re,content:he,experimental_attachments:Se,data:Ae,annotations:Pe,toolInvocations:Ve,parts:Tt})=>({role:re,content:he,...Se!==void 0&&{experimental_attachments:Se},...Ae!==void 0&&{data:Ae},...Pe!==void 0&&{annotations:Pe},...Ve!==void 0&&{toolInvocations:Ve},...Tt!==void 0&&{parts:Tt}})),Bt=J.current;await PD({api:e,body:(we=c==null?void 0:c({id:w,messages:ke,requestData:Ne.data,requestBody:Ne.body}))!=null?we:{id:w,messages:Ft,data:Ne.data,...oe.current.body,...Ne.body},streamProtocol:h,credentials:oe.current.credentials,headers:{...oe.current.headers,...Ne.headers},abortController:()=>ie.current,restoreMessagesOnFailure(){I||ct(un,!1)},onResponse:p,onUpdate({message:re,data:he,replaceLastMessage:Se}){ne("streaming"),ct([...Se?ke.slice(0,ke.length-1):ke,re],!1),he!=null&&he.length&&Ie([...Bt??[],...he],!1)},onToolCall:s,onFinish:E,generateId:x,fetch:B,lastMessage:ke[ke.length-1],requestType:Oe}),ie.current=null,ne("ready")}catch($e){if($e.name==="AbortError")return ie.current=null,ne("ready"),null;b&&$e instanceof Error&&b($e),ae($e),ne("error")}const qe=_.current;UD({originalMaxToolInvocationStep:Fe,originalMessageCount:Me,maxSteps:d,messages:qe})&&await S({messages:qe})},[j,ne,e,oe,p,E,b,ae,$,J,h,o,c,s,d,_,ie,x,B,I,P,w]),K=A.useCallback(async(Ne,{data:Oe,headers:Ce,body:we,experimental_attachments:ke=Ne.experimental_attachments}={})=>{var Me,Fe;const qe=await M2(ke),$e=_.current.concat({...Ne,id:(Me=Ne.id)!=null?Me:x(),createdAt:(Fe=Ne.createdAt)!=null?Fe:new Date,experimental_attachments:qe.length>0?qe:void 0,parts:L2(Ne)});return S({messages:$e,headers:Ce,body:we,data:Oe})},[S,x]),de=A.useCallback(async({data:Ne,headers:Oe,body:Ce}={})=>{const we=_.current;if(we.length===0)return null;const ke=we[we.length-1];return S({messages:ke.role==="assistant"?we.slice(0,-1):we,headers:Oe,body:Ce,data:Ne})},[S]),O=A.useCallback(()=>{ie.current&&(ie.current.abort(),ie.current=null)},[]),Ee=A.useCallback(async()=>{const Ne=_.current;S({messages:Ne},"resume")},[S]),Re=A.useCallback(Ne=>{typeof Ne=="function"&&(Ne=Ne(_.current));const Oe=x0(Ne);j(Oe,!1),_.current=Oe},[j]),Te=A.useCallback(Ne=>{typeof Ne=="function"&&(Ne=Ne(J.current)),$(Ne,!1),J.current=Ne},[$]),[Xe,Be]=A.useState(i),ut=A.useCallback(async(Ne,Oe={},Ce)=>{var we;if((we=Ne==null?void 0:Ne.preventDefault)==null||we.call(Ne),!Xe&&!Oe.allowEmptySubmit)return;Ce&&(oe.current={...oe.current,...Ce});const ke=await M2(Oe.experimental_attachments),Fe={messages:_.current.concat({id:x(),createdAt:new Date,role:"user",content:Xe,experimental_attachments:ke.length>0?ke:void 0,parts:[{type:"text",text:Xe}]}),headers:Oe.headers,body:Oe.body,data:Oe.data};S(Fe),Be("")},[Xe,x,S]),Ct=Ne=>{Be(Ne.target.value)},gt=A.useCallback(({toolCallId:Ne,result:Oe})=>{const Ce=_.current;if(HD({messages:Ce,toolCallId:Ne,toolResult:Oe}),j([...Ce.slice(0,Ce.length-1),{...Ce[Ce.length-1]}],!1),Z==="submitted"||Z==="streaming")return;const we=Ce[Ce.length-1];B2(we)&&S({messages:Ce})},[j,Z,S]);return{messages:V??[],id:w,setMessages:Re,data:q,setData:Te,error:F,append:K,reload:de,stop:O,experimental_resume:Ee,input:Xe,setInput:Be,handleInputChange:Ct,handleSubmit:ut,isLoading:Z==="submitted"||Z==="streaming",status:Z,addToolResult:gt}}const Sw=3,Cw=[400,401,403,404,405,409,422],Aw=1e3,ey=((e,{retryDelay:t,retryOn:r})=>(i,o)=>new Promise((s,c)=>{const d=p=>{const E=typeof Request<"u"&&i instanceof Request?i.clone():i;e(E,o).then(b=>{try{Promise.resolve(r(p,null,b)).then(T=>{T?h(p,null,b):s(b)}).catch(c)}catch(T){c(T)}}).catch(b=>{try{Promise.resolve(r(p,b,null)).then(T=>{T?h(p,b,null):c(b)}).catch(T=>{c(T)})}catch(T){c(T)}})},h=(p,E,b)=>{const T=t(p,E,b);setTimeout(()=>{d(++p)},T)};d(0)}))((...e)=>window.fetch(...e),{retryDelay:(e,t,r)=>Math.min(Aw*2**e,3e4),retryOn:(e,t,r)=>e>=Sw?!1:r?r.status<400?!1:!Cw.includes(r.status):!0}),xw=e=>e,_w=e=>async(t,r)=>{var c;if(typeof(r==null?void 0:r.body)!="string")return console.error("Unexpected body type."),ey(t,r);const i=JSON.parse(r==null?void 0:r.body).messages,o=e.transformBody??xw,s={...r,body:JSON.stringify(o(i)),...e.fetchOpts,headers:{...r==null?void 0:r.headers,"Content-Type":"application/json",...(c=e.fetchOpts)==null?void 0:c.headers}};return ey(t,s)},ty=A.createContext(null),vw=({initialMessages:e,requestOpts:t,chatId:r,parseContent:i,children:o})=>{const s=A.useMemo(()=>(e==null?void 0:e.map((E,b)=>({...E,id:`initial-${b}`})))??[],[e]),c=A.useMemo(()=>_w(t),[t]),{messages:d,...h}=Tw({api:t.apiUrl,streamProtocol:"text",fetch:c,onFinish:E=>{var b;t.onFinish&&(E.role==="assistant"||E.role==="user"?(b=t.onFinish)==null||b.call(t,E):console.info("Unexpected message role.",E))},initialMessages:s,id:r}),p=A.useMemo(()=>{const E=s==null?void 0:s.map(b=>b.id);return d.map(b=>{if(b.role==="assistant"&&!(E!=null&&E.includes(b.id))){const T=i?i(b.content):b.content;return{...b,content:T}}return b})},[i,d,s]);return A.createElement(ty.Provider,{key:r,value:{initialMessages:s,messages:p,...h}},o)},Rw=()=>{const e=A.useContext(ty);if(!e)throw new Error("useAiChatContext must be used within an AiChatProvider");return e},Nw=e=>e.scrollHeight-e.clientHeight-e.scrollTop,Ow=e=>{e.scrollTop=e.scrollHeight},kw=({scrollElement:e,contentElement:t,threshold:r=2})=>{A.useEffect(()=>{const i=()=>{e&&Nw(e)<r&&Ow(e)};i();const o=new ResizeObserver(i);return t&&o.observe(t),()=>{o.disconnect()}},[e,t,r])},ny=function(e,t,r){const i=ad(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(i(e.children[t],t,e))return e.children[t]},hi=function(e){if(e==null)return ww;if(typeof e=="string")return Dw(e);if(typeof e=="object")return Iw(e);if(typeof e=="function")return V0(e);throw new Error("Expected function, string, or array as `test`")};function Iw(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=hi(e[r]);return V0(i);function i(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}function Dw(e){return V0(t);function t(r){return r.tagName===e}}function V0(e){return t;function t(r,i,o){return!!(Lw(r)&&e.call(this,r,typeof i=="number"?i:void 0,o||void 0))}}function ww(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Lw(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const ry=/\n/g,ay=/[\t ]+/g,G0=hi("br"),iy=hi(Yw),Mw=hi("p"),uy=hi("tr"),Bw=hi(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",zw,jw]),oy=hi(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Pw(e,t){const r=t||{},i="children"in e?e.children:[],o=oy(e),s=cy(e,{whitespace:r.whitespace||"normal"}),c=[];(e.type==="text"||e.type==="comment")&&c.push(...sy(e,{breakBefore:!0,breakAfter:!0}));let d=-1;for(;++d<i.length;)c.push(...ly(i[d],e,{whitespace:s,breakBefore:d?void 0:o,breakAfter:d<i.length-1?G0(i[d+1]):o}));const h=[];let p;for(d=-1;++d<c.length;){const E=c[d];typeof E=="number"?p!==void 0&&E>p&&(p=E):E&&(p!==void 0&&p>-1&&h.push(`
235
- `.repeat(p)||" "),p=-1,h.push(E))}return h.join("")}function ly(e,t,r){return e.type==="element"?Uw(e,t,r):e.type==="text"?r.whitespace==="normal"?sy(e,r):Hw(e):[]}function Uw(e,t,r){const i=cy(e,r),o=e.children||[];let s=-1,c=[];if(Bw(e))return c;let d,h;for(G0(e)||uy(e)&&ny(t,e,uy)?h=`
236
- `:Mw(e)?(d=2,h=2):oy(e)&&(d=1,h=1);++s<o.length;)c=c.concat(ly(o[s],e,{whitespace:i,breakBefore:s?void 0:d,breakAfter:s<o.length-1?G0(o[s+1]):h}));return iy(e)&&ny(t,e,iy)&&c.push(" "),d&&c.unshift(d),h&&c.push(h),c}function sy(e,t){const r=String(e.value),i=[],o=[];let s=0;for(;s<=r.length;){ry.lastIndex=s;const h=ry.exec(r),p=h&&"index"in h?h.index:r.length;i.push(Fw(r.slice(s,p).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?t.breakBefore:!0,p===r.length?t.breakAfter:!0)),s=p+1}let c=-1,d;for(;++c<i.length;)i[c].charCodeAt(i[c].length-1)===8203||c<i.length-1&&i[c+1].charCodeAt(0)===8203?(o.push(i[c]),d=void 0):i[c]?(typeof d=="number"&&o.push(d),o.push(i[c]),d=0):(c===0||c===i.length-1)&&o.push(0);return o}function Hw(e){return[String(e.value)]}function Fw(e,t,r){const i=[];let o=0,s;for(;o<e.length;){ay.lastIndex=o;const c=ay.exec(e);s=c?c.index:e.length,!o&&!s&&c&&!t&&i.push(""),o!==s&&i.push(e.slice(o,s)),o=c?s+c[0].length:s}return o!==s&&!r&&i.push(""),i.join(" ")}function cy(e,t){if(e.type==="element"){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function zw(e){return!!(e.properties||{}).hidden}function Yw(e){return e.tagName==="td"||e.tagName==="th"}function jw(e){return e.tagName==="dialog"&&!(e.properties||{}).open}const qw={},Vw=[];function Gw(e){return function(t){return function(r,i){const o=e(t||qw);let s=!1,c=r;tg(r,"element",function(d,h){const p=Array.isArray(d.properties.className)?d.properties.className:Vw,E=p.includes("language-math"),b=p.includes("math-display"),T=p.includes("math-inline");let y=b;if(d.tagName==="head"&&(c=d),!E&&!b&&!T)return;let v=h[h.length-1],x=d;if(d.tagName==="code"&&E&&v&&v.type==="element"&&v.tagName==="pre"&&(x=v,v=h[h.length-2],y=!0),!v)return;!s&&o.register&&o.register(),s=!0;const B=Pw(x,{whitespace:"pre"});let I;try{I=o.render(B,{display:y})}catch(M){const w=M;i.message("Could not render math with mathjax",{ancestors:[...h,d],cause:w,place:d.position,ruleId:"mathjax-error",source:"rehype-mathjax"}),I=[{type:"element",tagName:"span",properties:{className:["mathjax-error"],style:"color:#cc0000",title:String(w)},children:[{type:"text",value:B}]}]}const P=v.children.indexOf(x);return v.children.splice(P,1,...I),eg}),s&&(o.styleSheet&&c.children.push(o.styleSheet()),o.unregister&&o.unregister())}}}const $w={},Xw=Gw(function(e){const t=e.tex||$w,r=t.displayMath||[["\\[","\\]"]],i=t.inlineMath||[["\\(","\\)"]];return{render(o,s){const c=(s.display?r:i)[0];return[{type:"text",value:c[0]+o+c[1]}]}}});function Qw(e,t){const r=String(e);let i=r.indexOf(t),o=i,s=0,c=0;for(;i!==-1;)i===o?++s>c&&(c=s):s=1,o=i+t.length,i=r.indexOf(t,o);return c}function Kw(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:s},exit:{mathFlow:o,mathFlowFence:i,mathFlowFenceMeta:r,mathFlowValue:d,mathText:c,mathTextData:d}};function e(h){const p={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[p]}},h)}function t(){this.buffer()}function r(){const h=this.resume(),p=this.stack[this.stack.length-1];p.type,p.meta=h}function i(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function o(h){const p=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),E=this.stack[this.stack.length-1];E.type,this.exit(h),E.value=p;const b=E.data.hChildren[0];b.type,b.tagName,b.children.push({type:"text",value:p}),this.data.mathFlowInside=void 0}function s(h){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},h),this.buffer()}function c(h){const p=this.resume(),E=this.stack[this.stack.length-1];E.type,this.exit(h),E.value=p,E.data.hChildren.push({type:"text",value:p})}function d(h){this.config.enter.data.call(this,h),this.config.exit.data.call(this,h)}}function Ww(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),i.peek=o,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
237
- `,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:i}};function r(s,c,d,h){const p=s.value||"",E=d.createTracker(h),b="$".repeat(Math.max(Qw(p,"$")+1,2)),T=d.enter("mathFlow");let y=E.move(b);if(s.meta){const v=d.enter("mathFlowMeta");y+=E.move(d.safe(s.meta,{after:`
238
- `,before:y,encode:["$"],...E.current()})),v()}return y+=E.move(`
239
- `),p&&(y+=E.move(p+`
240
- `)),y+=E.move(b),T(),y}function i(s,c,d){let h=s.value||"",p=1;for(t||p++;new RegExp("(^|[^$])"+"\\$".repeat(p)+"([^$]|$)").test(h);)p++;const E="$".repeat(p);/[^ \r\n]/.test(h)&&(/^[ \r\n]/.test(h)&&/[ \r\n]$/.test(h)||/^\$|\$$/.test(h))&&(h=" "+h+" ");let b=-1;for(;++b<d.unsafe.length;){const T=d.unsafe[b];if(!T.atBreak)continue;const y=d.compilePattern(T);let v;for(;v=y.exec(h);){let x=v.index;h.codePointAt(x)===10&&h.codePointAt(x-1)===13&&x--,h=h.slice(0,x)+" "+h.slice(v.index+1)}}return E+h+E}function o(){return"$"}}const Zw={tokenize:Jw,concrete:!0,name:"mathFlow"},fy={tokenize:eL,partial:!0};function Jw(e,t,r){const i=this,o=i.events[i.events.length-1],s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0;let c=0;return d;function d(P){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),h(P)}function h(P){return P===36?(e.consume(P),c++,h):c<2?r(P):(e.exit("mathFlowFenceSequence"),yt(e,p,"whitespace")(P))}function p(P){return P===null||Le(P)?b(P):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(P))}function E(P){return P===null||Le(P)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),b(P)):P===36?r(P):(e.consume(P),E)}function b(P){return e.exit("mathFlowFence"),i.interrupt?t(P):e.attempt(fy,T,B)(P)}function T(P){return e.attempt({tokenize:I,partial:!0},B,y)(P)}function y(P){return(s?yt(e,v,"linePrefix",s+1):v)(P)}function v(P){return P===null?B(P):Le(P)?e.attempt(fy,T,B)(P):(e.enter("mathFlowValue"),x(P))}function x(P){return P===null||Le(P)?(e.exit("mathFlowValue"),v(P)):(e.consume(P),x)}function B(P){return e.exit("mathFlow"),t(P)}function I(P,M,w){let D=0;return yt(P,N,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function N(j){return P.enter("mathFlowFence"),P.enter("mathFlowFenceSequence"),z(j)}function z(j){return j===36?(D++,P.consume(j),z):D<c?w(j):(P.exit("mathFlowFenceSequence"),yt(P,V,"whitespace")(j))}function V(j){return j===null||Le(j)?(P.exit("mathFlowFence"),M(j)):w(j)}}}function eL(e,t,r){const i=this;return o;function o(c){return c===null?t(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}function tL(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:i,resolve:nL,previous:rL,name:"mathText"};function i(o,s,c){let d=0,h,p;return E;function E(x){return o.enter("mathText"),o.enter("mathTextSequence"),b(x)}function b(x){return x===36?(o.consume(x),d++,b):d<2&&!r?c(x):(o.exit("mathTextSequence"),T(x))}function T(x){return x===null?c(x):x===36?(p=o.enter("mathTextSequence"),h=0,v(x)):x===32?(o.enter("space"),o.consume(x),o.exit("space"),T):Le(x)?(o.enter("lineEnding"),o.consume(x),o.exit("lineEnding"),T):(o.enter("mathTextData"),y(x))}function y(x){return x===null||x===32||x===36||Le(x)?(o.exit("mathTextData"),T(x)):(o.consume(x),y)}function v(x){return x===36?(o.consume(x),h++,v):h===d?(o.exit("mathTextSequence"),o.exit("mathText"),s(x)):(p.type="mathTextData",y(x))}}}function nL(e){let t=e.length-4,r=3,i,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)o===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(o=i):(i===t||e[i][1].type==="lineEnding")&&(e[o][1].type="mathTextData",i!==o+2&&(e[o][1].end=e[i-1][1].end,e.splice(o+2,i-o-2),t-=i-o-2,i=o+2),o=void 0);return e}function rL(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function aL(e){return{flow:{36:Zw},text:{36:tL(e)}}}const iL={};function uL(e){const t=this,r=e||iL,i=t.data(),o=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);o.push(aL(r)),s.push(Kw()),c.push(Ww(r))}var $0=function(){return($0=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},$o,Xo,X0=A.createContext(void 0),dy="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-MML-AM_CHTML",hy="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.js",py=function(b){var t=b.config,r=b.version,r=r===void 0?3:r,i=b.src,i=i===void 0?r===2?dy:hy:i,o=b.onStartup,s=b.onLoad,h=b.asyncLoad,c=h!==void 0&&h,d=b.onError,h=b.typesettingOptions,p=b.renderMode,p=p===void 0?"post":p,E=b.hideUntilTypeset,b=b.children,y=A.useContext(X0);if((y==null?void 0:y.version)!==void 0&&(y==null?void 0:y.version)!==r)throw Error("Cannot nest MathJaxContexts with different versions. MathJaxContexts should not be nested at all but if they are, they cannot have different versions. Stick with one version of MathJax in your app and avoid using more than one MathJaxContext.");if(r===2&&Xo!==void 0||r===3&&$o!==void 0)throw Error("Cannot use MathJax versions 2 and 3 simultaneously in the same app due to how MathJax is set up in the browser; either you have multiple MathJaxContexts with different versions or you have mounted and unmounted MathJaxContexts with different versions. Please stick with one version of MathJax in your app. File an issue in the project Github page if you need this feature.");var T=A.useRef(y),y=A.useRef((y==null?void 0:y.version)||null);if(y.current===null)y.current=r;else if(y.current!==r)throw Error("Cannot change version of MathJax in a MathJaxContext after it has mounted. Reload the page with a new version when this must happen.");var v=i||(r===2?dy:hy);function x(B,I){t&&(window.MathJax=t);var P=document.createElement("script");P.type="text/javascript",P.src=v,P.async=c,P.addEventListener("load",function(){var M=window.MathJax;o&&o(M),B(M),s&&s()}),P.addEventListener("error",function(M){return I(M)}),document.getElementsByTagName("head")[0].appendChild(P)}return T.current===void 0&&(y={typesettingOptions:h,renderMode:p,hideUntilTypeset:E},r===2?$o===void 0&&(typeof window<"u"?($o=new Promise(x)).catch(function(B){if(!d)throw Error("Failed to download MathJax version 2 from '".concat(v,"' due to: ").concat(JSON.stringify(B)));d(B)}):($o=Promise.reject()).catch(function(B){})):Xo===void 0&&(typeof window<"u"?(Xo=new Promise(x)).catch(function(B){if(!d)throw Error("Failed to download MathJax version 3 from '".concat(v,"' due to: ").concat(B));d(B)}):(Xo=Promise.reject()).catch(function(B){})),T.current=$0($0({},y),r===2?{version:2,promise:$o}:{version:3,promise:Xo})),St.createElement(X0.Provider,{value:T.current},b)},ka=function(){return(ka=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},oL=function(e,t){var r={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(r[o[i]]=e[o[i]]);return r},Qo=function(e){return"Typesetting failed: ".concat(e.message!==void 0?e.message:JSON.stringify(e))},lL=function(e){function t(){var D;x==="every"&&P&&B==="post"&&y.current!==null&&(y.current.style.visibility=(D=(D=b.style)==null?void 0:D.visibility)!=null?D:"visible"),M.current||(x==="first"&&y.current!==null&&(y.current.style.visibility="visible"),o&&o(),M.current=!0),s&&s(),w.current=!1}var i=e.inline,r=i!==void 0&&i,i=e.hideUntilTypeset,o=e.onInitTypeset,s=e.onTypeset,c=e.text,d=e.dynamic,h=e.typesettingOptions,p=e.renderMode,E=e.children,b=oL(e,["inline","hideUntilTypeset","onInitTypeset","onTypeset","text","dynamic","typesettingOptions","renderMode","children"]),T=A.useRef(""),y=A.useRef(null),v=A.useContext(X0),x=i??(v==null?void 0:v.hideUntilTypeset),B=p??(v==null?void 0:v.renderMode),I=h??(v==null?void 0:v.typesettingOptions),P=d!==!1&&(d||!1),M=A.useRef(!1),w=A.useRef(!1);return!w.current&&y.current!==null&&P&&x==="every"&&B==="post"&&(y.current.style.visibility="hidden"),(typeof window<"u"?A.useLayoutEffect:A.useEffect)(function(){if((P||!M.current)&&y.current!==null){if(!v)throw Error("MathJax was not loaded, did you use the MathJax component outside of a MathJaxContext?");if(B==="pre"){if(!(typeof(D=c)=="string"&&0<D.length))throw Error(`Render mode 'pre' requires text prop to be set and non-empty, which was currently "`.concat(c,'"'));if(!h||!h.fn)throw Error("Render mode 'pre' requires 'typesettingOptions' prop with 'fn' property to be set on MathJax element or in the MathJaxContext");if(v.version===2)throw Error("Render mode 'pre' only available with MathJax 3, and version 2 is currently in use")}B!=="post"&&c===T.current||w.current||(w.current=!0,v.version===3?v.promise.then(function(N){var z;B==="pre"?(z=function(V){T.current=c,N.startup.document.clear(),N.startup.document.updateDocument(),y.current!==null&&(y.current.innerHTML=V.outerHTML),t()},h.fn.endsWith("Promise")?N.startup.promise.then(function(){return N[I.fn](c,ka(ka({},(I==null?void 0:I.options)||{}),{display:!r}))}).then(z).catch(function(V){throw t(),Error(Qo(V))}):N.startup.promise.then(function(){var V=N[I.fn](c,ka(ka({},(I==null?void 0:I.options)||{}),{display:!r}));z(V)}).catch(function(V){throw t(),Error(Qo(V))})):N.startup.promise.then(function(){return N.typesetClear([y.current]),N.typesetPromise([y.current])}).then(t).catch(function(V){throw t(),Error(Qo(V))})}).catch(function(N){throw t(),Error(Qo(N))}):v.promise.then(function(N){N.Hub.Queue(["Typeset",N.Hub,y.current]),N.Hub.Queue(t)}).catch(function(N){throw t(),Error(Qo(N))}))}var D}),St.createElement("span",ka({},b,{style:ka(ka({display:r?"inline":"block"},b.style),{visibility:x?"hidden":(e=b.style)==null?void 0:e.visibility}),ref:y}),E)};const sL=({children:e,enableMathjax:t})=>{const r=t?[uL]:void 0,i=t?[Xw]:void 0,o=A.createElement(dg,{skipHtml:!0,remarkPlugins:r,rehypePlugins:i},e);return t?A.createElement(lL,null,o):o},En={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"},cL=He.div(),fL=He.div(({externalScroll:e,theme:t})=>({padding:"16px 32px 0",[t.breakpoints.down("md")]:{padding:"16px 16px 0"},boxSizing:"border-box",background:"white",position:"absolute",bottom:0,top:0,left:0,right:0,zIndex:1,...e&&{padding:"0 32px",[t.breakpoints.down("md")]:{padding:"0 16px"}}})),dL=He.div(({externalScroll:e})=>({width:"100%",height:e?"auto":"100%",minHeight:e?"100%":"auto",display:"flex",flexDirection:"column"})),hL=He(cI)(({externalScroll:e})=>({display:"flex",flexDirection:"column",flex:1,padding:"14px 0",overflow:e?"visible":"auto",gap:"16px",[`> .${En.messageRowAssistant}:first-child`]:{marginTop:"16px"}})),my=He.div({display:"flex",width:"100%",gap:"10px",[`&.${En.messageRowUser}`]:{flexDirection:"row-reverse"},"> *":{minWidth:0},position:"relative"}),gy=He.div(({theme:e})=>({color:e.custom.colors.darkGray2,backgroundColor:e.custom.colors.white,...e.typography.body2,"p:first-of-type":{marginTop:0},"p:last-of-type":{marginBottom:0},"ol,ul":{paddingInlineStart:"16px",margin:"12px 0 12px 4px"},"ol > li, ul > li":{margin:"12px 0","ol,ul":{margin:"12px 0 12px 4px"},li:{margin:"6px 0"}},ul:{paddingInlineStart:0,"> li":{listStyleType:"none",position:"relative","&::before":{content:'"–"',position:"absolute",left:0,color:"#888",marginRight:"8px"},paddingLeft:"16px"}},"ol + ul":{marginLeft:"24px",li:{margin:"6px 0"}},a:{color:e.custom.colors.red,fontWeight:"normal"},borderRadius:"12px",[`.${En.messageRowUser} &`]:{padding:"12px 16px",borderRadius:"8px 0px 8px 8px",backgroundColor:e.custom.colors.lightGray1}})),pL=He.div({alignSelf:"flex-end",alignItems:"end",display:"flex",flexDirection:"column",gap:"12px"}),mL=He.button(({theme:e})=>({border:`1px solid ${e.custom.colors.lightGray2}`,backgroundColor:e.custom.colors.white,padding:"8px 16px",...e.typography.body3,cursor:"pointer",boxSizing:"border-box","&:hover":{color:e.custom.colors.white,backgroundColor:e.custom.colors.silverGrayDark,borderColor:"transparent"},borderRadius:"8px"})),gL=He(_E)(({theme:e})=>({fill:e.custom.colors.red})),EL=He(zR)(({theme:e})=>({fill:e.custom.colors.red})),bL=He.div(({externalScroll:e,theme:t})=>({padding:"12px 0 16px",...e&&{position:"sticky",bottom:0,background:t.custom.colors.white},"button:focus-visible":{outlineOffset:"-1px",borderRadius:"7px"}})),yL=He(fi)(({theme:e})=>({color:e.custom.colors.silverGrayDark,marginTop:"16px",textAlign:"center"})),TL=({conversationStarters:e,askTimTitle:t,entryScreenEnabled:r=!0,entryScreenTitle:i,srLoadingMessages:o,placeholder:s="",className:c,scrollElement:d,ref:h,useMathJax:p=!1,...E})=>{var ae,ie;const b=A.useRef(null),T=A.useRef(null),y=A.useRef(null),v=A.useRef(null),{messages:x,input:B,handleInputChange:I,handleSubmit:P,append:M,isLoading:w,stop:D,error:N,initialMessages:z,status:V}=Rw();kw({scrollElement:d||T.current,contentElement:d?T.current:null,threshold:200});const[j,_]=A.useState(r);A.useEffect(()=>{var oe,S;j||(S=(oe=v.current)==null?void 0:oe.querySelector("input"))==null||S.focus()},[j]),A.useEffect(()=>{x.some(oe=>oe.role==="user"||["submitted","streaming"].includes(V))&&_(!1)},[x,V]);const q=x.length===((z==null?void 0:z.length)||0),$=!q&&!N&&((ae=x[x.length-1])==null?void 0:ae.role)==="user",J=w&&((ie=x[x.length-1])==null?void 0:ie.role)!=="user",Z=()=>{const oe=d||T.current;oe==null||oe.scrollBy({behavior:"instant",top:oe==null?void 0:oe.scrollHeight})},ne=x[x.length-1],F=!!d;return A.createElement(cL,{className:c,ref:b},j?A.createElement(uI,{className:En.entryScreenContainer,title:i,conversationStarters:e,onPromptSubmit:oe=>{oe.trim()!==""&&(_(!1),M({role:"user",content:oe}))}}):A.createElement(fL,{className:En.chatScreenContainer,"data-testid":"ai-chat-screen",externalScroll:F,ref:y},A.createElement(dL,{className:Ho(c,En.root),externalScroll:F,...E},A.createElement(jI,{askTimTitle:t,externalScroll:F,className:Ho(c,En.title)}),A.createElement(hL,{className:En.messagesContainer,externalScroll:F,ref:T},x.map((oe,S)=>{const K=S===x.length-1&&w?`isLoading-${oe.id}`:oe.id;return A.createElement(my,{key:K,"data-chat-role":oe.role,className:Ho(En.messageRow,{[En.messageRowUser]:oe.role==="user",[En.messageRowAssistant]:oe.role==="assistant"})},A.createElement(gy,{className:En.message},A.createElement(h2,{as:oe.role==="user"?"h5":"h6"},oe.role==="user"?"You said: ":"Assistant said: "),A.createElement(sL,{enableMathjax:p},oe.content)))}),q?A.createElement(pL,null,e==null?void 0:e.map(oe=>A.createElement(mL,{className:En.conversationStarter,key:oe.content,onClick:()=>{Z(),M({role:"user",content:oe.content})}},oe.content))):null,$?A.createElement(my,{className:Ho(En.messageRow,En.messageRowAssistant),key:"loading"},A.createElement(gy,null,A.createElement(FR,null))):null,N?A.createElement(FI,{severity:"error",closable:!0},"An unexpected error has occurred."):null),A.createElement(bL,{externalScroll:F,className:En.bottomSection},A.createElement("form",{onSubmit:oe=>{oe.preventDefault(),w&&J?D():(Z(),P(oe))}},A.createElement(f2,{ref:v,fullWidth:!0,size:"chat",className:En.input,placeholder:s,name:"message",sx:{flex:1},value:B,onChange:I,inputProps:{"aria-label":"Ask a question"},endAdornment:w?A.createElement(E0,{"aria-label":"Stop",onClick:D,disabled:!J},A.createElement(EL,null)):A.createElement(E0,{"aria-label":"Send",type:"submit",onClick:oe=>{if(B.trim()===""){oe.preventDefault();return}Z(),P(oe)}},A.createElement(gL,null))})),A.createElement(yL,{variant:"body3"},"AI-generated content may be incorrect.")),A.createElement(dI,{isLoading:w,loadingMessages:o,message:(ne==null?void 0:ne.role)==="assistant"?ne==null?void 0:ne.content:""}))))},SL=({requestOpts:e,initialMessages:t,chatId:r,parseContent:i,...o})=>A.createElement(vw,{requestOpts:e,chatId:r,initialMessages:t,parseContent:i},A.createElement(TL,{...o})),Ey=e=>({minWidth:"auto",padding:0,height:{small:"32px",medium:"40px",large:"48px"}[e],width:{small:"32px",medium:"40px",large:"48px"}[e],"& svg, & .MuiSvgIcon-root":{width:"1em",height:"1em",fontSize:it({small:20,medium:24,large:32}[e])}}),Ko=He(A.forwardRef(function(t,r){return A.createElement($b,{ref:r,type:"button",...t})}))(({size:e=h0.size,responsive:t,theme:r})=>[Ey(e),t&&{[r.breakpoints.down("sm")]:Ey(qb[e])}]);Ko.displayName="ActionButton";const CL=Ko.withComponent(({Component:e,...t})=>A.createElement(Xb,{Component:e,...t}));CL.displayName="ActionButtonLink";const AL=He.div``,xL=He.div(({theme:e})=>({display:"flex",height:300,padding:40,flexDirection:"column",justifyContent:"center",alignItems:"center",alignSelf:"stretch",borderRadius:8,border:`1px solid ${e.custom.colors.lightGray2}`,marginTop:"8px",cursor:"pointer",textAlign:"center"})),_L=He.div({display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",marginTop:"24px"}),vL=He.div(({theme:e})=>({color:e.custom.colors.silverGrayDark,...e.typography.body2})),by=A.forwardRef(({content:e,"aria-label":t},r)=>{const[i,o]=A.useState(0);A.useEffect(()=>o(0),[e]);const s=c=>{(c.key==="Enter"||c.key===" ")&&o(i===0?1:0)};return A.createElement(xL,{ref:r,onClick:()=>o(i===0?1:0),onKeyDown:s,tabIndex:0,"aria-label":t,role:"button"},A.createElement(fi,{variant:"h5"},i===0?`Q: ${e.question}`:`Answer: ${e.answer}`))});by.displayName="Flashcard";const RL=({flashcards:e,wasKeyboardFocus:t})=>{const[r,i]=A.useState(0),o=A.useRef(null),s=A.useRef(null),c=A.useCallback(d=>{var h;e&&(!((h=o.current)!=null&&h.contains(document.activeElement))&&t||(d.key==="ArrowRight"?i(p=>(p+1)%e.length):d.key==="ArrowLeft"&&i(p=>(p-1+e.length)%e.length)))},[e,t]);return A.useEffect(()=>{var d;(d=s.current)==null||d.focus()},[r]),A.useEffect(()=>(window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)),[c]),e!=null&&e.length?A.createElement(AL,{ref:o},A.createElement(by,{ref:s,content:e[r],"aria-label":`Flashcard ${r+1} of ${e.length}`}),A.createElement(_L,null,A.createElement(Ko,{onClick:()=>i(r-1),disabled:r===0,variant:"secondary",color:"secondary",size:"small","aria-label":"Previous card"},A.createElement(UR,{"aria-hidden":!0})),A.createElement(vL,null,r+1," / ",e.length),A.createElement(Ko,{onClick:()=>i(r+1),disabled:r===e.length-1,variant:"secondary",color:"secondary",size:"small","aria-label":"Next card"},A.createElement(HR,{"aria-hidden":!0})))):null},NL="6.6.2",OL=He.div(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",gap:"4px",color:e.custom.colors.white,position:"sticky",top:0,padding:"32px 0 16px 0",zIndex:2,backgroundColor:e.custom.colors.white,borderRadius:0})),kL=He.div(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",color:e.custom.colors.darkGray2,img:{width:"24px",height:"24px"},svg:{fill:e.custom.colors.red,width:"24px",height:"24px",flexShrink:0},overflow:"hidden",p:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}})),IL=He(Ko)(({theme:e})=>({backgroundColor:e.custom.colors.lightGray2,"&&:hover":{backgroundColor:e.custom.colors.red,color:e.custom.colors.white},zIndex:3,flexShrink:0})),DL=He(pk)(({theme:e})=>({padding:"0 0 16px",backgroundColor:e.custom.colors.white,position:"sticky",top:"88px",zIndex:2,overflow:"visible"})),Q0=He(Ok)({padding:"0",height:"calc(100% - 138px)",position:"relative"}),wL=He(SL)(({hasTabs:e,theme:t})=>({".MitAiChat--entryScreenContainer":{padding:e?"114px 0 24px":"168px 32px 24px",[t.breakpoints.down("md")]:{padding:e?"114px 0 24px":"168px 16px 24px"}},".MitAiChat--chatScreenContainer":{padding:e?0:"0 32px",[t.breakpoints.down("md")]:{padding:e?0:"0 16px"}},".MitAiChat--messagesContainer":{paddingTop:e?"8px":"88px"}})),LL=He.div(({theme:e})=>({color:e.custom.colors.darkGray2,backgroundColor:e.custom.colors.white,padding:"12px 0 100px",...e.typography.body2,"p:first-of-type":{marginTop:0},"p:last-of-type":{marginBottom:0},"ol, ul":{paddingInlineStart:"32px",li:{margin:"16px 0"}},ul:{marginInlineStart:"-16px"},a:{color:e.custom.colors.red,fontWeight:"normal"}})),ML=e=>e,BL={credentials:"include"},PL=e=>{const[t,r]=A.useState(null),[i,o]=A.useState(!1);return A.useEffect(()=>{if(!e)return;(async()=>{o(!0);try{const d=await(await fetch(e)).json();if(!d.results)throw new Error("Unexpected response");const[h]=d.results;if(!h)throw new Error("No result found");r({summary:h.summary,flashcards:h.flashcards})}catch(c){console.error("Error fetching content",c)}finally{o(!1)}})()},[e]),{response:t,loading:i}},UL=[{role:"assistant",content:"Let's try to work on this problem together. It would be great to hear how you're thinking about solving it. Can you walk me through the approach you're considering?"}],HL="What do you want to know about this video?",FL=[{content:"What are the most important concepts introduced in the video?"},{content:"What examples are used to illustrate concepts covered in the video?"},{content:"What are the key terms introduced in this video?"}],yy=({payload:e,transformBody:t,fetchOpts:r,scrollElement:i,entryScreenEnabled:o,entryScreenTitle:s,conversationStarters:c,initialMessages:d,hasTabs:h,needsMathJax:p})=>e?A.createElement(wL,{key:e.chatId,chatId:e.chatId,conversationStarters:c,initialMessages:d,scrollElement:i,entryScreenEnabled:o,entryScreenTitle:s,requestOpts:{transformBody:E=>({...e.requestBody,...t==null?void 0:t(E)}),apiUrl:e.apiUrl,fetchOpts:{...BL,...r}},hasTabs:h,useMathJax:p}):null,zL=(e,t)=>[...e].sort(()=>.5-Math.random()).slice(0,t),YL=({transformBody:e=ML,className:t,fetchOpts:r,payload:i,open:o,onClose:s})=>{var N,z,V;const[c,d]=A.useState("chat"),{response:h}=PL((N=i==null?void 0:i.summary)==null?void 0:N.apiUrl),[p,E]=A.useState(!1),b=A.useRef(!1),T=()=>{b.current=!0},y=()=>{b.current||E(!0),b.current=!1},[v,x]=A.useState(null),B=j=>{j&&x(j)};A.useEffect(()=>{var j;(j=v==null?void 0:v.scrollTo)==null||j.call(v,{top:c==="chat"?v.scrollHeight:0})},[c,v]);const I=A.useMemo(()=>{var j;return i?i.chat.conversationStarters||((j=h==null?void 0:h.flashcards)!=null&&j.length&&h.flashcards.length>=3?zL(h.flashcards,3).map(_=>({content:_.question})):FL):[]},[i,h]);if(!i)return A.createElement("div",{"data-testid":"ai-drawer-waiting"});const{title:P,blockType:M,chat:w}=i,D=M==="video";return A.createElement(E9,{"data-smoot-version":NL,className:t,PaperProps:{ref:B,sx:{width:"900px",maxWidth:"100%",boxSizing:"border-box",padding:{xs:"0 16px",md:"0 32px"}}},anchor:"right",open:o,onClose:s,role:"dialog","aria-modal":"true",keepMounted:!0},A.createElement(OL,null,A.createElement(kL,null,P?A.createElement(Md,null):null,A.createElement(fi,{variant:"body1",component:"h1"},P!=null&&P.includes("AskTIM")?A.createElement(A.Fragment,null,"Ask",A.createElement("strong",null,"TIM"),P.replace("AskTIM","")):P)),A.createElement(IL,{variant:"text",size:"medium",onClick:s,"aria-label":"Close"},A.createElement(xE,null))),M==="problem"?A.createElement(yy,{payload:w,transformBody:e,fetchOpts:r,scrollElement:v,entryScreenEnabled:(w==null?void 0:w.entryScreenEnabled)??!1,entryScreenTitle:w.entryScreenTitle,initialMessages:w.initialMessages||UL,hasTabs:D,needsMathJax:!0}):null,M==="video"?A.createElement(nk,{value:c},A.createElement(DL,{styleVariant:"chat",onChange:(j,_)=>d(_)},A.createElement(p0,{value:"chat",label:"Chat"}),(z=h==null?void 0:h.flashcards)!=null&&z.length?A.createElement(p0,{value:"flashcards",label:"Flashcards",onMouseDown:T,onFocus:y}):null,A.createElement(p0,{value:"summary",label:"Summary"})),A.createElement(Q0,{value:"chat",keepMounted:!0},A.createElement(yy,{payload:w,transformBody:e,fetchOpts:r,scrollElement:v,entryScreenEnabled:(w==null?void 0:w.entryScreenEnabled)??!0,entryScreenTitle:w.entryScreenTitle??HL,conversationStarters:I,initialMessages:w.initialMessages,hasTabs:D,needsMathJax:!1})),(V=h==null?void 0:h.flashcards)!=null&&V.length?A.createElement(Q0,{value:"flashcards"},A.createElement(RL,{flashcards:h==null?void 0:h.flashcards,wasKeyboardFocus:p})):null,A.createElement(Q0,{value:"summary"},A.createElement(fi,{variant:"h4",component:"h4"}),A.createElement(LL,null,A.createElement(dg,{rehypePlugins:[PR]},(h==null?void 0:h.summary)??"")))):null)},jL=e=>{const t=JSON.stringify(e);let r=5381;for(let i=0;i<t.length;i++)r=(r<<5)+r+t.charCodeAt(i),r=r&r;return Math.abs(r).toString(36)},qL=({className:e,messageOrigin:t,transformBody:r,fetchOpts:i,target:o})=>{const[s,c]=A.useState({});return A.useEffect(()=>{const d=h=>{if(h.origin===t&&["smoot-design::ai-drawer-open","smoot-design::tutor-drawer-open"].includes(h.data.type)){const p=jL(h.data.payload);h.data.payload.chat.chatId=h.data.payload.chat.chatId||p,c(E=>({...E,[p]:{key:p,open:!1,payload:h.data.payload}})),requestAnimationFrame(()=>{c(E=>({...E,[p]:{...E[p],open:!0}}))})}};return window.addEventListener("message",d),()=>{window.removeEventListener("message",d)}},[t,o]),Object.values(s).length===0?A.createElement("div",{"data-testid":"ai-drawer-manager-waiting"}):A.createElement(py,null,Object.values(s).map(({key:d,open:h,payload:p})=>A.createElement(YL,{key:d,className:e,transformBody:r,fetchOpts:i,payload:p,open:h,onClose:()=>{c(E=>({...E,[d]:{...E[d],open:!1}}))}})))},VL={defaultProps:{disableRipple:!0},styleOverrides:{root:{":focus-visible":{outline:"revert"}}}},at={mitRed:"#750014",brightRed:"#FF1423",black:"#000000",white:"#FFFFFF",darkGray2:"#212326",darkGray1:"#40464C",silverGrayDark:"#626A73",silverGray:"#8B959E",silverGrayLight:"#B8C2CC",lightGray2:"#DDE1E6",lightGray1:"#F3F4F8",navGray:"#303337",darkPink:"#750062",pink:"#FF14F0",lightPink:"#FFB3FF",darkPurple:"#3E006B",purple:"#93F",lightPurple:"#BFB3FF",darkBlue:"#002896",blue:"#1966FF",lightBlue:"#99EBFF",darkGreen:"#004D1A",green:"#00AD00",lightGreen:"#AF3",darkRed:"#83192A",red:"#A31F34",lightRed:"#D02E44",orange:"#FAB005",yellow:"#FFEB00"},GL={defaultProps:{size:"medium",color:"default",variant:"outlined",deleteIcon:A.createElement(xE,{"aria-hidden":"true"})},styleOverrides:{root:{borderRadius:"100vh",borderWidth:"1px"},deleteIcon:{"&:hover":{color:"inherit"},"&.MuiChip-deleteIconLarge":{width:"16px",height:"16px"},"&.MuiChip-deleteIconMedium":{width:"14px",height:"14px"},margin:"0 -2px 0 8px",color:"inherit"},icon:{margin:"0 8px 0 -2px",color:"inherit","&.MuiChip-iconLarge":{width:"16px",height:"16px"},"&.MuiChip-iconMedium":{width:"14px",height:"14px"}}},variants:[{props:{size:"medium"},style:({theme:e})=>({...e.typography.body3,boxSizing:"border-box",height:"24px",paddingRight:"12px",paddingLeft:"12px",".MuiChip-label":{paddingLeft:"0px",paddingRight:"0px"}})},{props:{size:"large"},style:({theme:e})=>({...e.typography.body2,height:"32px",paddingLeft:"16px",paddingRight:"16px",".MuiChip-label":{paddingLeft:"0px",paddingRight:"0px"}})},{props:{variant:"outlined"},style:{borderColor:at.silverGrayLight,color:at.darkGray1,"&.Mui-focusVisible":{backgroundColor:"transparent"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:at.darkGray1,borderColor:at.silverGrayDark,backgroundColor:"transparent"}}},{props:{variant:"outlinedWhite"},style:{backgroundColor:"white",border:"1px solid",borderColor:at.silverGrayLight,color:at.darkGray1,"&.Mui-focusVisible":{backgroundColor:"white"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:at.darkGray1,borderColor:at.silverGrayDark,backgroundColor:"white"}}},{props:{variant:"gray"},style:{backgroundColor:at.lightGray2,border:"none",color:at.darkGray2,"&.Mui-focusVisible":{backgroundColor:at.lightGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:at.darkGray1,backgroundColor:at.silverGrayLight}}},{props:{variant:"dark"},style:{backgroundColor:at.silverGrayDark,border:"none",color:at.white,"&.Mui-focusVisible":{backgroundColor:at.silverGrayDark},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:at.darkGray1}}},{props:{variant:"darker"},style:{backgroundColor:at.darkGray2,border:`1px solid ${at.darkGray1}`,color:at.white,"&.Mui-focusVisible":{backgroundColor:at.darkGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:at.black,border:`1px solid ${at.silverGray}`}}},{props:{variant:"filled"},style:{backgroundColor:at.mitRed,border:"none",color:at.white,"&.Mui-focusVisible":{backgroundColor:at.mitRed},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:at.red}}}]},$L={colors:at,dimensions:{headerHeight:"72px",headerHeightSm:"60px"}},XL={values:{xs:0,sm:600,md:900,lg:1320,xl:1536}},QL={custom:$L,palette:{primary:{main:at.mitRed,light:at.lightRed,active:at.red,contrastText:at.white},secondary:{light:at.darkGray2,active:at.silverGrayDark,main:at.black,contrastText:at.white}},shape:{borderRadius:8},spacing:8,typography:zb,breakpoints:XL,components:{MuiButtonBase:VL,MuiTypography:sk,MuiMenu:{styleOverrides:{paper:{borderRadius:"4px"}}},MuiAutocomplete:{styleOverrides:{paper:{borderRadius:"4px"},popupIndicator:{paddingRight:0,marginRight:0}}},MuiChip:GL}},Ty=e=>zs(Un(QL,e)),KL=Ty(),WL=({children:e,theme:t=KL})=>A.createElement(lk,{theme:t},e),ZL=e=>{const t=document.createElement("div");document.body.appendChild(t),t.id="smoot-chat-drawer-root";const r=_m({key:"css",prepend:!0,container:t}),i=Ty({components:{MuiPopover:{defaultProps:{container:t}},MuiPopper:{defaultProps:{container:t}},MuiModal:{defaultProps:{container:t}}}});fC.createRoot(t).render(A.createElement(KC,{value:r},A.createElement(WL,{theme:i},A.createElement(py,null,A.createElement(qL,{...e})))));const o=document.createElement("style");o.textContent=`
234
+ */var P2;function HD(){if(P2)return R0;P2=1;var e=Qo();function t(E,T){return E===T&&(E!==0||1/E===1/T)||E!==E&&T!==T}var r=typeof Object.is=="function"?Object.is:t,i=e.useState,l=e.useEffect,s=e.useLayoutEffect,c=e.useDebugValue;function d(E,T){var y=T(),v=i({inst:{value:y,getSnapshot:T}}),x=v[0].inst,B=v[1];return s(function(){x.value=y,x.getSnapshot=T,h(x)&&B({inst:x})},[E,y,T]),l(function(){return h(x)&&B({inst:x}),E(function(){h(x)&&B({inst:x})})},[E]),c(y),y}function h(E){var T=E.getSnapshot;E=E.value;try{var y=T();return!r(E,y)}catch{return!0}}function p(E,T){return T()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:d;return R0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:b,R0}var U2;function FD(){return U2||(U2=1,v0.exports=HD()),v0.exports}var zD=FD();const H2=0,F2=1,z2=2,Y2=3;var j2=Object.prototype.hasOwnProperty;function N0(e,t){var r,i;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((i=e.length)===t.length)for(;i--&&N0(e[i],t[i]););return i===-1}if(!r||typeof e=="object"){i=0;for(r in e)if(j2.call(e,r)&&++i&&!j2.call(t,r)||!(r in t)||!N0(e[r],t[r]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}const Jr=new WeakMap,Na=()=>{},In=Na(),O0=Object,ot=e=>e===In,jr=e=>typeof e=="function",Oa=(e,t)=>({...e,...t}),q2=e=>jr(e.then),k0={},Zs={},I0="undefined",ql=typeof window!=I0,D0=typeof document!=I0,YD=ql&&"Deno"in window,jD=()=>ql&&typeof window.requestAnimationFrame!=I0,V2=(e,t)=>{const r=Jr.get(e);return[()=>!ot(t)&&e.get(t)||k0,i=>{if(!ot(t)){const l=e.get(t);t in Zs||(Zs[t]=l),r[5](t,Oa(l,i),l||k0)}},r[6],()=>!ot(t)&&t in Zs?Zs[t]:!ot(t)&&e.get(t)||k0]};let w0=!0;const qD=()=>w0,[L0,M0]=ql&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Na,Na],VD=()=>{const e=D0&&document.visibilityState;return ot(e)||e!=="hidden"},GD=e=>(D0&&document.addEventListener("visibilitychange",e),L0("focus",e),()=>{D0&&document.removeEventListener("visibilitychange",e),M0("focus",e)}),$D=e=>{const t=()=>{w0=!0,e()},r=()=>{w0=!1};return L0("online",t),L0("offline",r),()=>{M0("online",t),M0("offline",r)}},XD={isOnline:qD,isVisible:VD},QD={initFocus:GD,initReconnect:$D},G2=!kt.useId,Vl=!ql||YD,KD=e=>jD()?window.requestAnimationFrame(e):setTimeout(e,1),B0=Vl?A.useEffect:A.useLayoutEffect,P0=typeof navigator<"u"&&navigator.connection,$2=!Vl&&P0&&(["slow-2g","2g"].includes(P0.effectiveType)||P0.saveData),Js=new WeakMap,U0=(e,t)=>O0.prototype.toString.call(e)===`[object ${t}]`;let WD=0;const H0=e=>{const t=typeof e,r=U0(e,"Date"),i=U0(e,"RegExp"),l=U0(e,"Object");let s,c;if(O0(e)===e&&!r&&!i){if(s=Js.get(e),s)return s;if(s=++WD+"~",Js.set(e,s),Array.isArray(e)){for(s="@",c=0;c<e.length;c++)s+=H0(e[c])+",";Js.set(e,s)}if(l){s="#";const d=O0.keys(e).sort();for(;!ot(c=d.pop());)ot(e[c])||(s+=c+":"+H0(e[c])+",");Js.set(e,s)}}else s=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return s},F0=e=>{if(jr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?H0(e):"",[e,t]};let ZD=0;const z0=()=>++ZD;async function X2(...e){const[t,r,i,l]=e,s=Oa({populateCache:!0,throwOnError:!0},typeof l=="boolean"?{revalidate:l}:l||{});let c=s.populateCache;const d=s.rollbackOnError;let h=s.optimisticData;const p=T=>typeof d=="function"?d(T):d!==!1,b=s.throwOnError;if(jr(r)){const T=r,y=[],v=t.keys();for(const x of v)!/^\$(inf|sub)\$/.test(x)&&T(t.get(x)._k)&&y.push(x);return Promise.all(y.map(E))}return E(r);async function E(T){const[y]=F0(T);if(!y)return;const[v,x]=V2(t,y),[B,I,P,M]=Jr.get(t),w=()=>{const J=B[y];return(jr(s.revalidate)?s.revalidate(v().data,T):s.revalidate!==!1)&&(delete P[y],delete M[y],J&&J[0])?J[0](z2).then(()=>v().data):v().data};if(e.length<3)return w();let D=i,N;const z=z0();I[y]=[z,0];const V=!ot(h),j=v(),_=j.data,q=j._c,$=ot(q)?_:q;if(V&&(h=jr(h)?h($,_):h,x({data:h,_c:$})),jr(D))try{D=D($)}catch(J){N=J}if(D&&q2(D))if(D=await D.catch(J=>{N=J}),z!==I[y][0]){if(N)throw N;return D}else N&&V&&p(N)&&(c=!0,x({data:$,_c:In}));if(c&&!N)if(jr(c)){const J=c(D,$);x({data:J,error:In,_c:In})}else x({data:D,error:In,_c:In});if(I[y][1]=z0(),Promise.resolve(w()).then(()=>{x({_c:In})}),N){if(b)throw N;return}return D}}const Q2=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},JD=(e,t)=>{if(!Jr.has(e)){const r=Oa(QD,t),i=Object.create(null),l=X2.bind(In,e);let s=Na;const c=Object.create(null),d=(b,E)=>{const T=c[b]||[];return c[b]=T,T.push(E),()=>T.splice(T.indexOf(E),1)},h=(b,E,T)=>{e.set(b,E);const y=c[b];if(y)for(const v of y)v(E,T)},p=()=>{if(!Jr.has(e)&&(Jr.set(e,[i,Object.create(null),Object.create(null),Object.create(null),l,h,d]),!Vl)){const b=r.initFocus(setTimeout.bind(In,Q2.bind(In,i,H2))),E=r.initReconnect(setTimeout.bind(In,Q2.bind(In,i,F2)));s=()=>{b&&b(),E&&E(),Jr.delete(e)}}};return p(),[e,l,p,s]}return[e,Jr.get(e)[4]]},ew=(e,t,r,i,l)=>{const s=r.errorRetryCount,c=l.retryCount,d=~~((Math.random()+.5)*(1<<(c<8?c:8)))*r.errorRetryInterval;!ot(s)&&c>s||setTimeout(i,d,l)},tw=N0,[K2,nw]=JD(new Map),rw=Oa({onLoadingSlow:Na,onSuccess:Na,onError:Na,onErrorRetry:ew,onDiscarded:Na,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:$2?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:$2?5e3:3e3,compare:tw,isPaused:()=>!1,cache:K2,mutate:nw,fallback:{}},XD),aw=(e,t)=>{const r=Oa(e,t);if(t){const{use:i,fallback:l}=e,{use:s,fallback:c}=t;i&&s&&(r.use=i.concat(s)),l&&c&&(r.fallback=Oa(l,c))}return r},iw=A.createContext({}),uw="$inf$",W2=ql&&window.__SWR_DEVTOOLS_USE__,lw=W2?window.__SWR_DEVTOOLS_USE__:[],ow=()=>{W2&&(window.__SWR_DEVTOOLS_REACT__=kt)},sw=e=>jr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],cw=()=>Oa(rw,A.useContext(iw)),fw=e=>(t,r,i)=>e(t,r&&((...s)=>{const[c]=F0(t),[,,,d]=Jr.get(K2);if(c.startsWith(uw))return r(...s);const h=d[c];return ot(h)?r(...s):(delete d[c],h)}),i),dw=lw.concat(fw),hw=e=>function(...r){const i=cw(),[l,s,c]=sw(r),d=aw(i,c);let h=e;const{use:p}=d,b=(p||[]).concat(dw);for(let E=b.length;E--;)h=b[E](h);return h(l,s||d.fetcher||null,d)},pw=(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())}};ow();const Y0=kt.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),j0={dedupe:!0},ec=hw((e,t,r)=>{const{cache:i,compare:l,suspense:s,fallbackData:c,revalidateOnMount:d,revalidateIfStale:h,refreshInterval:p,refreshWhenHidden:b,refreshWhenOffline:E,keepPreviousData:T}=r,[y,v,x,B]=Jr.get(i),[I,P]=F0(e),M=A.useRef(!1),w=A.useRef(!1),D=A.useRef(I),N=A.useRef(t),z=A.useRef(r),V=()=>z.current,j=()=>V().isVisible()&&V().isOnline(),[_,q,$,J]=V2(i,I),Z=A.useRef({}).current,ne=ot(c)?ot(r.fallback)?In:r.fallback[I]:c,F=(Oe,Ce)=>{for(const we in Z){const ke=we;if(ke==="data"){if(!l(Oe[ke],Ce[ke])&&(!ot(Oe[ke])||!l(Re,Ce[ke])))return!1}else if(Ce[ke]!==Oe[ke])return!1}return!0},ae=A.useMemo(()=>{const Oe=!I||!t?!1:ot(d)?V().isPaused()||s?!1:h!==!1:d,Ce=$e=>{const ct=Oa($e);return delete ct._k,Oe?{isValidating:!0,isLoading:!0,...ct}:ct},we=_(),ke=J(),Me=Ce(we),Fe=we===ke?Me:Ce(ke);let qe=Me;return[()=>{const $e=Ce(_());return F($e,qe)?(qe.data=$e.data,qe.isLoading=$e.isLoading,qe.isValidating=$e.isValidating,qe.error=$e.error,qe):(qe=$e,$e)},()=>Fe]},[i,I]),ie=zD.useSyncExternalStore(A.useCallback(Oe=>$(I,(Ce,we)=>{F(we,Ce)||Oe()}),[i,I]),ae[0],ae[1]),le=!M.current,S=y[I]&&y[I].length>0,K=ie.data,de=ot(K)?ne&&q2(ne)?Y0(ne):ne:K,O=ie.error,be=A.useRef(de),Re=T?ot(K)?ot(be.current)?de:be.current:K:de,Te=S&&!ot(O)?!1:le&&!ot(d)?d:V().isPaused()?!1:s?ot(de)?!1:h:ot(de)||h,Xe=!!(I&&t&&le&&Te),Be=ot(ie.isValidating)?Xe:ie.isValidating,ut=ot(ie.isLoading)?Xe:ie.isLoading,St=A.useCallback(async Oe=>{const Ce=N.current;if(!I||!Ce||w.current||V().isPaused())return!1;let we,ke,Me=!0;const Fe=Oe||{},qe=!x[I]||!Fe.dedupe,$e=()=>G2?!w.current&&I===D.current&&M.current:I===D.current,ct={isValidating:!1,isLoading:!1},Ie=()=>{q(ct)},un=()=>{const Bt=x[I];Bt&&Bt[1]===ke&&delete x[I]},Ft={isValidating:!0};ot(_().data)&&(Ft.isLoading=!0);try{if(qe&&(q(Ft),r.loadingTimeout&&ot(_().data)&&setTimeout(()=>{Me&&$e()&&V().onLoadingSlow(I,r)},r.loadingTimeout),x[I]=[Ce(P),z0()]),[we,ke]=x[I],we=await we,qe&&setTimeout(un,r.dedupingInterval),!x[I]||x[I][1]!==ke)return qe&&$e()&&V().onDiscarded(I),!1;ct.error=In;const Bt=v[I];if(!ot(Bt)&&(ke<=Bt[0]||ke<=Bt[1]||Bt[1]===0))return Ie(),qe&&$e()&&V().onDiscarded(I),!1;const re=_().data;ct.data=l(re,we)?re:we,qe&&$e()&&V().onSuccess(we,I,r)}catch(Bt){un();const re=V(),{shouldRetryOnError:he}=re;re.isPaused()||(ct.error=Bt,qe&&$e()&&(re.onError(Bt,I,re),(he===!0||jr(he)&&he(Bt))&&(!V().revalidateOnFocus||!V().revalidateOnReconnect||j())&&re.onErrorRetry(Bt,I,re,Se=>{const Ae=y[I];Ae&&Ae[0]&&Ae[0](Y2,Se)},{retryCount:(Fe.retryCount||0)+1,dedupe:!0})))}return Me=!1,Ie(),!0},[I,i]),gt=A.useCallback((...Oe)=>X2(i,D.current,...Oe),[]);if(B0(()=>{N.current=t,z.current=r,ot(K)||(be.current=K)}),B0(()=>{if(!I)return;const Oe=St.bind(In,j0);let Ce=0;V().revalidateOnFocus&&(Ce=Date.now()+V().focusThrottleInterval);const ke=pw(I,y,(Me,Fe={})=>{if(Me==H2){const qe=Date.now();V().revalidateOnFocus&&qe>Ce&&j()&&(Ce=qe+V().focusThrottleInterval,Oe())}else if(Me==F2)V().revalidateOnReconnect&&j()&&Oe();else{if(Me==z2)return St();if(Me==Y2)return St(Fe)}});return w.current=!1,D.current=I,M.current=!0,q({_k:P}),Te&&(ot(de)||Vl?Oe():KD(Oe)),()=>{w.current=!0,ke()}},[I]),B0(()=>{let Oe;function Ce(){const ke=jr(p)?p(_().data):p;ke&&Oe!==-1&&(Oe=setTimeout(we,ke))}function we(){!_().error&&(b||V().isVisible())&&(E||V().isOnline())?St(j0).then(Ce):Ce()}return Ce(),()=>{Oe&&(clearTimeout(Oe),Oe=-1)}},[p,b,E,I]),A.useDebugValue(Re),s&&ot(de)&&I){if(!G2&&Vl)throw new Error("Fallback data is required when using Suspense in SSR.");N.current=t,z.current=r,w.current=!1;const Oe=B[I];if(!ot(Oe)){const Ce=gt(Oe);Y0(Ce)}if(ot(O)){const Ce=St(j0);ot(Re)||(Ce.status="fulfilled",Ce.value=!0),Y0(Ce)}else throw O}return{mutate:gt,get data(){return Z.data=!0,Re},get error(){return Z.error=!0,O},get isValidating(){return Z.isValidating=!0,Be},get isLoading(){return Z.isLoading=!0,ut}}});var q0,Z2;function mw(){if(Z2)return q0;Z2=1;function e(t,r){if(typeof t!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof t}\`.`);let i,l=0;return function(...c){clearTimeout(i);const d=Date.now(),h=d-l,p=r-h;p<=0?(l=d,t.apply(this,c)):i=setTimeout(()=>{l=Date.now(),t.apply(this,c)},p)}}return q0=e,q0}var gw=mw();const bw=lr(gw);function J2(e,t){return t!=null?bw(e,t):e}function Ew(e){const[t,r]=A.useState(e);return A.useEffect(()=>{_0(e,t)||r(e)},[e,t]),t}function yw({api:e="/api/chat",id:t,initialMessages:r,initialInput:i="",sendExtraMessageFields:l,onToolCall:s,experimental_prepareRequestBody:c,maxSteps:d=1,streamProtocol:h="data",onResponse:p,onFinish:b,onError:E,credentials:T,headers:y,body:v,generateId:x=T0,fetch:B,keepLastMessageOnError:I=!0,experimental_throttle:P}={}){const[M]=A.useState(x),w=t??M,D=typeof e=="string"?[e,w]:w,N=Ew(r??[]),z=A.useMemo(()=>x0(N),[N]),{data:V,mutate:j}=ec([D,"messages"],null,{fallbackData:z}),_=A.useRef(V||[]);A.useEffect(()=>{_.current=V||[]},[V]);const{data:q,mutate:$}=ec([D,"streamData"],null),J=A.useRef(q);A.useEffect(()=>{J.current=q},[q]);const{data:Z="ready",mutate:ne}=ec([D,"status"],null),{data:F=void 0,mutate:ae}=ec([D,"error"],null),ie=A.useRef(null),le=A.useRef({credentials:T,headers:y,body:v});A.useEffect(()=>{le.current={credentials:T,headers:y,body:v}},[T,y,v]);const S=A.useCallback(async(Ne,Oe="generate")=>{var Ce,we;ne("submitted"),ae(void 0);const ke=x0(Ne.messages),Me=ke.length,Fe=A0((Ce=ke[ke.length-1])==null?void 0:Ce.toolInvocations);try{const $e=new AbortController;ie.current=$e;const ct=J2(j,P),Ie=J2($,P),un=_.current;ct(ke,!1);const Ft=l?ke:ke.map(({role:re,content:he,experimental_attachments:Se,data:Ae,annotations:Ue,toolInvocations:Ve,parts:Tt})=>({role:re,content:he,...Se!==void 0&&{experimental_attachments:Se},...Ae!==void 0&&{data:Ae},...Ue!==void 0&&{annotations:Ue},...Ve!==void 0&&{toolInvocations:Ve},...Tt!==void 0&&{parts:Tt}})),Bt=J.current;await BD({api:e,body:(we=c==null?void 0:c({id:w,messages:ke,requestData:Ne.data,requestBody:Ne.body}))!=null?we:{id:w,messages:Ft,data:Ne.data,...le.current.body,...Ne.body},streamProtocol:h,credentials:le.current.credentials,headers:{...le.current.headers,...Ne.headers},abortController:()=>ie.current,restoreMessagesOnFailure(){I||ct(un,!1)},onResponse:p,onUpdate({message:re,data:he,replaceLastMessage:Se}){ne("streaming"),ct([...Se?ke.slice(0,ke.length-1):ke,re],!1),he!=null&&he.length&&Ie([...Bt??[],...he],!1)},onToolCall:s,onFinish:b,generateId:x,fetch:B,lastMessage:ke[ke.length-1],requestType:Oe}),ie.current=null,ne("ready")}catch($e){if($e.name==="AbortError")return ie.current=null,ne("ready"),null;E&&$e instanceof Error&&E($e),ae($e),ne("error")}const qe=_.current;PD({originalMaxToolInvocationStep:Fe,originalMessageCount:Me,maxSteps:d,messages:qe})&&await S({messages:qe})},[j,ne,e,le,p,b,E,ae,$,J,h,l,c,s,d,_,ie,x,B,I,P,w]),K=A.useCallback(async(Ne,{data:Oe,headers:Ce,body:we,experimental_attachments:ke=Ne.experimental_attachments}={})=>{var Me,Fe;const qe=await M2(ke),$e=_.current.concat({...Ne,id:(Me=Ne.id)!=null?Me:x(),createdAt:(Fe=Ne.createdAt)!=null?Fe:new Date,experimental_attachments:qe.length>0?qe:void 0,parts:L2(Ne)});return S({messages:$e,headers:Ce,body:we,data:Oe})},[S,x]),de=A.useCallback(async({data:Ne,headers:Oe,body:Ce}={})=>{const we=_.current;if(we.length===0)return null;const ke=we[we.length-1];return S({messages:ke.role==="assistant"?we.slice(0,-1):we,headers:Oe,body:Ce,data:Ne})},[S]),O=A.useCallback(()=>{ie.current&&(ie.current.abort(),ie.current=null)},[]),be=A.useCallback(async()=>{const Ne=_.current;S({messages:Ne},"resume")},[S]),Re=A.useCallback(Ne=>{typeof Ne=="function"&&(Ne=Ne(_.current));const Oe=x0(Ne);j(Oe,!1),_.current=Oe},[j]),Te=A.useCallback(Ne=>{typeof Ne=="function"&&(Ne=Ne(J.current)),$(Ne,!1),J.current=Ne},[$]),[Xe,Be]=A.useState(i),ut=A.useCallback(async(Ne,Oe={},Ce)=>{var we;if((we=Ne==null?void 0:Ne.preventDefault)==null||we.call(Ne),!Xe&&!Oe.allowEmptySubmit)return;Ce&&(le.current={...le.current,...Ce});const ke=await M2(Oe.experimental_attachments),Fe={messages:_.current.concat({id:x(),createdAt:new Date,role:"user",content:Xe,experimental_attachments:ke.length>0?ke:void 0,parts:[{type:"text",text:Xe}]}),headers:Oe.headers,body:Oe.body,data:Oe.data};S(Fe),Be("")},[Xe,x,S]),St=Ne=>{Be(Ne.target.value)},gt=A.useCallback(({toolCallId:Ne,result:Oe})=>{const Ce=_.current;if(UD({messages:Ce,toolCallId:Ne,toolResult:Oe}),j([...Ce.slice(0,Ce.length-1),{...Ce[Ce.length-1]}],!1),Z==="submitted"||Z==="streaming")return;const we=Ce[Ce.length-1];B2(we)&&S({messages:Ce})},[j,Z,S]);return{messages:V??[],id:w,setMessages:Re,data:q,setData:Te,error:F,append:K,reload:de,stop:O,experimental_resume:be,input:Xe,setInput:Be,handleInputChange:St,handleSubmit:ut,isLoading:Z==="submitted"||Z==="streaming",status:Z,addToolResult:gt}}const Tw=3,Sw=[400,401,403,404,405,409,422],Cw=1e3,ey=((e,{retryDelay:t,retryOn:r})=>(i,l)=>new Promise((s,c)=>{const d=p=>{const b=typeof Request<"u"&&i instanceof Request?i.clone():i;e(b,l).then(E=>{try{Promise.resolve(r(p,null,E)).then(T=>{T?h(p,null,E):s(E)}).catch(c)}catch(T){c(T)}}).catch(E=>{try{Promise.resolve(r(p,E,null)).then(T=>{T?h(p,E,null):c(E)}).catch(T=>{c(T)})}catch(T){c(T)}})},h=(p,b,E)=>{const T=t(p,b,E);setTimeout(()=>{d(++p)},T)};d(0)}))((...e)=>window.fetch(...e),{retryDelay:(e,t,r)=>Math.min(Cw*2**e,3e4),retryOn:(e,t,r)=>e>=Tw?!1:r?r.status<400?!1:!Sw.includes(r.status):!0}),Aw=e=>e,xw=e=>async(t,r)=>{var c;if(typeof(r==null?void 0:r.body)!="string")return console.error("Unexpected body type."),ey(t,r);const i=JSON.parse(r==null?void 0:r.body).messages,l=e.transformBody??Aw,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 ey(t,s)},ty=A.createContext(null),_w=({initialMessages:e,requestOpts:t,chatId:r,parseContent:i,children:l})=>{const s=A.useMemo(()=>(e==null?void 0:e.map((b,E)=>({...b,id:`initial-${E}`})))??[],[e]),c=A.useMemo(()=>xw(t),[t]),{messages:d,...h}=yw({api:t.apiUrl,streamProtocol:"text",fetch:c,onFinish:b=>{var E;t.onFinish&&(b.role==="assistant"||b.role==="user"?(E=t.onFinish)==null||E.call(t,b):console.info("Unexpected message role.",b))},initialMessages:s,id:r}),p=A.useMemo(()=>{const b=s==null?void 0:s.map(E=>E.id);return d.map(E=>{if(E.role==="assistant"&&!(b!=null&&b.includes(E.id))){const T=i?i(E.content):E.content;return{...E,content:T}}return E})},[i,d,s]);return A.createElement(ty.Provider,{key:r,value:{initialMessages:s,messages:p,...h}},l)},vw=()=>{const e=A.useContext(ty);if(!e)throw new Error("useAiChatContext must be used within an AiChatProvider");return e},Rw=e=>e.scrollHeight-e.clientHeight-e.scrollTop,Nw=e=>{e.scrollTop=e.scrollHeight},Ow=({scrollElement:e,contentElement:t,threshold:r=2})=>{A.useEffect(()=>{const i=()=>{e&&Rw(e)<r&&Nw(e)};i();const l=new ResizeObserver(i);return t&&l.observe(t),()=>{l.disconnect()}},[e,t,r])},ny=function(e,t,r){const i=ad(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(i(e.children[t],t,e))return e.children[t]},hi=function(e){if(e==null)return Dw;if(typeof e=="string")return Iw(e);if(typeof e=="object")return kw(e);if(typeof e=="function")return V0(e);throw new Error("Expected function, string, or array as `test`")};function kw(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=hi(e[r]);return V0(i);function i(...l){let s=-1;for(;++s<t.length;)if(t[s].apply(this,l))return!0;return!1}}function Iw(e){return V0(t);function t(r){return r.tagName===e}}function V0(e){return t;function t(r,i,l){return!!(ww(r)&&e.call(this,r,typeof i=="number"?i:void 0,l||void 0))}}function Dw(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function ww(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const ry=/\n/g,ay=/[\t ]+/g,G0=hi("br"),iy=hi(zw),Lw=hi("p"),uy=hi("tr"),Mw=hi(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Fw,Yw]),ly=hi(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Bw(e,t){const r=t||{},i="children"in e?e.children:[],l=ly(e),s=cy(e,{whitespace:r.whitespace||"normal"}),c=[];(e.type==="text"||e.type==="comment")&&c.push(...sy(e,{breakBefore:!0,breakAfter:!0}));let d=-1;for(;++d<i.length;)c.push(...oy(i[d],e,{whitespace:s,breakBefore:d?void 0:l,breakAfter:d<i.length-1?G0(i[d+1]):l}));const h=[];let p;for(d=-1;++d<c.length;){const b=c[d];typeof b=="number"?p!==void 0&&b>p&&(p=b):b&&(p!==void 0&&p>-1&&h.push(`
235
+ `.repeat(p)||" "),p=-1,h.push(b))}return h.join("")}function oy(e,t,r){return e.type==="element"?Pw(e,t,r):e.type==="text"?r.whitespace==="normal"?sy(e,r):Uw(e):[]}function Pw(e,t,r){const i=cy(e,r),l=e.children||[];let s=-1,c=[];if(Mw(e))return c;let d,h;for(G0(e)||uy(e)&&ny(t,e,uy)?h=`
236
+ `:Lw(e)?(d=2,h=2):ly(e)&&(d=1,h=1);++s<l.length;)c=c.concat(oy(l[s],e,{whitespace:i,breakBefore:s?void 0:d,breakAfter:s<l.length-1?G0(l[s+1]):h}));return iy(e)&&ny(t,e,iy)&&c.push(" "),d&&c.unshift(d),h&&c.push(h),c}function sy(e,t){const r=String(e.value),i=[],l=[];let s=0;for(;s<=r.length;){ry.lastIndex=s;const h=ry.exec(r),p=h&&"index"in h?h.index:r.length;i.push(Hw(r.slice(s,p).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?t.breakBefore:!0,p===r.length?t.breakAfter:!0)),s=p+1}let c=-1,d;for(;++c<i.length;)i[c].charCodeAt(i[c].length-1)===8203||c<i.length-1&&i[c+1].charCodeAt(0)===8203?(l.push(i[c]),d=void 0):i[c]?(typeof d=="number"&&l.push(d),l.push(i[c]),d=0):(c===0||c===i.length-1)&&l.push(0);return l}function Uw(e){return[String(e.value)]}function Hw(e,t,r){const i=[];let l=0,s;for(;l<e.length;){ay.lastIndex=l;const c=ay.exec(e);s=c?c.index:e.length,!l&&!s&&c&&!t&&i.push(""),l!==s&&i.push(e.slice(l,s)),l=c?s+c[0].length:s}return l!==s&&!r&&i.push(""),i.join(" ")}function cy(e,t){if(e.type==="element"){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function Fw(e){return!!(e.properties||{}).hidden}function zw(e){return e.tagName==="td"||e.tagName==="th"}function Yw(e){return e.tagName==="dialog"&&!(e.properties||{}).open}const jw={},qw=[];function Vw(e){return function(t){return function(r,i){const l=e(t||jw);let s=!1,c=r;tg(r,"element",function(d,h){const p=Array.isArray(d.properties.className)?d.properties.className:qw,b=p.includes("language-math"),E=p.includes("math-display"),T=p.includes("math-inline");let y=E;if(d.tagName==="head"&&(c=d),!b&&!E&&!T)return;let v=h[h.length-1],x=d;if(d.tagName==="code"&&b&&v&&v.type==="element"&&v.tagName==="pre"&&(x=v,v=h[h.length-2],y=!0),!v)return;!s&&l.register&&l.register(),s=!0;const B=Bw(x,{whitespace:"pre"});let I;try{I=l.render(B,{display:y})}catch(M){const w=M;i.message("Could not render math with mathjax",{ancestors:[...h,d],cause:w,place:d.position,ruleId:"mathjax-error",source:"rehype-mathjax"}),I=[{type:"element",tagName:"span",properties:{className:["mathjax-error"],style:"color:#cc0000",title:String(w)},children:[{type:"text",value:B}]}]}const P=v.children.indexOf(x);return v.children.splice(P,1,...I),eg}),s&&(l.styleSheet&&c.children.push(l.styleSheet()),l.unregister&&l.unregister())}}}const Gw={},$w=Vw(function(e){const t=e.tex||Gw,r=t.displayMath||[["\\[","\\]"]],i=t.inlineMath||[["\\(","\\)"]];return{render(l,s){const c=(s.display?r:i)[0];return[{type:"text",value:c[0]+l+c[1]}]}}});function Xw(e,t){const r=String(e);let i=r.indexOf(t),l=i,s=0,c=0;for(;i!==-1;)i===l?++s>c&&(c=s):s=1,l=i+t.length,i=r.indexOf(t,l);return c}function Qw(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:s},exit:{mathFlow:l,mathFlowFence:i,mathFlowFenceMeta:r,mathFlowValue:d,mathText:c,mathTextData:d}};function e(h){const p={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[p]}},h)}function t(){this.buffer()}function r(){const h=this.resume(),p=this.stack[this.stack.length-1];p.type,p.meta=h}function i(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function l(h){const p=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),b=this.stack[this.stack.length-1];b.type,this.exit(h),b.value=p;const E=b.data.hChildren[0];E.type,E.tagName,E.children.push({type:"text",value:p}),this.data.mathFlowInside=void 0}function s(h){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},h),this.buffer()}function c(h){const p=this.resume(),b=this.stack[this.stack.length-1];b.type,this.exit(h),b.value=p,b.data.hChildren.push({type:"text",value:p})}function d(h){this.config.enter.data.call(this,h),this.config.exit.data.call(this,h)}}function Kw(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),i.peek=l,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
237
+ `,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:i}};function r(s,c,d,h){const p=s.value||"",b=d.createTracker(h),E="$".repeat(Math.max(Xw(p,"$")+1,2)),T=d.enter("mathFlow");let y=b.move(E);if(s.meta){const v=d.enter("mathFlowMeta");y+=b.move(d.safe(s.meta,{after:`
238
+ `,before:y,encode:["$"],...b.current()})),v()}return y+=b.move(`
239
+ `),p&&(y+=b.move(p+`
240
+ `)),y+=b.move(E),T(),y}function i(s,c,d){let h=s.value||"",p=1;for(t||p++;new RegExp("(^|[^$])"+"\\$".repeat(p)+"([^$]|$)").test(h);)p++;const b="$".repeat(p);/[^ \r\n]/.test(h)&&(/^[ \r\n]/.test(h)&&/[ \r\n]$/.test(h)||/^\$|\$$/.test(h))&&(h=" "+h+" ");let E=-1;for(;++E<d.unsafe.length;){const T=d.unsafe[E];if(!T.atBreak)continue;const y=d.compilePattern(T);let v;for(;v=y.exec(h);){let x=v.index;h.codePointAt(x)===10&&h.codePointAt(x-1)===13&&x--,h=h.slice(0,x)+" "+h.slice(v.index+1)}}return b+h+b}function l(){return"$"}}const Ww={tokenize:Zw,concrete:!0,name:"mathFlow"},fy={tokenize:Jw,partial:!0};function Zw(e,t,r){const i=this,l=i.events[i.events.length-1],s=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0;let c=0;return d;function d(P){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),h(P)}function h(P){return P===36?(e.consume(P),c++,h):c<2?r(P):(e.exit("mathFlowFenceSequence"),yt(e,p,"whitespace")(P))}function p(P){return P===null||Le(P)?E(P):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(P))}function b(P){return P===null||Le(P)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),E(P)):P===36?r(P):(e.consume(P),b)}function E(P){return e.exit("mathFlowFence"),i.interrupt?t(P):e.attempt(fy,T,B)(P)}function T(P){return e.attempt({tokenize:I,partial:!0},B,y)(P)}function y(P){return(s?yt(e,v,"linePrefix",s+1):v)(P)}function v(P){return P===null?B(P):Le(P)?e.attempt(fy,T,B)(P):(e.enter("mathFlowValue"),x(P))}function x(P){return P===null||Le(P)?(e.exit("mathFlowValue"),v(P)):(e.consume(P),x)}function B(P){return e.exit("mathFlow"),t(P)}function I(P,M,w){let D=0;return yt(P,N,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function N(j){return P.enter("mathFlowFence"),P.enter("mathFlowFenceSequence"),z(j)}function z(j){return j===36?(D++,P.consume(j),z):D<c?w(j):(P.exit("mathFlowFenceSequence"),yt(P,V,"whitespace")(j))}function V(j){return j===null||Le(j)?(P.exit("mathFlowFence"),M(j)):w(j)}}}function Jw(e,t,r){const i=this;return l;function l(c){return c===null?t(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return i.parser.lazy[i.now().line]?r(c):t(c)}}function eL(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:i,resolve:tL,previous:nL,name:"mathText"};function i(l,s,c){let d=0,h,p;return b;function b(x){return l.enter("mathText"),l.enter("mathTextSequence"),E(x)}function E(x){return x===36?(l.consume(x),d++,E):d<2&&!r?c(x):(l.exit("mathTextSequence"),T(x))}function T(x){return x===null?c(x):x===36?(p=l.enter("mathTextSequence"),h=0,v(x)):x===32?(l.enter("space"),l.consume(x),l.exit("space"),T):Le(x)?(l.enter("lineEnding"),l.consume(x),l.exit("lineEnding"),T):(l.enter("mathTextData"),y(x))}function y(x){return x===null||x===32||x===36||Le(x)?(l.exit("mathTextData"),T(x)):(l.consume(x),y)}function v(x){return x===36?(l.consume(x),h++,v):h===d?(l.exit("mathTextSequence"),l.exit("mathText"),s(x)):(p.type="mathTextData",y(x))}}}function tL(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==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",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="mathTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),t-=i-l-2,i=l+2),l=void 0);return e}function nL(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function rL(e){return{flow:{36:Ww},text:{36:eL(e)}}}const aL={};function iL(e){const t=this,r=e||aL,i=t.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),c=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(rL(r)),s.push(Qw()),c.push(Kw(r))}var $0=function(){return($0=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var l in t=arguments[r])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e}).apply(this,arguments)},Gl,$l,X0=A.createContext(void 0),dy="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-MML-AM_CHTML",hy="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.js",py=function(E){var t=E.config,r=E.version,r=r===void 0?3:r,i=E.src,i=i===void 0?r===2?dy:hy:i,l=E.onStartup,s=E.onLoad,h=E.asyncLoad,c=h!==void 0&&h,d=E.onError,h=E.typesettingOptions,p=E.renderMode,p=p===void 0?"post":p,b=E.hideUntilTypeset,E=E.children,y=A.useContext(X0);if((y==null?void 0:y.version)!==void 0&&(y==null?void 0:y.version)!==r)throw Error("Cannot nest MathJaxContexts with different versions. MathJaxContexts should not be nested at all but if they are, they cannot have different versions. Stick with one version of MathJax in your app and avoid using more than one MathJaxContext.");if(r===2&&$l!==void 0||r===3&&Gl!==void 0)throw Error("Cannot use MathJax versions 2 and 3 simultaneously in the same app due to how MathJax is set up in the browser; either you have multiple MathJaxContexts with different versions or you have mounted and unmounted MathJaxContexts with different versions. Please stick with one version of MathJax in your app. File an issue in the project Github page if you need this feature.");var T=A.useRef(y),y=A.useRef((y==null?void 0:y.version)||null);if(y.current===null)y.current=r;else if(y.current!==r)throw Error("Cannot change version of MathJax in a MathJaxContext after it has mounted. Reload the page with a new version when this must happen.");var v=i||(r===2?dy:hy);function x(B,I){t&&(window.MathJax=t);var P=document.createElement("script");P.type="text/javascript",P.src=v,P.async=c,P.addEventListener("load",function(){var M=window.MathJax;l&&l(M),B(M),s&&s()}),P.addEventListener("error",function(M){return I(M)}),document.getElementsByTagName("head")[0].appendChild(P)}return T.current===void 0&&(y={typesettingOptions:h,renderMode:p,hideUntilTypeset:b},r===2?Gl===void 0&&(typeof window<"u"?(Gl=new Promise(x)).catch(function(B){if(!d)throw Error("Failed to download MathJax version 2 from '".concat(v,"' due to: ").concat(JSON.stringify(B)));d(B)}):(Gl=Promise.reject()).catch(function(B){})):$l===void 0&&(typeof window<"u"?($l=new Promise(x)).catch(function(B){if(!d)throw Error("Failed to download MathJax version 3 from '".concat(v,"' due to: ").concat(B));d(B)}):($l=Promise.reject()).catch(function(B){})),T.current=$0($0({},y),r===2?{version:2,promise:Gl}:{version:3,promise:$l})),kt.createElement(X0.Provider,{value:T.current},E)},ka=function(){return(ka=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var l in t=arguments[r])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e}).apply(this,arguments)},uL=function(e,t){var r={};for(l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(r[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,l=Object.getOwnPropertySymbols(e);i<l.length;i++)t.indexOf(l[i])<0&&Object.prototype.propertyIsEnumerable.call(e,l[i])&&(r[l[i]]=e[l[i]]);return r},Xl=function(e){return"Typesetting failed: ".concat(e.message!==void 0?e.message:JSON.stringify(e))},lL=function(e){function t(){var D;x==="every"&&P&&B==="post"&&y.current!==null&&(y.current.style.visibility=(D=(D=E.style)==null?void 0:D.visibility)!=null?D:"visible"),M.current||(x==="first"&&y.current!==null&&(y.current.style.visibility="visible"),l&&l(),M.current=!0),s&&s(),w.current=!1}var i=e.inline,r=i!==void 0&&i,i=e.hideUntilTypeset,l=e.onInitTypeset,s=e.onTypeset,c=e.text,d=e.dynamic,h=e.typesettingOptions,p=e.renderMode,b=e.children,E=uL(e,["inline","hideUntilTypeset","onInitTypeset","onTypeset","text","dynamic","typesettingOptions","renderMode","children"]),T=A.useRef(""),y=A.useRef(null),v=A.useContext(X0),x=i??(v==null?void 0:v.hideUntilTypeset),B=p??(v==null?void 0:v.renderMode),I=h??(v==null?void 0:v.typesettingOptions),P=d!==!1&&(d||!1),M=A.useRef(!1),w=A.useRef(!1);return!w.current&&y.current!==null&&P&&x==="every"&&B==="post"&&(y.current.style.visibility="hidden"),(typeof window<"u"?A.useLayoutEffect:A.useEffect)(function(){if((P||!M.current)&&y.current!==null){if(!v)throw Error("MathJax was not loaded, did you use the MathJax component outside of a MathJaxContext?");if(B==="pre"){if(!(typeof(D=c)=="string"&&0<D.length))throw Error(`Render mode 'pre' requires text prop to be set and non-empty, which was currently "`.concat(c,'"'));if(!h||!h.fn)throw Error("Render mode 'pre' requires 'typesettingOptions' prop with 'fn' property to be set on MathJax element or in the MathJaxContext");if(v.version===2)throw Error("Render mode 'pre' only available with MathJax 3, and version 2 is currently in use")}B!=="post"&&c===T.current||w.current||(w.current=!0,v.version===3?v.promise.then(function(N){var z;B==="pre"?(z=function(V){T.current=c,N.startup.document.clear(),N.startup.document.updateDocument(),y.current!==null&&(y.current.innerHTML=V.outerHTML),t()},h.fn.endsWith("Promise")?N.startup.promise.then(function(){return N[I.fn](c,ka(ka({},(I==null?void 0:I.options)||{}),{display:!r}))}).then(z).catch(function(V){throw t(),Error(Xl(V))}):N.startup.promise.then(function(){var V=N[I.fn](c,ka(ka({},(I==null?void 0:I.options)||{}),{display:!r}));z(V)}).catch(function(V){throw t(),Error(Xl(V))})):N.startup.promise.then(function(){return N.typesetClear([y.current]),N.typesetPromise([y.current])}).then(t).catch(function(V){throw t(),Error(Xl(V))})}).catch(function(N){throw t(),Error(Xl(N))}):v.promise.then(function(N){N.Hub.Queue(["Typeset",N.Hub,y.current]),N.Hub.Queue(t)}).catch(function(N){throw t(),Error(Xl(N))}))}var D}),kt.createElement("span",ka({},E,{style:ka(ka({display:r?"inline":"block"},E.style),{visibility:x?"hidden":(e=E.style)==null?void 0:e.visibility}),ref:y}),b)};const oL=({children:e,enableMathjax:t})=>{const r=t?[iL]:void 0,i=t?[$w]:void 0,l=A.createElement(dg,{skipHtml:!0,remarkPlugins:r,rehypePlugins:i},e);return t?A.createElement(lL,null,l):l},sL=({className:e})=>A.createElement("svg",{viewBox:"0 -10 100 40",xmlns:"http://www.w3.org/2000/svg",className:e},A.createElement("ellipse",{cx:"20",cy:"15",rx:"8",ry:"8",fill:"#000"},A.createElement("animate",{attributeName:"cy",values:"15;4;15;15",dur:"1.2s",keyTimes:"0;0.3;0.6;1",keySplines:"0.42 0 0.58 1; 0.42 0 0.58 1; 0.42 0 0.58 1",calcMode:"spline",repeatCount:"indefinite",begin:"0s"}),A.createElement("animate",{attributeName:"ry",values:"8;8;7;8;8",dur:"1.2s",keyTimes:"0;0.52;0.6;0.7;1",repeatCount:"indefinite",begin:"0s"}),A.createElement("animate",{attributeName:"rx",values:"8;8;9;8;8",dur:"1.2s",keyTimes:"0;0.52;0.6;0.7;1",repeatCount:"indefinite",begin:"0s"})),A.createElement("ellipse",{cx:"50",cy:"15",rx:"8",ry:"8",fill:"#000"},A.createElement("animate",{attributeName:"cy",values:"15;4;15;15",dur:"1.2s",keyTimes:"0;0.3;0.6;1",keySplines:"0.42 0 0.58 1; 0.42 0 0.58 1; 0.42 0 0.58 1",calcMode:"spline",repeatCount:"indefinite",begin:"0.2s"}),A.createElement("animate",{attributeName:"ry",values:"8;8;7;8;8",dur:"1.2s",keyTimes:"0;0.52;0.6;0.7;1",repeatCount:"indefinite",begin:"0.2s"}),A.createElement("animate",{attributeName:"rx",values:"8;8;9;8;8",dur:"1.2s",keyTimes:"0;0.52;0.6;0.7;1",repeatCount:"indefinite",begin:"0.2s"})),A.createElement("ellipse",{cx:"80",cy:"15",rx:"8",ry:"8",fill:"#000"},A.createElement("animate",{attributeName:"cy",values:"15;4;15;15",dur:"1.2s",keyTimes:"0;0.3;0.6;1",keySplines:"0.42 0 0.58 1; 0.42 0 0.58 1; 0.42 0 0.58 1",calcMode:"spline",repeatCount:"indefinite",begin:"0.4s"}),A.createElement("animate",{attributeName:"ry",values:"8;8;7;8;8",dur:"1.2s",keyTimes:"0;0.52;0.6;0.7;1",repeatCount:"indefinite",begin:"0.4s"}),A.createElement("animate",{attributeName:"rx",values:"8;8;9;8;8",dur:"1.2s",keyTimes:"0;0.52;0.6;0.7;1",repeatCount:"indefinite",begin:"0.4s"}))),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"},cL=Pe.div(),fL=Pe.div(({externalScroll:e,theme:t})=>({padding:"16px 32px 0",[t.breakpoints.down("md")]:{padding:"16px 16px 0"},boxSizing:"border-box",background:"white",position:"absolute",bottom:0,top:0,left:0,right:0,zIndex:1,...e&&{padding:"0 32px",[t.breakpoints.down("md")]:{padding:"0 16px"}}})),dL=Pe.div(({externalScroll:e})=>({width:"100%",height:e?"auto":"100%",minHeight:e?"100%":"auto",display:"flex",flexDirection:"column"})),hL=Pe(sI)(({externalScroll:e})=>({display:"flex",flexDirection:"column",flex:1,padding:"14px 0",overflow:e?"visible":"auto",gap:"16px",[`> .${bn.messageRowAssistant}:first-child`]:{marginTop:"16px"}})),my=Pe.div({display:"flex",width:"100%",gap:"10px",[`&.${bn.messageRowUser}`]:{flexDirection:"row-reverse"},"> *":{minWidth:0},position:"relative"}),gy=Pe.div(({theme:e})=>({color:e.custom.colors.darkGray2,backgroundColor:e.custom.colors.white,...e.typography.body2,"p:first-of-type":{marginTop:0},"p:last-of-type":{marginBottom:0},"ol,ul":{paddingInlineStart:"16px",margin:"12px 0 12px 4px"},"ol > li, ul > li":{margin:"12px 0","ol,ul":{margin:"12px 0 12px 4px"},li:{margin:"6px 0"}},ul:{paddingInlineStart:0,"> li":{listStyleType:"none",position:"relative","&::before":{content:'"–"',position:"absolute",left:0,color:"#888",marginRight:"8px"},paddingLeft:"16px"}},"ol + ul":{marginLeft:"24px",li:{margin:"6px 0"}},a:{color:e.custom.colors.red,fontWeight:"normal"},borderRadius:"12px",[`.${bn.messageRowUser} &`]:{padding:"12px 16px",borderRadius:"8px 0px 8px 8px",backgroundColor:e.custom.colors.lightGray1}})),pL=Pe.div({alignSelf:"flex-end",alignItems:"end",display:"flex",flexDirection:"column",gap:"12px"}),mL=Pe.button(({theme:e})=>({border:`1px solid ${e.custom.colors.lightGray2}`,backgroundColor:e.custom.colors.white,padding:"8px 16px",...e.typography.body3,cursor:"pointer",boxSizing:"border-box","&:hover":{color:e.custom.colors.white,backgroundColor:e.custom.colors.silverGrayDark,borderColor:"transparent"},borderRadius:"8px"})),gL=Pe(_b)(({theme:e})=>({fill:e.custom.colors.red})),bL=Pe(F8)(({theme:e})=>({fill:e.custom.colors.red})),EL=Pe.div(({externalScroll:e,theme:t})=>({padding:"12px 0 16px",...e&&{position:"sticky",bottom:0,background:t.custom.colors.white},"button:focus-visible":{outlineOffset:"-1px",borderRadius:"7px"}})),yL=Pe(fi)(({theme:e})=>({color:e.custom.colors.silverGrayDark,marginTop:"16px",textAlign:"center"})),TL=Pe(sL)(({theme:e})=>({ellipse:{fill:e.custom.colors.darkGray2},width:"24px",height:"24px"})),SL=({conversationStarters:e,askTimTitle:t,entryScreenEnabled:r=!0,entryScreenTitle:i,srLoadingMessages:l,placeholder:s="",className:c,scrollElement:d,ref:h,useMathJax:p=!1,...b})=>{var ae,ie;const E=A.useRef(null),T=A.useRef(null),y=A.useRef(null),v=A.useRef(null),{messages:x,input:B,handleInputChange:I,handleSubmit:P,append:M,isLoading:w,stop:D,error:N,initialMessages:z,status:V}=vw();Ow({scrollElement:d||T.current,contentElement:d?T.current:null,threshold:200});const[j,_]=A.useState(r);A.useEffect(()=>{var le,S;j||(S=(le=v.current)==null?void 0:le.querySelector("input"))==null||S.focus()},[j]),A.useEffect(()=>{x.some(le=>le.role==="user"||["submitted","streaming"].includes(V))&&_(!1)},[x,V]);const q=x.length===((z==null?void 0:z.length)||0),$=!q&&!N&&((ae=x[x.length-1])==null?void 0:ae.role)==="user",J=w&&((ie=x[x.length-1])==null?void 0:ie.role)!=="user",Z=()=>{const le=d||T.current;le==null||le.scrollBy({behavior:"instant",top:le==null?void 0:le.scrollHeight})},ne=x[x.length-1],F=!!d;return A.createElement(cL,{className:c,ref:E},j?A.createElement(iI,{className:bn.entryScreenContainer,title:i,conversationStarters:e,onPromptSubmit:le=>{le.trim()!==""&&(_(!1),M({role:"user",content:le}))}}):A.createElement(fL,{className:bn.chatScreenContainer,"data-testid":"ai-chat-screen",externalScroll:F,ref:y},A.createElement(dL,{className:Ul(c,bn.root),externalScroll:F,...b},A.createElement(YI,{askTimTitle:t,externalScroll:F,className:Ul(c,bn.title)}),A.createElement(hL,{className:bn.messagesContainer,externalScroll:F,ref:T},x.map((le,S)=>{const K=S===x.length-1&&w?`isLoading-${le.id}`:le.id;return A.createElement(my,{key:K,"data-chat-role":le.role,className:Ul(bn.messageRow,{[bn.messageRowUser]:le.role==="user",[bn.messageRowAssistant]:le.role==="assistant"})},A.createElement(gy,{className:bn.message},A.createElement(h2,{as:le.role==="user"?"h5":"h6"},le.role==="user"?"You said: ":"Assistant said: "),A.createElement(oL,{enableMathjax:p},le.content)))}),q?A.createElement(pL,null,e==null?void 0:e.map(le=>A.createElement(mL,{className:bn.conversationStarter,key:le.content,onClick:()=>{Z(),M({role:"user",content:le.content})}},le.content))):null,$?A.createElement(my,{className:Ul(bn.messageRow,bn.messageRowAssistant),key:"loading"},A.createElement(gy,null,A.createElement(TL,null))):null,N?A.createElement(HI,{severity:"error",closable:!0},"An unexpected error has occurred."):null),A.createElement(EL,{externalScroll:F,className:bn.bottomSection},A.createElement("form",{onSubmit:le=>{le.preventDefault(),w&&J?D():(Z(),P(le))}},A.createElement(f2,{ref:v,fullWidth:!0,size:"chat",className:bn.input,placeholder:s,name:"message",sx:{flex:1},value:B,onChange:I,inputProps:{"aria-label":"Ask a question"},endAdornment:w?A.createElement(b0,{"aria-label":"Stop",onClick:D,disabled:!J},A.createElement(bL,null)):A.createElement(b0,{"aria-label":"Send",type:"submit",onClick:le=>{if(B.trim()===""){le.preventDefault();return}Z(),P(le)}},A.createElement(gL,null))})),A.createElement(yL,{variant:"body3"},"AI-generated content may be incorrect.")),A.createElement(fI,{isLoading:w,loadingMessages:l,message:(ne==null?void 0:ne.role)==="assistant"?ne==null?void 0:ne.content:""}))))},CL=({requestOpts:e,initialMessages:t,chatId:r,parseContent:i,...l})=>A.createElement(_w,{requestOpts:e,chatId:r,initialMessages:t,parseContent:i},A.createElement(SL,{...l})),by=e=>({minWidth:"auto",padding:0,height:{small:"32px",medium:"40px",large:"48px"}[e],width:{small:"32px",medium:"40px",large:"48px"}[e],"& svg, & .MuiSvgIcon-root":{width:"1em",height:"1em",fontSize:it({small:20,medium:24,large:32}[e])}}),Ql=Pe(A.forwardRef(function(t,r){return A.createElement($E,{ref:r,type:"button",...t})}))(({size:e=h0.size,responsive:t,theme:r})=>[by(e),t&&{[r.breakpoints.down("sm")]:by(qE[e])}]);Ql.displayName="ActionButton";const AL=Ql.withComponent(({Component:e,...t})=>A.createElement(XE,{Component:e,...t}));AL.displayName="ActionButtonLink";const xL=Pe.div``,_L=Pe.div(({theme:e})=>({display:"flex",height:300,padding:40,flexDirection:"column",justifyContent:"center",alignItems:"center",alignSelf:"stretch",borderRadius:8,border:`1px solid ${e.custom.colors.lightGray2}`,marginTop:"8px",cursor:"pointer",textAlign:"center"})),vL=Pe.div({display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",marginTop:"24px"}),RL=Pe.div(({theme:e})=>({color:e.custom.colors.silverGrayDark,...e.typography.body2})),Ey=A.forwardRef(({content:e,"aria-label":t},r)=>{const[i,l]=A.useState(0);A.useEffect(()=>l(0),[e]);const s=c=>{(c.key==="Enter"||c.key===" ")&&l(i===0?1:0)};return A.createElement(_L,{ref:r,onClick:()=>l(i===0?1:0),onKeyDown:s,tabIndex:0,"aria-label":t,role:"button"},A.createElement(fi,{variant:"h5"},i===0?`Q: ${e.question}`:`Answer: ${e.answer}`))});Ey.displayName="Flashcard";const NL=({flashcards:e,wasKeyboardFocus:t})=>{const[r,i]=A.useState(0),l=A.useRef(null),s=A.useRef(null),c=A.useCallback(d=>{var h;e&&(!((h=l.current)!=null&&h.contains(document.activeElement))&&t||(d.key==="ArrowRight"?i(p=>(p+1)%e.length):d.key==="ArrowLeft"&&i(p=>(p-1+e.length)%e.length)))},[e,t]);return A.useEffect(()=>{var d;(d=s.current)==null||d.focus()},[r]),A.useEffect(()=>(window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)),[c]),e!=null&&e.length?A.createElement(xL,{ref:l},A.createElement(Ey,{ref:s,content:e[r],"aria-label":`Flashcard ${r+1} of ${e.length}`}),A.createElement(vL,null,A.createElement(Ql,{onClick:()=>i(r-1),disabled:r===0,variant:"secondary",color:"secondary",size:"small","aria-label":"Previous card"},A.createElement(U8,{"aria-hidden":!0})),A.createElement(RL,null,r+1," / ",e.length),A.createElement(Ql,{onClick:()=>i(r+1),disabled:r===e.length-1,variant:"secondary",color:"secondary",size:"small","aria-label":"Next card"},A.createElement(H8,{"aria-hidden":!0})))):null},OL="6.7.0",kL=Pe.div(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",gap:"4px",color:e.custom.colors.white,position:"sticky",top:0,padding:"32px 0 16px 0",zIndex:2,backgroundColor:e.custom.colors.white,borderRadius:0})),IL=Pe.div(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",color:e.custom.colors.darkGray2,img:{width:"24px",height:"24px"},svg:{fill:e.custom.colors.red,width:"24px",height:"24px",flexShrink:0},overflow:"hidden",p:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}})),DL=Pe(Ql)(({theme:e})=>({backgroundColor:e.custom.colors.lightGray2,"&&:hover":{backgroundColor:e.custom.colors.red,color:e.custom.colors.white},zIndex:3,flexShrink:0})),wL=Pe(hk)(({theme:e})=>({padding:"0 0 16px",backgroundColor:e.custom.colors.white,position:"sticky",top:"88px",zIndex:2,overflow:"visible"})),Q0=Pe(Nk)({padding:"0",height:"calc(100% - 138px)",position:"relative"}),LL=Pe(CL)(({hasTabs:e,theme:t})=>({".MitAiChat--entryScreenContainer":{padding:e?"114px 0 24px":"168px 32px 24px",[t.breakpoints.down("md")]:{padding:e?"114px 0 24px":"168px 16px 24px"}},".MitAiChat--chatScreenContainer":{padding:e?0:"0 32px",[t.breakpoints.down("md")]:{padding:e?0:"0 16px"}},".MitAiChat--messagesContainer":{paddingTop:e?"8px":"88px"}})),ML=Pe.div(({theme:e})=>({color:e.custom.colors.darkGray2,backgroundColor:e.custom.colors.white,padding:"12px 0 100px",...e.typography.body2,"p:first-of-type":{marginTop:0},"p:last-of-type":{marginBottom:0},"ol, ul":{paddingInlineStart:"32px",li:{margin:"16px 0"}},ul:{marginInlineStart:"-16px"},a:{color:e.custom.colors.red,fontWeight:"normal"}})),BL=e=>e,PL={credentials:"include"},UL=e=>{const[t,r]=A.useState(null),[i,l]=A.useState(!1);return A.useEffect(()=>{if(!e)return;(async()=>{l(!0);try{const d=await(await fetch(e)).json();if(!d.results)throw new Error("Unexpected response");const[h]=d.results;if(!h)throw new Error("No result found");r({summary:h.summary,flashcards:h.flashcards})}catch(c){console.error("Error fetching content",c)}finally{l(!1)}})()},[e]),{response:t,loading:i}},HL=[{role:"assistant",content:"Let's try to work on this problem together. It would be great to hear how you're thinking about solving it. Can you walk me through the approach you're considering?"}],FL="What do you want to know about this video?",zL=[{content:"What are the most important concepts introduced in the video?"},{content:"What examples are used to illustrate concepts covered in the video?"},{content:"What are the key terms introduced in this video?"}],yy=({payload:e,transformBody:t,fetchOpts:r,scrollElement:i,entryScreenEnabled:l,entryScreenTitle:s,conversationStarters:c,initialMessages:d,hasTabs:h,needsMathJax:p})=>e?A.createElement(LL,{key:e.chatId,chatId:e.chatId,conversationStarters:c,initialMessages:d,scrollElement:i,entryScreenEnabled:l,entryScreenTitle:s,requestOpts:{transformBody:b=>({...e.requestBody,...t==null?void 0:t(b)}),apiUrl:e.apiUrl,fetchOpts:{...PL,...r}},hasTabs:h,useMathJax:p}):null,YL=(e,t)=>[...e].sort(()=>.5-Math.random()).slice(0,t),jL=({transformBody:e=BL,className:t,fetchOpts:r,payload:i,open:l,onClose:s})=>{var N,z,V;const[c,d]=A.useState("chat"),{response:h}=UL((N=i==null?void 0:i.summary)==null?void 0:N.apiUrl),[p,b]=A.useState(!1),E=A.useRef(!1),T=()=>{E.current=!0},y=()=>{E.current||b(!0),E.current=!1},[v,x]=A.useState(null),B=j=>{j&&x(j)};A.useEffect(()=>{var j;(j=v==null?void 0:v.scrollTo)==null||j.call(v,{top:c==="chat"?v.scrollHeight:0})},[c,v]);const I=A.useMemo(()=>{var j;return i?i.chat.conversationStarters||((j=h==null?void 0:h.flashcards)!=null&&j.length&&h.flashcards.length>=3?YL(h.flashcards,3).map(_=>({content:_.question})):zL):[]},[i,h]);if(!i)return A.createElement("div",{"data-testid":"ai-drawer-waiting"});const{title:P,blockType:M,chat:w}=i,D=M==="video";return A.createElement(g9,{"data-smoot-version":OL,className:t,PaperProps:{ref:B,sx:{width:"900px",maxWidth:"100%",boxSizing:"border-box",padding:{xs:"0 16px",md:"0 32px"}}},anchor:"right",open:l,onClose:s,role:"dialog","aria-modal":"true",keepMounted:!0},A.createElement(kL,null,A.createElement(IL,null,P?A.createElement(Md,null):null,A.createElement(fi,{variant:"body1",component:"h1"},P!=null&&P.includes("AskTIM")?A.createElement(A.Fragment,null,"Ask",A.createElement("strong",null,"TIM"),P.replace("AskTIM","")):P)),A.createElement(DL,{variant:"text",size:"medium",onClick:s,"aria-label":"Close"},A.createElement(xb,null))),M==="problem"?A.createElement(yy,{payload:w,transformBody:e,fetchOpts:r,scrollElement:v,entryScreenEnabled:(w==null?void 0:w.entryScreenEnabled)??!1,entryScreenTitle:w.entryScreenTitle,initialMessages:w.initialMessages||HL,hasTabs:D,needsMathJax:!0}):null,M==="video"?A.createElement(tk,{value:c},A.createElement(wL,{styleVariant:"chat",onChange:(j,_)=>d(_)},A.createElement(p0,{value:"chat",label:"Chat"}),(z=h==null?void 0:h.flashcards)!=null&&z.length?A.createElement(p0,{value:"flashcards",label:"Flashcards",onMouseDown:T,onFocus:y}):null,A.createElement(p0,{value:"summary",label:"Summary"})),A.createElement(Q0,{value:"chat",keepMounted:!0},A.createElement(yy,{payload:w,transformBody:e,fetchOpts:r,scrollElement:v,entryScreenEnabled:(w==null?void 0:w.entryScreenEnabled)??!0,entryScreenTitle:w.entryScreenTitle??FL,conversationStarters:I,initialMessages:w.initialMessages,hasTabs:D,needsMathJax:!1})),(V=h==null?void 0:h.flashcards)!=null&&V.length?A.createElement(Q0,{value:"flashcards"},A.createElement(NL,{flashcards:h==null?void 0:h.flashcards,wasKeyboardFocus:p})):null,A.createElement(Q0,{value:"summary"},A.createElement(fi,{variant:"h4",component:"h4"}),A.createElement(ML,null,A.createElement(dg,{rehypePlugins:[P8]},(h==null?void 0:h.summary)??"")))):null)},qL=e=>{const t=JSON.stringify(e);let r=5381;for(let i=0;i<t.length;i++)r=(r<<5)+r+t.charCodeAt(i),r=r&r;return Math.abs(r).toString(36)},VL=({className:e,messageOrigin:t,transformBody:r,fetchOpts:i,target:l})=>{const[s,c]=A.useState({});return A.useEffect(()=>{const d=h=>{if(h.origin===t&&["smoot-design::ai-drawer-open","smoot-design::tutor-drawer-open"].includes(h.data.type)){const p=qL(h.data.payload);h.data.payload.chat.chatId=h.data.payload.chat.chatId||p,c(b=>({...b,[p]:{key:p,open:!1,payload:h.data.payload}})),requestAnimationFrame(()=>{c(b=>({...b,[p]:{...b[p],open:!0}}))})}};return window.addEventListener("message",d),()=>{window.removeEventListener("message",d)}},[t,l]),Object.values(s).length===0?A.createElement("div",{"data-testid":"ai-drawer-manager-waiting"}):A.createElement(py,null,Object.values(s).map(({key:d,open:h,payload:p})=>A.createElement(jL,{key:d,className:e,transformBody:r,fetchOpts:i,payload:p,open:h,onClose:()=>{c(b=>({...b,[d]:{...b[d],open:!1}}))}})))},GL={defaultProps:{disableRipple:!0},styleOverrides:{root:{":focus-visible":{outline:"revert"}}}},at={mitRed:"#750014",brightRed:"#FF1423",black:"#000000",white:"#FFFFFF",darkGray2:"#212326",darkGray1:"#40464C",silverGrayDark:"#626A73",silverGray:"#8B959E",silverGrayLight:"#B8C2CC",lightGray2:"#DDE1E6",lightGray1:"#F3F4F8",navGray:"#303337",darkPink:"#750062",pink:"#FF14F0",lightPink:"#FFB3FF",darkPurple:"#3E006B",purple:"#93F",lightPurple:"#BFB3FF",darkBlue:"#002896",blue:"#1966FF",lightBlue:"#99EBFF",darkGreen:"#004D1A",green:"#00AD00",lightGreen:"#AF3",darkRed:"#83192A",red:"#A31F34",lightRed:"#D02E44",orange:"#FAB005",yellow:"#FFEB00"},$L={defaultProps:{size:"medium",color:"default",variant:"outlined",deleteIcon:A.createElement(xb,{"aria-hidden":"true"})},styleOverrides:{root:{borderRadius:"100vh",borderWidth:"1px"},deleteIcon:{"&:hover":{color:"inherit"},"&.MuiChip-deleteIconLarge":{width:"16px",height:"16px"},"&.MuiChip-deleteIconMedium":{width:"14px",height:"14px"},margin:"0 -2px 0 8px",color:"inherit"},icon:{margin:"0 8px 0 -2px",color:"inherit","&.MuiChip-iconLarge":{width:"16px",height:"16px"},"&.MuiChip-iconMedium":{width:"14px",height:"14px"}}},variants:[{props:{size:"medium"},style:({theme:e})=>({...e.typography.body3,boxSizing:"border-box",height:"24px",paddingRight:"12px",paddingLeft:"12px",".MuiChip-label":{paddingLeft:"0px",paddingRight:"0px"}})},{props:{size:"large"},style:({theme:e})=>({...e.typography.body2,height:"32px",paddingLeft:"16px",paddingRight:"16px",".MuiChip-label":{paddingLeft:"0px",paddingRight:"0px"}})},{props:{variant:"outlined"},style:{borderColor:at.silverGrayLight,color:at.darkGray1,"&.Mui-focusVisible":{backgroundColor:"transparent"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:at.darkGray1,borderColor:at.silverGrayDark,backgroundColor:"transparent"}}},{props:{variant:"outlinedWhite"},style:{backgroundColor:"white",border:"1px solid",borderColor:at.silverGrayLight,color:at.darkGray1,"&.Mui-focusVisible":{backgroundColor:"white"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:at.darkGray1,borderColor:at.silverGrayDark,backgroundColor:"white"}}},{props:{variant:"gray"},style:{backgroundColor:at.lightGray2,border:"none",color:at.darkGray2,"&.Mui-focusVisible":{backgroundColor:at.lightGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:at.darkGray1,backgroundColor:at.silverGrayLight}}},{props:{variant:"dark"},style:{backgroundColor:at.silverGrayDark,border:"none",color:at.white,"&.Mui-focusVisible":{backgroundColor:at.silverGrayDark},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:at.darkGray1}}},{props:{variant:"darker"},style:{backgroundColor:at.darkGray2,border:`1px solid ${at.darkGray1}`,color:at.white,"&.Mui-focusVisible":{backgroundColor:at.darkGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:at.black,border:`1px solid ${at.silverGray}`}}},{props:{variant:"filled"},style:{backgroundColor:at.mitRed,border:"none",color:at.white,"&.Mui-focusVisible":{backgroundColor:at.mitRed},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:at.red}}}]},XL={colors:at,dimensions:{headerHeight:"72px",headerHeightSm:"60px"}},QL={values:{xs:0,sm:600,md:900,lg:1320,xl:1536}},KL={custom:XL,palette:{primary:{main:at.mitRed,light:at.lightRed,active:at.red,contrastText:at.white},secondary:{light:at.darkGray2,active:at.silverGrayDark,main:at.black,contrastText:at.white}},shape:{borderRadius:8},spacing:8,typography:zE,breakpoints:QL,components:{MuiButtonBase:GL,MuiTypography:ok,MuiMenu:{styleOverrides:{paper:{borderRadius:"4px"}}},MuiAutocomplete:{styleOverrides:{paper:{borderRadius:"4px"},popupIndicator:{paddingRight:0,marginRight:0}}},MuiChip:$L}},Ty=e=>zs(Un(KL,e)),WL=Ty(),ZL=({children:e,theme:t=WL})=>A.createElement(lk,{theme:t},e),JL=e=>{const t=document.createElement("div");document.body.appendChild(t),t.id="smoot-chat-drawer-root";const r=_m({key:"css",prepend:!0,container:t}),i=Ty({components:{MuiPopover:{defaultProps:{container:t}},MuiPopper:{defaultProps:{container:t}},MuiModal:{defaultProps:{container:t}}}});fC.createRoot(t).render(A.createElement(KC,{value:r},A.createElement(ZL,{theme:i},A.createElement(py,null,A.createElement(VL,{...e})))));const l=document.createElement("style");l.textContent=`
241
241
  .CtxtMenu_MenuFrame {
242
242
  z-index: ${i.zIndex.drawer+100} !important;
243
243
  }
244
- `,document.head.appendChild(o)};ur.init=ZL,Object.defineProperty(ur,Symbol.toStringTag,{value:"Module"})});
244
+ `,document.head.appendChild(l)};ur.init=JL,Object.defineProperty(ur,Symbol.toStringTag,{value:"Module"})});
245
245
  //# sourceMappingURL=remoteTutorDrawer.umd.js.map