bangonit 0.3.4 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +24 -33
  2. package/app/desktopapp/dist/main/index.js +4 -2
  3. package/app/desktopapp/dist/main/ipc.js +96 -20
  4. package/app/desktopapp/dist/main/preload.js +4 -3
  5. package/app/desktopapp/dist/main/tabs.js +43 -3
  6. package/app/replay/dist/replay.css +1 -1
  7. package/app/replay/dist/replay.js +24 -24
  8. package/app/webapp/.next/standalone/app/webapp/.next/BUILD_ID +1 -1
  9. package/app/webapp/.next/standalone/app/webapp/.next/app-build-manifest.json +6 -6
  10. package/app/webapp/.next/standalone/app/webapp/.next/app-path-routes-manifest.json +1 -1
  11. package/app/webapp/.next/standalone/app/webapp/.next/build-manifest.json +2 -2
  12. package/app/webapp/.next/standalone/app/webapp/.next/prerender-manifest.json +1 -1
  13. package/app/webapp/.next/standalone/app/webapp/.next/server/app/_not-found.html +1 -1
  14. package/app/webapp/.next/standalone/app/webapp/.next/server/app/_not-found.rsc +1 -1
  15. package/app/webapp/.next/standalone/app/webapp/.next/server/app/app/page.js +3 -3
  16. package/app/webapp/.next/standalone/app/webapp/.next/server/app/app/page_client-reference-manifest.js +1 -1
  17. package/app/webapp/.next/standalone/app/webapp/.next/server/app/app.html +1 -1
  18. package/app/webapp/.next/standalone/app/webapp/.next/server/app/app.rsc +2 -2
  19. package/app/webapp/.next/standalone/app/webapp/.next/server/app/index.html +1 -1
  20. package/app/webapp/.next/standalone/app/webapp/.next/server/app/index.rsc +1 -1
  21. package/app/webapp/.next/standalone/app/webapp/.next/server/app-paths-manifest.json +3 -3
  22. package/app/webapp/.next/standalone/app/webapp/.next/server/chunks/708.js +4 -3
  23. package/app/webapp/.next/standalone/app/webapp/.next/server/pages/404.html +1 -1
  24. package/app/webapp/.next/standalone/app/webapp/.next/server/pages/500.html +1 -1
  25. package/app/webapp/.next/standalone/app/webapp/.next/server/pages-manifest.json +1 -1
  26. package/app/webapp/.next/standalone/app/webapp/.next/server/server-reference-manifest.json +1 -1
  27. package/app/webapp/.next/standalone/app/webapp/.next/static/chunks/app/app/page-d6a322343ab207d9.js +1 -0
  28. package/app/webapp/.next/standalone/package.json +5 -2
  29. package/app/webapp/.next/static/chunks/app/app/page-d6a322343ab207d9.js +1 -0
  30. package/app/webapp/src/shared/api/chat.ts +6 -3
  31. package/app/webapp/src/shared/components/AppShell.tsx +6 -5
  32. package/app/webapp/src/shared/components/SessionView.tsx +4 -3
  33. package/app/webapp/src/shared/lib/browser/index.ts +17 -27
  34. package/app/webapp/src/shared/lib/browser/recorder.ts +13 -4
  35. package/app/webapp/src/shared/lib/browser/snapshot.ts +19 -5
  36. package/app/webapp/src/shared/lib/browser/types.ts +21 -6
  37. package/app/webapp/src/shared/types/global.d.ts +6 -4
  38. package/bin/src/cli/bangonit.js +19 -11
  39. package/package.json +5 -2
  40. package/scripts/regen-replays.sh +101 -0
  41. package/app/webapp/.next/standalone/app/webapp/.next/static/chunks/app/app/page-df00a757f649931a.js +0 -1
  42. package/app/webapp/.next/static/chunks/app/app/page-df00a757f649931a.js +0 -1
  43. /package/app/webapp/.next/standalone/app/webapp/.next/static/{bBZVP6sUilA3wyt0vYqDc → GYX27NS_2uYjr9ksgGxIo}/_buildManifest.js +0 -0
  44. /package/app/webapp/.next/standalone/app/webapp/.next/static/{bBZVP6sUilA3wyt0vYqDc → GYX27NS_2uYjr9ksgGxIo}/_ssgManifest.js +0 -0
  45. /package/app/webapp/.next/static/{bBZVP6sUilA3wyt0vYqDc → GYX27NS_2uYjr9ksgGxIo}/_buildManifest.js +0 -0
  46. /package/app/webapp/.next/static/{bBZVP6sUilA3wyt0vYqDc → GYX27NS_2uYjr9ksgGxIo}/_ssgManifest.js +0 -0
@@ -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 ar=Symbol.for("react.element"),Th=Symbol.for("react.portal"),Ph=Symbol.for("react.fragment"),_h=Symbol.for("react.strict_mode"),Ih=Symbol.for("react.profiler"),Nh=Symbol.for("react.provider"),Lh=Symbol.for("react.context"),Ah=Symbol.for("react.forward_ref"),Dh=Symbol.for("react.suspense"),Rh=Symbol.for("react.memo"),bh=Symbol.for("react.lazy"),Js=Symbol.iterator;function Fh(e){return e===null||typeof e!="object"?null:(e=Js&&e[Js]||e["@@iterator"],typeof e=="function"?e:null)}var Zs={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ea=Object.assign,ta={};function zn(e,t,n){this.props=e,this.context=t,this.refs=ta,this.updater=n||Zs}zn.prototype.isReactComponent={},zn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},zn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function na(){}na.prototype=zn.prototype;function Vl(e,t,n){this.props=e,this.context=t,this.refs=ta,this.updater=n||Zs}var Wl=Vl.prototype=new na;Wl.constructor=Vl,ea(Wl,zn.prototype),Wl.isPureReactComponent=!0;var ra=Array.isArray,ia=Object.prototype.hasOwnProperty,Ql={current:null},la={key:!0,ref:!0,__self:!0,__source:!0};function oa(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)ia.call(t,r)&&!la.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var s=Array(u),a=0;a<u;a++)s[a]=arguments[a+2];i.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:ar,type:e,key:l,ref:o,props:i,_owner:Ql.current}}function Mh(e,t){return{$$typeof:ar,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Yl(e){return typeof e=="object"&&e!==null&&e.$$typeof===ar}function Oh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ua=/\/+/g;function Kl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Oh(""+e.key):t.toString(36)}function pi(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ar:case Th:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Kl(o,0):r,ra(i)?(n="",e!=null&&(n=e.replace(ua,"$&/")+"/"),pi(i,t,n,"",function(a){return a})):i!=null&&(Yl(i)&&(i=Mh(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(ua,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",ra(e))for(var u=0;u<e.length;u++){l=e[u];var s=r+Kl(l,u);o+=pi(l,t,n,s,i)}else if(s=Fh(e),typeof s=="function")for(e=s.call(e),u=0;!(l=e.next()).done;)l=l.value,s=r+Kl(l,u++),o+=pi(l,t,n,s,i);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function di(e,t,n){if(e==null)return e;var r=[],i=0;return pi(e,r,"","",function(l){return t.call(n,l,i++)}),r}function jh(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Le={current:null},hi={transition:null},Bh={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:hi,ReactCurrentOwner:Ql};function sa(){throw Error("act(...) is not supported in production builds of React.")}Q.Children={map:di,forEach:function(e,t,n){di(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return di(e,function(){t++}),t},toArray:function(e){return di(e,function(t){return t})||[]},only:function(e){if(!Yl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Q.Component=zn,Q.Fragment=Ph,Q.Profiler=Ih,Q.PureComponent=Vl,Q.StrictMode=_h,Q.Suspense=Dh,Q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bh,Q.act=sa,Q.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ea({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=Ql.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)ia.call(t,s)&&!la.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&u!==void 0?u[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){u=Array(s);for(var a=0;a<s;a++)u[a]=arguments[a+2];r.children=u}return{$$typeof:ar,type:e.type,key:i,ref:l,props:r,_owner:o}},Q.createContext=function(e){return e={$$typeof:Lh,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Nh,_context:e},e.Consumer=e},Q.createElement=oa,Q.createFactory=function(e){var t=oa.bind(null,e);return t.type=e,t},Q.createRef=function(){return{current:null}},Q.forwardRef=function(e){return{$$typeof:Ah,render:e}},Q.isValidElement=Yl,Q.lazy=function(e){return{$$typeof:bh,_payload:{_status:-1,_result:e},_init:jh}},Q.memo=function(e,t){return{$$typeof:Rh,type:e,compare:t===void 0?null:t}},Q.startTransition=function(e){var t=hi.transition;hi.transition={};try{e()}finally{hi.transition=t}},Q.unstable_act=sa,Q.useCallback=function(e,t){return Le.current.useCallback(e,t)},Q.useContext=function(e){return Le.current.useContext(e)},Q.useDebugValue=function(){},Q.useDeferredValue=function(e){return Le.current.useDeferredValue(e)},Q.useEffect=function(e,t){return Le.current.useEffect(e,t)},Q.useId=function(){return Le.current.useId()},Q.useImperativeHandle=function(e,t,n){return Le.current.useImperativeHandle(e,t,n)},Q.useInsertionEffect=function(e,t){return Le.current.useInsertionEffect(e,t)},Q.useLayoutEffect=function(e,t){return Le.current.useLayoutEffect(e,t)},Q.useMemo=function(e,t){return Le.current.useMemo(e,t)},Q.useReducer=function(e,t,n){return Le.current.useReducer(e,t,n)},Q.useRef=function(e){return Le.current.useRef(e)},Q.useState=function(e){return Le.current.useState(e)},Q.useSyncExternalStore=function(e,t,n){return Le.current.useSyncExternalStore(e,t,n)},Q.useTransition=function(){return Le.current.useTransition()},Q.version="18.3.1",Gs.exports=Q;var U=Gs.exports;const Uh=Hl(U);/**
9
+ */var ar=Symbol.for("react.element"),Th=Symbol.for("react.portal"),Ph=Symbol.for("react.fragment"),_h=Symbol.for("react.strict_mode"),Ih=Symbol.for("react.profiler"),Nh=Symbol.for("react.provider"),Lh=Symbol.for("react.context"),Ah=Symbol.for("react.forward_ref"),Dh=Symbol.for("react.suspense"),Rh=Symbol.for("react.memo"),bh=Symbol.for("react.lazy"),Js=Symbol.iterator;function Fh(e){return e===null||typeof e!="object"?null:(e=Js&&e[Js]||e["@@iterator"],typeof e=="function"?e:null)}var Zs={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ea=Object.assign,ta={};function zn(e,t,n){this.props=e,this.context=t,this.refs=ta,this.updater=n||Zs}zn.prototype.isReactComponent={},zn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},zn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function na(){}na.prototype=zn.prototype;function Vl(e,t,n){this.props=e,this.context=t,this.refs=ta,this.updater=n||Zs}var Wl=Vl.prototype=new na;Wl.constructor=Vl,ea(Wl,zn.prototype),Wl.isPureReactComponent=!0;var ra=Array.isArray,ia=Object.prototype.hasOwnProperty,Ql={current:null},la={key:!0,ref:!0,__self:!0,__source:!0};function oa(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)ia.call(t,r)&&!la.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1<u){for(var s=Array(u),a=0;a<u;a++)s[a]=arguments[a+2];i.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)i[r]===void 0&&(i[r]=u[r]);return{$$typeof:ar,type:e,key:l,ref:o,props:i,_owner:Ql.current}}function Mh(e,t){return{$$typeof:ar,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Yl(e){return typeof e=="object"&&e!==null&&e.$$typeof===ar}function Oh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ua=/\/+/g;function Kl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Oh(""+e.key):t.toString(36)}function pi(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ar:case Th:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Kl(o,0):r,ra(i)?(n="",e!=null&&(n=e.replace(ua,"$&/")+"/"),pi(i,t,n,"",function(a){return a})):i!=null&&(Yl(i)&&(i=Mh(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(ua,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",ra(e))for(var u=0;u<e.length;u++){l=e[u];var s=r+Kl(l,u);o+=pi(l,t,n,s,i)}else if(s=Fh(e),typeof s=="function")for(e=s.call(e),u=0;!(l=e.next()).done;)l=l.value,s=r+Kl(l,u++),o+=pi(l,t,n,s,i);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function di(e,t,n){if(e==null)return e;var r=[],i=0;return pi(e,r,"","",function(l){return t.call(n,l,i++)}),r}function jh(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Le={current:null},hi={transition:null},Bh={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:hi,ReactCurrentOwner:Ql};function sa(){throw Error("act(...) is not supported in production builds of React.")}Q.Children={map:di,forEach:function(e,t,n){di(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return di(e,function(){t++}),t},toArray:function(e){return di(e,function(t){return t})||[]},only:function(e){if(!Yl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Q.Component=zn,Q.Fragment=Ph,Q.Profiler=Ih,Q.PureComponent=Vl,Q.StrictMode=_h,Q.Suspense=Dh,Q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bh,Q.act=sa,Q.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ea({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=Ql.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)ia.call(t,s)&&!la.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&u!==void 0?u[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){u=Array(s);for(var a=0;a<s;a++)u[a]=arguments[a+2];r.children=u}return{$$typeof:ar,type:e.type,key:i,ref:l,props:r,_owner:o}},Q.createContext=function(e){return e={$$typeof:Lh,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Nh,_context:e},e.Consumer=e},Q.createElement=oa,Q.createFactory=function(e){var t=oa.bind(null,e);return t.type=e,t},Q.createRef=function(){return{current:null}},Q.forwardRef=function(e){return{$$typeof:Ah,render:e}},Q.isValidElement=Yl,Q.lazy=function(e){return{$$typeof:bh,_payload:{_status:-1,_result:e},_init:jh}},Q.memo=function(e,t){return{$$typeof:Rh,type:e,compare:t===void 0?null:t}},Q.startTransition=function(e){var t=hi.transition;hi.transition={};try{e()}finally{hi.transition=t}},Q.unstable_act=sa,Q.useCallback=function(e,t){return Le.current.useCallback(e,t)},Q.useContext=function(e){return Le.current.useContext(e)},Q.useDebugValue=function(){},Q.useDeferredValue=function(e){return Le.current.useDeferredValue(e)},Q.useEffect=function(e,t){return Le.current.useEffect(e,t)},Q.useId=function(){return Le.current.useId()},Q.useImperativeHandle=function(e,t,n){return Le.current.useImperativeHandle(e,t,n)},Q.useInsertionEffect=function(e,t){return Le.current.useInsertionEffect(e,t)},Q.useLayoutEffect=function(e,t){return Le.current.useLayoutEffect(e,t)},Q.useMemo=function(e,t){return Le.current.useMemo(e,t)},Q.useReducer=function(e,t,n){return Le.current.useReducer(e,t,n)},Q.useRef=function(e){return Le.current.useRef(e)},Q.useState=function(e){return Le.current.useState(e)},Q.useSyncExternalStore=function(e,t,n){return Le.current.useSyncExternalStore(e,t,n)},Q.useTransition=function(){return Le.current.useTransition()},Q.version="18.3.1",Gs.exports=Q;var V=Gs.exports;const Uh=Hl(V);/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.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 $h=U,Hh=Symbol.for("react.element"),Vh=Symbol.for("react.fragment"),Wh=Object.prototype.hasOwnProperty,Qh=$h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yh={key:!0,ref:!0,__self:!0,__source:!0};function aa(e,t,n){var r,i={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Wh.call(t,r)&&!Yh.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Hh,type:e,key:l,ref:o,props:i,_owner:Qh.current}}fi.Fragment=Vh,fi.jsx=aa,fi.jsxs=aa,Xs.exports=fi;var I=Xs.exports,ql={},ca={exports:{}},He={},fa={exports:{}},pa={};/**
17
+ */var $h=V,Hh=Symbol.for("react.element"),Vh=Symbol.for("react.fragment"),Wh=Object.prototype.hasOwnProperty,Qh=$h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yh={key:!0,ref:!0,__self:!0,__source:!0};function aa(e,t,n){var r,i={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Wh.call(t,r)&&!Yh.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Hh,type:e,key:l,ref:o,props:i,_owner:Qh.current}}fi.Fragment=Vh,fi.jsx=aa,fi.jsxs=aa,Xs.exports=fi;var I=Xs.exports,ql={},ca={exports:{}},He={},fa={exports:{}},pa={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.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
- */(function(e){function t(A,j){var k=A.length;A.push(j);e:for(;0<k;){var Z=k-1>>>1,te=A[Z];if(0<i(te,j))A[Z]=j,A[k]=te,k=Z;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var j=A[0],k=A.pop();if(k!==j){A[0]=k;e:for(var Z=0,te=A.length,v=te>>>1;Z<v;){var xe=2*(Z+1)-1,dt=A[xe],se=xe+1,St=A[se];if(0>i(dt,k))se<te&&0>i(St,dt)?(A[Z]=St,A[se]=k,Z=se):(A[Z]=dt,A[xe]=k,Z=xe);else if(se<te&&0>i(St,k))A[Z]=St,A[se]=k,Z=se;else break e}}return j}function i(A,j){var k=A.sortIndex-j.sortIndex;return k!==0?k:A.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var s=[],a=[],f=1,c=null,p=3,d=!1,g=!1,x=!1,E=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(A){for(var j=n(a);j!==null;){if(j.callback===null)r(a);else if(j.startTime<=A)r(a),j.sortIndex=j.expirationTime,t(s,j);else break;j=n(a)}}function C(A){if(x=!1,y(A),!g)if(n(s)!==null)g=!0,M(T);else{var j=n(a);j!==null&&J(C,j.startTime-A)}}function T(A,j){g=!1,x&&(x=!1,h(L),L=-1),d=!0;var k=p;try{for(y(j),c=n(s);c!==null&&(!(c.expirationTime>j)||A&&!R());){var Z=c.callback;if(typeof Z=="function"){c.callback=null,p=c.priorityLevel;var te=Z(c.expirationTime<=j);j=e.unstable_now(),typeof te=="function"?c.callback=te:c===n(s)&&r(s),y(j)}else r(s);c=n(s)}if(c!==null)var v=!0;else{var xe=n(a);xe!==null&&J(C,xe.startTime-j),v=!1}return v}finally{c=null,p=k,d=!1}}var w=!1,P=null,L=-1,O=5,S=-1;function R(){return!(e.unstable_now()-S<O)}function F(){if(P!==null){var A=e.unstable_now();S=A;var j=!0;try{j=P(!0,A)}finally{j?K():(w=!1,P=null)}}else w=!1}var K;if(typeof m=="function")K=function(){m(F)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,W=V.port2;V.port1.onmessage=F,K=function(){W.postMessage(null)}}else K=function(){E(F,0)};function M(A){P=A,w||(w=!0,K())}function J(A,j){L=E(function(){A(e.unstable_now())},j)}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(A){A.callback=null},e.unstable_continueExecution=function(){g||d||(g=!0,M(T))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(A){switch(p){case 1:case 2:case 3:var j=3;break;default:j=p}var k=p;p=j;try{return A()}finally{p=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,j){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var k=p;p=A;try{return j()}finally{p=k}},e.unstable_scheduleCallback=function(A,j,k){var Z=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?Z+k:Z):k=Z,A){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=k+te,A={id:f++,callback:j,priorityLevel:A,startTime:k,expirationTime:te,sortIndex:-1},k>Z?(A.sortIndex=k,t(a,A),n(s)===null&&A===n(a)&&(x?(h(L),L=-1):x=!0,J(C,k-Z))):(A.sortIndex=te,t(s,A),g||d||(g=!0,M(T))),A},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(A){var j=p;return function(){var k=p;p=j;try{return A.apply(this,arguments)}finally{p=k}}}})(pa),fa.exports=pa;var Kh=fa.exports;/**
25
+ */(function(e){function t(A,B){var x=A.length;A.push(B);e:for(;0<x;){var G=x-1>>>1,Z=A[G];if(0<i(Z,B))A[G]=B,A[x]=Z,x=G;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var B=A[0],x=A.pop();if(x!==B){A[0]=x;e:for(var G=0,Z=A.length,v=Z>>>1;G<v;){var ke=2*(G+1)-1,dt=A[ke],ue=ke+1,St=A[ue];if(0>i(dt,x))ue<Z&&0>i(St,dt)?(A[G]=St,A[ue]=x,G=ue):(A[G]=dt,A[ke]=x,G=ke);else if(ue<Z&&0>i(St,x))A[G]=St,A[ue]=x,G=ue;else break e}}return B}function i(A,B){var x=A.sortIndex-B.sortIndex;return x!==0?x:A.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var s=[],a=[],f=1,c=null,p=3,d=!1,g=!1,k=!1,E=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(A){for(var B=n(a);B!==null;){if(B.callback===null)r(a);else if(B.startTime<=A)r(a),B.sortIndex=B.expirationTime,t(s,B);else break;B=n(a)}}function C(A){if(k=!1,y(A),!g)if(n(s)!==null)g=!0,ae(T);else{var B=n(a);B!==null&&oe(C,B.startTime-A)}}function T(A,B){g=!1,k&&(k=!1,h(L),L=-1),d=!0;var x=p;try{for(y(B),c=n(s);c!==null&&(!(c.expirationTime>B)||A&&!R());){var G=c.callback;if(typeof G=="function"){c.callback=null,p=c.priorityLevel;var Z=G(c.expirationTime<=B);B=e.unstable_now(),typeof Z=="function"?c.callback=Z:c===n(s)&&r(s),y(B)}else r(s);c=n(s)}if(c!==null)var v=!0;else{var ke=n(a);ke!==null&&oe(C,ke.startTime-B),v=!1}return v}finally{c=null,p=x,d=!1}}var w=!1,_=null,L=-1,O=5,S=-1;function R(){return!(e.unstable_now()-S<O)}function M(){if(_!==null){var A=e.unstable_now();S=A;var B=!0;try{B=_(!0,A)}finally{B?U():(w=!1,_=null)}}else w=!1}var U;if(typeof m=="function")U=function(){m(M)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,$=F.port2;F.port1.onmessage=M,U=function(){$.postMessage(null)}}else U=function(){E(M,0)};function ae(A){_=A,w||(w=!0,U())}function oe(A,B){L=E(function(){A(e.unstable_now())},B)}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(A){A.callback=null},e.unstable_continueExecution=function(){g||d||(g=!0,ae(T))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(A){switch(p){case 1:case 2:case 3:var B=3;break;default:B=p}var x=p;p=B;try{return A()}finally{p=x}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,B){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var x=p;p=A;try{return B()}finally{p=x}},e.unstable_scheduleCallback=function(A,B,x){var G=e.unstable_now();switch(typeof x=="object"&&x!==null?(x=x.delay,x=typeof x=="number"&&0<x?G+x:G):x=G,A){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=x+Z,A={id:f++,callback:B,priorityLevel:A,startTime:x,expirationTime:Z,sortIndex:-1},x>G?(A.sortIndex=x,t(a,A),n(s)===null&&A===n(a)&&(k?(h(L),L=-1):k=!0,oe(C,x-G))):(A.sortIndex=Z,t(s,A),g||d||(g=!0,ae(T))),A},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(A){var B=p;return function(){var x=p;p=B;try{return A.apply(this,arguments)}finally{p=x}}}})(pa),fa.exports=pa;var Kh=fa.exports;/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,42 +30,42 @@
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 qh=U,Ve=Kh;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da=new Set,cr={};function on(e,t){Tn(e,t),Tn(e+"Capture",t)}function Tn(e,t){for(cr[e]=t,e=0;e<t.length;e++)da.add(t[e])}var Ct=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xl=Object.prototype.hasOwnProperty,Xh=/^[: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]*$/,ha={},ma={};function Gh(e){return Xl.call(ma,e)?!0:Xl.call(ha,e)?!1:Xh.test(e)?ma[e]=!0:(ha[e]=!0,!1)}function Jh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Zh(e,t,n,r){if(t===null||typeof t>"u"||Jh(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ae(e,t,n,r,i,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var Se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Se[e]=new Ae(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Se[t]=new Ae(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Se[e]=new Ae(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Se[e]=new Ae(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Se[e]=new Ae(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Se[e]=new Ae(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Se[e]=new Ae(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Se[e]=new Ae(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Se[e]=new Ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gl=/[\-:]([a-z])/g;function Jl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Gl,Jl);Se[t]=new Ae(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Gl,Jl);Se[t]=new Ae(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Gl,Jl);Se[t]=new Ae(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Se[e]=new Ae(e,1,!1,e.toLowerCase(),null,!1,!1)}),Se.xlinkHref=new Ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Se[e]=new Ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zl(e,t,n,r){var i=Se.hasOwnProperty(t)?Se[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Zh(t,n,i,r)&&(n=null),r||i===null?Gh(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Et=qh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,mi=Symbol.for("react.element"),Pn=Symbol.for("react.portal"),_n=Symbol.for("react.fragment"),eo=Symbol.for("react.strict_mode"),to=Symbol.for("react.profiler"),ga=Symbol.for("react.provider"),ya=Symbol.for("react.context"),no=Symbol.for("react.forward_ref"),ro=Symbol.for("react.suspense"),io=Symbol.for("react.suspense_list"),lo=Symbol.for("react.memo"),Ft=Symbol.for("react.lazy"),ka=Symbol.for("react.offscreen"),xa=Symbol.iterator;function fr(e){return e===null||typeof e!="object"?null:(e=xa&&e[xa]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Object.assign,oo;function pr(e){if(oo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);oo=t&&t[1]||""}return`
33
+ */var qh=V,Ve=Kh;function P(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da=new Set,cr={};function on(e,t){Tn(e,t),Tn(e+"Capture",t)}function Tn(e,t){for(cr[e]=t,e=0;e<t.length;e++)da.add(t[e])}var Ct=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xl=Object.prototype.hasOwnProperty,Xh=/^[: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]*$/,ha={},ma={};function Gh(e){return Xl.call(ma,e)?!0:Xl.call(ha,e)?!1:Xh.test(e)?ma[e]=!0:(ha[e]=!0,!1)}function Jh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Zh(e,t,n,r){if(t===null||typeof t>"u"||Jh(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ae(e,t,n,r,i,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var Se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Se[e]=new Ae(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Se[t]=new Ae(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Se[e]=new Ae(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Se[e]=new Ae(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Se[e]=new Ae(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Se[e]=new Ae(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Se[e]=new Ae(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Se[e]=new Ae(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Se[e]=new Ae(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gl=/[\-:]([a-z])/g;function Jl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Gl,Jl);Se[t]=new Ae(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Gl,Jl);Se[t]=new Ae(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Gl,Jl);Se[t]=new Ae(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Se[e]=new Ae(e,1,!1,e.toLowerCase(),null,!1,!1)}),Se.xlinkHref=new Ae("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Se[e]=new Ae(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zl(e,t,n,r){var i=Se.hasOwnProperty(t)?Se[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Zh(t,n,i,r)&&(n=null),r||i===null?Gh(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Et=qh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,mi=Symbol.for("react.element"),Pn=Symbol.for("react.portal"),_n=Symbol.for("react.fragment"),eo=Symbol.for("react.strict_mode"),to=Symbol.for("react.profiler"),ga=Symbol.for("react.provider"),ya=Symbol.for("react.context"),no=Symbol.for("react.forward_ref"),ro=Symbol.for("react.suspense"),io=Symbol.for("react.suspense_list"),lo=Symbol.for("react.memo"),Ft=Symbol.for("react.lazy"),xa=Symbol.for("react.offscreen"),ka=Symbol.iterator;function fr(e){return e===null||typeof e!="object"?null:(e=ka&&e[ka]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Object.assign,oo;function pr(e){if(oo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);oo=t&&t[1]||""}return`
34
34
  `+oo+e}var uo=!1;function so(e,t){if(!e||uo)return"";uo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var i=a.stack.split(`
35
35
  `),l=r.stack.split(`
36
36
  `),o=i.length-1,u=l.length-1;1<=o&&0<=u&&i[o]!==l[u];)u--;for(;1<=o&&0<=u;o--,u--)if(i[o]!==l[u]){if(o!==1||u!==1)do if(o--,u--,0>u||i[o]!==l[u]){var s=`
37
- `+i[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{uo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pr(e):""}function em(e){switch(e.tag){case 5:return pr(e.type);case 16:return pr("Lazy");case 13:return pr("Suspense");case 19:return pr("SuspenseList");case 0:case 2:case 15:return e=so(e.type,!1),e;case 11:return e=so(e.type.render,!1),e;case 1:return e=so(e.type,!0),e;default:return""}}function ao(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _n:return"Fragment";case Pn:return"Portal";case to:return"Profiler";case eo:return"StrictMode";case ro:return"Suspense";case io:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ya:return(e.displayName||"Context")+".Consumer";case ga:return(e._context.displayName||"Context")+".Provider";case no:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lo:return t=e.displayName||null,t!==null?t:ao(e.type)||"Memo";case Ft:t=e._payload,e=e._init;try{return ao(e(t))}catch{}}return null}function tm(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ao(t);case 8:return t===eo?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function va(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nm(e){var t=va(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gi(e){e._valueTracker||(e._valueTracker=nm(e))}function wa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=va(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function co(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sa(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Mt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ca(e,t){t=t.checked,t!=null&&Zl(e,"checked",t,!1)}function fo(e,t){Ca(e,t);var n=Mt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?po(e,t.type,n):t.hasOwnProperty("defaultValue")&&po(e,t.type,Mt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ea(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function po(e,t,n){(t!=="number"||yi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var dr=Array.isArray;function In(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Mt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ho(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return ce({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function za(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(dr(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Mt(n)}}function Ta(e,t){var n=Mt(t.value),r=Mt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Pa(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function _a(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function mo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_a(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ki,Ia=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ki=ki||document.createElement("div"),ki.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ki.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var mr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rm=["Webkit","ms","Moz","O"];Object.keys(mr).forEach(function(e){rm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mr[t]=mr[e]})});function Na(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||mr.hasOwnProperty(e)&&mr[e]?(""+t).trim():t+"px"}function La(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Na(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var im=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function go(e,t){if(t){if(im[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function yo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ko=null;function xo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vo=null,Nn=null,Ln=null;function Aa(e){if(e=Mr(e)){if(typeof vo!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Ui(t),vo(e.stateNode,e.type,t))}}function Da(e){Nn?Ln?Ln.push(e):Ln=[e]:Nn=e}function Ra(){if(Nn){var e=Nn,t=Ln;if(Ln=Nn=null,Aa(e),t)for(e=0;e<t.length;e++)Aa(t[e])}}function ba(e,t){return e(t)}function Fa(){}var wo=!1;function Ma(e,t,n){if(wo)return e(t,n);wo=!0;try{return ba(e,t,n)}finally{wo=!1,(Nn!==null||Ln!==null)&&(Fa(),Ra())}}function gr(e,t){var n=e.stateNode;if(n===null)return null;var r=Ui(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(_(231,t,typeof n));return n}var So=!1;if(Ct)try{var yr={};Object.defineProperty(yr,"passive",{get:function(){So=!0}}),window.addEventListener("test",yr,yr),window.removeEventListener("test",yr,yr)}catch{So=!1}function lm(e,t,n,r,i,l,o,u,s){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(f){this.onError(f)}}var kr=!1,xi=null,vi=!1,Co=null,om={onError:function(e){kr=!0,xi=e}};function um(e,t,n,r,i,l,o,u,s){kr=!1,xi=null,lm.apply(om,arguments)}function sm(e,t,n,r,i,l,o,u,s){if(um.apply(this,arguments),kr){if(kr){var a=xi;kr=!1,xi=null}else throw Error(_(198));vi||(vi=!0,Co=a)}}function un(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Oa(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ja(e){if(un(e)!==e)throw Error(_(188))}function am(e){var t=e.alternate;if(!t){if(t=un(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return ja(i),e;if(l===r)return ja(i),t;l=l.sibling}throw Error(_(188))}if(n.return!==r.return)n=i,r=l;else{for(var o=!1,u=i.child;u;){if(u===n){o=!0,n=i,r=l;break}if(u===r){o=!0,r=i,n=l;break}u=u.sibling}if(!o){for(u=l.child;u;){if(u===n){o=!0,n=l,r=i;break}if(u===r){o=!0,r=l,n=i;break}u=u.sibling}if(!o)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function Ba(e){return e=am(e),e!==null?Ua(e):null}function Ua(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ua(e);if(t!==null)return t;e=e.sibling}return null}var $a=Ve.unstable_scheduleCallback,Ha=Ve.unstable_cancelCallback,cm=Ve.unstable_shouldYield,fm=Ve.unstable_requestPaint,he=Ve.unstable_now,pm=Ve.unstable_getCurrentPriorityLevel,Eo=Ve.unstable_ImmediatePriority,Va=Ve.unstable_UserBlockingPriority,wi=Ve.unstable_NormalPriority,dm=Ve.unstable_LowPriority,Wa=Ve.unstable_IdlePriority,Si=null,mt=null;function hm(e){if(mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(Si,e,void 0,(e.current.flags&128)===128)}catch{}}var lt=Math.clz32?Math.clz32:ym,mm=Math.log,gm=Math.LN2;function ym(e){return e>>>=0,e===0?32:31-(mm(e)/gm|0)|0}var Ci=64,Ei=4194304;function xr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~i;u!==0?r=xr(u):(l&=o,l!==0&&(r=xr(l)))}else o=n&~i,o!==0?r=xr(o):l!==0&&(r=xr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-lt(t),i=1<<n,r|=e[n],t&=~i;return r}function km(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xm(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-lt(l),u=1<<o,s=i[o];s===-1?(!(u&n)||u&r)&&(i[o]=km(u,t)):s<=t&&(e.expiredLanes|=u),l&=~u}}function zo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Qa(){var e=Ci;return Ci<<=1,!(Ci&4194240)&&(Ci=64),e}function To(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lt(t),e[t]=n}function vm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-lt(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function Po(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-lt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ee=0;function Ya(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ka,_o,qa,Xa,Ga,Io=!1,Ti=[],Ot=null,jt=null,Bt=null,wr=new Map,Sr=new Map,Ut=[],wm="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 submit".split(" ");function Ja(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":jt=null;break;case"mouseover":case"mouseout":Bt=null;break;case"pointerover":case"pointerout":wr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sr.delete(t.pointerId)}}function Cr(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},t!==null&&(t=Mr(t),t!==null&&_o(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Sm(e,t,n,r,i){switch(t){case"focusin":return Ot=Cr(Ot,e,t,n,r,i),!0;case"dragenter":return jt=Cr(jt,e,t,n,r,i),!0;case"mouseover":return Bt=Cr(Bt,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return wr.set(l,Cr(wr.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,Sr.set(l,Cr(Sr.get(l)||null,e,t,n,r,i)),!0}return!1}function Za(e){var t=sn(e.target);if(t!==null){var n=un(t);if(n!==null){if(t=n.tag,t===13){if(t=Oa(n),t!==null){e.blockedOn=t,Ga(e.priority,function(){qa(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Pi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Lo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ko=r,n.target.dispatchEvent(r),ko=null}else return t=Mr(n),t!==null&&_o(t),e.blockedOn=n,!1;t.shift()}return!0}function ec(e,t,n){Pi(e)&&n.delete(t)}function Cm(){Io=!1,Ot!==null&&Pi(Ot)&&(Ot=null),jt!==null&&Pi(jt)&&(jt=null),Bt!==null&&Pi(Bt)&&(Bt=null),wr.forEach(ec),Sr.forEach(ec)}function Er(e,t){e.blockedOn===t&&(e.blockedOn=null,Io||(Io=!0,Ve.unstable_scheduleCallback(Ve.unstable_NormalPriority,Cm)))}function zr(e){function t(i){return Er(i,e)}if(0<Ti.length){Er(Ti[0],e);for(var n=1;n<Ti.length;n++){var r=Ti[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ot!==null&&Er(Ot,e),jt!==null&&Er(jt,e),Bt!==null&&Er(Bt,e),wr.forEach(t),Sr.forEach(t),n=0;n<Ut.length;n++)r=Ut[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ut.length&&(n=Ut[0],n.blockedOn===null);)Za(n),n.blockedOn===null&&Ut.shift()}var An=Et.ReactCurrentBatchConfig,_i=!0;function Em(e,t,n,r){var i=ee,l=An.transition;An.transition=null;try{ee=1,No(e,t,n,r)}finally{ee=i,An.transition=l}}function zm(e,t,n,r){var i=ee,l=An.transition;An.transition=null;try{ee=4,No(e,t,n,r)}finally{ee=i,An.transition=l}}function No(e,t,n,r){if(_i){var i=Lo(e,t,n,r);if(i===null)Ko(e,t,r,Ii,n),Ja(e,r);else if(Sm(i,e,t,n,r))r.stopPropagation();else if(Ja(e,r),t&4&&-1<wm.indexOf(e)){for(;i!==null;){var l=Mr(i);if(l!==null&&Ka(l),l=Lo(e,t,n,r),l===null&&Ko(e,t,r,Ii,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else Ko(e,t,r,null,n)}}var Ii=null;function Lo(e,t,n,r){if(Ii=null,e=xo(r),e=sn(e),e!==null)if(t=un(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Oa(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ii=e,null}function tc(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(pm()){case Eo:return 1;case Va:return 4;case wi:case dm:return 16;case Wa:return 536870912;default:return 16}default:return 16}}var $t=null,Ao=null,Ni=null;function nc(){if(Ni)return Ni;var e,t=Ao,n=t.length,r,i="value"in $t?$t.value:$t.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[l-r];r++);return Ni=i.slice(e,1<r?1-r:void 0)}function Li(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ai(){return!0}function rc(){return!1}function We(e){function t(n,r,i,l,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(l):l[u]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Ai:rc,this.isPropagationStopped=rc,this}return ce(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ai)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ai)},persist:function(){},isPersistent:Ai}),t}var Dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Do=We(Dn),Tr=ce({},Dn,{view:0,detail:0}),Tm=We(Tr),Ro,bo,Pr,Di=ce({},Tr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Pr&&(Pr&&e.type==="mousemove"?(Ro=e.screenX-Pr.screenX,bo=e.screenY-Pr.screenY):bo=Ro=0,Pr=e),Ro)},movementY:function(e){return"movementY"in e?e.movementY:bo}}),ic=We(Di),Pm=ce({},Di,{dataTransfer:0}),_m=We(Pm),Im=ce({},Tr,{relatedTarget:0}),Fo=We(Im),Nm=ce({},Dn,{animationName:0,elapsedTime:0,pseudoElement:0}),Lm=We(Nm),Am=ce({},Dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dm=We(Am),Rm=ce({},Dn,{data:0}),lc=We(Rm),bm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fm={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"},Mm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Om(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Mm[e])?!!t[e]:!1}function Mo(){return Om}var jm=ce({},Tr,{key:function(e){if(e.key){var t=bm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Li(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mo,charCode:function(e){return e.type==="keypress"?Li(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Li(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Bm=We(jm),Um=ce({},Di,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oc=We(Um),$m=ce({},Tr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mo}),Hm=We($m),Vm=ce({},Dn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wm=We(Vm),Qm=ce({},Di,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ym=We(Qm),Km=[9,13,27,32],Oo=Ct&&"CompositionEvent"in window,_r=null;Ct&&"documentMode"in document&&(_r=document.documentMode);var qm=Ct&&"TextEvent"in window&&!_r,uc=Ct&&(!Oo||_r&&8<_r&&11>=_r),sc=" ",ac=!1;function cc(e,t){switch(e){case"keyup":return Km.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rn=!1;function Xm(e,t){switch(e){case"compositionend":return fc(t);case"keypress":return t.which!==32?null:(ac=!0,sc);case"textInput":return e=t.data,e===sc&&ac?null:e;default:return null}}function Gm(e,t){if(Rn)return e==="compositionend"||!Oo&&cc(e,t)?(e=nc(),Ni=Ao=$t=null,Rn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return uc&&t.locale!=="ko"?null:t.data;default:return null}}var Jm={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 pc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Jm[e.type]:t==="textarea"}function dc(e,t,n,r){Da(r),t=Oi(t,"onChange"),0<t.length&&(n=new Do("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ir=null,Nr=null;function Zm(e){Lc(e,0)}function Ri(e){var t=jn(e);if(wa(t))return e}function eg(e,t){if(e==="change")return t}var hc=!1;if(Ct){var jo;if(Ct){var Bo="oninput"in document;if(!Bo){var mc=document.createElement("div");mc.setAttribute("oninput","return;"),Bo=typeof mc.oninput=="function"}jo=Bo}else jo=!1;hc=jo&&(!document.documentMode||9<document.documentMode)}function gc(){Ir&&(Ir.detachEvent("onpropertychange",yc),Nr=Ir=null)}function yc(e){if(e.propertyName==="value"&&Ri(Nr)){var t=[];dc(t,Nr,e,xo(e)),Ma(Zm,t)}}function tg(e,t,n){e==="focusin"?(gc(),Ir=t,Nr=n,Ir.attachEvent("onpropertychange",yc)):e==="focusout"&&gc()}function ng(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ri(Nr)}function rg(e,t){if(e==="click")return Ri(t)}function ig(e,t){if(e==="input"||e==="change")return Ri(t)}function lg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ot=typeof Object.is=="function"?Object.is:lg;function Lr(e,t){if(ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Xl.call(t,i)||!ot(e[i],t[i]))return!1}return!0}function kc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xc(e,t){var n=kc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=kc(n)}}function vc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wc(){for(var e=window,t=yi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yi(e.document)}return t}function Uo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function og(e){var t=wc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vc(n.ownerDocument.documentElement,n)){if(r!==null&&Uo(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=xc(n,l);var o=xc(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ug=Ct&&"documentMode"in document&&11>=document.documentMode,bn=null,$o=null,Ar=null,Ho=!1;function Sc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ho||bn==null||bn!==yi(r)||(r=bn,"selectionStart"in r&&Uo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ar&&Lr(Ar,r)||(Ar=r,r=Oi($o,"onSelect"),0<r.length&&(t=new Do("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=bn)))}function bi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fn={animationend:bi("Animation","AnimationEnd"),animationiteration:bi("Animation","AnimationIteration"),animationstart:bi("Animation","AnimationStart"),transitionend:bi("Transition","TransitionEnd")},Vo={},Cc={};Ct&&(Cc=document.createElement("div").style,"AnimationEvent"in window||(delete Fn.animationend.animation,delete Fn.animationiteration.animation,delete Fn.animationstart.animation),"TransitionEvent"in window||delete Fn.transitionend.transition);function Fi(e){if(Vo[e])return Vo[e];if(!Fn[e])return e;var t=Fn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Cc)return Vo[e]=t[n];return e}var Ec=Fi("animationend"),zc=Fi("animationiteration"),Tc=Fi("animationstart"),Pc=Fi("transitionend"),_c=new Map,Ic="abort auxClick 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(" ");function Ht(e,t){_c.set(e,t),on(t,[e])}for(var Wo=0;Wo<Ic.length;Wo++){var Qo=Ic[Wo],sg=Qo.toLowerCase(),ag=Qo[0].toUpperCase()+Qo.slice(1);Ht(sg,"on"+ag)}Ht(Ec,"onAnimationEnd"),Ht(zc,"onAnimationIteration"),Ht(Tc,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(Pc,"onTransitionEnd"),Tn("onMouseEnter",["mouseout","mouseover"]),Tn("onMouseLeave",["mouseout","mouseover"]),Tn("onPointerEnter",["pointerout","pointerover"]),Tn("onPointerLeave",["pointerout","pointerover"]),on("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),on("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),on("onBeforeInput",["compositionend","keypress","textInput","paste"]),on("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),on("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),on("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="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(" "),cg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Nc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,sm(r,t,void 0,e),e.currentTarget=null}function Lc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var u=r[o],s=u.instance,a=u.currentTarget;if(u=u.listener,s!==l&&i.isPropagationStopped())break e;Nc(i,u,a),l=s}else for(o=0;o<r.length;o++){if(u=r[o],s=u.instance,a=u.currentTarget,u=u.listener,s!==l&&i.isPropagationStopped())break e;Nc(i,u,a),l=s}}}if(vi)throw e=Co,vi=!1,Co=null,e}function oe(e,t){var n=t[eu];n===void 0&&(n=t[eu]=new Set);var r=e+"__bubble";n.has(r)||(Ac(t,e,2,!1),n.add(r))}function Yo(e,t,n){var r=0;t&&(r|=4),Ac(n,e,r,t)}var Mi="_reactListening"+Math.random().toString(36).slice(2);function Rr(e){if(!e[Mi]){e[Mi]=!0,da.forEach(function(n){n!=="selectionchange"&&(cg.has(n)||Yo(n,!1,e),Yo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Mi]||(t[Mi]=!0,Yo("selectionchange",!1,t))}}function Ac(e,t,n,r){switch(tc(t)){case 1:var i=Em;break;case 4:i=zm;break;default:i=No}n=i.bind(null,t,n,e),i=void 0,!So||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ko(e,t,n,r,i){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var u=r.stateNode.containerInfo;if(u===i||u.nodeType===8&&u.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;u!==null;){if(o=sn(u),o===null)return;if(s=o.tag,s===5||s===6){r=l=o;continue e}u=u.parentNode}}r=r.return}Ma(function(){var a=l,f=xo(n),c=[];e:{var p=_c.get(e);if(p!==void 0){var d=Do,g=e;switch(e){case"keypress":if(Li(n)===0)break e;case"keydown":case"keyup":d=Bm;break;case"focusin":g="focus",d=Fo;break;case"focusout":g="blur",d=Fo;break;case"beforeblur":case"afterblur":d=Fo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=ic;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=_m;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=Hm;break;case Ec:case zc:case Tc:d=Lm;break;case Pc:d=Wm;break;case"scroll":d=Tm;break;case"wheel":d=Ym;break;case"copy":case"cut":case"paste":d=Dm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=oc}var x=(t&4)!==0,E=!x&&e==="scroll",h=x?p!==null?p+"Capture":null:p;x=[];for(var m=a,y;m!==null;){y=m;var C=y.stateNode;if(y.tag===5&&C!==null&&(y=C,h!==null&&(C=gr(m,h),C!=null&&x.push(br(m,C,y)))),E)break;m=m.return}0<x.length&&(p=new d(p,g,null,n,f),c.push({event:p,listeners:x}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",p&&n!==ko&&(g=n.relatedTarget||n.fromElement)&&(sn(g)||g[zt]))break e;if((d||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,d?(g=n.relatedTarget||n.toElement,d=a,g=g?sn(g):null,g!==null&&(E=un(g),g!==E||g.tag!==5&&g.tag!==6)&&(g=null)):(d=null,g=a),d!==g)){if(x=ic,C="onMouseLeave",h="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(x=oc,C="onPointerLeave",h="onPointerEnter",m="pointer"),E=d==null?p:jn(d),y=g==null?p:jn(g),p=new x(C,m+"leave",d,n,f),p.target=E,p.relatedTarget=y,C=null,sn(f)===a&&(x=new x(h,m+"enter",g,n,f),x.target=y,x.relatedTarget=E,C=x),E=C,d&&g)t:{for(x=d,h=g,m=0,y=x;y;y=Mn(y))m++;for(y=0,C=h;C;C=Mn(C))y++;for(;0<m-y;)x=Mn(x),m--;for(;0<y-m;)h=Mn(h),y--;for(;m--;){if(x===h||h!==null&&x===h.alternate)break t;x=Mn(x),h=Mn(h)}x=null}else x=null;d!==null&&Dc(c,p,d,x,!1),g!==null&&E!==null&&Dc(c,E,g,x,!0)}}e:{if(p=a?jn(a):window,d=p.nodeName&&p.nodeName.toLowerCase(),d==="select"||d==="input"&&p.type==="file")var T=eg;else if(pc(p))if(hc)T=ig;else{T=ng;var w=tg}else(d=p.nodeName)&&d.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(T=rg);if(T&&(T=T(e,a))){dc(c,T,n,f);break e}w&&w(e,p,a),e==="focusout"&&(w=p._wrapperState)&&w.controlled&&p.type==="number"&&po(p,"number",p.value)}switch(w=a?jn(a):window,e){case"focusin":(pc(w)||w.contentEditable==="true")&&(bn=w,$o=a,Ar=null);break;case"focusout":Ar=$o=bn=null;break;case"mousedown":Ho=!0;break;case"contextmenu":case"mouseup":case"dragend":Ho=!1,Sc(c,n,f);break;case"selectionchange":if(ug)break;case"keydown":case"keyup":Sc(c,n,f)}var P;if(Oo)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Rn?cc(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(uc&&n.locale!=="ko"&&(Rn||L!=="onCompositionStart"?L==="onCompositionEnd"&&Rn&&(P=nc()):($t=f,Ao="value"in $t?$t.value:$t.textContent,Rn=!0)),w=Oi(a,L),0<w.length&&(L=new lc(L,e,null,n,f),c.push({event:L,listeners:w}),P?L.data=P:(P=fc(n),P!==null&&(L.data=P)))),(P=qm?Xm(e,n):Gm(e,n))&&(a=Oi(a,"onBeforeInput"),0<a.length&&(f=new lc("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:a}),f.data=P))}Lc(c,t)})}function br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Oi(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=gr(e,n),l!=null&&r.unshift(br(e,l,i)),l=gr(e,t),l!=null&&r.push(br(e,l,i))),e=e.return}return r}function Mn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Dc(e,t,n,r,i){for(var l=t._reactName,o=[];n!==null&&n!==r;){var u=n,s=u.alternate,a=u.stateNode;if(s!==null&&s===r)break;u.tag===5&&a!==null&&(u=a,i?(s=gr(n,l),s!=null&&o.unshift(br(n,s,u))):i||(s=gr(n,l),s!=null&&o.push(br(n,s,u)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var fg=/\r\n?/g,pg=/\u0000|\uFFFD/g;function Rc(e){return(typeof e=="string"?e:""+e).replace(fg,`
38
- `).replace(pg,"")}function ji(e,t,n){if(t=Rc(t),Rc(e)!==t&&n)throw Error(_(425))}function Bi(){}var qo=null,Xo=null;function Go(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Jo=typeof setTimeout=="function"?setTimeout:void 0,dg=typeof clearTimeout=="function"?clearTimeout:void 0,bc=typeof Promise=="function"?Promise:void 0,hg=typeof queueMicrotask=="function"?queueMicrotask:typeof bc<"u"?function(e){return bc.resolve(null).then(e).catch(mg)}:Jo;function mg(e){setTimeout(function(){throw e})}function Zo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),zr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);zr(t)}function Vt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Fc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var On=Math.random().toString(36).slice(2),gt="__reactFiber$"+On,Fr="__reactProps$"+On,zt="__reactContainer$"+On,eu="__reactEvents$"+On,gg="__reactListeners$"+On,yg="__reactHandles$"+On;function sn(e){var t=e[gt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[zt]||n[gt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Fc(e);e!==null;){if(n=e[gt])return n;e=Fc(e)}return t}e=n,n=e.parentNode}return null}function Mr(e){return e=e[gt]||e[zt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function jn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function Ui(e){return e[Fr]||null}var tu=[],Bn=-1;function Wt(e){return{current:e}}function ue(e){0>Bn||(e.current=tu[Bn],tu[Bn]=null,Bn--)}function ie(e,t){Bn++,tu[Bn]=e.current,e.current=t}var Qt={},ze=Wt(Qt),Fe=Wt(!1),an=Qt;function Un(e,t){var n=e.type.contextTypes;if(!n)return Qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Me(e){return e=e.childContextTypes,e!=null}function $i(){ue(Fe),ue(ze)}function Mc(e,t,n){if(ze.current!==Qt)throw Error(_(168));ie(ze,t),ie(Fe,n)}function Oc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(_(108,tm(e)||"Unknown",i));return ce({},n,r)}function Hi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qt,an=ze.current,ie(ze,e),ie(Fe,Fe.current),!0}function jc(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Oc(e,t,an),r.__reactInternalMemoizedMergedChildContext=e,ue(Fe),ue(ze),ie(ze,e)):ue(Fe),ie(Fe,n)}var Tt=null,Vi=!1,nu=!1;function Bc(e){Tt===null?Tt=[e]:Tt.push(e)}function kg(e){Vi=!0,Bc(e)}function Yt(){if(!nu&&Tt!==null){nu=!0;var e=0,t=ee;try{var n=Tt;for(ee=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Tt=null,Vi=!1}catch(i){throw Tt!==null&&(Tt=Tt.slice(e+1)),$a(Eo,Yt),i}finally{ee=t,nu=!1}}return null}var $n=[],Hn=0,Wi=null,Qi=0,Je=[],Ze=0,cn=null,Pt=1,_t="";function fn(e,t){$n[Hn++]=Qi,$n[Hn++]=Wi,Wi=e,Qi=t}function Uc(e,t,n){Je[Ze++]=Pt,Je[Ze++]=_t,Je[Ze++]=cn,cn=e;var r=Pt;e=_t;var i=32-lt(r)-1;r&=~(1<<i),n+=1;var l=32-lt(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Pt=1<<32-lt(t)+i|n<<i|r,_t=l+e}else Pt=1<<l|n<<i|r,_t=e}function ru(e){e.return!==null&&(fn(e,1),Uc(e,1,0))}function iu(e){for(;e===Wi;)Wi=$n[--Hn],$n[Hn]=null,Qi=$n[--Hn],$n[Hn]=null;for(;e===cn;)cn=Je[--Ze],Je[Ze]=null,_t=Je[--Ze],Je[Ze]=null,Pt=Je[--Ze],Je[Ze]=null}var Qe=null,Ye=null,ae=!1,ut=null;function $c(e,t){var n=rt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Hc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Qe=e,Ye=Vt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Qe=e,Ye=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=cn!==null?{id:Pt,overflow:_t}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=rt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Qe=e,Ye=null,!0):!1;default:return!1}}function lu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ou(e){if(ae){var t=Ye;if(t){var n=t;if(!Hc(e,t)){if(lu(e))throw Error(_(418));t=Vt(n.nextSibling);var r=Qe;t&&Hc(e,t)?$c(r,n):(e.flags=e.flags&-4097|2,ae=!1,Qe=e)}}else{if(lu(e))throw Error(_(418));e.flags=e.flags&-4097|2,ae=!1,Qe=e}}}function Vc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Qe=e}function Yi(e){if(e!==Qe)return!1;if(!ae)return Vc(e),ae=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Go(e.type,e.memoizedProps)),t&&(t=Ye)){if(lu(e))throw Wc(),Error(_(418));for(;t;)$c(e,t),t=Vt(t.nextSibling)}if(Vc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ye=Vt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ye=null}}else Ye=Qe?Vt(e.stateNode.nextSibling):null;return!0}function Wc(){for(var e=Ye;e;)e=Vt(e.nextSibling)}function Vn(){Ye=Qe=null,ae=!1}function uu(e){ut===null?ut=[e]:ut.push(e)}var xg=Et.ReactCurrentBatchConfig;function Or(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(_(309));var r=n.stateNode}if(!r)throw Error(_(147,e));var i=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var u=i.refs;o===null?delete u[l]:u[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function Ki(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qc(e){var t=e._init;return t(e._payload)}function Yc(e){function t(h,m){if(e){var y=h.deletions;y===null?(h.deletions=[m],h.flags|=16):y.push(m)}}function n(h,m){if(!e)return null;for(;m!==null;)t(h,m),m=m.sibling;return null}function r(h,m){for(h=new Map;m!==null;)m.key!==null?h.set(m.key,m):h.set(m.index,m),m=m.sibling;return h}function i(h,m){return h=tn(h,m),h.index=0,h.sibling=null,h}function l(h,m,y){return h.index=y,e?(y=h.alternate,y!==null?(y=y.index,y<m?(h.flags|=2,m):y):(h.flags|=2,m)):(h.flags|=1048576,m)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function u(h,m,y,C){return m===null||m.tag!==6?(m=Ju(y,h.mode,C),m.return=h,m):(m=i(m,y),m.return=h,m)}function s(h,m,y,C){var T=y.type;return T===_n?f(h,m,y.props.children,C,y.key):m!==null&&(m.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Ft&&Qc(T)===m.type)?(C=i(m,y.props),C.ref=Or(h,m,y),C.return=h,C):(C=kl(y.type,y.key,y.props,null,h.mode,C),C.ref=Or(h,m,y),C.return=h,C)}function a(h,m,y,C){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=Zu(y,h.mode,C),m.return=h,m):(m=i(m,y.children||[]),m.return=h,m)}function f(h,m,y,C,T){return m===null||m.tag!==7?(m=xn(y,h.mode,C,T),m.return=h,m):(m=i(m,y),m.return=h,m)}function c(h,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Ju(""+m,h.mode,y),m.return=h,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case mi:return y=kl(m.type,m.key,m.props,null,h.mode,y),y.ref=Or(h,null,m),y.return=h,y;case Pn:return m=Zu(m,h.mode,y),m.return=h,m;case Ft:var C=m._init;return c(h,C(m._payload),y)}if(dr(m)||fr(m))return m=xn(m,h.mode,y,null),m.return=h,m;Ki(h,m)}return null}function p(h,m,y,C){var T=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return T!==null?null:u(h,m,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case mi:return y.key===T?s(h,m,y,C):null;case Pn:return y.key===T?a(h,m,y,C):null;case Ft:return T=y._init,p(h,m,T(y._payload),C)}if(dr(y)||fr(y))return T!==null?null:f(h,m,y,C,null);Ki(h,y)}return null}function d(h,m,y,C,T){if(typeof C=="string"&&C!==""||typeof C=="number")return h=h.get(y)||null,u(m,h,""+C,T);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case mi:return h=h.get(C.key===null?y:C.key)||null,s(m,h,C,T);case Pn:return h=h.get(C.key===null?y:C.key)||null,a(m,h,C,T);case Ft:var w=C._init;return d(h,m,y,w(C._payload),T)}if(dr(C)||fr(C))return h=h.get(y)||null,f(m,h,C,T,null);Ki(m,C)}return null}function g(h,m,y,C){for(var T=null,w=null,P=m,L=m=0,O=null;P!==null&&L<y.length;L++){P.index>L?(O=P,P=null):O=P.sibling;var S=p(h,P,y[L],C);if(S===null){P===null&&(P=O);break}e&&P&&S.alternate===null&&t(h,P),m=l(S,m,L),w===null?T=S:w.sibling=S,w=S,P=O}if(L===y.length)return n(h,P),ae&&fn(h,L),T;if(P===null){for(;L<y.length;L++)P=c(h,y[L],C),P!==null&&(m=l(P,m,L),w===null?T=P:w.sibling=P,w=P);return ae&&fn(h,L),T}for(P=r(h,P);L<y.length;L++)O=d(P,h,L,y[L],C),O!==null&&(e&&O.alternate!==null&&P.delete(O.key===null?L:O.key),m=l(O,m,L),w===null?T=O:w.sibling=O,w=O);return e&&P.forEach(function(R){return t(h,R)}),ae&&fn(h,L),T}function x(h,m,y,C){var T=fr(y);if(typeof T!="function")throw Error(_(150));if(y=T.call(y),y==null)throw Error(_(151));for(var w=T=null,P=m,L=m=0,O=null,S=y.next();P!==null&&!S.done;L++,S=y.next()){P.index>L?(O=P,P=null):O=P.sibling;var R=p(h,P,S.value,C);if(R===null){P===null&&(P=O);break}e&&P&&R.alternate===null&&t(h,P),m=l(R,m,L),w===null?T=R:w.sibling=R,w=R,P=O}if(S.done)return n(h,P),ae&&fn(h,L),T;if(P===null){for(;!S.done;L++,S=y.next())S=c(h,S.value,C),S!==null&&(m=l(S,m,L),w===null?T=S:w.sibling=S,w=S);return ae&&fn(h,L),T}for(P=r(h,P);!S.done;L++,S=y.next())S=d(P,h,L,S.value,C),S!==null&&(e&&S.alternate!==null&&P.delete(S.key===null?L:S.key),m=l(S,m,L),w===null?T=S:w.sibling=S,w=S);return e&&P.forEach(function(F){return t(h,F)}),ae&&fn(h,L),T}function E(h,m,y,C){if(typeof y=="object"&&y!==null&&y.type===_n&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case mi:e:{for(var T=y.key,w=m;w!==null;){if(w.key===T){if(T=y.type,T===_n){if(w.tag===7){n(h,w.sibling),m=i(w,y.props.children),m.return=h,h=m;break e}}else if(w.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Ft&&Qc(T)===w.type){n(h,w.sibling),m=i(w,y.props),m.ref=Or(h,w,y),m.return=h,h=m;break e}n(h,w);break}else t(h,w);w=w.sibling}y.type===_n?(m=xn(y.props.children,h.mode,C,y.key),m.return=h,h=m):(C=kl(y.type,y.key,y.props,null,h.mode,C),C.ref=Or(h,m,y),C.return=h,h=C)}return o(h);case Pn:e:{for(w=y.key;m!==null;){if(m.key===w)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(h,m.sibling),m=i(m,y.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=Zu(y,h.mode,C),m.return=h,h=m}return o(h);case Ft:return w=y._init,E(h,m,w(y._payload),C)}if(dr(y))return g(h,m,y,C);if(fr(y))return x(h,m,y,C);Ki(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(h,m.sibling),m=i(m,y),m.return=h,h=m):(n(h,m),m=Ju(y,h.mode,C),m.return=h,h=m),o(h)):n(h,m)}return E}var Wn=Yc(!0),Kc=Yc(!1),qi=Wt(null),Xi=null,Qn=null,su=null;function au(){su=Qn=Xi=null}function cu(e){var t=qi.current;ue(qi),e._currentValue=t}function fu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Yn(e,t){Xi=e,su=Qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Oe=!0),e.firstContext=null)}function et(e){var t=e._currentValue;if(su!==e)if(e={context:e,memoizedValue:t,next:null},Qn===null){if(Xi===null)throw Error(_(308));Qn=e,Xi.dependencies={lanes:0,firstContext:e}}else Qn=Qn.next=e;return t}var pn=null;function pu(e){pn===null?pn=[e]:pn.push(e)}function qc(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,pu(t)):(n.next=i.next,i.next=n),t.interleaved=n,It(e,r)}function It(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Kt=!1;function du(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Nt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,It(e,n)}return i=r.interleaved,i===null?(t.next=t,pu(r)):(t.next=i.next,i.next=t),r.interleaved=t,It(e,n)}function Gi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Po(e,n)}}function Gc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ji(e,t,n,r){var i=e.updateQueue;Kt=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,u=i.shared.pending;if(u!==null){i.shared.pending=null;var s=u,a=s.next;s.next=null,o===null?l=a:o.next=a,o=s;var f=e.alternate;f!==null&&(f=f.updateQueue,u=f.lastBaseUpdate,u!==o&&(u===null?f.firstBaseUpdate=a:u.next=a,f.lastBaseUpdate=s))}if(l!==null){var c=i.baseState;o=0,f=a=s=null,u=l;do{var p=u.lane,d=u.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:d,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var g=e,x=u;switch(p=t,d=n,x.tag){case 1:if(g=x.payload,typeof g=="function"){c=g.call(d,c,p);break e}c=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=x.payload,p=typeof g=="function"?g.call(d,c,p):g,p==null)break e;c=ce({},c,p);break e;case 2:Kt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[u]:p.push(u))}else d={eventTime:d,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},f===null?(a=f=d,s=c):f=f.next=d,o|=p;if(u=u.next,u===null){if(u=i.shared.pending,u===null)break;p=u,u=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(f===null&&(s=c),i.baseState=s,i.firstBaseUpdate=a,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);mn|=o,e.lanes=o,e.memoizedState=c}}function Jc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(_(191,i));i.call(r)}}}var jr={},yt=Wt(jr),Br=Wt(jr),Ur=Wt(jr);function dn(e){if(e===jr)throw Error(_(174));return e}function hu(e,t){switch(ie(Ur,t),ie(Br,e),ie(yt,jr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mo(t,e)}ue(yt),ie(yt,t)}function Kn(){ue(yt),ue(Br),ue(Ur)}function Zc(e){dn(Ur.current);var t=dn(yt.current),n=mo(t,e.type);t!==n&&(ie(Br,e),ie(yt,n))}function mu(e){Br.current===e&&(ue(yt),ue(Br))}var fe=Wt(0);function Zi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gu=[];function yu(){for(var e=0;e<gu.length;e++)gu[e]._workInProgressVersionPrimary=null;gu.length=0}var el=Et.ReactCurrentDispatcher,ku=Et.ReactCurrentBatchConfig,hn=0,pe=null,ye=null,ve=null,tl=!1,$r=!1,Hr=0,vg=0;function Te(){throw Error(_(321))}function xu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ot(e[n],t[n]))return!1;return!0}function vu(e,t,n,r,i,l){if(hn=l,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,el.current=e===null||e.memoizedState===null?Eg:zg,e=n(r,i),$r){l=0;do{if($r=!1,Hr=0,25<=l)throw Error(_(301));l+=1,ve=ye=null,t.updateQueue=null,el.current=Tg,e=n(r,i)}while($r)}if(el.current=il,t=ye!==null&&ye.next!==null,hn=0,ve=ye=pe=null,tl=!1,t)throw Error(_(300));return e}function wu(){var e=Hr!==0;return Hr=0,e}function kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ve===null?pe.memoizedState=ve=e:ve=ve.next=e,ve}function tt(){if(ye===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=ye.next;var t=ve===null?pe.memoizedState:ve.next;if(t!==null)ve=t,ye=e;else{if(e===null)throw Error(_(310));ye=e,e={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},ve===null?pe.memoizedState=ve=e:ve=ve.next=e}return ve}function Vr(e,t){return typeof t=="function"?t(e):t}function Su(e){var t=tt(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=ye,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var o=i.next;i.next=l.next,l.next=o}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var u=o=null,s=null,a=l;do{var f=a.lane;if((hn&f)===f)s!==null&&(s=s.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var c={lane:f,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};s===null?(u=s=c,o=r):s=s.next=c,pe.lanes|=f,mn|=f}a=a.next}while(a!==null&&a!==l);s===null?o=r:s.next=u,ot(r,t.memoizedState)||(Oe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,pe.lanes|=l,mn|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Cu(e){var t=tt(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do l=e(l,o.action),o=o.next;while(o!==i);ot(l,t.memoizedState)||(Oe=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function ef(){}function tf(e,t){var n=pe,r=tt(),i=t(),l=!ot(r.memoizedState,i);if(l&&(r.memoizedState=i,Oe=!0),r=r.queue,Eu(lf.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||ve!==null&&ve.memoizedState.tag&1){if(n.flags|=2048,Wr(9,rf.bind(null,n,r,i,t),void 0,null),we===null)throw Error(_(349));hn&30||nf(n,t,i)}return i}function nf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=pe.updateQueue,t===null?(t={lastEffect:null,stores:null},pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function rf(e,t,n,r){t.value=n,t.getSnapshot=r,of(t)&&uf(e)}function lf(e,t,n){return n(function(){of(t)&&uf(e)})}function of(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ot(e,n)}catch{return!0}}function uf(e){var t=It(e,1);t!==null&&ft(t,e,1,-1)}function sf(e){var t=kt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:e},t.queue=e,e=e.dispatch=Cg.bind(null,pe,e),[t.memoizedState,e]}function Wr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=pe.updateQueue,t===null?(t={lastEffect:null,stores:null},pe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function af(){return tt().memoizedState}function nl(e,t,n,r){var i=kt();pe.flags|=e,i.memoizedState=Wr(1|t,n,void 0,r===void 0?null:r)}function rl(e,t,n,r){var i=tt();r=r===void 0?null:r;var l=void 0;if(ye!==null){var o=ye.memoizedState;if(l=o.destroy,r!==null&&xu(r,o.deps)){i.memoizedState=Wr(t,n,l,r);return}}pe.flags|=e,i.memoizedState=Wr(1|t,n,l,r)}function cf(e,t){return nl(8390656,8,e,t)}function Eu(e,t){return rl(2048,8,e,t)}function ff(e,t){return rl(4,2,e,t)}function pf(e,t){return rl(4,4,e,t)}function df(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function hf(e,t,n){return n=n!=null?n.concat([e]):null,rl(4,4,df.bind(null,t,e),n)}function zu(){}function mf(e,t){var n=tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function gf(e,t){var n=tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function yf(e,t,n){return hn&21?(ot(n,t)||(n=Qa(),pe.lanes|=n,mn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Oe=!0),e.memoizedState=n)}function wg(e,t){var n=ee;ee=n!==0&&4>n?n:4,e(!0);var r=ku.transition;ku.transition={};try{e(!1),t()}finally{ee=n,ku.transition=r}}function kf(){return tt().memoizedState}function Sg(e,t,n){var r=Zt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xf(e))vf(t,n);else if(n=qc(e,t,n,r),n!==null){var i=Re();ft(n,e,r,i),wf(n,t,r)}}function Cg(e,t,n){var r=Zt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xf(e))vf(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,u=l(o,n);if(i.hasEagerState=!0,i.eagerState=u,ot(u,o)){var s=t.interleaved;s===null?(i.next=i,pu(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=qc(e,t,i,r),n!==null&&(i=Re(),ft(n,e,r,i),wf(n,t,r))}}function xf(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function vf(e,t){$r=tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Po(e,n)}}var il={readContext:et,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useInsertionEffect:Te,useLayoutEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useMutableSource:Te,useSyncExternalStore:Te,useId:Te,unstable_isNewReconciler:!1},Eg={readContext:et,useCallback:function(e,t){return kt().memoizedState=[e,t===void 0?null:t],e},useContext:et,useEffect:cf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nl(4194308,4,df.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nl(4194308,4,e,t)},useInsertionEffect:function(e,t){return nl(4,2,e,t)},useMemo:function(e,t){var n=kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=kt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Sg.bind(null,pe,e),[r.memoizedState,e]},useRef:function(e){var t=kt();return e={current:e},t.memoizedState=e},useState:sf,useDebugValue:zu,useDeferredValue:function(e){return kt().memoizedState=e},useTransition:function(){var e=sf(!1),t=e[0];return e=wg.bind(null,e[1]),kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pe,i=kt();if(ae){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),we===null)throw Error(_(349));hn&30||nf(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,cf(lf.bind(null,r,l,e),[e]),r.flags|=2048,Wr(9,rf.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=kt(),t=we.identifierPrefix;if(ae){var n=_t,r=Pt;n=(r&~(1<<32-lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Hr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=vg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},zg={readContext:et,useCallback:mf,useContext:et,useEffect:Eu,useImperativeHandle:hf,useInsertionEffect:ff,useLayoutEffect:pf,useMemo:gf,useReducer:Su,useRef:af,useState:function(){return Su(Vr)},useDebugValue:zu,useDeferredValue:function(e){var t=tt();return yf(t,ye.memoizedState,e)},useTransition:function(){var e=Su(Vr)[0],t=tt().memoizedState;return[e,t]},useMutableSource:ef,useSyncExternalStore:tf,useId:kf,unstable_isNewReconciler:!1},Tg={readContext:et,useCallback:mf,useContext:et,useEffect:Eu,useImperativeHandle:hf,useInsertionEffect:ff,useLayoutEffect:pf,useMemo:gf,useReducer:Cu,useRef:af,useState:function(){return Cu(Vr)},useDebugValue:zu,useDeferredValue:function(e){var t=tt();return ye===null?t.memoizedState=e:yf(t,ye.memoizedState,e)},useTransition:function(){var e=Cu(Vr)[0],t=tt().memoizedState;return[e,t]},useMutableSource:ef,useSyncExternalStore:tf,useId:kf,unstable_isNewReconciler:!1};function st(e,t){if(e&&e.defaultProps){t=ce({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Tu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ce({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ll={isMounted:function(e){return(e=e._reactInternals)?un(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Re(),i=Zt(e),l=Nt(r,i);l.payload=t,n!=null&&(l.callback=n),t=qt(e,l,i),t!==null&&(ft(t,e,i,r),Gi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Re(),i=Zt(e),l=Nt(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=qt(e,l,i),t!==null&&(ft(t,e,i,r),Gi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Re(),r=Zt(e),i=Nt(n,r);i.tag=2,t!=null&&(i.callback=t),t=qt(e,i,r),t!==null&&(ft(t,e,r,n),Gi(t,e,r))}};function Sf(e,t,n,r,i,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!Lr(n,r)||!Lr(i,l):!0}function Cf(e,t,n){var r=!1,i=Qt,l=t.contextType;return typeof l=="object"&&l!==null?l=et(l):(i=Me(t)?an:ze.current,r=t.contextTypes,l=(r=r!=null)?Un(e,i):Qt),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ll,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function Ef(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ll.enqueueReplaceState(t,t.state,null)}function Pu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},du(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=et(l):(l=Me(t)?an:ze.current,i.context=Un(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Tu(e,t,l,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ll.enqueueReplaceState(i,i.state,null),Ji(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function qn(e,t){try{var n="",r=t;do n+=em(r),r=r.return;while(r);var i=n}catch(l){i=`
37
+ `+i[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=u);break}}}finally{uo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pr(e):""}function em(e){switch(e.tag){case 5:return pr(e.type);case 16:return pr("Lazy");case 13:return pr("Suspense");case 19:return pr("SuspenseList");case 0:case 2:case 15:return e=so(e.type,!1),e;case 11:return e=so(e.type.render,!1),e;case 1:return e=so(e.type,!0),e;default:return""}}function ao(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _n:return"Fragment";case Pn:return"Portal";case to:return"Profiler";case eo:return"StrictMode";case ro:return"Suspense";case io:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ya:return(e.displayName||"Context")+".Consumer";case ga:return(e._context.displayName||"Context")+".Provider";case no:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lo:return t=e.displayName||null,t!==null?t:ao(e.type)||"Memo";case Ft:t=e._payload,e=e._init;try{return ao(e(t))}catch{}}return null}function tm(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ao(t);case 8:return t===eo?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function va(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nm(e){var t=va(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gi(e){e._valueTracker||(e._valueTracker=nm(e))}function wa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=va(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function co(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sa(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Mt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ca(e,t){t=t.checked,t!=null&&Zl(e,"checked",t,!1)}function fo(e,t){Ca(e,t);var n=Mt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?po(e,t.type,n):t.hasOwnProperty("defaultValue")&&po(e,t.type,Mt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ea(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function po(e,t,n){(t!=="number"||yi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var dr=Array.isArray;function In(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Mt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ho(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(P(91));return ce({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function za(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(P(92));if(dr(n)){if(1<n.length)throw Error(P(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Mt(n)}}function Ta(e,t){var n=Mt(t.value),r=Mt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Pa(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function _a(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function mo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_a(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var xi,Ia=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(xi=xi||document.createElement("div"),xi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=xi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var mr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rm=["Webkit","ms","Moz","O"];Object.keys(mr).forEach(function(e){rm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mr[t]=mr[e]})});function Na(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||mr.hasOwnProperty(e)&&mr[e]?(""+t).trim():t+"px"}function La(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Na(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var im=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function go(e,t){if(t){if(im[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function yo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xo=null;function ko(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vo=null,Nn=null,Ln=null;function Aa(e){if(e=Mr(e)){if(typeof vo!="function")throw Error(P(280));var t=e.stateNode;t&&(t=Ui(t),vo(e.stateNode,e.type,t))}}function Da(e){Nn?Ln?Ln.push(e):Ln=[e]:Nn=e}function Ra(){if(Nn){var e=Nn,t=Ln;if(Ln=Nn=null,Aa(e),t)for(e=0;e<t.length;e++)Aa(t[e])}}function ba(e,t){return e(t)}function Fa(){}var wo=!1;function Ma(e,t,n){if(wo)return e(t,n);wo=!0;try{return ba(e,t,n)}finally{wo=!1,(Nn!==null||Ln!==null)&&(Fa(),Ra())}}function gr(e,t){var n=e.stateNode;if(n===null)return null;var r=Ui(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(P(231,t,typeof n));return n}var So=!1;if(Ct)try{var yr={};Object.defineProperty(yr,"passive",{get:function(){So=!0}}),window.addEventListener("test",yr,yr),window.removeEventListener("test",yr,yr)}catch{So=!1}function lm(e,t,n,r,i,l,o,u,s){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(f){this.onError(f)}}var xr=!1,ki=null,vi=!1,Co=null,om={onError:function(e){xr=!0,ki=e}};function um(e,t,n,r,i,l,o,u,s){xr=!1,ki=null,lm.apply(om,arguments)}function sm(e,t,n,r,i,l,o,u,s){if(um.apply(this,arguments),xr){if(xr){var a=ki;xr=!1,ki=null}else throw Error(P(198));vi||(vi=!0,Co=a)}}function un(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Oa(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ja(e){if(un(e)!==e)throw Error(P(188))}function am(e){var t=e.alternate;if(!t){if(t=un(e),t===null)throw Error(P(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return ja(i),e;if(l===r)return ja(i),t;l=l.sibling}throw Error(P(188))}if(n.return!==r.return)n=i,r=l;else{for(var o=!1,u=i.child;u;){if(u===n){o=!0,n=i,r=l;break}if(u===r){o=!0,r=i,n=l;break}u=u.sibling}if(!o){for(u=l.child;u;){if(u===n){o=!0,n=l,r=i;break}if(u===r){o=!0,r=l,n=i;break}u=u.sibling}if(!o)throw Error(P(189))}}if(n.alternate!==r)throw Error(P(190))}if(n.tag!==3)throw Error(P(188));return n.stateNode.current===n?e:t}function Ba(e){return e=am(e),e!==null?Ua(e):null}function Ua(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ua(e);if(t!==null)return t;e=e.sibling}return null}var $a=Ve.unstable_scheduleCallback,Ha=Ve.unstable_cancelCallback,cm=Ve.unstable_shouldYield,fm=Ve.unstable_requestPaint,he=Ve.unstable_now,pm=Ve.unstable_getCurrentPriorityLevel,Eo=Ve.unstable_ImmediatePriority,Va=Ve.unstable_UserBlockingPriority,wi=Ve.unstable_NormalPriority,dm=Ve.unstable_LowPriority,Wa=Ve.unstable_IdlePriority,Si=null,mt=null;function hm(e){if(mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(Si,e,void 0,(e.current.flags&128)===128)}catch{}}var lt=Math.clz32?Math.clz32:ym,mm=Math.log,gm=Math.LN2;function ym(e){return e>>>=0,e===0?32:31-(mm(e)/gm|0)|0}var Ci=64,Ei=4194304;function kr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~i;u!==0?r=kr(u):(l&=o,l!==0&&(r=kr(l)))}else o=n&~i,o!==0?r=kr(o):l!==0&&(r=kr(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-lt(t),i=1<<n,r|=e[n],t&=~i;return r}function xm(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function km(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-lt(l),u=1<<o,s=i[o];s===-1?(!(u&n)||u&r)&&(i[o]=xm(u,t)):s<=t&&(e.expiredLanes|=u),l&=~u}}function zo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Qa(){var e=Ci;return Ci<<=1,!(Ci&4194240)&&(Ci=64),e}function To(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-lt(t),e[t]=n}function vm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-lt(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function Po(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-lt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var J=0;function Ya(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ka,_o,qa,Xa,Ga,Io=!1,Ti=[],Ot=null,jt=null,Bt=null,wr=new Map,Sr=new Map,Ut=[],wm="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 submit".split(" ");function Ja(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":jt=null;break;case"mouseover":case"mouseout":Bt=null;break;case"pointerover":case"pointerout":wr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sr.delete(t.pointerId)}}function Cr(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},t!==null&&(t=Mr(t),t!==null&&_o(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Sm(e,t,n,r,i){switch(t){case"focusin":return Ot=Cr(Ot,e,t,n,r,i),!0;case"dragenter":return jt=Cr(jt,e,t,n,r,i),!0;case"mouseover":return Bt=Cr(Bt,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return wr.set(l,Cr(wr.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,Sr.set(l,Cr(Sr.get(l)||null,e,t,n,r,i)),!0}return!1}function Za(e){var t=sn(e.target);if(t!==null){var n=un(t);if(n!==null){if(t=n.tag,t===13){if(t=Oa(n),t!==null){e.blockedOn=t,Ga(e.priority,function(){qa(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Pi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Lo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);xo=r,n.target.dispatchEvent(r),xo=null}else return t=Mr(n),t!==null&&_o(t),e.blockedOn=n,!1;t.shift()}return!0}function ec(e,t,n){Pi(e)&&n.delete(t)}function Cm(){Io=!1,Ot!==null&&Pi(Ot)&&(Ot=null),jt!==null&&Pi(jt)&&(jt=null),Bt!==null&&Pi(Bt)&&(Bt=null),wr.forEach(ec),Sr.forEach(ec)}function Er(e,t){e.blockedOn===t&&(e.blockedOn=null,Io||(Io=!0,Ve.unstable_scheduleCallback(Ve.unstable_NormalPriority,Cm)))}function zr(e){function t(i){return Er(i,e)}if(0<Ti.length){Er(Ti[0],e);for(var n=1;n<Ti.length;n++){var r=Ti[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ot!==null&&Er(Ot,e),jt!==null&&Er(jt,e),Bt!==null&&Er(Bt,e),wr.forEach(t),Sr.forEach(t),n=0;n<Ut.length;n++)r=Ut[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ut.length&&(n=Ut[0],n.blockedOn===null);)Za(n),n.blockedOn===null&&Ut.shift()}var An=Et.ReactCurrentBatchConfig,_i=!0;function Em(e,t,n,r){var i=J,l=An.transition;An.transition=null;try{J=1,No(e,t,n,r)}finally{J=i,An.transition=l}}function zm(e,t,n,r){var i=J,l=An.transition;An.transition=null;try{J=4,No(e,t,n,r)}finally{J=i,An.transition=l}}function No(e,t,n,r){if(_i){var i=Lo(e,t,n,r);if(i===null)Ko(e,t,r,Ii,n),Ja(e,r);else if(Sm(i,e,t,n,r))r.stopPropagation();else if(Ja(e,r),t&4&&-1<wm.indexOf(e)){for(;i!==null;){var l=Mr(i);if(l!==null&&Ka(l),l=Lo(e,t,n,r),l===null&&Ko(e,t,r,Ii,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else Ko(e,t,r,null,n)}}var Ii=null;function Lo(e,t,n,r){if(Ii=null,e=ko(r),e=sn(e),e!==null)if(t=un(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Oa(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ii=e,null}function tc(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(pm()){case Eo:return 1;case Va:return 4;case wi:case dm:return 16;case Wa:return 536870912;default:return 16}default:return 16}}var $t=null,Ao=null,Ni=null;function nc(){if(Ni)return Ni;var e,t=Ao,n=t.length,r,i="value"in $t?$t.value:$t.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[l-r];r++);return Ni=i.slice(e,1<r?1-r:void 0)}function Li(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ai(){return!0}function rc(){return!1}function We(e){function t(n,r,i,l,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(l):l[u]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Ai:rc,this.isPropagationStopped=rc,this}return ce(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ai)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ai)},persist:function(){},isPersistent:Ai}),t}var Dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Do=We(Dn),Tr=ce({},Dn,{view:0,detail:0}),Tm=We(Tr),Ro,bo,Pr,Di=ce({},Tr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Pr&&(Pr&&e.type==="mousemove"?(Ro=e.screenX-Pr.screenX,bo=e.screenY-Pr.screenY):bo=Ro=0,Pr=e),Ro)},movementY:function(e){return"movementY"in e?e.movementY:bo}}),ic=We(Di),Pm=ce({},Di,{dataTransfer:0}),_m=We(Pm),Im=ce({},Tr,{relatedTarget:0}),Fo=We(Im),Nm=ce({},Dn,{animationName:0,elapsedTime:0,pseudoElement:0}),Lm=We(Nm),Am=ce({},Dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dm=We(Am),Rm=ce({},Dn,{data:0}),lc=We(Rm),bm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fm={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"},Mm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Om(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Mm[e])?!!t[e]:!1}function Mo(){return Om}var jm=ce({},Tr,{key:function(e){if(e.key){var t=bm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Li(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Fm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mo,charCode:function(e){return e.type==="keypress"?Li(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Li(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Bm=We(jm),Um=ce({},Di,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oc=We(Um),$m=ce({},Tr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mo}),Hm=We($m),Vm=ce({},Dn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wm=We(Vm),Qm=ce({},Di,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ym=We(Qm),Km=[9,13,27,32],Oo=Ct&&"CompositionEvent"in window,_r=null;Ct&&"documentMode"in document&&(_r=document.documentMode);var qm=Ct&&"TextEvent"in window&&!_r,uc=Ct&&(!Oo||_r&&8<_r&&11>=_r),sc=" ",ac=!1;function cc(e,t){switch(e){case"keyup":return Km.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rn=!1;function Xm(e,t){switch(e){case"compositionend":return fc(t);case"keypress":return t.which!==32?null:(ac=!0,sc);case"textInput":return e=t.data,e===sc&&ac?null:e;default:return null}}function Gm(e,t){if(Rn)return e==="compositionend"||!Oo&&cc(e,t)?(e=nc(),Ni=Ao=$t=null,Rn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return uc&&t.locale!=="ko"?null:t.data;default:return null}}var Jm={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 pc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Jm[e.type]:t==="textarea"}function dc(e,t,n,r){Da(r),t=Oi(t,"onChange"),0<t.length&&(n=new Do("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ir=null,Nr=null;function Zm(e){Lc(e,0)}function Ri(e){var t=jn(e);if(wa(t))return e}function eg(e,t){if(e==="change")return t}var hc=!1;if(Ct){var jo;if(Ct){var Bo="oninput"in document;if(!Bo){var mc=document.createElement("div");mc.setAttribute("oninput","return;"),Bo=typeof mc.oninput=="function"}jo=Bo}else jo=!1;hc=jo&&(!document.documentMode||9<document.documentMode)}function gc(){Ir&&(Ir.detachEvent("onpropertychange",yc),Nr=Ir=null)}function yc(e){if(e.propertyName==="value"&&Ri(Nr)){var t=[];dc(t,Nr,e,ko(e)),Ma(Zm,t)}}function tg(e,t,n){e==="focusin"?(gc(),Ir=t,Nr=n,Ir.attachEvent("onpropertychange",yc)):e==="focusout"&&gc()}function ng(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ri(Nr)}function rg(e,t){if(e==="click")return Ri(t)}function ig(e,t){if(e==="input"||e==="change")return Ri(t)}function lg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ot=typeof Object.is=="function"?Object.is:lg;function Lr(e,t){if(ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Xl.call(t,i)||!ot(e[i],t[i]))return!1}return!0}function xc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kc(e,t){var n=xc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xc(n)}}function vc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wc(){for(var e=window,t=yi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yi(e.document)}return t}function Uo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function og(e){var t=wc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vc(n.ownerDocument.documentElement,n)){if(r!==null&&Uo(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=kc(n,l);var o=kc(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ug=Ct&&"documentMode"in document&&11>=document.documentMode,bn=null,$o=null,Ar=null,Ho=!1;function Sc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ho||bn==null||bn!==yi(r)||(r=bn,"selectionStart"in r&&Uo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ar&&Lr(Ar,r)||(Ar=r,r=Oi($o,"onSelect"),0<r.length&&(t=new Do("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=bn)))}function bi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fn={animationend:bi("Animation","AnimationEnd"),animationiteration:bi("Animation","AnimationIteration"),animationstart:bi("Animation","AnimationStart"),transitionend:bi("Transition","TransitionEnd")},Vo={},Cc={};Ct&&(Cc=document.createElement("div").style,"AnimationEvent"in window||(delete Fn.animationend.animation,delete Fn.animationiteration.animation,delete Fn.animationstart.animation),"TransitionEvent"in window||delete Fn.transitionend.transition);function Fi(e){if(Vo[e])return Vo[e];if(!Fn[e])return e;var t=Fn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Cc)return Vo[e]=t[n];return e}var Ec=Fi("animationend"),zc=Fi("animationiteration"),Tc=Fi("animationstart"),Pc=Fi("transitionend"),_c=new Map,Ic="abort auxClick 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(" ");function Ht(e,t){_c.set(e,t),on(t,[e])}for(var Wo=0;Wo<Ic.length;Wo++){var Qo=Ic[Wo],sg=Qo.toLowerCase(),ag=Qo[0].toUpperCase()+Qo.slice(1);Ht(sg,"on"+ag)}Ht(Ec,"onAnimationEnd"),Ht(zc,"onAnimationIteration"),Ht(Tc,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(Pc,"onTransitionEnd"),Tn("onMouseEnter",["mouseout","mouseover"]),Tn("onMouseLeave",["mouseout","mouseover"]),Tn("onPointerEnter",["pointerout","pointerover"]),Tn("onPointerLeave",["pointerout","pointerover"]),on("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),on("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),on("onBeforeInput",["compositionend","keypress","textInput","paste"]),on("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),on("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),on("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="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(" "),cg=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Nc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,sm(r,t,void 0,e),e.currentTarget=null}function Lc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var u=r[o],s=u.instance,a=u.currentTarget;if(u=u.listener,s!==l&&i.isPropagationStopped())break e;Nc(i,u,a),l=s}else for(o=0;o<r.length;o++){if(u=r[o],s=u.instance,a=u.currentTarget,u=u.listener,s!==l&&i.isPropagationStopped())break e;Nc(i,u,a),l=s}}}if(vi)throw e=Co,vi=!1,Co=null,e}function ie(e,t){var n=t[eu];n===void 0&&(n=t[eu]=new Set);var r=e+"__bubble";n.has(r)||(Ac(t,e,2,!1),n.add(r))}function Yo(e,t,n){var r=0;t&&(r|=4),Ac(n,e,r,t)}var Mi="_reactListening"+Math.random().toString(36).slice(2);function Rr(e){if(!e[Mi]){e[Mi]=!0,da.forEach(function(n){n!=="selectionchange"&&(cg.has(n)||Yo(n,!1,e),Yo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Mi]||(t[Mi]=!0,Yo("selectionchange",!1,t))}}function Ac(e,t,n,r){switch(tc(t)){case 1:var i=Em;break;case 4:i=zm;break;default:i=No}n=i.bind(null,t,n,e),i=void 0,!So||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Ko(e,t,n,r,i){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var u=r.stateNode.containerInfo;if(u===i||u.nodeType===8&&u.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;u!==null;){if(o=sn(u),o===null)return;if(s=o.tag,s===5||s===6){r=l=o;continue e}u=u.parentNode}}r=r.return}Ma(function(){var a=l,f=ko(n),c=[];e:{var p=_c.get(e);if(p!==void 0){var d=Do,g=e;switch(e){case"keypress":if(Li(n)===0)break e;case"keydown":case"keyup":d=Bm;break;case"focusin":g="focus",d=Fo;break;case"focusout":g="blur",d=Fo;break;case"beforeblur":case"afterblur":d=Fo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=ic;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=_m;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=Hm;break;case Ec:case zc:case Tc:d=Lm;break;case Pc:d=Wm;break;case"scroll":d=Tm;break;case"wheel":d=Ym;break;case"copy":case"cut":case"paste":d=Dm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=oc}var k=(t&4)!==0,E=!k&&e==="scroll",h=k?p!==null?p+"Capture":null:p;k=[];for(var m=a,y;m!==null;){y=m;var C=y.stateNode;if(y.tag===5&&C!==null&&(y=C,h!==null&&(C=gr(m,h),C!=null&&k.push(br(m,C,y)))),E)break;m=m.return}0<k.length&&(p=new d(p,g,null,n,f),c.push({event:p,listeners:k}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",p&&n!==xo&&(g=n.relatedTarget||n.fromElement)&&(sn(g)||g[zt]))break e;if((d||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,d?(g=n.relatedTarget||n.toElement,d=a,g=g?sn(g):null,g!==null&&(E=un(g),g!==E||g.tag!==5&&g.tag!==6)&&(g=null)):(d=null,g=a),d!==g)){if(k=ic,C="onMouseLeave",h="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(k=oc,C="onPointerLeave",h="onPointerEnter",m="pointer"),E=d==null?p:jn(d),y=g==null?p:jn(g),p=new k(C,m+"leave",d,n,f),p.target=E,p.relatedTarget=y,C=null,sn(f)===a&&(k=new k(h,m+"enter",g,n,f),k.target=y,k.relatedTarget=E,C=k),E=C,d&&g)t:{for(k=d,h=g,m=0,y=k;y;y=Mn(y))m++;for(y=0,C=h;C;C=Mn(C))y++;for(;0<m-y;)k=Mn(k),m--;for(;0<y-m;)h=Mn(h),y--;for(;m--;){if(k===h||h!==null&&k===h.alternate)break t;k=Mn(k),h=Mn(h)}k=null}else k=null;d!==null&&Dc(c,p,d,k,!1),g!==null&&E!==null&&Dc(c,E,g,k,!0)}}e:{if(p=a?jn(a):window,d=p.nodeName&&p.nodeName.toLowerCase(),d==="select"||d==="input"&&p.type==="file")var T=eg;else if(pc(p))if(hc)T=ig;else{T=ng;var w=tg}else(d=p.nodeName)&&d.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(T=rg);if(T&&(T=T(e,a))){dc(c,T,n,f);break e}w&&w(e,p,a),e==="focusout"&&(w=p._wrapperState)&&w.controlled&&p.type==="number"&&po(p,"number",p.value)}switch(w=a?jn(a):window,e){case"focusin":(pc(w)||w.contentEditable==="true")&&(bn=w,$o=a,Ar=null);break;case"focusout":Ar=$o=bn=null;break;case"mousedown":Ho=!0;break;case"contextmenu":case"mouseup":case"dragend":Ho=!1,Sc(c,n,f);break;case"selectionchange":if(ug)break;case"keydown":case"keyup":Sc(c,n,f)}var _;if(Oo)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Rn?cc(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(uc&&n.locale!=="ko"&&(Rn||L!=="onCompositionStart"?L==="onCompositionEnd"&&Rn&&(_=nc()):($t=f,Ao="value"in $t?$t.value:$t.textContent,Rn=!0)),w=Oi(a,L),0<w.length&&(L=new lc(L,e,null,n,f),c.push({event:L,listeners:w}),_?L.data=_:(_=fc(n),_!==null&&(L.data=_)))),(_=qm?Xm(e,n):Gm(e,n))&&(a=Oi(a,"onBeforeInput"),0<a.length&&(f=new lc("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:a}),f.data=_))}Lc(c,t)})}function br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Oi(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=gr(e,n),l!=null&&r.unshift(br(e,l,i)),l=gr(e,t),l!=null&&r.push(br(e,l,i))),e=e.return}return r}function Mn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Dc(e,t,n,r,i){for(var l=t._reactName,o=[];n!==null&&n!==r;){var u=n,s=u.alternate,a=u.stateNode;if(s!==null&&s===r)break;u.tag===5&&a!==null&&(u=a,i?(s=gr(n,l),s!=null&&o.unshift(br(n,s,u))):i||(s=gr(n,l),s!=null&&o.push(br(n,s,u)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var fg=/\r\n?/g,pg=/\u0000|\uFFFD/g;function Rc(e){return(typeof e=="string"?e:""+e).replace(fg,`
38
+ `).replace(pg,"")}function ji(e,t,n){if(t=Rc(t),Rc(e)!==t&&n)throw Error(P(425))}function Bi(){}var qo=null,Xo=null;function Go(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Jo=typeof setTimeout=="function"?setTimeout:void 0,dg=typeof clearTimeout=="function"?clearTimeout:void 0,bc=typeof Promise=="function"?Promise:void 0,hg=typeof queueMicrotask=="function"?queueMicrotask:typeof bc<"u"?function(e){return bc.resolve(null).then(e).catch(mg)}:Jo;function mg(e){setTimeout(function(){throw e})}function Zo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),zr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);zr(t)}function Vt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Fc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var On=Math.random().toString(36).slice(2),gt="__reactFiber$"+On,Fr="__reactProps$"+On,zt="__reactContainer$"+On,eu="__reactEvents$"+On,gg="__reactListeners$"+On,yg="__reactHandles$"+On;function sn(e){var t=e[gt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[zt]||n[gt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Fc(e);e!==null;){if(n=e[gt])return n;e=Fc(e)}return t}e=n,n=e.parentNode}return null}function Mr(e){return e=e[gt]||e[zt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function jn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(P(33))}function Ui(e){return e[Fr]||null}var tu=[],Bn=-1;function Wt(e){return{current:e}}function le(e){0>Bn||(e.current=tu[Bn],tu[Bn]=null,Bn--)}function ne(e,t){Bn++,tu[Bn]=e.current,e.current=t}var Qt={},ze=Wt(Qt),Fe=Wt(!1),an=Qt;function Un(e,t){var n=e.type.contextTypes;if(!n)return Qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Me(e){return e=e.childContextTypes,e!=null}function $i(){le(Fe),le(ze)}function Mc(e,t,n){if(ze.current!==Qt)throw Error(P(168));ne(ze,t),ne(Fe,n)}function Oc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(P(108,tm(e)||"Unknown",i));return ce({},n,r)}function Hi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qt,an=ze.current,ne(ze,e),ne(Fe,Fe.current),!0}function jc(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=Oc(e,t,an),r.__reactInternalMemoizedMergedChildContext=e,le(Fe),le(ze),ne(ze,e)):le(Fe),ne(Fe,n)}var Tt=null,Vi=!1,nu=!1;function Bc(e){Tt===null?Tt=[e]:Tt.push(e)}function xg(e){Vi=!0,Bc(e)}function Yt(){if(!nu&&Tt!==null){nu=!0;var e=0,t=J;try{var n=Tt;for(J=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Tt=null,Vi=!1}catch(i){throw Tt!==null&&(Tt=Tt.slice(e+1)),$a(Eo,Yt),i}finally{J=t,nu=!1}}return null}var $n=[],Hn=0,Wi=null,Qi=0,Je=[],Ze=0,cn=null,Pt=1,_t="";function fn(e,t){$n[Hn++]=Qi,$n[Hn++]=Wi,Wi=e,Qi=t}function Uc(e,t,n){Je[Ze++]=Pt,Je[Ze++]=_t,Je[Ze++]=cn,cn=e;var r=Pt;e=_t;var i=32-lt(r)-1;r&=~(1<<i),n+=1;var l=32-lt(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Pt=1<<32-lt(t)+i|n<<i|r,_t=l+e}else Pt=1<<l|n<<i|r,_t=e}function ru(e){e.return!==null&&(fn(e,1),Uc(e,1,0))}function iu(e){for(;e===Wi;)Wi=$n[--Hn],$n[Hn]=null,Qi=$n[--Hn],$n[Hn]=null;for(;e===cn;)cn=Je[--Ze],Je[Ze]=null,_t=Je[--Ze],Je[Ze]=null,Pt=Je[--Ze],Je[Ze]=null}var Qe=null,Ye=null,se=!1,ut=null;function $c(e,t){var n=rt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Hc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Qe=e,Ye=Vt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Qe=e,Ye=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=cn!==null?{id:Pt,overflow:_t}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=rt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Qe=e,Ye=null,!0):!1;default:return!1}}function lu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ou(e){if(se){var t=Ye;if(t){var n=t;if(!Hc(e,t)){if(lu(e))throw Error(P(418));t=Vt(n.nextSibling);var r=Qe;t&&Hc(e,t)?$c(r,n):(e.flags=e.flags&-4097|2,se=!1,Qe=e)}}else{if(lu(e))throw Error(P(418));e.flags=e.flags&-4097|2,se=!1,Qe=e}}}function Vc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Qe=e}function Yi(e){if(e!==Qe)return!1;if(!se)return Vc(e),se=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Go(e.type,e.memoizedProps)),t&&(t=Ye)){if(lu(e))throw Wc(),Error(P(418));for(;t;)$c(e,t),t=Vt(t.nextSibling)}if(Vc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ye=Vt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ye=null}}else Ye=Qe?Vt(e.stateNode.nextSibling):null;return!0}function Wc(){for(var e=Ye;e;)e=Vt(e.nextSibling)}function Vn(){Ye=Qe=null,se=!1}function uu(e){ut===null?ut=[e]:ut.push(e)}var kg=Et.ReactCurrentBatchConfig;function Or(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(P(309));var r=n.stateNode}if(!r)throw Error(P(147,e));var i=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var u=i.refs;o===null?delete u[l]:u[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(P(284));if(!n._owner)throw Error(P(290,e))}return e}function Ki(e,t){throw e=Object.prototype.toString.call(t),Error(P(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qc(e){var t=e._init;return t(e._payload)}function Yc(e){function t(h,m){if(e){var y=h.deletions;y===null?(h.deletions=[m],h.flags|=16):y.push(m)}}function n(h,m){if(!e)return null;for(;m!==null;)t(h,m),m=m.sibling;return null}function r(h,m){for(h=new Map;m!==null;)m.key!==null?h.set(m.key,m):h.set(m.index,m),m=m.sibling;return h}function i(h,m){return h=tn(h,m),h.index=0,h.sibling=null,h}function l(h,m,y){return h.index=y,e?(y=h.alternate,y!==null?(y=y.index,y<m?(h.flags|=2,m):y):(h.flags|=2,m)):(h.flags|=1048576,m)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function u(h,m,y,C){return m===null||m.tag!==6?(m=Ju(y,h.mode,C),m.return=h,m):(m=i(m,y),m.return=h,m)}function s(h,m,y,C){var T=y.type;return T===_n?f(h,m,y.props.children,C,y.key):m!==null&&(m.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Ft&&Qc(T)===m.type)?(C=i(m,y.props),C.ref=Or(h,m,y),C.return=h,C):(C=xl(y.type,y.key,y.props,null,h.mode,C),C.ref=Or(h,m,y),C.return=h,C)}function a(h,m,y,C){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=Zu(y,h.mode,C),m.return=h,m):(m=i(m,y.children||[]),m.return=h,m)}function f(h,m,y,C,T){return m===null||m.tag!==7?(m=kn(y,h.mode,C,T),m.return=h,m):(m=i(m,y),m.return=h,m)}function c(h,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Ju(""+m,h.mode,y),m.return=h,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case mi:return y=xl(m.type,m.key,m.props,null,h.mode,y),y.ref=Or(h,null,m),y.return=h,y;case Pn:return m=Zu(m,h.mode,y),m.return=h,m;case Ft:var C=m._init;return c(h,C(m._payload),y)}if(dr(m)||fr(m))return m=kn(m,h.mode,y,null),m.return=h,m;Ki(h,m)}return null}function p(h,m,y,C){var T=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return T!==null?null:u(h,m,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case mi:return y.key===T?s(h,m,y,C):null;case Pn:return y.key===T?a(h,m,y,C):null;case Ft:return T=y._init,p(h,m,T(y._payload),C)}if(dr(y)||fr(y))return T!==null?null:f(h,m,y,C,null);Ki(h,y)}return null}function d(h,m,y,C,T){if(typeof C=="string"&&C!==""||typeof C=="number")return h=h.get(y)||null,u(m,h,""+C,T);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case mi:return h=h.get(C.key===null?y:C.key)||null,s(m,h,C,T);case Pn:return h=h.get(C.key===null?y:C.key)||null,a(m,h,C,T);case Ft:var w=C._init;return d(h,m,y,w(C._payload),T)}if(dr(C)||fr(C))return h=h.get(y)||null,f(m,h,C,T,null);Ki(m,C)}return null}function g(h,m,y,C){for(var T=null,w=null,_=m,L=m=0,O=null;_!==null&&L<y.length;L++){_.index>L?(O=_,_=null):O=_.sibling;var S=p(h,_,y[L],C);if(S===null){_===null&&(_=O);break}e&&_&&S.alternate===null&&t(h,_),m=l(S,m,L),w===null?T=S:w.sibling=S,w=S,_=O}if(L===y.length)return n(h,_),se&&fn(h,L),T;if(_===null){for(;L<y.length;L++)_=c(h,y[L],C),_!==null&&(m=l(_,m,L),w===null?T=_:w.sibling=_,w=_);return se&&fn(h,L),T}for(_=r(h,_);L<y.length;L++)O=d(_,h,L,y[L],C),O!==null&&(e&&O.alternate!==null&&_.delete(O.key===null?L:O.key),m=l(O,m,L),w===null?T=O:w.sibling=O,w=O);return e&&_.forEach(function(R){return t(h,R)}),se&&fn(h,L),T}function k(h,m,y,C){var T=fr(y);if(typeof T!="function")throw Error(P(150));if(y=T.call(y),y==null)throw Error(P(151));for(var w=T=null,_=m,L=m=0,O=null,S=y.next();_!==null&&!S.done;L++,S=y.next()){_.index>L?(O=_,_=null):O=_.sibling;var R=p(h,_,S.value,C);if(R===null){_===null&&(_=O);break}e&&_&&R.alternate===null&&t(h,_),m=l(R,m,L),w===null?T=R:w.sibling=R,w=R,_=O}if(S.done)return n(h,_),se&&fn(h,L),T;if(_===null){for(;!S.done;L++,S=y.next())S=c(h,S.value,C),S!==null&&(m=l(S,m,L),w===null?T=S:w.sibling=S,w=S);return se&&fn(h,L),T}for(_=r(h,_);!S.done;L++,S=y.next())S=d(_,h,L,S.value,C),S!==null&&(e&&S.alternate!==null&&_.delete(S.key===null?L:S.key),m=l(S,m,L),w===null?T=S:w.sibling=S,w=S);return e&&_.forEach(function(M){return t(h,M)}),se&&fn(h,L),T}function E(h,m,y,C){if(typeof y=="object"&&y!==null&&y.type===_n&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case mi:e:{for(var T=y.key,w=m;w!==null;){if(w.key===T){if(T=y.type,T===_n){if(w.tag===7){n(h,w.sibling),m=i(w,y.props.children),m.return=h,h=m;break e}}else if(w.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Ft&&Qc(T)===w.type){n(h,w.sibling),m=i(w,y.props),m.ref=Or(h,w,y),m.return=h,h=m;break e}n(h,w);break}else t(h,w);w=w.sibling}y.type===_n?(m=kn(y.props.children,h.mode,C,y.key),m.return=h,h=m):(C=xl(y.type,y.key,y.props,null,h.mode,C),C.ref=Or(h,m,y),C.return=h,h=C)}return o(h);case Pn:e:{for(w=y.key;m!==null;){if(m.key===w)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(h,m.sibling),m=i(m,y.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=Zu(y,h.mode,C),m.return=h,h=m}return o(h);case Ft:return w=y._init,E(h,m,w(y._payload),C)}if(dr(y))return g(h,m,y,C);if(fr(y))return k(h,m,y,C);Ki(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(h,m.sibling),m=i(m,y),m.return=h,h=m):(n(h,m),m=Ju(y,h.mode,C),m.return=h,h=m),o(h)):n(h,m)}return E}var Wn=Yc(!0),Kc=Yc(!1),qi=Wt(null),Xi=null,Qn=null,su=null;function au(){su=Qn=Xi=null}function cu(e){var t=qi.current;le(qi),e._currentValue=t}function fu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Yn(e,t){Xi=e,su=Qn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Oe=!0),e.firstContext=null)}function et(e){var t=e._currentValue;if(su!==e)if(e={context:e,memoizedValue:t,next:null},Qn===null){if(Xi===null)throw Error(P(308));Qn=e,Xi.dependencies={lanes:0,firstContext:e}}else Qn=Qn.next=e;return t}var pn=null;function pu(e){pn===null?pn=[e]:pn.push(e)}function qc(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,pu(t)):(n.next=i.next,i.next=n),t.interleaved=n,It(e,r)}function It(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Kt=!1;function du(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Nt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function qt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,It(e,n)}return i=r.interleaved,i===null?(t.next=t,pu(r)):(t.next=i.next,i.next=t),r.interleaved=t,It(e,n)}function Gi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Po(e,n)}}function Gc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ji(e,t,n,r){var i=e.updateQueue;Kt=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,u=i.shared.pending;if(u!==null){i.shared.pending=null;var s=u,a=s.next;s.next=null,o===null?l=a:o.next=a,o=s;var f=e.alternate;f!==null&&(f=f.updateQueue,u=f.lastBaseUpdate,u!==o&&(u===null?f.firstBaseUpdate=a:u.next=a,f.lastBaseUpdate=s))}if(l!==null){var c=i.baseState;o=0,f=a=s=null,u=l;do{var p=u.lane,d=u.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:d,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var g=e,k=u;switch(p=t,d=n,k.tag){case 1:if(g=k.payload,typeof g=="function"){c=g.call(d,c,p);break e}c=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=k.payload,p=typeof g=="function"?g.call(d,c,p):g,p==null)break e;c=ce({},c,p);break e;case 2:Kt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[u]:p.push(u))}else d={eventTime:d,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},f===null?(a=f=d,s=c):f=f.next=d,o|=p;if(u=u.next,u===null){if(u=i.shared.pending,u===null)break;p=u,u=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(f===null&&(s=c),i.baseState=s,i.firstBaseUpdate=a,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);mn|=o,e.lanes=o,e.memoizedState=c}}function Jc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(P(191,i));i.call(r)}}}var jr={},yt=Wt(jr),Br=Wt(jr),Ur=Wt(jr);function dn(e){if(e===jr)throw Error(P(174));return e}function hu(e,t){switch(ne(Ur,t),ne(Br,e),ne(yt,jr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mo(t,e)}le(yt),ne(yt,t)}function Kn(){le(yt),le(Br),le(Ur)}function Zc(e){dn(Ur.current);var t=dn(yt.current),n=mo(t,e.type);t!==n&&(ne(Br,e),ne(yt,n))}function mu(e){Br.current===e&&(le(yt),le(Br))}var fe=Wt(0);function Zi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gu=[];function yu(){for(var e=0;e<gu.length;e++)gu[e]._workInProgressVersionPrimary=null;gu.length=0}var el=Et.ReactCurrentDispatcher,xu=Et.ReactCurrentBatchConfig,hn=0,pe=null,ye=null,ve=null,tl=!1,$r=!1,Hr=0,vg=0;function Te(){throw Error(P(321))}function ku(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ot(e[n],t[n]))return!1;return!0}function vu(e,t,n,r,i,l){if(hn=l,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,el.current=e===null||e.memoizedState===null?Eg:zg,e=n(r,i),$r){l=0;do{if($r=!1,Hr=0,25<=l)throw Error(P(301));l+=1,ve=ye=null,t.updateQueue=null,el.current=Tg,e=n(r,i)}while($r)}if(el.current=il,t=ye!==null&&ye.next!==null,hn=0,ve=ye=pe=null,tl=!1,t)throw Error(P(300));return e}function wu(){var e=Hr!==0;return Hr=0,e}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ve===null?pe.memoizedState=ve=e:ve=ve.next=e,ve}function tt(){if(ye===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=ye.next;var t=ve===null?pe.memoizedState:ve.next;if(t!==null)ve=t,ye=e;else{if(e===null)throw Error(P(310));ye=e,e={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},ve===null?pe.memoizedState=ve=e:ve=ve.next=e}return ve}function Vr(e,t){return typeof t=="function"?t(e):t}function Su(e){var t=tt(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=ye,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var o=i.next;i.next=l.next,l.next=o}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var u=o=null,s=null,a=l;do{var f=a.lane;if((hn&f)===f)s!==null&&(s=s.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var c={lane:f,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};s===null?(u=s=c,o=r):s=s.next=c,pe.lanes|=f,mn|=f}a=a.next}while(a!==null&&a!==l);s===null?o=r:s.next=u,ot(r,t.memoizedState)||(Oe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,pe.lanes|=l,mn|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Cu(e){var t=tt(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do l=e(l,o.action),o=o.next;while(o!==i);ot(l,t.memoizedState)||(Oe=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function ef(){}function tf(e,t){var n=pe,r=tt(),i=t(),l=!ot(r.memoizedState,i);if(l&&(r.memoizedState=i,Oe=!0),r=r.queue,Eu(lf.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||ve!==null&&ve.memoizedState.tag&1){if(n.flags|=2048,Wr(9,rf.bind(null,n,r,i,t),void 0,null),we===null)throw Error(P(349));hn&30||nf(n,t,i)}return i}function nf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=pe.updateQueue,t===null?(t={lastEffect:null,stores:null},pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function rf(e,t,n,r){t.value=n,t.getSnapshot=r,of(t)&&uf(e)}function lf(e,t,n){return n(function(){of(t)&&uf(e)})}function of(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ot(e,n)}catch{return!0}}function uf(e){var t=It(e,1);t!==null&&ft(t,e,1,-1)}function sf(e){var t=xt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:e},t.queue=e,e=e.dispatch=Cg.bind(null,pe,e),[t.memoizedState,e]}function Wr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=pe.updateQueue,t===null?(t={lastEffect:null,stores:null},pe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function af(){return tt().memoizedState}function nl(e,t,n,r){var i=xt();pe.flags|=e,i.memoizedState=Wr(1|t,n,void 0,r===void 0?null:r)}function rl(e,t,n,r){var i=tt();r=r===void 0?null:r;var l=void 0;if(ye!==null){var o=ye.memoizedState;if(l=o.destroy,r!==null&&ku(r,o.deps)){i.memoizedState=Wr(t,n,l,r);return}}pe.flags|=e,i.memoizedState=Wr(1|t,n,l,r)}function cf(e,t){return nl(8390656,8,e,t)}function Eu(e,t){return rl(2048,8,e,t)}function ff(e,t){return rl(4,2,e,t)}function pf(e,t){return rl(4,4,e,t)}function df(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function hf(e,t,n){return n=n!=null?n.concat([e]):null,rl(4,4,df.bind(null,t,e),n)}function zu(){}function mf(e,t){var n=tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ku(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function gf(e,t){var n=tt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ku(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function yf(e,t,n){return hn&21?(ot(n,t)||(n=Qa(),pe.lanes|=n,mn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Oe=!0),e.memoizedState=n)}function wg(e,t){var n=J;J=n!==0&&4>n?n:4,e(!0);var r=xu.transition;xu.transition={};try{e(!1),t()}finally{J=n,xu.transition=r}}function xf(){return tt().memoizedState}function Sg(e,t,n){var r=Zt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},kf(e))vf(t,n);else if(n=qc(e,t,n,r),n!==null){var i=Re();ft(n,e,r,i),wf(n,t,r)}}function Cg(e,t,n){var r=Zt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(kf(e))vf(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,u=l(o,n);if(i.hasEagerState=!0,i.eagerState=u,ot(u,o)){var s=t.interleaved;s===null?(i.next=i,pu(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=qc(e,t,i,r),n!==null&&(i=Re(),ft(n,e,r,i),wf(n,t,r))}}function kf(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function vf(e,t){$r=tl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Po(e,n)}}var il={readContext:et,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useInsertionEffect:Te,useLayoutEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useMutableSource:Te,useSyncExternalStore:Te,useId:Te,unstable_isNewReconciler:!1},Eg={readContext:et,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:et,useEffect:cf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nl(4194308,4,df.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nl(4194308,4,e,t)},useInsertionEffect:function(e,t){return nl(4,2,e,t)},useMemo:function(e,t){var n=xt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Sg.bind(null,pe,e),[r.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:sf,useDebugValue:zu,useDeferredValue:function(e){return xt().memoizedState=e},useTransition:function(){var e=sf(!1),t=e[0];return e=wg.bind(null,e[1]),xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pe,i=xt();if(se){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),we===null)throw Error(P(349));hn&30||nf(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,cf(lf.bind(null,r,l,e),[e]),r.flags|=2048,Wr(9,rf.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=xt(),t=we.identifierPrefix;if(se){var n=_t,r=Pt;n=(r&~(1<<32-lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Hr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=vg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},zg={readContext:et,useCallback:mf,useContext:et,useEffect:Eu,useImperativeHandle:hf,useInsertionEffect:ff,useLayoutEffect:pf,useMemo:gf,useReducer:Su,useRef:af,useState:function(){return Su(Vr)},useDebugValue:zu,useDeferredValue:function(e){var t=tt();return yf(t,ye.memoizedState,e)},useTransition:function(){var e=Su(Vr)[0],t=tt().memoizedState;return[e,t]},useMutableSource:ef,useSyncExternalStore:tf,useId:xf,unstable_isNewReconciler:!1},Tg={readContext:et,useCallback:mf,useContext:et,useEffect:Eu,useImperativeHandle:hf,useInsertionEffect:ff,useLayoutEffect:pf,useMemo:gf,useReducer:Cu,useRef:af,useState:function(){return Cu(Vr)},useDebugValue:zu,useDeferredValue:function(e){var t=tt();return ye===null?t.memoizedState=e:yf(t,ye.memoizedState,e)},useTransition:function(){var e=Cu(Vr)[0],t=tt().memoizedState;return[e,t]},useMutableSource:ef,useSyncExternalStore:tf,useId:xf,unstable_isNewReconciler:!1};function st(e,t){if(e&&e.defaultProps){t=ce({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Tu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ce({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ll={isMounted:function(e){return(e=e._reactInternals)?un(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Re(),i=Zt(e),l=Nt(r,i);l.payload=t,n!=null&&(l.callback=n),t=qt(e,l,i),t!==null&&(ft(t,e,i,r),Gi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Re(),i=Zt(e),l=Nt(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=qt(e,l,i),t!==null&&(ft(t,e,i,r),Gi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Re(),r=Zt(e),i=Nt(n,r);i.tag=2,t!=null&&(i.callback=t),t=qt(e,i,r),t!==null&&(ft(t,e,r,n),Gi(t,e,r))}};function Sf(e,t,n,r,i,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!Lr(n,r)||!Lr(i,l):!0}function Cf(e,t,n){var r=!1,i=Qt,l=t.contextType;return typeof l=="object"&&l!==null?l=et(l):(i=Me(t)?an:ze.current,r=t.contextTypes,l=(r=r!=null)?Un(e,i):Qt),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ll,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function Ef(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ll.enqueueReplaceState(t,t.state,null)}function Pu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},du(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=et(l):(l=Me(t)?an:ze.current,i.context=Un(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Tu(e,t,l,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ll.enqueueReplaceState(i,i.state,null),Ji(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function qn(e,t){try{var n="",r=t;do n+=em(r),r=r.return;while(r);var i=n}catch(l){i=`
39
39
  Error generating stack: `+l.message+`
40
- `+l.stack}return{value:e,source:t,stack:i,digest:null}}function _u(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Iu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Pg=typeof WeakMap=="function"?WeakMap:Map;function zf(e,t,n){n=Nt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,Vu=r),Iu(e,t)},n}function Tf(e,t,n){n=Nt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Iu(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Iu(e,t),typeof r!="function"&&(Gt===null?Gt=new Set([this]):Gt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Pf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pg;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ug.bind(null,e,t,n),t.then(e,e))}function _f(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function If(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Nt(-1,1),t.tag=2,qt(n,t,1))),n.lanes|=1),e)}var _g=Et.ReactCurrentOwner,Oe=!1;function De(e,t,n,r){t.child=e===null?Kc(t,null,n,r):Wn(t,e.child,n,r)}function Nf(e,t,n,r,i){n=n.render;var l=t.ref;return Yn(t,i),r=vu(e,t,n,r,l,i),n=wu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Lt(e,t,i)):(ae&&n&&ru(t),t.flags|=1,De(e,t,r,i),t.child)}function Lf(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Gu(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Af(e,t,l,r,i)):(e=kl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:Lr,n(o,r)&&e.ref===t.ref)return Lt(e,t,i)}return t.flags|=1,e=tn(l,r),e.ref=t.ref,e.return=t,t.child=e}function Af(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(Lr(l,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(Oe=!0);else return t.lanes=e.lanes,Lt(e,t,i)}return Nu(e,t,n,r,i)}function Df(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ie(Gn,Ke),Ke|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ie(Gn,Ke),Ke|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,ie(Gn,Ke),Ke|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,ie(Gn,Ke),Ke|=r;return De(e,t,i,n),t.child}function Rf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Nu(e,t,n,r,i){var l=Me(n)?an:ze.current;return l=Un(t,l),Yn(t,i),n=vu(e,t,n,r,l,i),r=wu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Lt(e,t,i)):(ae&&r&&ru(t),t.flags|=1,De(e,t,n,i),t.child)}function bf(e,t,n,r,i){if(Me(n)){var l=!0;Hi(t)}else l=!1;if(Yn(t,i),t.stateNode===null)ul(e,t),Cf(t,n,r),Pu(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,u=t.memoizedProps;o.props=u;var s=o.context,a=n.contextType;typeof a=="object"&&a!==null?a=et(a):(a=Me(n)?an:ze.current,a=Un(t,a));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==r||s!==a)&&Ef(t,o,r,a),Kt=!1;var p=t.memoizedState;o.state=p,Ji(t,r,o,i),s=t.memoizedState,u!==r||p!==s||Fe.current||Kt?(typeof f=="function"&&(Tu(t,n,f,r),s=t.memoizedState),(u=Kt||Sf(t,n,u,r,p,s,a))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=a,r=u):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Xc(e,t),u=t.memoizedProps,a=t.type===t.elementType?u:st(t.type,u),o.props=a,c=t.pendingProps,p=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=et(s):(s=Me(n)?an:ze.current,s=Un(t,s));var d=n.getDerivedStateFromProps;(f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==c||p!==s)&&Ef(t,o,r,s),Kt=!1,p=t.memoizedState,o.state=p,Ji(t,r,o,i);var g=t.memoizedState;u!==c||p!==g||Fe.current||Kt?(typeof d=="function"&&(Tu(t,n,d,r),g=t.memoizedState),(a=Kt||Sf(t,n,a,r,p,g,s)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,g,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,g,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),o.props=r,o.state=g,o.context=s,r=a):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Lu(e,t,n,r,l,i)}function Lu(e,t,n,r,i,l){Rf(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&jc(t,n,!1),Lt(e,t,l);r=t.stateNode,_g.current=t;var u=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Wn(t,e.child,null,l),t.child=Wn(t,null,u,l)):De(e,t,u,l),t.memoizedState=r.state,i&&jc(t,n,!0),t.child}function Ff(e){var t=e.stateNode;t.pendingContext?Mc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Mc(e,t.context,!1),hu(e,t.containerInfo)}function Mf(e,t,n,r,i){return Vn(),uu(i),t.flags|=256,De(e,t,n,r),t.child}var Au={dehydrated:null,treeContext:null,retryLane:0};function Du(e){return{baseLanes:e,cachePool:null,transitions:null}}function Of(e,t,n){var r=t.pendingProps,i=fe.current,l=!1,o=(t.flags&128)!==0,u;if((u=o)||(u=e!==null&&e.memoizedState===null?!1:(i&2)!==0),u?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ie(fe,i&1),e===null)return ou(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=xl(o,r,0,null),e=xn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Du(n),t.memoizedState=Au,e):Ru(t,o));if(i=e.memoizedState,i!==null&&(u=i.dehydrated,u!==null))return Ig(e,t,o,r,u,i,n);if(l){l=r.fallback,o=t.mode,i=e.child,u=i.sibling;var s={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=tn(i,s),r.subtreeFlags=i.subtreeFlags&14680064),u!==null?l=tn(u,l):(l=xn(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?Du(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=Au,r}return l=e.child,e=l.sibling,r=tn(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ru(e,t){return t=xl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ol(e,t,n,r){return r!==null&&uu(r),Wn(t,e.child,null,n),e=Ru(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ig(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=_u(Error(_(422))),ol(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=xl({mode:"visible",children:r.children},i,0,null),l=xn(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&Wn(t,e.child,null,o),t.child.memoizedState=Du(o),t.memoizedState=Au,l);if(!(t.mode&1))return ol(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var u=r.dgst;return r=u,l=Error(_(419)),r=_u(l,r,void 0),ol(e,t,o,r)}if(u=(o&e.childLanes)!==0,Oe||u){if(r=we,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,It(e,i),ft(r,e,i,-1))}return Xu(),r=_u(Error(_(421))),ol(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=$g.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,Ye=Vt(i.nextSibling),Qe=t,ae=!0,ut=null,e!==null&&(Je[Ze++]=Pt,Je[Ze++]=_t,Je[Ze++]=cn,Pt=e.id,_t=e.overflow,cn=t),t=Ru(t,r.children),t.flags|=4096,t)}function jf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),fu(e.return,t,n)}function bu(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function Bf(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(De(e,t,r.children,n),r=fe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jf(e,n,t);else if(e.tag===19)jf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ie(fe,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Zi(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),bu(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Zi(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}bu(t,!0,n,null,l);break;case"together":bu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ul(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Lt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),mn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=tn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ng(e,t,n){switch(t.tag){case 3:Ff(t),Vn();break;case 5:Zc(t);break;case 1:Me(t.type)&&Hi(t);break;case 4:hu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ie(qi,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ie(fe,fe.current&1),t.flags|=128,null):n&t.child.childLanes?Of(e,t,n):(ie(fe,fe.current&1),e=Lt(e,t,n),e!==null?e.sibling:null);ie(fe,fe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Bf(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ie(fe,fe.current),r)break;return null;case 22:case 23:return t.lanes=0,Df(e,t,n)}return Lt(e,t,n)}var Uf,Fu,$f,Hf;Uf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Fu=function(){},$f=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,dn(yt.current);var l=null;switch(n){case"input":i=co(e,i),r=co(e,r),l=[];break;case"select":i=ce({},i,{value:void 0}),r=ce({},r,{value:void 0}),l=[];break;case"textarea":i=ho(e,i),r=ho(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Bi)}go(n,r);var o;n=null;for(a in i)if(!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&i[a]!=null)if(a==="style"){var u=i[a];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(cr.hasOwnProperty(a)?l||(l=[]):(l=l||[]).push(a,null));for(a in r){var s=r[a];if(u=i!=null?i[a]:void 0,r.hasOwnProperty(a)&&s!==u&&(s!=null||u!=null))if(a==="style")if(u){for(o in u)!u.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&u[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(l||(l=[]),l.push(a,n)),n=s;else a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(l=l||[]).push(a,s)):a==="children"?typeof s!="string"&&typeof s!="number"||(l=l||[]).push(a,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(cr.hasOwnProperty(a)?(s!=null&&a==="onScroll"&&oe("scroll",e),l||u===s||(l=[])):(l=l||[]).push(a,s))}n&&(l=l||[]).push("style",n);var a=l;(t.updateQueue=a)&&(t.flags|=4)}},Hf=function(e,t,n,r){n!==r&&(t.flags|=4)};function Qr(e,t){if(!ae)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Lg(e,t,n){var r=t.pendingProps;switch(iu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return Me(t.type)&&$i(),Pe(t),null;case 3:return r=t.stateNode,Kn(),ue(Fe),ue(ze),yu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Yi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ut!==null&&(Yu(ut),ut=null))),Fu(e,t),Pe(t),null;case 5:mu(t);var i=dn(Ur.current);if(n=t.type,e!==null&&t.stateNode!=null)$f(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return Pe(t),null}if(e=dn(yt.current),Yi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[gt]=t,r[Fr]=l,e=(t.mode&1)!==0,n){case"dialog":oe("cancel",r),oe("close",r);break;case"iframe":case"object":case"embed":oe("load",r);break;case"video":case"audio":for(i=0;i<Dr.length;i++)oe(Dr[i],r);break;case"source":oe("error",r);break;case"img":case"image":case"link":oe("error",r),oe("load",r);break;case"details":oe("toggle",r);break;case"input":Sa(r,l),oe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},oe("invalid",r);break;case"textarea":za(r,l),oe("invalid",r)}go(n,l),i=null;for(var o in l)if(l.hasOwnProperty(o)){var u=l[o];o==="children"?typeof u=="string"?r.textContent!==u&&(l.suppressHydrationWarning!==!0&&ji(r.textContent,u,e),i=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(l.suppressHydrationWarning!==!0&&ji(r.textContent,u,e),i=["children",""+u]):cr.hasOwnProperty(o)&&u!=null&&o==="onScroll"&&oe("scroll",r)}switch(n){case"input":gi(r),Ea(r,l,!0);break;case"textarea":gi(r),Pa(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Bi)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=_a(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[gt]=t,e[Fr]=r,Uf(e,t,!1,!1),t.stateNode=e;e:{switch(o=yo(n,r),n){case"dialog":oe("cancel",e),oe("close",e),i=r;break;case"iframe":case"object":case"embed":oe("load",e),i=r;break;case"video":case"audio":for(i=0;i<Dr.length;i++)oe(Dr[i],e);i=r;break;case"source":oe("error",e),i=r;break;case"img":case"image":case"link":oe("error",e),oe("load",e),i=r;break;case"details":oe("toggle",e),i=r;break;case"input":Sa(e,r),i=co(e,r),oe("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ce({},r,{value:void 0}),oe("invalid",e);break;case"textarea":za(e,r),i=ho(e,r),oe("invalid",e);break;default:i=r}go(n,i),u=i;for(l in u)if(u.hasOwnProperty(l)){var s=u[l];l==="style"?La(e,s):l==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Ia(e,s)):l==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&hr(e,s):typeof s=="number"&&hr(e,""+s):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(cr.hasOwnProperty(l)?s!=null&&l==="onScroll"&&oe("scroll",e):s!=null&&Zl(e,l,s,o))}switch(n){case"input":gi(e),Ea(e,r,!1);break;case"textarea":gi(e),Pa(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Mt(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?In(e,!!r.multiple,l,!1):r.defaultValue!=null&&In(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Bi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Pe(t),null;case 6:if(e&&t.stateNode!=null)Hf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));if(n=dn(Ur.current),dn(yt.current),Yi(t)){if(r=t.stateNode,n=t.memoizedProps,r[gt]=t,(l=r.nodeValue!==n)&&(e=Qe,e!==null))switch(e.tag){case 3:ji(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ji(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[gt]=t,t.stateNode=r}return Pe(t),null;case 13:if(ue(fe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ae&&Ye!==null&&t.mode&1&&!(t.flags&128))Wc(),Vn(),t.flags|=98560,l=!1;else if(l=Yi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(_(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(_(317));l[gt]=t}else Vn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pe(t),l=!1}else ut!==null&&(Yu(ut),ut=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||fe.current&1?ke===0&&(ke=3):Xu())),t.updateQueue!==null&&(t.flags|=4),Pe(t),null);case 4:return Kn(),Fu(e,t),e===null&&Rr(t.stateNode.containerInfo),Pe(t),null;case 10:return cu(t.type._context),Pe(t),null;case 17:return Me(t.type)&&$i(),Pe(t),null;case 19:if(ue(fe),l=t.memoizedState,l===null)return Pe(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Qr(l,!1);else{if(ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Zi(e),o!==null){for(t.flags|=128,Qr(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ie(fe,fe.current&1|2),t.child}e=e.sibling}l.tail!==null&&he()>Jn&&(t.flags|=128,r=!0,Qr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Zi(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!ae)return Pe(t),null}else 2*he()-l.renderingStartTime>Jn&&n!==1073741824&&(t.flags|=128,r=!0,Qr(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=he(),t.sibling=null,n=fe.current,ie(fe,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return qu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ke&1073741824&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function Ag(e,t){switch(iu(t),t.tag){case 1:return Me(t.type)&&$i(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kn(),ue(Fe),ue(ze),yu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mu(t),null;case 13:if(ue(fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ue(fe),null;case 4:return Kn(),null;case 10:return cu(t.type._context),null;case 22:case 23:return qu(),null;case 24:return null;default:return null}}var sl=!1,_e=!1,Dg=typeof WeakSet=="function"?WeakSet:Set,b=null;function Xn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){de(e,t,r)}else n.current=null}function Mu(e,t,n){try{n()}catch(r){de(e,t,r)}}var Vf=!1;function Rg(e,t){if(qo=_i,e=wc(),Uo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,u=-1,s=-1,a=0,f=0,c=e,p=null;t:for(;;){for(var d;c!==n||i!==0&&c.nodeType!==3||(u=o+i),c!==l||r!==0&&c.nodeType!==3||(s=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(d=c.firstChild)!==null;)p=c,c=d;for(;;){if(c===e)break t;if(p===n&&++a===i&&(u=o),p===l&&++f===r&&(s=o),(d=c.nextSibling)!==null)break;c=p,p=c.parentNode}c=d}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xo={focusedElem:e,selectionRange:n},_i=!1,b=t;b!==null;)if(t=b,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,b=e;else for(;b!==null;){t=b;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var x=g.memoizedProps,E=g.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?x:st(t.type,x),E);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(C){de(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,b=e;break}b=t.return}return g=Vf,Vf=!1,g}function Yr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&Mu(t,n,l)}i=i.next}while(i!==r)}}function al(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ou(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Wf(e){var t=e.alternate;t!==null&&(e.alternate=null,Wf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gt],delete t[Fr],delete t[eu],delete t[gg],delete t[yg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Qf(e){return e.tag===5||e.tag===3||e.tag===4}function Yf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ju(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Bi));else if(r!==4&&(e=e.child,e!==null))for(ju(e,t,n),e=e.sibling;e!==null;)ju(e,t,n),e=e.sibling}function Bu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Bu(e,t,n),e=e.sibling;e!==null;)Bu(e,t,n),e=e.sibling}var Ce=null,at=!1;function Xt(e,t,n){for(n=n.child;n!==null;)Kf(e,t,n),n=n.sibling}function Kf(e,t,n){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(Si,n)}catch{}switch(n.tag){case 5:_e||Xn(n,t);case 6:var r=Ce,i=at;Ce=null,Xt(e,t,n),Ce=r,at=i,Ce!==null&&(at?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(at?(e=Ce,n=n.stateNode,e.nodeType===8?Zo(e.parentNode,n):e.nodeType===1&&Zo(e,n),zr(e)):Zo(Ce,n.stateNode));break;case 4:r=Ce,i=at,Ce=n.stateNode.containerInfo,at=!0,Xt(e,t,n),Ce=r,at=i;break;case 0:case 11:case 14:case 15:if(!_e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&Mu(n,t,o),i=i.next}while(i!==r)}Xt(e,t,n);break;case 1:if(!_e&&(Xn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){de(n,t,u)}Xt(e,t,n);break;case 21:Xt(e,t,n);break;case 22:n.mode&1?(_e=(r=_e)||n.memoizedState!==null,Xt(e,t,n),_e=r):Xt(e,t,n);break;default:Xt(e,t,n)}}function qf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Dg),t.forEach(function(r){var i=Hg.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var l=e,o=t,u=o;e:for(;u!==null;){switch(u.tag){case 5:Ce=u.stateNode,at=!1;break e;case 3:Ce=u.stateNode.containerInfo,at=!0;break e;case 4:Ce=u.stateNode.containerInfo,at=!0;break e}u=u.return}if(Ce===null)throw Error(_(160));Kf(l,o,i),Ce=null,at=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(a){de(i,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Xf(t,e),t=t.sibling}function Xf(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ct(t,e),xt(e),r&4){try{Yr(3,e,e.return),al(3,e)}catch(x){de(e,e.return,x)}try{Yr(5,e,e.return)}catch(x){de(e,e.return,x)}}break;case 1:ct(t,e),xt(e),r&512&&n!==null&&Xn(n,n.return);break;case 5:if(ct(t,e),xt(e),r&512&&n!==null&&Xn(n,n.return),e.flags&32){var i=e.stateNode;try{hr(i,"")}catch(x){de(e,e.return,x)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,u=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{u==="input"&&l.type==="radio"&&l.name!=null&&Ca(i,l),yo(u,o);var a=yo(u,l);for(o=0;o<s.length;o+=2){var f=s[o],c=s[o+1];f==="style"?La(i,c):f==="dangerouslySetInnerHTML"?Ia(i,c):f==="children"?hr(i,c):Zl(i,f,c,a)}switch(u){case"input":fo(i,l);break;case"textarea":Ta(i,l);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var d=l.value;d!=null?In(i,!!l.multiple,d,!1):p!==!!l.multiple&&(l.defaultValue!=null?In(i,!!l.multiple,l.defaultValue,!0):In(i,!!l.multiple,l.multiple?[]:"",!1))}i[Fr]=l}catch(x){de(e,e.return,x)}}break;case 6:if(ct(t,e),xt(e),r&4){if(e.stateNode===null)throw Error(_(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(x){de(e,e.return,x)}}break;case 3:if(ct(t,e),xt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zr(t.containerInfo)}catch(x){de(e,e.return,x)}break;case 4:ct(t,e),xt(e);break;case 13:ct(t,e),xt(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(Hu=he())),r&4&&qf(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(_e=(a=_e)||f,ct(t,e),_e=a):ct(t,e),xt(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!f&&e.mode&1)for(b=e,f=e.child;f!==null;){for(c=b=f;b!==null;){switch(p=b,d=p.child,p.tag){case 0:case 11:case 14:case 15:Yr(4,p,p.return);break;case 1:Xn(p,p.return);var g=p.stateNode;if(typeof g.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(x){de(r,n,x)}}break;case 5:Xn(p,p.return);break;case 22:if(p.memoizedState!==null){Zf(c);continue}}d!==null?(d.return=p,b=d):Zf(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,a?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(u=c.stateNode,s=c.memoizedProps.style,o=s!=null&&s.hasOwnProperty("display")?s.display:null,u.style.display=Na("display",o))}catch(x){de(e,e.return,x)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(x){de(e,e.return,x)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:ct(t,e),xt(e),r&4&&qf(e);break;case 21:break;default:ct(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Qf(n)){var r=n;break e}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(hr(i,""),r.flags&=-33);var l=Yf(e);Bu(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,u=Yf(e);ju(e,u,o);break;default:throw Error(_(161))}}catch(s){de(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bg(e,t,n){b=e,Gf(e)}function Gf(e,t,n){for(var r=(e.mode&1)!==0;b!==null;){var i=b,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||sl;if(!o){var u=i.alternate,s=u!==null&&u.memoizedState!==null||_e;u=sl;var a=_e;if(sl=o,(_e=s)&&!a)for(b=i;b!==null;)o=b,s=o.child,o.tag===22&&o.memoizedState!==null?ep(i):s!==null?(s.return=o,b=s):ep(i);for(;l!==null;)b=l,Gf(l),l=l.sibling;b=i,sl=u,_e=a}Jf(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,b=l):Jf(e)}}function Jf(e){for(;b!==null;){var t=b;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:_e||al(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!_e)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:st(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Jc(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Jc(t,o,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var f=a.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&zr(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}_e||t.flags&512&&Ou(t)}catch(p){de(t,t.return,p)}}if(t===e){b=null;break}if(n=t.sibling,n!==null){n.return=t.return,b=n;break}b=t.return}}function Zf(e){for(;b!==null;){var t=b;if(t===e){b=null;break}var n=t.sibling;if(n!==null){n.return=t.return,b=n;break}b=t.return}}function ep(e){for(;b!==null;){var t=b;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{al(4,t)}catch(s){de(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){de(t,i,s)}}var l=t.return;try{Ou(t)}catch(s){de(t,l,s)}break;case 5:var o=t.return;try{Ou(t)}catch(s){de(t,o,s)}}}catch(s){de(t,t.return,s)}if(t===e){b=null;break}var u=t.sibling;if(u!==null){u.return=t.return,b=u;break}b=t.return}}var Fg=Math.ceil,cl=Et.ReactCurrentDispatcher,Uu=Et.ReactCurrentOwner,nt=Et.ReactCurrentBatchConfig,G=0,we=null,me=null,Ee=0,Ke=0,Gn=Wt(0),ke=0,Kr=null,mn=0,fl=0,$u=0,qr=null,je=null,Hu=0,Jn=1/0,At=null,pl=!1,Vu=null,Gt=null,dl=!1,Jt=null,hl=0,Xr=0,Wu=null,ml=-1,gl=0;function Re(){return G&6?he():ml!==-1?ml:ml=he()}function Zt(e){return e.mode&1?G&2&&Ee!==0?Ee&-Ee:xg.transition!==null?(gl===0&&(gl=Qa()),gl):(e=ee,e!==0||(e=window.event,e=e===void 0?16:tc(e.type)),e):1}function ft(e,t,n,r){if(50<Xr)throw Xr=0,Wu=null,Error(_(185));vr(e,n,r),(!(G&2)||e!==we)&&(e===we&&(!(G&2)&&(fl|=n),ke===4&&en(e,Ee)),Be(e,r),n===1&&G===0&&!(t.mode&1)&&(Jn=he()+500,Vi&&Yt()))}function Be(e,t){var n=e.callbackNode;xm(e,t);var r=zi(e,e===we?Ee:0);if(r===0)n!==null&&Ha(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ha(n),t===1)e.tag===0?kg(np.bind(null,e)):Bc(np.bind(null,e)),hg(function(){!(G&6)&&Yt()}),n=null;else{switch(Ya(r)){case 1:n=Eo;break;case 4:n=Va;break;case 16:n=wi;break;case 536870912:n=Wa;break;default:n=wi}n=cp(n,tp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function tp(e,t){if(ml=-1,gl=0,G&6)throw Error(_(327));var n=e.callbackNode;if(Zn()&&e.callbackNode!==n)return null;var r=zi(e,e===we?Ee:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=yl(e,r);else{t=r;var i=G;G|=2;var l=ip();(we!==e||Ee!==t)&&(At=null,Jn=he()+500,yn(e,t));do try{jg();break}catch(u){rp(e,u)}while(!0);au(),cl.current=l,G=i,me!==null?t=0:(we=null,Ee=0,t=ke)}if(t!==0){if(t===2&&(i=zo(e),i!==0&&(r=i,t=Qu(e,i))),t===1)throw n=Kr,yn(e,0),en(e,r),Be(e,he()),n;if(t===6)en(e,r);else{if(i=e.current.alternate,!(r&30)&&!Mg(i)&&(t=yl(e,r),t===2&&(l=zo(e),l!==0&&(r=l,t=Qu(e,l))),t===1))throw n=Kr,yn(e,0),en(e,r),Be(e,he()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:kn(e,je,At);break;case 3:if(en(e,r),(r&130023424)===r&&(t=Hu+500-he(),10<t)){if(zi(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Re(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Jo(kn.bind(null,e,je,At),t);break}kn(e,je,At);break;case 4:if(en(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-lt(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fg(r/1960))-r,10<r){e.timeoutHandle=Jo(kn.bind(null,e,je,At),r);break}kn(e,je,At);break;case 5:kn(e,je,At);break;default:throw Error(_(329))}}}return Be(e,he()),e.callbackNode===n?tp.bind(null,e):null}function Qu(e,t){var n=qr;return e.current.memoizedState.isDehydrated&&(yn(e,t).flags|=256),e=yl(e,t),e!==2&&(t=je,je=n,t!==null&&Yu(t)),e}function Yu(e){je===null?je=e:je.push.apply(je,e)}function Mg(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],l=i.getSnapshot;i=i.value;try{if(!ot(l(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function en(e,t){for(t&=~$u,t&=~fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-lt(t),r=1<<n;e[n]=-1,t&=~r}}function np(e){if(G&6)throw Error(_(327));Zn();var t=zi(e,0);if(!(t&1))return Be(e,he()),null;var n=yl(e,t);if(e.tag!==0&&n===2){var r=zo(e);r!==0&&(t=r,n=Qu(e,r))}if(n===1)throw n=Kr,yn(e,0),en(e,t),Be(e,he()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kn(e,je,At),Be(e,he()),null}function Ku(e,t){var n=G;G|=1;try{return e(t)}finally{G=n,G===0&&(Jn=he()+500,Vi&&Yt())}}function gn(e){Jt!==null&&Jt.tag===0&&!(G&6)&&Zn();var t=G;G|=1;var n=nt.transition,r=ee;try{if(nt.transition=null,ee=1,e)return e()}finally{ee=r,nt.transition=n,G=t,!(G&6)&&Yt()}}function qu(){Ke=Gn.current,ue(Gn)}function yn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,dg(n)),me!==null)for(n=me.return;n!==null;){var r=n;switch(iu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&$i();break;case 3:Kn(),ue(Fe),ue(ze),yu();break;case 5:mu(r);break;case 4:Kn();break;case 13:ue(fe);break;case 19:ue(fe);break;case 10:cu(r.type._context);break;case 22:case 23:qu()}n=n.return}if(we=e,me=e=tn(e.current,null),Ee=Ke=t,ke=0,Kr=null,$u=fl=mn=0,je=qr=null,pn!==null){for(t=0;t<pn.length;t++)if(n=pn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=i,r.next=o}n.pending=r}pn=null}return e}function rp(e,t){do{var n=me;try{if(au(),el.current=il,tl){for(var r=pe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}tl=!1}if(hn=0,ve=ye=pe=null,$r=!1,Hr=0,Uu.current=null,n===null||n.return===null){ke=1,Kr=t,me=null;break}e:{var l=e,o=n.return,u=n,s=t;if(t=Ee,u.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var a=s,f=u,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var d=_f(o);if(d!==null){d.flags&=-257,If(d,o,u,l,t),d.mode&1&&Pf(l,a,t),t=d,s=a;var g=t.updateQueue;if(g===null){var x=new Set;x.add(s),t.updateQueue=x}else g.add(s);break e}else{if(!(t&1)){Pf(l,a,t),Xu();break e}s=Error(_(426))}}else if(ae&&u.mode&1){var E=_f(o);if(E!==null){!(E.flags&65536)&&(E.flags|=256),If(E,o,u,l,t),uu(qn(s,u));break e}}l=s=qn(s,u),ke!==4&&(ke=2),qr===null?qr=[l]:qr.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var h=zf(l,s,t);Gc(l,h);break e;case 1:u=s;var m=l.type,y=l.stateNode;if(!(l.flags&128)&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Gt===null||!Gt.has(y)))){l.flags|=65536,t&=-t,l.lanes|=t;var C=Tf(l,u,t);Gc(l,C);break e}}l=l.return}while(l!==null)}op(n)}catch(T){t=T,me===n&&n!==null&&(me=n=n.return);continue}break}while(!0)}function ip(){var e=cl.current;return cl.current=il,e===null?il:e}function Xu(){(ke===0||ke===3||ke===2)&&(ke=4),we===null||!(mn&268435455)&&!(fl&268435455)||en(we,Ee)}function yl(e,t){var n=G;G|=2;var r=ip();(we!==e||Ee!==t)&&(At=null,yn(e,t));do try{Og();break}catch(i){rp(e,i)}while(!0);if(au(),G=n,cl.current=r,me!==null)throw Error(_(261));return we=null,Ee=0,ke}function Og(){for(;me!==null;)lp(me)}function jg(){for(;me!==null&&!cm();)lp(me)}function lp(e){var t=ap(e.alternate,e,Ke);e.memoizedProps=e.pendingProps,t===null?op(e):me=t,Uu.current=null}function op(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ag(n,t),n!==null){n.flags&=32767,me=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ke=6,me=null;return}}else if(n=Lg(n,t,Ke),n!==null){me=n;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);ke===0&&(ke=5)}function kn(e,t,n){var r=ee,i=nt.transition;try{nt.transition=null,ee=1,Bg(e,t,n,r)}finally{nt.transition=i,ee=r}return null}function Bg(e,t,n,r){do Zn();while(Jt!==null);if(G&6)throw Error(_(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(_(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(vm(e,l),e===we&&(me=we=null,Ee=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||dl||(dl=!0,cp(wi,function(){return Zn(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=nt.transition,nt.transition=null;var o=ee;ee=1;var u=G;G|=4,Uu.current=null,Rg(e,n),Xf(n,e),og(Xo),_i=!!qo,Xo=qo=null,e.current=n,bg(n),fm(),G=u,ee=o,nt.transition=l}else e.current=n;if(dl&&(dl=!1,Jt=e,hl=i),l=e.pendingLanes,l===0&&(Gt=null),hm(n.stateNode),Be(e,he()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(pl)throw pl=!1,e=Vu,Vu=null,e;return hl&1&&e.tag!==0&&Zn(),l=e.pendingLanes,l&1?e===Wu?Xr++:(Xr=0,Wu=e):Xr=0,Yt(),null}function Zn(){if(Jt!==null){var e=Ya(hl),t=nt.transition,n=ee;try{if(nt.transition=null,ee=16>e?16:e,Jt===null)var r=!1;else{if(e=Jt,Jt=null,hl=0,G&6)throw Error(_(331));var i=G;for(G|=4,b=e.current;b!==null;){var l=b,o=l.child;if(b.flags&16){var u=l.deletions;if(u!==null){for(var s=0;s<u.length;s++){var a=u[s];for(b=a;b!==null;){var f=b;switch(f.tag){case 0:case 11:case 15:Yr(8,f,l)}var c=f.child;if(c!==null)c.return=f,b=c;else for(;b!==null;){f=b;var p=f.sibling,d=f.return;if(Wf(f),f===a){b=null;break}if(p!==null){p.return=d,b=p;break}b=d}}}var g=l.alternate;if(g!==null){var x=g.child;if(x!==null){g.child=null;do{var E=x.sibling;x.sibling=null,x=E}while(x!==null)}}b=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,b=o;else e:for(;b!==null;){if(l=b,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Yr(9,l,l.return)}var h=l.sibling;if(h!==null){h.return=l.return,b=h;break e}b=l.return}}var m=e.current;for(b=m;b!==null;){o=b;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,b=y;else e:for(o=m;b!==null;){if(u=b,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:al(9,u)}}catch(T){de(u,u.return,T)}if(u===o){b=null;break e}var C=u.sibling;if(C!==null){C.return=u.return,b=C;break e}b=u.return}}if(G=i,Yt(),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(Si,e)}catch{}r=!0}return r}finally{ee=n,nt.transition=t}}return!1}function up(e,t,n){t=qn(n,t),t=zf(e,t,1),e=qt(e,t,1),t=Re(),e!==null&&(vr(e,1,t),Be(e,t))}function de(e,t,n){if(e.tag===3)up(e,e,n);else for(;t!==null;){if(t.tag===3){up(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Gt===null||!Gt.has(r))){e=qn(n,e),e=Tf(t,e,1),t=qt(t,e,1),e=Re(),t!==null&&(vr(t,1,e),Be(t,e));break}}t=t.return}}function Ug(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Re(),e.pingedLanes|=e.suspendedLanes&n,we===e&&(Ee&n)===n&&(ke===4||ke===3&&(Ee&130023424)===Ee&&500>he()-Hu?yn(e,0):$u|=n),Be(e,t)}function sp(e,t){t===0&&(e.mode&1?(t=Ei,Ei<<=1,!(Ei&130023424)&&(Ei=4194304)):t=1);var n=Re();e=It(e,t),e!==null&&(vr(e,t,n),Be(e,n))}function $g(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sp(e,n)}function Hg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),sp(e,n)}var ap;ap=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fe.current)Oe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Oe=!1,Ng(e,t,n);Oe=!!(e.flags&131072)}else Oe=!1,ae&&t.flags&1048576&&Uc(t,Qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ul(e,t),e=t.pendingProps;var i=Un(t,ze.current);Yn(t,n),i=vu(null,t,r,e,i,n);var l=wu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Me(r)?(l=!0,Hi(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,du(t),i.updater=ll,t.stateNode=i,i._reactInternals=t,Pu(t,r,e,n),t=Lu(null,t,r,!0,l,n)):(t.tag=0,ae&&l&&ru(t),De(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ul(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Wg(r),e=st(r,e),i){case 0:t=Nu(null,t,r,e,n);break e;case 1:t=bf(null,t,r,e,n);break e;case 11:t=Nf(null,t,r,e,n);break e;case 14:t=Lf(null,t,r,st(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:st(r,i),Nu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:st(r,i),bf(e,t,r,i,n);case 3:e:{if(Ff(t),e===null)throw Error(_(387));r=t.pendingProps,l=t.memoizedState,i=l.element,Xc(e,t),Ji(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=qn(Error(_(423)),t),t=Mf(e,t,r,n,i);break e}else if(r!==i){i=qn(Error(_(424)),t),t=Mf(e,t,r,n,i);break e}else for(Ye=Vt(t.stateNode.containerInfo.firstChild),Qe=t,ae=!0,ut=null,n=Kc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vn(),r===i){t=Lt(e,t,n);break e}De(e,t,r,n)}t=t.child}return t;case 5:return Zc(t),e===null&&ou(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,Go(r,i)?o=null:l!==null&&Go(r,l)&&(t.flags|=32),Rf(e,t),De(e,t,o,n),t.child;case 6:return e===null&&ou(t),null;case 13:return Of(e,t,n);case 4:return hu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wn(t,null,r,n):De(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:st(r,i),Nf(e,t,r,i,n);case 7:return De(e,t,t.pendingProps,n),t.child;case 8:return De(e,t,t.pendingProps.children,n),t.child;case 12:return De(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,ie(qi,r._currentValue),r._currentValue=o,l!==null)if(ot(l.value,o)){if(l.children===i.children&&!Fe.current){t=Lt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){o=l.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=Nt(-1,n&-n),s.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?s.next=s:(s.next=f.next,f.next=s),a.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),fu(l.return,n,t),u.lanes|=n;break}s=s.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(_(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),fu(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}De(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Yn(t,n),i=et(i),r=r(i),t.flags|=1,De(e,t,r,n),t.child;case 14:return r=t.type,i=st(r,t.pendingProps),i=st(r.type,i),Lf(e,t,r,i,n);case 15:return Af(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:st(r,i),ul(e,t),t.tag=1,Me(r)?(e=!0,Hi(t)):e=!1,Yn(t,n),Cf(t,r,i),Pu(t,r,i,n),Lu(null,t,r,!0,e,n);case 19:return Bf(e,t,n);case 22:return Df(e,t,n)}throw Error(_(156,t.tag))};function cp(e,t){return $a(e,t)}function Vg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rt(e,t,n,r){return new Vg(e,t,n,r)}function Gu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wg(e){if(typeof e=="function")return Gu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===no)return 11;if(e===lo)return 14}return 2}function tn(e,t){var n=e.alternate;return n===null?(n=rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function kl(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Gu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case _n:return xn(n.children,i,l,t);case eo:o=8,i|=8;break;case to:return e=rt(12,n,t,i|2),e.elementType=to,e.lanes=l,e;case ro:return e=rt(13,n,t,i),e.elementType=ro,e.lanes=l,e;case io:return e=rt(19,n,t,i),e.elementType=io,e.lanes=l,e;case ka:return xl(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ga:o=10;break e;case ya:o=9;break e;case no:o=11;break e;case lo:o=14;break e;case Ft:o=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=rt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function xn(e,t,n,r){return e=rt(7,e,r,t),e.lanes=n,e}function xl(e,t,n,r){return e=rt(22,e,r,t),e.elementType=ka,e.lanes=n,e.stateNode={isHidden:!1},e}function Ju(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function Zu(e,t,n){return t=rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qg(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=To(0),this.expirationTimes=To(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=To(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function es(e,t,n,r,i,l,o,u,s){return e=new Qg(e,t,n,u,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=rt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},du(l),e}function Yg(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Pn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function fp(e){if(!e)return Qt;e=e._reactInternals;e:{if(un(e)!==e||e.tag!==1)throw Error(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Me(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(Me(n))return Oc(e,n,t)}return t}function pp(e,t,n,r,i,l,o,u,s){return e=es(n,r,!0,e,i,l,o,u,s),e.context=fp(null),n=e.current,r=Re(),i=Zt(n),l=Nt(r,i),l.callback=t??null,qt(n,l,i),e.current.lanes=i,vr(e,i,r),Be(e,r),e}function vl(e,t,n,r){var i=t.current,l=Re(),o=Zt(i);return n=fp(n),t.context===null?t.context=n:t.pendingContext=n,t=Nt(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=qt(i,t,o),e!==null&&(ft(e,i,o,l),Gi(e,i,o)),o}function wl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function dp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ts(e,t){dp(e,t),(e=e.alternate)&&dp(e,t)}function Kg(){return null}var hp=typeof reportError=="function"?reportError:function(e){console.error(e)};function ns(e){this._internalRoot=e}Sl.prototype.render=ns.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));vl(e,t,null,null)},Sl.prototype.unmount=ns.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gn(function(){vl(null,e,null,null)}),t[zt]=null}};function Sl(e){this._internalRoot=e}Sl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xa();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ut.length&&t!==0&&t<Ut[n].priority;n++);Ut.splice(n,0,e),n===0&&Za(e)}};function rs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Cl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function mp(){}function qg(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var a=wl(o);l.call(a)}}var o=pp(t,r,e,0,null,!1,!1,"",mp);return e._reactRootContainer=o,e[zt]=o.current,Rr(e.nodeType===8?e.parentNode:e),gn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var u=r;r=function(){var a=wl(s);u.call(a)}}var s=es(e,0,!1,null,null,!1,!1,"",mp);return e._reactRootContainer=s,e[zt]=s.current,Rr(e.nodeType===8?e.parentNode:e),gn(function(){vl(t,s,n,r)}),s}function El(e,t,n,r,i){var l=n._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var u=i;i=function(){var s=wl(o);u.call(s)}}vl(t,o,e,i)}else o=qg(n,t,e,i,r);return wl(o)}Ka=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=xr(t.pendingLanes);n!==0&&(Po(t,n|1),Be(t,he()),!(G&6)&&(Jn=he()+500,Yt()))}break;case 13:gn(function(){var r=It(e,1);if(r!==null){var i=Re();ft(r,e,1,i)}}),ts(e,1)}},_o=function(e){if(e.tag===13){var t=It(e,134217728);if(t!==null){var n=Re();ft(t,e,134217728,n)}ts(e,134217728)}},qa=function(e){if(e.tag===13){var t=Zt(e),n=It(e,t);if(n!==null){var r=Re();ft(n,e,t,r)}ts(e,t)}},Xa=function(){return ee},Ga=function(e,t){var n=ee;try{return ee=e,t()}finally{ee=n}},vo=function(e,t,n){switch(t){case"input":if(fo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Ui(r);if(!i)throw Error(_(90));wa(r),fo(r,i)}}}break;case"textarea":Ta(e,n);break;case"select":t=n.value,t!=null&&In(e,!!n.multiple,t,!1)}},ba=Ku,Fa=gn;var Xg={usingClientEntryPoint:!1,Events:[Mr,jn,Ui,Da,Ra,Ku]},Gr={findFiberByHostInstance:sn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Gg={bundleType:Gr.bundleType,version:Gr.version,rendererPackageName:Gr.rendererPackageName,rendererConfig:Gr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Et.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ba(e),e===null?null:e.stateNode},findFiberByHostInstance:Gr.findFiberByHostInstance||Kg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zl.isDisabled&&zl.supportsFiber)try{Si=zl.inject(Gg),mt=zl}catch{}}He.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xg,He.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rs(t))throw Error(_(200));return Yg(e,t,null,n)},He.createRoot=function(e,t){if(!rs(e))throw Error(_(299));var n=!1,r="",i=hp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=es(e,1,!1,null,null,n,!1,r,i),e[zt]=t.current,Rr(e.nodeType===8?e.parentNode:e),new ns(t)},He.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=Ba(t),e=e===null?null:e.stateNode,e},He.flushSync=function(e){return gn(e)},He.hydrate=function(e,t,n){if(!Cl(t))throw Error(_(200));return El(null,e,t,!0,n)},He.hydrateRoot=function(e,t,n){if(!rs(e))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=hp;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=pp(t,null,e,1,n??null,i,!1,l,o),e[zt]=t.current,Rr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Sl(t)},He.render=function(e,t,n){if(!Cl(t))throw Error(_(200));return El(null,e,t,!1,n)},He.unmountComponentAtNode=function(e){if(!Cl(e))throw Error(_(40));return e._reactRootContainer?(gn(function(){El(null,null,e,!1,function(){e._reactRootContainer=null,e[zt]=null})}),!0):!1},He.unstable_batchedUpdates=Ku,He.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Cl(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return El(e,t,n,!1,r)},He.version="18.3.1-next-f1338f8080-20240426";function gp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gp)}catch(e){console.error(e)}}gp(),ca.exports=He;var Jg=ca.exports,yp=Jg;ql.createRoot=yp.createRoot,ql.hydrateRoot=yp.hydrateRoot;function Zg({agents:e,activeAgentId:t,onSelectAgent:n}){return I.jsxs("div",{className:"flex flex-col bg-zinc-900 border-r border-zinc-800 shrink-0 w-48 overflow-y-auto",children:[I.jsx("div",{className:"px-3 py-2 text-xs font-medium text-zinc-500 uppercase tracking-wider border-b border-zinc-800",children:"Tests"}),e.map(r=>{const i=r.result==="pass"?"text-green-500":r.result==="fail"?"text-red-500":"text-zinc-500",l=r.result==="pass"?"✓":r.result==="fail"?"✗":"●";return I.jsx("button",{onClick:()=>n(r.id),className:`px-3 py-2 text-xs text-left border-b border-zinc-800 transition-colors
41
- ${r.id===t?"bg-zinc-800 text-zinc-200":"text-zinc-500 hover:text-zinc-300"}`,children:I.jsxs("span",{className:"flex items-center gap-2",children:[I.jsx("span",{className:`shrink-0 ${i}`,children:l}),I.jsx("span",{className:"truncate",children:r.name})]})},r.id)})]})}function ey({tabIds:e,activeTabId:t,onSelectTab:n}){return I.jsx("div",{className:"flex items-center bg-zinc-900 border-b border-zinc-800 overflow-x-auto",children:e.map((r,i)=>I.jsxs("button",{onClick:()=>n(r),className:`px-3 py-2 text-xs border-r border-zinc-800 shrink-0
42
- ${r===t?"bg-zinc-800 text-zinc-200":"text-zinc-500 hover:text-zinc-300"}`,children:["Tab ",i+1]},r))})}function ty({clips:e,currentTime:t,playing:n,speed:r}){const i=U.useRef(null),[l,o]=U.useState(new Map),[u,s]=U.useState(-1);U.useEffect(()=>{let p=!1;const d=new Map;return Promise.all(e.map(async(g,x)=>{try{const E=await fetch(g.path);if(!E.ok)throw new Error(`${E.status}`);const h=await E.blob();p||d.set(x,URL.createObjectURL(h))}catch(E){console.warn(`Failed to preload clip ${x}:`,E)}})).then(()=>{p||o(new Map(d))}),()=>{p=!0;for(const g of d.values())URL.revokeObjectURL(g)}},[e]);const a=e.findIndex(p=>t>=p.startTime&&t<=p.endTime),f=a>=0?e[a]:null,c=!f;return U.useEffect(()=>{const p=i.current;if(p&&f&&a!==u){const d=l.get(a);if(!d)return;p.src=d;const g=Math.max(0,(t-f.startTime)/1e3);p.currentTime=g,s(a),n&&(p.playbackRate=r,p.play().catch(()=>{}))}},[a,f,l,u]),U.useEffect(()=>{var p;c&&((p=i.current)==null||p.pause())},[c]),U.useEffect(()=>{const p=i.current;!p||!f||a!==u||n||(p.currentTime=Math.max(0,(t-f.startTime)/1e3))},[t,f,n,u]),U.useEffect(()=>{const p=i.current;p&&(n&&f&&u===a?(p.playbackRate=r,p.play().catch(()=>{})):p.pause())},[n,f,r,c,u,a]),I.jsx("div",{className:"absolute inset-0 bg-zinc-950 flex items-center justify-center overflow-hidden",children:I.jsx("video",{ref:i,className:"max-w-full max-h-full",muted:!0,playsInline:!0})})}function ny({entries:e,currentTime:t}){const[n,r]=U.useState(!0),[i,l]=U.useState("all"),o=U.useRef(null),u=e.filter(c=>c.ts<=t),s=i==="all"?u:u.filter(c=>i==="error"?c.level==="error":c.level==="warn"),a=u.filter(c=>c.level==="error").length,f=u.filter(c=>c.level==="warn").length;return U.useEffect(()=>{o.current&&(o.current.scrollTop=o.current.scrollHeight)},[s.length]),I.jsxs("div",{className:"border-t border-zinc-800 bg-zinc-900 shrink-0",children:[I.jsxs("button",{onClick:()=>r(!n),className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-zinc-400 hover:text-zinc-300 transition-colors",children:[I.jsx("span",{className:`transition-transform ${n?"":"rotate-90"}`,children:"▶"}),I.jsx("span",{className:"font-medium",children:"Console"}),a>0&&I.jsx("span",{className:"px-1.5 py-0.5 bg-red-950/50 text-red-400 rounded text-[10px]",children:a}),f>0&&I.jsx("span",{className:"px-1.5 py-0.5 bg-amber-950/50 text-amber-400 rounded text-[10px]",children:f}),I.jsx("div",{className:"flex-1"}),!n&&I.jsx("div",{className:"flex gap-1",onClick:c=>c.stopPropagation(),children:["all","error","warn"].map(c=>I.jsx("button",{onClick:()=>l(c),className:`px-1.5 py-0.5 rounded text-[10px] ${i===c?"bg-zinc-700 text-zinc-200":"text-zinc-500 hover:text-zinc-400"}`,children:c==="all"?"All":c==="error"?"Errors":"Warnings"},c))})]}),!n&&I.jsx("div",{ref:o,className:"max-h-32 overflow-y-auto px-3 pb-2 space-y-0.5",children:s.length===0?I.jsx("div",{className:"text-xs text-zinc-600 py-1",children:"No console output"}):s.map((c,p)=>I.jsxs("div",{className:`text-xs font-mono flex gap-2 ${c.level==="error"?"text-red-400":c.level==="warn"?"text-amber-400":"text-zinc-500"}`,children:[I.jsx("span",{className:"shrink-0 text-zinc-600",children:c.level==="error"?"ERR":c.level==="warn"?"WRN":"LOG"}),I.jsx("span",{className:"truncate",children:c.message.replace(/%c/g,"")})]},p))})]})}function Zw(){}function eS(){}function ry(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const iy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ly=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,oy={};function kp(e,t){return(oy.jsx?ly:iy).test(e)}const uy=/[ \t\n\f\r]/g;function sy(e){return typeof e=="object"?e.type==="text"?xp(e.value):!1:xp(e)}function xp(e){return e.replace(uy,"")===""}class Jr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Jr.prototype.normal={},Jr.prototype.property={},Jr.prototype.space=void 0;function vp(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Jr(n,r,t)}function is(e){return e.toLowerCase()}class Ue{constructor(t,n){this.attribute=n,this.property=t}}Ue.prototype.attribute="",Ue.prototype.booleanish=!1,Ue.prototype.boolean=!1,Ue.prototype.commaOrSpaceSeparated=!1,Ue.prototype.commaSeparated=!1,Ue.prototype.defined=!1,Ue.prototype.mustUseProperty=!1,Ue.prototype.number=!1,Ue.prototype.overloadedBoolean=!1,Ue.prototype.property="",Ue.prototype.spaceSeparated=!1,Ue.prototype.space=void 0;let ay=0;const H=vn(),ge=vn(),ls=vn(),N=vn(),le=vn(),er=vn(),qe=vn();function vn(){return 2**++ay}const os=Object.freeze(Object.defineProperty({__proto__:null,boolean:H,booleanish:ge,commaOrSpaceSeparated:qe,commaSeparated:er,number:N,overloadedBoolean:ls,spaceSeparated:le},Symbol.toStringTag,{value:"Module"})),us=Object.keys(os);class ss extends Ue{constructor(t,n,r,i){let l=-1;if(super(t,n),wp(this,"space",i),typeof r=="number")for(;++l<us.length;){const o=us[l];wp(this,us[l],(r&os[o])===os[o])}}}ss.prototype.defined=!0;function wp(e,t,n){n&&(e[t]=n)}function tr(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new ss(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[is(r)]=r,n[is(l.attribute)]=r}return new Jr(t,n,e.space)}const Sp=tr({properties:{ariaActiveDescendant:null,ariaAtomic:ge,ariaAutoComplete:null,ariaBusy:ge,ariaChecked:ge,ariaColCount:N,ariaColIndex:N,ariaColSpan:N,ariaControls:le,ariaCurrent:null,ariaDescribedBy:le,ariaDetails:null,ariaDisabled:ge,ariaDropEffect:le,ariaErrorMessage:null,ariaExpanded:ge,ariaFlowTo:le,ariaGrabbed:ge,ariaHasPopup:null,ariaHidden:ge,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:le,ariaLevel:N,ariaLive:null,ariaModal:ge,ariaMultiLine:ge,ariaMultiSelectable:ge,ariaOrientation:null,ariaOwns:le,ariaPlaceholder:null,ariaPosInSet:N,ariaPressed:ge,ariaReadOnly:ge,ariaRelevant:null,ariaRequired:ge,ariaRoleDescription:le,ariaRowCount:N,ariaRowIndex:N,ariaRowSpan:N,ariaSelected:ge,ariaSetSize:N,ariaSort:null,ariaValueMax:N,ariaValueMin:N,ariaValueNow:N,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Cp(e,t){return t in e?e[t]:t}function Ep(e,t){return Cp(e,t.toLowerCase())}const cy=tr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:er,acceptCharset:le,accessKey:le,action:null,allow:null,allowFullScreen:H,allowPaymentRequest:H,allowUserMedia:H,alt:null,as:null,async:H,autoCapitalize:null,autoComplete:le,autoFocus:H,autoPlay:H,blocking:le,capture:null,charSet:null,checked:H,cite:null,className:le,cols:N,colSpan:null,content:null,contentEditable:ge,controls:H,controlsList:le,coords:N|er,crossOrigin:null,data:null,dateTime:null,decoding:null,default:H,defer:H,dir:null,dirName:null,disabled:H,download:ls,draggable:ge,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:H,formTarget:null,headers:le,height:N,hidden:ls,high:N,href:null,hrefLang:null,htmlFor:le,httpEquiv:le,id:null,imageSizes:null,imageSrcSet:null,inert:H,inputMode:null,integrity:null,is:null,isMap:H,itemId:null,itemProp:le,itemRef:le,itemScope:H,itemType:le,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:H,low:N,manifest:null,max:null,maxLength:N,media:null,method:null,min:null,minLength:N,multiple:H,muted:H,name:null,nonce:null,noModule:H,noValidate:H,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:H,optimum:N,pattern:null,ping:le,placeholder:null,playsInline:H,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:H,referrerPolicy:null,rel:le,required:H,reversed:H,rows:N,rowSpan:N,sandbox:le,scope:null,scoped:H,seamless:H,selected:H,shadowRootClonable:H,shadowRootDelegatesFocus:H,shadowRootMode:null,shape:null,size:N,sizes:null,slot:null,span:N,spellCheck:ge,src:null,srcDoc:null,srcLang:null,srcSet:null,start:N,step:null,style:null,tabIndex:N,target:null,title:null,translate:null,type:null,typeMustMatch:H,useMap:null,value:ge,width:N,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:le,axis:null,background:null,bgColor:null,border:N,borderColor:null,bottomMargin:N,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:H,declare:H,event:null,face:null,frame:null,frameBorder:null,hSpace:N,leftMargin:N,link:null,longDesc:null,lowSrc:null,marginHeight:N,marginWidth:N,noResize:H,noHref:H,noShade:H,noWrap:H,object:null,profile:null,prompt:null,rev:null,rightMargin:N,rules:null,scheme:null,scrolling:ge,standby:null,summary:null,text:null,topMargin:N,valueType:null,version:null,vAlign:null,vLink:null,vSpace:N,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:H,disableRemotePlayback:H,prefix:null,property:null,results:N,security:null,unselectable:null},space:"html",transform:Ep}),fy=tr({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:qe,accentHeight:N,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:N,amplitude:N,arabicForm:null,ascent:N,attributeName:null,attributeType:null,azimuth:N,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:N,by:null,calcMode:null,capHeight:N,className:le,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:N,diffuseConstant:N,direction:null,display:null,dur:null,divisor:N,dominantBaseline:null,download:H,dx:null,dy:null,edgeMode:null,editable:null,elevation:N,enableBackground:null,end:null,event:null,exponent:N,externalResourcesRequired:null,fill:null,fillOpacity:N,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:er,g2:er,glyphName:er,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:N,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:N,horizOriginX:N,horizOriginY:N,id:null,ideographic:N,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:N,k:N,k1:N,k2:N,k3:N,k4:N,kernelMatrix:qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:N,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:N,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:N,overlineThickness:N,paintOrder:null,panose1:null,path:null,pathLength:N,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:le,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:N,pointsAtY:N,pointsAtZ:N,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qe,rev:qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qe,requiredFeatures:qe,requiredFonts:qe,requiredFormats:qe,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:N,specularExponent:N,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:N,strikethroughThickness:N,string:null,stroke:null,strokeDashArray:qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:N,strokeOpacity:N,strokeWidth:null,style:null,surfaceScale:N,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qe,tabIndex:N,tableValues:null,target:null,targetX:N,targetY:N,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:N,underlineThickness:N,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:N,values:null,vAlphabetic:N,vMathematical:N,vectorEffect:null,vHanging:N,vIdeographic:N,version:null,vertAdvY:N,vertOriginX:N,vertOriginY:N,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:N,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Cp}),zp=tr({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()}}),Tp=tr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ep}),Pp=tr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),py={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"},dy=/[A-Z]/g,_p=/-[a-z]/g,hy=/^data[-\w.:]+$/i;function my(e,t){const n=is(t);let r=t,i=Ue;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&hy.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(_p,yy);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!_p.test(l)){let o=l.replace(dy,gy);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=ss}return new i(r,t)}function gy(e){return"-"+e.toLowerCase()}function yy(e){return e.charAt(1).toUpperCase()}const ky=vp([Sp,cy,zp,Tp,Pp],"html"),as=vp([Sp,fy,zp,Tp,Pp],"svg");function xy(e){return e.join(" ").trim()}var cs={},Ip=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,vy=/\n/g,wy=/^\s*/,Sy=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Cy=/^:\s*/,Ey=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,zy=/^[;\s]*/,Ty=/^\s+|\s+$/g,Py=`
43
- `,Np="/",Lp="*",wn="",_y="comment",Iy="declaration";function Ny(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(g){var x=g.match(vy);x&&(n+=x.length);var E=g.lastIndexOf(Py);r=~E?g.length-E:r+g.length}function l(){var g={line:n,column:r};return function(x){return x.position=new o(g),a(),x}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function u(g){var x=new Error(t.source+":"+n+":"+r+": "+g);if(x.reason=g,x.filename=t.source,x.line=n,x.column=r,x.source=e,!t.silent)throw x}function s(g){var x=g.exec(e);if(x){var E=x[0];return i(E),e=e.slice(E.length),x}}function a(){s(wy)}function f(g){var x;for(g=g||[];x=c();)x!==!1&&g.push(x);return g}function c(){var g=l();if(!(Np!=e.charAt(0)||Lp!=e.charAt(1))){for(var x=2;wn!=e.charAt(x)&&(Lp!=e.charAt(x)||Np!=e.charAt(x+1));)++x;if(x+=2,wn===e.charAt(x-1))return u("End of comment missing");var E=e.slice(2,x-2);return r+=2,i(E),e=e.slice(x),r+=2,g({type:_y,comment:E})}}function p(){var g=l(),x=s(Sy);if(x){if(c(),!s(Cy))return u("property missing ':'");var E=s(Ey),h=g({type:Iy,property:Ap(x[0].replace(Ip,wn)),value:E?Ap(E[0].replace(Ip,wn)):wn});return s(zy),h}}function d(){var g=[];f(g);for(var x;x=p();)x!==!1&&(g.push(x),f(g));return g}return a(),d()}function Ap(e){return e?e.replace(Ty,wn):wn}var Ly=Ny,Ay=ci&&ci.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cs,"__esModule",{value:!0}),cs.default=Ry;const Dy=Ay(Ly);function Ry(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,Dy.default)(e),i=typeof t=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:u}=l;i?t(o,u,l):u&&(n=n||{},n[o]=u)}),n}var Tl={};Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.camelCase=void 0;var by=/^--[a-zA-Z0-9_-]+$/,Fy=/-([a-z])/g,My=/^[^-]+$/,Oy=/^-(webkit|moz|ms|o|khtml)-/,jy=/^-(ms)-/,By=function(e){return!e||My.test(e)||by.test(e)},Uy=function(e,t){return t.toUpperCase()},Dp=function(e,t){return"".concat(t,"-")},$y=function(e,t){return t===void 0&&(t={}),By(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(jy,Dp):e=e.replace(Oy,Dp),e.replace(Fy,Uy))};Tl.camelCase=$y;var Hy=ci&&ci.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Vy=Hy(cs),Wy=Tl;function fs(e,t){var n={};return!e||typeof e!="string"||(0,Vy.default)(e,function(r,i){r&&i&&(n[(0,Wy.camelCase)(r,t)]=i)}),n}fs.default=fs;var Qy=fs;const Yy=Hl(Qy),Rp=bp("end"),ps=bp("start");function bp(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Ky(e){const t=ps(e),n=Rp(e);if(t&&n)return{start:t,end:n}}function Zr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Fp(e.position):"start"in e||"end"in e?Fp(e):"line"in e||"column"in e?ds(e):""}function ds(e){return Mp(e&&e.line)+":"+Mp(e&&e.column)}function Fp(e){return ds(e&&e.start)+"-"+ds(e&&e.end)}function Mp(e){return e&&typeof e=="number"?e:1}class Ie extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(o=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?l.ruleId=r:(l.source=r.slice(0,s),l.ruleId=r.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.position)}const u=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=Zr(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ie.prototype.file="",Ie.prototype.name="",Ie.prototype.reason="",Ie.prototype.message="",Ie.prototype.stack="",Ie.prototype.column=void 0,Ie.prototype.line=void 0,Ie.prototype.ancestors=void 0,Ie.prototype.cause=void 0,Ie.prototype.fatal=void 0,Ie.prototype.place=void 0,Ie.prototype.ruleId=void 0,Ie.prototype.source=void 0;const hs={}.hasOwnProperty,qy=new Map,Xy=/[A-Z]/g,Gy=new Set(["table","tbody","thead","tfoot","tr"]),Jy=new Set(["td","th"]),Op="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Zy(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=u0(n,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");r=o0(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?as:ky,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=jp(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function jp(e,t,n){if(t.type==="element")return e0(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return t0(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return r0(e,t,n);if(t.type==="mdxjsEsm")return n0(e,t);if(t.type==="root")return i0(e,t,n);if(t.type==="text")return l0(e,t)}function e0(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=as,e.schema=i),e.ancestors.push(t);const l=Up(e,t.tagName,!1),o=s0(e,t);let u=gs(e,t);return Gy.has(t.tagName)&&(u=u.filter(function(s){return typeof s=="string"?!sy(s):!0})),Bp(e,o,l,t),ms(o,u),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function t0(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ei(e,t.position)}function n0(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ei(e,t.position)}function r0(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=as,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:Up(e,t.name,!0),o=a0(e,t),u=gs(e,t);return Bp(e,o,l,t),ms(o,u),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function i0(e,t,n){const r={};return ms(r,gs(e,t)),e.create(t,e.Fragment,r,n)}function l0(e,t){return t.value}function Bp(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ms(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function o0(e,t,n){return r;function r(i,l,o,u){const a=Array.isArray(o.children)?n:t;return u?a(l,o,u):a(l,o)}}function u0(e,t){return n;function n(r,i,l,o){const u=Array.isArray(l.children),s=ps(r);return t(i,l,o,u,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function s0(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&hs.call(t.properties,i)){const l=c0(e,i,t.properties[i]);if(l){const[o,u]=l;e.tableCellAlignToStyle&&o==="align"&&typeof u=="string"&&Jy.has(t.tagName)?r=u:n[o]=u}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function a0(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const u=o.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else ei(e,t.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,l=e.evaluater.evaluateExpression(u.expression)}else ei(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function gs(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:qy;for(;++r<t.children.length;){const l=t.children[r];let o;if(e.passKeys){const s=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(s){const a=i.get(s)||0;o=s+"-"+a,i.set(s,a+1)}}const u=jp(e,l,o);u!==void 0&&n.push(u)}return n}function c0(e,t,n){const r=my(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ry(n):xy(n)),r.property==="style"){let i=typeof n=="object"?n:f0(e,String(n));return e.stylePropertyNameCase==="css"&&(i=p0(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?py[r.property]||r.property:r.attribute,n]}}function f0(e,t){try{return Yy(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Ie("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Op+"#cannot-parse-style-attribute",i}}function Up(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let l=-1,o;for(;++l<i.length;){const u=kp(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:u,computed:!!(l&&u.type==="Literal"),optional:!1}:u}r=o}else r=kp(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return hs.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);ei(e)}function ei(e,t){const n=new Ie("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Op+"#cannot-handle-mdx-estrees-without-createevaluater",n}function p0(e){const t={};let n;for(n in e)hs.call(e,n)&&(t[d0(n)]=e[n]);return t}function d0(e){let t=e.replace(Xy,h0);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function h0(e){return"-"+e.toLowerCase()}const ys={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"]},m0={};function ks(e,t){const n=m0,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return $p(e,r,i)}function $p(e,t,n){if(g0(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Hp(e.children,t,n)}return Array.isArray(e)?Hp(e,t,n):""}function Hp(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=$p(e[i],t,n);return r.join("")}function g0(e){return!!(e&&typeof e=="object")}const Vp=document.createElement("i");function xs(e){const t="&"+e+";";Vp.innerHTML=t;const n=Vp.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Xe(e,t,n,r){const i=e.length;let l=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l<r.length;)o=r.slice(l,l+1e4),o.unshift(t,0),e.splice(...o),l+=1e4,t+=1e4}function it(e,t){return e.length>0?(Xe(e,e.length,0,t),e):t}const Wp={}.hasOwnProperty;function Qp(e){const t={};let n=-1;for(;++n<e.length;)y0(t,e[n]);return t}function y0(e,t){let n;for(n in t){const i=(Wp.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){Wp.call(i,o)||(i[o]=[]);const u=l[o];k0(i[o],Array.isArray(u)?u:u?[u]:[])}}}function k0(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Xe(e,0,0,r)}function Yp(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function pt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const be=nn(/[A-Za-z]/),Ne=nn(/[\dA-Za-z]/),x0=nn(/[#-'*+\--9=?A-Z^-~]/);function Pl(e){return e!==null&&(e<32||e===127)}const vs=nn(/\d/),v0=nn(/[\dA-Fa-f]/),w0=nn(/[!-/:-@[-`{-~]/);function B(e){return e!==null&&e<-2}function ne(e){return e!==null&&(e<0||e===32)}function Y(e){return e===-2||e===-1||e===32}const _l=nn(new RegExp("\\p{P}|\\p{S}","u")),Sn=nn(/\s/);function nn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function nr(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&Ne(e.charCodeAt(n+1))&&Ne(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const u=e.charCodeAt(n+1);l<56320&&u>56319&&u<57344?(o=String.fromCharCode(l,u),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function X(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return Y(s)?(e.enter(n),u(s)):t(s)}function u(s){return Y(s)&&l++<i?(e.consume(s),u):(e.exit(n),t(s))}}const S0={tokenize:C0};function C0(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),X(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),l(u)}function l(u){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,o(u)}function o(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return B(u)?(e.consume(u),e.exit("chunkText"),l):(e.consume(u),o)}}const E0={tokenize:z0},Kp={tokenize:T0};function z0(e){const t=this,n=[];let r=0,i,l,o;return u;function u(y){if(r<n.length){const C=n[r];return t.containerState=C[1],e.attempt(C[0].continuation,s,a)(y)}return a(y)}function s(y){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&m();const C=t.events.length;let T=C,w;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){w=t.events[T][1].end;break}h(r);let P=C;for(;P<t.events.length;)t.events[P][1].end={...w},P++;return Xe(t.events,T+1,0,t.events.slice(C)),t.events.length=P,a(y)}return u(y)}function a(y){if(r===n.length){if(!i)return p(y);if(i.currentConstruct&&i.currentConstruct.concrete)return g(y);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Kp,f,c)(y)}function f(y){return i&&m(),h(r),p(y)}function c(y){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,g(y)}function p(y){return t.containerState={},e.attempt(Kp,d,g)(y)}function d(y){return r++,n.push([t.currentConstruct,t.containerState]),p(y)}function g(y){if(y===null){i&&m(),h(0),e.consume(y);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),x(y)}function x(y){if(y===null){E(e.exit("chunkFlow"),!0),h(0),e.consume(y);return}return B(y)?(e.consume(y),E(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(y),x)}function E(y,C){const T=t.sliceStream(y);if(C&&T.push(null),y.previous=l,l&&(l.next=y),l=y,i.defineSkip(y.start),i.write(T),t.parser.lazy[y.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<o&&(!i.events[w][1].end||i.events[w][1].end.offset>o))return;const P=t.events.length;let L=P,O,S;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(O){S=t.events[L][1].end;break}O=!0}for(h(r),w=P;w<t.events.length;)t.events[w][1].end={...S},w++;Xe(t.events,L+1,0,t.events.slice(P)),t.events.length=w}}function h(y){let C=n.length;for(;C-- >y;){const T=n[C];t.containerState=T[1],T[0].exit.call(t,e)}n.length=y}function m(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function T0(e,t,n){return X(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rr(e){if(e===null||ne(e)||Sn(e))return 1;if(_l(e))return 2}function Il(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const ws={name:"attention",resolveAll:P0,tokenize:_0};function P0(e,t){let n=-1,r,i,l,o,u,s,a,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[n][1].start};qp(c,-s),qp(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},u={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...u.end}},e[r][1].end={...o.start},e[n][1].start={...u.end},a=[],e[r][1].end.offset-e[r][1].start.offset&&(a=it(a,[["enter",e[r][1],t],["exit",e[r][1],t]])),a=it(a,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),a=it(a,Il(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),a=it(a,[["exit",l,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,a=it(a,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Xe(e,r-1,n-r+3,a),n=r+a.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function _0(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=rr(r);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),u(s)}function u(s){if(s===l)return e.consume(s),u;const a=e.exit("attentionSequence"),f=rr(s),c=!f||f===2&&i||n.includes(s),p=!i||i===2&&f||n.includes(r);return a._open=!!(l===42?c:c&&(i||!p)),a._close=!!(l===42?p:p&&(f||!c)),t(s)}}function qp(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const I0={name:"autolink",tokenize:N0};function N0(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(d){return be(d)?(e.consume(d),o):d===64?n(d):a(d)}function o(d){return d===43||d===45||d===46||Ne(d)?(r=1,u(d)):a(d)}function u(d){return d===58?(e.consume(d),r=0,s):(d===43||d===45||d===46||Ne(d))&&r++<32?(e.consume(d),u):(r=0,a(d))}function s(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Pl(d)?n(d):(e.consume(d),s)}function a(d){return d===64?(e.consume(d),f):x0(d)?(e.consume(d),a):n(d)}function f(d){return Ne(d)?c(d):n(d)}function c(d){return d===46?(e.consume(d),r=0,f):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):p(d)}function p(d){if((d===45||Ne(d))&&r++<63){const g=d===45?p:c;return e.consume(d),g}return n(d)}}const ti={partial:!0,tokenize:L0};function L0(e,t,n){return r;function r(l){return Y(l)?X(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||B(l)?t(l):n(l)}}const Xp={continuation:{tokenize:D0},exit:R0,name:"blockQuote",tokenize:A0};function A0(e,t,n){const r=this;return i;function i(o){if(o===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return n(o)}function l(o){return Y(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function D0(e,t,n){const r=this;return i;function i(o){return Y(o)?X(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Xp,t,n)(o)}}function R0(e){e.exit("blockQuote")}const Gp={name:"characterEscape",tokenize:b0};function b0(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return w0(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const Jp={name:"characterReference",tokenize:F0};function F0(e,t,n){const r=this;let i=0,l,o;return u;function u(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),l=31,o=Ne,f(c))}function a(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=v0,f):(e.enter("characterReferenceValue"),l=7,o=vs,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return o===Ne&&!xs(r.sliceSerialize(p))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(c)&&i++<l?(e.consume(c),f):n(c)}}const Zp={partial:!0,tokenize:O0},ed={concrete:!0,name:"codeFenced",tokenize:M0};function M0(e,t,n){const r=this,i={partial:!0,tokenize:T};let l=0,o=0,u;return s;function s(w){return a(w)}function a(w){const P=r.events[r.events.length-1];return l=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,u=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===u?(o++,e.consume(w),f):o<3?n(w):(e.exit("codeFencedFenceSequence"),Y(w)?X(e,c,"whitespace")(w):c(w))}function c(w){return w===null||B(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(Zp,x,C)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||B(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):Y(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),X(e,d,"whitespace")(w)):w===96&&w===u?n(w):(e.consume(w),p)}function d(w){return w===null||B(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||B(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===u?n(w):(e.consume(w),g)}function x(w){return e.attempt(i,C,E)(w)}function E(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),h}function h(w){return l>0&&Y(w)?X(e,m,"linePrefix",l+1)(w):m(w)}function m(w){return w===null||B(w)?e.check(Zp,x,C)(w):(e.enter("codeFlowValue"),y(w))}function y(w){return w===null||B(w)?(e.exit("codeFlowValue"),m(w)):(e.consume(w),y)}function C(w){return e.exit("codeFenced"),t(w)}function T(w,P,L){let O=0;return S;function S(W){return w.enter("lineEnding"),w.consume(W),w.exit("lineEnding"),R}function R(W){return w.enter("codeFencedFence"),Y(W)?X(w,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):F(W)}function F(W){return W===u?(w.enter("codeFencedFenceSequence"),K(W)):L(W)}function K(W){return W===u?(O++,w.consume(W),K):O>=o?(w.exit("codeFencedFenceSequence"),Y(W)?X(w,V,"whitespace")(W):V(W)):L(W)}function V(W){return W===null||B(W)?(w.exit("codeFencedFence"),P(W)):L(W)}}}function O0(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Ss={name:"codeIndented",tokenize:B0},j0={partial:!0,tokenize:U0};function B0(e,t,n){const r=this;return i;function i(a){return e.enter("codeIndented"),X(e,l,"linePrefix",5)(a)}function l(a){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(a):n(a)}function o(a){return a===null?s(a):B(a)?e.attempt(j0,o,s)(a):(e.enter("codeFlowValue"),u(a))}function u(a){return a===null||B(a)?(e.exit("codeFlowValue"),o(a)):(e.consume(a),u)}function s(a){return e.exit("codeIndented"),t(a)}}function U0(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):B(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):X(e,l,"linePrefix",5)(o)}function l(o){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(o):B(o)?i(o):n(o)}}const $0={name:"codeText",previous:V0,resolve:H0,tokenize:W0};function H0(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function V0(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function W0(e,t,n){let r=0,i,l;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),u(c)}function u(c){return c===96?(e.consume(c),r++,u):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(l=e.enter("codeTextSequence"),i=0,f(c)):B(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),a(c))}function a(c){return c===null||c===32||c===96||B(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),a)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(l.type="codeTextData",a(c))}}class Q0{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,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&ni(this.left,r),l.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),ni(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ni(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 n=this.left.splice(t,Number.POSITIVE_INFINITY);ni(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ni(this.left,n.reverse())}}}function ni(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function td(e){const t={};let n=-1,r,i,l,o,u,s,a;const f=new Q0(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Y0(f,n)),n=t[n],a=!0);else if(r[1]._container){for(l=n,i=void 0;l--;)if(o=f.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},u=f.slice(i,n),u.unshift(r),f.splice(i,n-i+1,u))}}return Xe(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!a}function Y0(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const l=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const u=o.events,s=[],a={};let f,c,p=-1,d=n,g=0,x=0;const E=[x];for(;d;){for(;e.get(++i)[1]!==d;);l.push(i),d._tokenizer||(f=r.sliceStream(d),d.next||f.push(null),c&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=d,d=d.next}for(d=n;++p<u.length;)u[p][0]==="exit"&&u[p-1][0]==="enter"&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(x=p+1,E.push(x),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):E.pop(),p=E.length;p--;){const h=u.slice(E[p],E[p+1]),m=l.pop();s.push([m,m+h.length-1]),e.splice(m,2,h)}for(s.reverse(),p=-1;++p<s.length;)a[g+s[p][0]]=g+s[p][1],g+=s[p][1]-s[p][0]-1;return a}const K0={resolve:X0,tokenize:G0},q0={partial:!0,tokenize:J0};function X0(e){return td(e),e}function G0(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?l(u):B(u)?e.check(q0,o,l)(u):(e.consume(u),i)}function l(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function o(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function J0(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),X(e,l,"linePrefix")}function l(o){if(o===null||B(o))return n(o);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function nd(e,t,n,r,i,l,o,u,s){const a=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(h){return h===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(h),e.exit(l),p):h===null||h===32||h===41||Pl(h)?n(h):(e.enter(r),e.enter(o),e.enter(u),e.enter("chunkString",{contentType:"string"}),x(h))}function p(h){return h===62?(e.enter(l),e.consume(h),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===62?(e.exit("chunkString"),e.exit(u),p(h)):h===null||h===60||B(h)?n(h):(e.consume(h),h===92?g:d)}function g(h){return h===60||h===62||h===92?(e.consume(h),d):d(h)}function x(h){return!f&&(h===null||h===41||ne(h))?(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),t(h)):f<a&&h===40?(e.consume(h),f++,x):h===41?(e.consume(h),f--,x):h===null||h===32||h===40||Pl(h)?n(h):(e.consume(h),h===92?E:x)}function E(h){return h===40||h===41||h===92?(e.consume(h),x):x(h)}}function rd(e,t,n,r,i,l){const o=this;let u=0,s;return a;function a(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(l),f}function f(d){return u>999||d===null||d===91||d===93&&!s||d===94&&!u&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):d===93?(e.exit(l),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):B(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===null||d===91||d===93||B(d)||u++>999?(e.exit("chunkString"),f(d)):(e.consume(d),s||(s=!Y(d)),d===92?p:c)}function p(d){return d===91||d===92||d===93?(e.consume(d),u++,c):c(d)}}function id(e,t,n,r,i,l){let o;return u;function u(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,s):n(p)}function s(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(l),a(p))}function a(p){return p===o?(e.exit(l),s(o)):p===null?n(p):B(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),X(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===o||p===null||B(p)?(e.exit("chunkString"),a(p)):(e.consume(p),p===92?c:f)}function c(p){return p===o||p===92?(e.consume(p),f):f(p)}}function ri(e,t){let n;return r;function r(i){return B(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Y(i)?X(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Z0={name:"definition",tokenize:t1},e1={partial:!0,tokenize:n1};function t1(e,t,n){const r=this;let i;return l;function l(d){return e.enter("definition"),o(d)}function o(d){return rd.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function u(d){return i=pt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),s):n(d)}function s(d){return ne(d)?ri(e,a)(d):a(d)}function a(d){return nd(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function f(d){return e.attempt(e1,c,c)(d)}function c(d){return Y(d)?X(e,p,"whitespace")(d):p(d)}function p(d){return d===null||B(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function n1(e,t,n){return r;function r(u){return ne(u)?ri(e,i)(u):n(u)}function i(u){return id(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return Y(u)?X(e,o,"whitespace")(u):o(u)}function o(u){return u===null||B(u)?t(u):n(u)}}const r1={name:"hardBreakEscape",tokenize:i1};function i1(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return B(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const l1={name:"headingAtx",resolve:o1,tokenize:u1};function o1(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Xe(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function u1(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||ne(f)?(e.exit("atxHeadingSequence"),u(f)):n(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||B(f)?(e.exit("atxHeading"),t(f)):Y(f)?X(e,u,"whitespace")(f):(e.enter("atxHeadingText"),a(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),u(f))}function a(f){return f===null||f===35||ne(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),a)}}const s1=["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"],ld=["pre","script","style","textarea"],a1={concrete:!0,name:"htmlFlow",resolveTo:p1,tokenize:d1},c1={partial:!0,tokenize:m1},f1={partial:!0,tokenize:h1};function p1(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 d1(e,t,n){const r=this;let i,l,o,u,s;return a;function a(v){return f(v)}function f(v){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(v),c}function c(v){return v===33?(e.consume(v),p):v===47?(e.consume(v),l=!0,x):v===63?(e.consume(v),i=3,r.interrupt?t:k):be(v)?(e.consume(v),o=String.fromCharCode(v),E):n(v)}function p(v){return v===45?(e.consume(v),i=2,d):v===91?(e.consume(v),i=5,u=0,g):be(v)?(e.consume(v),i=4,r.interrupt?t:k):n(v)}function d(v){return v===45?(e.consume(v),r.interrupt?t:k):n(v)}function g(v){const xe="CDATA[";return v===xe.charCodeAt(u++)?(e.consume(v),u===xe.length?r.interrupt?t:F:g):n(v)}function x(v){return be(v)?(e.consume(v),o=String.fromCharCode(v),E):n(v)}function E(v){if(v===null||v===47||v===62||ne(v)){const xe=v===47,dt=o.toLowerCase();return!xe&&!l&&ld.includes(dt)?(i=1,r.interrupt?t(v):F(v)):s1.includes(o.toLowerCase())?(i=6,xe?(e.consume(v),h):r.interrupt?t(v):F(v)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(v):l?m(v):y(v))}return v===45||Ne(v)?(e.consume(v),o+=String.fromCharCode(v),E):n(v)}function h(v){return v===62?(e.consume(v),r.interrupt?t:F):n(v)}function m(v){return Y(v)?(e.consume(v),m):S(v)}function y(v){return v===47?(e.consume(v),S):v===58||v===95||be(v)?(e.consume(v),C):Y(v)?(e.consume(v),y):S(v)}function C(v){return v===45||v===46||v===58||v===95||Ne(v)?(e.consume(v),C):T(v)}function T(v){return v===61?(e.consume(v),w):Y(v)?(e.consume(v),T):y(v)}function w(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(e.consume(v),s=v,P):Y(v)?(e.consume(v),w):L(v)}function P(v){return v===s?(e.consume(v),s=null,O):v===null||B(v)?n(v):(e.consume(v),P)}function L(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||ne(v)?T(v):(e.consume(v),L)}function O(v){return v===47||v===62||Y(v)?y(v):n(v)}function S(v){return v===62?(e.consume(v),R):n(v)}function R(v){return v===null||B(v)?F(v):Y(v)?(e.consume(v),R):n(v)}function F(v){return v===45&&i===2?(e.consume(v),M):v===60&&i===1?(e.consume(v),J):v===62&&i===4?(e.consume(v),Z):v===63&&i===3?(e.consume(v),k):v===93&&i===5?(e.consume(v),j):B(v)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(c1,te,K)(v)):v===null||B(v)?(e.exit("htmlFlowData"),K(v)):(e.consume(v),F)}function K(v){return e.check(f1,V,te)(v)}function V(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),W}function W(v){return v===null||B(v)?K(v):(e.enter("htmlFlowData"),F(v))}function M(v){return v===45?(e.consume(v),k):F(v)}function J(v){return v===47?(e.consume(v),o="",A):F(v)}function A(v){if(v===62){const xe=o.toLowerCase();return ld.includes(xe)?(e.consume(v),Z):F(v)}return be(v)&&o.length<8?(e.consume(v),o+=String.fromCharCode(v),A):F(v)}function j(v){return v===93?(e.consume(v),k):F(v)}function k(v){return v===62?(e.consume(v),Z):v===45&&i===2?(e.consume(v),k):F(v)}function Z(v){return v===null||B(v)?(e.exit("htmlFlowData"),te(v)):(e.consume(v),Z)}function te(v){return e.exit("htmlFlow"),t(v)}}function h1(e,t,n){const r=this;return i;function i(o){return B(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function m1(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ti,t,n)}}const g1={name:"htmlText",tokenize:y1};function y1(e,t,n){const r=this;let i,l,o;return u;function u(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),s}function s(k){return k===33?(e.consume(k),a):k===47?(e.consume(k),T):k===63?(e.consume(k),y):be(k)?(e.consume(k),L):n(k)}function a(k){return k===45?(e.consume(k),f):k===91?(e.consume(k),l=0,g):be(k)?(e.consume(k),m):n(k)}function f(k){return k===45?(e.consume(k),d):n(k)}function c(k){return k===null?n(k):k===45?(e.consume(k),p):B(k)?(o=c,J(k)):(e.consume(k),c)}function p(k){return k===45?(e.consume(k),d):c(k)}function d(k){return k===62?M(k):k===45?p(k):c(k)}function g(k){const Z="CDATA[";return k===Z.charCodeAt(l++)?(e.consume(k),l===Z.length?x:g):n(k)}function x(k){return k===null?n(k):k===93?(e.consume(k),E):B(k)?(o=x,J(k)):(e.consume(k),x)}function E(k){return k===93?(e.consume(k),h):x(k)}function h(k){return k===62?M(k):k===93?(e.consume(k),h):x(k)}function m(k){return k===null||k===62?M(k):B(k)?(o=m,J(k)):(e.consume(k),m)}function y(k){return k===null?n(k):k===63?(e.consume(k),C):B(k)?(o=y,J(k)):(e.consume(k),y)}function C(k){return k===62?M(k):y(k)}function T(k){return be(k)?(e.consume(k),w):n(k)}function w(k){return k===45||Ne(k)?(e.consume(k),w):P(k)}function P(k){return B(k)?(o=P,J(k)):Y(k)?(e.consume(k),P):M(k)}function L(k){return k===45||Ne(k)?(e.consume(k),L):k===47||k===62||ne(k)?O(k):n(k)}function O(k){return k===47?(e.consume(k),M):k===58||k===95||be(k)?(e.consume(k),S):B(k)?(o=O,J(k)):Y(k)?(e.consume(k),O):M(k)}function S(k){return k===45||k===46||k===58||k===95||Ne(k)?(e.consume(k),S):R(k)}function R(k){return k===61?(e.consume(k),F):B(k)?(o=R,J(k)):Y(k)?(e.consume(k),R):O(k)}function F(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),i=k,K):B(k)?(o=F,J(k)):Y(k)?(e.consume(k),F):(e.consume(k),V)}function K(k){return k===i?(e.consume(k),i=void 0,W):k===null?n(k):B(k)?(o=K,J(k)):(e.consume(k),K)}function V(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||ne(k)?O(k):(e.consume(k),V)}function W(k){return k===47||k===62||ne(k)?O(k):n(k)}function M(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function J(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),A}function A(k){return Y(k)?X(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):j(k)}function j(k){return e.enter("htmlTextData"),o(k)}}const Cs={name:"labelEnd",resolveAll:w1,resolveTo:S1,tokenize:C1},k1={tokenize:E1},x1={tokenize:z1},v1={tokenize:T1};function w1(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Xe(e,0,e.length,n),e}function S1(e,t){let n=e.length,r=0,i,l,o,u;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},a={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},f={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return u=[["enter",s,t],["enter",a,t]],u=it(u,e.slice(l+1,l+r+3)),u=it(u,[["enter",f,t]]),u=it(u,Il(t.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),t)),u=it(u,[["exit",f,t],e[o-2],e[o-1],["exit",a,t]]),u=it(u,e.slice(o+1)),u=it(u,[["exit",s,t]]),Xe(e,l,e.length,u),e}function C1(e,t,n){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return u;function u(p){return l?l._inactive?c(p):(o=r.parser.defined.includes(pt(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):n(p)}function s(p){return p===40?e.attempt(k1,f,o?f:c)(p):p===91?e.attempt(x1,f,o?a:c)(p):o?f(p):c(p)}function a(p){return e.attempt(v1,f,c)(p)}function f(p){return t(p)}function c(p){return l._balanced=!0,n(p)}}function E1(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return ne(c)?ri(e,l)(c):l(c)}function l(c){return c===41?f(c):nd(e,o,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return ne(c)?ri(e,s)(c):f(c)}function u(c){return n(c)}function s(c){return c===34||c===39||c===40?id(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function a(c){return ne(c)?ri(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function z1(e,t,n){const r=this;return i;function i(u){return rd.call(r,e,l,o,"reference","referenceMarker","referenceString")(u)}function l(u){return r.parser.defined.includes(pt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function o(u){return n(u)}}function T1(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const P1={name:"labelStartImage",resolveAll:Cs.resolveAll,tokenize:_1};function _1(e,t,n){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),l}function l(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),o):n(u)}function o(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const I1={name:"labelStartLink",resolveAll:Cs.resolveAll,tokenize:N1};function N1(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Es={name:"lineEnding",tokenize:L1};function L1(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),X(e,t,"linePrefix")}}const Nl={name:"thematicBreak",tokenize:A1};function A1(e,t,n){let r=0,i;return l;function l(a){return e.enter("thematicBreak"),o(a)}function o(a){return i=a,u(a)}function u(a){return a===i?(e.enter("thematicBreakSequence"),s(a)):r>=3&&(a===null||B(a))?(e.exit("thematicBreak"),t(a)):n(a)}function s(a){return a===i?(e.consume(a),r++,s):(e.exit("thematicBreakSequence"),Y(a)?X(e,u,"whitespace")(a):u(a))}}const $e={continuation:{tokenize:F1},exit:O1,name:"list",tokenize:b1},D1={partial:!0,tokenize:j1},R1={partial:!0,tokenize:M1};function b1(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return u;function u(d){const g=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:vs(d)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Nl,n,a)(d):a(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(d)}return n(d)}function s(d){return vs(d)&&++o<10?(e.consume(d),s):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),a(d)):n(d)}function a(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(ti,r.interrupt?n:f,e.attempt(D1,p,c))}function f(d){return r.containerState.initialBlankLine=!0,l++,p(d)}function c(d){return Y(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):n(d)}function p(d){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function F1(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(ti,i,l);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,X(e,t,"listItemIndent",r.containerState.size+1)(u)}function l(u){return r.containerState.furtherBlankLines||!Y(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(R1,t,o)(u))}function o(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,X(e,e.attempt($e,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function M1(e,t,n){const r=this;return X(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(l):n(l)}}function O1(e){e.exit(this.containerState.type)}function j1(e,t,n){const r=this;return X(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!Y(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const od={name:"setextUnderline",resolveTo:B1,tokenize:U1};function B1(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function U1(e,t,n){const r=this;let i;return l;function l(a){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=a,o(a)):n(a)}function o(a){return e.enter("setextHeadingLineSequence"),u(a)}function u(a){return a===i?(e.consume(a),u):(e.exit("setextHeadingLineSequence"),Y(a)?X(e,s,"lineSuffix")(a):s(a))}function s(a){return a===null||B(a)?(e.exit("setextHeadingLine"),t(a)):n(a)}}const $1={tokenize:H1};function H1(e){const t=this,n=e.attempt(ti,r,e.attempt(this.parser.constructs.flowInitial,i,X(e,e.attempt(this.parser.constructs.flow,i,e.attempt(K0,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const V1={resolveAll:sd()},W1=ud("string"),Q1=ud("text");function ud(e){return{resolveAll:sd(e==="text"?Y1:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,o,u);return o;function o(f){return a(f)?l(f):u(f)}function u(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),s}function s(f){return a(f)?(n.exit("data"),l(f)):(n.consume(f),s)}function a(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const d=c[p];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function sd(e){return t;function t(n,r){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,r):n}}function Y1(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let l=i.length,o=-1,u=0,s;for(;l--;){const a=i[l];if(typeof a=="string"){for(o=a.length;a.charCodeAt(o-1)===32;)u++,o--;if(o)break;o=-1}else if(a===-2)s=!0,u++;else if(a!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const a={type:n===e.length||s||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...a.start},r.start.offset===r.end.offset?Object.assign(r,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}const K1=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Z0},disable:{null:[]},document:{42:$e,43:$e,45:$e,48:$e,49:$e,50:$e,51:$e,52:$e,53:$e,54:$e,55:$e,56:$e,57:$e,62:Xp},flow:{35:l1,42:Nl,45:[od,Nl],60:a1,61:od,95:Nl,96:ed,126:ed},flowInitial:{[-2]:Ss,[-1]:Ss,32:Ss},insideSpan:{null:[ws,V1]},string:{38:Jp,92:Gp},text:{[-5]:Es,[-4]:Es,[-3]:Es,33:P1,38:Jp,42:ws,60:[I0,g1],91:I1,92:[r1,Gp],93:Cs,95:ws,96:$0}},Symbol.toStringTag,{value:"Module"}));function q1(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},l=[];let o=[],u=[];const s={attempt:P(T),check:P(w),consume:m,enter:y,exit:C,interrupt:P(w,{interrupt:!0})},a={code:null,containerState:{},defineSkip:x,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:d,write:c};let f=t.tokenize.call(a,s);return t.resolveAll&&l.push(t),a;function c(R){return o=it(o,R),E(),o[o.length-1]!==null?[]:(L(t,0),a.events=Il(l,a.events,a),a.events)}function p(R,F){return G1(d(R),F)}function d(R){return X1(o,R)}function g(){const{_bufferIndex:R,_index:F,line:K,column:V,offset:W}=r;return{_bufferIndex:R,_index:F,line:K,column:V,offset:W}}function x(R){i[R.line]=R.column,S()}function E(){let R;for(;r._index<o.length;){const F=o[r._index];if(typeof F=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<F.length;)h(F.charCodeAt(r._bufferIndex));else h(F)}}function h(R){f=f(R)}function m(R){B(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,S()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),a.previous=R}function y(R,F){const K=F||{};return K.type=R,K.start=g(),a.events.push(["enter",K,a]),u.push(K),K}function C(R){const F=u.pop();return F.end=g(),a.events.push(["exit",F,a]),F}function T(R,F){L(R,F.from)}function w(R,F){F.restore()}function P(R,F){return K;function K(V,W,M){let J,A,j,k;return Array.isArray(V)?te(V):"tokenize"in V?te([V]):Z(V);function Z(se){return St;function St(ln){const or=ln!==null&&se[ln],ur=ln!==null&&se.null,$l=[...Array.isArray(or)?or:or?[or]:[],...Array.isArray(ur)?ur:ur?[ur]:[]];return te($l)(ln)}}function te(se){return J=se,A=0,se.length===0?M:v(se[A])}function v(se){return St;function St(ln){return k=O(),j=se,se.partial||(a.currentConstruct=se),se.name&&a.parser.constructs.disable.null.includes(se.name)?dt():se.tokenize.call(F?Object.assign(Object.create(a),F):a,s,xe,dt)(ln)}}function xe(se){return R(j,k),W}function dt(se){return k.restore(),++A<J.length?v(J[A]):M}}}function L(R,F){R.resolveAll&&!l.includes(R)&&l.push(R),R.resolve&&Xe(a.events,F,a.events.length-F,R.resolve(a.events.slice(F),a)),R.resolveTo&&(a.events=R.resolveTo(a.events,a))}function O(){const R=g(),F=a.previous,K=a.currentConstruct,V=a.events.length,W=Array.from(u);return{from:V,restore:M};function M(){r=R,a.previous=F,a.currentConstruct=K,a.events.length=V,u=W,S()}}function S(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function X1(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,l)];else{if(o=e.slice(n,i),r>-1){const u=o[0];typeof u=="string"?o[0]=u.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function G1(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const l=e[n];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
40
+ `+l.stack}return{value:e,source:t,stack:i,digest:null}}function _u(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Iu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Pg=typeof WeakMap=="function"?WeakMap:Map;function zf(e,t,n){n=Nt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){pl||(pl=!0,Vu=r),Iu(e,t)},n}function Tf(e,t,n){n=Nt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Iu(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Iu(e,t),typeof r!="function"&&(Gt===null?Gt=new Set([this]):Gt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Pf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pg;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ug.bind(null,e,t,n),t.then(e,e))}function _f(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function If(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Nt(-1,1),t.tag=2,qt(n,t,1))),n.lanes|=1),e)}var _g=Et.ReactCurrentOwner,Oe=!1;function De(e,t,n,r){t.child=e===null?Kc(t,null,n,r):Wn(t,e.child,n,r)}function Nf(e,t,n,r,i){n=n.render;var l=t.ref;return Yn(t,i),r=vu(e,t,n,r,l,i),n=wu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Lt(e,t,i)):(se&&n&&ru(t),t.flags|=1,De(e,t,r,i),t.child)}function Lf(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Gu(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Af(e,t,l,r,i)):(e=xl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:Lr,n(o,r)&&e.ref===t.ref)return Lt(e,t,i)}return t.flags|=1,e=tn(l,r),e.ref=t.ref,e.return=t,t.child=e}function Af(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(Lr(l,r)&&e.ref===t.ref)if(Oe=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(Oe=!0);else return t.lanes=e.lanes,Lt(e,t,i)}return Nu(e,t,n,r,i)}function Df(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ne(Gn,Ke),Ke|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ne(Gn,Ke),Ke|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,ne(Gn,Ke),Ke|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,ne(Gn,Ke),Ke|=r;return De(e,t,i,n),t.child}function Rf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Nu(e,t,n,r,i){var l=Me(n)?an:ze.current;return l=Un(t,l),Yn(t,i),n=vu(e,t,n,r,l,i),r=wu(),e!==null&&!Oe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Lt(e,t,i)):(se&&r&&ru(t),t.flags|=1,De(e,t,n,i),t.child)}function bf(e,t,n,r,i){if(Me(n)){var l=!0;Hi(t)}else l=!1;if(Yn(t,i),t.stateNode===null)ul(e,t),Cf(t,n,r),Pu(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,u=t.memoizedProps;o.props=u;var s=o.context,a=n.contextType;typeof a=="object"&&a!==null?a=et(a):(a=Me(n)?an:ze.current,a=Un(t,a));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==r||s!==a)&&Ef(t,o,r,a),Kt=!1;var p=t.memoizedState;o.state=p,Ji(t,r,o,i),s=t.memoizedState,u!==r||p!==s||Fe.current||Kt?(typeof f=="function"&&(Tu(t,n,f,r),s=t.memoizedState),(u=Kt||Sf(t,n,u,r,p,s,a))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=a,r=u):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Xc(e,t),u=t.memoizedProps,a=t.type===t.elementType?u:st(t.type,u),o.props=a,c=t.pendingProps,p=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=et(s):(s=Me(n)?an:ze.current,s=Un(t,s));var d=n.getDerivedStateFromProps;(f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(u!==c||p!==s)&&Ef(t,o,r,s),Kt=!1,p=t.memoizedState,o.state=p,Ji(t,r,o,i);var g=t.memoizedState;u!==c||p!==g||Fe.current||Kt?(typeof d=="function"&&(Tu(t,n,d,r),g=t.memoizedState),(a=Kt||Sf(t,n,a,r,p,g,s)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,g,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,g,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),o.props=r,o.state=g,o.context=s,r=a):(typeof o.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Lu(e,t,n,r,l,i)}function Lu(e,t,n,r,i,l){Rf(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&jc(t,n,!1),Lt(e,t,l);r=t.stateNode,_g.current=t;var u=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Wn(t,e.child,null,l),t.child=Wn(t,null,u,l)):De(e,t,u,l),t.memoizedState=r.state,i&&jc(t,n,!0),t.child}function Ff(e){var t=e.stateNode;t.pendingContext?Mc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Mc(e,t.context,!1),hu(e,t.containerInfo)}function Mf(e,t,n,r,i){return Vn(),uu(i),t.flags|=256,De(e,t,n,r),t.child}var Au={dehydrated:null,treeContext:null,retryLane:0};function Du(e){return{baseLanes:e,cachePool:null,transitions:null}}function Of(e,t,n){var r=t.pendingProps,i=fe.current,l=!1,o=(t.flags&128)!==0,u;if((u=o)||(u=e!==null&&e.memoizedState===null?!1:(i&2)!==0),u?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ne(fe,i&1),e===null)return ou(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=kl(o,r,0,null),e=kn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Du(n),t.memoizedState=Au,e):Ru(t,o));if(i=e.memoizedState,i!==null&&(u=i.dehydrated,u!==null))return Ig(e,t,o,r,u,i,n);if(l){l=r.fallback,o=t.mode,i=e.child,u=i.sibling;var s={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=tn(i,s),r.subtreeFlags=i.subtreeFlags&14680064),u!==null?l=tn(u,l):(l=kn(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?Du(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=Au,r}return l=e.child,e=l.sibling,r=tn(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ru(e,t){return t=kl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ol(e,t,n,r){return r!==null&&uu(r),Wn(t,e.child,null,n),e=Ru(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ig(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=_u(Error(P(422))),ol(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=kl({mode:"visible",children:r.children},i,0,null),l=kn(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&Wn(t,e.child,null,o),t.child.memoizedState=Du(o),t.memoizedState=Au,l);if(!(t.mode&1))return ol(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var u=r.dgst;return r=u,l=Error(P(419)),r=_u(l,r,void 0),ol(e,t,o,r)}if(u=(o&e.childLanes)!==0,Oe||u){if(r=we,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,It(e,i),ft(r,e,i,-1))}return Xu(),r=_u(Error(P(421))),ol(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=$g.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,Ye=Vt(i.nextSibling),Qe=t,se=!0,ut=null,e!==null&&(Je[Ze++]=Pt,Je[Ze++]=_t,Je[Ze++]=cn,Pt=e.id,_t=e.overflow,cn=t),t=Ru(t,r.children),t.flags|=4096,t)}function jf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),fu(e.return,t,n)}function bu(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function Bf(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(De(e,t,r.children,n),r=fe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jf(e,n,t);else if(e.tag===19)jf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ne(fe,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Zi(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),bu(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Zi(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}bu(t,!0,n,null,l);break;case"together":bu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ul(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Lt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),mn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(P(153));if(t.child!==null){for(e=t.child,n=tn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ng(e,t,n){switch(t.tag){case 3:Ff(t),Vn();break;case 5:Zc(t);break;case 1:Me(t.type)&&Hi(t);break;case 4:hu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ne(qi,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ne(fe,fe.current&1),t.flags|=128,null):n&t.child.childLanes?Of(e,t,n):(ne(fe,fe.current&1),e=Lt(e,t,n),e!==null?e.sibling:null);ne(fe,fe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Bf(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ne(fe,fe.current),r)break;return null;case 22:case 23:return t.lanes=0,Df(e,t,n)}return Lt(e,t,n)}var Uf,Fu,$f,Hf;Uf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Fu=function(){},$f=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,dn(yt.current);var l=null;switch(n){case"input":i=co(e,i),r=co(e,r),l=[];break;case"select":i=ce({},i,{value:void 0}),r=ce({},r,{value:void 0}),l=[];break;case"textarea":i=ho(e,i),r=ho(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Bi)}go(n,r);var o;n=null;for(a in i)if(!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&i[a]!=null)if(a==="style"){var u=i[a];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(cr.hasOwnProperty(a)?l||(l=[]):(l=l||[]).push(a,null));for(a in r){var s=r[a];if(u=i!=null?i[a]:void 0,r.hasOwnProperty(a)&&s!==u&&(s!=null||u!=null))if(a==="style")if(u){for(o in u)!u.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&u[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(l||(l=[]),l.push(a,n)),n=s;else a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(l=l||[]).push(a,s)):a==="children"?typeof s!="string"&&typeof s!="number"||(l=l||[]).push(a,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(cr.hasOwnProperty(a)?(s!=null&&a==="onScroll"&&ie("scroll",e),l||u===s||(l=[])):(l=l||[]).push(a,s))}n&&(l=l||[]).push("style",n);var a=l;(t.updateQueue=a)&&(t.flags|=4)}},Hf=function(e,t,n,r){n!==r&&(t.flags|=4)};function Qr(e,t){if(!se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Lg(e,t,n){var r=t.pendingProps;switch(iu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return Me(t.type)&&$i(),Pe(t),null;case 3:return r=t.stateNode,Kn(),le(Fe),le(ze),yu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Yi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ut!==null&&(Yu(ut),ut=null))),Fu(e,t),Pe(t),null;case 5:mu(t);var i=dn(Ur.current);if(n=t.type,e!==null&&t.stateNode!=null)$f(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(P(166));return Pe(t),null}if(e=dn(yt.current),Yi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[gt]=t,r[Fr]=l,e=(t.mode&1)!==0,n){case"dialog":ie("cancel",r),ie("close",r);break;case"iframe":case"object":case"embed":ie("load",r);break;case"video":case"audio":for(i=0;i<Dr.length;i++)ie(Dr[i],r);break;case"source":ie("error",r);break;case"img":case"image":case"link":ie("error",r),ie("load",r);break;case"details":ie("toggle",r);break;case"input":Sa(r,l),ie("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},ie("invalid",r);break;case"textarea":za(r,l),ie("invalid",r)}go(n,l),i=null;for(var o in l)if(l.hasOwnProperty(o)){var u=l[o];o==="children"?typeof u=="string"?r.textContent!==u&&(l.suppressHydrationWarning!==!0&&ji(r.textContent,u,e),i=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(l.suppressHydrationWarning!==!0&&ji(r.textContent,u,e),i=["children",""+u]):cr.hasOwnProperty(o)&&u!=null&&o==="onScroll"&&ie("scroll",r)}switch(n){case"input":gi(r),Ea(r,l,!0);break;case"textarea":gi(r),Pa(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Bi)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=_a(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[gt]=t,e[Fr]=r,Uf(e,t,!1,!1),t.stateNode=e;e:{switch(o=yo(n,r),n){case"dialog":ie("cancel",e),ie("close",e),i=r;break;case"iframe":case"object":case"embed":ie("load",e),i=r;break;case"video":case"audio":for(i=0;i<Dr.length;i++)ie(Dr[i],e);i=r;break;case"source":ie("error",e),i=r;break;case"img":case"image":case"link":ie("error",e),ie("load",e),i=r;break;case"details":ie("toggle",e),i=r;break;case"input":Sa(e,r),i=co(e,r),ie("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ce({},r,{value:void 0}),ie("invalid",e);break;case"textarea":za(e,r),i=ho(e,r),ie("invalid",e);break;default:i=r}go(n,i),u=i;for(l in u)if(u.hasOwnProperty(l)){var s=u[l];l==="style"?La(e,s):l==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Ia(e,s)):l==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&hr(e,s):typeof s=="number"&&hr(e,""+s):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(cr.hasOwnProperty(l)?s!=null&&l==="onScroll"&&ie("scroll",e):s!=null&&Zl(e,l,s,o))}switch(n){case"input":gi(e),Ea(e,r,!1);break;case"textarea":gi(e),Pa(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Mt(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?In(e,!!r.multiple,l,!1):r.defaultValue!=null&&In(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Bi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Pe(t),null;case 6:if(e&&t.stateNode!=null)Hf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(P(166));if(n=dn(Ur.current),dn(yt.current),Yi(t)){if(r=t.stateNode,n=t.memoizedProps,r[gt]=t,(l=r.nodeValue!==n)&&(e=Qe,e!==null))switch(e.tag){case 3:ji(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ji(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[gt]=t,t.stateNode=r}return Pe(t),null;case 13:if(le(fe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(se&&Ye!==null&&t.mode&1&&!(t.flags&128))Wc(),Vn(),t.flags|=98560,l=!1;else if(l=Yi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(P(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(P(317));l[gt]=t}else Vn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pe(t),l=!1}else ut!==null&&(Yu(ut),ut=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||fe.current&1?xe===0&&(xe=3):Xu())),t.updateQueue!==null&&(t.flags|=4),Pe(t),null);case 4:return Kn(),Fu(e,t),e===null&&Rr(t.stateNode.containerInfo),Pe(t),null;case 10:return cu(t.type._context),Pe(t),null;case 17:return Me(t.type)&&$i(),Pe(t),null;case 19:if(le(fe),l=t.memoizedState,l===null)return Pe(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Qr(l,!1);else{if(xe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Zi(e),o!==null){for(t.flags|=128,Qr(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ne(fe,fe.current&1|2),t.child}e=e.sibling}l.tail!==null&&he()>Jn&&(t.flags|=128,r=!0,Qr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Zi(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!se)return Pe(t),null}else 2*he()-l.renderingStartTime>Jn&&n!==1073741824&&(t.flags|=128,r=!0,Qr(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=he(),t.sibling=null,n=fe.current,ne(fe,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return qu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ke&1073741824&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function Ag(e,t){switch(iu(t),t.tag){case 1:return Me(t.type)&&$i(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kn(),le(Fe),le(ze),yu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mu(t),null;case 13:if(le(fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));Vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(fe),null;case 4:return Kn(),null;case 10:return cu(t.type._context),null;case 22:case 23:return qu(),null;case 24:return null;default:return null}}var sl=!1,_e=!1,Dg=typeof WeakSet=="function"?WeakSet:Set,b=null;function Xn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){de(e,t,r)}else n.current=null}function Mu(e,t,n){try{n()}catch(r){de(e,t,r)}}var Vf=!1;function Rg(e,t){if(qo=_i,e=wc(),Uo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,u=-1,s=-1,a=0,f=0,c=e,p=null;t:for(;;){for(var d;c!==n||i!==0&&c.nodeType!==3||(u=o+i),c!==l||r!==0&&c.nodeType!==3||(s=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(d=c.firstChild)!==null;)p=c,c=d;for(;;){if(c===e)break t;if(p===n&&++a===i&&(u=o),p===l&&++f===r&&(s=o),(d=c.nextSibling)!==null)break;c=p,p=c.parentNode}c=d}n=u===-1||s===-1?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xo={focusedElem:e,selectionRange:n},_i=!1,b=t;b!==null;)if(t=b,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,b=e;else for(;b!==null;){t=b;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var k=g.memoizedProps,E=g.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?k:st(t.type,k),E);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(C){de(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,b=e;break}b=t.return}return g=Vf,Vf=!1,g}function Yr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&Mu(t,n,l)}i=i.next}while(i!==r)}}function al(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ou(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Wf(e){var t=e.alternate;t!==null&&(e.alternate=null,Wf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gt],delete t[Fr],delete t[eu],delete t[gg],delete t[yg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Qf(e){return e.tag===5||e.tag===3||e.tag===4}function Yf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ju(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Bi));else if(r!==4&&(e=e.child,e!==null))for(ju(e,t,n),e=e.sibling;e!==null;)ju(e,t,n),e=e.sibling}function Bu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Bu(e,t,n),e=e.sibling;e!==null;)Bu(e,t,n),e=e.sibling}var Ce=null,at=!1;function Xt(e,t,n){for(n=n.child;n!==null;)Kf(e,t,n),n=n.sibling}function Kf(e,t,n){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(Si,n)}catch{}switch(n.tag){case 5:_e||Xn(n,t);case 6:var r=Ce,i=at;Ce=null,Xt(e,t,n),Ce=r,at=i,Ce!==null&&(at?(e=Ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(at?(e=Ce,n=n.stateNode,e.nodeType===8?Zo(e.parentNode,n):e.nodeType===1&&Zo(e,n),zr(e)):Zo(Ce,n.stateNode));break;case 4:r=Ce,i=at,Ce=n.stateNode.containerInfo,at=!0,Xt(e,t,n),Ce=r,at=i;break;case 0:case 11:case 14:case 15:if(!_e&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&Mu(n,t,o),i=i.next}while(i!==r)}Xt(e,t,n);break;case 1:if(!_e&&(Xn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){de(n,t,u)}Xt(e,t,n);break;case 21:Xt(e,t,n);break;case 22:n.mode&1?(_e=(r=_e)||n.memoizedState!==null,Xt(e,t,n),_e=r):Xt(e,t,n);break;default:Xt(e,t,n)}}function qf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Dg),t.forEach(function(r){var i=Hg.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var l=e,o=t,u=o;e:for(;u!==null;){switch(u.tag){case 5:Ce=u.stateNode,at=!1;break e;case 3:Ce=u.stateNode.containerInfo,at=!0;break e;case 4:Ce=u.stateNode.containerInfo,at=!0;break e}u=u.return}if(Ce===null)throw Error(P(160));Kf(l,o,i),Ce=null,at=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(a){de(i,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Xf(t,e),t=t.sibling}function Xf(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ct(t,e),kt(e),r&4){try{Yr(3,e,e.return),al(3,e)}catch(k){de(e,e.return,k)}try{Yr(5,e,e.return)}catch(k){de(e,e.return,k)}}break;case 1:ct(t,e),kt(e),r&512&&n!==null&&Xn(n,n.return);break;case 5:if(ct(t,e),kt(e),r&512&&n!==null&&Xn(n,n.return),e.flags&32){var i=e.stateNode;try{hr(i,"")}catch(k){de(e,e.return,k)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,u=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{u==="input"&&l.type==="radio"&&l.name!=null&&Ca(i,l),yo(u,o);var a=yo(u,l);for(o=0;o<s.length;o+=2){var f=s[o],c=s[o+1];f==="style"?La(i,c):f==="dangerouslySetInnerHTML"?Ia(i,c):f==="children"?hr(i,c):Zl(i,f,c,a)}switch(u){case"input":fo(i,l);break;case"textarea":Ta(i,l);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var d=l.value;d!=null?In(i,!!l.multiple,d,!1):p!==!!l.multiple&&(l.defaultValue!=null?In(i,!!l.multiple,l.defaultValue,!0):In(i,!!l.multiple,l.multiple?[]:"",!1))}i[Fr]=l}catch(k){de(e,e.return,k)}}break;case 6:if(ct(t,e),kt(e),r&4){if(e.stateNode===null)throw Error(P(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(k){de(e,e.return,k)}}break;case 3:if(ct(t,e),kt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zr(t.containerInfo)}catch(k){de(e,e.return,k)}break;case 4:ct(t,e),kt(e);break;case 13:ct(t,e),kt(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(Hu=he())),r&4&&qf(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(_e=(a=_e)||f,ct(t,e),_e=a):ct(t,e),kt(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!f&&e.mode&1)for(b=e,f=e.child;f!==null;){for(c=b=f;b!==null;){switch(p=b,d=p.child,p.tag){case 0:case 11:case 14:case 15:Yr(4,p,p.return);break;case 1:Xn(p,p.return);var g=p.stateNode;if(typeof g.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(k){de(r,n,k)}}break;case 5:Xn(p,p.return);break;case 22:if(p.memoizedState!==null){Zf(c);continue}}d!==null?(d.return=p,b=d):Zf(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,a?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(u=c.stateNode,s=c.memoizedProps.style,o=s!=null&&s.hasOwnProperty("display")?s.display:null,u.style.display=Na("display",o))}catch(k){de(e,e.return,k)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(k){de(e,e.return,k)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:ct(t,e),kt(e),r&4&&qf(e);break;case 21:break;default:ct(t,e),kt(e)}}function kt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Qf(n)){var r=n;break e}n=n.return}throw Error(P(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(hr(i,""),r.flags&=-33);var l=Yf(e);Bu(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,u=Yf(e);ju(e,u,o);break;default:throw Error(P(161))}}catch(s){de(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bg(e,t,n){b=e,Gf(e)}function Gf(e,t,n){for(var r=(e.mode&1)!==0;b!==null;){var i=b,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||sl;if(!o){var u=i.alternate,s=u!==null&&u.memoizedState!==null||_e;u=sl;var a=_e;if(sl=o,(_e=s)&&!a)for(b=i;b!==null;)o=b,s=o.child,o.tag===22&&o.memoizedState!==null?ep(i):s!==null?(s.return=o,b=s):ep(i);for(;l!==null;)b=l,Gf(l),l=l.sibling;b=i,sl=u,_e=a}Jf(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,b=l):Jf(e)}}function Jf(e){for(;b!==null;){var t=b;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:_e||al(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!_e)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:st(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Jc(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Jc(t,o,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var f=a.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&zr(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(P(163))}_e||t.flags&512&&Ou(t)}catch(p){de(t,t.return,p)}}if(t===e){b=null;break}if(n=t.sibling,n!==null){n.return=t.return,b=n;break}b=t.return}}function Zf(e){for(;b!==null;){var t=b;if(t===e){b=null;break}var n=t.sibling;if(n!==null){n.return=t.return,b=n;break}b=t.return}}function ep(e){for(;b!==null;){var t=b;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{al(4,t)}catch(s){de(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){de(t,i,s)}}var l=t.return;try{Ou(t)}catch(s){de(t,l,s)}break;case 5:var o=t.return;try{Ou(t)}catch(s){de(t,o,s)}}}catch(s){de(t,t.return,s)}if(t===e){b=null;break}var u=t.sibling;if(u!==null){u.return=t.return,b=u;break}b=t.return}}var Fg=Math.ceil,cl=Et.ReactCurrentDispatcher,Uu=Et.ReactCurrentOwner,nt=Et.ReactCurrentBatchConfig,X=0,we=null,me=null,Ee=0,Ke=0,Gn=Wt(0),xe=0,Kr=null,mn=0,fl=0,$u=0,qr=null,je=null,Hu=0,Jn=1/0,At=null,pl=!1,Vu=null,Gt=null,dl=!1,Jt=null,hl=0,Xr=0,Wu=null,ml=-1,gl=0;function Re(){return X&6?he():ml!==-1?ml:ml=he()}function Zt(e){return e.mode&1?X&2&&Ee!==0?Ee&-Ee:kg.transition!==null?(gl===0&&(gl=Qa()),gl):(e=J,e!==0||(e=window.event,e=e===void 0?16:tc(e.type)),e):1}function ft(e,t,n,r){if(50<Xr)throw Xr=0,Wu=null,Error(P(185));vr(e,n,r),(!(X&2)||e!==we)&&(e===we&&(!(X&2)&&(fl|=n),xe===4&&en(e,Ee)),Be(e,r),n===1&&X===0&&!(t.mode&1)&&(Jn=he()+500,Vi&&Yt()))}function Be(e,t){var n=e.callbackNode;km(e,t);var r=zi(e,e===we?Ee:0);if(r===0)n!==null&&Ha(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ha(n),t===1)e.tag===0?xg(np.bind(null,e)):Bc(np.bind(null,e)),hg(function(){!(X&6)&&Yt()}),n=null;else{switch(Ya(r)){case 1:n=Eo;break;case 4:n=Va;break;case 16:n=wi;break;case 536870912:n=Wa;break;default:n=wi}n=cp(n,tp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function tp(e,t){if(ml=-1,gl=0,X&6)throw Error(P(327));var n=e.callbackNode;if(Zn()&&e.callbackNode!==n)return null;var r=zi(e,e===we?Ee:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=yl(e,r);else{t=r;var i=X;X|=2;var l=ip();(we!==e||Ee!==t)&&(At=null,Jn=he()+500,yn(e,t));do try{jg();break}catch(u){rp(e,u)}while(!0);au(),cl.current=l,X=i,me!==null?t=0:(we=null,Ee=0,t=xe)}if(t!==0){if(t===2&&(i=zo(e),i!==0&&(r=i,t=Qu(e,i))),t===1)throw n=Kr,yn(e,0),en(e,r),Be(e,he()),n;if(t===6)en(e,r);else{if(i=e.current.alternate,!(r&30)&&!Mg(i)&&(t=yl(e,r),t===2&&(l=zo(e),l!==0&&(r=l,t=Qu(e,l))),t===1))throw n=Kr,yn(e,0),en(e,r),Be(e,he()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(P(345));case 2:xn(e,je,At);break;case 3:if(en(e,r),(r&130023424)===r&&(t=Hu+500-he(),10<t)){if(zi(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Re(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Jo(xn.bind(null,e,je,At),t);break}xn(e,je,At);break;case 4:if(en(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-lt(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fg(r/1960))-r,10<r){e.timeoutHandle=Jo(xn.bind(null,e,je,At),r);break}xn(e,je,At);break;case 5:xn(e,je,At);break;default:throw Error(P(329))}}}return Be(e,he()),e.callbackNode===n?tp.bind(null,e):null}function Qu(e,t){var n=qr;return e.current.memoizedState.isDehydrated&&(yn(e,t).flags|=256),e=yl(e,t),e!==2&&(t=je,je=n,t!==null&&Yu(t)),e}function Yu(e){je===null?je=e:je.push.apply(je,e)}function Mg(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],l=i.getSnapshot;i=i.value;try{if(!ot(l(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function en(e,t){for(t&=~$u,t&=~fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-lt(t),r=1<<n;e[n]=-1,t&=~r}}function np(e){if(X&6)throw Error(P(327));Zn();var t=zi(e,0);if(!(t&1))return Be(e,he()),null;var n=yl(e,t);if(e.tag!==0&&n===2){var r=zo(e);r!==0&&(t=r,n=Qu(e,r))}if(n===1)throw n=Kr,yn(e,0),en(e,t),Be(e,he()),n;if(n===6)throw Error(P(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xn(e,je,At),Be(e,he()),null}function Ku(e,t){var n=X;X|=1;try{return e(t)}finally{X=n,X===0&&(Jn=he()+500,Vi&&Yt())}}function gn(e){Jt!==null&&Jt.tag===0&&!(X&6)&&Zn();var t=X;X|=1;var n=nt.transition,r=J;try{if(nt.transition=null,J=1,e)return e()}finally{J=r,nt.transition=n,X=t,!(X&6)&&Yt()}}function qu(){Ke=Gn.current,le(Gn)}function yn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,dg(n)),me!==null)for(n=me.return;n!==null;){var r=n;switch(iu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&$i();break;case 3:Kn(),le(Fe),le(ze),yu();break;case 5:mu(r);break;case 4:Kn();break;case 13:le(fe);break;case 19:le(fe);break;case 10:cu(r.type._context);break;case 22:case 23:qu()}n=n.return}if(we=e,me=e=tn(e.current,null),Ee=Ke=t,xe=0,Kr=null,$u=fl=mn=0,je=qr=null,pn!==null){for(t=0;t<pn.length;t++)if(n=pn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=i,r.next=o}n.pending=r}pn=null}return e}function rp(e,t){do{var n=me;try{if(au(),el.current=il,tl){for(var r=pe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}tl=!1}if(hn=0,ve=ye=pe=null,$r=!1,Hr=0,Uu.current=null,n===null||n.return===null){xe=1,Kr=t,me=null;break}e:{var l=e,o=n.return,u=n,s=t;if(t=Ee,u.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var a=s,f=u,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var d=_f(o);if(d!==null){d.flags&=-257,If(d,o,u,l,t),d.mode&1&&Pf(l,a,t),t=d,s=a;var g=t.updateQueue;if(g===null){var k=new Set;k.add(s),t.updateQueue=k}else g.add(s);break e}else{if(!(t&1)){Pf(l,a,t),Xu();break e}s=Error(P(426))}}else if(se&&u.mode&1){var E=_f(o);if(E!==null){!(E.flags&65536)&&(E.flags|=256),If(E,o,u,l,t),uu(qn(s,u));break e}}l=s=qn(s,u),xe!==4&&(xe=2),qr===null?qr=[l]:qr.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var h=zf(l,s,t);Gc(l,h);break e;case 1:u=s;var m=l.type,y=l.stateNode;if(!(l.flags&128)&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Gt===null||!Gt.has(y)))){l.flags|=65536,t&=-t,l.lanes|=t;var C=Tf(l,u,t);Gc(l,C);break e}}l=l.return}while(l!==null)}op(n)}catch(T){t=T,me===n&&n!==null&&(me=n=n.return);continue}break}while(!0)}function ip(){var e=cl.current;return cl.current=il,e===null?il:e}function Xu(){(xe===0||xe===3||xe===2)&&(xe=4),we===null||!(mn&268435455)&&!(fl&268435455)||en(we,Ee)}function yl(e,t){var n=X;X|=2;var r=ip();(we!==e||Ee!==t)&&(At=null,yn(e,t));do try{Og();break}catch(i){rp(e,i)}while(!0);if(au(),X=n,cl.current=r,me!==null)throw Error(P(261));return we=null,Ee=0,xe}function Og(){for(;me!==null;)lp(me)}function jg(){for(;me!==null&&!cm();)lp(me)}function lp(e){var t=ap(e.alternate,e,Ke);e.memoizedProps=e.pendingProps,t===null?op(e):me=t,Uu.current=null}function op(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Ag(n,t),n!==null){n.flags&=32767,me=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{xe=6,me=null;return}}else if(n=Lg(n,t,Ke),n!==null){me=n;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);xe===0&&(xe=5)}function xn(e,t,n){var r=J,i=nt.transition;try{nt.transition=null,J=1,Bg(e,t,n,r)}finally{nt.transition=i,J=r}return null}function Bg(e,t,n,r){do Zn();while(Jt!==null);if(X&6)throw Error(P(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(P(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(vm(e,l),e===we&&(me=we=null,Ee=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||dl||(dl=!0,cp(wi,function(){return Zn(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=nt.transition,nt.transition=null;var o=J;J=1;var u=X;X|=4,Uu.current=null,Rg(e,n),Xf(n,e),og(Xo),_i=!!qo,Xo=qo=null,e.current=n,bg(n),fm(),X=u,J=o,nt.transition=l}else e.current=n;if(dl&&(dl=!1,Jt=e,hl=i),l=e.pendingLanes,l===0&&(Gt=null),hm(n.stateNode),Be(e,he()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(pl)throw pl=!1,e=Vu,Vu=null,e;return hl&1&&e.tag!==0&&Zn(),l=e.pendingLanes,l&1?e===Wu?Xr++:(Xr=0,Wu=e):Xr=0,Yt(),null}function Zn(){if(Jt!==null){var e=Ya(hl),t=nt.transition,n=J;try{if(nt.transition=null,J=16>e?16:e,Jt===null)var r=!1;else{if(e=Jt,Jt=null,hl=0,X&6)throw Error(P(331));var i=X;for(X|=4,b=e.current;b!==null;){var l=b,o=l.child;if(b.flags&16){var u=l.deletions;if(u!==null){for(var s=0;s<u.length;s++){var a=u[s];for(b=a;b!==null;){var f=b;switch(f.tag){case 0:case 11:case 15:Yr(8,f,l)}var c=f.child;if(c!==null)c.return=f,b=c;else for(;b!==null;){f=b;var p=f.sibling,d=f.return;if(Wf(f),f===a){b=null;break}if(p!==null){p.return=d,b=p;break}b=d}}}var g=l.alternate;if(g!==null){var k=g.child;if(k!==null){g.child=null;do{var E=k.sibling;k.sibling=null,k=E}while(k!==null)}}b=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,b=o;else e:for(;b!==null;){if(l=b,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Yr(9,l,l.return)}var h=l.sibling;if(h!==null){h.return=l.return,b=h;break e}b=l.return}}var m=e.current;for(b=m;b!==null;){o=b;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,b=y;else e:for(o=m;b!==null;){if(u=b,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:al(9,u)}}catch(T){de(u,u.return,T)}if(u===o){b=null;break e}var C=u.sibling;if(C!==null){C.return=u.return,b=C;break e}b=u.return}}if(X=i,Yt(),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(Si,e)}catch{}r=!0}return r}finally{J=n,nt.transition=t}}return!1}function up(e,t,n){t=qn(n,t),t=zf(e,t,1),e=qt(e,t,1),t=Re(),e!==null&&(vr(e,1,t),Be(e,t))}function de(e,t,n){if(e.tag===3)up(e,e,n);else for(;t!==null;){if(t.tag===3){up(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Gt===null||!Gt.has(r))){e=qn(n,e),e=Tf(t,e,1),t=qt(t,e,1),e=Re(),t!==null&&(vr(t,1,e),Be(t,e));break}}t=t.return}}function Ug(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Re(),e.pingedLanes|=e.suspendedLanes&n,we===e&&(Ee&n)===n&&(xe===4||xe===3&&(Ee&130023424)===Ee&&500>he()-Hu?yn(e,0):$u|=n),Be(e,t)}function sp(e,t){t===0&&(e.mode&1?(t=Ei,Ei<<=1,!(Ei&130023424)&&(Ei=4194304)):t=1);var n=Re();e=It(e,t),e!==null&&(vr(e,t,n),Be(e,n))}function $g(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sp(e,n)}function Hg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(t),sp(e,n)}var ap;ap=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Fe.current)Oe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Oe=!1,Ng(e,t,n);Oe=!!(e.flags&131072)}else Oe=!1,se&&t.flags&1048576&&Uc(t,Qi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ul(e,t),e=t.pendingProps;var i=Un(t,ze.current);Yn(t,n),i=vu(null,t,r,e,i,n);var l=wu();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Me(r)?(l=!0,Hi(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,du(t),i.updater=ll,t.stateNode=i,i._reactInternals=t,Pu(t,r,e,n),t=Lu(null,t,r,!0,l,n)):(t.tag=0,se&&l&&ru(t),De(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ul(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Wg(r),e=st(r,e),i){case 0:t=Nu(null,t,r,e,n);break e;case 1:t=bf(null,t,r,e,n);break e;case 11:t=Nf(null,t,r,e,n);break e;case 14:t=Lf(null,t,r,st(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:st(r,i),Nu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:st(r,i),bf(e,t,r,i,n);case 3:e:{if(Ff(t),e===null)throw Error(P(387));r=t.pendingProps,l=t.memoizedState,i=l.element,Xc(e,t),Ji(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=qn(Error(P(423)),t),t=Mf(e,t,r,n,i);break e}else if(r!==i){i=qn(Error(P(424)),t),t=Mf(e,t,r,n,i);break e}else for(Ye=Vt(t.stateNode.containerInfo.firstChild),Qe=t,se=!0,ut=null,n=Kc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vn(),r===i){t=Lt(e,t,n);break e}De(e,t,r,n)}t=t.child}return t;case 5:return Zc(t),e===null&&ou(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,Go(r,i)?o=null:l!==null&&Go(r,l)&&(t.flags|=32),Rf(e,t),De(e,t,o,n),t.child;case 6:return e===null&&ou(t),null;case 13:return Of(e,t,n);case 4:return hu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wn(t,null,r,n):De(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:st(r,i),Nf(e,t,r,i,n);case 7:return De(e,t,t.pendingProps,n),t.child;case 8:return De(e,t,t.pendingProps.children,n),t.child;case 12:return De(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,ne(qi,r._currentValue),r._currentValue=o,l!==null)if(ot(l.value,o)){if(l.children===i.children&&!Fe.current){t=Lt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){o=l.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(l.tag===1){s=Nt(-1,n&-n),s.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?s.next=s:(s.next=f.next,f.next=s),a.pending=s}}l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),fu(l.return,n,t),u.lanes|=n;break}s=s.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(P(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),fu(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}De(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Yn(t,n),i=et(i),r=r(i),t.flags|=1,De(e,t,r,n),t.child;case 14:return r=t.type,i=st(r,t.pendingProps),i=st(r.type,i),Lf(e,t,r,i,n);case 15:return Af(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:st(r,i),ul(e,t),t.tag=1,Me(r)?(e=!0,Hi(t)):e=!1,Yn(t,n),Cf(t,r,i),Pu(t,r,i,n),Lu(null,t,r,!0,e,n);case 19:return Bf(e,t,n);case 22:return Df(e,t,n)}throw Error(P(156,t.tag))};function cp(e,t){return $a(e,t)}function Vg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rt(e,t,n,r){return new Vg(e,t,n,r)}function Gu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wg(e){if(typeof e=="function")return Gu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===no)return 11;if(e===lo)return 14}return 2}function tn(e,t){var n=e.alternate;return n===null?(n=rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function xl(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Gu(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case _n:return kn(n.children,i,l,t);case eo:o=8,i|=8;break;case to:return e=rt(12,n,t,i|2),e.elementType=to,e.lanes=l,e;case ro:return e=rt(13,n,t,i),e.elementType=ro,e.lanes=l,e;case io:return e=rt(19,n,t,i),e.elementType=io,e.lanes=l,e;case xa:return kl(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ga:o=10;break e;case ya:o=9;break e;case no:o=11;break e;case lo:o=14;break e;case Ft:o=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=rt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function kn(e,t,n,r){return e=rt(7,e,r,t),e.lanes=n,e}function kl(e,t,n,r){return e=rt(22,e,r,t),e.elementType=xa,e.lanes=n,e.stateNode={isHidden:!1},e}function Ju(e,t,n){return e=rt(6,e,null,t),e.lanes=n,e}function Zu(e,t,n){return t=rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qg(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=To(0),this.expirationTimes=To(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=To(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function es(e,t,n,r,i,l,o,u,s){return e=new Qg(e,t,n,u,s),t===1?(t=1,l===!0&&(t|=8)):t=0,l=rt(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},du(l),e}function Yg(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Pn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function fp(e){if(!e)return Qt;e=e._reactInternals;e:{if(un(e)!==e||e.tag!==1)throw Error(P(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Me(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(P(171))}if(e.tag===1){var n=e.type;if(Me(n))return Oc(e,n,t)}return t}function pp(e,t,n,r,i,l,o,u,s){return e=es(n,r,!0,e,i,l,o,u,s),e.context=fp(null),n=e.current,r=Re(),i=Zt(n),l=Nt(r,i),l.callback=t??null,qt(n,l,i),e.current.lanes=i,vr(e,i,r),Be(e,r),e}function vl(e,t,n,r){var i=t.current,l=Re(),o=Zt(i);return n=fp(n),t.context===null?t.context=n:t.pendingContext=n,t=Nt(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=qt(i,t,o),e!==null&&(ft(e,i,o,l),Gi(e,i,o)),o}function wl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function dp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ts(e,t){dp(e,t),(e=e.alternate)&&dp(e,t)}function Kg(){return null}var hp=typeof reportError=="function"?reportError:function(e){console.error(e)};function ns(e){this._internalRoot=e}Sl.prototype.render=ns.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(P(409));vl(e,t,null,null)},Sl.prototype.unmount=ns.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gn(function(){vl(null,e,null,null)}),t[zt]=null}};function Sl(e){this._internalRoot=e}Sl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xa();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ut.length&&t!==0&&t<Ut[n].priority;n++);Ut.splice(n,0,e),n===0&&Za(e)}};function rs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Cl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function mp(){}function qg(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var a=wl(o);l.call(a)}}var o=pp(t,r,e,0,null,!1,!1,"",mp);return e._reactRootContainer=o,e[zt]=o.current,Rr(e.nodeType===8?e.parentNode:e),gn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var u=r;r=function(){var a=wl(s);u.call(a)}}var s=es(e,0,!1,null,null,!1,!1,"",mp);return e._reactRootContainer=s,e[zt]=s.current,Rr(e.nodeType===8?e.parentNode:e),gn(function(){vl(t,s,n,r)}),s}function El(e,t,n,r,i){var l=n._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var u=i;i=function(){var s=wl(o);u.call(s)}}vl(t,o,e,i)}else o=qg(n,t,e,i,r);return wl(o)}Ka=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=kr(t.pendingLanes);n!==0&&(Po(t,n|1),Be(t,he()),!(X&6)&&(Jn=he()+500,Yt()))}break;case 13:gn(function(){var r=It(e,1);if(r!==null){var i=Re();ft(r,e,1,i)}}),ts(e,1)}},_o=function(e){if(e.tag===13){var t=It(e,134217728);if(t!==null){var n=Re();ft(t,e,134217728,n)}ts(e,134217728)}},qa=function(e){if(e.tag===13){var t=Zt(e),n=It(e,t);if(n!==null){var r=Re();ft(n,e,t,r)}ts(e,t)}},Xa=function(){return J},Ga=function(e,t){var n=J;try{return J=e,t()}finally{J=n}},vo=function(e,t,n){switch(t){case"input":if(fo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Ui(r);if(!i)throw Error(P(90));wa(r),fo(r,i)}}}break;case"textarea":Ta(e,n);break;case"select":t=n.value,t!=null&&In(e,!!n.multiple,t,!1)}},ba=Ku,Fa=gn;var Xg={usingClientEntryPoint:!1,Events:[Mr,jn,Ui,Da,Ra,Ku]},Gr={findFiberByHostInstance:sn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Gg={bundleType:Gr.bundleType,version:Gr.version,rendererPackageName:Gr.rendererPackageName,rendererConfig:Gr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Et.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ba(e),e===null?null:e.stateNode},findFiberByHostInstance:Gr.findFiberByHostInstance||Kg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zl.isDisabled&&zl.supportsFiber)try{Si=zl.inject(Gg),mt=zl}catch{}}He.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Xg,He.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rs(t))throw Error(P(200));return Yg(e,t,null,n)},He.createRoot=function(e,t){if(!rs(e))throw Error(P(299));var n=!1,r="",i=hp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=es(e,1,!1,null,null,n,!1,r,i),e[zt]=t.current,Rr(e.nodeType===8?e.parentNode:e),new ns(t)},He.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(P(188)):(e=Object.keys(e).join(","),Error(P(268,e)));return e=Ba(t),e=e===null?null:e.stateNode,e},He.flushSync=function(e){return gn(e)},He.hydrate=function(e,t,n){if(!Cl(t))throw Error(P(200));return El(null,e,t,!0,n)},He.hydrateRoot=function(e,t,n){if(!rs(e))throw Error(P(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=hp;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=pp(t,null,e,1,n??null,i,!1,l,o),e[zt]=t.current,Rr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Sl(t)},He.render=function(e,t,n){if(!Cl(t))throw Error(P(200));return El(null,e,t,!1,n)},He.unmountComponentAtNode=function(e){if(!Cl(e))throw Error(P(40));return e._reactRootContainer?(gn(function(){El(null,null,e,!1,function(){e._reactRootContainer=null,e[zt]=null})}),!0):!1},He.unstable_batchedUpdates=Ku,He.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Cl(n))throw Error(P(200));if(e==null||e._reactInternals===void 0)throw Error(P(38));return El(e,t,n,!1,r)},He.version="18.3.1-next-f1338f8080-20240426";function gp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gp)}catch(e){console.error(e)}}gp(),ca.exports=He;var Jg=ca.exports,yp=Jg;ql.createRoot=yp.createRoot,ql.hydrateRoot=yp.hydrateRoot;function Zg({agents:e,activeAgentId:t,agentFiles:n}){return I.jsxs("div",{className:"flex flex-col bg-zinc-900 border-r border-zinc-800 shrink-0 w-48 overflow-y-auto",children:[I.jsx("div",{className:"px-3 py-2 text-xs font-medium text-zinc-500 uppercase tracking-wider border-b border-zinc-800",children:"Tests"}),e.map(r=>{const i=r.result==="pass"?"text-green-500":r.result==="fail"?"text-red-500":"text-zinc-500",l=r.result==="pass"?"✓":r.result==="fail"?"✗":"●",o=r.id===t;return I.jsx("a",{href:n[r.id]||"#",className:`px-3 py-2 text-xs text-left border-b border-zinc-800 transition-colors no-underline block
41
+ ${o?"bg-zinc-800 text-zinc-200":"text-zinc-500 hover:text-zinc-300"}`,children:I.jsxs("span",{className:"flex items-center gap-2",children:[I.jsx("span",{className:`shrink-0 ${i}`,children:l}),I.jsx("span",{className:"truncate",children:r.name})]})},r.id)})]})}function ey({tabIds:e,activeTabId:t,onSelectTab:n}){return I.jsx("div",{className:"flex items-center bg-zinc-900 border-b border-zinc-800 overflow-x-auto",children:e.map((r,i)=>I.jsxs("button",{onClick:()=>n(r),className:`px-3 py-2 text-xs border-r border-zinc-800 shrink-0
42
+ ${r===t?"bg-zinc-800 text-zinc-200":"text-zinc-500 hover:text-zinc-300"}`,children:["Tab ",i+1]},r))})}function ty({clips:e,currentTime:t,playing:n,speed:r}){const i=V.useRef(null),[l,o]=V.useState(new Map),[u,s]=V.useState(-1);V.useEffect(()=>{let p=!1;const d=new Map;return Promise.all(e.map(async(g,k)=>{try{const E=atob(g.data),h=new Uint8Array(E.length);for(let y=0;y<E.length;y++)h[y]=E.charCodeAt(y);const m=new Blob([h],{type:"video/webm"});p||d.set(k,URL.createObjectURL(m))}catch(E){console.warn(`Failed to preload clip ${k}:`,E)}})).then(()=>{p||o(new Map(d))}),()=>{p=!0;for(const g of d.values())URL.revokeObjectURL(g)}},[e]);const a=e.findIndex(p=>t>=p.startTime&&t<=p.endTime),f=a>=0?e[a]:null,c=!f;return V.useEffect(()=>{const p=i.current;if(p&&f&&a!==u){const d=l.get(a);if(!d)return;p.src=d;const g=Math.max(0,(t-f.startTime)/1e3);p.currentTime=g,s(a),n&&(p.playbackRate=r,p.play().catch(()=>{}))}},[a,f,l,u]),V.useEffect(()=>{var p;c&&((p=i.current)==null||p.pause())},[c]),V.useEffect(()=>{const p=i.current;!p||!f||a!==u||n||(p.currentTime=Math.max(0,(t-f.startTime)/1e3))},[t,f,n,u]),V.useEffect(()=>{const p=i.current;p&&(n&&f&&u===a?(p.playbackRate=r,p.play().catch(()=>{})):p.pause())},[n,f,r,c,u,a]),I.jsx("div",{className:"absolute inset-0 bg-zinc-950 flex items-center justify-center overflow-hidden",children:I.jsx("video",{ref:i,className:"max-w-full max-h-full",muted:!0,playsInline:!0})})}function ny({entries:e,currentTime:t}){const[n,r]=V.useState(!0),[i,l]=V.useState("all"),o=V.useRef(null),u=e.filter(c=>c.ts<=t),s=i==="all"?u:u.filter(c=>i==="error"?c.level==="error":c.level==="warn"),a=u.filter(c=>c.level==="error").length,f=u.filter(c=>c.level==="warn").length;return V.useEffect(()=>{o.current&&(o.current.scrollTop=o.current.scrollHeight)},[s.length]),I.jsxs("div",{className:"border-t border-zinc-800 bg-zinc-900 shrink-0",children:[I.jsxs("button",{onClick:()=>r(!n),className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-zinc-400 hover:text-zinc-300 transition-colors",children:[I.jsx("span",{className:`transition-transform ${n?"":"rotate-90"}`,children:"▶"}),I.jsx("span",{className:"font-medium",children:"Console"}),a>0&&I.jsx("span",{className:"px-1.5 py-0.5 bg-red-950/50 text-red-400 rounded text-[10px]",children:a}),f>0&&I.jsx("span",{className:"px-1.5 py-0.5 bg-amber-950/50 text-amber-400 rounded text-[10px]",children:f}),I.jsx("div",{className:"flex-1"}),!n&&I.jsx("div",{className:"flex gap-1",onClick:c=>c.stopPropagation(),children:["all","error","warn"].map(c=>I.jsx("button",{onClick:()=>l(c),className:`px-1.5 py-0.5 rounded text-[10px] ${i===c?"bg-zinc-700 text-zinc-200":"text-zinc-500 hover:text-zinc-400"}`,children:c==="all"?"All":c==="error"?"Errors":"Warnings"},c))})]}),!n&&I.jsx("div",{ref:o,className:"max-h-32 overflow-y-auto px-3 pb-2 space-y-0.5",children:s.length===0?I.jsx("div",{className:"text-xs text-zinc-600 py-1",children:"No console output"}):s.map((c,p)=>I.jsxs("div",{className:`text-xs font-mono flex gap-2 ${c.level==="error"?"text-red-400":c.level==="warn"?"text-amber-400":"text-zinc-500"}`,children:[I.jsx("span",{className:"shrink-0 text-zinc-600",children:c.level==="error"?"ERR":c.level==="warn"?"WRN":"LOG"}),I.jsx("span",{className:"truncate",children:c.message.replace(/%c/g,"")})]},p))})]})}function Zw(){}function eS(){}function ry(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const iy=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ly=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,oy={};function xp(e,t){return(oy.jsx?ly:iy).test(e)}const uy=/[ \t\n\f\r]/g;function sy(e){return typeof e=="object"?e.type==="text"?kp(e.value):!1:kp(e)}function kp(e){return e.replace(uy,"")===""}class Jr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Jr.prototype.normal={},Jr.prototype.property={},Jr.prototype.space=void 0;function vp(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Jr(n,r,t)}function is(e){return e.toLowerCase()}class Ue{constructor(t,n){this.attribute=n,this.property=t}}Ue.prototype.attribute="",Ue.prototype.booleanish=!1,Ue.prototype.boolean=!1,Ue.prototype.commaOrSpaceSeparated=!1,Ue.prototype.commaSeparated=!1,Ue.prototype.defined=!1,Ue.prototype.mustUseProperty=!1,Ue.prototype.number=!1,Ue.prototype.overloadedBoolean=!1,Ue.prototype.property="",Ue.prototype.spaceSeparated=!1,Ue.prototype.space=void 0;let ay=0;const W=vn(),ge=vn(),ls=vn(),N=vn(),re=vn(),er=vn(),qe=vn();function vn(){return 2**++ay}const os=Object.freeze(Object.defineProperty({__proto__:null,boolean:W,booleanish:ge,commaOrSpaceSeparated:qe,commaSeparated:er,number:N,overloadedBoolean:ls,spaceSeparated:re},Symbol.toStringTag,{value:"Module"})),us=Object.keys(os);class ss extends Ue{constructor(t,n,r,i){let l=-1;if(super(t,n),wp(this,"space",i),typeof r=="number")for(;++l<us.length;){const o=us[l];wp(this,us[l],(r&os[o])===os[o])}}}ss.prototype.defined=!0;function wp(e,t,n){n&&(e[t]=n)}function tr(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const l=new ss(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[is(r)]=r,n[is(l.attribute)]=r}return new Jr(t,n,e.space)}const Sp=tr({properties:{ariaActiveDescendant:null,ariaAtomic:ge,ariaAutoComplete:null,ariaBusy:ge,ariaChecked:ge,ariaColCount:N,ariaColIndex:N,ariaColSpan:N,ariaControls:re,ariaCurrent:null,ariaDescribedBy:re,ariaDetails:null,ariaDisabled:ge,ariaDropEffect:re,ariaErrorMessage:null,ariaExpanded:ge,ariaFlowTo:re,ariaGrabbed:ge,ariaHasPopup:null,ariaHidden:ge,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:re,ariaLevel:N,ariaLive:null,ariaModal:ge,ariaMultiLine:ge,ariaMultiSelectable:ge,ariaOrientation:null,ariaOwns:re,ariaPlaceholder:null,ariaPosInSet:N,ariaPressed:ge,ariaReadOnly:ge,ariaRelevant:null,ariaRequired:ge,ariaRoleDescription:re,ariaRowCount:N,ariaRowIndex:N,ariaRowSpan:N,ariaSelected:ge,ariaSetSize:N,ariaSort:null,ariaValueMax:N,ariaValueMin:N,ariaValueNow:N,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Cp(e,t){return t in e?e[t]:t}function Ep(e,t){return Cp(e,t.toLowerCase())}const cy=tr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:er,acceptCharset:re,accessKey:re,action:null,allow:null,allowFullScreen:W,allowPaymentRequest:W,allowUserMedia:W,alt:null,as:null,async:W,autoCapitalize:null,autoComplete:re,autoFocus:W,autoPlay:W,blocking:re,capture:null,charSet:null,checked:W,cite:null,className:re,cols:N,colSpan:null,content:null,contentEditable:ge,controls:W,controlsList:re,coords:N|er,crossOrigin:null,data:null,dateTime:null,decoding:null,default:W,defer:W,dir:null,dirName:null,disabled:W,download:ls,draggable:ge,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:W,formTarget:null,headers:re,height:N,hidden:ls,high:N,href:null,hrefLang:null,htmlFor:re,httpEquiv:re,id:null,imageSizes:null,imageSrcSet:null,inert:W,inputMode:null,integrity:null,is:null,isMap:W,itemId:null,itemProp:re,itemRef:re,itemScope:W,itemType:re,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:W,low:N,manifest:null,max:null,maxLength:N,media:null,method:null,min:null,minLength:N,multiple:W,muted:W,name:null,nonce:null,noModule:W,noValidate:W,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:W,optimum:N,pattern:null,ping:re,placeholder:null,playsInline:W,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:W,referrerPolicy:null,rel:re,required:W,reversed:W,rows:N,rowSpan:N,sandbox:re,scope:null,scoped:W,seamless:W,selected:W,shadowRootClonable:W,shadowRootDelegatesFocus:W,shadowRootMode:null,shape:null,size:N,sizes:null,slot:null,span:N,spellCheck:ge,src:null,srcDoc:null,srcLang:null,srcSet:null,start:N,step:null,style:null,tabIndex:N,target:null,title:null,translate:null,type:null,typeMustMatch:W,useMap:null,value:ge,width:N,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:re,axis:null,background:null,bgColor:null,border:N,borderColor:null,bottomMargin:N,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:W,declare:W,event:null,face:null,frame:null,frameBorder:null,hSpace:N,leftMargin:N,link:null,longDesc:null,lowSrc:null,marginHeight:N,marginWidth:N,noResize:W,noHref:W,noShade:W,noWrap:W,object:null,profile:null,prompt:null,rev:null,rightMargin:N,rules:null,scheme:null,scrolling:ge,standby:null,summary:null,text:null,topMargin:N,valueType:null,version:null,vAlign:null,vLink:null,vSpace:N,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:W,disableRemotePlayback:W,prefix:null,property:null,results:N,security:null,unselectable:null},space:"html",transform:Ep}),fy=tr({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:qe,accentHeight:N,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:N,amplitude:N,arabicForm:null,ascent:N,attributeName:null,attributeType:null,azimuth:N,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:N,by:null,calcMode:null,capHeight:N,className:re,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:N,diffuseConstant:N,direction:null,display:null,dur:null,divisor:N,dominantBaseline:null,download:W,dx:null,dy:null,edgeMode:null,editable:null,elevation:N,enableBackground:null,end:null,event:null,exponent:N,externalResourcesRequired:null,fill:null,fillOpacity:N,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:er,g2:er,glyphName:er,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:N,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:N,horizOriginX:N,horizOriginY:N,id:null,ideographic:N,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:N,k:N,k1:N,k2:N,k3:N,k4:N,kernelMatrix:qe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:N,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:N,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:N,overlineThickness:N,paintOrder:null,panose1:null,path:null,pathLength:N,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:re,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:N,pointsAtY:N,pointsAtZ:N,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qe,rev:qe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qe,requiredFeatures:qe,requiredFonts:qe,requiredFormats:qe,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:N,specularExponent:N,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:N,strikethroughThickness:N,string:null,stroke:null,strokeDashArray:qe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:N,strokeOpacity:N,strokeWidth:null,style:null,surfaceScale:N,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qe,tabIndex:N,tableValues:null,target:null,targetX:N,targetY:N,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:N,underlineThickness:N,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:N,values:null,vAlphabetic:N,vMathematical:N,vectorEffect:null,vHanging:N,vIdeographic:N,version:null,vertAdvY:N,vertOriginX:N,vertOriginY:N,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:N,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Cp}),zp=tr({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()}}),Tp=tr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ep}),Pp=tr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),py={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"},dy=/[A-Z]/g,_p=/-[a-z]/g,hy=/^data[-\w.:]+$/i;function my(e,t){const n=is(t);let r=t,i=Ue;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&hy.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(_p,yy);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!_p.test(l)){let o=l.replace(dy,gy);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=ss}return new i(r,t)}function gy(e){return"-"+e.toLowerCase()}function yy(e){return e.charAt(1).toUpperCase()}const xy=vp([Sp,cy,zp,Tp,Pp],"html"),as=vp([Sp,fy,zp,Tp,Pp],"svg");function ky(e){return e.join(" ").trim()}var cs={},Ip=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,vy=/\n/g,wy=/^\s*/,Sy=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Cy=/^:\s*/,Ey=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,zy=/^[;\s]*/,Ty=/^\s+|\s+$/g,Py=`
43
+ `,Np="/",Lp="*",wn="",_y="comment",Iy="declaration";function Ny(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(g){var k=g.match(vy);k&&(n+=k.length);var E=g.lastIndexOf(Py);r=~E?g.length-E:r+g.length}function l(){var g={line:n,column:r};return function(k){return k.position=new o(g),a(),k}}function o(g){this.start=g,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function u(g){var k=new Error(t.source+":"+n+":"+r+": "+g);if(k.reason=g,k.filename=t.source,k.line=n,k.column=r,k.source=e,!t.silent)throw k}function s(g){var k=g.exec(e);if(k){var E=k[0];return i(E),e=e.slice(E.length),k}}function a(){s(wy)}function f(g){var k;for(g=g||[];k=c();)k!==!1&&g.push(k);return g}function c(){var g=l();if(!(Np!=e.charAt(0)||Lp!=e.charAt(1))){for(var k=2;wn!=e.charAt(k)&&(Lp!=e.charAt(k)||Np!=e.charAt(k+1));)++k;if(k+=2,wn===e.charAt(k-1))return u("End of comment missing");var E=e.slice(2,k-2);return r+=2,i(E),e=e.slice(k),r+=2,g({type:_y,comment:E})}}function p(){var g=l(),k=s(Sy);if(k){if(c(),!s(Cy))return u("property missing ':'");var E=s(Ey),h=g({type:Iy,property:Ap(k[0].replace(Ip,wn)),value:E?Ap(E[0].replace(Ip,wn)):wn});return s(zy),h}}function d(){var g=[];f(g);for(var k;k=p();)k!==!1&&(g.push(k),f(g));return g}return a(),d()}function Ap(e){return e?e.replace(Ty,wn):wn}var Ly=Ny,Ay=ci&&ci.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cs,"__esModule",{value:!0}),cs.default=Ry;const Dy=Ay(Ly);function Ry(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,Dy.default)(e),i=typeof t=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:u}=l;i?t(o,u,l):u&&(n=n||{},n[o]=u)}),n}var Tl={};Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.camelCase=void 0;var by=/^--[a-zA-Z0-9_-]+$/,Fy=/-([a-z])/g,My=/^[^-]+$/,Oy=/^-(webkit|moz|ms|o|khtml)-/,jy=/^-(ms)-/,By=function(e){return!e||My.test(e)||by.test(e)},Uy=function(e,t){return t.toUpperCase()},Dp=function(e,t){return"".concat(t,"-")},$y=function(e,t){return t===void 0&&(t={}),By(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(jy,Dp):e=e.replace(Oy,Dp),e.replace(Fy,Uy))};Tl.camelCase=$y;var Hy=ci&&ci.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Vy=Hy(cs),Wy=Tl;function fs(e,t){var n={};return!e||typeof e!="string"||(0,Vy.default)(e,function(r,i){r&&i&&(n[(0,Wy.camelCase)(r,t)]=i)}),n}fs.default=fs;var Qy=fs;const Yy=Hl(Qy),Rp=bp("end"),ps=bp("start");function bp(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Ky(e){const t=ps(e),n=Rp(e);if(t&&n)return{start:t,end:n}}function Zr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Fp(e.position):"start"in e||"end"in e?Fp(e):"line"in e||"column"in e?ds(e):""}function ds(e){return Mp(e&&e.line)+":"+Mp(e&&e.column)}function Fp(e){return ds(e&&e.start)+"-"+ds(e&&e.end)}function Mp(e){return e&&typeof e=="number"?e:1}class Ie extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(o=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?l.ruleId=r:(l.source=r.slice(0,s),l.ruleId=r.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.position)}const u=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=Zr(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ie.prototype.file="",Ie.prototype.name="",Ie.prototype.reason="",Ie.prototype.message="",Ie.prototype.stack="",Ie.prototype.column=void 0,Ie.prototype.line=void 0,Ie.prototype.ancestors=void 0,Ie.prototype.cause=void 0,Ie.prototype.fatal=void 0,Ie.prototype.place=void 0,Ie.prototype.ruleId=void 0,Ie.prototype.source=void 0;const hs={}.hasOwnProperty,qy=new Map,Xy=/[A-Z]/g,Gy=new Set(["table","tbody","thead","tfoot","tr"]),Jy=new Set(["td","th"]),Op="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Zy(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=u0(n,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");r=o0(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?as:xy,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=jp(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function jp(e,t,n){if(t.type==="element")return e0(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return t0(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return r0(e,t,n);if(t.type==="mdxjsEsm")return n0(e,t);if(t.type==="root")return i0(e,t,n);if(t.type==="text")return l0(e,t)}function e0(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=as,e.schema=i),e.ancestors.push(t);const l=Up(e,t.tagName,!1),o=s0(e,t);let u=gs(e,t);return Gy.has(t.tagName)&&(u=u.filter(function(s){return typeof s=="string"?!sy(s):!0})),Bp(e,o,l,t),ms(o,u),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function t0(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ei(e,t.position)}function n0(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ei(e,t.position)}function r0(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=as,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:Up(e,t.name,!0),o=a0(e,t),u=gs(e,t);return Bp(e,o,l,t),ms(o,u),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function i0(e,t,n){const r={};return ms(r,gs(e,t)),e.create(t,e.Fragment,r,n)}function l0(e,t){return t.value}function Bp(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ms(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function o0(e,t,n){return r;function r(i,l,o,u){const a=Array.isArray(o.children)?n:t;return u?a(l,o,u):a(l,o)}}function u0(e,t){return n;function n(r,i,l,o){const u=Array.isArray(l.children),s=ps(r);return t(i,l,o,u,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function s0(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&hs.call(t.properties,i)){const l=c0(e,i,t.properties[i]);if(l){const[o,u]=l;e.tableCellAlignToStyle&&o==="align"&&typeof u=="string"&&Jy.has(t.tagName)?r=u:n[o]=u}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function a0(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const u=o.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else ei(e,t.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,l=e.evaluater.evaluateExpression(u.expression)}else ei(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function gs(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:qy;for(;++r<t.children.length;){const l=t.children[r];let o;if(e.passKeys){const s=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(s){const a=i.get(s)||0;o=s+"-"+a,i.set(s,a+1)}}const u=jp(e,l,o);u!==void 0&&n.push(u)}return n}function c0(e,t,n){const r=my(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ry(n):ky(n)),r.property==="style"){let i=typeof n=="object"?n:f0(e,String(n));return e.stylePropertyNameCase==="css"&&(i=p0(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?py[r.property]||r.property:r.attribute,n]}}function f0(e,t){try{return Yy(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Ie("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Op+"#cannot-parse-style-attribute",i}}function Up(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let l=-1,o;for(;++l<i.length;){const u=xp(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:u,computed:!!(l&&u.type==="Literal"),optional:!1}:u}r=o}else r=xp(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return hs.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);ei(e)}function ei(e,t){const n=new Ie("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Op+"#cannot-handle-mdx-estrees-without-createevaluater",n}function p0(e){const t={};let n;for(n in e)hs.call(e,n)&&(t[d0(n)]=e[n]);return t}function d0(e){let t=e.replace(Xy,h0);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function h0(e){return"-"+e.toLowerCase()}const ys={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"]},m0={};function xs(e,t){const n=m0,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return $p(e,r,i)}function $p(e,t,n){if(g0(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Hp(e.children,t,n)}return Array.isArray(e)?Hp(e,t,n):""}function Hp(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=$p(e[i],t,n);return r.join("")}function g0(e){return!!(e&&typeof e=="object")}const Vp=document.createElement("i");function ks(e){const t="&"+e+";";Vp.innerHTML=t;const n=Vp.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Xe(e,t,n,r){const i=e.length;let l=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l<r.length;)o=r.slice(l,l+1e4),o.unshift(t,0),e.splice(...o),l+=1e4,t+=1e4}function it(e,t){return e.length>0?(Xe(e,e.length,0,t),e):t}const Wp={}.hasOwnProperty;function Qp(e){const t={};let n=-1;for(;++n<e.length;)y0(t,e[n]);return t}function y0(e,t){let n;for(n in t){const i=(Wp.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let o;if(l)for(o in l){Wp.call(i,o)||(i[o]=[]);const u=l[o];x0(i[o],Array.isArray(u)?u:u?[u]:[])}}}function x0(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Xe(e,0,0,r)}function Yp(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function pt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const be=nn(/[A-Za-z]/),Ne=nn(/[\dA-Za-z]/),k0=nn(/[#-'*+\--9=?A-Z^-~]/);function Pl(e){return e!==null&&(e<32||e===127)}const vs=nn(/\d/),v0=nn(/[\dA-Fa-f]/),w0=nn(/[!-/:-@[-`{-~]/);function j(e){return e!==null&&e<-2}function ee(e){return e!==null&&(e<0||e===32)}function Y(e){return e===-2||e===-1||e===32}const _l=nn(new RegExp("\\p{P}|\\p{S}","u")),Sn=nn(/\s/);function nn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function nr(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&Ne(e.charCodeAt(n+1))&&Ne(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const u=e.charCodeAt(n+1);l<56320&&u>56319&&u<57344?(o=String.fromCharCode(l,u),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function q(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return Y(s)?(e.enter(n),u(s)):t(s)}function u(s){return Y(s)&&l++<i?(e.consume(s),u):(e.exit(n),t(s))}}const S0={tokenize:C0};function C0(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),q(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),l(u)}function l(u){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,o(u)}function o(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return j(u)?(e.consume(u),e.exit("chunkText"),l):(e.consume(u),o)}}const E0={tokenize:z0},Kp={tokenize:T0};function z0(e){const t=this,n=[];let r=0,i,l,o;return u;function u(y){if(r<n.length){const C=n[r];return t.containerState=C[1],e.attempt(C[0].continuation,s,a)(y)}return a(y)}function s(y){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&m();const C=t.events.length;let T=C,w;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){w=t.events[T][1].end;break}h(r);let _=C;for(;_<t.events.length;)t.events[_][1].end={...w},_++;return Xe(t.events,T+1,0,t.events.slice(C)),t.events.length=_,a(y)}return u(y)}function a(y){if(r===n.length){if(!i)return p(y);if(i.currentConstruct&&i.currentConstruct.concrete)return g(y);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Kp,f,c)(y)}function f(y){return i&&m(),h(r),p(y)}function c(y){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,g(y)}function p(y){return t.containerState={},e.attempt(Kp,d,g)(y)}function d(y){return r++,n.push([t.currentConstruct,t.containerState]),p(y)}function g(y){if(y===null){i&&m(),h(0),e.consume(y);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),k(y)}function k(y){if(y===null){E(e.exit("chunkFlow"),!0),h(0),e.consume(y);return}return j(y)?(e.consume(y),E(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(y),k)}function E(y,C){const T=t.sliceStream(y);if(C&&T.push(null),y.previous=l,l&&(l.next=y),l=y,i.defineSkip(y.start),i.write(T),t.parser.lazy[y.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<o&&(!i.events[w][1].end||i.events[w][1].end.offset>o))return;const _=t.events.length;let L=_,O,S;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(O){S=t.events[L][1].end;break}O=!0}for(h(r),w=_;w<t.events.length;)t.events[w][1].end={...S},w++;Xe(t.events,L+1,0,t.events.slice(_)),t.events.length=w}}function h(y){let C=n.length;for(;C-- >y;){const T=n[C];t.containerState=T[1],T[0].exit.call(t,e)}n.length=y}function m(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function T0(e,t,n){return q(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rr(e){if(e===null||ee(e)||Sn(e))return 1;if(_l(e))return 2}function Il(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}const ws={name:"attention",resolveAll:P0,tokenize:_0};function P0(e,t){let n=-1,r,i,l,o,u,s,a,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[n][1].start};qp(c,-s),qp(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},u={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...u.end}},e[r][1].end={...o.start},e[n][1].start={...u.end},a=[],e[r][1].end.offset-e[r][1].start.offset&&(a=it(a,[["enter",e[r][1],t],["exit",e[r][1],t]])),a=it(a,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),a=it(a,Il(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),a=it(a,[["exit",l,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,a=it(a,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Xe(e,r-1,n-r+3,a),n=r+a.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function _0(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=rr(r);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),u(s)}function u(s){if(s===l)return e.consume(s),u;const a=e.exit("attentionSequence"),f=rr(s),c=!f||f===2&&i||n.includes(s),p=!i||i===2&&f||n.includes(r);return a._open=!!(l===42?c:c&&(i||!p)),a._close=!!(l===42?p:p&&(f||!c)),t(s)}}function qp(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const I0={name:"autolink",tokenize:N0};function N0(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(d){return be(d)?(e.consume(d),o):d===64?n(d):a(d)}function o(d){return d===43||d===45||d===46||Ne(d)?(r=1,u(d)):a(d)}function u(d){return d===58?(e.consume(d),r=0,s):(d===43||d===45||d===46||Ne(d))&&r++<32?(e.consume(d),u):(r=0,a(d))}function s(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Pl(d)?n(d):(e.consume(d),s)}function a(d){return d===64?(e.consume(d),f):k0(d)?(e.consume(d),a):n(d)}function f(d){return Ne(d)?c(d):n(d)}function c(d){return d===46?(e.consume(d),r=0,f):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):p(d)}function p(d){if((d===45||Ne(d))&&r++<63){const g=d===45?p:c;return e.consume(d),g}return n(d)}}const ti={partial:!0,tokenize:L0};function L0(e,t,n){return r;function r(l){return Y(l)?q(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||j(l)?t(l):n(l)}}const Xp={continuation:{tokenize:D0},exit:R0,name:"blockQuote",tokenize:A0};function A0(e,t,n){const r=this;return i;function i(o){if(o===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return n(o)}function l(o){return Y(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function D0(e,t,n){const r=this;return i;function i(o){return Y(o)?q(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Xp,t,n)(o)}}function R0(e){e.exit("blockQuote")}const Gp={name:"characterEscape",tokenize:b0};function b0(e,t,n){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return w0(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const Jp={name:"characterReference",tokenize:F0};function F0(e,t,n){const r=this;let i=0,l,o;return u;function u(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),l=31,o=Ne,f(c))}function a(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=v0,f):(e.enter("characterReferenceValue"),l=7,o=vs,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return o===Ne&&!ks(r.sliceSerialize(p))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(c)&&i++<l?(e.consume(c),f):n(c)}}const Zp={partial:!0,tokenize:O0},ed={concrete:!0,name:"codeFenced",tokenize:M0};function M0(e,t,n){const r=this,i={partial:!0,tokenize:T};let l=0,o=0,u;return s;function s(w){return a(w)}function a(w){const _=r.events[r.events.length-1];return l=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,u=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===u?(o++,e.consume(w),f):o<3?n(w):(e.exit("codeFencedFenceSequence"),Y(w)?q(e,c,"whitespace")(w):c(w))}function c(w){return w===null||j(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(Zp,k,C)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||j(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):Y(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),q(e,d,"whitespace")(w)):w===96&&w===u?n(w):(e.consume(w),p)}function d(w){return w===null||j(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||j(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===u?n(w):(e.consume(w),g)}function k(w){return e.attempt(i,C,E)(w)}function E(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),h}function h(w){return l>0&&Y(w)?q(e,m,"linePrefix",l+1)(w):m(w)}function m(w){return w===null||j(w)?e.check(Zp,k,C)(w):(e.enter("codeFlowValue"),y(w))}function y(w){return w===null||j(w)?(e.exit("codeFlowValue"),m(w)):(e.consume(w),y)}function C(w){return e.exit("codeFenced"),t(w)}function T(w,_,L){let O=0;return S;function S($){return w.enter("lineEnding"),w.consume($),w.exit("lineEnding"),R}function R($){return w.enter("codeFencedFence"),Y($)?q(w,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):M($)}function M($){return $===u?(w.enter("codeFencedFenceSequence"),U($)):L($)}function U($){return $===u?(O++,w.consume($),U):O>=o?(w.exit("codeFencedFenceSequence"),Y($)?q(w,F,"whitespace")($):F($)):L($)}function F($){return $===null||j($)?(w.exit("codeFencedFence"),_($)):L($)}}}function O0(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Ss={name:"codeIndented",tokenize:B0},j0={partial:!0,tokenize:U0};function B0(e,t,n){const r=this;return i;function i(a){return e.enter("codeIndented"),q(e,l,"linePrefix",5)(a)}function l(a){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(a):n(a)}function o(a){return a===null?s(a):j(a)?e.attempt(j0,o,s)(a):(e.enter("codeFlowValue"),u(a))}function u(a){return a===null||j(a)?(e.exit("codeFlowValue"),o(a)):(e.consume(a),u)}function s(a){return e.exit("codeIndented"),t(a)}}function U0(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):j(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):q(e,l,"linePrefix",5)(o)}function l(o){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(o):j(o)?i(o):n(o)}}const $0={name:"codeText",previous:V0,resolve:H0,tokenize:W0};function H0(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function V0(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function W0(e,t,n){let r=0,i,l;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),u(c)}function u(c){return c===96?(e.consume(c),r++,u):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(l=e.enter("codeTextSequence"),i=0,f(c)):j(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),a(c))}function a(c){return c===null||c===32||c===96||j(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),a)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(l.type="codeTextData",a(c))}}class Q0{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,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&ni(this.left,r),l.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),ni(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ni(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 n=this.left.splice(t,Number.POSITIVE_INFINITY);ni(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ni(this.left,n.reverse())}}}function ni(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function td(e){const t={};let n=-1,r,i,l,o,u,s,a;const f=new Q0(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Y0(f,n)),n=t[n],a=!0);else if(r[1]._container){for(l=n,i=void 0;l--;)if(o=f.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},u=f.slice(i,n),u.unshift(r),f.splice(i,n-i+1,u))}}return Xe(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!a}function Y0(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const l=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const u=o.events,s=[],a={};let f,c,p=-1,d=n,g=0,k=0;const E=[k];for(;d;){for(;e.get(++i)[1]!==d;);l.push(i),d._tokenizer||(f=r.sliceStream(d),d.next||f.push(null),c&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=d,d=d.next}for(d=n;++p<u.length;)u[p][0]==="exit"&&u[p-1][0]==="enter"&&u[p][1].type===u[p-1][1].type&&u[p][1].start.line!==u[p][1].end.line&&(k=p+1,E.push(k),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):E.pop(),p=E.length;p--;){const h=u.slice(E[p],E[p+1]),m=l.pop();s.push([m,m+h.length-1]),e.splice(m,2,h)}for(s.reverse(),p=-1;++p<s.length;)a[g+s[p][0]]=g+s[p][1],g+=s[p][1]-s[p][0]-1;return a}const K0={resolve:X0,tokenize:G0},q0={partial:!0,tokenize:J0};function X0(e){return td(e),e}function G0(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?l(u):j(u)?e.check(q0,o,l)(u):(e.consume(u),i)}function l(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function o(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function J0(e,t,n){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),q(e,l,"linePrefix")}function l(o){if(o===null||j(o))return n(o);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function nd(e,t,n,r,i,l,o,u,s){const a=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(h){return h===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(h),e.exit(l),p):h===null||h===32||h===41||Pl(h)?n(h):(e.enter(r),e.enter(o),e.enter(u),e.enter("chunkString",{contentType:"string"}),k(h))}function p(h){return h===62?(e.enter(l),e.consume(h),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===62?(e.exit("chunkString"),e.exit(u),p(h)):h===null||h===60||j(h)?n(h):(e.consume(h),h===92?g:d)}function g(h){return h===60||h===62||h===92?(e.consume(h),d):d(h)}function k(h){return!f&&(h===null||h===41||ee(h))?(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),t(h)):f<a&&h===40?(e.consume(h),f++,k):h===41?(e.consume(h),f--,k):h===null||h===32||h===40||Pl(h)?n(h):(e.consume(h),h===92?E:k)}function E(h){return h===40||h===41||h===92?(e.consume(h),k):k(h)}}function rd(e,t,n,r,i,l){const o=this;let u=0,s;return a;function a(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(l),f}function f(d){return u>999||d===null||d===91||d===93&&!s||d===94&&!u&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):d===93?(e.exit(l),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):j(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===null||d===91||d===93||j(d)||u++>999?(e.exit("chunkString"),f(d)):(e.consume(d),s||(s=!Y(d)),d===92?p:c)}function p(d){return d===91||d===92||d===93?(e.consume(d),u++,c):c(d)}}function id(e,t,n,r,i,l){let o;return u;function u(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,s):n(p)}function s(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(l),a(p))}function a(p){return p===o?(e.exit(l),s(o)):p===null?n(p):j(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),q(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===o||p===null||j(p)?(e.exit("chunkString"),a(p)):(e.consume(p),p===92?c:f)}function c(p){return p===o||p===92?(e.consume(p),f):f(p)}}function ri(e,t){let n;return r;function r(i){return j(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Y(i)?q(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Z0={name:"definition",tokenize:t1},e1={partial:!0,tokenize:n1};function t1(e,t,n){const r=this;let i;return l;function l(d){return e.enter("definition"),o(d)}function o(d){return rd.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function u(d){return i=pt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),s):n(d)}function s(d){return ee(d)?ri(e,a)(d):a(d)}function a(d){return nd(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function f(d){return e.attempt(e1,c,c)(d)}function c(d){return Y(d)?q(e,p,"whitespace")(d):p(d)}function p(d){return d===null||j(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function n1(e,t,n){return r;function r(u){return ee(u)?ri(e,i)(u):n(u)}function i(u){return id(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return Y(u)?q(e,o,"whitespace")(u):o(u)}function o(u){return u===null||j(u)?t(u):n(u)}}const r1={name:"hardBreakEscape",tokenize:i1};function i1(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return j(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const l1={name:"headingAtx",resolve:o1,tokenize:u1};function o1(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Xe(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function u1(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||ee(f)?(e.exit("atxHeadingSequence"),u(f)):n(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||j(f)?(e.exit("atxHeading"),t(f)):Y(f)?q(e,u,"whitespace")(f):(e.enter("atxHeadingText"),a(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),u(f))}function a(f){return f===null||f===35||ee(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),a)}}const s1=["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"],ld=["pre","script","style","textarea"],a1={concrete:!0,name:"htmlFlow",resolveTo:p1,tokenize:d1},c1={partial:!0,tokenize:m1},f1={partial:!0,tokenize:h1};function p1(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 d1(e,t,n){const r=this;let i,l,o,u,s;return a;function a(v){return f(v)}function f(v){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(v),c}function c(v){return v===33?(e.consume(v),p):v===47?(e.consume(v),l=!0,k):v===63?(e.consume(v),i=3,r.interrupt?t:x):be(v)?(e.consume(v),o=String.fromCharCode(v),E):n(v)}function p(v){return v===45?(e.consume(v),i=2,d):v===91?(e.consume(v),i=5,u=0,g):be(v)?(e.consume(v),i=4,r.interrupt?t:x):n(v)}function d(v){return v===45?(e.consume(v),r.interrupt?t:x):n(v)}function g(v){const ke="CDATA[";return v===ke.charCodeAt(u++)?(e.consume(v),u===ke.length?r.interrupt?t:M:g):n(v)}function k(v){return be(v)?(e.consume(v),o=String.fromCharCode(v),E):n(v)}function E(v){if(v===null||v===47||v===62||ee(v)){const ke=v===47,dt=o.toLowerCase();return!ke&&!l&&ld.includes(dt)?(i=1,r.interrupt?t(v):M(v)):s1.includes(o.toLowerCase())?(i=6,ke?(e.consume(v),h):r.interrupt?t(v):M(v)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(v):l?m(v):y(v))}return v===45||Ne(v)?(e.consume(v),o+=String.fromCharCode(v),E):n(v)}function h(v){return v===62?(e.consume(v),r.interrupt?t:M):n(v)}function m(v){return Y(v)?(e.consume(v),m):S(v)}function y(v){return v===47?(e.consume(v),S):v===58||v===95||be(v)?(e.consume(v),C):Y(v)?(e.consume(v),y):S(v)}function C(v){return v===45||v===46||v===58||v===95||Ne(v)?(e.consume(v),C):T(v)}function T(v){return v===61?(e.consume(v),w):Y(v)?(e.consume(v),T):y(v)}function w(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(e.consume(v),s=v,_):Y(v)?(e.consume(v),w):L(v)}function _(v){return v===s?(e.consume(v),s=null,O):v===null||j(v)?n(v):(e.consume(v),_)}function L(v){return v===null||v===34||v===39||v===47||v===60||v===61||v===62||v===96||ee(v)?T(v):(e.consume(v),L)}function O(v){return v===47||v===62||Y(v)?y(v):n(v)}function S(v){return v===62?(e.consume(v),R):n(v)}function R(v){return v===null||j(v)?M(v):Y(v)?(e.consume(v),R):n(v)}function M(v){return v===45&&i===2?(e.consume(v),ae):v===60&&i===1?(e.consume(v),oe):v===62&&i===4?(e.consume(v),G):v===63&&i===3?(e.consume(v),x):v===93&&i===5?(e.consume(v),B):j(v)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(c1,Z,U)(v)):v===null||j(v)?(e.exit("htmlFlowData"),U(v)):(e.consume(v),M)}function U(v){return e.check(f1,F,Z)(v)}function F(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),$}function $(v){return v===null||j(v)?U(v):(e.enter("htmlFlowData"),M(v))}function ae(v){return v===45?(e.consume(v),x):M(v)}function oe(v){return v===47?(e.consume(v),o="",A):M(v)}function A(v){if(v===62){const ke=o.toLowerCase();return ld.includes(ke)?(e.consume(v),G):M(v)}return be(v)&&o.length<8?(e.consume(v),o+=String.fromCharCode(v),A):M(v)}function B(v){return v===93?(e.consume(v),x):M(v)}function x(v){return v===62?(e.consume(v),G):v===45&&i===2?(e.consume(v),x):M(v)}function G(v){return v===null||j(v)?(e.exit("htmlFlowData"),Z(v)):(e.consume(v),G)}function Z(v){return e.exit("htmlFlow"),t(v)}}function h1(e,t,n){const r=this;return i;function i(o){return j(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function m1(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ti,t,n)}}const g1={name:"htmlText",tokenize:y1};function y1(e,t,n){const r=this;let i,l,o;return u;function u(x){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(x),s}function s(x){return x===33?(e.consume(x),a):x===47?(e.consume(x),T):x===63?(e.consume(x),y):be(x)?(e.consume(x),L):n(x)}function a(x){return x===45?(e.consume(x),f):x===91?(e.consume(x),l=0,g):be(x)?(e.consume(x),m):n(x)}function f(x){return x===45?(e.consume(x),d):n(x)}function c(x){return x===null?n(x):x===45?(e.consume(x),p):j(x)?(o=c,oe(x)):(e.consume(x),c)}function p(x){return x===45?(e.consume(x),d):c(x)}function d(x){return x===62?ae(x):x===45?p(x):c(x)}function g(x){const G="CDATA[";return x===G.charCodeAt(l++)?(e.consume(x),l===G.length?k:g):n(x)}function k(x){return x===null?n(x):x===93?(e.consume(x),E):j(x)?(o=k,oe(x)):(e.consume(x),k)}function E(x){return x===93?(e.consume(x),h):k(x)}function h(x){return x===62?ae(x):x===93?(e.consume(x),h):k(x)}function m(x){return x===null||x===62?ae(x):j(x)?(o=m,oe(x)):(e.consume(x),m)}function y(x){return x===null?n(x):x===63?(e.consume(x),C):j(x)?(o=y,oe(x)):(e.consume(x),y)}function C(x){return x===62?ae(x):y(x)}function T(x){return be(x)?(e.consume(x),w):n(x)}function w(x){return x===45||Ne(x)?(e.consume(x),w):_(x)}function _(x){return j(x)?(o=_,oe(x)):Y(x)?(e.consume(x),_):ae(x)}function L(x){return x===45||Ne(x)?(e.consume(x),L):x===47||x===62||ee(x)?O(x):n(x)}function O(x){return x===47?(e.consume(x),ae):x===58||x===95||be(x)?(e.consume(x),S):j(x)?(o=O,oe(x)):Y(x)?(e.consume(x),O):ae(x)}function S(x){return x===45||x===46||x===58||x===95||Ne(x)?(e.consume(x),S):R(x)}function R(x){return x===61?(e.consume(x),M):j(x)?(o=R,oe(x)):Y(x)?(e.consume(x),R):O(x)}function M(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(e.consume(x),i=x,U):j(x)?(o=M,oe(x)):Y(x)?(e.consume(x),M):(e.consume(x),F)}function U(x){return x===i?(e.consume(x),i=void 0,$):x===null?n(x):j(x)?(o=U,oe(x)):(e.consume(x),U)}function F(x){return x===null||x===34||x===39||x===60||x===61||x===96?n(x):x===47||x===62||ee(x)?O(x):(e.consume(x),F)}function $(x){return x===47||x===62||ee(x)?O(x):n(x)}function ae(x){return x===62?(e.consume(x),e.exit("htmlTextData"),e.exit("htmlText"),t):n(x)}function oe(x){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),A}function A(x){return Y(x)?q(e,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):B(x)}function B(x){return e.enter("htmlTextData"),o(x)}}const Cs={name:"labelEnd",resolveAll:w1,resolveTo:S1,tokenize:C1},x1={tokenize:E1},k1={tokenize:z1},v1={tokenize:T1};function w1(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Xe(e,0,e.length,n),e}function S1(e,t){let n=e.length,r=0,i,l,o,u;for(;n--;)if(i=e[n][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=n);const s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},a={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},f={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return u=[["enter",s,t],["enter",a,t]],u=it(u,e.slice(l+1,l+r+3)),u=it(u,[["enter",f,t]]),u=it(u,Il(t.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),t)),u=it(u,[["exit",f,t],e[o-2],e[o-1],["exit",a,t]]),u=it(u,e.slice(o+1)),u=it(u,[["exit",s,t]]),Xe(e,l,e.length,u),e}function C1(e,t,n){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return u;function u(p){return l?l._inactive?c(p):(o=r.parser.defined.includes(pt(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):n(p)}function s(p){return p===40?e.attempt(x1,f,o?f:c)(p):p===91?e.attempt(k1,f,o?a:c)(p):o?f(p):c(p)}function a(p){return e.attempt(v1,f,c)(p)}function f(p){return t(p)}function c(p){return l._balanced=!0,n(p)}}function E1(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return ee(c)?ri(e,l)(c):l(c)}function l(c){return c===41?f(c):nd(e,o,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return ee(c)?ri(e,s)(c):f(c)}function u(c){return n(c)}function s(c){return c===34||c===39||c===40?id(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function a(c){return ee(c)?ri(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function z1(e,t,n){const r=this;return i;function i(u){return rd.call(r,e,l,o,"reference","referenceMarker","referenceString")(u)}function l(u){return r.parser.defined.includes(pt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function o(u){return n(u)}}function T1(e,t,n){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const P1={name:"labelStartImage",resolveAll:Cs.resolveAll,tokenize:_1};function _1(e,t,n){const r=this;return i;function i(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),l}function l(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),o):n(u)}function o(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const I1={name:"labelStartLink",resolveAll:Cs.resolveAll,tokenize:N1};function N1(e,t,n){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Es={name:"lineEnding",tokenize:L1};function L1(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),q(e,t,"linePrefix")}}const Nl={name:"thematicBreak",tokenize:A1};function A1(e,t,n){let r=0,i;return l;function l(a){return e.enter("thematicBreak"),o(a)}function o(a){return i=a,u(a)}function u(a){return a===i?(e.enter("thematicBreakSequence"),s(a)):r>=3&&(a===null||j(a))?(e.exit("thematicBreak"),t(a)):n(a)}function s(a){return a===i?(e.consume(a),r++,s):(e.exit("thematicBreakSequence"),Y(a)?q(e,u,"whitespace")(a):u(a))}}const $e={continuation:{tokenize:F1},exit:O1,name:"list",tokenize:b1},D1={partial:!0,tokenize:j1},R1={partial:!0,tokenize:M1};function b1(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return u;function u(d){const g=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:vs(d)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Nl,n,a)(d):a(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(d)}return n(d)}function s(d){return vs(d)&&++o<10?(e.consume(d),s):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),a(d)):n(d)}function a(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(ti,r.interrupt?n:f,e.attempt(D1,p,c))}function f(d){return r.containerState.initialBlankLine=!0,l++,p(d)}function c(d){return Y(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):n(d)}function p(d){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function F1(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(ti,i,l);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,q(e,t,"listItemIndent",r.containerState.size+1)(u)}function l(u){return r.containerState.furtherBlankLines||!Y(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(R1,t,o)(u))}function o(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,q(e,e.attempt($e,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function M1(e,t,n){const r=this;return q(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(l):n(l)}}function O1(e){e.exit(this.containerState.type)}function j1(e,t,n){const r=this;return q(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!Y(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const od={name:"setextUnderline",resolveTo:B1,tokenize:U1};function B1(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function U1(e,t,n){const r=this;let i;return l;function l(a){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=a,o(a)):n(a)}function o(a){return e.enter("setextHeadingLineSequence"),u(a)}function u(a){return a===i?(e.consume(a),u):(e.exit("setextHeadingLineSequence"),Y(a)?q(e,s,"lineSuffix")(a):s(a))}function s(a){return a===null||j(a)?(e.exit("setextHeadingLine"),t(a)):n(a)}}const $1={tokenize:H1};function H1(e){const t=this,n=e.attempt(ti,r,e.attempt(this.parser.constructs.flowInitial,i,q(e,e.attempt(this.parser.constructs.flow,i,e.attempt(K0,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const V1={resolveAll:sd()},W1=ud("string"),Q1=ud("text");function ud(e){return{resolveAll:sd(e==="text"?Y1:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,o,u);return o;function o(f){return a(f)?l(f):u(f)}function u(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),s}function s(f){return a(f)?(n.exit("data"),l(f)):(n.consume(f),s)}function a(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const d=c[p];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function sd(e){return t;function t(n,r){let i=-1,l;for(;++i<=n.length;)l===void 0?n[i]&&n[i][1].type==="data"&&(l=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==l+2&&(n[l][1].end=n[i-1][1].end,n.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(n,r):n}}function Y1(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let l=i.length,o=-1,u=0,s;for(;l--;){const a=i[l];if(typeof a=="string"){for(o=a.length;a.charCodeAt(o-1)===32;)u++,o--;if(o)break;o=-1}else if(a===-2)s=!0,u++;else if(a!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(u=0),u){const a={type:n===e.length||s||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-u,offset:r.end.offset-u},end:{...r.end}};r.end={...a.start},r.start.offset===r.end.offset?Object.assign(r,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}const K1=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Z0},disable:{null:[]},document:{42:$e,43:$e,45:$e,48:$e,49:$e,50:$e,51:$e,52:$e,53:$e,54:$e,55:$e,56:$e,57:$e,62:Xp},flow:{35:l1,42:Nl,45:[od,Nl],60:a1,61:od,95:Nl,96:ed,126:ed},flowInitial:{[-2]:Ss,[-1]:Ss,32:Ss},insideSpan:{null:[ws,V1]},string:{38:Jp,92:Gp},text:{[-5]:Es,[-4]:Es,[-3]:Es,33:P1,38:Jp,42:ws,60:[I0,g1],91:I1,92:[r1,Gp],93:Cs,95:ws,96:$0}},Symbol.toStringTag,{value:"Module"}));function q1(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},l=[];let o=[],u=[];const s={attempt:_(T),check:_(w),consume:m,enter:y,exit:C,interrupt:_(w,{interrupt:!0})},a={code:null,containerState:{},defineSkip:k,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:d,write:c};let f=t.tokenize.call(a,s);return t.resolveAll&&l.push(t),a;function c(R){return o=it(o,R),E(),o[o.length-1]!==null?[]:(L(t,0),a.events=Il(l,a.events,a),a.events)}function p(R,M){return G1(d(R),M)}function d(R){return X1(o,R)}function g(){const{_bufferIndex:R,_index:M,line:U,column:F,offset:$}=r;return{_bufferIndex:R,_index:M,line:U,column:F,offset:$}}function k(R){i[R.line]=R.column,S()}function E(){let R;for(;r._index<o.length;){const M=o[r._index];if(typeof M=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<M.length;)h(M.charCodeAt(r._bufferIndex));else h(M)}}function h(R){f=f(R)}function m(R){j(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,S()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),a.previous=R}function y(R,M){const U=M||{};return U.type=R,U.start=g(),a.events.push(["enter",U,a]),u.push(U),U}function C(R){const M=u.pop();return M.end=g(),a.events.push(["exit",M,a]),M}function T(R,M){L(R,M.from)}function w(R,M){M.restore()}function _(R,M){return U;function U(F,$,ae){let oe,A,B,x;return Array.isArray(F)?Z(F):"tokenize"in F?Z([F]):G(F);function G(ue){return St;function St(ln){const or=ln!==null&&ue[ln],ur=ln!==null&&ue.null,$l=[...Array.isArray(or)?or:or?[or]:[],...Array.isArray(ur)?ur:ur?[ur]:[]];return Z($l)(ln)}}function Z(ue){return oe=ue,A=0,ue.length===0?ae:v(ue[A])}function v(ue){return St;function St(ln){return x=O(),B=ue,ue.partial||(a.currentConstruct=ue),ue.name&&a.parser.constructs.disable.null.includes(ue.name)?dt():ue.tokenize.call(M?Object.assign(Object.create(a),M):a,s,ke,dt)(ln)}}function ke(ue){return R(B,x),$}function dt(ue){return x.restore(),++A<oe.length?v(oe[A]):ae}}}function L(R,M){R.resolveAll&&!l.includes(R)&&l.push(R),R.resolve&&Xe(a.events,M,a.events.length-M,R.resolve(a.events.slice(M),a)),R.resolveTo&&(a.events=R.resolveTo(a.events,a))}function O(){const R=g(),M=a.previous,U=a.currentConstruct,F=a.events.length,$=Array.from(u);return{from:F,restore:ae};function ae(){r=R,a.previous=M,a.currentConstruct=U,a.events.length=F,u=$,S()}}function S(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function X1(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let o;if(n===i)o=[e[n].slice(r,l)];else{if(o=e.slice(n,i),r>-1){const u=o[0];typeof u=="string"?o[0]=u.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function G1(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const l=e[n];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
44
44
  `;break}case-3:{o=`\r
45
- `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function J1(e){const r={constructs:Qp([K1,...(e||{}).extensions||[]]),content:i(S0),defined:[],document:i(E0),flow:i($1),lazy:{},string:i(W1),text:i(Q1)};return r;function i(l){return o;function o(u){return q1(r,l,u)}}}function Z1(e){for(;!td(e););return e}const ad=/[\0\t\n\r]/g;function ek(){let e=1,t="",n=!0,r;return i;function i(l,o,u){const s=[];let a,f,c,p,d;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),c=0,t="",n&&(l.charCodeAt(0)===65279&&c++,n=void 0);c<l.length;){if(ad.lastIndex=c,a=ad.exec(l),p=a&&a.index!==void 0?a.index:l.length,d=l.charCodeAt(p),!a){t=l.slice(c);break}if(d===10&&c===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<p&&(s.push(l.slice(c,p)),e+=p-c),d){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return u&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const tk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function nk(e){return e.replace(tk,rk)}function rk(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return Yp(n.slice(l?2:1),l?16:10)}return xs(n)||e}const cd={}.hasOwnProperty;function ik(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),lk(n)(Z1(J1(n).document().write(ek()(e,t,!0))))}function lk(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Eh),autolinkProtocol:O,autolinkEmail:O,atxHeading:l(wh),blockQuote:l(ur),characterEscape:O,characterReference:O,codeFenced:l($l),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l($l,o),codeText:l(Vw,o),codeTextData:O,data:O,codeFlowValue:O,definition:l(Ww),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(Qw),hardBreakEscape:l(Sh),hardBreakTrailing:l(Sh),htmlFlow:l(Ch,o),htmlFlowData:O,htmlText:l(Ch,o),htmlTextData:O,image:l(Yw),label:o,link:l(Eh),listItem:l(Kw),listItemValue:p,listOrdered:l(zh,c),listUnordered:l(zh),paragraph:l(qw),reference:v,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(wh),strong:l(Xw),thematicBreak:l(Jw)},exit:{atxHeading:s(),atxHeadingSequence:T,autolink:s(),autolinkEmail:or,autolinkProtocol:ln,blockQuote:s(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:dt,characterReferenceMarkerNumeric:dt,characterReferenceValue:se,characterReference:St,codeFenced:s(E),codeFencedFence:x,codeFencedFenceInfo:d,codeFencedFenceMeta:g,codeFlowValue:S,codeIndented:s(h),codeText:s(W),codeTextData:S,data:S,definition:s(),definitionDestinationString:C,definitionLabelString:m,definitionTitleString:y,emphasis:s(),hardBreakEscape:s(F),hardBreakTrailing:s(F),htmlFlow:s(K),htmlFlowData:S,htmlText:s(V),htmlTextData:S,image:s(J),label:j,labelText:A,lineEnding:R,link:s(M),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:xe,resourceDestinationString:k,resourceTitleString:Z,resource:te,setextHeading:s(L),setextHeadingLineSequence:P,setextHeadingText:w,strong:s(),thematicBreak:s()}};fd(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(z){let D={type:"root",children:[]};const $={stack:[D],tokenStack:[],config:t,enter:u,exit:a,buffer:o,resume:f,data:n},q=[];let re=-1;for(;++re<z.length;)if(z[re][1].type==="listOrdered"||z[re][1].type==="listUnordered")if(z[re][0]==="enter")q.push(re);else{const ht=q.pop();re=i(z,ht,re)}for(re=-1;++re<z.length;){const ht=t[z[re][0]];cd.call(ht,z[re][1].type)&&ht[z[re][1].type].call(Object.assign({sliceSerialize:z[re][2].sliceSerialize},$),z[re][1])}if($.tokenStack.length>0){const ht=$.tokenStack[$.tokenStack.length-1];(ht[1]||pd).call($,void 0,ht[0])}for(D.position={start:rn(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:rn(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},re=-1;++re<t.transforms.length;)D=t.transforms[re](D)||D;return D}function i(z,D,$){let q=D-1,re=-1,ht=!1,En,Rt,si,ai;for(;++q<=$;){const Ge=z[q];switch(Ge[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ge[0]==="enter"?re++:re--,ai=void 0;break}case"lineEndingBlank":{Ge[0]==="enter"&&(En&&!ai&&!re&&!si&&(si=q),ai=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ai=void 0}if(!re&&Ge[0]==="enter"&&Ge[1].type==="listItemPrefix"||re===-1&&Ge[0]==="exit"&&(Ge[1].type==="listUnordered"||Ge[1].type==="listOrdered")){if(En){let sr=q;for(Rt=void 0;sr--;){const bt=z[sr];if(bt[1].type==="lineEnding"||bt[1].type==="lineEndingBlank"){if(bt[0]==="exit")continue;Rt&&(z[Rt][1].type="lineEndingBlank",ht=!0),bt[1].type="lineEnding",Rt=sr}else if(!(bt[1].type==="linePrefix"||bt[1].type==="blockQuotePrefix"||bt[1].type==="blockQuotePrefixWhitespace"||bt[1].type==="blockQuoteMarker"||bt[1].type==="listItemIndent"))break}si&&(!Rt||si<Rt)&&(En._spread=!0),En.end=Object.assign({},Rt?z[Rt][1].start:Ge[1].end),z.splice(Rt||q,0,["exit",En,Ge[2]]),q++,$++}if(Ge[1].type==="listItemPrefix"){const sr={type:"listItem",_spread:!1,start:Object.assign({},Ge[1].start),end:void 0};En=sr,z.splice(q,0,["enter",sr,Ge[2]]),q++,$++,si=void 0,ai=!0}}}return z[D][1]._spread=ht,$}function l(z,D){return $;function $(q){u.call(this,z(q),q),D&&D.call(this,q)}}function o(){this.stack.push({type:"fragment",children:[]})}function u(z,D,$){this.stack[this.stack.length-1].children.push(z),this.stack.push(z),this.tokenStack.push([D,$||void 0]),z.position={start:rn(D.start),end:void 0}}function s(z){return D;function D($){z&&z.call(this,$),a.call(this,$)}}function a(z,D){const $=this.stack.pop(),q=this.tokenStack.pop();if(q)q[0].type!==z.type&&(D?D.call(this,z,q[0]):(q[1]||pd).call(this,z,q[0]));else throw new Error("Cannot close `"+z.type+"` ("+Zr({start:z.start,end:z.end})+"): it’s not open");$.position.end=rn(z.end)}function f(){return ks(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(z){if(this.data.expectingFirstListItemValue){const D=this.stack[this.stack.length-2];D.start=Number.parseInt(this.sliceSerialize(z),10),this.data.expectingFirstListItemValue=void 0}}function d(){const z=this.resume(),D=this.stack[this.stack.length-1];D.lang=z}function g(){const z=this.resume(),D=this.stack[this.stack.length-1];D.meta=z}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const z=this.resume(),D=this.stack[this.stack.length-1];D.value=z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function h(){const z=this.resume(),D=this.stack[this.stack.length-1];D.value=z.replace(/(\r?\n|\r)$/g,"")}function m(z){const D=this.resume(),$=this.stack[this.stack.length-1];$.label=D,$.identifier=pt(this.sliceSerialize(z)).toLowerCase()}function y(){const z=this.resume(),D=this.stack[this.stack.length-1];D.title=z}function C(){const z=this.resume(),D=this.stack[this.stack.length-1];D.url=z}function T(z){const D=this.stack[this.stack.length-1];if(!D.depth){const $=this.sliceSerialize(z).length;D.depth=$}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function P(z){const D=this.stack[this.stack.length-1];D.depth=this.sliceSerialize(z).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function O(z){const $=this.stack[this.stack.length-1].children;let q=$[$.length-1];(!q||q.type!=="text")&&(q=Gw(),q.position={start:rn(z.start),end:void 0},$.push(q)),this.stack.push(q)}function S(z){const D=this.stack.pop();D.value+=this.sliceSerialize(z),D.position.end=rn(z.end)}function R(z){const D=this.stack[this.stack.length-1];if(this.data.atHardBreak){const $=D.children[D.children.length-1];$.position.end=rn(z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(D.type)&&(O.call(this,z),S.call(this,z))}function F(){this.data.atHardBreak=!0}function K(){const z=this.resume(),D=this.stack[this.stack.length-1];D.value=z}function V(){const z=this.resume(),D=this.stack[this.stack.length-1];D.value=z}function W(){const z=this.resume(),D=this.stack[this.stack.length-1];D.value=z}function M(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=D,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function J(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=D,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function A(z){const D=this.sliceSerialize(z),$=this.stack[this.stack.length-2];$.label=nk(D),$.identifier=pt(D).toLowerCase()}function j(){const z=this.stack[this.stack.length-1],D=this.resume(),$=this.stack[this.stack.length-1];if(this.data.inReference=!0,$.type==="link"){const q=z.children;$.children=q}else $.alt=D}function k(){const z=this.resume(),D=this.stack[this.stack.length-1];D.url=z}function Z(){const z=this.resume(),D=this.stack[this.stack.length-1];D.title=z}function te(){this.data.inReference=void 0}function v(){this.data.referenceType="collapsed"}function xe(z){const D=this.resume(),$=this.stack[this.stack.length-1];$.label=D,$.identifier=pt(this.sliceSerialize(z)).toLowerCase(),this.data.referenceType="full"}function dt(z){this.data.characterReferenceType=z.type}function se(z){const D=this.sliceSerialize(z),$=this.data.characterReferenceType;let q;$?(q=Yp(D,$==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):q=xs(D);const re=this.stack[this.stack.length-1];re.value+=q}function St(z){const D=this.stack.pop();D.position.end=rn(z.end)}function ln(z){S.call(this,z);const D=this.stack[this.stack.length-1];D.url=this.sliceSerialize(z)}function or(z){S.call(this,z);const D=this.stack[this.stack.length-1];D.url="mailto:"+this.sliceSerialize(z)}function ur(){return{type:"blockquote",children:[]}}function $l(){return{type:"code",lang:null,meta:null,value:""}}function Vw(){return{type:"inlineCode",value:""}}function Ww(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Qw(){return{type:"emphasis",children:[]}}function wh(){return{type:"heading",depth:0,children:[]}}function Sh(){return{type:"break"}}function Ch(){return{type:"html",value:""}}function Yw(){return{type:"image",title:null,url:"",alt:null}}function Eh(){return{type:"link",title:null,url:"",children:[]}}function zh(z){return{type:"list",ordered:z.type==="listOrdered",start:null,spread:z._spread,children:[]}}function Kw(z){return{type:"listItem",spread:z._spread,checked:null,children:[]}}function qw(){return{type:"paragraph",children:[]}}function Xw(){return{type:"strong",children:[]}}function Gw(){return{type:"text",value:""}}function Jw(){return{type:"thematicBreak"}}}function rn(e){return{line:e.line,column:e.column,offset:e.offset}}function fd(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?fd(e,r):ok(e,r)}}function ok(e,t){let n;for(n in t)if(cd.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function pd(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Zr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Zr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Zr({start:t.start,end:t.end})+") is still open")}function uk(e){const t=this;t.parser=n;function n(r){return ik(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function sk(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function ak(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
46
- `}]}function ck(e,t){const n=t.value?t.value+`
47
- `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};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 fk(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pk(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dk(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=nr(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,u+=1,e.footnoteCounts.set(r,u);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const a={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,a),e.applyData(t,a)}function hk(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mk(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function dd(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function gk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return dd(e,t);const i={src:nr(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function yk(e,t){const n={src:nr(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function kk(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function xk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return dd(e,t);const i={href:nr(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function vk(e,t){const n={href:nr(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function wk(e,t,n){const r=e.all(t),i=n?Sk(n):hd(t),l={},o=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const f=r[u];(i||u!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
45
+ `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function J1(e){const r={constructs:Qp([K1,...(e||{}).extensions||[]]),content:i(S0),defined:[],document:i(E0),flow:i($1),lazy:{},string:i(W1),text:i(Q1)};return r;function i(l){return o;function o(u){return q1(r,l,u)}}}function Z1(e){for(;!td(e););return e}const ad=/[\0\t\n\r]/g;function ex(){let e=1,t="",n=!0,r;return i;function i(l,o,u){const s=[];let a,f,c,p,d;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),c=0,t="",n&&(l.charCodeAt(0)===65279&&c++,n=void 0);c<l.length;){if(ad.lastIndex=c,a=ad.exec(l),p=a&&a.index!==void 0?a.index:l.length,d=l.charCodeAt(p),!a){t=l.slice(c);break}if(d===10&&c===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<p&&(s.push(l.slice(c,p)),e+=p-c),d){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return u&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const tx=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function nx(e){return e.replace(tx,rx)}function rx(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),l=i===120||i===88;return Yp(n.slice(l?2:1),l?16:10)}return ks(n)||e}const cd={}.hasOwnProperty;function ix(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),lx(n)(Z1(J1(n).document().write(ex()(e,t,!0))))}function lx(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Eh),autolinkProtocol:O,autolinkEmail:O,atxHeading:l(wh),blockQuote:l(ur),characterEscape:O,characterReference:O,codeFenced:l($l),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l($l,o),codeText:l(Vw,o),codeTextData:O,data:O,codeFlowValue:O,definition:l(Ww),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(Qw),hardBreakEscape:l(Sh),hardBreakTrailing:l(Sh),htmlFlow:l(Ch,o),htmlFlowData:O,htmlText:l(Ch,o),htmlTextData:O,image:l(Yw),label:o,link:l(Eh),listItem:l(Kw),listItemValue:p,listOrdered:l(zh,c),listUnordered:l(zh),paragraph:l(qw),reference:v,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(wh),strong:l(Xw),thematicBreak:l(Jw)},exit:{atxHeading:s(),atxHeadingSequence:T,autolink:s(),autolinkEmail:or,autolinkProtocol:ln,blockQuote:s(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:dt,characterReferenceMarkerNumeric:dt,characterReferenceValue:ue,characterReference:St,codeFenced:s(E),codeFencedFence:k,codeFencedFenceInfo:d,codeFencedFenceMeta:g,codeFlowValue:S,codeIndented:s(h),codeText:s($),codeTextData:S,data:S,definition:s(),definitionDestinationString:C,definitionLabelString:m,definitionTitleString:y,emphasis:s(),hardBreakEscape:s(M),hardBreakTrailing:s(M),htmlFlow:s(U),htmlFlowData:S,htmlText:s(F),htmlTextData:S,image:s(oe),label:B,labelText:A,lineEnding:R,link:s(ae),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ke,resourceDestinationString:x,resourceTitleString:G,resource:Z,setextHeading:s(L),setextHeadingLineSequence:_,setextHeadingText:w,strong:s(),thematicBreak:s()}};fd(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(z){let D={type:"root",children:[]};const H={stack:[D],tokenStack:[],config:t,enter:u,exit:a,buffer:o,resume:f,data:n},K=[];let te=-1;for(;++te<z.length;)if(z[te][1].type==="listOrdered"||z[te][1].type==="listUnordered")if(z[te][0]==="enter")K.push(te);else{const ht=K.pop();te=i(z,ht,te)}for(te=-1;++te<z.length;){const ht=t[z[te][0]];cd.call(ht,z[te][1].type)&&ht[z[te][1].type].call(Object.assign({sliceSerialize:z[te][2].sliceSerialize},H),z[te][1])}if(H.tokenStack.length>0){const ht=H.tokenStack[H.tokenStack.length-1];(ht[1]||pd).call(H,void 0,ht[0])}for(D.position={start:rn(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:rn(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},te=-1;++te<t.transforms.length;)D=t.transforms[te](D)||D;return D}function i(z,D,H){let K=D-1,te=-1,ht=!1,En,Rt,si,ai;for(;++K<=H;){const Ge=z[K];switch(Ge[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ge[0]==="enter"?te++:te--,ai=void 0;break}case"lineEndingBlank":{Ge[0]==="enter"&&(En&&!ai&&!te&&!si&&(si=K),ai=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ai=void 0}if(!te&&Ge[0]==="enter"&&Ge[1].type==="listItemPrefix"||te===-1&&Ge[0]==="exit"&&(Ge[1].type==="listUnordered"||Ge[1].type==="listOrdered")){if(En){let sr=K;for(Rt=void 0;sr--;){const bt=z[sr];if(bt[1].type==="lineEnding"||bt[1].type==="lineEndingBlank"){if(bt[0]==="exit")continue;Rt&&(z[Rt][1].type="lineEndingBlank",ht=!0),bt[1].type="lineEnding",Rt=sr}else if(!(bt[1].type==="linePrefix"||bt[1].type==="blockQuotePrefix"||bt[1].type==="blockQuotePrefixWhitespace"||bt[1].type==="blockQuoteMarker"||bt[1].type==="listItemIndent"))break}si&&(!Rt||si<Rt)&&(En._spread=!0),En.end=Object.assign({},Rt?z[Rt][1].start:Ge[1].end),z.splice(Rt||K,0,["exit",En,Ge[2]]),K++,H++}if(Ge[1].type==="listItemPrefix"){const sr={type:"listItem",_spread:!1,start:Object.assign({},Ge[1].start),end:void 0};En=sr,z.splice(K,0,["enter",sr,Ge[2]]),K++,H++,si=void 0,ai=!0}}}return z[D][1]._spread=ht,H}function l(z,D){return H;function H(K){u.call(this,z(K),K),D&&D.call(this,K)}}function o(){this.stack.push({type:"fragment",children:[]})}function u(z,D,H){this.stack[this.stack.length-1].children.push(z),this.stack.push(z),this.tokenStack.push([D,H||void 0]),z.position={start:rn(D.start),end:void 0}}function s(z){return D;function D(H){z&&z.call(this,H),a.call(this,H)}}function a(z,D){const H=this.stack.pop(),K=this.tokenStack.pop();if(K)K[0].type!==z.type&&(D?D.call(this,z,K[0]):(K[1]||pd).call(this,z,K[0]));else throw new Error("Cannot close `"+z.type+"` ("+Zr({start:z.start,end:z.end})+"): it’s not open");H.position.end=rn(z.end)}function f(){return xs(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(z){if(this.data.expectingFirstListItemValue){const D=this.stack[this.stack.length-2];D.start=Number.parseInt(this.sliceSerialize(z),10),this.data.expectingFirstListItemValue=void 0}}function d(){const z=this.resume(),D=this.stack[this.stack.length-1];D.lang=z}function g(){const z=this.resume(),D=this.stack[this.stack.length-1];D.meta=z}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const z=this.resume(),D=this.stack[this.stack.length-1];D.value=z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function h(){const z=this.resume(),D=this.stack[this.stack.length-1];D.value=z.replace(/(\r?\n|\r)$/g,"")}function m(z){const D=this.resume(),H=this.stack[this.stack.length-1];H.label=D,H.identifier=pt(this.sliceSerialize(z)).toLowerCase()}function y(){const z=this.resume(),D=this.stack[this.stack.length-1];D.title=z}function C(){const z=this.resume(),D=this.stack[this.stack.length-1];D.url=z}function T(z){const D=this.stack[this.stack.length-1];if(!D.depth){const H=this.sliceSerialize(z).length;D.depth=H}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function _(z){const D=this.stack[this.stack.length-1];D.depth=this.sliceSerialize(z).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function O(z){const H=this.stack[this.stack.length-1].children;let K=H[H.length-1];(!K||K.type!=="text")&&(K=Gw(),K.position={start:rn(z.start),end:void 0},H.push(K)),this.stack.push(K)}function S(z){const D=this.stack.pop();D.value+=this.sliceSerialize(z),D.position.end=rn(z.end)}function R(z){const D=this.stack[this.stack.length-1];if(this.data.atHardBreak){const H=D.children[D.children.length-1];H.position.end=rn(z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(D.type)&&(O.call(this,z),S.call(this,z))}function M(){this.data.atHardBreak=!0}function U(){const z=this.resume(),D=this.stack[this.stack.length-1];D.value=z}function F(){const z=this.resume(),D=this.stack[this.stack.length-1];D.value=z}function $(){const z=this.resume(),D=this.stack[this.stack.length-1];D.value=z}function ae(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=D,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function oe(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const D=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=D,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function A(z){const D=this.sliceSerialize(z),H=this.stack[this.stack.length-2];H.label=nx(D),H.identifier=pt(D).toLowerCase()}function B(){const z=this.stack[this.stack.length-1],D=this.resume(),H=this.stack[this.stack.length-1];if(this.data.inReference=!0,H.type==="link"){const K=z.children;H.children=K}else H.alt=D}function x(){const z=this.resume(),D=this.stack[this.stack.length-1];D.url=z}function G(){const z=this.resume(),D=this.stack[this.stack.length-1];D.title=z}function Z(){this.data.inReference=void 0}function v(){this.data.referenceType="collapsed"}function ke(z){const D=this.resume(),H=this.stack[this.stack.length-1];H.label=D,H.identifier=pt(this.sliceSerialize(z)).toLowerCase(),this.data.referenceType="full"}function dt(z){this.data.characterReferenceType=z.type}function ue(z){const D=this.sliceSerialize(z),H=this.data.characterReferenceType;let K;H?(K=Yp(D,H==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):K=ks(D);const te=this.stack[this.stack.length-1];te.value+=K}function St(z){const D=this.stack.pop();D.position.end=rn(z.end)}function ln(z){S.call(this,z);const D=this.stack[this.stack.length-1];D.url=this.sliceSerialize(z)}function or(z){S.call(this,z);const D=this.stack[this.stack.length-1];D.url="mailto:"+this.sliceSerialize(z)}function ur(){return{type:"blockquote",children:[]}}function $l(){return{type:"code",lang:null,meta:null,value:""}}function Vw(){return{type:"inlineCode",value:""}}function Ww(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Qw(){return{type:"emphasis",children:[]}}function wh(){return{type:"heading",depth:0,children:[]}}function Sh(){return{type:"break"}}function Ch(){return{type:"html",value:""}}function Yw(){return{type:"image",title:null,url:"",alt:null}}function Eh(){return{type:"link",title:null,url:"",children:[]}}function zh(z){return{type:"list",ordered:z.type==="listOrdered",start:null,spread:z._spread,children:[]}}function Kw(z){return{type:"listItem",spread:z._spread,checked:null,children:[]}}function qw(){return{type:"paragraph",children:[]}}function Xw(){return{type:"strong",children:[]}}function Gw(){return{type:"text",value:""}}function Jw(){return{type:"thematicBreak"}}}function rn(e){return{line:e.line,column:e.column,offset:e.offset}}function fd(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?fd(e,r):ox(e,r)}}function ox(e,t){let n;for(n in t)if(cd.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function pd(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Zr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Zr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Zr({start:t.start,end:t.end})+") is still open")}function ux(e){const t=this;t.parser=n;function n(r){return ix(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function sx(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function ax(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
46
+ `}]}function cx(e,t){const n=t.value?t.value+`
47
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};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 fx(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function px(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dx(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=nr(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,u+=1,e.footnoteCounts.set(r,u);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const a={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,a),e.applyData(t,a)}function hx(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mx(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function dd(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function gx(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return dd(e,t);const i={src:nr(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function yx(e,t){const n={src:nr(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function xx(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function kx(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return dd(e,t);const i={href:nr(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function vx(e,t){const n={href:nr(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function wx(e,t,n){const r=e.all(t),i=n?Sx(n):hd(t),l={},o=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const f=r[u];(i||u!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
48
48
  `}),f.type==="element"&&f.tagName==="p"&&!i?o.push(...f.children):o.push(f)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
49
- `});const a={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,a),e.applyData(t,a)}function Sk(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=hd(n[r])}return t}function hd(e){const t=e.spread;return t??e.children.length>1}function Ck(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function Ek(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zk(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Tk(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Pk(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=ps(t.children[1]),s=Rp(t.children[t.children.length-1]);u&&s&&(o.position={start:u,end:s}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function _k(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,u=o?o.length:t.children.length;let s=-1;const a=[];for(;++s<u;){const c=t.children[s],p={},d=o?o[s]:void 0;d&&(p.align=d);let g={type:"element",tagName:l,properties:p,children:[]};c&&(g.children=e.all(c),e.patch(c,g),g=e.applyData(c,g)),a.push(g)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(t,f),e.applyData(t,f)}function Ik(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const md=9,gd=32;function Nk(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(yd(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(yd(t.slice(i),i>0,!1)),l.join("")}function yd(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===md||l===gd;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===md||l===gd;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Lk(e,t){const n={type:"text",value:Nk(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Ak(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Dk={blockquote:sk,break:ak,code:ck,delete:fk,emphasis:pk,footnoteReference:dk,heading:hk,html:mk,imageReference:gk,image:yk,inlineCode:kk,linkReference:xk,link:vk,listItem:wk,list:Ck,paragraph:Ek,root:zk,strong:Tk,table:Pk,tableCell:Ik,tableRow:_k,text:Lk,thematicBreak:Ak,toml:Ll,yaml:Ll,definition:Ll,footnoteDefinition:Ll};function Ll(){}const kd=-1,Al=0,ii=1,Dl=2,zs=3,Ts=4,Ps=5,_s=6,xd=7,vd=8,wd=typeof self=="object"?self:globalThis,Rk=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=t[i];switch(l){case Al:case kd:return n(o,i);case ii:{const u=n([],i);for(const s of o)u.push(r(s));return u}case Dl:{const u=n({},i);for(const[s,a]of o)u[r(s)]=r(a);return u}case zs:return n(new Date(o),i);case Ts:{const{source:u,flags:s}=o;return n(new RegExp(u,s),i)}case Ps:{const u=n(new Map,i);for(const[s,a]of o)u.set(r(s),r(a));return u}case _s:{const u=n(new Set,i);for(const s of o)u.add(r(s));return u}case xd:{const{name:u,message:s}=o;return n(new wd[u](s),i)}case vd:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:u}=new Uint8Array(o);return n(new DataView(u),o)}}return n(new wd[l](o),i)};return r},Sd=e=>Rk(new Map,e)(0),ir="",{toString:bk}={},{keys:Fk}=Object,li=e=>{const t=typeof e;if(t!=="object"||!e)return[Al,t];const n=bk.call(e).slice(8,-1);switch(n){case"Array":return[ii,ir];case"Object":return[Dl,ir];case"Date":return[zs,ir];case"RegExp":return[Ts,ir];case"Map":return[Ps,ir];case"Set":return[_s,ir];case"DataView":return[ii,n]}return n.includes("Array")?[ii,n]:n.includes("Error")?[xd,n]:[Dl,n]},Rl=([e,t])=>e===Al&&(t==="function"||t==="symbol"),Mk=(e,t,n,r)=>{const i=(o,u)=>{const s=r.push(o)-1;return n.set(u,s),s},l=o=>{if(n.has(o))return n.get(o);let[u,s]=li(o);switch(u){case Al:{let f=o;switch(s){case"bigint":u=vd,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return i([kd],o)}return i([u,f],o)}case ii:{if(s){let p=o;return s==="DataView"?p=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(o)),i([s,[...p]],o)}const f=[],c=i([u,f],o);for(const p of o)f.push(l(p));return c}case Dl:{if(s)switch(s){case"BigInt":return i([s,o.toString()],o);case"Boolean":case"Number":case"String":return i([s,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const f=[],c=i([u,f],o);for(const p of Fk(o))(e||!Rl(li(o[p])))&&f.push([l(p),l(o[p])]);return c}case zs:return i([u,o.toISOString()],o);case Ts:{const{source:f,flags:c}=o;return i([u,{source:f,flags:c}],o)}case Ps:{const f=[],c=i([u,f],o);for(const[p,d]of o)(e||!(Rl(li(p))||Rl(li(d))))&&f.push([l(p),l(d)]);return c}case _s:{const f=[],c=i([u,f],o);for(const p of o)(e||!Rl(li(p)))&&f.push(l(p));return c}}const{message:a}=o;return i([u,{name:s,message:a}],o)};return l},Cd=(e,{json:t,lossy:n}={})=>{const r=[];return Mk(!(t||n),!!t,new Map,r)(e),r},bl=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Sd(Cd(e,t)):structuredClone(e):(e,t)=>Sd(Cd(e,t));function Ok(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function jk(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Bk(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ok,r=e.options.footnoteBackLabel||jk,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let s=-1;for(;++s<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[s]);if(!a)continue;const f=e.all(a),c=String(a.identifier).toUpperCase(),p=nr(c.toLowerCase());let d=0;const g=[],x=e.footnoteCounts.get(c);for(;x!==void 0&&++d<=x;){g.length>0&&g.push({type:"text",value:" "});let m=typeof n=="string"?n:n(s,d);typeof m=="string"&&(m={type:"text",value:m}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,d),className:["data-footnote-backref"]},children:Array.isArray(m)?m:[m]})}const E=f[f.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const m=E.children[E.children.length-1];m&&m.type==="text"?m.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...g)}else f.push(...g);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(a,h),u.push(h)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...bl(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
49
+ `});const a={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,a),e.applyData(t,a)}function Sx(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=hd(n[r])}return t}function hd(e){const t=e.spread;return t??e.children.length>1}function Cx(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function Ex(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zx(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Tx(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Px(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=ps(t.children[1]),s=Rp(t.children[t.children.length-1]);u&&s&&(o.position={start:u,end:s}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function _x(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,u=o?o.length:t.children.length;let s=-1;const a=[];for(;++s<u;){const c=t.children[s],p={},d=o?o[s]:void 0;d&&(p.align=d);let g={type:"element",tagName:l,properties:p,children:[]};c&&(g.children=e.all(c),e.patch(c,g),g=e.applyData(c,g)),a.push(g)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(t,f),e.applyData(t,f)}function Ix(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const md=9,gd=32;function Nx(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(yd(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(yd(t.slice(i),i>0,!1)),l.join("")}function yd(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===md||l===gd;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===md||l===gd;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Lx(e,t){const n={type:"text",value:Nx(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Ax(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Dx={blockquote:sx,break:ax,code:cx,delete:fx,emphasis:px,footnoteReference:dx,heading:hx,html:mx,imageReference:gx,image:yx,inlineCode:xx,linkReference:kx,link:vx,listItem:wx,list:Cx,paragraph:Ex,root:zx,strong:Tx,table:Px,tableCell:Ix,tableRow:_x,text:Lx,thematicBreak:Ax,toml:Ll,yaml:Ll,definition:Ll,footnoteDefinition:Ll};function Ll(){}const xd=-1,Al=0,ii=1,Dl=2,zs=3,Ts=4,Ps=5,_s=6,kd=7,vd=8,wd=typeof self=="object"?self:globalThis,Rx=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=t[i];switch(l){case Al:case xd:return n(o,i);case ii:{const u=n([],i);for(const s of o)u.push(r(s));return u}case Dl:{const u=n({},i);for(const[s,a]of o)u[r(s)]=r(a);return u}case zs:return n(new Date(o),i);case Ts:{const{source:u,flags:s}=o;return n(new RegExp(u,s),i)}case Ps:{const u=n(new Map,i);for(const[s,a]of o)u.set(r(s),r(a));return u}case _s:{const u=n(new Set,i);for(const s of o)u.add(r(s));return u}case kd:{const{name:u,message:s}=o;return n(new wd[u](s),i)}case vd:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:u}=new Uint8Array(o);return n(new DataView(u),o)}}return n(new wd[l](o),i)};return r},Sd=e=>Rx(new Map,e)(0),ir="",{toString:bx}={},{keys:Fx}=Object,li=e=>{const t=typeof e;if(t!=="object"||!e)return[Al,t];const n=bx.call(e).slice(8,-1);switch(n){case"Array":return[ii,ir];case"Object":return[Dl,ir];case"Date":return[zs,ir];case"RegExp":return[Ts,ir];case"Map":return[Ps,ir];case"Set":return[_s,ir];case"DataView":return[ii,n]}return n.includes("Array")?[ii,n]:n.includes("Error")?[kd,n]:[Dl,n]},Rl=([e,t])=>e===Al&&(t==="function"||t==="symbol"),Mx=(e,t,n,r)=>{const i=(o,u)=>{const s=r.push(o)-1;return n.set(u,s),s},l=o=>{if(n.has(o))return n.get(o);let[u,s]=li(o);switch(u){case Al:{let f=o;switch(s){case"bigint":u=vd,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return i([xd],o)}return i([u,f],o)}case ii:{if(s){let p=o;return s==="DataView"?p=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(o)),i([s,[...p]],o)}const f=[],c=i([u,f],o);for(const p of o)f.push(l(p));return c}case Dl:{if(s)switch(s){case"BigInt":return i([s,o.toString()],o);case"Boolean":case"Number":case"String":return i([s,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const f=[],c=i([u,f],o);for(const p of Fx(o))(e||!Rl(li(o[p])))&&f.push([l(p),l(o[p])]);return c}case zs:return i([u,o.toISOString()],o);case Ts:{const{source:f,flags:c}=o;return i([u,{source:f,flags:c}],o)}case Ps:{const f=[],c=i([u,f],o);for(const[p,d]of o)(e||!(Rl(li(p))||Rl(li(d))))&&f.push([l(p),l(d)]);return c}case _s:{const f=[],c=i([u,f],o);for(const p of o)(e||!Rl(li(p)))&&f.push(l(p));return c}}const{message:a}=o;return i([u,{name:s,message:a}],o)};return l},Cd=(e,{json:t,lossy:n}={})=>{const r=[];return Mx(!(t||n),!!t,new Map,r)(e),r},bl=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Sd(Cd(e,t)):structuredClone(e):(e,t)=>Sd(Cd(e,t));function Ox(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function jx(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Bx(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ox,r=e.options.footnoteBackLabel||jx,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let s=-1;for(;++s<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[s]);if(!a)continue;const f=e.all(a),c=String(a.identifier).toUpperCase(),p=nr(c.toLowerCase());let d=0;const g=[],k=e.footnoteCounts.get(c);for(;k!==void 0&&++d<=k;){g.length>0&&g.push({type:"text",value:" "});let m=typeof n=="string"?n:n(s,d);typeof m=="string"&&(m={type:"text",value:m}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,d),className:["data-footnote-backref"]},children:Array.isArray(m)?m:[m]})}const E=f[f.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const m=E.children[E.children.length-1];m&&m.type==="text"?m.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...g)}else f.push(...g);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(a,h),u.push(h)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...bl(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
50
50
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
51
- `}]}}const Fl=function(e){if(e==null)return Vk;if(typeof e=="function")return Ml(e);if(typeof e=="object")return Array.isArray(e)?Uk(e):$k(e);if(typeof e=="string")return Hk(e);throw new Error("Expected function, string, or object as test")};function Uk(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Fl(e[n]);return Ml(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function $k(e){const t=e;return Ml(n);function n(r){const i=r;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function Hk(e){return Ml(t);function t(n){return n&&n.type===e}}function Ml(e){return t;function t(n,r,i){return!!(Wk(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Vk(){return!0}function Wk(e){return e!==null&&typeof e=="object"&&"type"in e}function cS(e){return e}const Ed=[],Qk=!0,Is=!1,Yk="skip";function zd(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const l=Fl(i),o=r?-1:1;u(e,void 0,[])();function u(s,a,f){const c=s&&typeof s=="object"?s:{};if(typeof c.type=="string"){const d=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(d?"<"+d+">":""))+")"})}return p;function p(){let d=Ed,g,x,E;if((!t||l(s,a,f[f.length-1]||void 0))&&(d=Kk(n(s,f)),d[0]===Is))return d;if("children"in s&&s.children){const h=s;if(h.children&&d[0]!==Yk)for(x=(r?h.children.length:-1)+o,E=f.concat(h);x>-1&&x<h.children.length;){const m=h.children[x];if(g=u(m,x,E)(),g[0]===Is)return g;x=typeof g[1]=="number"?g[1]:x+o}}return d}}}function Kk(e){return Array.isArray(e)?e:typeof e=="number"?[Qk,e]:e==null?Ed:[e]}function Ns(e,t,n,r){let i,l,o;typeof t=="function"&&typeof n!="function"?(l=void 0,o=t,i=n):(l=t,o=n,i=r),zd(e,l,u,i);function u(s,a){const f=a[a.length-1],c=f?f.children.indexOf(s):void 0;return o(s,c,f)}}const Ls={}.hasOwnProperty,qk={};function Xk(e,t){const n=t||qk,r=new Map,i=new Map,l=new Map,o={...Dk,...n.handlers},u={all:a,applyData:Jk,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:s,options:n,patch:Gk,wrap:ex};return Ns(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),u;function s(f,c){const p=f.type,d=u.handlers[p];if(Ls.call(u.handlers,p)&&d)return d(u,f,c);if(u.options.passThrough&&u.options.passThrough.includes(p)){if("children"in f){const{children:x,...E}=f,h=bl(E);return h.children=u.all(f),h}return bl(f)}return(u.options.unknownHandler||Zk)(u,f,c)}function a(f){const c=[];if("children"in f){const p=f.children;let d=-1;for(;++d<p.length;){const g=u.one(p[d],f);if(g){if(d&&p[d-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Td(g.value)),!Array.isArray(g)&&g.type==="element")){const x=g.children[0];x&&x.type==="text"&&(x.value=Td(x.value))}Array.isArray(g)?c.push(...g):c.push(g)}}}return c}}function Gk(e,t){e.position&&(t.position=Ky(e))}function Jk(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&l&&Object.assign(n.properties,bl(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Zk(e,t){const n=t.data||{},r="value"in t&&!(Ls.call(n,"hProperties")||Ls.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ex(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
51
+ `}]}}const Fl=function(e){if(e==null)return Vx;if(typeof e=="function")return Ml(e);if(typeof e=="object")return Array.isArray(e)?Ux(e):$x(e);if(typeof e=="string")return Hx(e);throw new Error("Expected function, string, or object as test")};function Ux(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Fl(e[n]);return Ml(r);function r(...i){let l=-1;for(;++l<t.length;)if(t[l].apply(this,i))return!0;return!1}}function $x(e){const t=e;return Ml(n);function n(r){const i=r;let l;for(l in e)if(i[l]!==t[l])return!1;return!0}}function Hx(e){return Ml(t);function t(n){return n&&n.type===e}}function Ml(e){return t;function t(n,r,i){return!!(Wx(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Vx(){return!0}function Wx(e){return e!==null&&typeof e=="object"&&"type"in e}function cS(e){return e}const Ed=[],Qx=!0,Is=!1,Yx="skip";function zd(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const l=Fl(i),o=r?-1:1;u(e,void 0,[])();function u(s,a,f){const c=s&&typeof s=="object"?s:{};if(typeof c.type=="string"){const d=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(d?"<"+d+">":""))+")"})}return p;function p(){let d=Ed,g,k,E;if((!t||l(s,a,f[f.length-1]||void 0))&&(d=Kx(n(s,f)),d[0]===Is))return d;if("children"in s&&s.children){const h=s;if(h.children&&d[0]!==Yx)for(k=(r?h.children.length:-1)+o,E=f.concat(h);k>-1&&k<h.children.length;){const m=h.children[k];if(g=u(m,k,E)(),g[0]===Is)return g;k=typeof g[1]=="number"?g[1]:k+o}}return d}}}function Kx(e){return Array.isArray(e)?e:typeof e=="number"?[Qx,e]:e==null?Ed:[e]}function Ns(e,t,n,r){let i,l,o;typeof t=="function"&&typeof n!="function"?(l=void 0,o=t,i=n):(l=t,o=n,i=r),zd(e,l,u,i);function u(s,a){const f=a[a.length-1],c=f?f.children.indexOf(s):void 0;return o(s,c,f)}}const Ls={}.hasOwnProperty,qx={};function Xx(e,t){const n=t||qx,r=new Map,i=new Map,l=new Map,o={...Dx,...n.handlers},u={all:a,applyData:Jx,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:s,options:n,patch:Gx,wrap:ek};return Ns(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),u;function s(f,c){const p=f.type,d=u.handlers[p];if(Ls.call(u.handlers,p)&&d)return d(u,f,c);if(u.options.passThrough&&u.options.passThrough.includes(p)){if("children"in f){const{children:k,...E}=f,h=bl(E);return h.children=u.all(f),h}return bl(f)}return(u.options.unknownHandler||Zx)(u,f,c)}function a(f){const c=[];if("children"in f){const p=f.children;let d=-1;for(;++d<p.length;){const g=u.one(p[d],f);if(g){if(d&&p[d-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Td(g.value)),!Array.isArray(g)&&g.type==="element")){const k=g.children[0];k&&k.type==="text"&&(k.value=Td(k.value))}Array.isArray(g)?c.push(...g):c.push(g)}}}return c}}function Gx(e,t){e.position&&(t.position=Ky(e))}function Jx(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&l&&Object.assign(n.properties,bl(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Zx(e,t){const n=t.data||{},r="value"in t&&!(Ls.call(n,"hProperties")||Ls.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ek(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
52
52
  `});++r<e.length;)r&&n.push({type:"text",value:`
53
53
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
54
- `}),n}function Td(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Pd(e,t){const n=Xk(e,t),r=n.one(e,void 0),i=Bk(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
55
- `},i),l}function tx(e,t){return e&&"run"in e?async function(n,r){const i=Pd(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Pd(n,{file:r,...e||t})}}function _d(e){if(e)throw e}var Ol=Object.prototype.hasOwnProperty,Id=Object.prototype.toString,Nd=Object.defineProperty,Ld=Object.getOwnPropertyDescriptor,Ad=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Id.call(t)==="[object Array]"},Dd=function(t){if(!t||Id.call(t)!=="[object Object]")return!1;var n=Ol.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Ol.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Ol.call(t,i)},Rd=function(t,n){Nd&&n.name==="__proto__"?Nd(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},bd=function(t,n){if(n==="__proto__")if(Ol.call(t,n)){if(Ld)return Ld(t,n).value}else return;return t[n]},nx=function e(){var t,n,r,i,l,o,u=arguments[0],s=1,a=arguments.length,f=!1;for(typeof u=="boolean"&&(f=u,u=arguments[1]||{},s=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});s<a;++s)if(t=arguments[s],t!=null)for(n in t)r=bd(u,n),i=bd(t,n),u!==i&&(f&&i&&(Dd(i)||(l=Ad(i)))?(l?(l=!1,o=r&&Ad(r)?r:[]):o=r&&Dd(r)?r:{},Rd(u,{name:n,newValue:e(f,o,i)})):typeof i<"u"&&Rd(u,{name:n,newValue:i}));return u};const As=Hl(nx);function Ds(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 rx(){const e=[],t={run:n,use:r};return t;function n(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);u(null,...i);function u(s,...a){const f=e[++l];let c=-1;if(s){o(s);return}for(;++c<i.length;)(a[c]===null||a[c]===void 0)&&(a[c]=i[c]);i=a,f?ix(f,u)(...a):o(null,...a)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function ix(e,t){let n;return r;function r(...o){const u=e.length>o.length;let s;u&&o.push(i);try{s=e.apply(this,o)}catch(a){const f=a;if(u&&n)throw f;return i(f)}u||(s&&s.then&&typeof s.then=="function"?s.then(l,i):s instanceof Error?i(s):l(s))}function i(o,...u){n||(n=!0,t(o,...u))}function l(o){i(null,o)}}const vt={basename:lx,dirname:ox,extname:ux,join:sx,sep:"/"};function lx(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');oi(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function ox(e){if(oi(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function ux(e){oi(e);let t=e.length,n=-1,r=0,i=-1,l=0,o;for(;t--;){const u=e.codePointAt(t);if(u===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),u===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function sx(...e){let t=-1,n;for(;++t<e.length;)oi(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":ax(n)}function ax(e){oi(e);const t=e.codePointAt(0)===47;let n=cx(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function cx(e,t){let n="",r=0,i=-1,l=0,o=-1,u,s;for(;++o<=e.length;){if(o<e.length)u=e.codePointAt(o);else{if(u===47)break;u=47}if(u===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),i=o,l=0;continue}}else if(n.length>0){n="",r=0,i=o,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,l=0}else u===46&&l>-1?l++:l=-1}return n}function oi(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const fx={cwd:px};function px(){return"/"}function Rs(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function dx(e){if(typeof e=="string")e=new URL(e);else if(!Rs(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 hx(e)}function hx(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const bs=["history","path","basename","stem","extname","dirname"];class Fd{constructor(t){let n;t?Rs(t)?n={path:t}:typeof t=="string"||mx(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":fx.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<bs.length;){const l=bs[r];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)bs.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?vt.basename(this.path):void 0}set basename(t){Ms(t,"basename"),Fs(t,"basename"),this.path=vt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?vt.dirname(this.path):void 0}set dirname(t){Md(this.basename,"dirname"),this.path=vt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?vt.extname(this.path):void 0}set extname(t){if(Fs(t,"extname"),Md(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=vt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Rs(t)&&(t=dx(t)),Ms(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?vt.basename(this.path,this.extname):void 0}set stem(t){Ms(t,"stem"),Fs(t,"stem"),this.path=vt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Ie(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Fs(e,t){if(e&&e.includes(vt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+vt.sep+"`")}function Ms(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Md(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function mx(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const gx=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},yx={}.hasOwnProperty;class Os extends gx{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=rx()}copy(){const t=new Os;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(As(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Us("data",this.frozen),this.namespace[t]=n,this):yx.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Us("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[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=jl(t),r=this.parser||this.Parser;return js("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),js("process",this.parser||this.Parser),Bs("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,o){const u=jl(t),s=r.parse(u);r.run(s,u,function(f,c,p){if(f||!c||!p)return a(f);const d=c,g=r.stringify(d,p);vx(g)?p.value=g:p.result=g,a(f,p)});function a(f,c){f||!c?o(f):l?l(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),js("processSync",this.parser||this.Parser),Bs("processSync",this.compiler||this.Compiler),this.process(t,i),jd("processSync","process",n),r;function i(l,o){n=!0,_d(l),r=o}}run(t,n,r){Od(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?l(void 0,r):new Promise(l);function l(o,u){const s=jl(n);i.run(t,s,a);function a(f,c,p){const d=c||t;f?u(f):o?o(d):r(void 0,d,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,l),jd("runSync","run",r),i;function l(o,u){_d(o),i=u,r=!0}}stringify(t,n){this.freeze();const r=jl(n),i=this.compiler||this.Compiler;return Bs("stringify",i),Od(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Us("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(a){if(typeof a=="function")s(a,[]);else if(typeof a=="object")if(Array.isArray(a)){const[f,...c]=a;s(f,c)}else o(a);else throw new TypeError("Expected usable value, not `"+a+"`")}function o(a){if(!("plugins"in a)&&!("settings"in a))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");u(a.plugins),a.settings&&(i.settings=As(!0,i.settings,a.settings))}function u(a){let f=-1;if(a!=null)if(Array.isArray(a))for(;++f<a.length;){const c=a[f];l(c)}else throw new TypeError("Expected a list of plugins, not `"+a+"`")}function s(a,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===a){p=c;break}if(p===-1)r.push([a,...f]);else if(f.length>0){let[d,...g]=f;const x=r[p][1];Ds(x)&&Ds(d)&&(d=As(!0,x,d)),r[p]=[a,d,...g]}}}}const kx=new Os().freeze();function js(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Bs(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Us(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 Od(e){if(!Ds(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function jd(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function jl(e){return xx(e)?e:new Fd(e)}function xx(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function vx(e){return typeof e=="string"||wx(e)}function wx(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Sx="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Bd=[],Ud={allowDangerousHtml:!0},Cx=/^(https?|ircs?|mailto|xmpp)$/i,Ex=[{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 $d(e){const t=zx(e),n=Tx(e);return Px(t.runSync(t.parse(n),n),e)}function zx(e){const t=e.rehypePlugins||Bd,n=e.remarkPlugins||Bd,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ud}:Ud;return kx().use(uk).use(n).use(tx,r).use(t)}function Tx(e){const t=e.children||"",n=new Fd;return typeof t=="string"&&(n.value=t),n}function Px(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,u=t.unwrapDisallowed,s=t.urlTransform||_x;for(const f of Ex)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Sx+f.id,void 0);return Ns(e,a),Zy(e,{Fragment:I.Fragment,components:i,ignoreInvalidStyle:!0,jsx:I.jsx,jsxs:I.jsxs,passKeys:!0,passNode:!0});function a(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return o?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let d;for(d in ys)if(Object.hasOwn(ys,d)&&Object.hasOwn(f.properties,d)){const g=f.properties[d],x=ys[d];(x===null||x.includes(f.tagName))&&(f.properties[d]=s(String(g||""),d,f))}}if(f.type==="element"){let d=n?!n.includes(f.tagName):l?l.includes(f.tagName):!1;if(!d&&r&&typeof c=="number"&&(d=!r(f,c,p)),d&&p&&typeof c=="number")return u&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function _x(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Cx.test(e.slice(0,t))?e:""}function Hd(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Ix(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Nx(e,t,n){const i=Fl((n||{}).ignore||[]),l=Lx(t);let o=-1;for(;++o<l.length;)zd(e,"text",u);function u(a,f){let c=-1,p;for(;++c<f.length;){const d=f[c],g=p?p.children:void 0;if(i(d,g?g.indexOf(d):void 0,p))return;p=d}if(p)return s(a,f)}function s(a,f){const c=f[f.length-1],p=l[o][0],d=l[o][1];let g=0;const E=c.children.indexOf(a);let h=!1,m=[];p.lastIndex=0;let y=p.exec(a.value);for(;y;){const C=y.index,T={index:y.index,input:y.input,stack:[...f,a]};let w=d(...y,T);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=C+1:(g!==C&&m.push({type:"text",value:a.value.slice(g,C)}),Array.isArray(w)?m.push(...w):w&&m.push(w),g=C+y[0].length,h=!0),!p.global)break;y=p.exec(a.value)}return h?(g<a.value.length&&m.push({type:"text",value:a.value.slice(g)}),c.children.splice(E,1,...m)):m=[a],E+m.length}}function Lx(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([Ax(i[0]),Dx(i[1])])}return t}function Ax(e){return typeof e=="string"?new RegExp(Ix(e),"g"):e}function Dx(e){return typeof e=="function"?e:function(){return e}}const $s="phrasing",Hs=["autolink","link","image","label"];function Rx(){return{transforms:[Ux],enter:{literalAutolink:Fx,literalAutolinkEmail:Vs,literalAutolinkHttp:Vs,literalAutolinkWww:Vs},exit:{literalAutolink:Bx,literalAutolinkEmail:jx,literalAutolinkHttp:Mx,literalAutolinkWww:Ox}}}function bx(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:$s,notInConstruct:Hs},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:$s,notInConstruct:Hs},{character:":",before:"[ps]",after:"\\/",inConstruct:$s,notInConstruct:Hs}]}}function Fx(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Vs(e){this.config.enter.autolinkProtocol.call(this,e)}function Mx(e){this.config.exit.autolinkProtocol.call(this,e)}function Ox(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function jx(e){this.config.exit.autolinkEmail.call(this,e)}function Bx(e){this.exit(e)}function Ux(e){Nx(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$x],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Hx]],{ignore:["link","linkReference"]})}function $x(e,t,n,r,i){let l="";if(!Vd(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!Vx(n)))return!1;const o=Wx(n+r);if(!o[0])return!1;const u={type:"link",title:null,url:l+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[u,{type:"text",value:o[1]}]:u}function Hx(e,t,n,r){return!Vd(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Vx(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Wx(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Hd(e,"(");let l=Hd(e,")");for(;r!==-1&&i>l;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),l++;return[e,n]}function Vd(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Sn(n)||_l(n))&&(!t||n!==47)}Wd.peek=ev;function Qx(){this.buffer()}function Yx(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Kx(){this.buffer()}function qx(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Xx(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=pt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Gx(e){this.exit(e)}function Jx(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=pt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Zx(e){this.exit(e)}function ev(){return"["}function Wd(e,t,n,r){const i=n.createTracker(r);let l=i.move("[^");const o=n.enter("footnoteReference"),u=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),u(),o(),l+=i.move("]"),l}function tv(){return{enter:{gfmFootnoteCallString:Qx,gfmFootnoteCall:Yx,gfmFootnoteDefinitionLabelString:Kx,gfmFootnoteDefinition:qx},exit:{gfmFootnoteCallString:Xx,gfmFootnoteCall:Gx,gfmFootnoteDefinitionLabelString:Jx,gfmFootnoteDefinition:Zx}}}function nv(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Wd},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,l,o){const u=l.createTracker(o);let s=u.move("[^");const a=l.enter("footnoteDefinition"),f=l.enter("label");return s+=u.move(l.safe(l.associationId(r),{before:s,after:"]"})),f(),s+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),s+=u.move((t?`
56
- `:" ")+l.indentLines(l.containerFlow(r,u.current()),t?Qd:rv))),a(),s}}function rv(e,t,n){return t===0?e:Qd(e,t,n)}function Qd(e,t,n){return(n?"":" ")+e}const iv=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Yd.peek=av;function lv(){return{canContainEols:["delete"],enter:{strikethrough:uv},exit:{strikethrough:sv}}}function ov(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:iv}],handlers:{delete:Yd}}}function uv(e){this.enter({type:"delete",children:[]},e)}function sv(e){this.exit(e)}function Yd(e,t,n,r){const i=n.createTracker(r),l=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function av(){return"~"}function cv(e){return e.length}function fv(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||cv,l=[],o=[],u=[],s=[];let a=0,f=-1;for(;++f<e.length;){const x=[],E=[];let h=-1;for(e[f].length>a&&(a=e[f].length);++h<e[f].length;){const m=pv(e[f][h]);if(n.alignDelimiters!==!1){const y=i(m);E[h]=y,(s[h]===void 0||y>s[h])&&(s[h]=y)}x.push(m)}o[f]=x,u[f]=E}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<a;)l[c]=Kd(r[c]);else{const x=Kd(r);for(;++c<a;)l[c]=x}c=-1;const p=[],d=[];for(;++c<a;){const x=l[c];let E="",h="";x===99?(E=":",h=":"):x===108?E=":":x===114&&(h=":");let m=n.alignDelimiters===!1?1:Math.max(1,s[c]-E.length-h.length);const y=E+"-".repeat(m)+h;n.alignDelimiters!==!1&&(m=E.length+m+h.length,m>s[c]&&(s[c]=m),d[c]=m),p[c]=y}o.splice(1,0,p),u.splice(1,0,d),f=-1;const g=[];for(;++f<o.length;){const x=o[f],E=u[f];c=-1;const h=[];for(;++c<a;){const m=x[c]||"";let y="",C="";if(n.alignDelimiters!==!1){const T=s[c]-(E[c]||0),w=l[c];w===114?y=" ".repeat(T):w===99?T%2?(y=" ".repeat(T/2+.5),C=" ".repeat(T/2-.5)):(y=" ".repeat(T/2),C=y):C=" ".repeat(T)}n.delimiterStart!==!1&&!c&&h.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&m==="")&&(n.delimiterStart!==!1||c)&&h.push(" "),n.alignDelimiters!==!1&&h.push(y),h.push(m),n.alignDelimiters!==!1&&h.push(C),n.padding!==!1&&h.push(" "),(n.delimiterEnd!==!1||c!==a-1)&&h.push("|")}g.push(n.delimiterEnd===!1?h.join("").replace(/ +$/,""):h.join(""))}return g.join(`
54
+ `}),n}function Td(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Pd(e,t){const n=Xx(e,t),r=n.one(e,void 0),i=Bx(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
55
+ `},i),l}function tk(e,t){return e&&"run"in e?async function(n,r){const i=Pd(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Pd(n,{file:r,...e||t})}}function _d(e){if(e)throw e}var Ol=Object.prototype.hasOwnProperty,Id=Object.prototype.toString,Nd=Object.defineProperty,Ld=Object.getOwnPropertyDescriptor,Ad=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Id.call(t)==="[object Array]"},Dd=function(t){if(!t||Id.call(t)!=="[object Object]")return!1;var n=Ol.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Ol.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Ol.call(t,i)},Rd=function(t,n){Nd&&n.name==="__proto__"?Nd(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},bd=function(t,n){if(n==="__proto__")if(Ol.call(t,n)){if(Ld)return Ld(t,n).value}else return;return t[n]},nk=function e(){var t,n,r,i,l,o,u=arguments[0],s=1,a=arguments.length,f=!1;for(typeof u=="boolean"&&(f=u,u=arguments[1]||{},s=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});s<a;++s)if(t=arguments[s],t!=null)for(n in t)r=bd(u,n),i=bd(t,n),u!==i&&(f&&i&&(Dd(i)||(l=Ad(i)))?(l?(l=!1,o=r&&Ad(r)?r:[]):o=r&&Dd(r)?r:{},Rd(u,{name:n,newValue:e(f,o,i)})):typeof i<"u"&&Rd(u,{name:n,newValue:i}));return u};const As=Hl(nk);function Ds(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 rk(){const e=[],t={run:n,use:r};return t;function n(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);u(null,...i);function u(s,...a){const f=e[++l];let c=-1;if(s){o(s);return}for(;++c<i.length;)(a[c]===null||a[c]===void 0)&&(a[c]=i[c]);i=a,f?ik(f,u)(...a):o(null,...a)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function ik(e,t){let n;return r;function r(...o){const u=e.length>o.length;let s;u&&o.push(i);try{s=e.apply(this,o)}catch(a){const f=a;if(u&&n)throw f;return i(f)}u||(s&&s.then&&typeof s.then=="function"?s.then(l,i):s instanceof Error?i(s):l(s))}function i(o,...u){n||(n=!0,t(o,...u))}function l(o){i(null,o)}}const vt={basename:lk,dirname:ok,extname:uk,join:sk,sep:"/"};function lk(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');oi(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function ok(e){if(oi(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function uk(e){oi(e);let t=e.length,n=-1,r=0,i=-1,l=0,o;for(;t--;){const u=e.codePointAt(t);if(u===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),u===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function sk(...e){let t=-1,n;for(;++t<e.length;)oi(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":ak(n)}function ak(e){oi(e);const t=e.codePointAt(0)===47;let n=ck(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function ck(e,t){let n="",r=0,i=-1,l=0,o=-1,u,s;for(;++o<=e.length;){if(o<e.length)u=e.codePointAt(o);else{if(u===47)break;u=47}if(u===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),i=o,l=0;continue}}else if(n.length>0){n="",r=0,i=o,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,l=0}else u===46&&l>-1?l++:l=-1}return n}function oi(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const fk={cwd:pk};function pk(){return"/"}function Rs(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function dk(e){if(typeof e=="string")e=new URL(e);else if(!Rs(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 hk(e)}function hk(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const bs=["history","path","basename","stem","extname","dirname"];class Fd{constructor(t){let n;t?Rs(t)?n={path:t}:typeof t=="string"||mk(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":fk.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<bs.length;){const l=bs[r];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let i;for(i in n)bs.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?vt.basename(this.path):void 0}set basename(t){Ms(t,"basename"),Fs(t,"basename"),this.path=vt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?vt.dirname(this.path):void 0}set dirname(t){Md(this.basename,"dirname"),this.path=vt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?vt.extname(this.path):void 0}set extname(t){if(Fs(t,"extname"),Md(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=vt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Rs(t)&&(t=dk(t)),Ms(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?vt.basename(this.path,this.extname):void 0}set stem(t){Ms(t,"stem"),Fs(t,"stem"),this.path=vt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Ie(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Fs(e,t){if(e&&e.includes(vt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+vt.sep+"`")}function Ms(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Md(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function mk(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const gk=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},yk={}.hasOwnProperty;class Os extends gk{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=rk()}copy(){const t=new Os;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(As(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Us("data",this.frozen),this.namespace[t]=n,this):yk.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Us("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[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=jl(t),r=this.parser||this.Parser;return js("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),js("process",this.parser||this.Parser),Bs("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(l,o){const u=jl(t),s=r.parse(u);r.run(s,u,function(f,c,p){if(f||!c||!p)return a(f);const d=c,g=r.stringify(d,p);vk(g)?p.value=g:p.result=g,a(f,p)});function a(f,c){f||!c?o(f):l?l(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),js("processSync",this.parser||this.Parser),Bs("processSync",this.compiler||this.Compiler),this.process(t,i),jd("processSync","process",n),r;function i(l,o){n=!0,_d(l),r=o}}run(t,n,r){Od(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?l(void 0,r):new Promise(l);function l(o,u){const s=jl(n);i.run(t,s,a);function a(f,c,p){const d=c||t;f?u(f):o?o(d):r(void 0,d,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,l),jd("runSync","run",r),i;function l(o,u){_d(o),i=u,r=!0}}stringify(t,n){this.freeze();const r=jl(n),i=this.compiler||this.Compiler;return Bs("stringify",i),Od(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Us("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(a){if(typeof a=="function")s(a,[]);else if(typeof a=="object")if(Array.isArray(a)){const[f,...c]=a;s(f,c)}else o(a);else throw new TypeError("Expected usable value, not `"+a+"`")}function o(a){if(!("plugins"in a)&&!("settings"in a))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");u(a.plugins),a.settings&&(i.settings=As(!0,i.settings,a.settings))}function u(a){let f=-1;if(a!=null)if(Array.isArray(a))for(;++f<a.length;){const c=a[f];l(c)}else throw new TypeError("Expected a list of plugins, not `"+a+"`")}function s(a,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===a){p=c;break}if(p===-1)r.push([a,...f]);else if(f.length>0){let[d,...g]=f;const k=r[p][1];Ds(k)&&Ds(d)&&(d=As(!0,k,d)),r[p]=[a,d,...g]}}}}const xk=new Os().freeze();function js(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Bs(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Us(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 Od(e){if(!Ds(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function jd(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function jl(e){return kk(e)?e:new Fd(e)}function kk(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function vk(e){return typeof e=="string"||wk(e)}function wk(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Sk="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Bd=[],Ud={allowDangerousHtml:!0},Ck=/^(https?|ircs?|mailto|xmpp)$/i,Ek=[{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 $d(e){const t=zk(e),n=Tk(e);return Pk(t.runSync(t.parse(n),n),e)}function zk(e){const t=e.rehypePlugins||Bd,n=e.remarkPlugins||Bd,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ud}:Ud;return xk().use(ux).use(n).use(tk,r).use(t)}function Tk(e){const t=e.children||"",n=new Fd;return typeof t=="string"&&(n.value=t),n}function Pk(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,u=t.unwrapDisallowed,s=t.urlTransform||_k;for(const f of Ek)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Sk+f.id,void 0);return Ns(e,a),Zy(e,{Fragment:I.Fragment,components:i,ignoreInvalidStyle:!0,jsx:I.jsx,jsxs:I.jsxs,passKeys:!0,passNode:!0});function a(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return o?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let d;for(d in ys)if(Object.hasOwn(ys,d)&&Object.hasOwn(f.properties,d)){const g=f.properties[d],k=ys[d];(k===null||k.includes(f.tagName))&&(f.properties[d]=s(String(g||""),d,f))}}if(f.type==="element"){let d=n?!n.includes(f.tagName):l?l.includes(f.tagName):!1;if(!d&&r&&typeof c=="number"&&(d=!r(f,c,p)),d&&p&&typeof c=="number")return u&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function _k(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Ck.test(e.slice(0,t))?e:""}function Hd(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Ik(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Nk(e,t,n){const i=Fl((n||{}).ignore||[]),l=Lk(t);let o=-1;for(;++o<l.length;)zd(e,"text",u);function u(a,f){let c=-1,p;for(;++c<f.length;){const d=f[c],g=p?p.children:void 0;if(i(d,g?g.indexOf(d):void 0,p))return;p=d}if(p)return s(a,f)}function s(a,f){const c=f[f.length-1],p=l[o][0],d=l[o][1];let g=0;const E=c.children.indexOf(a);let h=!1,m=[];p.lastIndex=0;let y=p.exec(a.value);for(;y;){const C=y.index,T={index:y.index,input:y.input,stack:[...f,a]};let w=d(...y,T);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=C+1:(g!==C&&m.push({type:"text",value:a.value.slice(g,C)}),Array.isArray(w)?m.push(...w):w&&m.push(w),g=C+y[0].length,h=!0),!p.global)break;y=p.exec(a.value)}return h?(g<a.value.length&&m.push({type:"text",value:a.value.slice(g)}),c.children.splice(E,1,...m)):m=[a],E+m.length}}function Lk(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([Ak(i[0]),Dk(i[1])])}return t}function Ak(e){return typeof e=="string"?new RegExp(Ik(e),"g"):e}function Dk(e){return typeof e=="function"?e:function(){return e}}const $s="phrasing",Hs=["autolink","link","image","label"];function Rk(){return{transforms:[Uk],enter:{literalAutolink:Fk,literalAutolinkEmail:Vs,literalAutolinkHttp:Vs,literalAutolinkWww:Vs},exit:{literalAutolink:Bk,literalAutolinkEmail:jk,literalAutolinkHttp:Mk,literalAutolinkWww:Ok}}}function bk(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:$s,notInConstruct:Hs},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:$s,notInConstruct:Hs},{character:":",before:"[ps]",after:"\\/",inConstruct:$s,notInConstruct:Hs}]}}function Fk(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Vs(e){this.config.enter.autolinkProtocol.call(this,e)}function Mk(e){this.config.exit.autolinkProtocol.call(this,e)}function Ok(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function jk(e){this.config.exit.autolinkEmail.call(this,e)}function Bk(e){this.exit(e)}function Uk(e){Nk(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$k],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Hk]],{ignore:["link","linkReference"]})}function $k(e,t,n,r,i){let l="";if(!Vd(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!Vk(n)))return!1;const o=Wk(n+r);if(!o[0])return!1;const u={type:"link",title:null,url:l+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[u,{type:"text",value:o[1]}]:u}function Hk(e,t,n,r){return!Vd(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Vk(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Wk(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Hd(e,"(");let l=Hd(e,")");for(;r!==-1&&i>l;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),l++;return[e,n]}function Vd(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Sn(n)||_l(n))&&(!t||n!==47)}Wd.peek=ev;function Qk(){this.buffer()}function Yk(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Kk(){this.buffer()}function qk(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Xk(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=pt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Gk(e){this.exit(e)}function Jk(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=pt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Zk(e){this.exit(e)}function ev(){return"["}function Wd(e,t,n,r){const i=n.createTracker(r);let l=i.move("[^");const o=n.enter("footnoteReference"),u=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),u(),o(),l+=i.move("]"),l}function tv(){return{enter:{gfmFootnoteCallString:Qk,gfmFootnoteCall:Yk,gfmFootnoteDefinitionLabelString:Kk,gfmFootnoteDefinition:qk},exit:{gfmFootnoteCallString:Xk,gfmFootnoteCall:Gk,gfmFootnoteDefinitionLabelString:Jk,gfmFootnoteDefinition:Zk}}}function nv(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Wd},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,l,o){const u=l.createTracker(o);let s=u.move("[^");const a=l.enter("footnoteDefinition"),f=l.enter("label");return s+=u.move(l.safe(l.associationId(r),{before:s,after:"]"})),f(),s+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),s+=u.move((t?`
56
+ `:" ")+l.indentLines(l.containerFlow(r,u.current()),t?Qd:rv))),a(),s}}function rv(e,t,n){return t===0?e:Qd(e,t,n)}function Qd(e,t,n){return(n?"":" ")+e}const iv=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Yd.peek=av;function lv(){return{canContainEols:["delete"],enter:{strikethrough:uv},exit:{strikethrough:sv}}}function ov(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:iv}],handlers:{delete:Yd}}}function uv(e){this.enter({type:"delete",children:[]},e)}function sv(e){this.exit(e)}function Yd(e,t,n,r){const i=n.createTracker(r),l=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function av(){return"~"}function cv(e){return e.length}function fv(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||cv,l=[],o=[],u=[],s=[];let a=0,f=-1;for(;++f<e.length;){const k=[],E=[];let h=-1;for(e[f].length>a&&(a=e[f].length);++h<e[f].length;){const m=pv(e[f][h]);if(n.alignDelimiters!==!1){const y=i(m);E[h]=y,(s[h]===void 0||y>s[h])&&(s[h]=y)}k.push(m)}o[f]=k,u[f]=E}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<a;)l[c]=Kd(r[c]);else{const k=Kd(r);for(;++c<a;)l[c]=k}c=-1;const p=[],d=[];for(;++c<a;){const k=l[c];let E="",h="";k===99?(E=":",h=":"):k===108?E=":":k===114&&(h=":");let m=n.alignDelimiters===!1?1:Math.max(1,s[c]-E.length-h.length);const y=E+"-".repeat(m)+h;n.alignDelimiters!==!1&&(m=E.length+m+h.length,m>s[c]&&(s[c]=m),d[c]=m),p[c]=y}o.splice(1,0,p),u.splice(1,0,d),f=-1;const g=[];for(;++f<o.length;){const k=o[f],E=u[f];c=-1;const h=[];for(;++c<a;){const m=k[c]||"";let y="",C="";if(n.alignDelimiters!==!1){const T=s[c]-(E[c]||0),w=l[c];w===114?y=" ".repeat(T):w===99?T%2?(y=" ".repeat(T/2+.5),C=" ".repeat(T/2-.5)):(y=" ".repeat(T/2),C=y):C=" ".repeat(T)}n.delimiterStart!==!1&&!c&&h.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&m==="")&&(n.delimiterStart!==!1||c)&&h.push(" "),n.alignDelimiters!==!1&&h.push(y),h.push(m),n.alignDelimiters!==!1&&h.push(C),n.padding!==!1&&h.push(" "),(n.delimiterEnd!==!1||c!==a-1)&&h.push("|")}g.push(n.delimiterEnd===!1?h.join("").replace(/ +$/,""):h.join(""))}return g.join(`
57
57
  `)}function pv(e){return e==null?"":String(e)}function Kd(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function dv(e,t,n,r){const i=n.enter("blockquote"),l=n.createTracker(r);l.move("> "),l.shift(2);const o=n.indentLines(n.containerFlow(e,l.current()),hv);return i(),o}function hv(e,t,n){return">"+(n?"":" ")+e}function mv(e,t){return qd(e,t.inConstruct,!0)&&!qd(e,t.notInConstruct,!1)}function qd(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Xd(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
58
58
  `&&mv(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
59
- `}function gv(e,t){const n=String(e);let r=n.indexOf(t),i=r,l=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++l>o&&(o=l):l=1,i=r+t.length,r=n.indexOf(t,i);return o}function yv(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function kv(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function xv(e,t,n,r){const i=kv(n),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(yv(e,n)){const c=n.enter("codeIndented"),p=n.indentLines(l,vv);return c(),p}const u=n.createTracker(r),s=i.repeat(Math.max(gv(l,i)+1,3)),a=n.enter("codeFenced");let f=u.move(s);if(e.lang){const c=n.enter(`codeFencedLang${o}`);f+=u.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...u.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${o}`);f+=u.move(" "),f+=u.move(n.safe(e.meta,{before:f,after:`
59
+ `}function gv(e,t){const n=String(e);let r=n.indexOf(t),i=r,l=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++l>o&&(o=l):l=1,i=r+t.length,r=n.indexOf(t,i);return o}function yv(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function xv(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function kv(e,t,n,r){const i=xv(n),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(yv(e,n)){const c=n.enter("codeIndented"),p=n.indentLines(l,vv);return c(),p}const u=n.createTracker(r),s=i.repeat(Math.max(gv(l,i)+1,3)),a=n.enter("codeFenced");let f=u.move(s);if(e.lang){const c=n.enter(`codeFencedLang${o}`);f+=u.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...u.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${o}`);f+=u.move(" "),f+=u.move(n.safe(e.meta,{before:f,after:`
60
60
  `,encode:["`"],...u.current()})),c()}return f+=u.move(`
61
61
  `),l&&(f+=u.move(l+`
62
62
  `)),f+=u.move(s),a(),f}function vv(e,t,n){return(n?"":" ")+e}function Ws(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function wv(e,t,n,r){const i=Ws(n),l=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let u=n.enter("label");const s=n.createTracker(r);let a=s.move("[");return a+=s.move(n.safe(n.associationId(e),{before:a,after:"]",...s.current()})),a+=s.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),a+=s.move("<"),a+=s.move(n.safe(e.url,{before:a,after:">",...s.current()})),a+=s.move(">")):(u=n.enter("destinationRaw"),a+=s.move(n.safe(e.url,{before:a,after:e.title?" ":`
63
- `,...s.current()}))),u(),e.title&&(u=n.enter(`title${l}`),a+=s.move(" "+i),a+=s.move(n.safe(e.title,{before:a,after:i,...s.current()})),a+=s.move(i),u()),o(),a}function Sv(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ui(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Bl(e,t,n){const r=rr(e),i=rr(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Gd.peek=Cv;function Gd(e,t,n,r){const i=Sv(n),l=n.enter("emphasis"),o=n.createTracker(r),u=o.move(i);let s=o.move(n.containerPhrasing(e,{after:i,before:u,...o.current()}));const a=s.charCodeAt(0),f=Bl(r.before.charCodeAt(r.before.length-1),a,i);f.inside&&(s=ui(a)+s.slice(1));const c=s.charCodeAt(s.length-1),p=Bl(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+ui(c));const d=o.move(i);return l(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},u+s+d}function Cv(e,t,n){return n.options.emphasis||"*"}function Ev(e,t){let n=!1;return Ns(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Is}),!!((!e.depth||e.depth<3)&&ks(e)&&(t.options.setext||n))}function zv(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(r);if(Ev(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),p=n.containerPhrasing(e,{...l.current(),before:`
63
+ `,...s.current()}))),u(),e.title&&(u=n.enter(`title${l}`),a+=s.move(" "+i),a+=s.move(n.safe(e.title,{before:a,after:i,...s.current()})),a+=s.move(i),u()),o(),a}function Sv(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ui(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Bl(e,t,n){const r=rr(e),i=rr(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Gd.peek=Cv;function Gd(e,t,n,r){const i=Sv(n),l=n.enter("emphasis"),o=n.createTracker(r),u=o.move(i);let s=o.move(n.containerPhrasing(e,{after:i,before:u,...o.current()}));const a=s.charCodeAt(0),f=Bl(r.before.charCodeAt(r.before.length-1),a,i);f.inside&&(s=ui(a)+s.slice(1));const c=s.charCodeAt(s.length-1),p=Bl(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+ui(c));const d=o.move(i);return l(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},u+s+d}function Cv(e,t,n){return n.options.emphasis||"*"}function Ev(e,t){let n=!1;return Ns(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Is}),!!((!e.depth||e.depth<3)&&xs(e)&&(t.options.setext||n))}function zv(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(r);if(Ev(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),p=n.containerPhrasing(e,{...l.current(),before:`
64
64
  `,after:`
65
65
  `});return c(),f(),p+`
66
66
  `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
67
67
  `))+1))}const o="#".repeat(i),u=n.enter("headingAtx"),s=n.enter("phrasing");l.move(o+" ");let a=n.containerPhrasing(e,{before:"# ",after:`
68
- `,...l.current()});return/^[\t ]/.test(a)&&(a=ui(a.charCodeAt(0))+a.slice(1)),a=a?o+" "+a:o,n.options.closeAtx&&(a+=" "+o),s(),u(),a}Jd.peek=Tv;function Jd(e){return e.value||""}function Tv(){return"<"}Zd.peek=Pv;function Zd(e,t,n,r){const i=Ws(n),l=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let u=n.enter("label");const s=n.createTracker(r);let a=s.move("![");return a+=s.move(n.safe(e.alt,{before:a,after:"]",...s.current()})),a+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),a+=s.move("<"),a+=s.move(n.safe(e.url,{before:a,after:">",...s.current()})),a+=s.move(">")):(u=n.enter("destinationRaw"),a+=s.move(n.safe(e.url,{before:a,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${l}`),a+=s.move(" "+i),a+=s.move(n.safe(e.title,{before:a,after:i,...s.current()})),a+=s.move(i),u()),a+=s.move(")"),o(),a}function Pv(){return"!"}eh.peek=_v;function eh(e,t,n,r){const i=e.referenceType,l=n.enter("imageReference");let o=n.enter("label");const u=n.createTracker(r);let s=u.move("![");const a=n.safe(e.alt,{before:s,after:"]",...u.current()});s+=u.move(a+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...u.current()});return o(),n.stack=f,l(),i==="full"||!a||a!==c?s+=u.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=u.move("]"),s}function _v(){return"!"}th.peek=Iv;function th(e,t,n){let r=e.value||"",i="`",l=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){const o=n.unsafe[l],u=n.compilePattern(o);let s;if(o.atBreak)for(;s=u.exec(r);){let a=s.index;r.charCodeAt(a)===10&&r.charCodeAt(a-1)===13&&a--,r=r.slice(0,a)+" "+r.slice(s.index+1)}}return i+r+i}function Iv(){return"`"}function nh(e,t){const n=ks(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}rh.peek=Nv;function rh(e,t,n,r){const i=Ws(n),l=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let u,s;if(nh(e,n)){const f=n.stack;n.stack=[],u=n.enter("autolink");let c=o.move("<");return c+=o.move(n.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),u(),n.stack=f,c}u=n.enter("link"),s=n.enter("label");let a=o.move("[");return a+=o.move(n.containerPhrasing(e,{before:a,after:"](",...o.current()})),a+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),a+=o.move("<"),a+=o.move(n.safe(e.url,{before:a,after:">",...o.current()})),a+=o.move(">")):(s=n.enter("destinationRaw"),a+=o.move(n.safe(e.url,{before:a,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=n.enter(`title${l}`),a+=o.move(" "+i),a+=o.move(n.safe(e.title,{before:a,after:i,...o.current()})),a+=o.move(i),s()),a+=o.move(")"),u(),a}function Nv(e,t,n){return nh(e,n)?"<":"["}ih.peek=Lv;function ih(e,t,n,r){const i=e.referenceType,l=n.enter("linkReference");let o=n.enter("label");const u=n.createTracker(r);let s=u.move("[");const a=n.containerPhrasing(e,{before:s,after:"]",...u.current()});s+=u.move(a+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...u.current()});return o(),n.stack=f,l(),i==="full"||!a||a!==c?s+=u.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=u.move("]"),s}function Lv(){return"["}function Qs(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Av(e){const t=Qs(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Dv(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function lh(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Rv(e,t,n,r){const i=n.enter("list"),l=n.bulletCurrent;let o=e.ordered?Dv(n):Qs(n);const u=e.ordered?o==="."?")":".":Av(n);let s=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),lh(n)===o&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(o=u),n.bulletCurrent=o;const a=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=l,i(),a}function bv(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Fv(e,t,n,r){const i=bv(n);let l=n.bulletCurrent||Qs(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const u=n.createTracker(r);u.move(l+" ".repeat(o-l.length)),u.shift(o);const s=n.enter("listItem"),a=n.indentLines(n.containerFlow(e,u.current()),f);return s(),a;function f(c,p,d){return p?(d?"":" ".repeat(o))+c:(d?l:l+" ".repeat(o-l.length))+c}}function Mv(e,t,n,r){const i=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,r);return l(),i(),o}const Ov=Fl(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function jv(e,t,n,r){return(e.children.some(function(o){return Ov(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Bv(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}oh.peek=Uv;function oh(e,t,n,r){const i=Bv(n),l=n.enter("strong"),o=n.createTracker(r),u=o.move(i+i);let s=o.move(n.containerPhrasing(e,{after:i,before:u,...o.current()}));const a=s.charCodeAt(0),f=Bl(r.before.charCodeAt(r.before.length-1),a,i);f.inside&&(s=ui(a)+s.slice(1));const c=s.charCodeAt(s.length-1),p=Bl(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+ui(c));const d=o.move(i+i);return l(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},u+s+d}function Uv(e,t,n){return n.options.strong||"*"}function $v(e,t,n,r){return n.safe(e.value,r)}function Hv(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Vv(e,t,n){const r=(lh(n)+(n.options.ruleSpaces?" ":"")).repeat(Hv(n));return n.options.ruleSpaces?r.slice(0,-1):r}const uh={blockquote:dv,break:Xd,code:xv,definition:wv,emphasis:Gd,hardBreak:Xd,heading:zv,html:Jd,image:Zd,imageReference:eh,inlineCode:th,link:rh,linkReference:ih,list:Rv,listItem:Fv,paragraph:Mv,root:jv,strong:oh,text:$v,thematicBreak:Vv};function Wv(){return{enter:{table:Qv,tableData:sh,tableHeader:sh,tableRow:Kv},exit:{codeText:qv,table:Yv,tableData:Ys,tableHeader:Ys,tableRow:Ys}}}function Qv(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Yv(e){this.exit(e),this.data.inTable=void 0}function Kv(e){this.enter({type:"tableRow",children:[]},e)}function Ys(e){this.exit(e)}function sh(e){this.enter({type:"tableCell",children:[]},e)}function qv(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Xv));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Xv(e,t){return t==="|"?t:e}function Gv(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
69
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:s,tableRow:u}};function o(d,g,x,E){return a(f(d,x,E),d.align)}function u(d,g,x,E){const h=c(d,x,E),m=a([h]);return m.slice(0,m.indexOf(`
70
- `))}function s(d,g,x,E){const h=x.enter("tableCell"),m=x.enter("phrasing"),y=x.containerPhrasing(d,{...E,before:l,after:l});return m(),h(),y}function a(d,g){return fv(d,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function f(d,g,x){const E=d.children;let h=-1;const m=[],y=g.enter("table");for(;++h<E.length;)m[h]=c(E[h],g,x);return y(),m}function c(d,g,x){const E=d.children;let h=-1;const m=[],y=g.enter("tableRow");for(;++h<E.length;)m[h]=s(E[h],d,g,x);return y(),m}function p(d,g,x){let E=uh.inlineCode(d,g,x);return x.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function Jv(){return{exit:{taskListCheckValueChecked:ah,taskListCheckValueUnchecked:ah,paragraph:ew}}}function Zv(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:tw}}}function ah(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function ew(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let l=-1,o;for(;++l<i.length;){const u=i[l];if(u.type==="paragraph"){o=u;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function tw(e,t,n,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);l&&u.move(o);let s=uh.listItem(e,t,n,{...r,...u.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,a)),s;function a(f){return f+o}}function nw(){return[Rx(),tv(),lv(),Wv(),Jv()]}function rw(e){return{extensions:[bx(),nv(e),ov(),Gv(e),Zv()]}}const iw={tokenize:cw,partial:!0},ch={tokenize:fw,partial:!0},fh={tokenize:pw,partial:!0},ph={tokenize:dw,partial:!0},lw={tokenize:hw,partial:!0},dh={name:"wwwAutolink",tokenize:sw,previous:mh},hh={name:"protocolAutolink",tokenize:aw,previous:gh},Dt={name:"emailAutolink",tokenize:uw,previous:yh},wt={};function ow(){return{text:wt}}let Cn=48;for(;Cn<123;)wt[Cn]=Dt,Cn++,Cn===58?Cn=65:Cn===91&&(Cn=97);wt[43]=Dt,wt[45]=Dt,wt[46]=Dt,wt[95]=Dt,wt[72]=[Dt,hh],wt[104]=[Dt,hh],wt[87]=[Dt,dh],wt[119]=[Dt,dh];function uw(e,t,n){const r=this;let i,l;return o;function o(c){return!Ks(c)||!yh.call(r,r.previous)||qs(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(c))}function u(c){return Ks(c)?(e.consume(c),u):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(lw,f,a)(c):c===45||c===95||Ne(c)?(l=!0,e.consume(c),s):f(c)}function a(c){return e.consume(c),i=!0,s}function f(c){return l&&i&&be(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function sw(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!mh.call(r,r.previous)||qs(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(iw,e.attempt(ch,e.attempt(fh,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function aw(e,t,n){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&gh.call(r,r.previous)&&!qs(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),u):n(c)}function u(c){if(be(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),u;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),l?a:(l=!0,s)):n(c)}function a(c){return c===null||Pl(c)||ne(c)||Sn(c)||_l(c)?n(c):e.attempt(ch,e.attempt(fh,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function cw(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),l):n(o)}function l(o){return o===null?n(o):t(o)}}function fw(e,t,n){let r,i,l;return o;function o(a){return a===46||a===95?e.check(ph,s,u)(a):a===null||ne(a)||Sn(a)||a!==45&&_l(a)?s(a):(l=!0,e.consume(a),o)}function u(a){return a===95?r=!0:(i=r,r=void 0),e.consume(a),o}function s(a){return i||r||!l?n(a):t(a)}}function pw(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(ph,t,l)(o):o===null||ne(o)||Sn(o)?t(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function dw(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),l):u===93?(e.consume(u),i):u===60||u===null||ne(u)||Sn(u)?t(u):n(u)}function i(u){return u===null||u===40||u===91||ne(u)||Sn(u)?t(u):r(u)}function l(u){return be(u)?o(u):n(u)}function o(u){return u===59?(e.consume(u),r):be(u)?(e.consume(u),o):n(u)}}function hw(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return Ne(l)?n(l):t(l)}}function mh(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ne(e)}function gh(e){return!be(e)}function yh(e){return!(e===47||Ks(e))}function Ks(e){return e===43||e===45||e===46||e===95||Ne(e)}function qs(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const mw={tokenize:Cw,partial:!0};function gw(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:vw,continuation:{tokenize:ww},exit:Sw}},text:{91:{name:"gfmFootnoteCall",tokenize:xw},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:yw,resolveTo:kw}}}}function yw(e,t,n){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return u;function u(s){if(!o||!o._balanced)return n(s);const a=pt(r.sliceSerialize({start:o.end,end:r.now()}));return a.codePointAt(0)!==94||!l.includes(a.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function kw(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function xw(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return u;function u(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",a)}function a(c){if(l>999||c===93&&!o||c===null||c===91||ne(c))return n(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(pt(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ne(c)||(o=!0),l++,e.consume(c),c===92?f:a}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,a):a(c)}}function vw(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,u;return s;function s(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),a}function a(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(g)}function f(g){if(o>999||g===93&&!u||g===null||g===91||ne(g))return n(g);if(g===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return l=pt(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ne(g)||(u=!0),o++,e.consume(g),g===92?c:f}function c(g){return g===91||g===92||g===93?(e.consume(g),o++,f):f(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(l)||i.push(l),X(e,d,"gfmFootnoteDefinitionWhitespace")):n(g)}function d(g){return t(g)}}function ww(e,t,n){return e.check(ti,t,e.attempt(mw,t,n))}function Sw(e){e.exit("gfmFootnoteDefinition")}function Cw(e,t,n){const r=this;return X(e,i,"gfmFootnoteDefinitionIndent",5);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(l):n(l)}}function Ew(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,u){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let a=s;for(;a--;)if(o[a][0]==="exit"&&o[a][1].type==="strikethroughSequenceTemporary"&&o[a][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[a][1].end.offset-o[a][1].start.offset){o[s][1].type="strikethroughSequence",o[a][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[a][1].start),end:Object.assign({},o[s][1].end)},c={type:"strikethroughText",start:Object.assign({},o[a][1].end),end:Object.assign({},o[s][1].start)},p=[["enter",f,u],["enter",o[a][1],u],["exit",o[a][1],u],["enter",c,u]],d=u.parser.constructs.insideSpan.null;d&&Xe(p,p.length,0,Il(d,o.slice(a+1,s),u)),Xe(p,p.length,0,[["exit",c,u],["enter",o[s][1],u],["exit",o[s][1],u],["exit",f,u]]),Xe(o,a-1,s-a+3,p),s=a+p.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function l(o,u,s){const a=this.previous,f=this.events;let c=0;return p;function p(g){return a===126&&f[f.length-1][1].type!=="characterEscape"?s(g):(o.enter("strikethroughSequenceTemporary"),d(g))}function d(g){const x=rr(a);if(g===126)return c>1?s(g):(o.consume(g),c++,d);if(c<2&&!n)return s(g);const E=o.exit("strikethroughSequenceTemporary"),h=rr(g);return E._open=!h||h===2&&!!x,E._close=!x||x===2&&!!h,u(g)}}}class zw{constructor(){this.map=[]}add(t,n,r){Tw(this,t,n,r)}consume(t){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const l of i)t.push(l);i=r.pop()}this.map.length=0}}function Tw(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Pw(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function _w(){return{flow:{null:{name:"table",tokenize:Iw,resolveAll:Nw}}}}function Iw(e,t,n){const r=this;let i=0,l=0,o;return u;function u(S){let R=r.events.length-1;for(;R>-1;){const V=r.events[R][1].type;if(V==="lineEnding"||V==="linePrefix")R--;else break}const F=R>-1?r.events[R][1].type:null,K=F==="tableHead"||F==="tableRow"?w:s;return K===w&&r.parser.lazy[r.now().line]?n(S):K(S)}function s(S){return e.enter("tableHead"),e.enter("tableRow"),a(S)}function a(S){return S===124||(o=!0,l+=1),f(S)}function f(S){return S===null?n(S):B(S)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),d):n(S):Y(S)?X(e,f,"whitespace")(S):(l+=1,o&&(o=!1,i+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(S)))}function c(S){return S===null||S===124||ne(S)?(e.exit("data"),f(S)):(e.consume(S),S===92?p:c)}function p(S){return S===92||S===124?(e.consume(S),c):c(S)}function d(S){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(S):(e.enter("tableDelimiterRow"),o=!1,Y(S)?X(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):g(S))}function g(S){return S===45||S===58?E(S):S===124?(o=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),x):T(S)}function x(S){return Y(S)?X(e,E,"whitespace")(S):E(S)}function E(S){return S===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),h):S===45?(l+=1,h(S)):S===null||B(S)?C(S):T(S)}function h(S){return S===45?(e.enter("tableDelimiterFiller"),m(S)):T(S)}function m(S){return S===45?(e.consume(S),m):S===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(S))}function y(S){return Y(S)?X(e,C,"whitespace")(S):C(S)}function C(S){return S===124?g(S):S===null||B(S)?!o||i!==l?T(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(S)):T(S)}function T(S){return n(S)}function w(S){return e.enter("tableRow"),P(S)}function P(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),P):S===null||B(S)?(e.exit("tableRow"),t(S)):Y(S)?X(e,P,"whitespace")(S):(e.enter("data"),L(S))}function L(S){return S===null||S===124||ne(S)?(e.exit("data"),P(S)):(e.consume(S),S===92?O:L)}function O(S){return S===92||S===124?(e.consume(S),L):L(S)}}function Nw(e,t){let n=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],u=!1,s=0,a,f,c;const p=new zw;for(;++n<e.length;){const d=e[n],g=d[1];d[0]==="enter"?g.type==="tableHead"?(u=!1,s!==0&&(kh(p,t,s,a,f),f=void 0,s=0),a={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",a,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,c=void 0,l=[0,0,0,0],o=[0,n+1,0,0],u&&(u=!1,f={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",f,t]])),i=g.type==="tableDelimiterRow"?2:f?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],c=Ul(p,t,l,i,void 0,c),l=[0,0,0,0]),o[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],c=Ul(p,t,l,i,void 0,c)),l=o,o=[l[1],n,0,0])):g.type==="tableHead"?(u=!0,s=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(s=n,l[1]!==0?(o[0]=o[1],c=Ul(p,t,l,i,n,c)):o[1]!==0&&(c=Ul(p,t,o,i,n,c)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(s!==0&&kh(p,t,s,a,f),p.consume(t.events),n=-1;++n<t.events.length;){const d=t.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=Pw(t.events,n))}return e}function Ul(e,t,n,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(l.end=Object.assign({},lr(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const s=lr(t.events,n[1]);if(l={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const a=lr(t.events,n[2]),f=lr(t.events,n[3]),c={type:u,start:Object.assign({},a),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const p=t.events[n[2]],d=t.events[n[3]];if(p[1].end=Object.assign({},d[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,x=n[3]-n[2]-1;e.add(g,x,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(l.end=Object.assign({},lr(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function kh(e,t,n,r,i){const l=[],o=lr(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function lr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Lw={name:"tasklistCheck",tokenize:Dw};function Aw(){return{text:{91:Lw}}}function Dw(e,t,n){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return ne(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):n(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(s)}function u(s){return B(s)?t(s):Y(s)?e.check({tokenize:Rw},t,n)(s):n(s)}}function Rw(e,t,n){return X(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function bw(e){return Qp([ow(),gw(),Ew(e),_w(),Aw()])}const Fw={};function xh(e){const t=this,n=e||Fw,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(bw(n)),l.push(nw()),o.push(rw(n))}function Mw(e){return e.type==="dynamic-tool"||typeof e.type=="string"&&e.type.startsWith("tool-")}function Ow({message:e}){var t,n;if(e.role==="user"){const r=(t=e.parts)==null?void 0:t.find(i=>i.type==="text");return I.jsxs("div",{className:"text-sm",children:[I.jsx("span",{className:"text-xs text-zinc-500 block mb-1",children:"Test Plan"}),I.jsx("div",{className:"text-zinc-200 prose prose-invert prose-sm max-w-none",children:I.jsx($d,{remarkPlugins:[xh],children:(r==null?void 0:r.text)||""})})]})}return I.jsx("div",{className:"text-sm space-y-2",children:(n=e.parts)==null?void 0:n.map((r,i)=>{var l,o;if(r.type==="text"&&r.text)return((o=(l=r.providerMetadata)==null?void 0:l.anthropic)==null?void 0:o.type)==="compaction"?null:I.jsxs("div",{children:[I.jsx("span",{className:"text-xs text-zinc-500 block mb-1",children:"Agent"}),I.jsx("div",{className:"text-zinc-300 prose prose-invert prose-sm max-w-none",children:I.jsx($d,{remarkPlugins:[xh],children:r.text})})]},i);if(Mw(r)){const u=r.toolName||(typeof r.type=="string"?r.type.replace(/^tool-/,""):"");return u==="todos"||u==="report_result"?null:I.jsx(jw,{part:r},i)}return null})})}function jw({part:e}){const[t,n]=U.useState(!1),r=e.input||{},i=e.output,l=e.state||"input-available",o=l==="input-streaming"||l==="input-available",u=e.toolName||(typeof e.type=="string"?e.type.replace(/^tool-/,""):""),s=l==="input-streaming"?"":u==="browser"?(()=>{const a=(r.actions||[]).map(f=>{switch(f.action){case"navigate":return`navigate ${f.url||""}`;case"mouse":return`mouse ${(f.mouseActions||[]).map(p=>p.action==="wait"?`wait ${p.ms}ms`:`${p.action} ${p.ref||`${p.x},${p.y}`}`).join(" → ")}`;case"type":return`type "${(f.text||"").slice(0,40)}"`;case"press":return`press ${f.key||""}`;case"tabs":return`tabs ${f.tabAction||""}`;default:return f.action||""}});return r.observe&&a.push(r.observe),a.join(", ")})():r.command||(Object.keys(r).length>0?JSON.stringify(r):"");return I.jsxs("div",{className:"text-sm",children:[I.jsxs("button",{onClick:()=>n(!t),className:"flex items-center gap-2 text-xs px-2 py-1.5 bg-zinc-900 border border-zinc-800 rounded-lg hover:border-zinc-700 transition-colors w-full text-left min-w-0 overflow-hidden",children:[o?I.jsx("span",{className:"inline-block w-2 h-2 bg-amber-500 rounded-full shrink-0"}):I.jsx("span",{className:"text-green-500 shrink-0",children:"✓"}),I.jsx("span",{className:"text-zinc-400 font-mono truncate",children:s}),I.jsx("span",{className:`ml-auto transition-transform text-zinc-600 shrink-0 ${t?"rotate-90":""}`,children:"▶"})]}),t&&I.jsxs("pre",{className:"mt-1 px-3 py-2 bg-zinc-900/50 rounded-lg border border-zinc-800 text-xs whitespace-pre-wrap break-all max-h-60 overflow-y-auto",children:[s&&I.jsxs(I.Fragment,{children:[I.jsxs("span",{className:"text-zinc-300 select-all",children:["$ ",s]}),`
71
- `]}),i!=null&&(()=>{if(u==="browser"&&typeof i=="string")try{const a=JSON.parse(i);if(a.textOutput!==void 0)return I.jsx("span",{className:"text-zinc-500",children:a.textOutput})}catch{}return I.jsx("span",{className:"text-zinc-500",children:typeof i=="string"?i:JSON.stringify(i,null,2)})})()]})]})}function Bw({messages:e,currentTime:t}){const n=U.useRef(null),r=U.useRef(null),i=U.useMemo(()=>{const o=[];for(const u of e){if(u._ts&&u._ts>t)break;if(!u.parts){o.push(u);continue}const s=u.parts.filter(a=>!a._ts||a._ts<=t);s.length>0&&o.push({...u,parts:s})}return o},[e,t]),l=U.useRef(0);return U.useEffect(()=>{var u;const o=i.reduce((s,a)=>{var f;return s+(((f=a.parts)==null?void 0:f.length)||1)},0);o>l.current&&(l.current=o,(u=r.current)==null||u.scrollIntoView({behavior:"smooth"}))},[i]),I.jsxs("div",{ref:n,className:"flex-1 overflow-y-auto overflow-x-hidden px-3 md:px-4 py-4 space-y-3 break-words",children:[i.map((o,u)=>I.jsx(Ow,{message:o},o.id||u)),i.length===0&&I.jsx("div",{className:"text-sm text-zinc-600",children:"No messages"}),I.jsx("div",{ref:r})]})}const Uw=[1,2,4,8];function $w({startTime:e,endTime:t,currentTime:n,clips:r,playing:i,speed:l,autoSpeed:o,onSeek:u,onTogglePlay:s,onSetSpeed:a,onSetAutoSpeed:f,formatTime:c,elapsed:p,duration:d}){const g=U.useRef(null),x=U.useCallback(y=>{const C=g.current;if(!C)return;const T=C.getBoundingClientRect(),w=Math.max(0,Math.min(1,(y.clientX-T.left)/T.width));u(e+w*d)},[e,d,u]),E=U.useCallback(y=>{y.buttons===1&&x(y)},[x]),h=U.useCallback(y=>{const C=g.current;if(!C||!y.touches[0])return;const T=C.getBoundingClientRect(),w=Math.max(0,Math.min(1,(y.touches[0].clientX-T.left)/T.width));u(e+w*d)},[e,d,u]),m=d>0?(n-e)/d*100:0;return I.jsxs("div",{className:"border-t border-zinc-800 bg-zinc-900 px-3 md:px-4 py-2 md:py-3 shrink-0",children:[I.jsxs("div",{ref:g,className:"relative h-6 mb-2 cursor-pointer rounded overflow-hidden bg-zinc-800",onClick:x,onMouseMove:E,onTouchStart:h,onTouchMove:h,children:[r.map((y,C)=>{const T=d>0?(y.startTime-e)/d*100:0,w=d>0?(y.endTime-y.startTime)/d*100:0;return I.jsx("div",{className:"absolute top-0 bottom-0 bg-blue-900/60",style:{left:`${T}%`,width:`${w}%`}},C)}),I.jsx("div",{className:"absolute top-0 bottom-0 bg-blue-600/30 pointer-events-none",style:{width:`${m}%`}}),I.jsx("div",{className:"absolute top-0 bottom-0 w-0.5 bg-blue-400 pointer-events-none",style:{left:`${m}%`}})]}),I.jsxs("div",{className:"flex items-center gap-2 md:gap-3",children:[I.jsx("button",{onClick:s,className:"text-zinc-300 hover:text-white transition-colors text-sm px-3 py-2 md:px-2 md:py-1 rounded border border-zinc-700 hover:border-zinc-500",children:i?"⏸":"▶"}),I.jsxs("span",{className:"text-xs text-zinc-400 font-mono tabular-nums",children:[c(p)," / ",c(d)]}),I.jsx("div",{className:"flex-1"}),I.jsx("button",{onClick:()=>f(!o),className:`text-xs px-2 py-1 rounded border transition-colors ${o?"border-blue-600 text-blue-400 bg-blue-950/30":"border-zinc-700 text-zinc-500 hover:text-zinc-400"}`,children:"Auto"}),I.jsx("div",{className:"flex gap-1",children:Uw.map(y=>I.jsxs("button",{onClick:()=>a(y),className:`text-xs px-2 py-1 rounded border transition-colors ${l===y?"border-zinc-500 text-zinc-200 bg-zinc-800":"border-zinc-700 text-zinc-500 hover:text-zinc-400"}`,children:[y,"x"]},y))})]})]})}function Hw({data:e}){var W;const[t,n]=U.useState(((W=e.agents[0])==null?void 0:W.id)||""),[r,i]=U.useState(null),[l,o]=U.useState(e.startTime),[u,s]=U.useState(!1),[a,f]=U.useState(1),[c,p]=U.useState(!0),[d,g]=U.useState("video"),x=U.useRef(0),E=U.useRef(0),h=e.endTime-e.startTime,m=U.useMemo(()=>e.clips.filter(M=>M.agentId===t),[e.clips,t]),y=U.useMemo(()=>[...new Set(m.map(M=>M.tabId))],[m]),C=U.useMemo(()=>r!==null?m.filter(M=>M.tabId===r):m,[m,r]);U.useEffect(()=>{y.length>0&&r===null&&i(y[0])},[t,y.length]);const w=!C.find(M=>l>=M.startTime&&l<=M.endTime),P=c&&w?Math.max(a,4):a;U.useEffect(()=>{if(!u){cancelAnimationFrame(x.current);return}E.current=performance.now();const M=()=>{const J=performance.now(),A=(J-E.current)*P;E.current=J,o(j=>{const k=j+A;return k>=e.endTime?(s(!1),e.endTime):k}),x.current=requestAnimationFrame(M)};return x.current=requestAnimationFrame(M),()=>cancelAnimationFrame(x.current)},[u,P,e.endTime]);const L=U.useCallback(M=>{o(Math.max(e.startTime,Math.min(e.endTime,M)))},[e.startTime,e.endTime]),O=U.useCallback(()=>{s(M=>(M||o(J=>J>=e.endTime?e.startTime:J),!M))},[e.endTime,e.startTime]);U.useEffect(()=>{const M=J=>{J.code==="Space"&&(J.preventDefault(),O())};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)},[O]);const S=M=>{const J=Math.floor(M/1e3),A=Math.floor(J/60),j=J%60;return`${A}:${j.toString().padStart(2,"0")}`},R=U.useMemo(()=>{for(let M=C.length-1;M>=0;M--)if(C[M].startTime<=l&&C[M].url)return C[M].url;return""},[C,Math.floor(l/500)]),F=l-e.startTime,K=e.agents.length>1,V=e.agents.find(M=>M.id===t);return I.jsxs("div",{className:"flex flex-col h-screen overflow-hidden",children:[K&&I.jsx("div",{className:"md:hidden flex items-center gap-2 px-3 py-2 bg-zinc-900 border-b border-zinc-800 overflow-x-auto",children:e.agents.map(M=>I.jsxs("button",{onClick:()=>{n(M.id),i(null)},className:`text-sm px-3 py-2 rounded border whitespace-nowrap transition-colors ${M.id===t?"border-zinc-500 text-zinc-200 bg-zinc-800":"border-zinc-700 text-zinc-500"}`,children:[M.result==="pass"?"✓ ":M.result==="fail"?"✗ ":"",M.name]},M.id))}),I.jsxs("div",{className:"md:hidden flex border-b border-zinc-800 bg-zinc-900",children:[I.jsx("button",{onClick:()=>g("video"),className:`flex-1 text-sm py-3 text-center transition-colors ${d==="video"?"text-zinc-200 border-b-2 border-blue-500":"text-zinc-500"}`,children:"Browser"}),I.jsxs("button",{onClick:()=>g("activity"),className:`flex-1 text-sm py-3 text-center transition-colors ${d==="activity"?"text-zinc-200 border-b-2 border-blue-500":"text-zinc-500"}`,children:["Activity",(V==null?void 0:V.result)&&I.jsx("span",{className:`ml-1.5 ${V.result==="pass"?"text-green-400":"text-red-400"}`,children:V.result==="pass"?"PASS":"FAIL"})]})]}),I.jsxs("div",{className:"flex flex-1 min-h-0",children:[K&&I.jsx("div",{className:"hidden md:block",children:I.jsx(Zg,{agents:e.agents,activeAgentId:t,onSelectAgent:M=>{n(M),i(null)}})}),I.jsxs("div",{className:`flex-1 flex flex-col min-w-0 md:border-r border-zinc-800 ${d!=="video"?"hidden md:flex":""}`,children:[y.length>1&&I.jsx(ey,{tabIds:y,activeTabId:r,onSelectTab:i}),I.jsx("div",{className:"flex items-center gap-2 px-3 py-2 bg-zinc-900 border-b border-zinc-800",children:I.jsx("div",{className:"flex-1 px-3 py-1.5 bg-zinc-800 border border-zinc-700 rounded-lg text-xs text-zinc-400 truncate",children:R||"about:blank"})}),I.jsx("div",{className:"flex-1 min-h-0 relative",children:I.jsx(ty,{clips:C,currentTime:l,playing:u,speed:P})}),I.jsx(ny,{entries:e.consoleLogs[t]||[],currentTime:l})]}),I.jsxs("div",{className:`md:w-[420px] flex flex-col h-full md:shrink-0 min-w-0 overflow-hidden ${d!=="activity"?"hidden md:flex":"flex-1"}`,children:[I.jsxs("div",{className:"hidden md:flex items-center px-4 py-3 border-b border-zinc-800",children:[I.jsx("h2",{className:"text-sm font-medium text-zinc-300",children:(V==null?void 0:V.name)||"Activity"}),I.jsx("div",{className:"flex-1"}),(V==null?void 0:V.result)&&I.jsx("span",{className:`text-xs font-medium px-2 py-0.5 rounded ${V.result==="pass"?"bg-green-950/50 text-green-400":"bg-red-950/50 text-red-400"}`,children:V.result==="pass"?"PASSED":"FAILED"})]}),I.jsx(Bw,{messages:e.messages[t]||[],timeline:e.timeline.filter(M=>M.agentId===t),currentTime:l,startTime:e.startTime})]})]}),I.jsx($w,{startTime:e.startTime,endTime:e.endTime,currentTime:l,clips:C,playing:u,speed:a,autoSpeed:c,onSeek:L,onTogglePlay:O,onSetSpeed:f,onSetAutoSpeed:p,formatTime:S,elapsed:F,duration:h})]})}const vh=window.__REPLAY_DATA__;vh?ql.createRoot(document.getElementById("root")).render(I.jsx(Uh.StrictMode,{children:I.jsx(Hw,{data:vh})})):document.getElementById("root").innerHTML='<div style="color:#999;padding:40px;font-family:sans-serif">No replay data found.</div>'})();
68
+ `,...l.current()});return/^[\t ]/.test(a)&&(a=ui(a.charCodeAt(0))+a.slice(1)),a=a?o+" "+a:o,n.options.closeAtx&&(a+=" "+o),s(),u(),a}Jd.peek=Tv;function Jd(e){return e.value||""}function Tv(){return"<"}Zd.peek=Pv;function Zd(e,t,n,r){const i=Ws(n),l=i==='"'?"Quote":"Apostrophe",o=n.enter("image");let u=n.enter("label");const s=n.createTracker(r);let a=s.move("![");return a+=s.move(n.safe(e.alt,{before:a,after:"]",...s.current()})),a+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),a+=s.move("<"),a+=s.move(n.safe(e.url,{before:a,after:">",...s.current()})),a+=s.move(">")):(u=n.enter("destinationRaw"),a+=s.move(n.safe(e.url,{before:a,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${l}`),a+=s.move(" "+i),a+=s.move(n.safe(e.title,{before:a,after:i,...s.current()})),a+=s.move(i),u()),a+=s.move(")"),o(),a}function Pv(){return"!"}eh.peek=_v;function eh(e,t,n,r){const i=e.referenceType,l=n.enter("imageReference");let o=n.enter("label");const u=n.createTracker(r);let s=u.move("![");const a=n.safe(e.alt,{before:s,after:"]",...u.current()});s+=u.move(a+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...u.current()});return o(),n.stack=f,l(),i==="full"||!a||a!==c?s+=u.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=u.move("]"),s}function _v(){return"!"}th.peek=Iv;function th(e,t,n){let r=e.value||"",i="`",l=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){const o=n.unsafe[l],u=n.compilePattern(o);let s;if(o.atBreak)for(;s=u.exec(r);){let a=s.index;r.charCodeAt(a)===10&&r.charCodeAt(a-1)===13&&a--,r=r.slice(0,a)+" "+r.slice(s.index+1)}}return i+r+i}function Iv(){return"`"}function nh(e,t){const n=xs(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}rh.peek=Nv;function rh(e,t,n,r){const i=Ws(n),l=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let u,s;if(nh(e,n)){const f=n.stack;n.stack=[],u=n.enter("autolink");let c=o.move("<");return c+=o.move(n.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),u(),n.stack=f,c}u=n.enter("link"),s=n.enter("label");let a=o.move("[");return a+=o.move(n.containerPhrasing(e,{before:a,after:"](",...o.current()})),a+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),a+=o.move("<"),a+=o.move(n.safe(e.url,{before:a,after:">",...o.current()})),a+=o.move(">")):(s=n.enter("destinationRaw"),a+=o.move(n.safe(e.url,{before:a,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=n.enter(`title${l}`),a+=o.move(" "+i),a+=o.move(n.safe(e.title,{before:a,after:i,...o.current()})),a+=o.move(i),s()),a+=o.move(")"),u(),a}function Nv(e,t,n){return nh(e,n)?"<":"["}ih.peek=Lv;function ih(e,t,n,r){const i=e.referenceType,l=n.enter("linkReference");let o=n.enter("label");const u=n.createTracker(r);let s=u.move("[");const a=n.containerPhrasing(e,{before:s,after:"]",...u.current()});s+=u.move(a+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...u.current()});return o(),n.stack=f,l(),i==="full"||!a||a!==c?s+=u.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=u.move("]"),s}function Lv(){return"["}function Qs(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Av(e){const t=Qs(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Dv(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function lh(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Rv(e,t,n,r){const i=n.enter("list"),l=n.bulletCurrent;let o=e.ordered?Dv(n):Qs(n);const u=e.ordered?o==="."?")":".":Av(n);let s=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),lh(n)===o&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(o=u),n.bulletCurrent=o;const a=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=l,i(),a}function bv(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Fv(e,t,n,r){const i=bv(n);let l=n.bulletCurrent||Qs(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const u=n.createTracker(r);u.move(l+" ".repeat(o-l.length)),u.shift(o);const s=n.enter("listItem"),a=n.indentLines(n.containerFlow(e,u.current()),f);return s(),a;function f(c,p,d){return p?(d?"":" ".repeat(o))+c:(d?l:l+" ".repeat(o-l.length))+c}}function Mv(e,t,n,r){const i=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,r);return l(),i(),o}const Ov=Fl(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function jv(e,t,n,r){return(e.children.some(function(o){return Ov(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Bv(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}oh.peek=Uv;function oh(e,t,n,r){const i=Bv(n),l=n.enter("strong"),o=n.createTracker(r),u=o.move(i+i);let s=o.move(n.containerPhrasing(e,{after:i,before:u,...o.current()}));const a=s.charCodeAt(0),f=Bl(r.before.charCodeAt(r.before.length-1),a,i);f.inside&&(s=ui(a)+s.slice(1));const c=s.charCodeAt(s.length-1),p=Bl(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+ui(c));const d=o.move(i+i);return l(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},u+s+d}function Uv(e,t,n){return n.options.strong||"*"}function $v(e,t,n,r){return n.safe(e.value,r)}function Hv(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Vv(e,t,n){const r=(lh(n)+(n.options.ruleSpaces?" ":"")).repeat(Hv(n));return n.options.ruleSpaces?r.slice(0,-1):r}const uh={blockquote:dv,break:Xd,code:kv,definition:wv,emphasis:Gd,hardBreak:Xd,heading:zv,html:Jd,image:Zd,imageReference:eh,inlineCode:th,link:rh,linkReference:ih,list:Rv,listItem:Fv,paragraph:Mv,root:jv,strong:oh,text:$v,thematicBreak:Vv};function Wv(){return{enter:{table:Qv,tableData:sh,tableHeader:sh,tableRow:Kv},exit:{codeText:qv,table:Yv,tableData:Ys,tableHeader:Ys,tableRow:Ys}}}function Qv(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Yv(e){this.exit(e),this.data.inTable=void 0}function Kv(e){this.enter({type:"tableRow",children:[]},e)}function Ys(e){this.exit(e)}function sh(e){this.enter({type:"tableCell",children:[]},e)}function qv(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Xv));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Xv(e,t){return t==="|"?t:e}function Gv(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
69
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:s,tableRow:u}};function o(d,g,k,E){return a(f(d,k,E),d.align)}function u(d,g,k,E){const h=c(d,k,E),m=a([h]);return m.slice(0,m.indexOf(`
70
+ `))}function s(d,g,k,E){const h=k.enter("tableCell"),m=k.enter("phrasing"),y=k.containerPhrasing(d,{...E,before:l,after:l});return m(),h(),y}function a(d,g){return fv(d,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function f(d,g,k){const E=d.children;let h=-1;const m=[],y=g.enter("table");for(;++h<E.length;)m[h]=c(E[h],g,k);return y(),m}function c(d,g,k){const E=d.children;let h=-1;const m=[],y=g.enter("tableRow");for(;++h<E.length;)m[h]=s(E[h],d,g,k);return y(),m}function p(d,g,k){let E=uh.inlineCode(d,g,k);return k.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function Jv(){return{exit:{taskListCheckValueChecked:ah,taskListCheckValueUnchecked:ah,paragraph:ew}}}function Zv(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:tw}}}function ah(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function ew(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let l=-1,o;for(;++l<i.length;){const u=i[l];if(u.type==="paragraph"){o=u;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function tw(e,t,n,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);l&&u.move(o);let s=uh.listItem(e,t,n,{...r,...u.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,a)),s;function a(f){return f+o}}function nw(){return[Rk(),tv(),lv(),Wv(),Jv()]}function rw(e){return{extensions:[bk(),nv(e),ov(),Gv(e),Zv()]}}const iw={tokenize:cw,partial:!0},ch={tokenize:fw,partial:!0},fh={tokenize:pw,partial:!0},ph={tokenize:dw,partial:!0},lw={tokenize:hw,partial:!0},dh={name:"wwwAutolink",tokenize:sw,previous:mh},hh={name:"protocolAutolink",tokenize:aw,previous:gh},Dt={name:"emailAutolink",tokenize:uw,previous:yh},wt={};function ow(){return{text:wt}}let Cn=48;for(;Cn<123;)wt[Cn]=Dt,Cn++,Cn===58?Cn=65:Cn===91&&(Cn=97);wt[43]=Dt,wt[45]=Dt,wt[46]=Dt,wt[95]=Dt,wt[72]=[Dt,hh],wt[104]=[Dt,hh],wt[87]=[Dt,dh],wt[119]=[Dt,dh];function uw(e,t,n){const r=this;let i,l;return o;function o(c){return!Ks(c)||!yh.call(r,r.previous)||qs(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(c))}function u(c){return Ks(c)?(e.consume(c),u):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(lw,f,a)(c):c===45||c===95||Ne(c)?(l=!0,e.consume(c),s):f(c)}function a(c){return e.consume(c),i=!0,s}function f(c){return l&&i&&be(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function sw(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!mh.call(r,r.previous)||qs(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(iw,e.attempt(ch,e.attempt(fh,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function aw(e,t,n){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&gh.call(r,r.previous)&&!qs(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),u):n(c)}function u(c){if(be(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),u;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),l?a:(l=!0,s)):n(c)}function a(c){return c===null||Pl(c)||ee(c)||Sn(c)||_l(c)?n(c):e.attempt(ch,e.attempt(fh,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function cw(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),l):n(o)}function l(o){return o===null?n(o):t(o)}}function fw(e,t,n){let r,i,l;return o;function o(a){return a===46||a===95?e.check(ph,s,u)(a):a===null||ee(a)||Sn(a)||a!==45&&_l(a)?s(a):(l=!0,e.consume(a),o)}function u(a){return a===95?r=!0:(i=r,r=void 0),e.consume(a),o}function s(a){return i||r||!l?n(a):t(a)}}function pw(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(ph,t,l)(o):o===null||ee(o)||Sn(o)?t(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function dw(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),l):u===93?(e.consume(u),i):u===60||u===null||ee(u)||Sn(u)?t(u):n(u)}function i(u){return u===null||u===40||u===91||ee(u)||Sn(u)?t(u):r(u)}function l(u){return be(u)?o(u):n(u)}function o(u){return u===59?(e.consume(u),r):be(u)?(e.consume(u),o):n(u)}}function hw(e,t,n){return r;function r(l){return e.consume(l),i}function i(l){return Ne(l)?n(l):t(l)}}function mh(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ee(e)}function gh(e){return!be(e)}function yh(e){return!(e===47||Ks(e))}function Ks(e){return e===43||e===45||e===46||e===95||Ne(e)}function qs(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const mw={tokenize:Cw,partial:!0};function gw(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:vw,continuation:{tokenize:ww},exit:Sw}},text:{91:{name:"gfmFootnoteCall",tokenize:kw},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:yw,resolveTo:xw}}}}function yw(e,t,n){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return u;function u(s){if(!o||!o._balanced)return n(s);const a=pt(r.sliceSerialize({start:o.end,end:r.now()}));return a.codePointAt(0)!==94||!l.includes(a.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function xw(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function kw(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return u;function u(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",a)}function a(c){if(l>999||c===93&&!o||c===null||c===91||ee(c))return n(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(pt(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ee(c)||(o=!0),l++,e.consume(c),c===92?f:a}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,a):a(c)}}function vw(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,u;return s;function s(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),a}function a(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(g)}function f(g){if(o>999||g===93&&!u||g===null||g===91||ee(g))return n(g);if(g===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return l=pt(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ee(g)||(u=!0),o++,e.consume(g),g===92?c:f}function c(g){return g===91||g===92||g===93?(e.consume(g),o++,f):f(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(l)||i.push(l),q(e,d,"gfmFootnoteDefinitionWhitespace")):n(g)}function d(g){return t(g)}}function ww(e,t,n){return e.check(ti,t,e.attempt(mw,t,n))}function Sw(e){e.exit("gfmFootnoteDefinition")}function Cw(e,t,n){const r=this;return q(e,i,"gfmFootnoteDefinitionIndent",5);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(l):n(l)}}function Ew(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,u){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let a=s;for(;a--;)if(o[a][0]==="exit"&&o[a][1].type==="strikethroughSequenceTemporary"&&o[a][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[a][1].end.offset-o[a][1].start.offset){o[s][1].type="strikethroughSequence",o[a][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[a][1].start),end:Object.assign({},o[s][1].end)},c={type:"strikethroughText",start:Object.assign({},o[a][1].end),end:Object.assign({},o[s][1].start)},p=[["enter",f,u],["enter",o[a][1],u],["exit",o[a][1],u],["enter",c,u]],d=u.parser.constructs.insideSpan.null;d&&Xe(p,p.length,0,Il(d,o.slice(a+1,s),u)),Xe(p,p.length,0,[["exit",c,u],["enter",o[s][1],u],["exit",o[s][1],u],["exit",f,u]]),Xe(o,a-1,s-a+3,p),s=a+p.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function l(o,u,s){const a=this.previous,f=this.events;let c=0;return p;function p(g){return a===126&&f[f.length-1][1].type!=="characterEscape"?s(g):(o.enter("strikethroughSequenceTemporary"),d(g))}function d(g){const k=rr(a);if(g===126)return c>1?s(g):(o.consume(g),c++,d);if(c<2&&!n)return s(g);const E=o.exit("strikethroughSequenceTemporary"),h=rr(g);return E._open=!h||h===2&&!!k,E._close=!k||k===2&&!!h,u(g)}}}class zw{constructor(){this.map=[]}add(t,n,r){Tw(this,t,n,r)}consume(t){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const l of i)t.push(l);i=r.pop()}this.map.length=0}}function Tw(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Pw(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function _w(){return{flow:{null:{name:"table",tokenize:Iw,resolveAll:Nw}}}}function Iw(e,t,n){const r=this;let i=0,l=0,o;return u;function u(S){let R=r.events.length-1;for(;R>-1;){const F=r.events[R][1].type;if(F==="lineEnding"||F==="linePrefix")R--;else break}const M=R>-1?r.events[R][1].type:null,U=M==="tableHead"||M==="tableRow"?w:s;return U===w&&r.parser.lazy[r.now().line]?n(S):U(S)}function s(S){return e.enter("tableHead"),e.enter("tableRow"),a(S)}function a(S){return S===124||(o=!0,l+=1),f(S)}function f(S){return S===null?n(S):j(S)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),d):n(S):Y(S)?q(e,f,"whitespace")(S):(l+=1,o&&(o=!1,i+=1),S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(S)))}function c(S){return S===null||S===124||ee(S)?(e.exit("data"),f(S)):(e.consume(S),S===92?p:c)}function p(S){return S===92||S===124?(e.consume(S),c):c(S)}function d(S){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(S):(e.enter("tableDelimiterRow"),o=!1,Y(S)?q(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):g(S))}function g(S){return S===45||S===58?E(S):S===124?(o=!0,e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),k):T(S)}function k(S){return Y(S)?q(e,E,"whitespace")(S):E(S)}function E(S){return S===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),h):S===45?(l+=1,h(S)):S===null||j(S)?C(S):T(S)}function h(S){return S===45?(e.enter("tableDelimiterFiller"),m(S)):T(S)}function m(S){return S===45?(e.consume(S),m):S===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(S),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(S))}function y(S){return Y(S)?q(e,C,"whitespace")(S):C(S)}function C(S){return S===124?g(S):S===null||j(S)?!o||i!==l?T(S):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(S)):T(S)}function T(S){return n(S)}function w(S){return e.enter("tableRow"),_(S)}function _(S){return S===124?(e.enter("tableCellDivider"),e.consume(S),e.exit("tableCellDivider"),_):S===null||j(S)?(e.exit("tableRow"),t(S)):Y(S)?q(e,_,"whitespace")(S):(e.enter("data"),L(S))}function L(S){return S===null||S===124||ee(S)?(e.exit("data"),_(S)):(e.consume(S),S===92?O:L)}function O(S){return S===92||S===124?(e.consume(S),L):L(S)}}function Nw(e,t){let n=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],u=!1,s=0,a,f,c;const p=new zw;for(;++n<e.length;){const d=e[n],g=d[1];d[0]==="enter"?g.type==="tableHead"?(u=!1,s!==0&&(xh(p,t,s,a,f),f=void 0,s=0),a={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",a,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,c=void 0,l=[0,0,0,0],o=[0,n+1,0,0],u&&(u=!1,f={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",f,t]])),i=g.type==="tableDelimiterRow"?2:f?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],c=Ul(p,t,l,i,void 0,c),l=[0,0,0,0]),o[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],c=Ul(p,t,l,i,void 0,c)),l=o,o=[l[1],n,0,0])):g.type==="tableHead"?(u=!0,s=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(s=n,l[1]!==0?(o[0]=o[1],c=Ul(p,t,l,i,n,c)):o[1]!==0&&(c=Ul(p,t,o,i,n,c)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(s!==0&&xh(p,t,s,a,f),p.consume(t.events),n=-1;++n<t.events.length;){const d=t.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=Pw(t.events,n))}return e}function Ul(e,t,n,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(l.end=Object.assign({},lr(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const s=lr(t.events,n[1]);if(l={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const a=lr(t.events,n[2]),f=lr(t.events,n[3]),c={type:u,start:Object.assign({},a),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const p=t.events[n[2]],d=t.events[n[3]];if(p[1].end=Object.assign({},d[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,k=n[3]-n[2]-1;e.add(g,k,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(l.end=Object.assign({},lr(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function xh(e,t,n,r,i){const l=[],o=lr(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function lr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Lw={name:"tasklistCheck",tokenize:Dw};function Aw(){return{text:{91:Lw}}}function Dw(e,t,n){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return ee(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):n(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(s)}function u(s){return j(s)?t(s):Y(s)?e.check({tokenize:Rw},t,n)(s):n(s)}}function Rw(e,t,n){return q(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function bw(e){return Qp([ow(),gw(),Ew(e),_w(),Aw()])}const Fw={};function kh(e){const t=this,n=e||Fw,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(bw(n)),l.push(nw()),o.push(rw(n))}function Mw(e){return e.type==="dynamic-tool"||typeof e.type=="string"&&e.type.startsWith("tool-")}function Ow({message:e}){var t,n;if(e.role==="user"){const r=(t=e.parts)==null?void 0:t.find(i=>i.type==="text");return I.jsxs("div",{className:"text-sm",children:[I.jsx("span",{className:"text-xs text-zinc-500 block mb-1",children:"Test Plan"}),I.jsx("div",{className:"text-zinc-200 prose prose-invert prose-sm max-w-none",children:I.jsx($d,{remarkPlugins:[kh],children:(r==null?void 0:r.text)||""})})]})}return I.jsx("div",{className:"text-sm space-y-2",children:(n=e.parts)==null?void 0:n.map((r,i)=>{var l,o;if(r.type==="text"&&r.text)return((o=(l=r.providerMetadata)==null?void 0:l.anthropic)==null?void 0:o.type)==="compaction"?null:I.jsxs("div",{children:[I.jsx("span",{className:"text-xs text-zinc-500 block mb-1",children:"Agent"}),I.jsx("div",{className:"text-zinc-300 prose prose-invert prose-sm max-w-none",children:I.jsx($d,{remarkPlugins:[kh],children:r.text})})]},i);if(Mw(r)){const u=r.toolName||(typeof r.type=="string"?r.type.replace(/^tool-/,""):"");return u==="todos"||u==="report_result"?null:I.jsx(jw,{part:r},i)}return null})})}function jw({part:e}){const[t,n]=V.useState(!1),r=e.input||{},i=e.output,l=e.state||"input-available",o=l==="input-streaming"||l==="input-available",u=e.toolName||(typeof e.type=="string"?e.type.replace(/^tool-/,""):""),s=l==="input-streaming"?"":u==="browser"?(()=>{const a=(r.actions||[]).map(f=>{switch(f.action){case"navigate":return`navigate ${f.url||""}`;case"mouse":return`mouse ${(f.mouseActions||[]).map(p=>p.action==="wait"?`wait ${p.ms}ms`:`${p.action} ${p.ref||`${p.x},${p.y}`}`).join(" → ")}`;case"type":return`type "${(f.text||"").slice(0,40)}"`;case"press":return`press ${f.key||""}`;case"tabs":return`tabs ${f.tabAction||""}`;default:return f.action||""}});return r.observe&&a.push(r.observe),a.join(", ")})():r.command||(Object.keys(r).length>0?JSON.stringify(r):"");return I.jsxs("div",{className:"text-sm",children:[I.jsxs("button",{onClick:()=>n(!t),className:"flex items-center gap-2 text-xs px-2 py-1.5 bg-zinc-900 border border-zinc-800 rounded-lg hover:border-zinc-700 transition-colors w-full text-left min-w-0 overflow-hidden",children:[o?I.jsx("span",{className:"inline-block w-2 h-2 bg-amber-500 rounded-full shrink-0"}):I.jsx("span",{className:"text-green-500 shrink-0",children:"✓"}),I.jsx("span",{className:"text-zinc-400 font-mono truncate",children:s}),I.jsx("span",{className:`ml-auto transition-transform text-zinc-600 shrink-0 ${t?"rotate-90":""}`,children:"▶"})]}),t&&I.jsxs("pre",{className:"mt-1 px-3 py-2 bg-zinc-900/50 rounded-lg border border-zinc-800 text-xs whitespace-pre-wrap break-all max-h-60 overflow-y-auto",children:[s&&I.jsxs(I.Fragment,{children:[I.jsxs("span",{className:"text-zinc-300 select-all",children:["$ ",s]}),`
71
+ `]}),i!=null&&(()=>{if(u==="browser"&&typeof i=="string")try{const a=JSON.parse(i);if(a.textOutput!==void 0)return I.jsx("span",{className:"text-zinc-500",children:a.textOutput})}catch{}return I.jsx("span",{className:"text-zinc-500",children:typeof i=="string"?i:JSON.stringify(i,null,2)})})()]})]})}function Bw({messages:e,currentTime:t}){const n=V.useRef(null),r=V.useRef(null),i=V.useMemo(()=>{const o=[];for(const u of e){if(u._ts&&u._ts>t)break;if(!u.parts){o.push(u);continue}const s=u.parts.filter(a=>!a._ts||a._ts<=t);s.length>0&&o.push({...u,parts:s})}return o},[e,t]),l=V.useRef(0);return V.useEffect(()=>{var u;const o=i.reduce((s,a)=>{var f;return s+(((f=a.parts)==null?void 0:f.length)||1)},0);o>l.current&&(l.current=o,(u=r.current)==null||u.scrollIntoView({behavior:"smooth"}))},[i]),I.jsxs("div",{ref:n,className:"flex-1 overflow-y-auto overflow-x-hidden px-3 md:px-4 py-4 space-y-3 break-words",children:[i.map((o,u)=>I.jsx(Ow,{message:o},o.id||u)),i.length===0&&I.jsx("div",{className:"text-sm text-zinc-600",children:"No messages"}),I.jsx("div",{ref:r})]})}const Uw=[1,2,4,8];function $w({startTime:e,endTime:t,currentTime:n,clips:r,playing:i,speed:l,autoSpeed:o,onSeek:u,onTogglePlay:s,onSetSpeed:a,onSetAutoSpeed:f,formatTime:c,elapsed:p,duration:d}){const g=V.useRef(null),k=V.useCallback(y=>{const C=g.current;if(!C)return;const T=C.getBoundingClientRect(),w=Math.max(0,Math.min(1,(y.clientX-T.left)/T.width));u(e+w*d)},[e,d,u]),E=V.useCallback(y=>{y.buttons===1&&k(y)},[k]),h=V.useCallback(y=>{const C=g.current;if(!C||!y.touches[0])return;const T=C.getBoundingClientRect(),w=Math.max(0,Math.min(1,(y.touches[0].clientX-T.left)/T.width));u(e+w*d)},[e,d,u]),m=d>0?(n-e)/d*100:0;return I.jsxs("div",{className:"border-t border-zinc-800 bg-zinc-900 px-3 md:px-4 py-2 md:py-3 shrink-0",children:[I.jsxs("div",{ref:g,className:"relative h-6 mb-2 cursor-pointer rounded overflow-hidden bg-zinc-800",onClick:k,onMouseMove:E,onTouchStart:h,onTouchMove:h,children:[r.map((y,C)=>{const T=d>0?(y.startTime-e)/d*100:0,w=d>0?(y.endTime-y.startTime)/d*100:0;return I.jsx("div",{className:"absolute top-0 bottom-0 bg-blue-900/60",style:{left:`${T}%`,width:`${w}%`}},C)}),I.jsx("div",{className:"absolute top-0 bottom-0 bg-blue-600/30 pointer-events-none",style:{width:`${m}%`}}),I.jsx("div",{className:"absolute top-0 bottom-0 w-0.5 bg-blue-400 pointer-events-none",style:{left:`${m}%`}})]}),I.jsxs("div",{className:"flex items-center gap-2 md:gap-3",children:[I.jsx("button",{onClick:s,className:"text-zinc-300 hover:text-white transition-colors text-sm px-3 py-2 md:px-2 md:py-1 rounded border border-zinc-700 hover:border-zinc-500",children:i?"⏸":"▶"}),I.jsxs("span",{className:"text-xs text-zinc-400 font-mono tabular-nums",children:[c(p)," / ",c(d)]}),I.jsx("div",{className:"flex-1"}),I.jsx("button",{onClick:()=>f(!o),className:`text-xs px-2 py-1 rounded border transition-colors ${o?"border-blue-600 text-blue-400 bg-blue-950/30":"border-zinc-700 text-zinc-500 hover:text-zinc-400"}`,children:"Auto"}),I.jsx("div",{className:"flex gap-1",children:Uw.map(y=>I.jsxs("button",{onClick:()=>a(y),className:`text-xs px-2 py-1 rounded border transition-colors ${l===y?"border-zinc-500 text-zinc-200 bg-zinc-800":"border-zinc-700 text-zinc-500 hover:text-zinc-400"}`,children:[y,"x"]},y))})]})]})}function Hw({data:e}){const t=e.focusAgentId,[n,r]=V.useState(null),[i,l]=V.useState(e.startTime),[o,u]=V.useState(!1),[s,a]=V.useState(1),[f,c]=V.useState(!0),[p,d]=V.useState("video"),g=V.useRef(0),k=V.useRef(0),E=e.endTime-e.startTime,h=V.useMemo(()=>e.clips.filter(F=>F.agentId===t),[e.clips,t]),m=V.useMemo(()=>[...new Set(h.map(F=>F.tabId))],[h]),y=V.useMemo(()=>n!==null?h.filter(F=>F.tabId===n):h,[h,n]);V.useEffect(()=>{m.length>0&&n===null&&r(m[0])},[m.length]);const T=!y.find(F=>i>=F.startTime&&i<=F.endTime),w=f&&T?Math.max(s,4):s;V.useEffect(()=>{if(!o){cancelAnimationFrame(g.current);return}k.current=performance.now();const F=()=>{const $=performance.now(),ae=($-k.current)*w;k.current=$,l(oe=>{const A=oe+ae;return A>=e.endTime?(u(!1),e.endTime):A}),g.current=requestAnimationFrame(F)};return g.current=requestAnimationFrame(F),()=>cancelAnimationFrame(g.current)},[o,w,e.endTime]);const _=V.useCallback(F=>{l(Math.max(e.startTime,Math.min(e.endTime,F)))},[e.startTime,e.endTime]),L=V.useCallback(()=>{u(F=>(F||l($=>$>=e.endTime?e.startTime:$),!F))},[e.endTime,e.startTime]);V.useEffect(()=>{const F=$=>{$.code==="Space"&&($.preventDefault(),L())};return window.addEventListener("keydown",F),()=>window.removeEventListener("keydown",F)},[L]);const O=F=>{const $=Math.floor(F/1e3),ae=Math.floor($/60),oe=$%60;return`${ae}:${oe.toString().padStart(2,"0")}`},S=V.useMemo(()=>{for(let F=y.length-1;F>=0;F--)if(y[F].startTime<=i&&y[F].url)return y[F].url;return""},[y,Math.floor(i/500)]),R=i-e.startTime,M=e.agents.length>1,U=e.agents.find(F=>F.id===t);return I.jsxs("div",{className:"flex flex-col h-screen overflow-hidden",children:[M&&I.jsx("div",{className:"md:hidden flex items-center gap-2 px-3 py-2 bg-zinc-900 border-b border-zinc-800 overflow-x-auto",children:e.agents.map(F=>I.jsxs("a",{href:e.agentFiles[F.id]||"#",className:`text-sm px-3 py-2 rounded border whitespace-nowrap transition-colors no-underline ${F.id===t?"border-zinc-500 text-zinc-200 bg-zinc-800":"border-zinc-700 text-zinc-500"}`,children:[F.result==="pass"?"✓ ":F.result==="fail"?"✗ ":"",F.name]},F.id))}),I.jsxs("div",{className:"md:hidden flex border-b border-zinc-800 bg-zinc-900",children:[I.jsx("button",{onClick:()=>d("video"),className:`flex-1 text-sm py-3 text-center transition-colors ${p==="video"?"text-zinc-200 border-b-2 border-blue-500":"text-zinc-500"}`,children:"Browser"}),I.jsxs("button",{onClick:()=>d("activity"),className:`flex-1 text-sm py-3 text-center transition-colors ${p==="activity"?"text-zinc-200 border-b-2 border-blue-500":"text-zinc-500"}`,children:["Activity",(U==null?void 0:U.result)&&I.jsx("span",{className:`ml-1.5 ${U.result==="pass"?"text-green-400":"text-red-400"}`,children:U.result==="pass"?"PASS":"FAIL"})]})]}),I.jsxs("div",{className:"flex flex-1 min-h-0",children:[M&&I.jsx("div",{className:"hidden md:block",children:I.jsx(Zg,{agents:e.agents,activeAgentId:t,agentFiles:e.agentFiles})}),I.jsxs("div",{className:`flex-1 flex flex-col min-w-0 md:border-r border-zinc-800 ${p!=="video"?"hidden md:flex":""}`,children:[m.length>1&&I.jsx(ey,{tabIds:m,activeTabId:n,onSelectTab:r}),I.jsx("div",{className:"flex items-center gap-2 px-3 py-2 bg-zinc-900 border-b border-zinc-800",children:I.jsx("div",{className:"flex-1 px-3 py-1.5 bg-zinc-800 border border-zinc-700 rounded-lg text-xs text-zinc-400 truncate",children:S||"about:blank"})}),I.jsx("div",{className:"flex-1 min-h-0 relative",children:I.jsx(ty,{clips:y,currentTime:i,playing:o,speed:w})}),I.jsx(ny,{entries:e.consoleLogs[t]||[],currentTime:i})]}),I.jsxs("div",{className:`md:w-[420px] flex flex-col h-full md:shrink-0 min-w-0 overflow-hidden ${p!=="activity"?"hidden md:flex":"flex-1"}`,children:[I.jsxs("div",{className:"hidden md:flex items-center px-4 py-3 border-b border-zinc-800",children:[I.jsx("h2",{className:"text-sm font-medium text-zinc-300",children:(U==null?void 0:U.name)||"Activity"}),I.jsx("div",{className:"flex-1"}),(U==null?void 0:U.result)&&I.jsx("span",{className:`text-xs font-medium px-2 py-0.5 rounded ${U.result==="pass"?"bg-green-950/50 text-green-400":"bg-red-950/50 text-red-400"}`,children:U.result==="pass"?"PASSED":"FAILED"})]}),I.jsx(Bw,{messages:e.messages[t]||[],timeline:e.timeline.filter(F=>F.agentId===t),currentTime:i,startTime:e.startTime})]})]}),I.jsx($w,{startTime:e.startTime,endTime:e.endTime,currentTime:i,clips:y,playing:o,speed:s,autoSpeed:f,onSeek:_,onTogglePlay:L,onSetSpeed:a,onSetAutoSpeed:c,formatTime:O,elapsed:R,duration:E})]})}const vh=window.__REPLAY_DATA__;vh?ql.createRoot(document.getElementById("root")).render(I.jsx(Uh.StrictMode,{children:I.jsx(Hw,{data:vh})})):document.getElementById("root").innerHTML='<div style="color:#999;padding:40px;font-family:sans-serif">No replay data found.</div>'})();