@mitodl/smoot-design 3.4.0 → 3.5.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 (30) hide show
  1. package/dist/bundles/remoteAiChatDrawer.es.js +13741 -12492
  2. package/dist/bundles/remoteAiChatDrawer.umd.js +114 -41
  3. package/dist/cjs/bundles/RemoteAiChatDrawer/RemoteAiChatDrawer.stories.js +6 -0
  4. package/dist/cjs/components/AiChat/AiChat.js +36 -33
  5. package/dist/cjs/components/AiChat/AiChat.stories.d.ts +4 -0
  6. package/dist/cjs/components/AiChat/AiChat.stories.js +40 -14
  7. package/dist/cjs/components/AiChat/AiChat.test.js +25 -17
  8. package/dist/cjs/components/AiChat/test-utils/api.d.ts +2 -0
  9. package/dist/{esm/components/AiChat/story-utils.js → cjs/components/AiChat/test-utils/api.js} +77 -51
  10. package/dist/cjs/components/Alert/Alert.d.ts +15 -0
  11. package/dist/cjs/components/Alert/Alert.js +62 -0
  12. package/dist/cjs/components/Alert/Alert.stories.d.ts +8 -0
  13. package/dist/cjs/components/Alert/Alert.stories.js +53 -0
  14. package/dist/cjs/components/Input/Input.js +8 -6
  15. package/dist/esm/bundles/RemoteAiChatDrawer/RemoteAiChatDrawer.stories.js +6 -0
  16. package/dist/esm/components/AiChat/AiChat.js +36 -33
  17. package/dist/esm/components/AiChat/AiChat.stories.d.ts +4 -0
  18. package/dist/esm/components/AiChat/AiChat.stories.js +39 -13
  19. package/dist/esm/components/AiChat/AiChat.test.js +25 -17
  20. package/dist/esm/components/AiChat/test-utils/api.d.ts +2 -0
  21. package/dist/{cjs/components/AiChat/story-utils.js → esm/components/AiChat/test-utils/api.js} +74 -55
  22. package/dist/esm/components/Alert/Alert.d.ts +15 -0
  23. package/dist/esm/components/Alert/Alert.js +59 -0
  24. package/dist/esm/components/Alert/Alert.stories.d.ts +8 -0
  25. package/dist/esm/components/Alert/Alert.stories.js +50 -0
  26. package/dist/esm/components/Input/Input.js +8 -6
  27. package/dist/tsconfig.tsbuildinfo +1 -1
  28. package/package.json +9 -1
  29. package/dist/cjs/components/AiChat/story-utils.d.ts +0 -3
  30. package/dist/esm/components/AiChat/story-utils.d.ts +0 -3
@@ -1,4 +1,4 @@
1
- (function(Dl,Ba){typeof exports=="object"&&typeof module<"u"?Ba(exports):typeof define=="function"&&define.amd?define(["exports"],Ba):(Dl=typeof globalThis<"u"?globalThis:Dl||self,Ba(Dl.remoteAiChatDrawer={}))})(this,function(Dl){"use strict";function Ba(t,r){for(var a=0;a<r.length;a++){const i=r[a];if(typeof i!="string"&&!Array.isArray(i)){for(const u in i)if(u!=="default"&&!(u in t)){const s=Object.getOwnPropertyDescriptor(i,u);s&&Object.defineProperty(t,u,s.get?s:{enumerable:!0,get:()=>i[u]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function el(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ws={exports:{}},Oe={};/**
1
+ (function(En,fn){typeof exports=="object"&&typeof module<"u"?fn(exports):typeof define=="function"&&define.amd?define(["exports"],fn):(En=typeof globalThis<"u"?globalThis:En||self,fn(En.remoteAiChatDrawer={}))})(this,function(En){"use strict";var XO=Object.defineProperty;var QO=(En,fn,Cn)=>fn in En?XO(En,fn,{enumerable:!0,configurable:!0,writable:!0,value:Cn}):En[fn]=Cn;var Do=(En,fn,Cn)=>QO(En,typeof fn!="symbol"?fn+"":fn,Cn);function fn(e,r){for(var l=0;l<r.length;l++){const a=r[l];if(typeof a!="string"&&!Array.isArray(a)){for(const u in a)if(u!=="default"&&!(u in e)){const s=Object.getOwnPropertyDescriptor(a,u);s&&Object.defineProperty(e,u,s.get?s:{enumerable:!0,get:()=>a[u]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Cn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var js={exports:{}},_e={};/**
2
2
  * @license React
3
3
  * react.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Eh;function cS(){if(Eh)return Oe;Eh=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function x(v){return v===null||typeof v!="object"?null:(v=y&&v[y]||v["@@iterator"],typeof v=="function"?v:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,w={};function B(v,Z,ue){this.props=v,this.context=Z,this.refs=w,this.updater=ue||S}B.prototype.isReactComponent={},B.prototype.setState=function(v,Z){if(typeof v!="object"&&typeof v!="function"&&v!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,v,Z,"setState")},B.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function T(){}T.prototype=B.prototype;function N(v,Z,ue){this.props=v,this.context=Z,this.refs=w,this.updater=ue||S}var A=N.prototype=new T;A.constructor=N,O(A,B.prototype),A.isPureReactComponent=!0;var z=Array.isArray,R={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function I(v,Z,ue,k,ie,ye){return ue=ye.ref,{$$typeof:t,type:v,key:Z,ref:ue!==void 0?ue:null,props:ye}}function te(v,Z){return I(v.type,Z,void 0,void 0,void 0,v.props)}function G(v){return typeof v=="object"&&v!==null&&v.$$typeof===t}function E(v){var Z={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(ue){return Z[ue]})}var j=/\/+/g;function $(v,Z){return typeof v=="object"&&v!==null&&v.key!=null?E(""+v.key):Z.toString(36)}function P(){}function Q(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(P,P):(v.status="pending",v.then(function(Z){v.status==="pending"&&(v.status="fulfilled",v.value=Z)},function(Z){v.status==="pending"&&(v.status="rejected",v.reason=Z)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function ee(v,Z,ue,k,ie){var ye=typeof v;(ye==="undefined"||ye==="boolean")&&(v=null);var he=!1;if(v===null)he=!0;else switch(ye){case"bigint":case"string":case"number":he=!0;break;case"object":switch(v.$$typeof){case t:case r:he=!0;break;case g:return he=v._init,ee(he(v._payload),Z,ue,k,ie)}}if(he)return ie=ie(v),he=k===""?"."+$(v,0):k,z(ie)?(ue="",he!=null&&(ue=he.replace(j,"$&/")+"/"),ee(ie,Z,ue,"",function(Re){return Re})):ie!=null&&(G(ie)&&(ie=te(ie,ue+(ie.key==null||v&&v.key===ie.key?"":(""+ie.key).replace(j,"$&/")+"/")+he)),Z.push(ie)),1;he=0;var He=k===""?".":k+":";if(z(v))for(var xe=0;xe<v.length;xe++)k=v[xe],ye=He+$(k,xe),he+=ee(k,Z,ue,ye,ie);else if(xe=x(v),typeof xe=="function")for(v=xe.call(v),xe=0;!(k=v.next()).done;)k=k.value,ye=He+$(k,xe++),he+=ee(k,Z,ue,ye,ie);else if(ye==="object"){if(typeof v.then=="function")return ee(Q(v),Z,ue,k,ie);throw Z=String(v),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return he}function V(v,Z,ue){if(v==null)return v;var k=[],ie=0;return ee(v,k,"","",function(ye){return Z.call(ue,ye,ie++)}),k}function ne(v){if(v._status===-1){var Z=v._result;Z=Z(),Z.then(function(ue){(v._status===0||v._status===-1)&&(v._status=1,v._result=ue)},function(ue){(v._status===0||v._status===-1)&&(v._status=2,v._result=ue)}),v._status===-1&&(v._status=0,v._result=Z)}if(v._status===1)return v._result.default;throw v._result}var W=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)};function fe(){}return Oe.Children={map:V,forEach:function(v,Z,ue){V(v,function(){Z.apply(this,arguments)},ue)},count:function(v){var Z=0;return V(v,function(){Z++}),Z},toArray:function(v){return V(v,function(Z){return Z})||[]},only:function(v){if(!G(v))throw Error("React.Children.only expected to receive a single React element child.");return v}},Oe.Component=B,Oe.Fragment=a,Oe.Profiler=u,Oe.PureComponent=N,Oe.StrictMode=i,Oe.Suspense=m,Oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Oe.act=function(){throw Error("act(...) is not supported in production builds of React.")},Oe.cache=function(v){return function(){return v.apply(null,arguments)}},Oe.cloneElement=function(v,Z,ue){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var k=O({},v.props),ie=v.key,ye=void 0;if(Z!=null)for(he in Z.ref!==void 0&&(ye=void 0),Z.key!==void 0&&(ie=""+Z.key),Z)!M.call(Z,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&Z.ref===void 0||(k[he]=Z[he]);var he=arguments.length-2;if(he===1)k.children=ue;else if(1<he){for(var He=Array(he),xe=0;xe<he;xe++)He[xe]=arguments[xe+2];k.children=He}return I(v.type,ie,void 0,void 0,ye,k)},Oe.createContext=function(v){return v={$$typeof:f,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:s,_context:v},v},Oe.createElement=function(v,Z,ue){var k,ie={},ye=null;if(Z!=null)for(k in Z.key!==void 0&&(ye=""+Z.key),Z)M.call(Z,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(ie[k]=Z[k]);var he=arguments.length-2;if(he===1)ie.children=ue;else if(1<he){for(var He=Array(he),xe=0;xe<he;xe++)He[xe]=arguments[xe+2];ie.children=He}if(v&&v.defaultProps)for(k in he=v.defaultProps,he)ie[k]===void 0&&(ie[k]=he[k]);return I(v,ye,void 0,void 0,null,ie)},Oe.createRef=function(){return{current:null}},Oe.forwardRef=function(v){return{$$typeof:h,render:v}},Oe.isValidElement=G,Oe.lazy=function(v){return{$$typeof:g,_payload:{_status:-1,_result:v},_init:ne}},Oe.memo=function(v,Z){return{$$typeof:p,type:v,compare:Z===void 0?null:Z}},Oe.startTransition=function(v){var Z=R.T,ue={};R.T=ue;try{var k=v(),ie=R.S;ie!==null&&ie(ue,k),typeof k=="object"&&k!==null&&typeof k.then=="function"&&k.then(fe,W)}catch(ye){W(ye)}finally{R.T=Z}},Oe.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Oe.use=function(v){return R.H.use(v)},Oe.useActionState=function(v,Z,ue){return R.H.useActionState(v,Z,ue)},Oe.useCallback=function(v,Z){return R.H.useCallback(v,Z)},Oe.useContext=function(v){return R.H.useContext(v)},Oe.useDebugValue=function(){},Oe.useDeferredValue=function(v,Z){return R.H.useDeferredValue(v,Z)},Oe.useEffect=function(v,Z){return R.H.useEffect(v,Z)},Oe.useId=function(){return R.H.useId()},Oe.useImperativeHandle=function(v,Z,ue){return R.H.useImperativeHandle(v,Z,ue)},Oe.useInsertionEffect=function(v,Z){return R.H.useInsertionEffect(v,Z)},Oe.useLayoutEffect=function(v,Z){return R.H.useLayoutEffect(v,Z)},Oe.useMemo=function(v,Z){return R.H.useMemo(v,Z)},Oe.useOptimistic=function(v,Z){return R.H.useOptimistic(v,Z)},Oe.useReducer=function(v,Z,ue){return R.H.useReducer(v,Z,ue)},Oe.useRef=function(v){return R.H.useRef(v)},Oe.useState=function(v){return R.H.useState(v)},Oe.useSyncExternalStore=function(v,Z,ue){return R.H.useSyncExternalStore(v,Z,ue)},Oe.useTransition=function(){return R.H.useTransition()},Oe.version="19.0.0",Oe}var Ch;function Co(){return Ch||(Ch=1,ws.exports=cS()),ws.exports}var D=Co();const bt=el(D),Th=Ba({__proto__:null,default:bt},[D]);var As={exports:{}},La={},ks={exports:{}},Rs={};/**
9
+ */var Up;function DS(){if(Up)return _e;Up=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function v(x){return x===null||typeof x!="object"?null:(x=y&&x[y]||x["@@iterator"],typeof x=="function"?x:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,T={};function N(x,K,se){this.props=x,this.context=K,this.refs=T,this.updater=se||S}N.prototype.isReactComponent={},N.prototype.setState=function(x,K){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,K,"setState")},N.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function w(){}w.prototype=N.prototype;function B(x,K,se){this.props=x,this.context=K,this.refs=T,this.updater=se||S}var k=B.prototype=new w;k.constructor=B,R(k,N.prototype),k.isPureReactComponent=!0;var z=Array.isArray,A={H:null,A:null,T:null,S:null},_=Object.prototype.hasOwnProperty;function H(x,K,se,O,ie,ye){return se=ye.ref,{$$typeof:e,type:x,key:K,ref:se!==void 0?se:null,props:ye}}function ne(x,K){return H(x.type,K,void 0,void 0,void 0,x.props)}function V(x){return typeof x=="object"&&x!==null&&x.$$typeof===e}function E(x){var K={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(se){return K[se]})}var I=/\/+/g;function Y(x,K){return typeof x=="object"&&x!==null&&x.key!=null?E(""+x.key):K.toString(36)}function F(){}function P(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(F,F):(x.status="pending",x.then(function(K){x.status==="pending"&&(x.status="fulfilled",x.value=K)},function(K){x.status==="pending"&&(x.status="rejected",x.reason=K)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function ee(x,K,se,O,ie){var ye=typeof x;(ye==="undefined"||ye==="boolean")&&(x=null);var he=!1;if(x===null)he=!0;else switch(ye){case"bigint":case"string":case"number":he=!0;break;case"object":switch(x.$$typeof){case e:case r:he=!0;break;case g:return he=x._init,ee(he(x._payload),K,se,O,ie)}}if(he)return ie=ie(x),he=O===""?"."+Y(x,0):O,z(ie)?(se="",he!=null&&(se=he.replace(I,"$&/")+"/"),ee(ie,K,se,"",function(ke){return ke})):ie!=null&&(V(ie)&&(ie=ne(ie,se+(ie.key==null||x&&x.key===ie.key?"":(""+ie.key).replace(I,"$&/")+"/")+he)),K.push(ie)),1;he=0;var Be=O===""?".":O+":";if(z(x))for(var Ce=0;Ce<x.length;Ce++)O=x[Ce],ye=Be+Y(O,Ce),he+=ee(O,K,se,ye,ie);else if(Ce=v(x),typeof Ce=="function")for(x=Ce.call(x),Ce=0;!(O=x.next()).done;)O=O.value,ye=Be+Y(O,Ce++),he+=ee(O,K,se,ye,ie);else if(ye==="object"){if(typeof x.then=="function")return ee(P(x),K,se,O,ie);throw K=String(x),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return he}function $(x,K,se){if(x==null)return x;var O=[],ie=0;return ee(x,O,"","",function(ye){return K.call(se,ye,ie++)}),O}function Z(x){if(x._status===-1){var K=x._result;K=K(),K.then(function(se){(x._status===0||x._status===-1)&&(x._status=1,x._result=se)},function(se){(x._status===0||x._status===-1)&&(x._status=2,x._result=se)}),x._status===-1&&(x._status=0,x._result=K)}if(x._status===1)return x._result.default;throw x._result}var Q=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)};function ue(){}return _e.Children={map:$,forEach:function(x,K,se){$(x,function(){K.apply(this,arguments)},se)},count:function(x){var K=0;return $(x,function(){K++}),K},toArray:function(x){return $(x,function(K){return K})||[]},only:function(x){if(!V(x))throw Error("React.Children.only expected to receive a single React element child.");return x}},_e.Component=N,_e.Fragment=l,_e.Profiler=u,_e.PureComponent=B,_e.StrictMode=a,_e.Suspense=m,_e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,_e.act=function(){throw Error("act(...) is not supported in production builds of React.")},_e.cache=function(x){return function(){return x.apply(null,arguments)}},_e.cloneElement=function(x,K,se){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var O=R({},x.props),ie=x.key,ye=void 0;if(K!=null)for(he in K.ref!==void 0&&(ye=void 0),K.key!==void 0&&(ie=""+K.key),K)!_.call(K,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&K.ref===void 0||(O[he]=K[he]);var he=arguments.length-2;if(he===1)O.children=se;else if(1<he){for(var Be=Array(he),Ce=0;Ce<he;Ce++)Be[Ce]=arguments[Ce+2];O.children=Be}return H(x.type,ie,void 0,void 0,ye,O)},_e.createContext=function(x){return x={$$typeof:f,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:s,_context:x},x},_e.createElement=function(x,K,se){var O,ie={},ye=null;if(K!=null)for(O in K.key!==void 0&&(ye=""+K.key),K)_.call(K,O)&&O!=="key"&&O!=="__self"&&O!=="__source"&&(ie[O]=K[O]);var he=arguments.length-2;if(he===1)ie.children=se;else if(1<he){for(var Be=Array(he),Ce=0;Ce<he;Ce++)Be[Ce]=arguments[Ce+2];ie.children=Be}if(x&&x.defaultProps)for(O in he=x.defaultProps,he)ie[O]===void 0&&(ie[O]=he[O]);return H(x,ye,void 0,void 0,null,ie)},_e.createRef=function(){return{current:null}},_e.forwardRef=function(x){return{$$typeof:d,render:x}},_e.isValidElement=V,_e.lazy=function(x){return{$$typeof:g,_payload:{_status:-1,_result:x},_init:Z}},_e.memo=function(x,K){return{$$typeof:h,type:x,compare:K===void 0?null:K}},_e.startTransition=function(x){var K=A.T,se={};A.T=se;try{var O=x(),ie=A.S;ie!==null&&ie(se,O),typeof O=="object"&&O!==null&&typeof O.then=="function"&&O.then(ue,Q)}catch(ye){Q(ye)}finally{A.T=K}},_e.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},_e.use=function(x){return A.H.use(x)},_e.useActionState=function(x,K,se){return A.H.useActionState(x,K,se)},_e.useCallback=function(x,K){return A.H.useCallback(x,K)},_e.useContext=function(x){return A.H.useContext(x)},_e.useDebugValue=function(){},_e.useDeferredValue=function(x,K){return A.H.useDeferredValue(x,K)},_e.useEffect=function(x,K){return A.H.useEffect(x,K)},_e.useId=function(){return A.H.useId()},_e.useImperativeHandle=function(x,K,se){return A.H.useImperativeHandle(x,K,se)},_e.useInsertionEffect=function(x,K){return A.H.useInsertionEffect(x,K)},_e.useLayoutEffect=function(x,K){return A.H.useLayoutEffect(x,K)},_e.useMemo=function(x,K){return A.H.useMemo(x,K)},_e.useOptimistic=function(x,K){return A.H.useOptimistic(x,K)},_e.useReducer=function(x,K,se){return A.H.useReducer(x,K,se)},_e.useRef=function(x){return A.H.useRef(x)},_e.useState=function(x){return A.H.useState(x)},_e.useSyncExternalStore=function(x,K,se){return A.H.useSyncExternalStore(x,K,se)},_e.useTransition=function(){return A.H.useTransition()},_e.version="19.0.0",_e}var jp;function zo(){return jp||(jp=1,js.exports=DS()),js.exports}var M=zo();const ft=Cn(M),Hp=fn({__proto__:null,default:ft},[M]);var Hs={exports:{}},Vl={},Is={exports:{}},Vs={};/**
10
10
  * @license React
11
11
  * scheduler.production.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var wh;function fS(){return wh||(wh=1,function(t){function r(V,ne){var W=V.length;V.push(ne);e:for(;0<W;){var fe=W-1>>>1,v=V[fe];if(0<u(v,ne))V[fe]=ne,V[W]=v,W=fe;else break e}}function a(V){return V.length===0?null:V[0]}function i(V){if(V.length===0)return null;var ne=V[0],W=V.pop();if(W!==ne){V[0]=W;e:for(var fe=0,v=V.length,Z=v>>>1;fe<Z;){var ue=2*(fe+1)-1,k=V[ue],ie=ue+1,ye=V[ie];if(0>u(k,W))ie<v&&0>u(ye,k)?(V[fe]=ye,V[ie]=W,fe=ie):(V[fe]=k,V[ue]=W,fe=ue);else if(ie<v&&0>u(ye,W))V[fe]=ye,V[ie]=W,fe=ie;else break e}}return ne}function u(V,ne){var W=V.sortIndex-ne.sortIndex;return W!==0?W:V.id-ne.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var f=Date,h=f.now();t.unstable_now=function(){return f.now()-h}}var m=[],p=[],g=1,y=null,x=3,S=!1,O=!1,w=!1,B=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function A(V){for(var ne=a(p);ne!==null;){if(ne.callback===null)i(p);else if(ne.startTime<=V)i(p),ne.sortIndex=ne.expirationTime,r(m,ne);else break;ne=a(p)}}function z(V){if(w=!1,A(V),!O)if(a(m)!==null)O=!0,Q();else{var ne=a(p);ne!==null&&ee(z,ne.startTime-V)}}var R=!1,M=-1,I=5,te=-1;function G(){return!(t.unstable_now()-te<I)}function E(){if(R){var V=t.unstable_now();te=V;var ne=!0;try{e:{O=!1,w&&(w=!1,T(M),M=-1),S=!0;var W=x;try{t:{for(A(V),y=a(m);y!==null&&!(y.expirationTime>V&&G());){var fe=y.callback;if(typeof fe=="function"){y.callback=null,x=y.priorityLevel;var v=fe(y.expirationTime<=V);if(V=t.unstable_now(),typeof v=="function"){y.callback=v,A(V),ne=!0;break t}y===a(m)&&i(m),A(V)}else i(m);y=a(m)}if(y!==null)ne=!0;else{var Z=a(p);Z!==null&&ee(z,Z.startTime-V),ne=!1}}break e}finally{y=null,x=W,S=!1}ne=void 0}}finally{ne?j():R=!1}}}var j;if(typeof N=="function")j=function(){N(E)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,P=$.port2;$.port1.onmessage=E,j=function(){P.postMessage(null)}}else j=function(){B(E,0)};function Q(){R||(R=!0,j())}function ee(V,ne){M=B(function(){V(t.unstable_now())},ne)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(V){V.callback=null},t.unstable_continueExecution=function(){O||S||(O=!0,Q())},t.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<V?Math.floor(1e3/V):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_getFirstCallbackNode=function(){return a(m)},t.unstable_next=function(V){switch(x){case 1:case 2:case 3:var ne=3;break;default:ne=x}var W=x;x=ne;try{return V()}finally{x=W}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(V,ne){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var W=x;x=V;try{return ne()}finally{x=W}},t.unstable_scheduleCallback=function(V,ne,W){var fe=t.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?fe+W:fe):W=fe,V){case 1:var v=-1;break;case 2:v=250;break;case 5:v=1073741823;break;case 4:v=1e4;break;default:v=5e3}return v=W+v,V={id:g++,callback:ne,priorityLevel:V,startTime:W,expirationTime:v,sortIndex:-1},W>fe?(V.sortIndex=W,r(p,V),a(m)===null&&V===a(p)&&(w?(T(M),M=-1):w=!0,ee(z,W-fe))):(V.sortIndex=v,r(m,V),O||S||(O=!0,Q())),V},t.unstable_shouldYield=G,t.unstable_wrapCallback=function(V){var ne=x;return function(){var W=x;x=ne;try{return V.apply(this,arguments)}finally{x=W}}}}(Rs)),Rs}var Ah;function dS(){return Ah||(Ah=1,ks.exports=fS()),ks.exports}var Os={exports:{}},qt={};/**
17
+ */var Ip;function zS(){return Ip||(Ip=1,function(e){function r($,Z){var Q=$.length;$.push(Z);e:for(;0<Q;){var ue=Q-1>>>1,x=$[ue];if(0<u(x,Z))$[ue]=Z,$[Q]=x,Q=ue;else break e}}function l($){return $.length===0?null:$[0]}function a($){if($.length===0)return null;var Z=$[0],Q=$.pop();if(Q!==Z){$[0]=Q;e:for(var ue=0,x=$.length,K=x>>>1;ue<K;){var se=2*(ue+1)-1,O=$[se],ie=se+1,ye=$[ie];if(0>u(O,Q))ie<x&&0>u(ye,O)?($[ue]=ye,$[ie]=Q,ue=ie):($[ue]=O,$[se]=Q,ue=se);else if(ie<x&&0>u(ye,Q))$[ue]=ye,$[ie]=Q,ue=ie;else break e}}return Z}function u($,Z){var Q=$.sortIndex-Z.sortIndex;return Q!==0?Q:$.id-Z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var f=Date,d=f.now();e.unstable_now=function(){return f.now()-d}}var m=[],h=[],g=1,y=null,v=3,S=!1,R=!1,T=!1,N=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function k($){for(var Z=l(h);Z!==null;){if(Z.callback===null)a(h);else if(Z.startTime<=$)a(h),Z.sortIndex=Z.expirationTime,r(m,Z);else break;Z=l(h)}}function z($){if(T=!1,k($),!R)if(l(m)!==null)R=!0,P();else{var Z=l(h);Z!==null&&ee(z,Z.startTime-$)}}var A=!1,_=-1,H=5,ne=-1;function V(){return!(e.unstable_now()-ne<H)}function E(){if(A){var $=e.unstable_now();ne=$;var Z=!0;try{e:{R=!1,T&&(T=!1,w(_),_=-1),S=!0;var Q=v;try{t:{for(k($),y=l(m);y!==null&&!(y.expirationTime>$&&V());){var ue=y.callback;if(typeof ue=="function"){y.callback=null,v=y.priorityLevel;var x=ue(y.expirationTime<=$);if($=e.unstable_now(),typeof x=="function"){y.callback=x,k($),Z=!0;break t}y===l(m)&&a(m),k($)}else a(m);y=l(m)}if(y!==null)Z=!0;else{var K=l(h);K!==null&&ee(z,K.startTime-$),Z=!1}}break e}finally{y=null,v=Q,S=!1}Z=void 0}}finally{Z?I():A=!1}}}var I;if(typeof B=="function")I=function(){B(E)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,F=Y.port2;Y.port1.onmessage=E,I=function(){F.postMessage(null)}}else I=function(){N(E,0)};function P(){A||(A=!0,I())}function ee($,Z){_=N(function(){$(e.unstable_now())},Z)}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($){$.callback=null},e.unstable_continueExecution=function(){R||S||(R=!0,P())},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return l(m)},e.unstable_next=function($){switch(v){case 1:case 2:case 3:var Z=3;break;default:Z=v}var Q=v;v=Z;try{return $()}finally{v=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,Z){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var Q=v;v=$;try{return Z()}finally{v=Q}},e.unstable_scheduleCallback=function($,Z,Q){var ue=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ue+Q:ue):Q=ue,$){case 1:var x=-1;break;case 2:x=250;break;case 5:x=1073741823;break;case 4:x=1e4;break;default:x=5e3}return x=Q+x,$={id:g++,callback:Z,priorityLevel:$,startTime:Q,expirationTime:x,sortIndex:-1},Q>ue?($.sortIndex=Q,r(h,$),l(m)===null&&$===l(h)&&(T?(w(_),_=-1):T=!0,ee(z,Q-ue))):($.sortIndex=x,r(m,$),R||S||(R=!0,P())),$},e.unstable_shouldYield=V,e.unstable_wrapCallback=function($){var Z=v;return function(){var Q=v;v=Z;try{return $.apply(this,arguments)}finally{v=Q}}}}(Vs)),Vs}var Vp;function NS(){return Vp||(Vp=1,Is.exports=zS()),Is.exports}var qs={exports:{}},Ft={};/**
18
18
  * @license React
19
19
  * react-dom.production.js
20
20
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var kh;function hS(){if(kh)return qt;kh=1;var t=Co();function r(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var i={d:{f:a,r:function(){throw Error(r(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},u=Symbol.for("react.portal");function s(m,p,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:y==null?null:""+y,children:m,containerInfo:p,implementation:g}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,qt.createPortal=function(m,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return s(m,p,null,g)},qt.flushSync=function(m){var p=f.T,g=i.p;try{if(f.T=null,i.p=2,m)return m()}finally{f.T=p,i.p=g,i.d.f()}},qt.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(m,p))},qt.prefetchDNS=function(m){typeof m=="string"&&i.d.D(m)},qt.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var g=p.as,y=h(g,p.crossOrigin),x=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?i.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:x,fetchPriority:S}):g==="script"&&i.d.X(m,{crossOrigin:y,integrity:x,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},qt.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=h(p.as,p.crossOrigin);i.d.M(m,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(m)},qt.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,y=h(g,p.crossOrigin);i.d.L(m,g,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},qt.preloadModule=function(m,p){if(typeof m=="string")if(p){var g=h(p.as,p.crossOrigin);i.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(m)},qt.requestFormReset=function(m){i.d.r(m)},qt.unstable_batchedUpdates=function(m,p){return m(p)},qt.useFormState=function(m,p,g){return f.H.useFormState(m,p,g)},qt.useFormStatus=function(){return f.H.useHostTransitionStatus()},qt.version="19.0.0",qt}var Rh;function Oh(){if(Rh)return Os.exports;Rh=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Os.exports=hS(),Os.exports}/**
25
+ */var qp;function BS(){if(qp)return Ft;qp=1;var e=zo();function r(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var a={d:{f:l,r:function(){throw Error(r(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},u=Symbol.for("react.portal");function s(m,h,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:y==null?null:""+y,children:m,containerInfo:h,implementation:g}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Ft.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Ft.createPortal=function(m,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(r(299));return s(m,h,null,g)},Ft.flushSync=function(m){var h=f.T,g=a.p;try{if(f.T=null,a.p=2,m)return m()}finally{f.T=h,a.p=g,a.d.f()}},Ft.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,a.d.C(m,h))},Ft.prefetchDNS=function(m){typeof m=="string"&&a.d.D(m)},Ft.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var g=h.as,y=d(g,h.crossOrigin),v=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?a.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:v,fetchPriority:S}):g==="script"&&a.d.X(m,{crossOrigin:y,integrity:v,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Ft.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=d(h.as,h.crossOrigin);a.d.M(m,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&a.d.M(m)},Ft.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,y=d(g,h.crossOrigin);a.d.L(m,g,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Ft.preloadModule=function(m,h){if(typeof m=="string")if(h){var g=d(h.as,h.crossOrigin);a.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else a.d.m(m)},Ft.requestFormReset=function(m){a.d.r(m)},Ft.unstable_batchedUpdates=function(m,h){return m(h)},Ft.useFormState=function(m,h,g){return f.H.useFormState(m,h,g)},Ft.useFormStatus=function(){return f.H.useHostTransitionStatus()},Ft.version="19.0.0",Ft}var $p;function Gp(){if($p)return qs.exports;$p=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),qs.exports=BS(),qs.exports}/**
26
26
  * @license React
27
27
  * react-dom-client.production.js
28
28
  *
@@ -30,22 +30,22 @@
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 _h;function pS(){if(_h)return La;_h=1;var t=dS(),r=Co(),a=Oh();function i(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}var s=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),x=Symbol.for("react.consumer"),S=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),z=Symbol.for("react.memo_cache_sentinel"),R=Symbol.iterator;function M(e){return e===null||typeof e!="object"?null:(e=R&&e[R]||e["@@iterator"],typeof e=="function"?e:null)}var I=Symbol.for("react.client.reference");function te(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===I?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case m:return"Fragment";case h:return"Portal";case g:return"Profiler";case p:return"StrictMode";case w:return"Suspense";case B:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case S:return(e.displayName||"Context")+".Provider";case x:return(e._context.displayName||"Context")+".Consumer";case O:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case T:return n=e.displayName||null,n!==null?n:te(e.type)||"Memo";case N:n=e._payload,e=e._init;try{return te(e(n))}catch{}}return null}var G=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=Object.assign,j,$;function P(e){if(j===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);j=n&&n[1]||"",$=-1<l.stack.indexOf(`
34
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
35
- `+j+e+$}var Q=!1;function ee(e,n){if(!e||Q)return"";Q=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(K){var Y=K}Reflect.construct(e,[],ae)}else{try{ae.call()}catch(K){Y=K}e.call(ae.prototype)}}else{try{throw Error()}catch(K){Y=K}(ae=e())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(K){if(K&&Y&&typeof K.stack=="string")return[K.stack,Y.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=o.DetermineComponentFrameRoot(),b=d[0],C=d[1];if(b&&C){var _=b.split(`
33
+ */var Yp;function LS(){if(Yp)return Vl;Yp=1;var e=NS(),r=zo(),l=Gp();function a(t){var n="https://react.dev/errors/"+t;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}var s=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),y=Symbol.for("react.provider"),v=Symbol.for("react.consumer"),S=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),z=Symbol.for("react.memo_cache_sentinel"),A=Symbol.iterator;function _(t){return t===null||typeof t!="object"?null:(t=A&&t[A]||t["@@iterator"],typeof t=="function"?t:null)}var H=Symbol.for("react.client.reference");function ne(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===H?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case m:return"Fragment";case d:return"Portal";case g:return"Profiler";case h:return"StrictMode";case T:return"Suspense";case N:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case S:return(t.displayName||"Context")+".Provider";case v:return(t._context.displayName||"Context")+".Consumer";case R:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case w:return n=t.displayName||null,n!==null?n:ne(t.type)||"Memo";case B:n=t._payload,t=t._init;try{return ne(t(n))}catch{}}return null}var V=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,E=Object.assign,I,Y;function F(t){if(I===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);I=n&&n[1]||"",Y=-1<i.stack.indexOf(`
34
+ at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
35
+ `+I+t+Y}var P=!1;function ee(t,n){if(!t||P)return"";P=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(J){var G=J}Reflect.construct(t,[],ae)}else{try{ae.call()}catch(J){G=J}t.call(ae.prototype)}}else{try{throw Error()}catch(J){G=J}(ae=t())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(J){if(J&&G&&typeof J.stack=="string")return[J.stack,G.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=o.DetermineComponentFrameRoot(),b=p[0],C=p[1];if(b&&C){var D=b.split(`
36
36
  `),U=C.split(`
37
- `);for(c=o=0;o<_.length&&!_[o].includes("DetermineComponentFrameRoot");)o++;for(;c<U.length&&!U[c].includes("DetermineComponentFrameRoot");)c++;if(o===_.length||c===U.length)for(o=_.length-1,c=U.length-1;1<=o&&0<=c&&_[o]!==U[c];)c--;for(;1<=o&&0<=c;o--,c--)if(_[o]!==U[c]){if(o!==1||c!==1)do if(o--,c--,0>c||_[o]!==U[c]){var J=`
38
- `+_[o].replace(" at new "," at ");return e.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",e.displayName)),J}while(1<=o&&0<=c);break}}}finally{Q=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?P(l):""}function V(e){switch(e.tag){case 26:case 27:case 5:return P(e.type);case 16:return P("Lazy");case 13:return P("Suspense");case 19:return P("SuspenseList");case 0:case 15:return e=ee(e.type,!1),e;case 11:return e=ee(e.type.render,!1),e;case 1:return e=ee(e.type,!0),e;default:return""}}function ne(e){try{var n="";do n+=V(e),e=e.return;while(e);return n}catch(l){return`
39
- Error generating stack: `+l.message+`
40
- `+l.stack}}function W(e){var n=e,l=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,n.flags&4098&&(l=n.return),e=n.return;while(e)}return n.tag===3?l:null}function fe(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function v(e){if(W(e)!==e)throw Error(i(188))}function Z(e){var n=e.alternate;if(!n){if(n=W(e),n===null)throw Error(i(188));return n!==e?null:e}for(var l=e,o=n;;){var c=l.return;if(c===null)break;var d=c.alternate;if(d===null){if(o=c.return,o!==null){l=o;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===l)return v(c),e;if(d===o)return v(c),n;d=d.sibling}throw Error(i(188))}if(l.return!==o.return)l=c,o=d;else{for(var b=!1,C=c.child;C;){if(C===l){b=!0,l=c,o=d;break}if(C===o){b=!0,o=c,l=d;break}C=C.sibling}if(!b){for(C=d.child;C;){if(C===l){b=!0,l=d,o=c;break}if(C===o){b=!0,o=d,l=c;break}C=C.sibling}if(!b)throw Error(i(189))}}if(l.alternate!==o)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?e:n}function ue(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=ue(e),n!==null)return n;e=e.sibling}return null}var k=Array.isArray,ie=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye={pending:!1,data:null,method:null,action:null},he=[],He=-1;function xe(e){return{current:e}}function Re(e){0>He||(e.current=he[He],he[He]=null,He--)}function de(e,n){He++,he[He]=e.current,e.current=n}var _e=xe(null),pe=xe(null),me=xe(null),se=xe(null);function Ee(e,n){switch(de(me,n),de(pe,e),de(_e,null),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)&&(n=n.namespaceURI)?Hb(n):0;break;default:if(e=e===8?n.parentNode:n,n=e.tagName,e=e.namespaceURI)e=Hb(e),n=jb(e,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}Re(_e),de(_e,n)}function Ye(){Re(_e),Re(pe),Re(me)}function je(e){e.memoizedState!==null&&de(se,e);var n=_e.current,l=jb(n,e.type);n!==l&&(de(pe,e),de(_e,l))}function De(e){pe.current===e&&(Re(_e),Re(pe)),se.current===e&&(Re(se),bo._currentValue=ye)}var it=Object.prototype.hasOwnProperty,vt=t.unstable_scheduleCallback,fn=t.unstable_cancelCallback,Bn=t.unstable_shouldYield,dn=t.unstable_requestPaint,Ne=t.unstable_now,Dt=t.unstable_getCurrentPriorityLevel,F=t.unstable_ImmediatePriority,le=t.unstable_UserBlockingPriority,ce=t.unstable_NormalPriority,we=t.unstable_LowPriority,Ve=t.unstable_IdlePriority,ze=t.log,tn=t.unstable_setDisableYieldValue,Nt=null,Ot=null;function sl(e){if(Ot&&typeof Ot.onCommitFiberRoot=="function")try{Ot.onCommitFiberRoot(Nt,e,void 0,(e.current.flags&128)===128)}catch{}}function pt(e){if(typeof ze=="function"&&tn(e),Ot&&typeof Ot.setStrictMode=="function")try{Ot.setStrictMode(Nt,e)}catch{}}var wt=Math.clz32?Math.clz32:wR,Ln=Math.log,TR=Math.LN2;function wR(e){return e>>>=0,e===0?32:31-(Ln(e)/TR|0)|0}var mu=128,gu=4194304;function cl(e){var n=e&42;if(n!==0)return n;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:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function yu(e,n){var l=e.pendingLanes;if(l===0)return 0;var o=0,c=e.suspendedLanes,d=e.pingedLanes,b=e.warmLanes;e=e.finishedLanes!==0;var C=l&134217727;return C!==0?(l=C&~c,l!==0?o=cl(l):(d&=C,d!==0?o=cl(d):e||(b=C&~b,b!==0&&(o=cl(b))))):(C=l&~c,C!==0?o=cl(C):d!==0?o=cl(d):e||(b=l&~b,b!==0&&(o=cl(b)))),o===0?0:n!==0&&n!==o&&!(n&c)&&(c=o&-o,b=n&-n,c>=b||c===32&&(b&4194176)!==0)?n:o}function ki(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function AR(e,n){switch(e){case 1:case 2:case 4:case 8:return n+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _y(){var e=mu;return mu<<=1,!(mu&4194176)&&(mu=128),e}function My(){var e=gu;return gu<<=1,!(gu&62914560)&&(gu=4194304),e}function gf(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function Ri(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function kR(e,n,l,o,c,d){var b=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var C=e.entanglements,_=e.expirationTimes,U=e.hiddenUpdates;for(l=b&~l;0<l;){var J=31-wt(l),ae=1<<J;C[J]=0,_[J]=-1;var Y=U[J];if(Y!==null)for(U[J]=null,J=0;J<Y.length;J++){var K=Y[J];K!==null&&(K.lane&=-536870913)}l&=~ae}o!==0&&Dy(e,o,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(b&~n))}function Dy(e,n,l){e.pendingLanes|=n,e.suspendedLanes&=~n;var o=31-wt(n);e.entangledLanes|=n,e.entanglements[o]=e.entanglements[o]|1073741824|l&4194218}function Ny(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var o=31-wt(l),c=1<<o;c&n|e[o]&n&&(e[o]|=n),l&=~c}}function zy(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function By(){var e=ie.p;return e!==0?e:(e=window.event,e===void 0?32:rS(e.type))}function RR(e,n){var l=ie.p;try{return ie.p=e,n()}finally{ie.p=l}}var Dr=Math.random().toString(36).slice(2),$t="__reactFiber$"+Dr,nn="__reactProps$"+Dr,ea="__reactContainer$"+Dr,yf="__reactEvents$"+Dr,OR="__reactListeners$"+Dr,_R="__reactHandles$"+Dr,Ly="__reactResources$"+Dr,Oi="__reactMarker$"+Dr;function bf(e){delete e[$t],delete e[nn],delete e[yf],delete e[OR],delete e[_R]}function fl(e){var n=e[$t];if(n)return n;for(var l=e.parentNode;l;){if(n=l[ea]||l[$t]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=qb(e);e!==null;){if(l=e[$t])return l;e=qb(e)}return n}e=l,l=e.parentNode}return null}function ta(e){if(e=e[$t]||e[ea]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function _i(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(i(33))}function na(e){var n=e[Ly];return n||(n=e[Ly]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function zt(e){e[Oi]=!0}var Uy=new Set,Hy={};function dl(e,n){ra(e,n),ra(e+"Capture",n)}function ra(e,n){for(Hy[e]=n,e=0;e<n.length;e++)Uy.add(n[e])}var ur=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),MR=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),jy={},Vy={};function DR(e){return it.call(Vy,e)?!0:it.call(jy,e)?!1:MR.test(e)?Vy[e]=!0:(jy[e]=!0,!1)}function bu(e,n,l){if(DR(n))if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+l)}}function Su(e,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+l)}}function sr(e,n,l,o){if(o===null)e.removeAttribute(l);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(n,l,""+o)}}function Cn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Iy(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function NR(e){var n=Iy(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),o=""+e[n];if(!e.hasOwnProperty(n)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var c=l.get,d=l.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return c.call(this)},set:function(b){o=""+b,d.call(this,b)}}),Object.defineProperty(e,n,{enumerable:l.enumerable}),{getValue:function(){return o},setValue:function(b){o=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function vu(e){e._valueTracker||(e._valueTracker=NR(e))}function qy(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),o="";return e&&(o=Iy(e)?e.checked?"true":"false":e.value),e=o,e!==l?(n.setValue(e),!0):!1}function xu(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}}var zR=/[\n"\\]/g;function Tn(e){return e.replace(zR,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Sf(e,n,l,o,c,d,b,C){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Cn(n)):e.value!==""+Cn(n)&&(e.value=""+Cn(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?vf(e,b,Cn(n)):l!=null?vf(e,b,Cn(l)):o!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?e.name=""+Cn(C):e.removeAttribute("name")}function Gy(e,n,l,o,c,d,b,C){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),n!=null||l!=null){if(!(d!=="submit"&&d!=="reset"||n!=null))return;l=l!=null?""+Cn(l):"",n=n!=null?""+Cn(n):l,C||n===e.value||(e.value=n),e.defaultValue=n}o=o??c,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=C?e.checked:!!o,e.defaultChecked=!!o,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b)}function vf(e,n,l){n==="number"&&xu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function la(e,n,l,o){if(e=e.options,n){n={};for(var c=0;c<l.length;c++)n["$"+l[c]]=!0;for(l=0;l<e.length;l++)c=n.hasOwnProperty("$"+e[l].value),e[l].selected!==c&&(e[l].selected=c),c&&o&&(e[l].defaultSelected=!0)}else{for(l=""+Cn(l),n=null,c=0;c<e.length;c++){if(e[c].value===l){e[c].selected=!0,o&&(e[c].defaultSelected=!0);return}n!==null||e[c].disabled||(n=e[c])}n!==null&&(n.selected=!0)}}function Yy(e,n,l){if(n!=null&&(n=""+Cn(n),n!==e.value&&(e.value=n),l==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=l!=null?""+Cn(l):""}function $y(e,n,l,o){if(n==null){if(o!=null){if(l!=null)throw Error(i(92));if(k(o)){if(1<o.length)throw Error(i(93));o=o[0]}l=o}l==null&&(l=""),n=l}l=Cn(n),e.defaultValue=l,o=e.textContent,o===l&&o!==""&&o!==null&&(e.value=o)}function aa(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}var BR=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Fy(e,n,l){var o=n.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?o?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":o?e.setProperty(n,l):typeof l!="number"||l===0||BR.has(n)?n==="float"?e.cssFloat=l:e[n]=(""+l).trim():e[n]=l+"px"}function Xy(e,n,l){if(n!=null&&typeof n!="object")throw Error(i(62));if(e=e.style,l!=null){for(var o in l)!l.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var c in n)o=n[c],n.hasOwnProperty(c)&&l[c]!==o&&Fy(e,c,o)}else for(var d in n)n.hasOwnProperty(d)&&Fy(e,d,n[d])}function xf(e){if(e.indexOf("-")===-1)return!1;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 LR=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),UR=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Eu(e){return UR.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Ef=null;function Cf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ia=null,oa=null;function Py(e){var n=ta(e);if(n&&(e=n.stateNode)){var l=e[nn]||null;e:switch(e=n.stateNode,n.type){case"input":if(Sf(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),n=l.name,l.type==="radio"&&n!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Tn(""+n)+'"][type="radio"]'),n=0;n<l.length;n++){var o=l[n];if(o!==e&&o.form===e.form){var c=o[nn]||null;if(!c)throw Error(i(90));Sf(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(n=0;n<l.length;n++)o=l[n],o.form===e.form&&qy(o)}break e;case"textarea":Yy(e,l.value,l.defaultValue);break e;case"select":n=l.value,n!=null&&la(e,!!l.multiple,n,!1)}}}var Tf=!1;function Qy(e,n,l){if(Tf)return e(n,l);Tf=!0;try{var o=e(n);return o}finally{if(Tf=!1,(ia!==null||oa!==null)&&(as(),ia&&(n=ia,e=oa,oa=ia=null,Py(n),e)))for(n=0;n<e.length;n++)Py(e[n])}}function Mi(e,n){var l=e.stateNode;if(l===null)return null;var o=l[nn]||null;if(o===null)return null;l=o[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(i(231,n,typeof l));return l}var wf=!1;if(ur)try{var Di={};Object.defineProperty(Di,"passive",{get:function(){wf=!0}}),window.addEventListener("test",Di,Di),window.removeEventListener("test",Di,Di)}catch{wf=!1}var Nr=null,Af=null,Cu=null;function Ky(){if(Cu)return Cu;var e,n=Af,l=n.length,o,c="value"in Nr?Nr.value:Nr.textContent,d=c.length;for(e=0;e<l&&n[e]===c[e];e++);var b=l-e;for(o=1;o<=b&&n[l-o]===c[d-o];o++);return Cu=c.slice(e,1<o?1-o:void 0)}function Tu(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function wu(){return!0}function Zy(){return!1}function rn(e){function n(l,o,c,d,b){this._reactName=l,this._targetInst=c,this.type=o,this.nativeEvent=d,this.target=b,this.currentTarget=null;for(var C in e)e.hasOwnProperty(C)&&(l=e[C],this[C]=l?l(d):d[C]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?wu:Zy,this.isPropagationStopped=Zy,this}return E(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=wu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=wu)},persist:function(){},isPersistent:wu}),n}var hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Au=rn(hl),Ni=E({},hl,{view:0,detail:0}),HR=rn(Ni),kf,Rf,zi,ku=E({},Ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_f,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!==zi&&(zi&&e.type==="mousemove"?(kf=e.screenX-zi.screenX,Rf=e.screenY-zi.screenY):Rf=kf=0,zi=e),kf)},movementY:function(e){return"movementY"in e?e.movementY:Rf}}),Jy=rn(ku),jR=E({},ku,{dataTransfer:0}),VR=rn(jR),IR=E({},Ni,{relatedTarget:0}),Of=rn(IR),qR=E({},hl,{animationName:0,elapsedTime:0,pseudoElement:0}),GR=rn(qR),YR=E({},hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),$R=rn(YR),FR=E({},hl,{data:0}),Wy=rn(FR),XR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},PR={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"},QR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function KR(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=QR[e])?!!n[e]:!1}function _f(){return KR}var ZR=E({},Ni,{key:function(e){if(e.key){var n=XR[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Tu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?PR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_f,charCode:function(e){return e.type==="keypress"?Tu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Tu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),JR=rn(ZR),WR=E({},ku,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),e0=rn(WR),e4=E({},Ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_f}),t4=rn(e4),n4=E({},hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),r4=rn(n4),l4=E({},ku,{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}),a4=rn(l4),i4=E({},hl,{newState:0,oldState:0}),o4=rn(i4),u4=[9,13,27,32],Mf=ur&&"CompositionEvent"in window,Bi=null;ur&&"documentMode"in document&&(Bi=document.documentMode);var s4=ur&&"TextEvent"in window&&!Bi,t0=ur&&(!Mf||Bi&&8<Bi&&11>=Bi),n0=" ",r0=!1;function l0(e,n){switch(e){case"keyup":return u4.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function a0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ua=!1;function c4(e,n){switch(e){case"compositionend":return a0(n);case"keypress":return n.which!==32?null:(r0=!0,n0);case"textInput":return e=n.data,e===n0&&r0?null:e;default:return null}}function f4(e,n){if(ua)return e==="compositionend"||!Mf&&l0(e,n)?(e=Ky(),Cu=Af=Nr=null,ua=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return t0&&n.locale!=="ko"?null:n.data;default:return null}}var d4={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 i0(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!d4[e.type]:n==="textarea"}function o0(e,n,l,o){ia?oa?oa.push(o):oa=[o]:ia=o,n=cs(n,"onChange"),0<n.length&&(l=new Au("onChange","change",null,l,o),e.push({event:l,listeners:n}))}var Li=null,Ui=null;function h4(e){Nb(e,0)}function Ru(e){var n=_i(e);if(qy(n))return e}function u0(e,n){if(e==="change")return n}var s0=!1;if(ur){var Df;if(ur){var Nf="oninput"in document;if(!Nf){var c0=document.createElement("div");c0.setAttribute("oninput","return;"),Nf=typeof c0.oninput=="function"}Df=Nf}else Df=!1;s0=Df&&(!document.documentMode||9<document.documentMode)}function f0(){Li&&(Li.detachEvent("onpropertychange",d0),Ui=Li=null)}function d0(e){if(e.propertyName==="value"&&Ru(Ui)){var n=[];o0(n,Ui,e,Cf(e)),Qy(h4,n)}}function p4(e,n,l){e==="focusin"?(f0(),Li=n,Ui=l,Li.attachEvent("onpropertychange",d0)):e==="focusout"&&f0()}function m4(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ru(Ui)}function g4(e,n){if(e==="click")return Ru(n)}function y4(e,n){if(e==="input"||e==="change")return Ru(n)}function b4(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var hn=typeof Object.is=="function"?Object.is:b4;function Hi(e,n){if(hn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var l=Object.keys(e),o=Object.keys(n);if(l.length!==o.length)return!1;for(o=0;o<l.length;o++){var c=l[o];if(!it.call(n,c)||!hn(e[c],n[c]))return!1}return!0}function h0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function p0(e,n){var l=h0(e);e=0;for(var o;l;){if(l.nodeType===3){if(o=e+l.textContent.length,e<=n&&o>=n)return{node:l,offset:n-e};e=o}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=h0(l)}}function m0(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?m0(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function g0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=xu(e.document);n instanceof e.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)e=n.contentWindow;else break;n=xu(e.document)}return n}function zf(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function S4(e,n){var l=g0(n);n=e.focusedElem;var o=e.selectionRange;if(l!==n&&n&&n.ownerDocument&&m0(n.ownerDocument.documentElement,n)){if(o!==null&&zf(n)){if(e=o.start,l=o.end,l===void 0&&(l=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(l,n.value.length);else if(l=(e=n.ownerDocument||document)&&e.defaultView||window,l.getSelection){l=l.getSelection();var c=n.textContent.length,d=Math.min(o.start,c);o=o.end===void 0?d:Math.min(o.end,c),!l.extend&&d>o&&(c=o,o=d,d=c),c=p0(n,d);var b=p0(n,o);c&&b&&(l.rangeCount!==1||l.anchorNode!==c.node||l.anchorOffset!==c.offset||l.focusNode!==b.node||l.focusOffset!==b.offset)&&(e=e.createRange(),e.setStart(c.node,c.offset),l.removeAllRanges(),d>o?(l.addRange(e),l.extend(b.node,b.offset)):(e.setEnd(b.node,b.offset),l.addRange(e)))}}for(e=[],l=n;l=l.parentNode;)l.nodeType===1&&e.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)l=e[n],l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}var v4=ur&&"documentMode"in document&&11>=document.documentMode,sa=null,Bf=null,ji=null,Lf=!1;function y0(e,n,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Lf||sa==null||sa!==xu(o)||(o=sa,"selectionStart"in o&&zf(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),ji&&Hi(ji,o)||(ji=o,o=cs(Bf,"onSelect"),0<o.length&&(n=new Au("onSelect","select",null,n,l),e.push({event:n,listeners:o}),n.target=sa)))}function pl(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}var ca={animationend:pl("Animation","AnimationEnd"),animationiteration:pl("Animation","AnimationIteration"),animationstart:pl("Animation","AnimationStart"),transitionrun:pl("Transition","TransitionRun"),transitionstart:pl("Transition","TransitionStart"),transitioncancel:pl("Transition","TransitionCancel"),transitionend:pl("Transition","TransitionEnd")},Uf={},b0={};ur&&(b0=document.createElement("div").style,"AnimationEvent"in window||(delete ca.animationend.animation,delete ca.animationiteration.animation,delete ca.animationstart.animation),"TransitionEvent"in window||delete ca.transitionend.transition);function ml(e){if(Uf[e])return Uf[e];if(!ca[e])return e;var n=ca[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in b0)return Uf[e]=n[l];return e}var S0=ml("animationend"),v0=ml("animationiteration"),x0=ml("animationstart"),x4=ml("transitionrun"),E4=ml("transitionstart"),C4=ml("transitioncancel"),E0=ml("transitionend"),C0=new Map,T0="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function Un(e,n){C0.set(e,n),dl(n,[e])}var wn=[],fa=0,Hf=0;function Ou(){for(var e=fa,n=Hf=fa=0;n<e;){var l=wn[n];wn[n++]=null;var o=wn[n];wn[n++]=null;var c=wn[n];wn[n++]=null;var d=wn[n];if(wn[n++]=null,o!==null&&c!==null){var b=o.pending;b===null?c.next=c:(c.next=b.next,b.next=c),o.pending=c}d!==0&&w0(l,c,d)}}function _u(e,n,l,o){wn[fa++]=e,wn[fa++]=n,wn[fa++]=l,wn[fa++]=o,Hf|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function jf(e,n,l,o){return _u(e,n,l,o),Mu(e)}function zr(e,n){return _u(e,null,null,n),Mu(e)}function w0(e,n,l){e.lanes|=l;var o=e.alternate;o!==null&&(o.lanes|=l);for(var c=!1,d=e.return;d!==null;)d.childLanes|=l,o=d.alternate,o!==null&&(o.childLanes|=l),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(c=!0)),e=d,d=d.return;c&&n!==null&&e.tag===3&&(d=e.stateNode,c=31-wt(l),d=d.hiddenUpdates,e=d[c],e===null?d[c]=[n]:e.push(n),n.lane=l|536870912)}function Mu(e){if(50<co)throw co=0,$d=null,Error(i(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var da={},A0=new WeakMap;function An(e,n){if(typeof e=="object"&&e!==null){var l=A0.get(e);return l!==void 0?l:(n={value:e,source:n,stack:ne(n)},A0.set(e,n),n)}return{value:e,source:n,stack:ne(n)}}var ha=[],pa=0,Du=null,Nu=0,kn=[],Rn=0,gl=null,cr=1,fr="";function yl(e,n){ha[pa++]=Nu,ha[pa++]=Du,Du=e,Nu=n}function k0(e,n,l){kn[Rn++]=cr,kn[Rn++]=fr,kn[Rn++]=gl,gl=e;var o=cr;e=fr;var c=32-wt(o)-1;o&=~(1<<c),l+=1;var d=32-wt(n)+c;if(30<d){var b=c-c%5;d=(o&(1<<b)-1).toString(32),o>>=b,c-=b,cr=1<<32-wt(n)+c|l<<c|o,fr=d+e}else cr=1<<d|l<<c|o,fr=e}function Vf(e){e.return!==null&&(yl(e,1),k0(e,1,0))}function If(e){for(;e===Du;)Du=ha[--pa],ha[pa]=null,Nu=ha[--pa],ha[pa]=null;for(;e===gl;)gl=kn[--Rn],kn[Rn]=null,fr=kn[--Rn],kn[Rn]=null,cr=kn[--Rn],kn[Rn]=null}var Xt=null,jt=null,Fe=!1,Hn=null,Zn=!1,qf=Error(i(519));function bl(e){var n=Error(i(418,""));throw qi(An(n,e)),qf}function R0(e){var n=e.stateNode,l=e.type,o=e.memoizedProps;switch(n[$t]=e,n[nn]=o,l){case"dialog":Ie("cancel",n),Ie("close",n);break;case"iframe":case"object":case"embed":Ie("load",n);break;case"video":case"audio":for(l=0;l<ho.length;l++)Ie(ho[l],n);break;case"source":Ie("error",n);break;case"img":case"image":case"link":Ie("error",n),Ie("load",n);break;case"details":Ie("toggle",n);break;case"input":Ie("invalid",n),Gy(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),vu(n);break;case"select":Ie("invalid",n);break;case"textarea":Ie("invalid",n),$y(n,o.value,o.defaultValue,o.children),vu(n)}l=o.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||n.textContent===""+l||o.suppressHydrationWarning===!0||Ub(n.textContent,l)?(o.popover!=null&&(Ie("beforetoggle",n),Ie("toggle",n)),o.onScroll!=null&&Ie("scroll",n),o.onScrollEnd!=null&&Ie("scrollend",n),o.onClick!=null&&(n.onclick=fs),n=!0):n=!1,n||bl(e)}function O0(e){for(Xt=e.return;Xt;)switch(Xt.tag){case 3:case 27:Zn=!0;return;case 5:case 13:Zn=!1;return;default:Xt=Xt.return}}function Vi(e){if(e!==Xt)return!1;if(!Fe)return O0(e),Fe=!0,!1;var n=!1,l;if((l=e.tag!==3&&e.tag!==27)&&((l=e.tag===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||uh(e.type,e.memoizedProps)),l=!l),l&&(n=!0),n&&jt&&bl(e),O0(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8)if(l=e.data,l==="/$"){if(n===0){jt=Vn(e.nextSibling);break e}n--}else l!=="$"&&l!=="$!"&&l!=="$?"||n++;e=e.nextSibling}jt=null}}else jt=Xt?Vn(e.stateNode.nextSibling):null;return!0}function Ii(){jt=Xt=null,Fe=!1}function qi(e){Hn===null?Hn=[e]:Hn.push(e)}var Gi=Error(i(460)),_0=Error(i(474)),Gf={then:function(){}};function M0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function zu(){}function D0(e,n,l){switch(l=e[l],l===void 0?e.push(n):l!==n&&(n.then(zu,zu),n=l),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,e===Gi?Error(i(483)):e;default:if(typeof n.status=="string")n.then(zu,zu);else{if(e=ot,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=n,e.status="pending",e.then(function(o){if(n.status==="pending"){var c=n;c.status="fulfilled",c.value=o}},function(o){if(n.status==="pending"){var c=n;c.status="rejected",c.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,e===Gi?Error(i(483)):e}throw Yi=n,Gi}}var Yi=null;function N0(){if(Yi===null)throw Error(i(459));var e=Yi;return Yi=null,e}var ma=null,$i=0;function Bu(e){var n=$i;return $i+=1,ma===null&&(ma=[]),D0(ma,e,n)}function Fi(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Lu(e,n){throw n.$$typeof===s?Error(i(525)):(e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function z0(e){var n=e._init;return n(e._payload)}function B0(e){function n(H,L){if(e){var q=H.deletions;q===null?(H.deletions=[L],H.flags|=16):q.push(L)}}function l(H,L){if(!e)return null;for(;L!==null;)n(H,L),L=L.sibling;return null}function o(H){for(var L=new Map;H!==null;)H.key!==null?L.set(H.key,H):L.set(H.index,H),H=H.sibling;return L}function c(H,L){return H=Fr(H,L),H.index=0,H.sibling=null,H}function d(H,L,q){return H.index=q,e?(q=H.alternate,q!==null?(q=q.index,q<L?(H.flags|=33554434,L):q):(H.flags|=33554434,L)):(H.flags|=1048576,L)}function b(H){return e&&H.alternate===null&&(H.flags|=33554434),H}function C(H,L,q,re){return L===null||L.tag!==6?(L=Ud(q,H.mode,re),L.return=H,L):(L=c(L,q),L.return=H,L)}function _(H,L,q,re){var ge=q.type;return ge===m?J(H,L,q.props.children,re,q.key):L!==null&&(L.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===N&&z0(ge)===L.type)?(L=c(L,q.props),Fi(L,q),L.return=H,L):(L=es(q.type,q.key,q.props,null,H.mode,re),Fi(L,q),L.return=H,L)}function U(H,L,q,re){return L===null||L.tag!==4||L.stateNode.containerInfo!==q.containerInfo||L.stateNode.implementation!==q.implementation?(L=Hd(q,H.mode,re),L.return=H,L):(L=c(L,q.children||[]),L.return=H,L)}function J(H,L,q,re,ge){return L===null||L.tag!==7?(L=Rl(q,H.mode,re,ge),L.return=H,L):(L=c(L,q),L.return=H,L)}function ae(H,L,q){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Ud(""+L,H.mode,q),L.return=H,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case f:return q=es(L.type,L.key,L.props,null,H.mode,q),Fi(q,L),q.return=H,q;case h:return L=Hd(L,H.mode,q),L.return=H,L;case N:var re=L._init;return L=re(L._payload),ae(H,L,q)}if(k(L)||M(L))return L=Rl(L,H.mode,q,null),L.return=H,L;if(typeof L.then=="function")return ae(H,Bu(L),q);if(L.$$typeof===S)return ae(H,Zu(H,L),q);Lu(H,L)}return null}function Y(H,L,q,re){var ge=L!==null?L.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return ge!==null?null:C(H,L,""+q,re);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case f:return q.key===ge?_(H,L,q,re):null;case h:return q.key===ge?U(H,L,q,re):null;case N:return ge=q._init,q=ge(q._payload),Y(H,L,q,re)}if(k(q)||M(q))return ge!==null?null:J(H,L,q,re,null);if(typeof q.then=="function")return Y(H,L,Bu(q),re);if(q.$$typeof===S)return Y(H,L,Zu(H,q),re);Lu(H,q)}return null}function K(H,L,q,re,ge){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return H=H.get(q)||null,C(L,H,""+re,ge);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case f:return H=H.get(re.key===null?q:re.key)||null,_(L,H,re,ge);case h:return H=H.get(re.key===null?q:re.key)||null,U(L,H,re,ge);case N:var Be=re._init;return re=Be(re._payload),K(H,L,q,re,ge)}if(k(re)||M(re))return H=H.get(q)||null,J(L,H,re,ge,null);if(typeof re.then=="function")return K(H,L,q,Bu(re),ge);if(re.$$typeof===S)return K(H,L,q,Zu(L,re),ge);Lu(L,re)}return null}function be(H,L,q,re){for(var ge=null,Be=null,Se=L,Ce=L=0,Ut=null;Se!==null&&Ce<q.length;Ce++){Se.index>Ce?(Ut=Se,Se=null):Ut=Se.sibling;var Xe=Y(H,Se,q[Ce],re);if(Xe===null){Se===null&&(Se=Ut);break}e&&Se&&Xe.alternate===null&&n(H,Se),L=d(Xe,L,Ce),Be===null?ge=Xe:Be.sibling=Xe,Be=Xe,Se=Ut}if(Ce===q.length)return l(H,Se),Fe&&yl(H,Ce),ge;if(Se===null){for(;Ce<q.length;Ce++)Se=ae(H,q[Ce],re),Se!==null&&(L=d(Se,L,Ce),Be===null?ge=Se:Be.sibling=Se,Be=Se);return Fe&&yl(H,Ce),ge}for(Se=o(Se);Ce<q.length;Ce++)Ut=K(Se,H,Ce,q[Ce],re),Ut!==null&&(e&&Ut.alternate!==null&&Se.delete(Ut.key===null?Ce:Ut.key),L=d(Ut,L,Ce),Be===null?ge=Ut:Be.sibling=Ut,Be=Ut);return e&&Se.forEach(function(Wr){return n(H,Wr)}),Fe&&yl(H,Ce),ge}function Ae(H,L,q,re){if(q==null)throw Error(i(151));for(var ge=null,Be=null,Se=L,Ce=L=0,Ut=null,Xe=q.next();Se!==null&&!Xe.done;Ce++,Xe=q.next()){Se.index>Ce?(Ut=Se,Se=null):Ut=Se.sibling;var Wr=Y(H,Se,Xe.value,re);if(Wr===null){Se===null&&(Se=Ut);break}e&&Se&&Wr.alternate===null&&n(H,Se),L=d(Wr,L,Ce),Be===null?ge=Wr:Be.sibling=Wr,Be=Wr,Se=Ut}if(Xe.done)return l(H,Se),Fe&&yl(H,Ce),ge;if(Se===null){for(;!Xe.done;Ce++,Xe=q.next())Xe=ae(H,Xe.value,re),Xe!==null&&(L=d(Xe,L,Ce),Be===null?ge=Xe:Be.sibling=Xe,Be=Xe);return Fe&&yl(H,Ce),ge}for(Se=o(Se);!Xe.done;Ce++,Xe=q.next())Xe=K(Se,H,Ce,Xe.value,re),Xe!==null&&(e&&Xe.alternate!==null&&Se.delete(Xe.key===null?Ce:Xe.key),L=d(Xe,L,Ce),Be===null?ge=Xe:Be.sibling=Xe,Be=Xe);return e&&Se.forEach(function(U3){return n(H,U3)}),Fe&&yl(H,Ce),ge}function yt(H,L,q,re){if(typeof q=="object"&&q!==null&&q.type===m&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case f:e:{for(var ge=q.key;L!==null;){if(L.key===ge){if(ge=q.type,ge===m){if(L.tag===7){l(H,L.sibling),re=c(L,q.props.children),re.return=H,H=re;break e}}else if(L.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===N&&z0(ge)===L.type){l(H,L.sibling),re=c(L,q.props),Fi(re,q),re.return=H,H=re;break e}l(H,L);break}else n(H,L);L=L.sibling}q.type===m?(re=Rl(q.props.children,H.mode,re,q.key),re.return=H,H=re):(re=es(q.type,q.key,q.props,null,H.mode,re),Fi(re,q),re.return=H,H=re)}return b(H);case h:e:{for(ge=q.key;L!==null;){if(L.key===ge)if(L.tag===4&&L.stateNode.containerInfo===q.containerInfo&&L.stateNode.implementation===q.implementation){l(H,L.sibling),re=c(L,q.children||[]),re.return=H,H=re;break e}else{l(H,L);break}else n(H,L);L=L.sibling}re=Hd(q,H.mode,re),re.return=H,H=re}return b(H);case N:return ge=q._init,q=ge(q._payload),yt(H,L,q,re)}if(k(q))return be(H,L,q,re);if(M(q)){if(ge=M(q),typeof ge!="function")throw Error(i(150));return q=ge.call(q),Ae(H,L,q,re)}if(typeof q.then=="function")return yt(H,L,Bu(q),re);if(q.$$typeof===S)return yt(H,L,Zu(H,q),re);Lu(H,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,L!==null&&L.tag===6?(l(H,L.sibling),re=c(L,q),re.return=H,H=re):(l(H,L),re=Ud(q,H.mode,re),re.return=H,H=re),b(H)):l(H,L)}return function(H,L,q,re){try{$i=0;var ge=yt(H,L,q,re);return ma=null,ge}catch(Se){if(Se===Gi)throw Se;var Be=Dn(29,Se,null,H.mode);return Be.lanes=re,Be.return=H,Be}finally{}}}var Sl=B0(!0),L0=B0(!1),ga=xe(null),Uu=xe(0);function U0(e,n){e=Er,de(Uu,e),de(ga,n),Er=e|n.baseLanes}function Yf(){de(Uu,Er),de(ga,ga.current)}function $f(){Er=Uu.current,Re(ga),Re(Uu)}var On=xe(null),Jn=null;function Br(e){var n=e.alternate;de(_t,_t.current&1),de(On,e),Jn===null&&(n===null||ga.current!==null||n.memoizedState!==null)&&(Jn=e)}function H0(e){if(e.tag===22){if(de(_t,_t.current),de(On,e),Jn===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(Jn=e)}}else Lr()}function Lr(){de(_t,_t.current),de(On,On.current)}function dr(e){Re(On),Jn===e&&(Jn=null),Re(_t)}var _t=xe(0);function Hu(e){for(var n=e;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var T4=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(l,o){e.push(o)}};this.abort=function(){n.aborted=!0,e.forEach(function(l){return l()})}},w4=t.unstable_scheduleCallback,A4=t.unstable_NormalPriority,Mt={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ff(){return{controller:new T4,data:new Map,refCount:0}}function Xi(e){e.refCount--,e.refCount===0&&w4(A4,function(){e.controller.abort()})}var Pi=null,Xf=0,ya=0,ba=null;function k4(e,n){if(Pi===null){var l=Pi=[];Xf=0,ya=Wd(),ba={status:"pending",value:void 0,then:function(o){l.push(o)}}}return Xf++,n.then(j0,j0),n}function j0(){if(--Xf===0&&Pi!==null){ba!==null&&(ba.status="fulfilled");var e=Pi;Pi=null,ya=0,ba=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function R4(e,n){var l=[],o={status:"pending",value:null,reason:null,then:function(c){l.push(c)}};return e.then(function(){o.status="fulfilled",o.value=n;for(var c=0;c<l.length;c++)(0,l[c])(n)},function(c){for(o.status="rejected",o.reason=c,c=0;c<l.length;c++)(0,l[c])(void 0)}),o}var V0=G.S;G.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&k4(e,n),V0!==null&&V0(e,n)};var vl=xe(null);function Pf(){var e=vl.current;return e!==null?e:ot.pooledCache}function ju(e,n){n===null?de(vl,vl.current):de(vl,n.pool)}function I0(){var e=Pf();return e===null?null:{parent:Mt._currentValue,pool:e}}var Ur=0,Me=null,Je=null,At=null,Vu=!1,Sa=!1,xl=!1,Iu=0,Qi=0,va=null,O4=0;function xt(){throw Error(i(321))}function Qf(e,n){if(n===null)return!1;for(var l=0;l<n.length&&l<e.length;l++)if(!hn(e[l],n[l]))return!1;return!0}function Kf(e,n,l,o,c,d){return Ur=d,Me=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,G.H=e===null||e.memoizedState===null?El:Hr,xl=!1,d=l(o,c),xl=!1,Sa&&(d=G0(n,l,o,c)),q0(e),d}function q0(e){G.H=Wn;var n=Je!==null&&Je.next!==null;if(Ur=0,At=Je=Me=null,Vu=!1,Qi=0,va=null,n)throw Error(i(300));e===null||Bt||(e=e.dependencies,e!==null&&Ku(e)&&(Bt=!0))}function G0(e,n,l,o){Me=e;var c=0;do{if(Sa&&(va=null),Qi=0,Sa=!1,25<=c)throw Error(i(301));if(c+=1,At=Je=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}G.H=Cl,d=n(l,o)}while(Sa);return d}function _4(){var e=G.H,n=e.useState()[0];return n=typeof n.then=="function"?Ki(n):n,e=e.useState()[0],(Je!==null?Je.memoizedState:null)!==e&&(Me.flags|=1024),n}function Zf(){var e=Iu!==0;return Iu=0,e}function Jf(e,n,l){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l}function Wf(e){if(Vu){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Vu=!1}Ur=0,At=Je=Me=null,Sa=!1,Qi=Iu=0,va=null}function ln(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?Me.memoizedState=At=e:At=At.next=e,At}function kt(){if(Je===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var n=At===null?Me.memoizedState:At.next;if(n!==null)At=n,Je=e;else{if(e===null)throw Me.alternate===null?Error(i(467)):Error(i(310));Je=e,e={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},At===null?Me.memoizedState=At=e:At=At.next=e}return At}var qu;qu=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Ki(e){var n=Qi;return Qi+=1,va===null&&(va=[]),e=D0(va,e,n),n=Me,(At===null?n.memoizedState:At.next)===null&&(n=n.alternate,G.H=n===null||n.memoizedState===null?El:Hr),e}function Gu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ki(e);if(e.$$typeof===S)return Ft(e)}throw Error(i(438,String(e)))}function ed(e){var n=null,l=Me.updateQueue;if(l!==null&&(n=l.memoCache),n==null){var o=Me.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(c){return c.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),l===null&&(l=qu(),Me.updateQueue=l),l.memoCache=n,l=n.data[n.index],l===void 0)for(l=n.data[n.index]=Array(e),o=0;o<e;o++)l[o]=z;return n.index++,l}function hr(e,n){return typeof n=="function"?n(e):n}function Yu(e){var n=kt();return td(n,Je,e)}function td(e,n,l){var o=e.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=l;var c=e.baseQueue,d=o.pending;if(d!==null){if(c!==null){var b=c.next;c.next=d.next,d.next=b}n.baseQueue=c=d,o.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{n=c.next;var C=b=null,_=null,U=n,J=!1;do{var ae=U.lane&-536870913;if(ae!==U.lane?(Ge&ae)===ae:(Ur&ae)===ae){var Y=U.revertLane;if(Y===0)_!==null&&(_=_.next={lane:0,revertLane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),ae===ya&&(J=!0);else if((Ur&Y)===Y){U=U.next,Y===ya&&(J=!0);continue}else ae={lane:0,revertLane:U.revertLane,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},_===null?(C=_=ae,b=d):_=_.next=ae,Me.lanes|=Y,Xr|=Y;ae=U.action,xl&&l(d,ae),d=U.hasEagerState?U.eagerState:l(d,ae)}else Y={lane:ae,revertLane:U.revertLane,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},_===null?(C=_=Y,b=d):_=_.next=Y,Me.lanes|=ae,Xr|=ae;U=U.next}while(U!==null&&U!==n);if(_===null?b=d:_.next=C,!hn(d,e.memoizedState)&&(Bt=!0,J&&(l=ba,l!==null)))throw l;e.memoizedState=d,e.baseState=b,e.baseQueue=_,o.lastRenderedState=d}return c===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function nd(e){var n=kt(),l=n.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=e;var o=l.dispatch,c=l.pending,d=n.memoizedState;if(c!==null){l.pending=null;var b=c=c.next;do d=e(d,b.action),b=b.next;while(b!==c);hn(d,n.memoizedState)||(Bt=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),l.lastRenderedState=d}return[d,o]}function Y0(e,n,l){var o=Me,c=kt(),d=Fe;if(d){if(l===void 0)throw Error(i(407));l=l()}else l=n();var b=!hn((Je||c).memoizedState,l);if(b&&(c.memoizedState=l,Bt=!0),c=c.queue,ad(X0.bind(null,o,c,e),[e]),c.getSnapshot!==n||b||At!==null&&At.memoizedState.tag&1){if(o.flags|=2048,xa(9,F0.bind(null,o,c,l,n),{destroy:void 0},null),ot===null)throw Error(i(349));d||Ur&60||$0(o,n,l)}return l}function $0(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=Me.updateQueue,n===null?(n=qu(),Me.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function F0(e,n,l,o){n.value=l,n.getSnapshot=o,P0(n)&&Q0(e)}function X0(e,n,l){return l(function(){P0(n)&&Q0(e)})}function P0(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!hn(e,l)}catch{return!0}}function Q0(e){var n=zr(e,2);n!==null&&Pt(n,e,2)}function rd(e){var n=ln();if(typeof e=="function"){var l=e;if(e=l(),xl){pt(!0);try{l()}finally{pt(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:e},n}function K0(e,n,l,o){return e.baseState=l,td(e,Je,typeof o=="function"?o:hr)}function M4(e,n,l,o,c){if(Xu(e))throw Error(i(485));if(e=n.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){d.listeners.push(b)}};G.T!==null?l(!0):d.isTransition=!1,o(d),l=n.pending,l===null?(d.next=n.pending=d,Z0(n,d)):(d.next=l.next,n.pending=l.next=d)}}function Z0(e,n){var l=n.action,o=n.payload,c=e.state;if(n.isTransition){var d=G.T,b={};G.T=b;try{var C=l(c,o),_=G.S;_!==null&&_(b,C),J0(e,n,C)}catch(U){ld(e,n,U)}finally{G.T=d}}else try{d=l(c,o),J0(e,n,d)}catch(U){ld(e,n,U)}}function J0(e,n,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(o){W0(e,n,o)},function(o){return ld(e,n,o)}):W0(e,n,l)}function W0(e,n,l){n.status="fulfilled",n.value=l,e1(n),e.state=l,n=e.pending,n!==null&&(l=n.next,l===n?e.pending=null:(l=l.next,n.next=l,Z0(e,l)))}function ld(e,n,l){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=l,e1(n),n=n.next;while(n!==o)}e.action=null}function e1(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function t1(e,n){return n}function n1(e,n){if(Fe){var l=ot.formState;if(l!==null){e:{var o=Me;if(Fe){if(jt){t:{for(var c=jt,d=Zn;c.nodeType!==8;){if(!d){c=null;break t}if(c=Vn(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){jt=Vn(c.nextSibling),o=c.data==="F!";break e}}bl(o)}o=!1}o&&(n=l[0])}}return l=ln(),l.memoizedState=l.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t1,lastRenderedState:n},l.queue=o,l=v1.bind(null,Me,o),o.dispatch=l,o=rd(!1),d=cd.bind(null,Me,!1,o.queue),o=ln(),c={state:n,dispatch:null,action:e,pending:null},o.queue=c,l=M4.bind(null,Me,c,d,l),c.dispatch=l,o.memoizedState=e,[n,l,!1]}function r1(e){var n=kt();return l1(n,Je,e)}function l1(e,n,l){n=td(e,n,t1)[0],e=Yu(hr)[0],n=typeof n=="object"&&n!==null&&typeof n.then=="function"?Ki(n):n;var o=kt(),c=o.queue,d=c.dispatch;return l!==o.memoizedState&&(Me.flags|=2048,xa(9,D4.bind(null,c,l),{destroy:void 0},null)),[n,d,e]}function D4(e,n){e.action=n}function a1(e){var n=kt(),l=Je;if(l!==null)return l1(n,l,e);kt(),n=n.memoizedState,l=kt();var o=l.queue.dispatch;return l.memoizedState=e,[n,o,!1]}function xa(e,n,l,o){return e={tag:e,create:n,inst:l,deps:o,next:null},n=Me.updateQueue,n===null&&(n=qu(),Me.updateQueue=n),l=n.lastEffect,l===null?n.lastEffect=e.next=e:(o=l.next,l.next=e,e.next=o,n.lastEffect=e),e}function i1(){return kt().memoizedState}function $u(e,n,l,o){var c=ln();Me.flags|=e,c.memoizedState=xa(1|n,l,{destroy:void 0},o===void 0?null:o)}function Fu(e,n,l,o){var c=kt();o=o===void 0?null:o;var d=c.memoizedState.inst;Je!==null&&o!==null&&Qf(o,Je.memoizedState.deps)?c.memoizedState=xa(n,l,d,o):(Me.flags|=e,c.memoizedState=xa(1|n,l,d,o))}function o1(e,n){$u(8390656,8,e,n)}function ad(e,n){Fu(2048,8,e,n)}function u1(e,n){return Fu(4,2,e,n)}function s1(e,n){return Fu(4,4,e,n)}function c1(e,n){if(typeof n=="function"){e=e();var l=n(e);return function(){typeof l=="function"?l():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function f1(e,n,l){l=l!=null?l.concat([e]):null,Fu(4,4,c1.bind(null,n,e),l)}function id(){}function d1(e,n){var l=kt();n=n===void 0?null:n;var o=l.memoizedState;return n!==null&&Qf(n,o[1])?o[0]:(l.memoizedState=[e,n],e)}function h1(e,n){var l=kt();n=n===void 0?null:n;var o=l.memoizedState;if(n!==null&&Qf(n,o[1]))return o[0];if(o=e(),xl){pt(!0);try{e()}finally{pt(!1)}}return l.memoizedState=[o,n],o}function od(e,n,l){return l===void 0||Ur&1073741824?e.memoizedState=n:(e.memoizedState=l,e=mb(),Me.lanes|=e,Xr|=e,l)}function p1(e,n,l,o){return hn(l,n)?l:ga.current!==null?(e=od(e,l,o),hn(e,n)||(Bt=!0),e):Ur&42?(e=mb(),Me.lanes|=e,Xr|=e,n):(Bt=!0,e.memoizedState=l)}function m1(e,n,l,o,c){var d=ie.p;ie.p=d!==0&&8>d?d:8;var b=G.T,C={};G.T=C,cd(e,!1,n,l);try{var _=c(),U=G.S;if(U!==null&&U(C,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var J=R4(_,o);Zi(e,n,J,yn(e))}else Zi(e,n,o,yn(e))}catch(ae){Zi(e,n,{then:function(){},status:"rejected",reason:ae},yn())}finally{ie.p=d,G.T=b}}function N4(){}function ud(e,n,l,o){if(e.tag!==5)throw Error(i(476));var c=g1(e).queue;m1(e,c,n,ye,l===null?N4:function(){return y1(e),l(o)})}function g1(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:ye,baseState:ye,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:ye},next:null};var l={};return n.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:l},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function y1(e){var n=g1(e).next.queue;Zi(e,n,{},yn())}function sd(){return Ft(bo)}function b1(){return kt().memoizedState}function S1(){return kt().memoizedState}function z4(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var l=yn();e=Ir(l);var o=qr(n,e,l);o!==null&&(Pt(o,n,l),eo(o,n,l)),n={cache:Ff()},e.payload=n;return}n=n.return}}function B4(e,n,l){var o=yn();l={lane:o,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Xu(e)?x1(n,l):(l=jf(e,n,l,o),l!==null&&(Pt(l,e,o),E1(l,n,o)))}function v1(e,n,l){var o=yn();Zi(e,n,l,o)}function Zi(e,n,l,o){var c={lane:o,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Xu(e))x1(n,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var b=n.lastRenderedState,C=d(b,l);if(c.hasEagerState=!0,c.eagerState=C,hn(C,b))return _u(e,n,c,0),ot===null&&Ou(),!1}catch{}finally{}if(l=jf(e,n,c,o),l!==null)return Pt(l,e,o),E1(l,n,o),!0}return!1}function cd(e,n,l,o){if(o={lane:2,revertLane:Wd(),action:o,hasEagerState:!1,eagerState:null,next:null},Xu(e)){if(n)throw Error(i(479))}else n=jf(e,l,o,2),n!==null&&Pt(n,e,2)}function Xu(e){var n=e.alternate;return e===Me||n!==null&&n===Me}function x1(e,n){Sa=Vu=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function E1(e,n,l){if(l&4194176){var o=n.lanes;o&=e.pendingLanes,l|=o,n.lanes=l,Ny(e,l)}}var Wn={readContext:Ft,use:Gu,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useLayoutEffect:xt,useInsertionEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useSyncExternalStore:xt,useId:xt};Wn.useCacheRefresh=xt,Wn.useMemoCache=xt,Wn.useHostTransitionStatus=xt,Wn.useFormState=xt,Wn.useActionState=xt,Wn.useOptimistic=xt;var El={readContext:Ft,use:Gu,useCallback:function(e,n){return ln().memoizedState=[e,n===void 0?null:n],e},useContext:Ft,useEffect:o1,useImperativeHandle:function(e,n,l){l=l!=null?l.concat([e]):null,$u(4194308,4,c1.bind(null,n,e),l)},useLayoutEffect:function(e,n){return $u(4194308,4,e,n)},useInsertionEffect:function(e,n){$u(4,2,e,n)},useMemo:function(e,n){var l=ln();n=n===void 0?null:n;var o=e();if(xl){pt(!0);try{e()}finally{pt(!1)}}return l.memoizedState=[o,n],o},useReducer:function(e,n,l){var o=ln();if(l!==void 0){var c=l(n);if(xl){pt(!0);try{l(n)}finally{pt(!1)}}}else c=n;return o.memoizedState=o.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},o.queue=e,e=e.dispatch=B4.bind(null,Me,e),[o.memoizedState,e]},useRef:function(e){var n=ln();return e={current:e},n.memoizedState=e},useState:function(e){e=rd(e);var n=e.queue,l=v1.bind(null,Me,n);return n.dispatch=l,[e.memoizedState,l]},useDebugValue:id,useDeferredValue:function(e,n){var l=ln();return od(l,e,n)},useTransition:function(){var e=rd(!1);return e=m1.bind(null,Me,e.queue,!0,!1),ln().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,l){var o=Me,c=ln();if(Fe){if(l===void 0)throw Error(i(407));l=l()}else{if(l=n(),ot===null)throw Error(i(349));Ge&60||$0(o,n,l)}c.memoizedState=l;var d={value:l,getSnapshot:n};return c.queue=d,o1(X0.bind(null,o,d,e),[e]),o.flags|=2048,xa(9,F0.bind(null,o,d,l,n),{destroy:void 0},null),l},useId:function(){var e=ln(),n=ot.identifierPrefix;if(Fe){var l=fr,o=cr;l=(o&~(1<<32-wt(o)-1)).toString(32)+l,n=":"+n+"R"+l,l=Iu++,0<l&&(n+="H"+l.toString(32)),n+=":"}else l=O4++,n=":"+n+"r"+l.toString(32)+":";return e.memoizedState=n},useCacheRefresh:function(){return ln().memoizedState=z4.bind(null,Me)}};El.useMemoCache=ed,El.useHostTransitionStatus=sd,El.useFormState=n1,El.useActionState=n1,El.useOptimistic=function(e){var n=ln();n.memoizedState=n.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=l,n=cd.bind(null,Me,!0,l),l.dispatch=n,[e,n]};var Hr={readContext:Ft,use:Gu,useCallback:d1,useContext:Ft,useEffect:ad,useImperativeHandle:f1,useInsertionEffect:u1,useLayoutEffect:s1,useMemo:h1,useReducer:Yu,useRef:i1,useState:function(){return Yu(hr)},useDebugValue:id,useDeferredValue:function(e,n){var l=kt();return p1(l,Je.memoizedState,e,n)},useTransition:function(){var e=Yu(hr)[0],n=kt().memoizedState;return[typeof e=="boolean"?e:Ki(e),n]},useSyncExternalStore:Y0,useId:b1};Hr.useCacheRefresh=S1,Hr.useMemoCache=ed,Hr.useHostTransitionStatus=sd,Hr.useFormState=r1,Hr.useActionState=r1,Hr.useOptimistic=function(e,n){var l=kt();return K0(l,Je,e,n)};var Cl={readContext:Ft,use:Gu,useCallback:d1,useContext:Ft,useEffect:ad,useImperativeHandle:f1,useInsertionEffect:u1,useLayoutEffect:s1,useMemo:h1,useReducer:nd,useRef:i1,useState:function(){return nd(hr)},useDebugValue:id,useDeferredValue:function(e,n){var l=kt();return Je===null?od(l,e,n):p1(l,Je.memoizedState,e,n)},useTransition:function(){var e=nd(hr)[0],n=kt().memoizedState;return[typeof e=="boolean"?e:Ki(e),n]},useSyncExternalStore:Y0,useId:b1};Cl.useCacheRefresh=S1,Cl.useMemoCache=ed,Cl.useHostTransitionStatus=sd,Cl.useFormState=a1,Cl.useActionState=a1,Cl.useOptimistic=function(e,n){var l=kt();return Je!==null?K0(l,Je,e,n):(l.baseState=e,[e,l.queue.dispatch])};function fd(e,n,l,o){n=e.memoizedState,l=l(o,n),l=l==null?n:E({},n,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var dd={isMounted:function(e){return(e=e._reactInternals)?W(e)===e:!1},enqueueSetState:function(e,n,l){e=e._reactInternals;var o=yn(),c=Ir(o);c.payload=n,l!=null&&(c.callback=l),n=qr(e,c,o),n!==null&&(Pt(n,e,o),eo(n,e,o))},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var o=yn(),c=Ir(o);c.tag=1,c.payload=n,l!=null&&(c.callback=l),n=qr(e,c,o),n!==null&&(Pt(n,e,o),eo(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=yn(),o=Ir(l);o.tag=2,n!=null&&(o.callback=n),n=qr(e,o,l),n!==null&&(Pt(n,e,l),eo(n,e,l))}};function C1(e,n,l,o,c,d,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,d,b):n.prototype&&n.prototype.isPureReactComponent?!Hi(l,o)||!Hi(c,d):!0}function T1(e,n,l,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,o),n.state!==e&&dd.enqueueReplaceState(n,n.state,null)}function Tl(e,n){var l=n;if("ref"in n){l={};for(var o in n)o!=="ref"&&(l[o]=n[o])}if(e=e.defaultProps){l===n&&(l=E({},l));for(var c in e)l[c]===void 0&&(l[c]=e[c])}return l}var Pu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function w1(e){Pu(e)}function A1(e){console.error(e)}function k1(e){Pu(e)}function Qu(e,n){try{var l=e.onUncaughtError;l(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function R1(e,n,l){try{var o=e.onCaughtError;o(l.value,{componentStack:l.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function hd(e,n,l){return l=Ir(l),l.tag=3,l.payload={element:null},l.callback=function(){Qu(e,n)},l}function O1(e){return e=Ir(e),e.tag=3,e}function _1(e,n,l,o){var c=l.type.getDerivedStateFromError;if(typeof c=="function"){var d=o.value;e.payload=function(){return c(d)},e.callback=function(){R1(n,l,o)}}var b=l.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){R1(n,l,o),typeof c!="function"&&(Pr===null?Pr=new Set([this]):Pr.add(this));var C=o.stack;this.componentDidCatch(o.value,{componentStack:C!==null?C:""})})}function L4(e,n,l,o,c){if(l.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=l.alternate,n!==null&&Wi(n,l,c,!0),l=On.current,l!==null){switch(l.tag){case 13:return Jn===null?Pd():l.alternate===null&&gt===0&&(gt=3),l.flags&=-257,l.flags|=65536,l.lanes=c,o===Gf?l.flags|=16384:(n=l.updateQueue,n===null?l.updateQueue=new Set([o]):n.add(o),Kd(e,o,c)),!1;case 22:return l.flags|=65536,o===Gf?l.flags|=16384:(n=l.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},l.updateQueue=n):(l=n.retryQueue,l===null?n.retryQueue=new Set([o]):l.add(o)),Kd(e,o,c)),!1}throw Error(i(435,l.tag))}return Kd(e,o,c),Pd(),!1}if(Fe)return n=On.current,n!==null?(!(n.flags&65536)&&(n.flags|=256),n.flags|=65536,n.lanes=c,o!==qf&&(e=Error(i(422),{cause:o}),qi(An(e,l)))):(o!==qf&&(n=Error(i(423),{cause:o}),qi(An(n,l))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,o=An(o,l),c=hd(e.stateNode,o,c),Rd(e,c),gt!==4&&(gt=2)),!1;var d=Error(i(520),{cause:o});if(d=An(d,l),uo===null?uo=[d]:uo.push(d),gt!==4&&(gt=2),n===null)return!0;o=An(o,l),l=n;do{switch(l.tag){case 3:return l.flags|=65536,e=c&-c,l.lanes|=e,e=hd(l.stateNode,o,e),Rd(l,e),!1;case 1:if(n=l.type,d=l.stateNode,(l.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Pr===null||!Pr.has(d))))return l.flags|=65536,c&=-c,l.lanes|=c,c=O1(c),_1(c,e,l,o),Rd(l,c),!1}l=l.return}while(l!==null);return!1}var M1=Error(i(461)),Bt=!1;function Vt(e,n,l,o){n.child=e===null?L0(n,null,l,o):Sl(n,e.child,l,o)}function D1(e,n,l,o,c){l=l.render;var d=n.ref;if("ref"in o){var b={};for(var C in o)C!=="ref"&&(b[C]=o[C])}else b=o;return Al(n),o=Kf(e,n,l,b,d,c),C=Zf(),e!==null&&!Bt?(Jf(e,n,c),pr(e,n,c)):(Fe&&C&&Vf(n),n.flags|=1,Vt(e,n,o,c),n.child)}function N1(e,n,l,o,c){if(e===null){var d=l.type;return typeof d=="function"&&!Ld(d)&&d.defaultProps===void 0&&l.compare===null?(n.tag=15,n.type=d,z1(e,n,d,o,c)):(e=es(l.type,null,o,n,n.mode,c),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,!Ed(e,c)){var b=d.memoizedProps;if(l=l.compare,l=l!==null?l:Hi,l(b,o)&&e.ref===n.ref)return pr(e,n,c)}return n.flags|=1,e=Fr(d,o),e.ref=n.ref,e.return=n,n.child=e}function z1(e,n,l,o,c){if(e!==null){var d=e.memoizedProps;if(Hi(d,o)&&e.ref===n.ref)if(Bt=!1,n.pendingProps=o=d,Ed(e,c))e.flags&131072&&(Bt=!0);else return n.lanes=e.lanes,pr(e,n,c)}return pd(e,n,l,o,c)}function B1(e,n,l){var o=n.pendingProps,c=o.children,d=(n.stateNode._pendingVisibility&2)!==0,b=e!==null?e.memoizedState:null;if(Ji(e,n),o.mode==="hidden"||d){if(n.flags&128){if(o=b!==null?b.baseLanes|l:l,e!==null){for(c=n.child=e.child,d=0;c!==null;)d=d|c.lanes|c.childLanes,c=c.sibling;n.childLanes=d&~o}else n.childLanes=0,n.child=null;return L1(e,n,o,l)}if(l&536870912)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&ju(n,b!==null?b.cachePool:null),b!==null?U0(n,b):Yf(),H0(n);else return n.lanes=n.childLanes=536870912,L1(e,n,b!==null?b.baseLanes|l:l,l)}else b!==null?(ju(n,b.cachePool),U0(n,b),Lr(),n.memoizedState=null):(e!==null&&ju(n,null),Yf(),Lr());return Vt(e,n,c,l),n.child}function L1(e,n,l,o){var c=Pf();return c=c===null?null:{parent:Mt._currentValue,pool:c},n.memoizedState={baseLanes:l,cachePool:c},e!==null&&ju(n,null),Yf(),H0(n),e!==null&&Wi(e,n,o,!0),null}function Ji(e,n){var l=n.ref;if(l===null)e!==null&&e.ref!==null&&(n.flags|=2097664);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(e===null||e.ref!==l)&&(n.flags|=2097664)}}function pd(e,n,l,o,c){return Al(n),l=Kf(e,n,l,o,void 0,c),o=Zf(),e!==null&&!Bt?(Jf(e,n,c),pr(e,n,c)):(Fe&&o&&Vf(n),n.flags|=1,Vt(e,n,l,c),n.child)}function U1(e,n,l,o,c,d){return Al(n),n.updateQueue=null,l=G0(n,o,l,c),q0(e),o=Zf(),e!==null&&!Bt?(Jf(e,n,d),pr(e,n,d)):(Fe&&o&&Vf(n),n.flags|=1,Vt(e,n,l,d),n.child)}function H1(e,n,l,o,c){if(Al(n),n.stateNode===null){var d=da,b=l.contextType;typeof b=="object"&&b!==null&&(d=Ft(b)),d=new l(o,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=dd,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=o,d.state=n.memoizedState,d.refs={},Ad(n),b=l.contextType,d.context=typeof b=="object"&&b!==null?Ft(b):da,d.state=n.memoizedState,b=l.getDerivedStateFromProps,typeof b=="function"&&(fd(n,l,b,o),d.state=n.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(b=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),b!==d.state&&dd.enqueueReplaceState(d,d.state,null),no(n,o,d,c),to(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){d=n.stateNode;var C=n.memoizedProps,_=Tl(l,C);d.props=_;var U=d.context,J=l.contextType;b=da,typeof J=="object"&&J!==null&&(b=Ft(J));var ae=l.getDerivedStateFromProps;J=typeof ae=="function"||typeof d.getSnapshotBeforeUpdate=="function",C=n.pendingProps!==C,J||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(C||U!==b)&&T1(n,d,o,b),Vr=!1;var Y=n.memoizedState;d.state=Y,no(n,o,d,c),to(),U=n.memoizedState,C||Y!==U||Vr?(typeof ae=="function"&&(fd(n,l,ae,o),U=n.memoizedState),(_=Vr||C1(n,l,_,o,Y,U,b))?(J||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(n.flags|=4194308)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=U),d.props=o,d.state=U,d.context=b,o=_):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{d=n.stateNode,kd(e,n),b=n.memoizedProps,J=Tl(l,b),d.props=J,ae=n.pendingProps,Y=d.context,U=l.contextType,_=da,typeof U=="object"&&U!==null&&(_=Ft(U)),C=l.getDerivedStateFromProps,(U=typeof C=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b!==ae||Y!==_)&&T1(n,d,o,_),Vr=!1,Y=n.memoizedState,d.state=Y,no(n,o,d,c),to();var K=n.memoizedState;b!==ae||Y!==K||Vr||e!==null&&e.dependencies!==null&&Ku(e.dependencies)?(typeof C=="function"&&(fd(n,l,C,o),K=n.memoizedState),(J=Vr||C1(n,l,J,o,Y,K,_)||e!==null&&e.dependencies!==null&&Ku(e.dependencies))?(U||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,K,_),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,K,_)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||b===e.memoizedProps&&Y===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Y===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=K),d.props=o,d.state=K,d.context=_,o=J):(typeof d.componentDidUpdate!="function"||b===e.memoizedProps&&Y===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Y===e.memoizedState||(n.flags|=1024),o=!1)}return d=o,Ji(e,n),o=(n.flags&128)!==0,d||o?(d=n.stateNode,l=o&&typeof l.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,e!==null&&o?(n.child=Sl(n,e.child,null,c),n.child=Sl(n,null,l,c)):Vt(e,n,l,c),n.memoizedState=d.state,e=n.child):e=pr(e,n,c),e}function j1(e,n,l,o){return Ii(),n.flags|=256,Vt(e,n,l,o),n.child}var md={dehydrated:null,treeContext:null,retryLane:0};function gd(e){return{baseLanes:e,cachePool:I0()}}function yd(e,n,l){return e=e!==null?e.childLanes&~l:0,n&&(e|=Nn),e}function V1(e,n,l){var o=n.pendingProps,c=!1,d=(n.flags&128)!==0,b;if((b=d)||(b=e!==null&&e.memoizedState===null?!1:(_t.current&2)!==0),b&&(c=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(Fe){if(c?Br(n):Lr(),Fe){var C=jt,_;if(_=C){e:{for(_=C,C=Zn;_.nodeType!==8;){if(!C){C=null;break e}if(_=Vn(_.nextSibling),_===null){C=null;break e}}C=_}C!==null?(n.memoizedState={dehydrated:C,treeContext:gl!==null?{id:cr,overflow:fr}:null,retryLane:536870912},_=Dn(18,null,null,0),_.stateNode=C,_.return=n,n.child=_,Xt=n,jt=null,_=!0):_=!1}_||bl(n)}if(C=n.memoizedState,C!==null&&(C=C.dehydrated,C!==null))return C.data==="$!"?n.lanes=16:n.lanes=536870912,null;dr(n)}return C=o.children,o=o.fallback,c?(Lr(),c=n.mode,C=Sd({mode:"hidden",children:C},c),o=Rl(o,c,l,null),C.return=n,o.return=n,C.sibling=o,n.child=C,c=n.child,c.memoizedState=gd(l),c.childLanes=yd(e,b,l),n.memoizedState=md,o):(Br(n),bd(n,C))}if(_=e.memoizedState,_!==null&&(C=_.dehydrated,C!==null)){if(d)n.flags&256?(Br(n),n.flags&=-257,n=vd(e,n,l)):n.memoizedState!==null?(Lr(),n.child=e.child,n.flags|=128,n=null):(Lr(),c=o.fallback,C=n.mode,o=Sd({mode:"visible",children:o.children},C),c=Rl(c,C,l,null),c.flags|=2,o.return=n,c.return=n,o.sibling=c,n.child=o,Sl(n,e.child,null,l),o=n.child,o.memoizedState=gd(l),o.childLanes=yd(e,b,l),n.memoizedState=md,n=c);else if(Br(n),C.data==="$!"){if(b=C.nextSibling&&C.nextSibling.dataset,b)var U=b.dgst;b=U,o=Error(i(419)),o.stack="",o.digest=b,qi({value:o,source:null,stack:null}),n=vd(e,n,l)}else if(Bt||Wi(e,n,l,!1),b=(l&e.childLanes)!==0,Bt||b){if(b=ot,b!==null){if(o=l&-l,o&42)o=1;else switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=64;break;case 268435456:o=134217728;break;default:o=0}if(o=o&(b.suspendedLanes|l)?0:o,o!==0&&o!==_.retryLane)throw _.retryLane=o,zr(e,o),Pt(b,e,o),M1}C.data==="$?"||Pd(),n=vd(e,n,l)}else C.data==="$?"?(n.flags|=128,n.child=e.child,n=Z4.bind(null,e),C._reactRetry=n,n=null):(e=_.treeContext,jt=Vn(C.nextSibling),Xt=n,Fe=!0,Hn=null,Zn=!1,e!==null&&(kn[Rn++]=cr,kn[Rn++]=fr,kn[Rn++]=gl,cr=e.id,fr=e.overflow,gl=n),n=bd(n,o.children),n.flags|=4096);return n}return c?(Lr(),c=o.fallback,C=n.mode,_=e.child,U=_.sibling,o=Fr(_,{mode:"hidden",children:o.children}),o.subtreeFlags=_.subtreeFlags&31457280,U!==null?c=Fr(U,c):(c=Rl(c,C,l,null),c.flags|=2),c.return=n,o.return=n,o.sibling=c,n.child=o,o=c,c=n.child,C=e.child.memoizedState,C===null?C=gd(l):(_=C.cachePool,_!==null?(U=Mt._currentValue,_=_.parent!==U?{parent:U,pool:U}:_):_=I0(),C={baseLanes:C.baseLanes|l,cachePool:_}),c.memoizedState=C,c.childLanes=yd(e,b,l),n.memoizedState=md,o):(Br(n),l=e.child,e=l.sibling,l=Fr(l,{mode:"visible",children:o.children}),l.return=n,l.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=l,n.memoizedState=null,l)}function bd(e,n){return n=Sd({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Sd(e,n){return db(e,n,0,null)}function vd(e,n,l){return Sl(n,e.child,null,l),e=bd(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function I1(e,n,l){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),Td(e.return,n,l)}function xd(e,n,l,o,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:l,tailMode:c}:(d.isBackwards=n,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=l,d.tailMode=c)}function q1(e,n,l){var o=n.pendingProps,c=o.revealOrder,d=o.tail;if(Vt(e,n,o.children,l),o=_t.current,o&2)o=o&1|2,n.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&I1(e,l,n);else if(e.tag===19)I1(e,l,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(de(_t,o),c){case"forwards":for(l=n.child,c=null;l!==null;)e=l.alternate,e!==null&&Hu(e)===null&&(c=l),l=l.sibling;l=c,l===null?(c=n.child,n.child=null):(c=l.sibling,l.sibling=null),xd(n,!1,c,l,d);break;case"backwards":for(l=null,c=n.child,n.child=null;c!==null;){if(e=c.alternate,e!==null&&Hu(e)===null){n.child=c;break}e=c.sibling,c.sibling=l,l=c,c=e}xd(n,!0,l,null,d);break;case"together":xd(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function pr(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),Xr|=n.lanes,!(l&n.childLanes))if(e!==null){if(Wi(e,n,l,!1),(l&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,l=Fr(e,e.pendingProps),n.child=l,l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=Fr(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function Ed(e,n){return e.lanes&n?!0:(e=e.dependencies,!!(e!==null&&Ku(e)))}function U4(e,n,l){switch(n.tag){case 3:Ee(n,n.stateNode.containerInfo),jr(n,Mt,e.memoizedState.cache),Ii();break;case 27:case 5:je(n);break;case 4:Ee(n,n.stateNode.containerInfo);break;case 10:jr(n,n.type,n.memoizedProps.value);break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(Br(n),n.flags|=128,null):l&n.child.childLanes?V1(e,n,l):(Br(n),e=pr(e,n,l),e!==null?e.sibling:null);Br(n);break;case 19:var c=(e.flags&128)!==0;if(o=(l&n.childLanes)!==0,o||(Wi(e,n,l,!1),o=(l&n.childLanes)!==0),c){if(o)return q1(e,n,l);n.flags|=128}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),de(_t,_t.current),o)break;return null;case 22:case 23:return n.lanes=0,B1(e,n,l);case 24:jr(n,Mt,e.memoizedState.cache)}return pr(e,n,l)}function G1(e,n,l){if(e!==null)if(e.memoizedProps!==n.pendingProps)Bt=!0;else{if(!Ed(e,l)&&!(n.flags&128))return Bt=!1,U4(e,n,l);Bt=!!(e.flags&131072)}else Bt=!1,Fe&&n.flags&1048576&&k0(n,Nu,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var o=n.elementType,c=o._init;if(o=c(o._payload),n.type=o,typeof o=="function")Ld(o)?(e=Tl(o,e),n.tag=1,n=H1(null,n,o,e,l)):(n.tag=0,n=pd(null,n,o,e,l));else{if(o!=null){if(c=o.$$typeof,c===O){n.tag=11,n=D1(null,n,o,e,l);break e}else if(c===T){n.tag=14,n=N1(null,n,o,e,l);break e}}throw n=te(o)||o,Error(i(306,n,""))}}return n;case 0:return pd(e,n,n.type,n.pendingProps,l);case 1:return o=n.type,c=Tl(o,n.pendingProps),H1(e,n,o,c,l);case 3:e:{if(Ee(n,n.stateNode.containerInfo),e===null)throw Error(i(387));var d=n.pendingProps;c=n.memoizedState,o=c.element,kd(e,n),no(n,d,null,l);var b=n.memoizedState;if(d=b.cache,jr(n,Mt,d),d!==c.cache&&wd(n,[Mt],l,!0),to(),d=b.element,c.isDehydrated)if(c={element:d,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=c,n.memoizedState=c,n.flags&256){n=j1(e,n,d,l);break e}else if(d!==o){o=An(Error(i(424)),n),qi(o),n=j1(e,n,d,l);break e}else for(jt=Vn(n.stateNode.containerInfo.firstChild),Xt=n,Fe=!0,Hn=null,Zn=!0,l=L0(n,null,d,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ii(),d===o){n=pr(e,n,l);break e}Vt(e,n,d,l)}n=n.child}return n;case 26:return Ji(e,n),e===null?(l=Fb(n.type,null,n.pendingProps,null))?n.memoizedState=l:Fe||(l=n.type,e=n.pendingProps,o=ds(me.current).createElement(l),o[$t]=n,o[nn]=e,It(o,l,e),zt(o),n.stateNode=o):n.memoizedState=Fb(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return je(n),e===null&&Fe&&(o=n.stateNode=Gb(n.type,n.pendingProps,me.current),Xt=n,Zn=!0,jt=Vn(o.firstChild)),o=n.pendingProps.children,e!==null||Fe?Vt(e,n,o,l):n.child=Sl(n,null,o,l),Ji(e,n),n.child;case 5:return e===null&&Fe&&((c=o=jt)&&(o=h3(o,n.type,n.pendingProps,Zn),o!==null?(n.stateNode=o,Xt=n,jt=Vn(o.firstChild),Zn=!1,c=!0):c=!1),c||bl(n)),je(n),c=n.type,d=n.pendingProps,b=e!==null?e.memoizedProps:null,o=d.children,uh(c,d)?o=null:b!==null&&uh(c,b)&&(n.flags|=32),n.memoizedState!==null&&(c=Kf(e,n,_4,null,null,l),bo._currentValue=c),Ji(e,n),Vt(e,n,o,l),n.child;case 6:return e===null&&Fe&&((e=l=jt)&&(l=p3(l,n.pendingProps,Zn),l!==null?(n.stateNode=l,Xt=n,jt=null,e=!0):e=!1),e||bl(n)),null;case 13:return V1(e,n,l);case 4:return Ee(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=Sl(n,null,o,l):Vt(e,n,o,l),n.child;case 11:return D1(e,n,n.type,n.pendingProps,l);case 7:return Vt(e,n,n.pendingProps,l),n.child;case 8:return Vt(e,n,n.pendingProps.children,l),n.child;case 12:return Vt(e,n,n.pendingProps.children,l),n.child;case 10:return o=n.pendingProps,jr(n,n.type,o.value),Vt(e,n,o.children,l),n.child;case 9:return c=n.type._context,o=n.pendingProps.children,Al(n),c=Ft(c),o=o(c),n.flags|=1,Vt(e,n,o,l),n.child;case 14:return N1(e,n,n.type,n.pendingProps,l);case 15:return z1(e,n,n.type,n.pendingProps,l);case 19:return q1(e,n,l);case 22:return B1(e,n,l);case 24:return Al(n),o=Ft(Mt),e===null?(c=Pf(),c===null&&(c=ot,d=Ff(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=l),c=d),n.memoizedState={parent:o,cache:c},Ad(n),jr(n,Mt,c)):(e.lanes&l&&(kd(e,n),no(n,null,null,l),to()),c=e.memoizedState,d=n.memoizedState,c.parent!==o?(c={parent:o,cache:o},n.memoizedState=c,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=c),jr(n,Mt,o)):(o=d.cache,jr(n,Mt,o),o!==c.cache&&wd(n,[Mt],l,!0))),Vt(e,n,n.pendingProps.children,l),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}var Cd=xe(null),wl=null,mr=null;function jr(e,n,l){de(Cd,n._currentValue),n._currentValue=l}function gr(e){e._currentValue=Cd.current,Re(Cd)}function Td(e,n,l){for(;e!==null;){var o=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),e===l)break;e=e.return}}function wd(e,n,l,o){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var b=c.child;d=d.firstContext;e:for(;d!==null;){var C=d;d=c;for(var _=0;_<n.length;_++)if(C.context===n[_]){d.lanes|=l,C=d.alternate,C!==null&&(C.lanes|=l),Td(d.return,l,e),o||(b=null);break e}d=C.next}}else if(c.tag===18){if(b=c.return,b===null)throw Error(i(341));b.lanes|=l,d=b.alternate,d!==null&&(d.lanes|=l),Td(b,l,e),b=null}else b=c.child;if(b!==null)b.return=c;else for(b=c;b!==null;){if(b===e){b=null;break}if(c=b.sibling,c!==null){c.return=b.return,b=c;break}b=b.return}c=b}}function Wi(e,n,l,o){e=null;for(var c=n,d=!1;c!==null;){if(!d){if(c.flags&524288)d=!0;else if(c.flags&262144)break}if(c.tag===10){var b=c.alternate;if(b===null)throw Error(i(387));if(b=b.memoizedProps,b!==null){var C=c.type;hn(c.pendingProps.value,b.value)||(e!==null?e.push(C):e=[C])}}else if(c===se.current){if(b=c.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(bo):e=[bo])}c=c.return}e!==null&&wd(n,e,l,o),n.flags|=262144}function Ku(e){for(e=e.firstContext;e!==null;){if(!hn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Al(e){wl=e,mr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ft(e){return Y1(wl,e)}function Zu(e,n){return wl===null&&Al(e),Y1(e,n)}function Y1(e,n){var l=n._currentValue;if(n={context:n,memoizedValue:l,next:null},mr===null){if(e===null)throw Error(i(308));mr=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else mr=mr.next=n;return l}var Vr=!1;function Ad(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function kd(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ir(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function qr(e,n,l){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,ft&2){var c=o.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),o.pending=n,n=Mu(e),w0(e,null,l),n}return _u(e,o,n,l),Mu(e)}function eo(e,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194176)!==0)){var o=n.lanes;o&=e.pendingLanes,l|=o,n.lanes=l,Ny(e,l)}}function Rd(e,n){var l=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,l===o)){var c=null,d=null;if(l=l.firstBaseUpdate,l!==null){do{var b={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};d===null?c=d=b:d=d.next=b,l=l.next}while(l!==null);d===null?c=d=n:d=d.next=n}else c=d=n;l={baseState:o.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:o.shared,callbacks:o.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=n:e.next=n,l.lastBaseUpdate=n}var Od=!1;function to(){if(Od){var e=ba;if(e!==null)throw e}}function no(e,n,l,o){Od=!1;var c=e.updateQueue;Vr=!1;var d=c.firstBaseUpdate,b=c.lastBaseUpdate,C=c.shared.pending;if(C!==null){c.shared.pending=null;var _=C,U=_.next;_.next=null,b===null?d=U:b.next=U,b=_;var J=e.alternate;J!==null&&(J=J.updateQueue,C=J.lastBaseUpdate,C!==b&&(C===null?J.firstBaseUpdate=U:C.next=U,J.lastBaseUpdate=_))}if(d!==null){var ae=c.baseState;b=0,J=U=_=null,C=d;do{var Y=C.lane&-536870913,K=Y!==C.lane;if(K?(Ge&Y)===Y:(o&Y)===Y){Y!==0&&Y===ya&&(Od=!0),J!==null&&(J=J.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{var be=e,Ae=C;Y=n;var yt=l;switch(Ae.tag){case 1:if(be=Ae.payload,typeof be=="function"){ae=be.call(yt,ae,Y);break e}ae=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=Ae.payload,Y=typeof be=="function"?be.call(yt,ae,Y):be,Y==null)break e;ae=E({},ae,Y);break e;case 2:Vr=!0}}Y=C.callback,Y!==null&&(e.flags|=64,K&&(e.flags|=8192),K=c.callbacks,K===null?c.callbacks=[Y]:K.push(Y))}else K={lane:Y,tag:C.tag,payload:C.payload,callback:C.callback,next:null},J===null?(U=J=K,_=ae):J=J.next=K,b|=Y;if(C=C.next,C===null){if(C=c.shared.pending,C===null)break;K=C,C=K.next,K.next=null,c.lastBaseUpdate=K,c.shared.pending=null}}while(!0);J===null&&(_=ae),c.baseState=_,c.firstBaseUpdate=U,c.lastBaseUpdate=J,d===null&&(c.shared.lanes=0),Xr|=b,e.lanes=b,e.memoizedState=ae}}function $1(e,n){if(typeof e!="function")throw Error(i(191,e));e.call(n)}function F1(e,n){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)$1(l[e],n)}function ro(e,n){try{var l=n.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){o=void 0;var d=l.create,b=l.inst;o=d(),b.destroy=o}l=l.next}while(l!==c)}}catch(C){nt(n,n.return,C)}}function Gr(e,n,l){try{var o=n.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var d=c.next;o=d;do{if((o.tag&e)===e){var b=o.inst,C=b.destroy;if(C!==void 0){b.destroy=void 0,c=n;var _=l;try{C()}catch(U){nt(c,_,U)}}}o=o.next}while(o!==d)}}catch(U){nt(n,n.return,U)}}function X1(e){var n=e.updateQueue;if(n!==null){var l=e.stateNode;try{F1(n,l)}catch(o){nt(e,e.return,o)}}}function P1(e,n,l){l.props=Tl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(o){nt(e,n,o)}}function kl(e,n){try{var l=e.ref;if(l!==null){var o=e.stateNode;switch(e.tag){case 26:case 27:case 5:var c=o;break;default:c=o}typeof l=="function"?e.refCleanup=l(c):l.current=c}}catch(d){nt(e,n,d)}}function pn(e,n){var l=e.ref,o=e.refCleanup;if(l!==null)if(typeof o=="function")try{o()}catch(c){nt(e,n,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(c){nt(e,n,c)}else l.current=null}function Q1(e){var n=e.type,l=e.memoizedProps,o=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":l.autoFocus&&o.focus();break e;case"img":l.src?o.src=l.src:l.srcSet&&(o.srcset=l.srcSet)}}catch(c){nt(e,e.return,c)}}function K1(e,n,l){try{var o=e.stateNode;u3(o,e.type,l,n),o[nn]=n}catch(c){nt(e,e.return,c)}}function Z1(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27||e.tag===4}function _d(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Z1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==27&&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 Md(e,n,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?l.nodeType===8?l.parentNode.insertBefore(e,n):l.insertBefore(e,n):(l.nodeType===8?(n=l.parentNode,n.insertBefore(e,l)):(n=l,n.appendChild(e)),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=fs));else if(o!==4&&o!==27&&(e=e.child,e!==null))for(Md(e,n,l),e=e.sibling;e!==null;)Md(e,n,l),e=e.sibling}function Ju(e,n,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?l.insertBefore(e,n):l.appendChild(e);else if(o!==4&&o!==27&&(e=e.child,e!==null))for(Ju(e,n,l),e=e.sibling;e!==null;)Ju(e,n,l),e=e.sibling}var yr=!1,mt=!1,Dd=!1,J1=typeof WeakSet=="function"?WeakSet:Set,Lt=null,W1=!1;function H4(e,n){if(e=e.containerInfo,ih=bs,e=g0(e),zf(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var o=l.getSelection&&l.getSelection();if(o&&o.rangeCount!==0){l=o.anchorNode;var c=o.anchorOffset,d=o.focusNode;o=o.focusOffset;try{l.nodeType,d.nodeType}catch{l=null;break e}var b=0,C=-1,_=-1,U=0,J=0,ae=e,Y=null;t:for(;;){for(var K;ae!==l||c!==0&&ae.nodeType!==3||(C=b+c),ae!==d||o!==0&&ae.nodeType!==3||(_=b+o),ae.nodeType===3&&(b+=ae.nodeValue.length),(K=ae.firstChild)!==null;)Y=ae,ae=K;for(;;){if(ae===e)break t;if(Y===l&&++U===c&&(C=b),Y===d&&++J===o&&(_=b),(K=ae.nextSibling)!==null)break;ae=Y,Y=ae.parentNode}ae=K}l=C===-1||_===-1?null:{start:C,end:_}}else l=null}l=l||{start:0,end:0}}else l=null;for(oh={focusedElem:e,selectionRange:l},bs=!1,Lt=n;Lt!==null;)if(n=Lt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Lt=e;else for(;Lt!==null;){switch(n=Lt,d=n.alternate,e=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&d!==null){e=void 0,l=n,c=d.memoizedProps,d=d.memoizedState,o=l.stateNode;try{var be=Tl(l.type,c,l.elementType===l.type);e=o.getSnapshotBeforeUpdate(be,d),o.__reactInternalSnapshotBeforeUpdate=e}catch(Ae){nt(l,l.return,Ae)}}break;case 3:if(e&1024){if(e=n.stateNode.containerInfo,l=e.nodeType,l===9)fh(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":fh(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=n.sibling,e!==null){e.return=n.return,Lt=e;break}Lt=n.return}return be=W1,W1=!1,be}function eb(e,n,l){var o=l.flags;switch(l.tag){case 0:case 11:case 15:Sr(e,l),o&4&&ro(5,l);break;case 1:if(Sr(e,l),o&4)if(e=l.stateNode,n===null)try{e.componentDidMount()}catch(C){nt(l,l.return,C)}else{var c=Tl(l.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(c,n,e.__reactInternalSnapshotBeforeUpdate)}catch(C){nt(l,l.return,C)}}o&64&&X1(l),o&512&&kl(l,l.return);break;case 3:if(Sr(e,l),o&64&&(o=l.updateQueue,o!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{F1(o,e)}catch(C){nt(l,l.return,C)}}break;case 26:Sr(e,l),o&512&&kl(l,l.return);break;case 27:case 5:Sr(e,l),n===null&&o&4&&Q1(l),o&512&&kl(l,l.return);break;case 12:Sr(e,l);break;case 13:Sr(e,l),o&4&&rb(e,l);break;case 22:if(c=l.memoizedState!==null||yr,!c){n=n!==null&&n.memoizedState!==null||mt;var d=yr,b=mt;yr=c,(mt=n)&&!b?Yr(e,l,(l.subtreeFlags&8772)!==0):Sr(e,l),yr=d,mt=b}o&512&&(l.memoizedProps.mode==="manual"?kl(l,l.return):pn(l,l.return));break;default:Sr(e,l)}}function tb(e){var n=e.alternate;n!==null&&(e.alternate=null,tb(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&bf(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Rt=null,mn=!1;function br(e,n,l){for(l=l.child;l!==null;)nb(e,n,l),l=l.sibling}function nb(e,n,l){if(Ot&&typeof Ot.onCommitFiberUnmount=="function")try{Ot.onCommitFiberUnmount(Nt,l)}catch{}switch(l.tag){case 26:mt||pn(l,n),br(e,n,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:mt||pn(l,n);var o=Rt,c=mn;for(Rt=l.stateNode,br(e,n,l),l=l.stateNode,n=l.attributes;n.length;)l.removeAttributeNode(n[0]);bf(l),Rt=o,mn=c;break;case 5:mt||pn(l,n);case 6:c=Rt;var d=mn;if(Rt=null,br(e,n,l),Rt=c,mn=d,Rt!==null)if(mn)try{e=Rt,o=l.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)}catch(b){nt(l,n,b)}else try{Rt.removeChild(l.stateNode)}catch(b){nt(l,n,b)}break;case 18:Rt!==null&&(mn?(n=Rt,l=l.stateNode,n.nodeType===8?ch(n.parentNode,l):n.nodeType===1&&ch(n,l),Eo(n)):ch(Rt,l.stateNode));break;case 4:o=Rt,c=mn,Rt=l.stateNode.containerInfo,mn=!0,br(e,n,l),Rt=o,mn=c;break;case 0:case 11:case 14:case 15:mt||Gr(2,l,n),mt||Gr(4,l,n),br(e,n,l);break;case 1:mt||(pn(l,n),o=l.stateNode,typeof o.componentWillUnmount=="function"&&P1(l,n,o)),br(e,n,l);break;case 21:br(e,n,l);break;case 22:mt||pn(l,n),mt=(o=mt)||l.memoizedState!==null,br(e,n,l),mt=o;break;default:br(e,n,l)}}function rb(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Eo(e)}catch(l){nt(n,n.return,l)}}function j4(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new J1),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new J1),n;default:throw Error(i(435,e.tag))}}function Nd(e,n){var l=j4(e);n.forEach(function(o){var c=J4.bind(null,e,o);l.has(o)||(l.add(o),o.then(c,c))})}function _n(e,n){var l=n.deletions;if(l!==null)for(var o=0;o<l.length;o++){var c=l[o],d=e,b=n,C=b;e:for(;C!==null;){switch(C.tag){case 27:case 5:Rt=C.stateNode,mn=!1;break e;case 3:Rt=C.stateNode.containerInfo,mn=!0;break e;case 4:Rt=C.stateNode.containerInfo,mn=!0;break e}C=C.return}if(Rt===null)throw Error(i(160));nb(d,b,c),Rt=null,mn=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)lb(n,e),n=n.sibling}var jn=null;function lb(e,n){var l=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_n(n,e),Mn(e),o&4&&(Gr(3,e,e.return),ro(3,e),Gr(5,e,e.return));break;case 1:_n(n,e),Mn(e),o&512&&(mt||l===null||pn(l,l.return)),o&64&&yr&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?o:l.concat(o))));break;case 26:var c=jn;if(_n(n,e),Mn(e),o&512&&(mt||l===null||pn(l,l.return)),o&4){var d=l!==null?l.memoizedState:null;if(o=e.memoizedState,l===null)if(o===null)if(e.stateNode===null){e:{o=e.type,l=e.memoizedProps,c=c.ownerDocument||c;t:switch(o){case"title":d=c.getElementsByTagName("title")[0],(!d||d[Oi]||d[$t]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(o),c.head.insertBefore(d,c.querySelector("head > title"))),It(d,o,l),d[$t]=e,zt(d),o=d;break e;case"link":var b=Qb("link","href",c).get(o+(l.href||""));if(b){for(var C=0;C<b.length;C++)if(d=b[C],d.getAttribute("href")===(l.href==null?null:l.href)&&d.getAttribute("rel")===(l.rel==null?null:l.rel)&&d.getAttribute("title")===(l.title==null?null:l.title)&&d.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){b.splice(C,1);break t}}d=c.createElement(o),It(d,o,l),c.head.appendChild(d);break;case"meta":if(b=Qb("meta","content",c).get(o+(l.content||""))){for(C=0;C<b.length;C++)if(d=b[C],d.getAttribute("content")===(l.content==null?null:""+l.content)&&d.getAttribute("name")===(l.name==null?null:l.name)&&d.getAttribute("property")===(l.property==null?null:l.property)&&d.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&d.getAttribute("charset")===(l.charSet==null?null:l.charSet)){b.splice(C,1);break t}}d=c.createElement(o),It(d,o,l),c.head.appendChild(d);break;default:throw Error(i(468,o))}d[$t]=e,zt(d),o=d}e.stateNode=o}else Kb(c,e.type,e.stateNode);else e.stateNode=Pb(c,o,e.memoizedProps);else d!==o?(d===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):d.count--,o===null?Kb(c,e.type,e.stateNode):Pb(c,o,e.memoizedProps)):o===null&&e.stateNode!==null&&K1(e,e.memoizedProps,l.memoizedProps)}break;case 27:if(o&4&&e.alternate===null){c=e.stateNode,d=e.memoizedProps;try{for(var _=c.firstChild;_;){var U=_.nextSibling,J=_.nodeName;_[Oi]||J==="HEAD"||J==="BODY"||J==="SCRIPT"||J==="STYLE"||J==="LINK"&&_.rel.toLowerCase()==="stylesheet"||c.removeChild(_),_=U}for(var ae=e.type,Y=c.attributes;Y.length;)c.removeAttributeNode(Y[0]);It(c,ae,d),c[$t]=e,c[nn]=d}catch(be){nt(e,e.return,be)}}case 5:if(_n(n,e),Mn(e),o&512&&(mt||l===null||pn(l,l.return)),e.flags&32){c=e.stateNode;try{aa(c,"")}catch(be){nt(e,e.return,be)}}o&4&&e.stateNode!=null&&(c=e.memoizedProps,K1(e,c,l!==null?l.memoizedProps:c)),o&1024&&(Dd=!0);break;case 6:if(_n(n,e),Mn(e),o&4){if(e.stateNode===null)throw Error(i(162));o=e.memoizedProps,l=e.stateNode;try{l.nodeValue=o}catch(be){nt(e,e.return,be)}}break;case 3:if(ms=null,c=jn,jn=hs(n.containerInfo),_n(n,e),jn=c,Mn(e),o&4&&l!==null&&l.memoizedState.isDehydrated)try{Eo(n.containerInfo)}catch(be){nt(e,e.return,be)}Dd&&(Dd=!1,ab(e));break;case 4:o=jn,jn=hs(e.stateNode.containerInfo),_n(n,e),Mn(e),jn=o;break;case 12:_n(n,e),Mn(e);break;case 13:_n(n,e),Mn(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(qd=Ne()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Nd(e,o)));break;case 22:if(o&512&&(mt||l===null||pn(l,l.return)),_=e.memoizedState!==null,U=l!==null&&l.memoizedState!==null,J=yr,ae=mt,yr=J||_,mt=ae||U,_n(n,e),mt=ae,yr=J,Mn(e),n=e.stateNode,n._current=e,n._visibility&=-3,n._visibility|=n._pendingVisibility&2,o&8192&&(n._visibility=_?n._visibility&-2:n._visibility|1,_&&(n=yr||mt,l===null||U||n||Ea(e)),e.memoizedProps===null||e.memoizedProps.mode!=="manual"))e:for(l=null,n=e;;){if(n.tag===5||n.tag===26||n.tag===27){if(l===null){U=l=n;try{if(c=U.stateNode,_)d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{b=U.stateNode,C=U.memoizedProps.style;var K=C!=null&&C.hasOwnProperty("display")?C.display:null;b.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(be){nt(U,U.return,be)}}}else if(n.tag===6){if(l===null){U=n;try{U.stateNode.nodeValue=_?"":U.memoizedProps}catch(be){nt(U,U.return,be)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;l===n&&(l=null),n=n.return}l===n&&(l=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=e.updateQueue,o!==null&&(l=o.retryQueue,l!==null&&(o.retryQueue=null,Nd(e,l))));break;case 19:_n(n,e),Mn(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Nd(e,o)));break;case 21:break;default:_n(n,e),Mn(e)}}function Mn(e){var n=e.flags;if(n&2){try{if(e.tag!==27){e:{for(var l=e.return;l!==null;){if(Z1(l)){var o=l;break e}l=l.return}throw Error(i(160))}switch(o.tag){case 27:var c=o.stateNode,d=_d(e);Ju(e,d,c);break;case 5:var b=o.stateNode;o.flags&32&&(aa(b,""),o.flags&=-33);var C=_d(e);Ju(e,C,b);break;case 3:case 4:var _=o.stateNode.containerInfo,U=_d(e);Md(e,U,_);break;default:throw Error(i(161))}}}catch(J){nt(e,e.return,J)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function ab(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;ab(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Sr(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)eb(e,n.alternate,n),n=n.sibling}function Ea(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Gr(4,n,n.return),Ea(n);break;case 1:pn(n,n.return);var l=n.stateNode;typeof l.componentWillUnmount=="function"&&P1(n,n.return,l),Ea(n);break;case 26:case 27:case 5:pn(n,n.return),Ea(n);break;case 22:pn(n,n.return),n.memoizedState===null&&Ea(n);break;default:Ea(n)}e=e.sibling}}function Yr(e,n,l){for(l=l&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,c=e,d=n,b=d.flags;switch(d.tag){case 0:case 11:case 15:Yr(c,d,l),ro(4,d);break;case 1:if(Yr(c,d,l),o=d,c=o.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(U){nt(o,o.return,U)}if(o=d,c=o.updateQueue,c!==null){var C=o.stateNode;try{var _=c.shared.hiddenCallbacks;if(_!==null)for(c.shared.hiddenCallbacks=null,c=0;c<_.length;c++)$1(_[c],C)}catch(U){nt(o,o.return,U)}}l&&b&64&&X1(d),kl(d,d.return);break;case 26:case 27:case 5:Yr(c,d,l),l&&o===null&&b&4&&Q1(d),kl(d,d.return);break;case 12:Yr(c,d,l);break;case 13:Yr(c,d,l),l&&b&4&&rb(c,d);break;case 22:d.memoizedState===null&&Yr(c,d,l),kl(d,d.return);break;default:Yr(c,d,l)}n=n.sibling}}function zd(e,n){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Xi(l))}function Bd(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Xi(e))}function $r(e,n,l,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)ib(e,n,l,o),n=n.sibling}function ib(e,n,l,o){var c=n.flags;switch(n.tag){case 0:case 11:case 15:$r(e,n,l,o),c&2048&&ro(9,n);break;case 3:$r(e,n,l,o),c&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Xi(e)));break;case 12:if(c&2048){$r(e,n,l,o),e=n.stateNode;try{var d=n.memoizedProps,b=d.id,C=d.onPostCommit;typeof C=="function"&&C(b,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(_){nt(n,n.return,_)}}else $r(e,n,l,o);break;case 23:break;case 22:d=n.stateNode,n.memoizedState!==null?d._visibility&4?$r(e,n,l,o):lo(e,n):d._visibility&4?$r(e,n,l,o):(d._visibility|=4,Ca(e,n,l,o,(n.subtreeFlags&10256)!==0)),c&2048&&zd(n.alternate,n);break;case 24:$r(e,n,l,o),c&2048&&Bd(n.alternate,n);break;default:$r(e,n,l,o)}}function Ca(e,n,l,o,c){for(c=c&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var d=e,b=n,C=l,_=o,U=b.flags;switch(b.tag){case 0:case 11:case 15:Ca(d,b,C,_,c),ro(8,b);break;case 23:break;case 22:var J=b.stateNode;b.memoizedState!==null?J._visibility&4?Ca(d,b,C,_,c):lo(d,b):(J._visibility|=4,Ca(d,b,C,_,c)),c&&U&2048&&zd(b.alternate,b);break;case 24:Ca(d,b,C,_,c),c&&U&2048&&Bd(b.alternate,b);break;default:Ca(d,b,C,_,c)}n=n.sibling}}function lo(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var l=e,o=n,c=o.flags;switch(o.tag){case 22:lo(l,o),c&2048&&zd(o.alternate,o);break;case 24:lo(l,o),c&2048&&Bd(o.alternate,o);break;default:lo(l,o)}n=n.sibling}}var ao=8192;function Ta(e){if(e.subtreeFlags&ao)for(e=e.child;e!==null;)ob(e),e=e.sibling}function ob(e){switch(e.tag){case 26:Ta(e),e.flags&ao&&e.memoizedState!==null&&k3(jn,e.memoizedState,e.memoizedProps);break;case 5:Ta(e);break;case 3:case 4:var n=jn;jn=hs(e.stateNode.containerInfo),Ta(e),jn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=ao,ao=16777216,Ta(e),ao=n):Ta(e));break;default:Ta(e)}}function ub(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function io(e){var n=e.deletions;if(e.flags&16){if(n!==null)for(var l=0;l<n.length;l++){var o=n[l];Lt=o,cb(o,e)}ub(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)sb(e),e=e.sibling}function sb(e){switch(e.tag){case 0:case 11:case 15:io(e),e.flags&2048&&Gr(9,e,e.return);break;case 3:io(e);break;case 12:io(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&4&&(e.return===null||e.return.tag!==13)?(n._visibility&=-5,Wu(e)):io(e);break;default:io(e)}}function Wu(e){var n=e.deletions;if(e.flags&16){if(n!==null)for(var l=0;l<n.length;l++){var o=n[l];Lt=o,cb(o,e)}ub(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Gr(8,n,n.return),Wu(n);break;case 22:l=n.stateNode,l._visibility&4&&(l._visibility&=-5,Wu(n));break;default:Wu(n)}e=e.sibling}}function cb(e,n){for(;Lt!==null;){var l=Lt;switch(l.tag){case 0:case 11:case 15:Gr(8,l,n);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var o=l.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Xi(l.memoizedState.cache)}if(o=l.child,o!==null)o.return=l,Lt=o;else e:for(l=e;Lt!==null;){o=Lt;var c=o.sibling,d=o.return;if(tb(o),o===l){Lt=null;break e}if(c!==null){c.return=d,Lt=c;break e}Lt=d}}}function V4(e,n,l,o){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dn(e,n,l,o){return new V4(e,n,l,o)}function Ld(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fr(e,n){var l=e.alternate;return l===null?(l=Dn(e.tag,n,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=n,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&31457280,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,n=e.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function fb(e,n){e.flags&=31457282;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,n=l.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function es(e,n,l,o,c,d){var b=0;if(o=e,typeof e=="function")Ld(e)&&(b=1);else if(typeof e=="string")b=w3(e,l,_e.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case m:return Rl(l.children,c,d,n);case p:b=8,c|=24;break;case g:return e=Dn(12,l,n,c|2),e.elementType=g,e.lanes=d,e;case w:return e=Dn(13,l,n,c),e.elementType=w,e.lanes=d,e;case B:return e=Dn(19,l,n,c),e.elementType=B,e.lanes=d,e;case A:return db(l,c,d,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case y:case S:b=10;break e;case x:b=9;break e;case O:b=11;break e;case T:b=14;break e;case N:b=16,o=null;break e}b=29,l=Error(i(130,e===null?"null":typeof e,"")),o=null}return n=Dn(b,l,n,c),n.elementType=e,n.type=o,n.lanes=d,n}function Rl(e,n,l,o){return e=Dn(7,e,o,n),e.lanes=l,e}function db(e,n,l,o){e=Dn(22,e,o,n),e.elementType=A,e.lanes=l;var c={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var d=c._current;if(d===null)throw Error(i(456));if(!(c._pendingVisibility&2)){var b=zr(d,2);b!==null&&(c._pendingVisibility|=2,Pt(b,d,2))}},attach:function(){var d=c._current;if(d===null)throw Error(i(456));if(c._pendingVisibility&2){var b=zr(d,2);b!==null&&(c._pendingVisibility&=-3,Pt(b,d,2))}}};return e.stateNode=c,e}function Ud(e,n,l){return e=Dn(6,e,null,n),e.lanes=l,e}function Hd(e,n,l){return n=Dn(4,e.children!==null?e.children:[],e.key,n),n.lanes=l,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function vr(e){e.flags|=4}function hb(e,n){if(n.type!=="stylesheet"||n.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Zb(n)){if(n=On.current,n!==null&&((Ge&4194176)===Ge?Jn!==null:(Ge&62914560)!==Ge&&!(Ge&536870912)||n!==Jn))throw Yi=Gf,_0;e.flags|=8192}}function ts(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?My():536870912,e.lanes|=n,Aa|=n)}function oo(e,n){if(!Fe)switch(e.tailMode){case"hidden":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var o=null;l!==null;)l.alternate!==null&&(o=l),l=l.sibling;o===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ct(e){var n=e.alternate!==null&&e.alternate.child===e.child,l=0,o=0;if(n)for(var c=e.child;c!==null;)l|=c.lanes|c.childLanes,o|=c.subtreeFlags&31457280,o|=c.flags&31457280,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)l|=c.lanes|c.childLanes,o|=c.subtreeFlags,o|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=o,e.childLanes=l,n}function I4(e,n,l){var o=n.pendingProps;switch(If(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(n),null;case 1:return ct(n),null;case 3:return l=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),gr(Mt),Ye(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Vi(n)?vr(n):e===null||e.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,Hn!==null&&(Fd(Hn),Hn=null))),ct(n),null;case 26:return l=n.memoizedState,e===null?(vr(n),l!==null?(ct(n),hb(n,l)):(ct(n),n.flags&=-16777217)):l?l!==e.memoizedState?(vr(n),ct(n),hb(n,l)):(ct(n),n.flags&=-16777217):(e.memoizedProps!==o&&vr(n),ct(n),n.flags&=-16777217),null;case 27:De(n),l=me.current;var c=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==o&&vr(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return ct(n),null}e=_e.current,Vi(n)?R0(n):(e=Gb(c,o,l),n.stateNode=e,vr(n))}return ct(n),null;case 5:if(De(n),l=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&vr(n);else{if(!o){if(n.stateNode===null)throw Error(i(166));return ct(n),null}if(e=_e.current,Vi(n))R0(n);else{switch(c=ds(me.current),e){case 1:e=c.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:e=c.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":e=c.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":e=c.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof o.is=="string"?c.createElement("select",{is:o.is}):c.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e=typeof o.is=="string"?c.createElement(l,{is:o.is}):c.createElement(l)}}e[$t]=n,e[nn]=o;e:for(c=n.child;c!==null;){if(c.tag===5||c.tag===6)e.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===n)break e;for(;c.sibling===null;){if(c.return===null||c.return===n)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}n.stateNode=e;e:switch(It(e,l,o),l){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&vr(n)}}return ct(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==o&&vr(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(i(166));if(e=me.current,Vi(n)){if(e=n.stateNode,l=n.memoizedProps,o=null,c=Xt,c!==null)switch(c.tag){case 27:case 5:o=c.memoizedProps}e[$t]=n,e=!!(e.nodeValue===l||o!==null&&o.suppressHydrationWarning===!0||Ub(e.nodeValue,l)),e||bl(n)}else e=ds(e).createTextNode(o),e[$t]=n,n.stateNode=e}return ct(n),null;case 13:if(o=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Vi(n),o!==null&&o.dehydrated!==null){if(e===null){if(!c)throw Error(i(318));if(c=n.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(i(317));c[$t]=n}else Ii(),!(n.flags&128)&&(n.memoizedState=null),n.flags|=4;ct(n),c=!1}else Hn!==null&&(Fd(Hn),Hn=null),c=!0;if(!c)return n.flags&256?(dr(n),n):(dr(n),null)}if(dr(n),n.flags&128)return n.lanes=l,n;if(l=o!==null,e=e!==null&&e.memoizedState!==null,l){o=n.child,c=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(c=o.alternate.memoizedState.cachePool.pool);var d=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==c&&(o.flags|=2048)}return l!==e&&l&&(n.child.flags|=8192),ts(n,n.updateQueue),ct(n),null;case 4:return Ye(),e===null&&rh(n.stateNode.containerInfo),ct(n),null;case 10:return gr(n.type),ct(n),null;case 19:if(Re(_t),c=n.memoizedState,c===null)return ct(n),null;if(o=(n.flags&128)!==0,d=c.rendering,d===null)if(o)oo(c,!1);else{if(gt!==0||e!==null&&e.flags&128)for(e=n.child;e!==null;){if(d=Hu(e),d!==null){for(n.flags|=128,oo(c,!1),e=d.updateQueue,n.updateQueue=e,ts(n,e),n.subtreeFlags=0,e=l,l=n.child;l!==null;)fb(l,e),l=l.sibling;return de(_t,_t.current&1|2),n.child}e=e.sibling}c.tail!==null&&Ne()>ns&&(n.flags|=128,o=!0,oo(c,!1),n.lanes=4194304)}else{if(!o)if(e=Hu(d),e!==null){if(n.flags|=128,o=!0,e=e.updateQueue,n.updateQueue=e,ts(n,e),oo(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!Fe)return ct(n),null}else 2*Ne()-c.renderingStartTime>ns&&l!==536870912&&(n.flags|=128,o=!0,oo(c,!1),n.lanes=4194304);c.isBackwards?(d.sibling=n.child,n.child=d):(e=c.last,e!==null?e.sibling=d:n.child=d,c.last=d)}return c.tail!==null?(n=c.tail,c.rendering=n,c.tail=n.sibling,c.renderingStartTime=Ne(),n.sibling=null,e=_t.current,de(_t,o?e&1|2:e&1),n):(ct(n),null);case 22:case 23:return dr(n),$f(),o=n.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?l&536870912&&!(n.flags&128)&&(ct(n),n.subtreeFlags&6&&(n.flags|=8192)):ct(n),l=n.updateQueue,l!==null&&ts(n,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==l&&(n.flags|=2048),e!==null&&Re(vl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),gr(Mt),ct(n),null;case 25:return null}throw Error(i(156,n.tag))}function q4(e,n){switch(If(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return gr(Mt),Ye(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return De(n),null;case 13:if(dr(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Ii()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Re(_t),null;case 4:return Ye(),null;case 10:return gr(n.type),null;case 22:case 23:return dr(n),$f(),e!==null&&Re(vl),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return gr(Mt),null;case 25:return null;default:return null}}function pb(e,n){switch(If(n),n.tag){case 3:gr(Mt),Ye();break;case 26:case 27:case 5:De(n);break;case 4:Ye();break;case 13:dr(n);break;case 19:Re(_t);break;case 10:gr(n.type);break;case 22:case 23:dr(n),$f(),e!==null&&Re(vl);break;case 24:gr(Mt)}}var G4={getCacheForType:function(e){var n=Ft(Mt),l=n.data.get(e);return l===void 0&&(l=e(),n.data.set(e,l)),l}},Y4=typeof WeakMap=="function"?WeakMap:Map,ft=0,ot=null,Le=null,Ge=0,ut=0,gn=null,xr=!1,wa=!1,jd=!1,Er=0,gt=0,Xr=0,Ol=0,Vd=0,Nn=0,Aa=0,uo=null,er=null,Id=!1,qd=0,ns=1/0,rs=null,Pr=null,ls=!1,_l=null,so=0,Gd=0,Yd=null,co=0,$d=null;function yn(){if(ft&2&&Ge!==0)return Ge&-Ge;if(G.T!==null){var e=ya;return e!==0?e:Wd()}return By()}function mb(){Nn===0&&(Nn=!(Ge&536870912)||Fe?_y():536870912);var e=On.current;return e!==null&&(e.flags|=32),Nn}function Pt(e,n,l){(e===ot&&ut===2||e.cancelPendingCommit!==null)&&(ka(e,0),Cr(e,Ge,Nn,!1)),Ri(e,l),(!(ft&2)||e!==ot)&&(e===ot&&(!(ft&2)&&(Ol|=l),gt===4&&Cr(e,Ge,Nn,!1)),tr(e))}function gb(e,n,l){if(ft&6)throw Error(i(327));var o=!l&&(n&60)===0&&(n&e.expiredLanes)===0||ki(e,n),c=o?X4(e,n):Qd(e,n,!0),d=o;do{if(c===0){wa&&!o&&Cr(e,n,0,!1);break}else if(c===6)Cr(e,n,0,!xr);else{if(l=e.current.alternate,d&&!$4(l)){c=Qd(e,n,!1),d=!1;continue}if(c===2){if(d=n,e.errorRecoveryDisabledLanes&d)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var C=e;c=uo;var _=C.current.memoizedState.isDehydrated;if(_&&(ka(C,b).flags|=256),b=Qd(C,b,!1),b!==2){if(jd&&!_){C.errorRecoveryDisabledLanes|=d,Ol|=d,c=4;break e}d=er,er=c,d!==null&&Fd(d)}c=b}if(d=!1,c!==2)continue}}if(c===1){ka(e,0),Cr(e,n,0,!0);break}e:{switch(o=e,c){case 0:case 1:throw Error(i(345));case 4:if((n&4194176)===n){Cr(o,n,Nn,!xr);break e}break;case 2:er=null;break;case 3:case 5:break;default:throw Error(i(329))}if(o.finishedWork=l,o.finishedLanes=n,(n&62914560)===n&&(d=qd+300-Ne(),10<d)){if(Cr(o,n,Nn,!xr),yu(o,0)!==0)break e;o.timeoutHandle=Vb(yb.bind(null,o,l,er,rs,Id,n,Nn,Ol,Aa,xr,2,-0,0),d);break e}yb(o,l,er,rs,Id,n,Nn,Ol,Aa,xr,0,-0,0)}}break}while(!0);tr(e)}function Fd(e){er===null?er=e:er.push.apply(er,e)}function yb(e,n,l,o,c,d,b,C,_,U,J,ae,Y){var K=n.subtreeFlags;if((K&8192||(K&16785408)===16785408)&&(yo={stylesheets:null,count:0,unsuspend:A3},ob(n),n=R3(),n!==null)){e.cancelPendingCommit=n(Tb.bind(null,e,l,o,c,b,C,_,1,ae,Y)),Cr(e,d,b,!U);return}Tb(e,l,o,c,b,C,_,J,ae,Y)}function $4(e){for(var n=e;;){var l=n.tag;if((l===0||l===11||l===15)&&n.flags&16384&&(l=n.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var o=0;o<l.length;o++){var c=l[o],d=c.getSnapshot;c=c.value;try{if(!hn(d(),c))return!1}catch{return!1}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Cr(e,n,l,o){n&=~Vd,n&=~Ol,e.suspendedLanes|=n,e.pingedLanes&=~n,o&&(e.warmLanes|=n),o=e.expirationTimes;for(var c=n;0<c;){var d=31-wt(c),b=1<<d;o[d]=-1,c&=~b}l!==0&&Dy(e,l,n)}function as(){return ft&6?!0:(fo(0),!1)}function Xd(){if(Le!==null){if(ut===0)var e=Le.return;else e=Le,mr=wl=null,Wf(e),ma=null,$i=0,e=Le;for(;e!==null;)pb(e.alternate,e),e=e.return;Le=null}}function ka(e,n){e.finishedWork=null,e.finishedLanes=0;var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,c3(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Xd(),ot=e,Le=l=Fr(e.current,null),Ge=n,ut=0,gn=null,xr=!1,wa=ki(e,n),jd=!1,Aa=Nn=Vd=Ol=Xr=gt=0,er=uo=null,Id=!1,n&8&&(n|=n&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=n;0<o;){var c=31-wt(o),d=1<<c;n|=e[c],o&=~d}return Er=n,Ou(),l}function bb(e,n){Me=null,G.H=Wn,n===Gi?(n=N0(),ut=3):n===_0?(n=N0(),ut=4):ut=n===M1?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,gn=n,Le===null&&(gt=1,Qu(e,An(n,e.current)))}function Sb(){var e=G.H;return G.H=Wn,e===null?Wn:e}function vb(){var e=G.A;return G.A=G4,e}function Pd(){gt=4,xr||(Ge&4194176)!==Ge&&On.current!==null||(wa=!0),!(Xr&134217727)&&!(Ol&134217727)||ot===null||Cr(ot,Ge,Nn,!1)}function Qd(e,n,l){var o=ft;ft|=2;var c=Sb(),d=vb();(ot!==e||Ge!==n)&&(rs=null,ka(e,n)),n=!1;var b=gt;e:do try{if(ut!==0&&Le!==null){var C=Le,_=gn;switch(ut){case 8:Xd(),b=6;break e;case 3:case 2:case 6:On.current===null&&(n=!0);var U=ut;if(ut=0,gn=null,Ra(e,C,_,U),l&&wa){b=0;break e}break;default:U=ut,ut=0,gn=null,Ra(e,C,_,U)}}F4(),b=gt;break}catch(J){bb(e,J)}while(!0);return n&&e.shellSuspendCounter++,mr=wl=null,ft=o,G.H=c,G.A=d,Le===null&&(ot=null,Ge=0,Ou()),b}function F4(){for(;Le!==null;)xb(Le)}function X4(e,n){var l=ft;ft|=2;var o=Sb(),c=vb();ot!==e||Ge!==n?(rs=null,ns=Ne()+500,ka(e,n)):wa=ki(e,n);e:do try{if(ut!==0&&Le!==null){n=Le;var d=gn;t:switch(ut){case 1:ut=0,gn=null,Ra(e,n,d,1);break;case 2:if(M0(d)){ut=0,gn=null,Eb(n);break}n=function(){ut===2&&ot===e&&(ut=7),tr(e)},d.then(n,n);break e;case 3:ut=7;break e;case 4:ut=5;break e;case 7:M0(d)?(ut=0,gn=null,Eb(n)):(ut=0,gn=null,Ra(e,n,d,7));break;case 5:var b=null;switch(Le.tag){case 26:b=Le.memoizedState;case 5:case 27:var C=Le;if(!b||Zb(b)){ut=0,gn=null;var _=C.sibling;if(_!==null)Le=_;else{var U=C.return;U!==null?(Le=U,is(U)):Le=null}break t}}ut=0,gn=null,Ra(e,n,d,5);break;case 6:ut=0,gn=null,Ra(e,n,d,6);break;case 8:Xd(),gt=6;break e;default:throw Error(i(462))}}P4();break}catch(J){bb(e,J)}while(!0);return mr=wl=null,G.H=o,G.A=c,ft=l,Le!==null?0:(ot=null,Ge=0,Ou(),gt)}function P4(){for(;Le!==null&&!Bn();)xb(Le)}function xb(e){var n=G1(e.alternate,e,Er);e.memoizedProps=e.pendingProps,n===null?is(e):Le=n}function Eb(e){var n=e,l=n.alternate;switch(n.tag){case 15:case 0:n=U1(l,n,n.pendingProps,n.type,void 0,Ge);break;case 11:n=U1(l,n,n.pendingProps,n.type.render,n.ref,Ge);break;case 5:Wf(n);default:pb(l,n),n=Le=fb(n,Er),n=G1(l,n,Er)}e.memoizedProps=e.pendingProps,n===null?is(e):Le=n}function Ra(e,n,l,o){mr=wl=null,Wf(n),ma=null,$i=0;var c=n.return;try{if(L4(e,c,n,l,Ge)){gt=1,Qu(e,An(l,e.current)),Le=null;return}}catch(d){if(c!==null)throw Le=c,d;gt=1,Qu(e,An(l,e.current)),Le=null;return}n.flags&32768?(Fe||o===1?e=!0:wa||Ge&536870912?e=!1:(xr=e=!0,(o===2||o===3||o===6)&&(o=On.current,o!==null&&o.tag===13&&(o.flags|=16384))),Cb(n,e)):is(n)}function is(e){var n=e;do{if(n.flags&32768){Cb(n,xr);return}e=n.return;var l=I4(n.alternate,n,Er);if(l!==null){Le=l;return}if(n=n.sibling,n!==null){Le=n;return}Le=n=e}while(n!==null);gt===0&&(gt=5)}function Cb(e,n){do{var l=q4(e.alternate,e);if(l!==null){l.flags&=32767,Le=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!n&&(e=e.sibling,e!==null)){Le=e;return}Le=e=l}while(e!==null);gt=6,Le=null}function Tb(e,n,l,o,c,d,b,C,_,U){var J=G.T,ae=ie.p;try{ie.p=2,G.T=null,Q4(e,n,l,o,ae,c,d,b,C,_,U)}finally{G.T=J,ie.p=ae}}function Q4(e,n,l,o,c,d,b,C){do Oa();while(_l!==null);if(ft&6)throw Error(i(327));var _=e.finishedWork;if(o=e.finishedLanes,_===null)return null;if(e.finishedWork=null,e.finishedLanes=0,_===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var U=_.lanes|_.childLanes;if(U|=Hf,kR(e,o,U,d,b,C),e===ot&&(Le=ot=null,Ge=0),!(_.subtreeFlags&10256)&&!(_.flags&10256)||ls||(ls=!0,Gd=U,Yd=l,W4(ce,function(){return Oa(),null})),l=(_.flags&15990)!==0,_.subtreeFlags&15990||l?(l=G.T,G.T=null,d=ie.p,ie.p=2,b=ft,ft|=4,H4(e,_),lb(_,e),S4(oh,e.containerInfo),bs=!!ih,oh=ih=null,e.current=_,eb(e,_.alternate,_),dn(),ft=b,ie.p=d,G.T=l):e.current=_,ls?(ls=!1,_l=e,so=o):wb(e,U),U=e.pendingLanes,U===0&&(Pr=null),sl(_.stateNode),tr(e),n!==null)for(c=e.onRecoverableError,_=0;_<n.length;_++)U=n[_],c(U.value,{componentStack:U.stack});return so&3&&Oa(),U=e.pendingLanes,o&4194218&&U&42?e===$d?co++:(co=0,$d=e):co=0,fo(0),null}function wb(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Xi(n)))}function Oa(){if(_l!==null){var e=_l,n=Gd;Gd=0;var l=zy(so),o=G.T,c=ie.p;try{if(ie.p=32>l?32:l,G.T=null,_l===null)var d=!1;else{l=Yd,Yd=null;var b=_l,C=so;if(_l=null,so=0,ft&6)throw Error(i(331));var _=ft;if(ft|=4,sb(b.current),ib(b,b.current,C,l),ft=_,fo(0,!1),Ot&&typeof Ot.onPostCommitFiberRoot=="function")try{Ot.onPostCommitFiberRoot(Nt,b)}catch{}d=!0}return d}finally{ie.p=c,G.T=o,wb(e,n)}}return!1}function Ab(e,n,l){n=An(l,n),n=hd(e.stateNode,n,2),e=qr(e,n,2),e!==null&&(Ri(e,2),tr(e))}function nt(e,n,l){if(e.tag===3)Ab(e,e,l);else for(;n!==null;){if(n.tag===3){Ab(n,e,l);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Pr===null||!Pr.has(o))){e=An(l,e),l=O1(2),o=qr(n,l,2),o!==null&&(_1(l,o,n,e),Ri(o,2),tr(o));break}}n=n.return}}function Kd(e,n,l){var o=e.pingCache;if(o===null){o=e.pingCache=new Y4;var c=new Set;o.set(n,c)}else c=o.get(n),c===void 0&&(c=new Set,o.set(n,c));c.has(l)||(jd=!0,c.add(l),e=K4.bind(null,e,n,l),n.then(e,e))}function K4(e,n,l){var o=e.pingCache;o!==null&&o.delete(n),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,ot===e&&(Ge&l)===l&&(gt===4||gt===3&&(Ge&62914560)===Ge&&300>Ne()-qd?!(ft&2)&&ka(e,0):Vd|=l,Aa===Ge&&(Aa=0)),tr(e)}function kb(e,n){n===0&&(n=My()),e=zr(e,n),e!==null&&(Ri(e,n),tr(e))}function Z4(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),kb(e,l)}function J4(e,n){var l=0;switch(e.tag){case 13:var o=e.stateNode,c=e.memoizedState;c!==null&&(l=c.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(n),kb(e,l)}function W4(e,n){return vt(e,n)}var os=null,_a=null,Zd=!1,us=!1,Jd=!1,Ml=0;function tr(e){e!==_a&&e.next===null&&(_a===null?os=_a=e:_a=_a.next=e),us=!0,Zd||(Zd=!0,t3(e3))}function fo(e,n){if(!Jd&&us){Jd=!0;do for(var l=!1,o=os;o!==null;){if(e!==0){var c=o.pendingLanes;if(c===0)var d=0;else{var b=o.suspendedLanes,C=o.pingedLanes;d=(1<<31-wt(42|e)+1)-1,d&=c&~(b&~C),d=d&201326677?d&201326677|1:d?d|2:0}d!==0&&(l=!0,_b(o,d))}else d=Ge,d=yu(o,o===ot?d:0),!(d&3)||ki(o,d)||(l=!0,_b(o,d));o=o.next}while(l);Jd=!1}}function e3(){us=Zd=!1;var e=0;Ml!==0&&(s3()&&(e=Ml),Ml=0);for(var n=Ne(),l=null,o=os;o!==null;){var c=o.next,d=Rb(o,n);d===0?(o.next=null,l===null?os=c:l.next=c,c===null&&(_a=l)):(l=o,(e!==0||d&3)&&(us=!0)),o=c}fo(e)}function Rb(e,n){for(var l=e.suspendedLanes,o=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var b=31-wt(d),C=1<<b,_=c[b];_===-1?(!(C&l)||C&o)&&(c[b]=AR(C,n)):_<=n&&(e.expiredLanes|=C),d&=~C}if(n=ot,l=Ge,l=yu(e,e===n?l:0),o=e.callbackNode,l===0||e===n&&ut===2||e.cancelPendingCommit!==null)return o!==null&&o!==null&&fn(o),e.callbackNode=null,e.callbackPriority=0;if(!(l&3)||ki(e,l)){if(n=l&-l,n===e.callbackPriority)return n;switch(o!==null&&fn(o),zy(l)){case 2:case 8:l=le;break;case 32:l=ce;break;case 268435456:l=Ve;break;default:l=ce}return o=Ob.bind(null,e),l=vt(l,o),e.callbackPriority=n,e.callbackNode=l,n}return o!==null&&o!==null&&fn(o),e.callbackPriority=2,e.callbackNode=null,2}function Ob(e,n){var l=e.callbackNode;if(Oa()&&e.callbackNode!==l)return null;var o=Ge;return o=yu(e,e===ot?o:0),o===0?null:(gb(e,o,n),Rb(e,Ne()),e.callbackNode!=null&&e.callbackNode===l?Ob.bind(null,e):null)}function _b(e,n){if(Oa())return null;gb(e,n,!0)}function t3(e){f3(function(){ft&6?vt(F,e):e()})}function Wd(){return Ml===0&&(Ml=_y()),Ml}function Mb(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Eu(""+e)}function Db(e,n){var l=n.ownerDocument.createElement("input");return l.name=n.name,l.value=n.value,e.id&&l.setAttribute("form",e.id),n.parentNode.insertBefore(l,n),e=new FormData(e),l.parentNode.removeChild(l),e}function n3(e,n,l,o,c){if(n==="submit"&&l&&l.stateNode===c){var d=Mb((c[nn]||null).action),b=o.submitter;b&&(n=(n=b[nn]||null)?Mb(n.formAction):b.getAttribute("formAction"),n!==null&&(d=n,b=null));var C=new Au("action","action",null,o,c);e.push({event:C,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Ml!==0){var _=b?Db(c,b):new FormData(c);ud(l,{pending:!0,data:_,method:c.method,action:d},null,_)}}else typeof d=="function"&&(C.preventDefault(),_=b?Db(c,b):new FormData(c),ud(l,{pending:!0,data:_,method:c.method,action:d},d,_))},currentTarget:c}]})}}for(var eh=0;eh<T0.length;eh++){var th=T0[eh],r3=th.toLowerCase(),l3=th[0].toUpperCase()+th.slice(1);Un(r3,"on"+l3)}Un(S0,"onAnimationEnd"),Un(v0,"onAnimationIteration"),Un(x0,"onAnimationStart"),Un("dblclick","onDoubleClick"),Un("focusin","onFocus"),Un("focusout","onBlur"),Un(x4,"onTransitionRun"),Un(E4,"onTransitionStart"),Un(C4,"onTransitionCancel"),Un(E0,"onTransitionEnd"),ra("onMouseEnter",["mouseout","mouseover"]),ra("onMouseLeave",["mouseout","mouseover"]),ra("onPointerEnter",["pointerout","pointerover"]),ra("onPointerLeave",["pointerout","pointerover"]),dl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),dl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),dl("onBeforeInput",["compositionend","keypress","textInput","paste"]),dl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),dl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),dl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ho="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(" "),a3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ho));function Nb(e,n){n=(n&4)!==0;for(var l=0;l<e.length;l++){var o=e[l],c=o.event;o=o.listeners;e:{var d=void 0;if(n)for(var b=o.length-1;0<=b;b--){var C=o[b],_=C.instance,U=C.currentTarget;if(C=C.listener,_!==d&&c.isPropagationStopped())break e;d=C,c.currentTarget=U;try{d(c)}catch(J){Pu(J)}c.currentTarget=null,d=_}else for(b=0;b<o.length;b++){if(C=o[b],_=C.instance,U=C.currentTarget,C=C.listener,_!==d&&c.isPropagationStopped())break e;d=C,c.currentTarget=U;try{d(c)}catch(J){Pu(J)}c.currentTarget=null,d=_}}}}function Ie(e,n){var l=n[yf];l===void 0&&(l=n[yf]=new Set);var o=e+"__bubble";l.has(o)||(zb(n,e,2,!1),l.add(o))}function nh(e,n,l){var o=0;n&&(o|=4),zb(l,e,o,n)}var ss="_reactListening"+Math.random().toString(36).slice(2);function rh(e){if(!e[ss]){e[ss]=!0,Uy.forEach(function(l){l!=="selectionchange"&&(a3.has(l)||nh(l,!1,e),nh(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[ss]||(n[ss]=!0,nh("selectionchange",!1,n))}}function zb(e,n,l,o){switch(rS(n)){case 2:var c=M3;break;case 8:c=D3;break;default:c=gh}l=c.bind(null,n,l,e),c=void 0,!wf||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=!0),o?c!==void 0?e.addEventListener(n,l,{capture:!0,passive:c}):e.addEventListener(n,l,!0):c!==void 0?e.addEventListener(n,l,{passive:c}):e.addEventListener(n,l,!1)}function lh(e,n,l,o,c){var d=o;if(!(n&1)&&!(n&2)&&o!==null)e:for(;;){if(o===null)return;var b=o.tag;if(b===3||b===4){var C=o.stateNode.containerInfo;if(C===c||C.nodeType===8&&C.parentNode===c)break;if(b===4)for(b=o.return;b!==null;){var _=b.tag;if((_===3||_===4)&&(_=b.stateNode.containerInfo,_===c||_.nodeType===8&&_.parentNode===c))return;b=b.return}for(;C!==null;){if(b=fl(C),b===null)return;if(_=b.tag,_===5||_===6||_===26||_===27){o=d=b;continue e}C=C.parentNode}}o=o.return}Qy(function(){var U=d,J=Cf(l),ae=[];e:{var Y=C0.get(e);if(Y!==void 0){var K=Au,be=e;switch(e){case"keypress":if(Tu(l)===0)break e;case"keydown":case"keyup":K=JR;break;case"focusin":be="focus",K=Of;break;case"focusout":be="blur",K=Of;break;case"beforeblur":case"afterblur":K=Of;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=Jy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=VR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=t4;break;case S0:case v0:case x0:K=GR;break;case E0:K=r4;break;case"scroll":case"scrollend":K=HR;break;case"wheel":K=a4;break;case"copy":case"cut":case"paste":K=$R;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=e0;break;case"toggle":case"beforetoggle":K=o4}var Ae=(n&4)!==0,yt=!Ae&&(e==="scroll"||e==="scrollend"),H=Ae?Y!==null?Y+"Capture":null:Y;Ae=[];for(var L=U,q;L!==null;){var re=L;if(q=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||q===null||H===null||(re=Mi(L,H),re!=null&&Ae.push(po(L,re,q))),yt)break;L=L.return}0<Ae.length&&(Y=new K(Y,be,null,l,J),ae.push({event:Y,listeners:Ae}))}}if(!(n&7)){e:{if(Y=e==="mouseover"||e==="pointerover",K=e==="mouseout"||e==="pointerout",Y&&l!==Ef&&(be=l.relatedTarget||l.fromElement)&&(fl(be)||be[ea]))break e;if((K||Y)&&(Y=J.window===J?J:(Y=J.ownerDocument)?Y.defaultView||Y.parentWindow:window,K?(be=l.relatedTarget||l.toElement,K=U,be=be?fl(be):null,be!==null&&(yt=W(be),Ae=be.tag,be!==yt||Ae!==5&&Ae!==27&&Ae!==6)&&(be=null)):(K=null,be=U),K!==be)){if(Ae=Jy,re="onMouseLeave",H="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(Ae=e0,re="onPointerLeave",H="onPointerEnter",L="pointer"),yt=K==null?Y:_i(K),q=be==null?Y:_i(be),Y=new Ae(re,L+"leave",K,l,J),Y.target=yt,Y.relatedTarget=q,re=null,fl(J)===U&&(Ae=new Ae(H,L+"enter",be,l,J),Ae.target=q,Ae.relatedTarget=yt,re=Ae),yt=re,K&&be)t:{for(Ae=K,H=be,L=0,q=Ae;q;q=Ma(q))L++;for(q=0,re=H;re;re=Ma(re))q++;for(;0<L-q;)Ae=Ma(Ae),L--;for(;0<q-L;)H=Ma(H),q--;for(;L--;){if(Ae===H||H!==null&&Ae===H.alternate)break t;Ae=Ma(Ae),H=Ma(H)}Ae=null}else Ae=null;K!==null&&Bb(ae,Y,K,Ae,!1),be!==null&&yt!==null&&Bb(ae,yt,be,Ae,!0)}}e:{if(Y=U?_i(U):window,K=Y.nodeName&&Y.nodeName.toLowerCase(),K==="select"||K==="input"&&Y.type==="file")var ge=u0;else if(i0(Y))if(s0)ge=y4;else{ge=m4;var Be=p4}else K=Y.nodeName,!K||K.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?U&&xf(U.elementType)&&(ge=u0):ge=g4;if(ge&&(ge=ge(e,U))){o0(ae,ge,l,J);break e}Be&&Be(e,Y,U),e==="focusout"&&U&&Y.type==="number"&&U.memoizedProps.value!=null&&vf(Y,"number",Y.value)}switch(Be=U?_i(U):window,e){case"focusin":(i0(Be)||Be.contentEditable==="true")&&(sa=Be,Bf=U,ji=null);break;case"focusout":ji=Bf=sa=null;break;case"mousedown":Lf=!0;break;case"contextmenu":case"mouseup":case"dragend":Lf=!1,y0(ae,l,J);break;case"selectionchange":if(v4)break;case"keydown":case"keyup":y0(ae,l,J)}var Se;if(Mf)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else ua?l0(e,l)&&(Ce="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ce="onCompositionStart");Ce&&(t0&&l.locale!=="ko"&&(ua||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&ua&&(Se=Ky()):(Nr=J,Af="value"in Nr?Nr.value:Nr.textContent,ua=!0)),Be=cs(U,Ce),0<Be.length&&(Ce=new Wy(Ce,e,null,l,J),ae.push({event:Ce,listeners:Be}),Se?Ce.data=Se:(Se=a0(l),Se!==null&&(Ce.data=Se)))),(Se=s4?c4(e,l):f4(e,l))&&(Ce=cs(U,"onBeforeInput"),0<Ce.length&&(Be=new Wy("onBeforeInput","beforeinput",null,l,J),ae.push({event:Be,listeners:Ce}),Be.data=Se)),n3(ae,e,U,l,J)}Nb(ae,n)})}function po(e,n,l){return{instance:e,listener:n,currentTarget:l}}function cs(e,n){for(var l=n+"Capture",o=[];e!==null;){var c=e,d=c.stateNode;c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=Mi(e,l),c!=null&&o.unshift(po(e,c,d)),c=Mi(e,n),c!=null&&o.push(po(e,c,d))),e=e.return}return o}function Ma(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Bb(e,n,l,o,c){for(var d=n._reactName,b=[];l!==null&&l!==o;){var C=l,_=C.alternate,U=C.stateNode;if(C=C.tag,_!==null&&_===o)break;C!==5&&C!==26&&C!==27||U===null||(_=U,c?(U=Mi(l,d),U!=null&&b.unshift(po(l,U,_))):c||(U=Mi(l,d),U!=null&&b.push(po(l,U,_)))),l=l.return}b.length!==0&&e.push({event:n,listeners:b})}var i3=/\r\n?/g,o3=/\u0000|\uFFFD/g;function Lb(e){return(typeof e=="string"?e:""+e).replace(i3,`
41
- `).replace(o3,"")}function Ub(e,n){return n=Lb(n),Lb(e)===n}function fs(){}function We(e,n,l,o,c,d){switch(l){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||aa(e,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&aa(e,""+o);break;case"className":Su(e,"class",o);break;case"tabIndex":Su(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Su(e,l,o);break;case"style":Xy(e,o,d);break;case"data":if(n!=="object"){Su(e,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||l!=="href")){e.removeAttribute(l);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=Eu(""+o),e.setAttribute(l,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(l==="formAction"?(n!=="input"&&We(e,n,"name",c.name,c,null),We(e,n,"formEncType",c.formEncType,c,null),We(e,n,"formMethod",c.formMethod,c,null),We(e,n,"formTarget",c.formTarget,c,null)):(We(e,n,"encType",c.encType,c,null),We(e,n,"method",c.method,c,null),We(e,n,"target",c.target,c,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=Eu(""+o),e.setAttribute(l,o);break;case"onClick":o!=null&&(e.onclick=fs);break;case"onScroll":o!=null&&Ie("scroll",e);break;case"onScrollEnd":o!=null&&Ie("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(l=o.__html,l!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}l=Eu(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,""+o):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":o===!0?e.setAttribute(l,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,o):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(l,o):e.removeAttribute(l);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(l):e.setAttribute(l,o);break;case"popover":Ie("beforetoggle",e),Ie("toggle",e),bu(e,"popover",o);break;case"xlinkActuate":sr(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":sr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":sr(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":sr(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":sr(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":sr(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":sr(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":sr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":sr(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":bu(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=LR.get(l)||l,bu(e,l,o))}}function ah(e,n,l,o,c,d){switch(l){case"style":Xy(e,o,d);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(l=o.__html,l!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"children":typeof o=="string"?aa(e,o):(typeof o=="number"||typeof o=="bigint")&&aa(e,""+o);break;case"onScroll":o!=null&&Ie("scroll",e);break;case"onScrollEnd":o!=null&&Ie("scrollend",e);break;case"onClick":o!=null&&(e.onclick=fs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hy.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(c=l.endsWith("Capture"),n=l.slice(2,c?l.length-7:void 0),d=e[nn]||null,d=d!=null?d[l]:null,typeof d=="function"&&e.removeEventListener(n,d,c),typeof o=="function")){typeof d!="function"&&d!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(n,o,c);break e}l in e?e[l]=o:o===!0?e.setAttribute(l,""):bu(e,l,o)}}}function It(e,n,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ie("error",e),Ie("load",e);var o=!1,c=!1,d;for(d in l)if(l.hasOwnProperty(d)){var b=l[d];if(b!=null)switch(d){case"src":o=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:We(e,n,d,b,l,null)}}c&&We(e,n,"srcSet",l.srcSet,l,null),o&&We(e,n,"src",l.src,l,null);return;case"input":Ie("invalid",e);var C=d=b=c=null,_=null,U=null;for(o in l)if(l.hasOwnProperty(o)){var J=l[o];if(J!=null)switch(o){case"name":c=J;break;case"type":b=J;break;case"checked":_=J;break;case"defaultChecked":U=J;break;case"value":d=J;break;case"defaultValue":C=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(i(137,n));break;default:We(e,n,o,J,l,null)}}Gy(e,d,C,_,U,b,c,!1),vu(e);return;case"select":Ie("invalid",e),o=b=d=null;for(c in l)if(l.hasOwnProperty(c)&&(C=l[c],C!=null))switch(c){case"value":d=C;break;case"defaultValue":b=C;break;case"multiple":o=C;default:We(e,n,c,C,l,null)}n=d,l=b,e.multiple=!!o,n!=null?la(e,!!o,n,!1):l!=null&&la(e,!!o,l,!0);return;case"textarea":Ie("invalid",e),d=c=o=null;for(b in l)if(l.hasOwnProperty(b)&&(C=l[b],C!=null))switch(b){case"value":o=C;break;case"defaultValue":c=C;break;case"children":d=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(i(91));break;default:We(e,n,b,C,l,null)}$y(e,o,c,d),vu(e);return;case"option":for(_ in l)if(l.hasOwnProperty(_)&&(o=l[_],o!=null))switch(_){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:We(e,n,_,o,l,null)}return;case"dialog":Ie("cancel",e),Ie("close",e);break;case"iframe":case"object":Ie("load",e);break;case"video":case"audio":for(o=0;o<ho.length;o++)Ie(ho[o],e);break;case"image":Ie("error",e),Ie("load",e);break;case"details":Ie("toggle",e);break;case"embed":case"source":case"link":Ie("error",e),Ie("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in l)if(l.hasOwnProperty(U)&&(o=l[U],o!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:We(e,n,U,o,l,null)}return;default:if(xf(n)){for(J in l)l.hasOwnProperty(J)&&(o=l[J],o!==void 0&&ah(e,n,J,o,l,void 0));return}}for(C in l)l.hasOwnProperty(C)&&(o=l[C],o!=null&&We(e,n,C,o,l,null))}function u3(e,n,l,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,b=null,C=null,_=null,U=null,J=null;for(K in l){var ae=l[K];if(l.hasOwnProperty(K)&&ae!=null)switch(K){case"checked":break;case"value":break;case"defaultValue":_=ae;default:o.hasOwnProperty(K)||We(e,n,K,null,o,ae)}}for(var Y in o){var K=o[Y];if(ae=l[Y],o.hasOwnProperty(Y)&&(K!=null||ae!=null))switch(Y){case"type":d=K;break;case"name":c=K;break;case"checked":U=K;break;case"defaultChecked":J=K;break;case"value":b=K;break;case"defaultValue":C=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,n));break;default:K!==ae&&We(e,n,Y,K,o,ae)}}Sf(e,b,C,_,U,J,d,c);return;case"select":K=b=C=Y=null;for(d in l)if(_=l[d],l.hasOwnProperty(d)&&_!=null)switch(d){case"value":break;case"multiple":K=_;default:o.hasOwnProperty(d)||We(e,n,d,null,o,_)}for(c in o)if(d=o[c],_=l[c],o.hasOwnProperty(c)&&(d!=null||_!=null))switch(c){case"value":Y=d;break;case"defaultValue":C=d;break;case"multiple":b=d;default:d!==_&&We(e,n,c,d,o,_)}n=C,l=b,o=K,Y!=null?la(e,!!l,Y,!1):!!o!=!!l&&(n!=null?la(e,!!l,n,!0):la(e,!!l,l?[]:"",!1));return;case"textarea":K=Y=null;for(C in l)if(c=l[C],l.hasOwnProperty(C)&&c!=null&&!o.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:We(e,n,C,null,o,c)}for(b in o)if(c=o[b],d=l[b],o.hasOwnProperty(b)&&(c!=null||d!=null))switch(b){case"value":Y=c;break;case"defaultValue":K=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(i(91));break;default:c!==d&&We(e,n,b,c,o,d)}Yy(e,Y,K);return;case"option":for(var be in l)if(Y=l[be],l.hasOwnProperty(be)&&Y!=null&&!o.hasOwnProperty(be))switch(be){case"selected":e.selected=!1;break;default:We(e,n,be,null,o,Y)}for(_ in o)if(Y=o[_],K=l[_],o.hasOwnProperty(_)&&Y!==K&&(Y!=null||K!=null))switch(_){case"selected":e.selected=Y&&typeof Y!="function"&&typeof Y!="symbol";break;default:We(e,n,_,Y,o,K)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ae in l)Y=l[Ae],l.hasOwnProperty(Ae)&&Y!=null&&!o.hasOwnProperty(Ae)&&We(e,n,Ae,null,o,Y);for(U in o)if(Y=o[U],K=l[U],o.hasOwnProperty(U)&&Y!==K&&(Y!=null||K!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,n));break;default:We(e,n,U,Y,o,K)}return;default:if(xf(n)){for(var yt in l)Y=l[yt],l.hasOwnProperty(yt)&&Y!==void 0&&!o.hasOwnProperty(yt)&&ah(e,n,yt,void 0,o,Y);for(J in o)Y=o[J],K=l[J],!o.hasOwnProperty(J)||Y===K||Y===void 0&&K===void 0||ah(e,n,J,Y,o,K);return}}for(var H in l)Y=l[H],l.hasOwnProperty(H)&&Y!=null&&!o.hasOwnProperty(H)&&We(e,n,H,null,o,Y);for(ae in o)Y=o[ae],K=l[ae],!o.hasOwnProperty(ae)||Y===K||Y==null&&K==null||We(e,n,ae,Y,o,K)}var ih=null,oh=null;function ds(e){return e.nodeType===9?e:e.ownerDocument}function Hb(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jb(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function uh(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var sh=null;function s3(){var e=window.event;return e&&e.type==="popstate"?e===sh?!1:(sh=e,!0):(sh=null,!1)}var Vb=typeof setTimeout=="function"?setTimeout:void 0,c3=typeof clearTimeout=="function"?clearTimeout:void 0,Ib=typeof Promise=="function"?Promise:void 0,f3=typeof queueMicrotask=="function"?queueMicrotask:typeof Ib<"u"?function(e){return Ib.resolve(null).then(e).catch(d3)}:Vb;function d3(e){setTimeout(function(){throw e})}function ch(e,n){var l=n,o=0;do{var c=l.nextSibling;if(e.removeChild(l),c&&c.nodeType===8)if(l=c.data,l==="/$"){if(o===0){e.removeChild(c),Eo(n);return}o--}else l!=="$"&&l!=="$?"&&l!=="$!"||o++;l=c}while(l);Eo(n)}function fh(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var l=n;switch(n=n.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":fh(l),bf(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function h3(e,n,l,o){for(;e.nodeType===1;){var c=l;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Oi])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==c.rel||e.getAttribute("href")!==(c.href==null?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=Vn(e.nextSibling),e===null)break}return null}function p3(e,n,l){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Vn(e.nextSibling),e===null))return null;return e}function Vn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}function qb(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(n===0)return e;n--}else l==="/$"&&n++}e=e.previousSibling}return null}function Gb(e,n,l){switch(n=ds(l),e){case"html":if(e=n.documentElement,!e)throw Error(i(452));return e;case"head":if(e=n.head,!e)throw Error(i(453));return e;case"body":if(e=n.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}var zn=new Map,Yb=new Set;function hs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var Tr=ie.d;ie.d={f:m3,r:g3,D:y3,C:b3,L:S3,m:v3,X:E3,S:x3,M:C3};function m3(){var e=Tr.f(),n=as();return e||n}function g3(e){var n=ta(e);n!==null&&n.tag===5&&n.type==="form"?y1(n):Tr.r(e)}var Da=typeof document>"u"?null:document;function $b(e,n,l){var o=Da;if(o&&typeof n=="string"&&n){var c=Tn(n);c='link[rel="'+e+'"][href="'+c+'"]',typeof l=="string"&&(c+='[crossorigin="'+l+'"]'),Yb.has(c)||(Yb.add(c),e={rel:e,crossOrigin:l,href:n},o.querySelector(c)===null&&(n=o.createElement("link"),It(n,"link",e),zt(n),o.head.appendChild(n)))}}function y3(e){Tr.D(e),$b("dns-prefetch",e,null)}function b3(e,n){Tr.C(e,n),$b("preconnect",e,n)}function S3(e,n,l){Tr.L(e,n,l);var o=Da;if(o&&e&&n){var c='link[rel="preload"][as="'+Tn(n)+'"]';n==="image"&&l&&l.imageSrcSet?(c+='[imagesrcset="'+Tn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(c+='[imagesizes="'+Tn(l.imageSizes)+'"]')):c+='[href="'+Tn(e)+'"]';var d=c;switch(n){case"style":d=Na(e);break;case"script":d=za(e)}zn.has(d)||(e=E({rel:"preload",href:n==="image"&&l&&l.imageSrcSet?void 0:e,as:n},l),zn.set(d,e),o.querySelector(c)!==null||n==="style"&&o.querySelector(mo(d))||n==="script"&&o.querySelector(go(d))||(n=o.createElement("link"),It(n,"link",e),zt(n),o.head.appendChild(n)))}}function v3(e,n){Tr.m(e,n);var l=Da;if(l&&e){var o=n&&typeof n.as=="string"?n.as:"script",c='link[rel="modulepreload"][as="'+Tn(o)+'"][href="'+Tn(e)+'"]',d=c;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=za(e)}if(!zn.has(d)&&(e=E({rel:"modulepreload",href:e},n),zn.set(d,e),l.querySelector(c)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(go(d)))return}o=l.createElement("link"),It(o,"link",e),zt(o),l.head.appendChild(o)}}}function x3(e,n,l){Tr.S(e,n,l);var o=Da;if(o&&e){var c=na(o).hoistableStyles,d=Na(e);n=n||"default";var b=c.get(d);if(!b){var C={loading:0,preload:null};if(b=o.querySelector(mo(d)))C.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":n},l),(l=zn.get(d))&&dh(e,l);var _=b=o.createElement("link");zt(_),It(_,"link",e),_._p=new Promise(function(U,J){_.onload=U,_.onerror=J}),_.addEventListener("load",function(){C.loading|=1}),_.addEventListener("error",function(){C.loading|=2}),C.loading|=4,ps(b,n,o)}b={type:"stylesheet",instance:b,count:1,state:C},c.set(d,b)}}}function E3(e,n){Tr.X(e,n);var l=Da;if(l&&e){var o=na(l).hoistableScripts,c=za(e),d=o.get(c);d||(d=l.querySelector(go(c)),d||(e=E({src:e,async:!0},n),(n=zn.get(c))&&hh(e,n),d=l.createElement("script"),zt(d),It(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(c,d))}}function C3(e,n){Tr.M(e,n);var l=Da;if(l&&e){var o=na(l).hoistableScripts,c=za(e),d=o.get(c);d||(d=l.querySelector(go(c)),d||(e=E({src:e,async:!0,type:"module"},n),(n=zn.get(c))&&hh(e,n),d=l.createElement("script"),zt(d),It(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(c,d))}}function Fb(e,n,l,o){var c=(c=me.current)?hs(c):null;if(!c)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(n=Na(l.href),l=na(c).hoistableStyles,o=l.get(n),o||(o={type:"style",instance:null,count:0,state:null},l.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Na(l.href);var d=na(c).hoistableStyles,b=d.get(e);if(b||(c=c.ownerDocument||c,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,b),(d=c.querySelector(mo(e)))&&!d._p&&(b.instance=d,b.state.loading=5),zn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},zn.set(e,l),d||T3(c,e,l,b.state))),n&&o===null)throw Error(i(528,""));return b}if(n&&o!==null)throw Error(i(529,""));return null;case"script":return n=l.async,l=l.src,typeof l=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=za(l),l=na(c).hoistableScripts,o=l.get(n),o||(o={type:"script",instance:null,count:0,state:null},l.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Na(e){return'href="'+Tn(e)+'"'}function mo(e){return'link[rel="stylesheet"]['+e+"]"}function Xb(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function T3(e,n,l,o){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=e.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),It(n,"link",l),zt(n),e.head.appendChild(n))}function za(e){return'[src="'+Tn(e)+'"]'}function go(e){return"script[async]"+e}function Pb(e,n,l){if(n.count++,n.instance===null)switch(n.type){case"style":var o=e.querySelector('style[data-href~="'+Tn(l.href)+'"]');if(o)return n.instance=o,zt(o),o;var c=E({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),zt(o),It(o,"style",c),ps(o,l.precedence,e),n.instance=o;case"stylesheet":c=Na(l.href);var d=e.querySelector(mo(c));if(d)return n.state.loading|=4,n.instance=d,zt(d),d;o=Xb(l),(c=zn.get(c))&&dh(o,c),d=(e.ownerDocument||e).createElement("link"),zt(d);var b=d;return b._p=new Promise(function(C,_){b.onload=C,b.onerror=_}),It(d,"link",o),n.state.loading|=4,ps(d,l.precedence,e),n.instance=d;case"script":return d=za(l.src),(c=e.querySelector(go(d)))?(n.instance=c,zt(c),c):(o=l,(c=zn.get(d))&&(o=E({},l),hh(o,c)),e=e.ownerDocument||e,c=e.createElement("script"),zt(c),It(c,"link",o),e.head.appendChild(c),n.instance=c);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&!(n.state.loading&4)&&(o=n.instance,n.state.loading|=4,ps(o,l.precedence,e));return n.instance}function ps(e,n,l){for(var o=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=o.length?o[o.length-1]:null,d=c,b=0;b<o.length;b++){var C=o[b];if(C.dataset.precedence===n)d=C;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(n=l.nodeType===9?l.head:l,n.insertBefore(e,n.firstChild))}function dh(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function hh(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var ms=null;function Qb(e,n,l){if(ms===null){var o=new Map,c=ms=new Map;c.set(l,o)}else c=ms,o=c.get(l),o||(o=new Map,c.set(l,o));if(o.has(e))return o;for(o.set(e,null),l=l.getElementsByTagName(e),c=0;c<l.length;c++){var d=l[c];if(!(d[Oi]||d[$t]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var b=d.getAttribute(n)||"";b=e+b;var C=o.get(b);C?C.push(d):o.set(b,[d])}}return o}function Kb(e,n,l){e=e.ownerDocument||e,e.head.insertBefore(l,n==="title"?e.querySelector("head > title"):null)}function w3(e,n,l){if(l===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Zb(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var yo=null;function A3(){}function k3(e,n,l){if(yo===null)throw Error(i(475));var o=yo;if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var c=Na(l.href),d=e.querySelector(mo(c));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(o.count++,o=gs.bind(o),e.then(o,o)),n.state.loading|=4,n.instance=d,zt(d);return}d=e.ownerDocument||e,l=Xb(l),(c=zn.get(c))&&dh(l,c),d=d.createElement("link"),zt(d);var b=d;b._p=new Promise(function(C,_){b.onload=C,b.onerror=_}),It(d,"link",l),n.instance=d}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(n,e),(e=n.state.preload)&&!(n.state.loading&3)&&(o.count++,n=gs.bind(o),e.addEventListener("load",n),e.addEventListener("error",n))}}function R3(){if(yo===null)throw Error(i(475));var e=yo;return e.stylesheets&&e.count===0&&ph(e,e.stylesheets),0<e.count?function(n){var l=setTimeout(function(){if(e.stylesheets&&ph(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l)}}:null}function gs(){if(this.count--,this.count===0){if(this.stylesheets)ph(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ys=null;function ph(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ys=new Map,n.forEach(O3,e),ys=null,gs.call(e))}function O3(e,n){if(!(n.state.loading&4)){var l=ys.get(e);if(l)var o=l.get(null);else{l=new Map,ys.set(e,l);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var b=c[d];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(l.set(b.dataset.precedence,b),o=b)}o&&l.set(null,o)}c=n.instance,b=c.getAttribute("data-precedence"),d=l.get(b)||o,d===o&&l.set(null,c),l.set(b,c),this.count++,o=gs.bind(this),c.addEventListener("load",o),c.addEventListener("error",o),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),n.state.loading|=4}}var bo={$$typeof:S,Provider:null,Consumer:null,_currentValue:ye,_currentValue2:ye,_threadCount:0};function _3(e,n,l,o,c,d,b,C){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=gf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gf(0),this.hiddenUpdates=gf(null),this.identifierPrefix=o,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function Jb(e,n,l,o,c,d,b,C,_,U,J,ae){return e=new _3(e,n,l,b,C,_,U,ae),n=1,d===!0&&(n|=24),d=Dn(3,null,null,n),e.current=d,d.stateNode=e,n=Ff(),n.refCount++,e.pooledCache=n,n.refCount++,d.memoizedState={element:o,isDehydrated:l,cache:n},Ad(d),e}function Wb(e){return e?(e=da,e):da}function eS(e,n,l,o,c,d){c=Wb(c),o.context===null?o.context=c:o.pendingContext=c,o=Ir(n),o.payload={element:l},d=d===void 0?null:d,d!==null&&(o.callback=d),l=qr(e,o,n),l!==null&&(Pt(l,e,n),eo(l,e,n))}function tS(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function mh(e,n){tS(e,n),(e=e.alternate)&&tS(e,n)}function nS(e){if(e.tag===13){var n=zr(e,67108864);n!==null&&Pt(n,e,67108864),mh(e,67108864)}}var bs=!0;function M3(e,n,l,o){var c=G.T;G.T=null;var d=ie.p;try{ie.p=2,gh(e,n,l,o)}finally{ie.p=d,G.T=c}}function D3(e,n,l,o){var c=G.T;G.T=null;var d=ie.p;try{ie.p=8,gh(e,n,l,o)}finally{ie.p=d,G.T=c}}function gh(e,n,l,o){if(bs){var c=yh(o);if(c===null)lh(e,n,o,Ss,l),lS(e,o);else if(z3(c,e,n,l,o))o.stopPropagation();else if(lS(e,o),n&4&&-1<N3.indexOf(e)){for(;c!==null;){var d=ta(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var b=cl(d.pendingLanes);if(b!==0){var C=d;for(C.pendingLanes|=2,C.entangledLanes|=2;b;){var _=1<<31-wt(b);C.entanglements[1]|=_,b&=~_}tr(d),!(ft&6)&&(ns=Ne()+500,fo(0))}}break;case 13:C=zr(d,2),C!==null&&Pt(C,d,2),as(),mh(d,2)}if(d=yh(o),d===null&&lh(e,n,o,Ss,l),d===c)break;c=d}c!==null&&o.stopPropagation()}else lh(e,n,o,null,l)}}function yh(e){return e=Cf(e),bh(e)}var Ss=null;function bh(e){if(Ss=null,e=fl(e),e!==null){var n=W(e);if(n===null)e=null;else{var l=n.tag;if(l===13){if(e=fe(n),e!==null)return e;e=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Ss=e,null}function rS(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Dt()){case F:return 2;case le:return 8;case ce:case we:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var Sh=!1,Qr=null,Kr=null,Zr=null,So=new Map,vo=new Map,Jr=[],N3="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function lS(e,n){switch(e){case"focusin":case"focusout":Qr=null;break;case"dragenter":case"dragleave":Kr=null;break;case"mouseover":case"mouseout":Zr=null;break;case"pointerover":case"pointerout":So.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":vo.delete(n.pointerId)}}function xo(e,n,l,o,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:n,domEventName:l,eventSystemFlags:o,nativeEvent:d,targetContainers:[c]},n!==null&&(n=ta(n),n!==null&&nS(n)),e):(e.eventSystemFlags|=o,n=e.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),e)}function z3(e,n,l,o,c){switch(n){case"focusin":return Qr=xo(Qr,e,n,l,o,c),!0;case"dragenter":return Kr=xo(Kr,e,n,l,o,c),!0;case"mouseover":return Zr=xo(Zr,e,n,l,o,c),!0;case"pointerover":var d=c.pointerId;return So.set(d,xo(So.get(d)||null,e,n,l,o,c)),!0;case"gotpointercapture":return d=c.pointerId,vo.set(d,xo(vo.get(d)||null,e,n,l,o,c)),!0}return!1}function aS(e){var n=fl(e.target);if(n!==null){var l=W(n);if(l!==null){if(n=l.tag,n===13){if(n=fe(l),n!==null){e.blockedOn=n,RR(e.priority,function(){if(l.tag===13){var o=yn(),c=zr(l,o);c!==null&&Pt(c,l,o),mh(l,o)}});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vs(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=yh(e.nativeEvent);if(l===null){l=e.nativeEvent;var o=new l.constructor(l.type,l);Ef=o,l.target.dispatchEvent(o),Ef=null}else return n=ta(l),n!==null&&nS(n),e.blockedOn=l,!1;n.shift()}return!0}function iS(e,n,l){vs(e)&&l.delete(n)}function B3(){Sh=!1,Qr!==null&&vs(Qr)&&(Qr=null),Kr!==null&&vs(Kr)&&(Kr=null),Zr!==null&&vs(Zr)&&(Zr=null),So.forEach(iS),vo.forEach(iS)}function xs(e,n){e.blockedOn===n&&(e.blockedOn=null,Sh||(Sh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,B3)))}var Es=null;function oS(e){Es!==e&&(Es=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Es===e&&(Es=null);for(var n=0;n<e.length;n+=3){var l=e[n],o=e[n+1],c=e[n+2];if(typeof o!="function"){if(bh(o||l)===null)continue;break}var d=ta(l);d!==null&&(e.splice(n,3),n-=3,ud(d,{pending:!0,data:c,method:l.method,action:o},o,c))}}))}function Eo(e){function n(_){return xs(_,e)}Qr!==null&&xs(Qr,e),Kr!==null&&xs(Kr,e),Zr!==null&&xs(Zr,e),So.forEach(n),vo.forEach(n);for(var l=0;l<Jr.length;l++){var o=Jr[l];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Jr.length&&(l=Jr[0],l.blockedOn===null);)aS(l),l.blockedOn===null&&Jr.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(o=0;o<l.length;o+=3){var c=l[o],d=l[o+1],b=c[nn]||null;if(typeof d=="function")b||oS(l);else if(b){var C=null;if(d&&d.hasAttribute("formAction")){if(c=d,b=d[nn]||null)C=b.formAction;else if(bh(c)!==null)continue}else C=b.action;typeof C=="function"?l[o+1]=C:(l.splice(o,3),o-=3),oS(l)}}}function vh(e){this._internalRoot=e}Cs.prototype.render=vh.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));var l=n.current,o=yn();eS(l,o,e,n,null,null)},Cs.prototype.unmount=vh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;e.tag===0&&Oa(),eS(e.current,2,null,e,null,null),as(),n[ea]=null}};function Cs(e){this._internalRoot=e}Cs.prototype.unstable_scheduleHydration=function(e){if(e){var n=By();e={blockedOn:null,target:e,priority:n};for(var l=0;l<Jr.length&&n!==0&&n<Jr[l].priority;l++);Jr.splice(l,0,e),l===0&&aS(e)}};var uS=r.version;if(uS!=="19.0.0")throw Error(i(527,uS,"19.0.0"));ie.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=Z(n),e=e!==null?ue(e):null,e=e===null?null:e.stateNode,e};var L3={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:G,findFiberByHostInstance:fl,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ts=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ts.isDisabled&&Ts.supportsFiber)try{Nt=Ts.inject(L3),Ot=Ts}catch{}}return La.createRoot=function(e,n){if(!u(e))throw Error(i(299));var l=!1,o="",c=w1,d=A1,b=k1,C=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(C=n.unstable_transitionCallbacks)),n=Jb(e,1,!1,null,null,l,o,c,d,b,C,null),e[ea]=n.current,rh(e.nodeType===8?e.parentNode:e),new vh(n)},La.hydrateRoot=function(e,n,l){if(!u(e))throw Error(i(299));var o=!1,c="",d=w1,b=A1,C=k1,_=null,U=null;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(c=l.identifierPrefix),l.onUncaughtError!==void 0&&(d=l.onUncaughtError),l.onCaughtError!==void 0&&(b=l.onCaughtError),l.onRecoverableError!==void 0&&(C=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(_=l.unstable_transitionCallbacks),l.formState!==void 0&&(U=l.formState)),n=Jb(e,1,!0,n,l??null,o,c,d,b,C,_,U),n.context=Wb(null),l=n.current,o=yn(),c=Ir(o),c.callback=null,qr(l,c,o),n.current.lanes=o,Ri(n,o),tr(n),e[ea]=n.current,rh(e),new Cs(n)},La.version="19.0.0",La}var Mh;function mS(){if(Mh)return As.exports;Mh=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),As.exports=pS(),As.exports}var gS=mS();function _s(){return _s=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var i in a)({}).hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t},_s.apply(null,arguments)}function Dh(t){var r=Object.create(null);return function(a){return r[a]===void 0&&(r[a]=t(a)),r[a]}}var yS=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,bS=Dh(function(t){return yS.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});function SS(t){if(t.sheet)return t.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===t)return document.styleSheets[r]}function vS(t){var r=document.createElement("style");return r.setAttribute("data-emotion",t.key),t.nonce!==void 0&&r.setAttribute("nonce",t.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var xS=function(){function t(a){var i=this;this._insertTag=function(u){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(u,s),i.tags.push(u)},this.isSpeedy=a.speedy===void 0?!0:a.speedy,this.tags=[],this.ctr=0,this.nonce=a.nonce,this.key=a.key,this.container=a.container,this.prepend=a.prepend,this.insertionPoint=a.insertionPoint,this.before=null}var r=t.prototype;return r.hydrate=function(i){i.forEach(this._insertTag)},r.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(vS(this));var u=this.tags[this.tags.length-1];if(this.isSpeedy){var s=SS(u);try{s.insertRule(i,s.cssRules.length)}catch{}}else u.appendChild(document.createTextNode(i));this.ctr++},r.flush=function(){this.tags.forEach(function(i){var u;return(u=i.parentNode)==null?void 0:u.removeChild(i)}),this.tags=[],this.ctr=0},t}(),Gt="-ms-",To="-moz-",Pe="-webkit-",Nh="comm",Ms="rule",Ds="decl",ES="@import",zh="@keyframes",CS="@layer",TS=Math.abs,wo=String.fromCharCode,wS=Object.assign;function AS(t,r){return Ht(t,0)^45?(((r<<2^Ht(t,0))<<2^Ht(t,1))<<2^Ht(t,2))<<2^Ht(t,3):0}function Bh(t){return t.trim()}function kS(t,r){return(t=r.exec(t))?t[0]:t}function Qe(t,r,a){return t.replace(r,a)}function Ns(t,r){return t.indexOf(r)}function Ht(t,r){return t.charCodeAt(r)|0}function Ua(t,r,a){return t.slice(r,a)}function In(t){return t.length}function zs(t){return t.length}function Ao(t,r){return r.push(t),t}function RS(t,r){return t.map(r).join("")}var ko=1,Nl=1,Lh=0,Qt=0,Et=0,zl="";function Ro(t,r,a,i,u,s,f){return{value:t,root:r,parent:a,type:i,props:u,children:s,line:ko,column:Nl,length:f,return:""}}function Ha(t,r){return wS(Ro("",null,null,"",null,null,0),t,{length:-t.length},r)}function OS(){return Et}function _S(){return Et=Qt>0?Ht(zl,--Qt):0,Nl--,Et===10&&(Nl=1,ko--),Et}function an(){return Et=Qt<Lh?Ht(zl,Qt++):0,Nl++,Et===10&&(Nl=1,ko++),Et}function qn(){return Ht(zl,Qt)}function Oo(){return Qt}function ja(t,r){return Ua(zl,t,r)}function Va(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Uh(t){return ko=Nl=1,Lh=In(zl=t),Qt=0,[]}function Hh(t){return zl="",t}function _o(t){return Bh(ja(Qt-1,Bs(t===91?t+2:t===40?t+1:t)))}function MS(t){for(;(Et=qn())&&Et<33;)an();return Va(t)>2||Va(Et)>3?"":" "}function DS(t,r){for(;--r&&an()&&!(Et<48||Et>102||Et>57&&Et<65||Et>70&&Et<97););return ja(t,Oo()+(r<6&&qn()==32&&an()==32))}function Bs(t){for(;an();)switch(Et){case t:return Qt;case 34:case 39:t!==34&&t!==39&&Bs(Et);break;case 40:t===41&&Bs(t);break;case 92:an();break}return Qt}function NS(t,r){for(;an()&&t+Et!==57;)if(t+Et===84&&qn()===47)break;return"/*"+ja(r,Qt-1)+"*"+wo(t===47?t:an())}function zS(t){for(;!Va(qn());)an();return ja(t,Qt)}function BS(t){return Hh(Mo("",null,null,null,[""],t=Uh(t),0,[0],t))}function Mo(t,r,a,i,u,s,f,h,m){for(var p=0,g=0,y=f,x=0,S=0,O=0,w=1,B=1,T=1,N=0,A="",z=u,R=s,M=i,I=A;B;)switch(O=N,N=an()){case 40:if(O!=108&&Ht(I,y-1)==58){Ns(I+=Qe(_o(N),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:I+=_o(N);break;case 9:case 10:case 13:case 32:I+=MS(O);break;case 92:I+=DS(Oo()-1,7);continue;case 47:switch(qn()){case 42:case 47:Ao(LS(NS(an(),Oo()),r,a),m);break;default:I+="/"}break;case 123*w:h[p++]=In(I)*T;case 125*w:case 59:case 0:switch(N){case 0:case 125:B=0;case 59+g:T==-1&&(I=Qe(I,/\f/g,"")),S>0&&In(I)-y&&Ao(S>32?Vh(I+";",i,a,y-1):Vh(Qe(I," ","")+";",i,a,y-2),m);break;case 59:I+=";";default:if(Ao(M=jh(I,r,a,p,g,u,h,A,z=[],R=[],y),s),N===123)if(g===0)Mo(I,r,M,M,z,s,y,h,R);else switch(x===99&&Ht(I,3)===110?100:x){case 100:case 108:case 109:case 115:Mo(t,M,M,i&&Ao(jh(t,M,M,0,0,u,h,A,u,z=[],y),R),u,R,y,h,i?z:R);break;default:Mo(I,M,M,M,[""],R,0,h,R)}}p=g=S=0,w=T=1,A=I="",y=f;break;case 58:y=1+In(I),S=O;default:if(w<1){if(N==123)--w;else if(N==125&&w++==0&&_S()==125)continue}switch(I+=wo(N),N*w){case 38:T=g>0?1:(I+="\f",-1);break;case 44:h[p++]=(In(I)-1)*T,T=1;break;case 64:qn()===45&&(I+=_o(an())),x=qn(),g=y=In(A=I+=zS(Oo())),N++;break;case 45:O===45&&In(I)==2&&(w=0)}}return s}function jh(t,r,a,i,u,s,f,h,m,p,g){for(var y=u-1,x=u===0?s:[""],S=zs(x),O=0,w=0,B=0;O<i;++O)for(var T=0,N=Ua(t,y+1,y=TS(w=f[O])),A=t;T<S;++T)(A=Bh(w>0?x[T]+" "+N:Qe(N,/&\f/g,x[T])))&&(m[B++]=A);return Ro(t,r,a,u===0?Ms:h,m,p,g)}function LS(t,r,a){return Ro(t,r,a,Nh,wo(OS()),Ua(t,2,-2),0)}function Vh(t,r,a,i){return Ro(t,r,a,Ds,Ua(t,0,i),Ua(t,i+1,-1),i)}function Bl(t,r){for(var a="",i=zs(t),u=0;u<i;u++)a+=r(t[u],u,t,r)||"";return a}function US(t,r,a,i){switch(t.type){case CS:if(t.children.length)break;case ES:case Ds:return t.return=t.return||t.value;case Nh:return"";case zh:return t.return=t.value+"{"+Bl(t.children,i)+"}";case Ms:t.value=t.props.join(",")}return In(a=Bl(t.children,i))?t.return=t.value+"{"+a+"}":""}function HS(t){var r=zs(t);return function(a,i,u,s){for(var f="",h=0;h<r;h++)f+=t[h](a,i,u,s)||"";return f}}function jS(t){return function(r){r.root||(r=r.return)&&t(r)}}var VS=function(r,a,i){for(var u=0,s=0;u=s,s=qn(),u===38&&s===12&&(a[i]=1),!Va(s);)an();return ja(r,Qt)},IS=function(r,a){var i=-1,u=44;do switch(Va(u)){case 0:u===38&&qn()===12&&(a[i]=1),r[i]+=VS(Qt-1,a,i);break;case 2:r[i]+=_o(u);break;case 4:if(u===44){r[++i]=qn()===58?"&\f":"",a[i]=r[i].length;break}default:r[i]+=wo(u)}while(u=an());return r},qS=function(r,a){return Hh(IS(Uh(r),a))},Ih=new WeakMap,GS=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var a=r.value,i=r.parent,u=r.column===i.column&&r.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(r.props.length===1&&a.charCodeAt(0)!==58&&!Ih.get(i))&&!u){Ih.set(r,!0);for(var s=[],f=qS(a,s),h=i.props,m=0,p=0;m<f.length;m++)for(var g=0;g<h.length;g++,p++)r.props[p]=s[m]?f[m].replace(/&\f/g,h[g]):h[g]+" "+f[m]}}},YS=function(r){if(r.type==="decl"){var a=r.value;a.charCodeAt(0)===108&&a.charCodeAt(2)===98&&(r.return="",r.value="")}};function qh(t,r){switch(AS(t,r)){case 5103:return Pe+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Pe+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Pe+t+To+t+Gt+t+t;case 6828:case 4268:return Pe+t+Gt+t+t;case 6165:return Pe+t+Gt+"flex-"+t+t;case 5187:return Pe+t+Qe(t,/(\w+).+(:[^]+)/,Pe+"box-$1$2"+Gt+"flex-$1$2")+t;case 5443:return Pe+t+Gt+"flex-item-"+Qe(t,/flex-|-self/,"")+t;case 4675:return Pe+t+Gt+"flex-line-pack"+Qe(t,/align-content|flex-|-self/,"")+t;case 5548:return Pe+t+Gt+Qe(t,"shrink","negative")+t;case 5292:return Pe+t+Gt+Qe(t,"basis","preferred-size")+t;case 6060:return Pe+"box-"+Qe(t,"-grow","")+Pe+t+Gt+Qe(t,"grow","positive")+t;case 4554:return Pe+Qe(t,/([^-])(transform)/g,"$1"+Pe+"$2")+t;case 6187:return Qe(Qe(Qe(t,/(zoom-|grab)/,Pe+"$1"),/(image-set)/,Pe+"$1"),t,"")+t;case 5495:case 3959:return Qe(t,/(image-set\([^]*)/,Pe+"$1$`$1");case 4968:return Qe(Qe(t,/(.+:)(flex-)?(.*)/,Pe+"box-pack:$3"+Gt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Pe+t+t;case 4095:case 3583:case 4068:case 2532:return Qe(t,/(.+)-inline(.+)/,Pe+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(In(t)-1-r>6)switch(Ht(t,r+1)){case 109:if(Ht(t,r+4)!==45)break;case 102:return Qe(t,/(.+:)(.+)-([^]+)/,"$1"+Pe+"$2-$3$1"+To+(Ht(t,r+3)==108?"$3":"$2-$3"))+t;case 115:return~Ns(t,"stretch")?qh(Qe(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(Ht(t,r+1)!==115)break;case 6444:switch(Ht(t,In(t)-3-(~Ns(t,"!important")&&10))){case 107:return Qe(t,":",":"+Pe)+t;case 101:return Qe(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Pe+(Ht(t,14)===45?"inline-":"")+"box$3$1"+Pe+"$2$3$1"+Gt+"$2box$3")+t}break;case 5936:switch(Ht(t,r+11)){case 114:return Pe+t+Gt+Qe(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Pe+t+Gt+Qe(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Pe+t+Gt+Qe(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Pe+t+Gt+t+t}return t}var $S=function(r,a,i,u){if(r.length>-1&&!r.return)switch(r.type){case Ds:r.return=qh(r.value,r.length);break;case zh:return Bl([Ha(r,{value:Qe(r.value,"@","@"+Pe)})],u);case Ms:if(r.length)return RS(r.props,function(s){switch(kS(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bl([Ha(r,{props:[Qe(s,/:(read-\w+)/,":"+To+"$1")]})],u);case"::placeholder":return Bl([Ha(r,{props:[Qe(s,/:(plac\w+)/,":"+Pe+"input-$1")]}),Ha(r,{props:[Qe(s,/:(plac\w+)/,":"+To+"$1")]}),Ha(r,{props:[Qe(s,/:(plac\w+)/,Gt+"input-$1")]})],u)}return""})}},FS=[$S],XS=function(r){var a=r.key;if(a==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(w){var B=w.getAttribute("data-emotion");B.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var u=r.stylisPlugins||FS,s={},f,h=[];f=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(w){for(var B=w.getAttribute("data-emotion").split(" "),T=1;T<B.length;T++)s[B[T]]=!0;h.push(w)});var m,p=[GS,YS];{var g,y=[US,jS(function(w){g.insert(w)})],x=HS(p.concat(u,y)),S=function(B){return Bl(BS(B),x)};m=function(B,T,N,A){g=N,S(B?B+"{"+T.styles+"}":T.styles),A&&(O.inserted[T.name]=!0)}}var O={key:a,sheet:new xS({key:a,container:f,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:s,registered:{},insert:m};return O.sheet.hydrate(h),O},Ls={exports:{}},Ze={};/** @license React v16.13.1
37
+ `);for(c=o=0;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;for(;c<U.length&&!U[c].includes("DetermineComponentFrameRoot");)c++;if(o===D.length||c===U.length)for(o=D.length-1,c=U.length-1;1<=o&&0<=c&&D[o]!==U[c];)c--;for(;1<=o&&0<=c;o--,c--)if(D[o]!==U[c]){if(o!==1||c!==1)do if(o--,c--,0>c||D[o]!==U[c]){var te=`
38
+ `+D[o].replace(" at new "," at ");return t.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",t.displayName)),te}while(1<=o&&0<=c);break}}}finally{P=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?F(i):""}function $(t){switch(t.tag){case 26:case 27:case 5:return F(t.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 15:return t=ee(t.type,!1),t;case 11:return t=ee(t.type.render,!1),t;case 1:return t=ee(t.type,!0),t;default:return""}}function Z(t){try{var n="";do n+=$(t),t=t.return;while(t);return n}catch(i){return`
39
+ Error generating stack: `+i.message+`
40
+ `+i.stack}}function Q(t){var n=t,i=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,n.flags&4098&&(i=n.return),t=n.return;while(t)}return n.tag===3?i:null}function ue(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function x(t){if(Q(t)!==t)throw Error(a(188))}function K(t){var n=t.alternate;if(!n){if(n=Q(t),n===null)throw Error(a(188));return n!==t?null:t}for(var i=t,o=n;;){var c=i.return;if(c===null)break;var p=c.alternate;if(p===null){if(o=c.return,o!==null){i=o;continue}break}if(c.child===p.child){for(p=c.child;p;){if(p===i)return x(c),t;if(p===o)return x(c),n;p=p.sibling}throw Error(a(188))}if(i.return!==o.return)i=c,o=p;else{for(var b=!1,C=c.child;C;){if(C===i){b=!0,i=c,o=p;break}if(C===o){b=!0,o=c,i=p;break}C=C.sibling}if(!b){for(C=p.child;C;){if(C===i){b=!0,i=p,o=c;break}if(C===o){b=!0,o=p,i=c;break}C=C.sibling}if(!b)throw Error(a(189))}}if(i.alternate!==o)throw Error(a(190))}if(i.tag!==3)throw Error(a(188));return i.stateNode.current===i?t:n}function se(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=se(t),n!==null)return n;t=t.sibling}return null}var O=Array.isArray,ie=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye={pending:!1,data:null,method:null,action:null},he=[],Be=-1;function Ce(t){return{current:t}}function ke(t){0>Be||(t.current=he[Be],he[Be]=null,Be--)}function pe(t,n){Be++,he[Be]=t.current,t.current=n}var De=Ce(null),me=Ce(null),ge=Ce(null),fe=Ce(null);function Ee(t,n){switch(pe(ge,n),pe(me,t),pe(De,null),t=n.nodeType,t){case 9:case 11:n=(n=n.documentElement)&&(n=n.namespaceURI)?aS(n):0;break;default:if(t=t===8?n.parentNode:n,n=t.tagName,t=t.namespaceURI)t=aS(t),n=oS(t,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}ke(De),pe(De,n)}function qe(){ke(De),ke(me),ke(ge)}function Le(t){t.memoizedState!==null&&pe(fe,t);var n=De.current,i=oS(n,t.type);n!==i&&(pe(me,t),pe(De,i))}function Oe(t){me.current===t&&(ke(De),ke(me)),fe.current===t&&(ke(fe),ko._currentValue=ye)}var Pe=Object.prototype.hasOwnProperty,ht=e.unstable_scheduleCallback,Qt=e.unstable_cancelCallback,gn=e.unstable_shouldYield,xe=e.unstable_requestPaint,ze=e.unstable_now,Rt=e.unstable_getCurrentPriorityLevel,X=e.unstable_ImmediatePriority,le=e.unstable_UserBlockingPriority,de=e.unstable_NormalPriority,Ae=e.unstable_LowPriority,Ve=e.unstable_IdlePriority,Ue=e.log,on=e.unstable_setDisableYieldValue,Ut=null,Nt=null;function gi(t){if(Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Ut,t,void 0,(t.current.flags&128)===128)}catch{}}function St(t){if(typeof Ue=="function"&&on(t),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(Ut,t)}catch{}}var Ot=Math.clz32?Math.clz32:B4,Fn=Math.log,N4=Math.LN2;function B4(t){return t>>>=0,t===0?32:31-(Fn(t)/N4|0)|0}var Ru=128,Ou=4194304;function yi(t){var n=t&42;if(n!==0)return n;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Mu(t,n){var i=t.pendingLanes;if(i===0)return 0;var o=0,c=t.suspendedLanes,p=t.pingedLanes,b=t.warmLanes;t=t.finishedLanes!==0;var C=i&134217727;return C!==0?(i=C&~c,i!==0?o=yi(i):(p&=C,p!==0?o=yi(p):t||(b=C&~b,b!==0&&(o=yi(b))))):(C=i&~c,C!==0?o=yi(C):p!==0?o=yi(p):t||(b=i&~b,b!==0&&(o=yi(b)))),o===0?0:n!==0&&n!==o&&!(n&c)&&(c=o&-o,b=n&-n,c>=b||c===32&&(b&4194176)!==0)?n:o}function La(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function L4(t,n){switch(t){case 1:case 2:case 4:case 8:return n+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Wy(){var t=Ru;return Ru<<=1,!(Ru&4194176)&&(Ru=128),t}function Jy(){var t=Ou;return Ou<<=1,!(Ou&62914560)&&(Ou=4194304),t}function _f(t){for(var n=[],i=0;31>i;i++)n.push(t);return n}function Ua(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function U4(t,n,i,o,c,p){var b=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var C=t.entanglements,D=t.expirationTimes,U=t.hiddenUpdates;for(i=b&~i;0<i;){var te=31-Ot(i),ae=1<<te;C[te]=0,D[te]=-1;var G=U[te];if(G!==null)for(U[te]=null,te=0;te<G.length;te++){var J=G[te];J!==null&&(J.lane&=-536870913)}i&=~ae}o!==0&&e0(t,o,0),p!==0&&c===0&&t.tag!==0&&(t.suspendedLanes|=p&~(b&~n))}function e0(t,n,i){t.pendingLanes|=n,t.suspendedLanes&=~n;var o=31-Ot(n);t.entangledLanes|=n,t.entanglements[o]=t.entanglements[o]|1073741824|i&4194218}function t0(t,n){var i=t.entangledLanes|=n;for(t=t.entanglements;i;){var o=31-Ot(i),c=1<<o;c&n|t[o]&n&&(t[o]|=n),i&=~c}}function n0(t){return t&=-t,2<t?8<t?t&134217727?32:268435456:8:2}function r0(){var t=ie.p;return t!==0?t:(t=window.event,t===void 0?32:wS(t.type))}function j4(t,n){var i=ie.p;try{return ie.p=t,n()}finally{ie.p=i}}var Vr=Math.random().toString(36).slice(2),Kt="__reactFiber$"+Vr,un="__reactProps$"+Vr,al="__reactContainer$"+Vr,Df="__reactEvents$"+Vr,H4="__reactListeners$"+Vr,I4="__reactHandles$"+Vr,i0="__reactResources$"+Vr,ja="__reactMarker$"+Vr;function zf(t){delete t[Kt],delete t[un],delete t[Df],delete t[H4],delete t[I4]}function bi(t){var n=t[Kt];if(n)return n;for(var i=t.parentNode;i;){if(n=i[al]||i[Kt]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(t=cS(t);t!==null;){if(i=t[Kt])return i;t=cS(t)}return n}t=i,i=t.parentNode}return null}function ol(t){if(t=t[Kt]||t[al]){var n=t.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return t}return null}function Ha(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(a(33))}function ul(t){var n=t[i0];return n||(n=t[i0]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function jt(t){t[ja]=!0}var l0=new Set,a0={};function Si(t,n){sl(t,n),sl(t+"Capture",n)}function sl(t,n){for(a0[t]=n,t=0;t<n.length;t++)l0.add(n[t])}var yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),V4=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),o0={},u0={};function q4(t){return Pe.call(u0,t)?!0:Pe.call(o0,t)?!1:V4.test(t)?u0[t]=!0:(o0[t]=!0,!1)}function _u(t,n,i){if(q4(n))if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+i)}}function Du(t,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+i)}}function br(t,n,i,o){if(o===null)t.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(n,i,""+o)}}function On(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function s0(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function $4(t){var n=s0(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),o=""+t[n];if(!t.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,p=i.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return c.call(this)},set:function(b){o=""+b,p.call(this,b)}}),Object.defineProperty(t,n,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(b){o=""+b},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function zu(t){t._valueTracker||(t._valueTracker=$4(t))}function c0(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var i=n.getValue(),o="";return t&&(o=s0(t)?t.checked?"true":"false":t.value),t=o,t!==i?(n.setValue(t),!0):!1}function Nu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var G4=/[\n"\\]/g;function Mn(t){return t.replace(G4,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Nf(t,n,i,o,c,p,b,C){t.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.type=b:t.removeAttribute("type"),n!=null?b==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+On(n)):t.value!==""+On(n)&&(t.value=""+On(n)):b!=="submit"&&b!=="reset"||t.removeAttribute("value"),n!=null?Bf(t,b,On(n)):i!=null?Bf(t,b,On(i)):o!=null&&t.removeAttribute("value"),c==null&&p!=null&&(t.defaultChecked=!!p),c!=null&&(t.checked=c&&typeof c!="function"&&typeof c!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?t.name=""+On(C):t.removeAttribute("name")}function f0(t,n,i,o,c,p,b,C){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.type=p),n!=null||i!=null){if(!(p!=="submit"&&p!=="reset"||n!=null))return;i=i!=null?""+On(i):"",n=n!=null?""+On(n):i,C||n===t.value||(t.value=n),t.defaultValue=n}o=o??c,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=C?t.checked:!!o,t.defaultChecked=!!o,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(t.name=b)}function Bf(t,n,i){n==="number"&&Nu(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function cl(t,n,i,o){if(t=t.options,n){n={};for(var c=0;c<i.length;c++)n["$"+i[c]]=!0;for(i=0;i<t.length;i++)c=n.hasOwnProperty("$"+t[i].value),t[i].selected!==c&&(t[i].selected=c),c&&o&&(t[i].defaultSelected=!0)}else{for(i=""+On(i),n=null,c=0;c<t.length;c++){if(t[c].value===i){t[c].selected=!0,o&&(t[c].defaultSelected=!0);return}n!==null||t[c].disabled||(n=t[c])}n!==null&&(n.selected=!0)}}function d0(t,n,i){if(n!=null&&(n=""+On(n),n!==t.value&&(t.value=n),i==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=i!=null?""+On(i):""}function p0(t,n,i,o){if(n==null){if(o!=null){if(i!=null)throw Error(a(92));if(O(o)){if(1<o.length)throw Error(a(93));o=o[0]}i=o}i==null&&(i=""),n=i}i=On(n),t.defaultValue=i,o=t.textContent,o===i&&o!==""&&o!==null&&(t.value=o)}function fl(t,n){if(n){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=n;return}}t.textContent=n}var Y4=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function h0(t,n,i){var o=n.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":o?t.setProperty(n,i):typeof i!="number"||i===0||Y4.has(n)?n==="float"?t.cssFloat=i:t[n]=(""+i).trim():t[n]=i+"px"}function m0(t,n,i){if(n!=null&&typeof n!="object")throw Error(a(62));if(t=t.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?t.setProperty(o,""):o==="float"?t.cssFloat="":t[o]="");for(var c in n)o=n[c],n.hasOwnProperty(c)&&i[c]!==o&&h0(t,c,o)}else for(var p in n)n.hasOwnProperty(p)&&h0(t,p,n[p])}function Lf(t){if(t.indexOf("-")===-1)return!1;switch(t){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 F4=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),P4=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Bu(t){return P4.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Uf=null;function jf(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var dl=null,pl=null;function g0(t){var n=ol(t);if(n&&(t=n.stateNode)){var i=t[un]||null;e:switch(t=n.stateNode,n.type){case"input":if(Nf(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),n=i.name,i.type==="radio"&&n!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Mn(""+n)+'"][type="radio"]'),n=0;n<i.length;n++){var o=i[n];if(o!==t&&o.form===t.form){var c=o[un]||null;if(!c)throw Error(a(90));Nf(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(n=0;n<i.length;n++)o=i[n],o.form===t.form&&c0(o)}break e;case"textarea":d0(t,i.value,i.defaultValue);break e;case"select":n=i.value,n!=null&&cl(t,!!i.multiple,n,!1)}}}var Hf=!1;function y0(t,n,i){if(Hf)return t(n,i);Hf=!0;try{var o=t(n);return o}finally{if(Hf=!1,(dl!==null||pl!==null)&&(bs(),dl&&(n=dl,t=pl,pl=dl=null,g0(n),t)))for(n=0;n<t.length;n++)g0(t[n])}}function Ia(t,n){var i=t.stateNode;if(i===null)return null;var o=i[un]||null;if(o===null)return null;i=o[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(a(231,n,typeof i));return i}var If=!1;if(yr)try{var Va={};Object.defineProperty(Va,"passive",{get:function(){If=!0}}),window.addEventListener("test",Va,Va),window.removeEventListener("test",Va,Va)}catch{If=!1}var qr=null,Vf=null,Lu=null;function b0(){if(Lu)return Lu;var t,n=Vf,i=n.length,o,c="value"in qr?qr.value:qr.textContent,p=c.length;for(t=0;t<i&&n[t]===c[t];t++);var b=i-t;for(o=1;o<=b&&n[i-o]===c[p-o];o++);return Lu=c.slice(t,1<o?1-o:void 0)}function Uu(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function ju(){return!0}function S0(){return!1}function sn(t){function n(i,o,c,p,b){this._reactName=i,this._targetInst=c,this.type=o,this.nativeEvent=p,this.target=b,this.currentTarget=null;for(var C in t)t.hasOwnProperty(C)&&(i=t[C],this[C]=i?i(p):p[C]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?ju:S0,this.isPropagationStopped=S0,this}return E(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=ju)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=ju)},persist:function(){},isPersistent:ju}),n}var vi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hu=sn(vi),qa=E({},vi,{view:0,detail:0}),X4=sn(qa),qf,$f,$a,Iu=E({},qa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yf,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==$a&&($a&&t.type==="mousemove"?(qf=t.screenX-$a.screenX,$f=t.screenY-$a.screenY):$f=qf=0,$a=t),qf)},movementY:function(t){return"movementY"in t?t.movementY:$f}}),v0=sn(Iu),Q4=E({},Iu,{dataTransfer:0}),K4=sn(Q4),Z4=E({},qa,{relatedTarget:0}),Gf=sn(Z4),W4=E({},vi,{animationName:0,elapsedTime:0,pseudoElement:0}),J4=sn(W4),e3=E({},vi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),t3=sn(e3),n3=E({},vi,{data:0}),x0=sn(n3),r3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i3={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"},l3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function a3(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=l3[t])?!!n[t]:!1}function Yf(){return a3}var o3=E({},qa,{key:function(t){if(t.key){var n=r3[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=Uu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?i3[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yf,charCode:function(t){return t.type==="keypress"?Uu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Uu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),u3=sn(o3),s3=E({},Iu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),E0=sn(s3),c3=E({},qa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yf}),f3=sn(c3),d3=E({},vi,{propertyName:0,elapsedTime:0,pseudoElement:0}),p3=sn(d3),h3=E({},Iu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),m3=sn(h3),g3=E({},vi,{newState:0,oldState:0}),y3=sn(g3),b3=[9,13,27,32],Ff=yr&&"CompositionEvent"in window,Ga=null;yr&&"documentMode"in document&&(Ga=document.documentMode);var S3=yr&&"TextEvent"in window&&!Ga,C0=yr&&(!Ff||Ga&&8<Ga&&11>=Ga),T0=" ",w0=!1;function A0(t,n){switch(t){case"keyup":return b3.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function k0(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var hl=!1;function v3(t,n){switch(t){case"compositionend":return k0(n);case"keypress":return n.which!==32?null:(w0=!0,T0);case"textInput":return t=n.data,t===T0&&w0?null:t;default:return null}}function x3(t,n){if(hl)return t==="compositionend"||!Ff&&A0(t,n)?(t=b0(),Lu=Vf=qr=null,hl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return C0&&n.locale!=="ko"?null:n.data;default:return null}}var E3={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 R0(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!E3[t.type]:n==="textarea"}function O0(t,n,i,o){dl?pl?pl.push(o):pl=[o]:dl=o,n=Cs(n,"onChange"),0<n.length&&(i=new Hu("onChange","change",null,i,o),t.push({event:i,listeners:n}))}var Ya=null,Fa=null;function C3(t){tS(t,0)}function Vu(t){var n=Ha(t);if(c0(n))return t}function M0(t,n){if(t==="change")return n}var _0=!1;if(yr){var Pf;if(yr){var Xf="oninput"in document;if(!Xf){var D0=document.createElement("div");D0.setAttribute("oninput","return;"),Xf=typeof D0.oninput=="function"}Pf=Xf}else Pf=!1;_0=Pf&&(!document.documentMode||9<document.documentMode)}function z0(){Ya&&(Ya.detachEvent("onpropertychange",N0),Fa=Ya=null)}function N0(t){if(t.propertyName==="value"&&Vu(Fa)){var n=[];O0(n,Fa,t,jf(t)),y0(C3,n)}}function T3(t,n,i){t==="focusin"?(z0(),Ya=n,Fa=i,Ya.attachEvent("onpropertychange",N0)):t==="focusout"&&z0()}function w3(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Vu(Fa)}function A3(t,n){if(t==="click")return Vu(n)}function k3(t,n){if(t==="input"||t==="change")return Vu(n)}function R3(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var yn=typeof Object.is=="function"?Object.is:R3;function Pa(t,n){if(yn(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var i=Object.keys(t),o=Object.keys(n);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var c=i[o];if(!Pe.call(n,c)||!yn(t[c],n[c]))return!1}return!0}function B0(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function L0(t,n){var i=B0(t);t=0;for(var o;i;){if(i.nodeType===3){if(o=t+i.textContent.length,t<=n&&o>=n)return{node:i,offset:n-t};t=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=B0(i)}}function U0(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?U0(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function j0(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=Nu(t.document);n instanceof t.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)t=n.contentWindow;else break;n=Nu(t.document)}return n}function Qf(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}function O3(t,n){var i=j0(n);n=t.focusedElem;var o=t.selectionRange;if(i!==n&&n&&n.ownerDocument&&U0(n.ownerDocument.documentElement,n)){if(o!==null&&Qf(n)){if(t=o.start,i=o.end,i===void 0&&(i=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(i,n.value.length);else if(i=(t=n.ownerDocument||document)&&t.defaultView||window,i.getSelection){i=i.getSelection();var c=n.textContent.length,p=Math.min(o.start,c);o=o.end===void 0?p:Math.min(o.end,c),!i.extend&&p>o&&(c=o,o=p,p=c),c=L0(n,p);var b=L0(n,o);c&&b&&(i.rangeCount!==1||i.anchorNode!==c.node||i.anchorOffset!==c.offset||i.focusNode!==b.node||i.focusOffset!==b.offset)&&(t=t.createRange(),t.setStart(c.node,c.offset),i.removeAllRanges(),p>o?(i.addRange(t),i.extend(b.node,b.offset)):(t.setEnd(b.node,b.offset),i.addRange(t)))}}for(t=[],i=n;i=i.parentNode;)i.nodeType===1&&t.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)i=t[n],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var M3=yr&&"documentMode"in document&&11>=document.documentMode,ml=null,Kf=null,Xa=null,Zf=!1;function H0(t,n,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Zf||ml==null||ml!==Nu(o)||(o=ml,"selectionStart"in o&&Qf(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Xa&&Pa(Xa,o)||(Xa=o,o=Cs(Kf,"onSelect"),0<o.length&&(n=new Hu("onSelect","select",null,n,i),t.push({event:n,listeners:o}),n.target=ml)))}function xi(t,n){var i={};return i[t.toLowerCase()]=n.toLowerCase(),i["Webkit"+t]="webkit"+n,i["Moz"+t]="moz"+n,i}var gl={animationend:xi("Animation","AnimationEnd"),animationiteration:xi("Animation","AnimationIteration"),animationstart:xi("Animation","AnimationStart"),transitionrun:xi("Transition","TransitionRun"),transitionstart:xi("Transition","TransitionStart"),transitioncancel:xi("Transition","TransitionCancel"),transitionend:xi("Transition","TransitionEnd")},Wf={},I0={};yr&&(I0=document.createElement("div").style,"AnimationEvent"in window||(delete gl.animationend.animation,delete gl.animationiteration.animation,delete gl.animationstart.animation),"TransitionEvent"in window||delete gl.transitionend.transition);function Ei(t){if(Wf[t])return Wf[t];if(!gl[t])return t;var n=gl[t],i;for(i in n)if(n.hasOwnProperty(i)&&i in I0)return Wf[t]=n[i];return t}var V0=Ei("animationend"),q0=Ei("animationiteration"),$0=Ei("animationstart"),_3=Ei("transitionrun"),D3=Ei("transitionstart"),z3=Ei("transitioncancel"),G0=Ei("transitionend"),Y0=new Map,F0="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function Pn(t,n){Y0.set(t,n),Si(n,[t])}var _n=[],yl=0,Jf=0;function qu(){for(var t=yl,n=Jf=yl=0;n<t;){var i=_n[n];_n[n++]=null;var o=_n[n];_n[n++]=null;var c=_n[n];_n[n++]=null;var p=_n[n];if(_n[n++]=null,o!==null&&c!==null){var b=o.pending;b===null?c.next=c:(c.next=b.next,b.next=c),o.pending=c}p!==0&&P0(i,c,p)}}function $u(t,n,i,o){_n[yl++]=t,_n[yl++]=n,_n[yl++]=i,_n[yl++]=o,Jf|=o,t.lanes|=o,t=t.alternate,t!==null&&(t.lanes|=o)}function ed(t,n,i,o){return $u(t,n,i,o),Gu(t)}function $r(t,n){return $u(t,null,null,n),Gu(t)}function P0(t,n,i){t.lanes|=i;var o=t.alternate;o!==null&&(o.lanes|=i);for(var c=!1,p=t.return;p!==null;)p.childLanes|=i,o=p.alternate,o!==null&&(o.childLanes|=i),p.tag===22&&(t=p.stateNode,t===null||t._visibility&1||(c=!0)),t=p,p=p.return;c&&n!==null&&t.tag===3&&(p=t.stateNode,c=31-Ot(i),p=p.hiddenUpdates,t=p[c],t===null?p[c]=[n]:t.push(n),n.lane=i|536870912)}function Gu(t){if(50<vo)throw vo=0,ap=null,Error(a(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var bl={},X0=new WeakMap;function Dn(t,n){if(typeof t=="object"&&t!==null){var i=X0.get(t);return i!==void 0?i:(n={value:t,source:n,stack:Z(n)},X0.set(t,n),n)}return{value:t,source:n,stack:Z(n)}}var Sl=[],vl=0,Yu=null,Fu=0,zn=[],Nn=0,Ci=null,Sr=1,vr="";function Ti(t,n){Sl[vl++]=Fu,Sl[vl++]=Yu,Yu=t,Fu=n}function Q0(t,n,i){zn[Nn++]=Sr,zn[Nn++]=vr,zn[Nn++]=Ci,Ci=t;var o=Sr;t=vr;var c=32-Ot(o)-1;o&=~(1<<c),i+=1;var p=32-Ot(n)+c;if(30<p){var b=c-c%5;p=(o&(1<<b)-1).toString(32),o>>=b,c-=b,Sr=1<<32-Ot(n)+c|i<<c|o,vr=p+t}else Sr=1<<p|i<<c|o,vr=t}function td(t){t.return!==null&&(Ti(t,1),Q0(t,1,0))}function nd(t){for(;t===Yu;)Yu=Sl[--vl],Sl[vl]=null,Fu=Sl[--vl],Sl[vl]=null;for(;t===Ci;)Ci=zn[--Nn],zn[Nn]=null,vr=zn[--Nn],zn[Nn]=null,Sr=zn[--Nn],zn[Nn]=null}var Jt=null,$t=null,Xe=!1,Xn=null,or=!1,rd=Error(a(519));function wi(t){var n=Error(a(418,""));throw Za(Dn(n,t)),rd}function K0(t){var n=t.stateNode,i=t.type,o=t.memoizedProps;switch(n[Kt]=t,n[un]=o,i){case"dialog":$e("cancel",n),$e("close",n);break;case"iframe":case"object":case"embed":$e("load",n);break;case"video":case"audio":for(i=0;i<Eo.length;i++)$e(Eo[i],n);break;case"source":$e("error",n);break;case"img":case"image":case"link":$e("error",n),$e("load",n);break;case"details":$e("toggle",n);break;case"input":$e("invalid",n),f0(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),zu(n);break;case"select":$e("invalid",n);break;case"textarea":$e("invalid",n),p0(n,o.value,o.defaultValue,o.children),zu(n)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||n.textContent===""+i||o.suppressHydrationWarning===!0||lS(n.textContent,i)?(o.popover!=null&&($e("beforetoggle",n),$e("toggle",n)),o.onScroll!=null&&$e("scroll",n),o.onScrollEnd!=null&&$e("scrollend",n),o.onClick!=null&&(n.onclick=Ts),n=!0):n=!1,n||wi(t)}function Z0(t){for(Jt=t.return;Jt;)switch(Jt.tag){case 3:case 27:or=!0;return;case 5:case 13:or=!1;return;default:Jt=Jt.return}}function Qa(t){if(t!==Jt)return!1;if(!Xe)return Z0(t),Xe=!0,!1;var n=!1,i;if((i=t.tag!==3&&t.tag!==27)&&((i=t.tag===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Cp(t.type,t.memoizedProps)),i=!i),i&&(n=!0),n&&$t&&wi(t),Z0(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));e:{for(t=t.nextSibling,n=0;t;){if(t.nodeType===8)if(i=t.data,i==="/$"){if(n===0){$t=Kn(t.nextSibling);break e}n--}else i!=="$"&&i!=="$!"&&i!=="$?"||n++;t=t.nextSibling}$t=null}}else $t=Jt?Kn(t.stateNode.nextSibling):null;return!0}function Ka(){$t=Jt=null,Xe=!1}function Za(t){Xn===null?Xn=[t]:Xn.push(t)}var Wa=Error(a(460)),W0=Error(a(474)),id={then:function(){}};function J0(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Pu(){}function e1(t,n,i){switch(i=t[i],i===void 0?t.push(n):i!==n&&(n.then(Pu,Pu),n=i),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,t===Wa?Error(a(483)):t;default:if(typeof n.status=="string")n.then(Pu,Pu);else{if(t=st,t!==null&&100<t.shellSuspendCounter)throw Error(a(482));t=n,t.status="pending",t.then(function(o){if(n.status==="pending"){var c=n;c.status="fulfilled",c.value=o}},function(o){if(n.status==="pending"){var c=n;c.status="rejected",c.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,t===Wa?Error(a(483)):t}throw Ja=n,Wa}}var Ja=null;function t1(){if(Ja===null)throw Error(a(459));var t=Ja;return Ja=null,t}var xl=null,eo=0;function Xu(t){var n=eo;return eo+=1,xl===null&&(xl=[]),e1(xl,t,n)}function to(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function Qu(t,n){throw n.$$typeof===s?Error(a(525)):(t=Object.prototype.toString.call(n),Error(a(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function n1(t){var n=t._init;return n(t._payload)}function r1(t){function n(j,L){if(t){var q=j.deletions;q===null?(j.deletions=[L],j.flags|=16):q.push(L)}}function i(j,L){if(!t)return null;for(;L!==null;)n(j,L),L=L.sibling;return null}function o(j){for(var L=new Map;j!==null;)j.key!==null?L.set(j.key,j):L.set(j.index,j),j=j.sibling;return L}function c(j,L){return j=ti(j,L),j.index=0,j.sibling=null,j}function p(j,L,q){return j.index=q,t?(q=j.alternate,q!==null?(q=q.index,q<L?(j.flags|=33554434,L):q):(j.flags|=33554434,L)):(j.flags|=1048576,L)}function b(j){return t&&j.alternate===null&&(j.flags|=33554434),j}function C(j,L,q,re){return L===null||L.tag!==6?(L=Wd(q,j.mode,re),L.return=j,L):(L=c(L,q),L.return=j,L)}function D(j,L,q,re){var be=q.type;return be===m?te(j,L,q.props.children,re,q.key):L!==null&&(L.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===B&&n1(be)===L.type)?(L=c(L,q.props),to(L,q),L.return=j,L):(L=ps(q.type,q.key,q.props,null,j.mode,re),to(L,q),L.return=j,L)}function U(j,L,q,re){return L===null||L.tag!==4||L.stateNode.containerInfo!==q.containerInfo||L.stateNode.implementation!==q.implementation?(L=Jd(q,j.mode,re),L.return=j,L):(L=c(L,q.children||[]),L.return=j,L)}function te(j,L,q,re,be){return L===null||L.tag!==7?(L=Bi(q,j.mode,re,be),L.return=j,L):(L=c(L,q),L.return=j,L)}function ae(j,L,q){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Wd(""+L,j.mode,q),L.return=j,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case f:return q=ps(L.type,L.key,L.props,null,j.mode,q),to(q,L),q.return=j,q;case d:return L=Jd(L,j.mode,q),L.return=j,L;case B:var re=L._init;return L=re(L._payload),ae(j,L,q)}if(O(L)||_(L))return L=Bi(L,j.mode,q,null),L.return=j,L;if(typeof L.then=="function")return ae(j,Xu(L),q);if(L.$$typeof===S)return ae(j,cs(j,L),q);Qu(j,L)}return null}function G(j,L,q,re){var be=L!==null?L.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return be!==null?null:C(j,L,""+q,re);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case f:return q.key===be?D(j,L,q,re):null;case d:return q.key===be?U(j,L,q,re):null;case B:return be=q._init,q=be(q._payload),G(j,L,q,re)}if(O(q)||_(q))return be!==null?null:te(j,L,q,re,null);if(typeof q.then=="function")return G(j,L,Xu(q),re);if(q.$$typeof===S)return G(j,L,cs(j,q),re);Qu(j,q)}return null}function J(j,L,q,re,be){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return j=j.get(q)||null,C(L,j,""+re,be);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case f:return j=j.get(re.key===null?q:re.key)||null,D(L,j,re,be);case d:return j=j.get(re.key===null?q:re.key)||null,U(L,j,re,be);case B:var je=re._init;return re=je(re._payload),J(j,L,q,re,be)}if(O(re)||_(re))return j=j.get(q)||null,te(L,j,re,be,null);if(typeof re.then=="function")return J(j,L,q,Xu(re),be);if(re.$$typeof===S)return J(j,L,q,cs(L,re),be);Qu(L,re)}return null}function Se(j,L,q,re){for(var be=null,je=null,ve=L,Te=L=0,Vt=null;ve!==null&&Te<q.length;Te++){ve.index>Te?(Vt=ve,ve=null):Vt=ve.sibling;var Qe=G(j,ve,q[Te],re);if(Qe===null){ve===null&&(ve=Vt);break}t&&ve&&Qe.alternate===null&&n(j,ve),L=p(Qe,L,Te),je===null?be=Qe:je.sibling=Qe,je=Qe,ve=Vt}if(Te===q.length)return i(j,ve),Xe&&Ti(j,Te),be;if(ve===null){for(;Te<q.length;Te++)ve=ae(j,q[Te],re),ve!==null&&(L=p(ve,L,Te),je===null?be=ve:je.sibling=ve,je=ve);return Xe&&Ti(j,Te),be}for(ve=o(ve);Te<q.length;Te++)Vt=J(ve,j,Te,q[Te],re),Vt!==null&&(t&&Vt.alternate!==null&&ve.delete(Vt.key===null?Te:Vt.key),L=p(Vt,L,Te),je===null?be=Vt:je.sibling=Vt,je=Vt);return t&&ve.forEach(function(ui){return n(j,ui)}),Xe&&Ti(j,Te),be}function Re(j,L,q,re){if(q==null)throw Error(a(151));for(var be=null,je=null,ve=L,Te=L=0,Vt=null,Qe=q.next();ve!==null&&!Qe.done;Te++,Qe=q.next()){ve.index>Te?(Vt=ve,ve=null):Vt=ve.sibling;var ui=G(j,ve,Qe.value,re);if(ui===null){ve===null&&(ve=Vt);break}t&&ve&&ui.alternate===null&&n(j,ve),L=p(ui,L,Te),je===null?be=ui:je.sibling=ui,je=ui,ve=Vt}if(Qe.done)return i(j,ve),Xe&&Ti(j,Te),be;if(ve===null){for(;!Qe.done;Te++,Qe=q.next())Qe=ae(j,Qe.value,re),Qe!==null&&(L=p(Qe,L,Te),je===null?be=Qe:je.sibling=Qe,je=Qe);return Xe&&Ti(j,Te),be}for(ve=o(ve);!Qe.done;Te++,Qe=q.next())Qe=J(ve,j,Te,Qe.value,re),Qe!==null&&(t&&Qe.alternate!==null&&ve.delete(Qe.key===null?Te:Qe.key),L=p(Qe,L,Te),je===null?be=Qe:je.sibling=Qe,je=Qe);return t&&ve.forEach(function(PO){return n(j,PO)}),Xe&&Ti(j,Te),be}function Et(j,L,q,re){if(typeof q=="object"&&q!==null&&q.type===m&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case f:e:{for(var be=q.key;L!==null;){if(L.key===be){if(be=q.type,be===m){if(L.tag===7){i(j,L.sibling),re=c(L,q.props.children),re.return=j,j=re;break e}}else if(L.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===B&&n1(be)===L.type){i(j,L.sibling),re=c(L,q.props),to(re,q),re.return=j,j=re;break e}i(j,L);break}else n(j,L);L=L.sibling}q.type===m?(re=Bi(q.props.children,j.mode,re,q.key),re.return=j,j=re):(re=ps(q.type,q.key,q.props,null,j.mode,re),to(re,q),re.return=j,j=re)}return b(j);case d:e:{for(be=q.key;L!==null;){if(L.key===be)if(L.tag===4&&L.stateNode.containerInfo===q.containerInfo&&L.stateNode.implementation===q.implementation){i(j,L.sibling),re=c(L,q.children||[]),re.return=j,j=re;break e}else{i(j,L);break}else n(j,L);L=L.sibling}re=Jd(q,j.mode,re),re.return=j,j=re}return b(j);case B:return be=q._init,q=be(q._payload),Et(j,L,q,re)}if(O(q))return Se(j,L,q,re);if(_(q)){if(be=_(q),typeof be!="function")throw Error(a(150));return q=be.call(q),Re(j,L,q,re)}if(typeof q.then=="function")return Et(j,L,Xu(q),re);if(q.$$typeof===S)return Et(j,L,cs(j,q),re);Qu(j,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,L!==null&&L.tag===6?(i(j,L.sibling),re=c(L,q),re.return=j,j=re):(i(j,L),re=Wd(q,j.mode,re),re.return=j,j=re),b(j)):i(j,L)}return function(j,L,q,re){try{eo=0;var be=Et(j,L,q,re);return xl=null,be}catch(ve){if(ve===Wa)throw ve;var je=jn(29,ve,null,j.mode);return je.lanes=re,je.return=j,je}finally{}}}var Ai=r1(!0),i1=r1(!1),El=Ce(null),Ku=Ce(0);function l1(t,n){t=_r,pe(Ku,t),pe(El,n),_r=t|n.baseLanes}function ld(){pe(Ku,_r),pe(El,El.current)}function ad(){_r=Ku.current,ke(El),ke(Ku)}var Bn=Ce(null),ur=null;function Gr(t){var n=t.alternate;pe(Bt,Bt.current&1),pe(Bn,t),ur===null&&(n===null||El.current!==null||n.memoizedState!==null)&&(ur=t)}function a1(t){if(t.tag===22){if(pe(Bt,Bt.current),pe(Bn,t),ur===null){var n=t.alternate;n!==null&&n.memoizedState!==null&&(ur=t)}}else Yr()}function Yr(){pe(Bt,Bt.current),pe(Bn,Bn.current)}function xr(t){ke(Bn),ur===t&&(ur=null),ke(Bt)}var Bt=Ce(0);function Zu(t){for(var n=t;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(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 null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var N3=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(i,o){t.push(o)}};this.abort=function(){n.aborted=!0,t.forEach(function(i){return i()})}},B3=e.unstable_scheduleCallback,L3=e.unstable_NormalPriority,Lt={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function od(){return{controller:new N3,data:new Map,refCount:0}}function no(t){t.refCount--,t.refCount===0&&B3(L3,function(){t.controller.abort()})}var ro=null,ud=0,Cl=0,Tl=null;function U3(t,n){if(ro===null){var i=ro=[];ud=0,Cl=hp(),Tl={status:"pending",value:void 0,then:function(o){i.push(o)}}}return ud++,n.then(o1,o1),n}function o1(){if(--ud===0&&ro!==null){Tl!==null&&(Tl.status="fulfilled");var t=ro;ro=null,Cl=0,Tl=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function j3(t,n){var i=[],o={status:"pending",value:null,reason:null,then:function(c){i.push(c)}};return t.then(function(){o.status="fulfilled",o.value=n;for(var c=0;c<i.length;c++)(0,i[c])(n)},function(c){for(o.status="rejected",o.reason=c,c=0;c<i.length;c++)(0,i[c])(void 0)}),o}var u1=V.S;V.S=function(t,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&U3(t,n),u1!==null&&u1(t,n)};var ki=Ce(null);function sd(){var t=ki.current;return t!==null?t:st.pooledCache}function Wu(t,n){n===null?pe(ki,ki.current):pe(ki,n.pool)}function s1(){var t=sd();return t===null?null:{parent:Lt._currentValue,pool:t}}var Fr=0,Ne=null,tt=null,Mt=null,Ju=!1,wl=!1,Ri=!1,es=0,io=0,Al=null,H3=0;function Tt(){throw Error(a(321))}function cd(t,n){if(n===null)return!1;for(var i=0;i<n.length&&i<t.length;i++)if(!yn(t[i],n[i]))return!1;return!0}function fd(t,n,i,o,c,p){return Fr=p,Ne=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,V.H=t===null||t.memoizedState===null?Oi:Pr,Ri=!1,p=i(o,c),Ri=!1,wl&&(p=f1(n,i,o,c)),c1(t),p}function c1(t){V.H=sr;var n=tt!==null&&tt.next!==null;if(Fr=0,Mt=tt=Ne=null,Ju=!1,io=0,Al=null,n)throw Error(a(300));t===null||Ht||(t=t.dependencies,t!==null&&ss(t)&&(Ht=!0))}function f1(t,n,i,o){Ne=t;var c=0;do{if(wl&&(Al=null),io=0,wl=!1,25<=c)throw Error(a(301));if(c+=1,Mt=tt=null,t.updateQueue!=null){var p=t.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}V.H=Mi,p=n(i,o)}while(wl);return p}function I3(){var t=V.H,n=t.useState()[0];return n=typeof n.then=="function"?lo(n):n,t=t.useState()[0],(tt!==null?tt.memoizedState:null)!==t&&(Ne.flags|=1024),n}function dd(){var t=es!==0;return es=0,t}function pd(t,n,i){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~i}function hd(t){if(Ju){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Ju=!1}Fr=0,Mt=tt=Ne=null,wl=!1,io=es=0,Al=null}function cn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?Ne.memoizedState=Mt=t:Mt=Mt.next=t,Mt}function _t(){if(tt===null){var t=Ne.alternate;t=t!==null?t.memoizedState:null}else t=tt.next;var n=Mt===null?Ne.memoizedState:Mt.next;if(n!==null)Mt=n,tt=t;else{if(t===null)throw Ne.alternate===null?Error(a(467)):Error(a(310));tt=t,t={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},Mt===null?Ne.memoizedState=Mt=t:Mt=Mt.next=t}return Mt}var ts;ts=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function lo(t){var n=io;return io+=1,Al===null&&(Al=[]),t=e1(Al,t,n),n=Ne,(Mt===null?n.memoizedState:Mt.next)===null&&(n=n.alternate,V.H=n===null||n.memoizedState===null?Oi:Pr),t}function ns(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return lo(t);if(t.$$typeof===S)return Zt(t)}throw Error(a(438,String(t)))}function md(t){var n=null,i=Ne.updateQueue;if(i!==null&&(n=i.memoCache),n==null){var o=Ne.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(c){return c.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),i===null&&(i=ts(),Ne.updateQueue=i),i.memoCache=n,i=n.data[n.index],i===void 0)for(i=n.data[n.index]=Array(t),o=0;o<t;o++)i[o]=z;return n.index++,i}function Er(t,n){return typeof n=="function"?n(t):n}function rs(t){var n=_t();return gd(n,tt,t)}function gd(t,n,i){var o=t.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=i;var c=t.baseQueue,p=o.pending;if(p!==null){if(c!==null){var b=c.next;c.next=p.next,p.next=b}n.baseQueue=c=p,o.pending=null}if(p=t.baseState,c===null)t.memoizedState=p;else{n=c.next;var C=b=null,D=null,U=n,te=!1;do{var ae=U.lane&-536870913;if(ae!==U.lane?(Ye&ae)===ae:(Fr&ae)===ae){var G=U.revertLane;if(G===0)D!==null&&(D=D.next={lane:0,revertLane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),ae===Cl&&(te=!0);else if((Fr&G)===G){U=U.next,G===Cl&&(te=!0);continue}else ae={lane:0,revertLane:U.revertLane,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},D===null?(C=D=ae,b=p):D=D.next=ae,Ne.lanes|=G,ni|=G;ae=U.action,Ri&&i(p,ae),p=U.hasEagerState?U.eagerState:i(p,ae)}else G={lane:ae,revertLane:U.revertLane,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},D===null?(C=D=G,b=p):D=D.next=G,Ne.lanes|=ae,ni|=ae;U=U.next}while(U!==null&&U!==n);if(D===null?b=p:D.next=C,!yn(p,t.memoizedState)&&(Ht=!0,te&&(i=Tl,i!==null)))throw i;t.memoizedState=p,t.baseState=b,t.baseQueue=D,o.lastRenderedState=p}return c===null&&(o.lanes=0),[t.memoizedState,o.dispatch]}function yd(t){var n=_t(),i=n.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=t;var o=i.dispatch,c=i.pending,p=n.memoizedState;if(c!==null){i.pending=null;var b=c=c.next;do p=t(p,b.action),b=b.next;while(b!==c);yn(p,n.memoizedState)||(Ht=!0),n.memoizedState=p,n.baseQueue===null&&(n.baseState=p),i.lastRenderedState=p}return[p,o]}function d1(t,n,i){var o=Ne,c=_t(),p=Xe;if(p){if(i===void 0)throw Error(a(407));i=i()}else i=n();var b=!yn((tt||c).memoizedState,i);if(b&&(c.memoizedState=i,Ht=!0),c=c.queue,vd(m1.bind(null,o,c,t),[t]),c.getSnapshot!==n||b||Mt!==null&&Mt.memoizedState.tag&1){if(o.flags|=2048,kl(9,h1.bind(null,o,c,i,n),{destroy:void 0},null),st===null)throw Error(a(349));p||Fr&60||p1(o,n,i)}return i}function p1(t,n,i){t.flags|=16384,t={getSnapshot:n,value:i},n=Ne.updateQueue,n===null?(n=ts(),Ne.updateQueue=n,n.stores=[t]):(i=n.stores,i===null?n.stores=[t]:i.push(t))}function h1(t,n,i,o){n.value=i,n.getSnapshot=o,g1(n)&&y1(t)}function m1(t,n,i){return i(function(){g1(n)&&y1(t)})}function g1(t){var n=t.getSnapshot;t=t.value;try{var i=n();return!yn(t,i)}catch{return!0}}function y1(t){var n=$r(t,2);n!==null&&en(n,t,2)}function bd(t){var n=cn();if(typeof t=="function"){var i=t;if(t=i(),Ri){St(!0);try{i()}finally{St(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:t},n}function b1(t,n,i,o){return t.baseState=i,gd(t,tt,typeof o=="function"?o:Er)}function V3(t,n,i,o,c){if(as(t))throw Error(a(485));if(t=n.action,t!==null){var p={payload:c,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){p.listeners.push(b)}};V.T!==null?i(!0):p.isTransition=!1,o(p),i=n.pending,i===null?(p.next=n.pending=p,S1(n,p)):(p.next=i.next,n.pending=i.next=p)}}function S1(t,n){var i=n.action,o=n.payload,c=t.state;if(n.isTransition){var p=V.T,b={};V.T=b;try{var C=i(c,o),D=V.S;D!==null&&D(b,C),v1(t,n,C)}catch(U){Sd(t,n,U)}finally{V.T=p}}else try{p=i(c,o),v1(t,n,p)}catch(U){Sd(t,n,U)}}function v1(t,n,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){x1(t,n,o)},function(o){return Sd(t,n,o)}):x1(t,n,i)}function x1(t,n,i){n.status="fulfilled",n.value=i,E1(n),t.state=i,n=t.pending,n!==null&&(i=n.next,i===n?t.pending=null:(i=i.next,n.next=i,S1(t,i)))}function Sd(t,n,i){var o=t.pending;if(t.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=i,E1(n),n=n.next;while(n!==o)}t.action=null}function E1(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function C1(t,n){return n}function T1(t,n){if(Xe){var i=st.formState;if(i!==null){e:{var o=Ne;if(Xe){if($t){t:{for(var c=$t,p=or;c.nodeType!==8;){if(!p){c=null;break t}if(c=Kn(c.nextSibling),c===null){c=null;break t}}p=c.data,c=p==="F!"||p==="F"?c:null}if(c){$t=Kn(c.nextSibling),o=c.data==="F!";break e}}wi(o)}o=!1}o&&(n=i[0])}}return i=cn(),i.memoizedState=i.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:C1,lastRenderedState:n},i.queue=o,i=q1.bind(null,Ne,o),o.dispatch=i,o=bd(!1),p=wd.bind(null,Ne,!1,o.queue),o=cn(),c={state:n,dispatch:null,action:t,pending:null},o.queue=c,i=V3.bind(null,Ne,c,p,i),c.dispatch=i,o.memoizedState=t,[n,i,!1]}function w1(t){var n=_t();return A1(n,tt,t)}function A1(t,n,i){n=gd(t,n,C1)[0],t=rs(Er)[0],n=typeof n=="object"&&n!==null&&typeof n.then=="function"?lo(n):n;var o=_t(),c=o.queue,p=c.dispatch;return i!==o.memoizedState&&(Ne.flags|=2048,kl(9,q3.bind(null,c,i),{destroy:void 0},null)),[n,p,t]}function q3(t,n){t.action=n}function k1(t){var n=_t(),i=tt;if(i!==null)return A1(n,i,t);_t(),n=n.memoizedState,i=_t();var o=i.queue.dispatch;return i.memoizedState=t,[n,o,!1]}function kl(t,n,i,o){return t={tag:t,create:n,inst:i,deps:o,next:null},n=Ne.updateQueue,n===null&&(n=ts(),Ne.updateQueue=n),i=n.lastEffect,i===null?n.lastEffect=t.next=t:(o=i.next,i.next=t,t.next=o,n.lastEffect=t),t}function R1(){return _t().memoizedState}function is(t,n,i,o){var c=cn();Ne.flags|=t,c.memoizedState=kl(1|n,i,{destroy:void 0},o===void 0?null:o)}function ls(t,n,i,o){var c=_t();o=o===void 0?null:o;var p=c.memoizedState.inst;tt!==null&&o!==null&&cd(o,tt.memoizedState.deps)?c.memoizedState=kl(n,i,p,o):(Ne.flags|=t,c.memoizedState=kl(1|n,i,p,o))}function O1(t,n){is(8390656,8,t,n)}function vd(t,n){ls(2048,8,t,n)}function M1(t,n){return ls(4,2,t,n)}function _1(t,n){return ls(4,4,t,n)}function D1(t,n){if(typeof n=="function"){t=t();var i=n(t);return function(){typeof i=="function"?i():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function z1(t,n,i){i=i!=null?i.concat([t]):null,ls(4,4,D1.bind(null,n,t),i)}function xd(){}function N1(t,n){var i=_t();n=n===void 0?null:n;var o=i.memoizedState;return n!==null&&cd(n,o[1])?o[0]:(i.memoizedState=[t,n],t)}function B1(t,n){var i=_t();n=n===void 0?null:n;var o=i.memoizedState;if(n!==null&&cd(n,o[1]))return o[0];if(o=t(),Ri){St(!0);try{t()}finally{St(!1)}}return i.memoizedState=[o,n],o}function Ed(t,n,i){return i===void 0||Fr&1073741824?t.memoizedState=n:(t.memoizedState=i,t=Ub(),Ne.lanes|=t,ni|=t,i)}function L1(t,n,i,o){return yn(i,n)?i:El.current!==null?(t=Ed(t,i,o),yn(t,n)||(Ht=!0),t):Fr&42?(t=Ub(),Ne.lanes|=t,ni|=t,n):(Ht=!0,t.memoizedState=i)}function U1(t,n,i,o,c){var p=ie.p;ie.p=p!==0&&8>p?p:8;var b=V.T,C={};V.T=C,wd(t,!1,n,i);try{var D=c(),U=V.S;if(U!==null&&U(C,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var te=j3(D,o);ao(t,n,te,xn(t))}else ao(t,n,o,xn(t))}catch(ae){ao(t,n,{then:function(){},status:"rejected",reason:ae},xn())}finally{ie.p=p,V.T=b}}function $3(){}function Cd(t,n,i,o){if(t.tag!==5)throw Error(a(476));var c=j1(t).queue;U1(t,c,n,ye,i===null?$3:function(){return H1(t),i(o)})}function j1(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:ye,baseState:ye,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:ye},next:null};var i={};return n.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:i},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function H1(t){var n=j1(t).next.queue;ao(t,n,{},xn())}function Td(){return Zt(ko)}function I1(){return _t().memoizedState}function V1(){return _t().memoizedState}function G3(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var i=xn();t=Kr(i);var o=Zr(n,t,i);o!==null&&(en(o,n,i),so(o,n,i)),n={cache:od()},t.payload=n;return}n=n.return}}function Y3(t,n,i){var o=xn();i={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},as(t)?$1(n,i):(i=ed(t,n,i,o),i!==null&&(en(i,t,o),G1(i,n,o)))}function q1(t,n,i){var o=xn();ao(t,n,i,o)}function ao(t,n,i,o){var c={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(as(t))$1(n,c);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=n.lastRenderedReducer,p!==null))try{var b=n.lastRenderedState,C=p(b,i);if(c.hasEagerState=!0,c.eagerState=C,yn(C,b))return $u(t,n,c,0),st===null&&qu(),!1}catch{}finally{}if(i=ed(t,n,c,o),i!==null)return en(i,t,o),G1(i,n,o),!0}return!1}function wd(t,n,i,o){if(o={lane:2,revertLane:hp(),action:o,hasEagerState:!1,eagerState:null,next:null},as(t)){if(n)throw Error(a(479))}else n=ed(t,i,o,2),n!==null&&en(n,t,2)}function as(t){var n=t.alternate;return t===Ne||n!==null&&n===Ne}function $1(t,n){wl=Ju=!0;var i=t.pending;i===null?n.next=n:(n.next=i.next,i.next=n),t.pending=n}function G1(t,n,i){if(i&4194176){var o=n.lanes;o&=t.pendingLanes,i|=o,n.lanes=i,t0(t,i)}}var sr={readContext:Zt,use:ns,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useLayoutEffect:Tt,useInsertionEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useSyncExternalStore:Tt,useId:Tt};sr.useCacheRefresh=Tt,sr.useMemoCache=Tt,sr.useHostTransitionStatus=Tt,sr.useFormState=Tt,sr.useActionState=Tt,sr.useOptimistic=Tt;var Oi={readContext:Zt,use:ns,useCallback:function(t,n){return cn().memoizedState=[t,n===void 0?null:n],t},useContext:Zt,useEffect:O1,useImperativeHandle:function(t,n,i){i=i!=null?i.concat([t]):null,is(4194308,4,D1.bind(null,n,t),i)},useLayoutEffect:function(t,n){return is(4194308,4,t,n)},useInsertionEffect:function(t,n){is(4,2,t,n)},useMemo:function(t,n){var i=cn();n=n===void 0?null:n;var o=t();if(Ri){St(!0);try{t()}finally{St(!1)}}return i.memoizedState=[o,n],o},useReducer:function(t,n,i){var o=cn();if(i!==void 0){var c=i(n);if(Ri){St(!0);try{i(n)}finally{St(!1)}}}else c=n;return o.memoizedState=o.baseState=c,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:c},o.queue=t,t=t.dispatch=Y3.bind(null,Ne,t),[o.memoizedState,t]},useRef:function(t){var n=cn();return t={current:t},n.memoizedState=t},useState:function(t){t=bd(t);var n=t.queue,i=q1.bind(null,Ne,n);return n.dispatch=i,[t.memoizedState,i]},useDebugValue:xd,useDeferredValue:function(t,n){var i=cn();return Ed(i,t,n)},useTransition:function(){var t=bd(!1);return t=U1.bind(null,Ne,t.queue,!0,!1),cn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,i){var o=Ne,c=cn();if(Xe){if(i===void 0)throw Error(a(407));i=i()}else{if(i=n(),st===null)throw Error(a(349));Ye&60||p1(o,n,i)}c.memoizedState=i;var p={value:i,getSnapshot:n};return c.queue=p,O1(m1.bind(null,o,p,t),[t]),o.flags|=2048,kl(9,h1.bind(null,o,p,i,n),{destroy:void 0},null),i},useId:function(){var t=cn(),n=st.identifierPrefix;if(Xe){var i=vr,o=Sr;i=(o&~(1<<32-Ot(o)-1)).toString(32)+i,n=":"+n+"R"+i,i=es++,0<i&&(n+="H"+i.toString(32)),n+=":"}else i=H3++,n=":"+n+"r"+i.toString(32)+":";return t.memoizedState=n},useCacheRefresh:function(){return cn().memoizedState=G3.bind(null,Ne)}};Oi.useMemoCache=md,Oi.useHostTransitionStatus=Td,Oi.useFormState=T1,Oi.useActionState=T1,Oi.useOptimistic=function(t){var n=cn();n.memoizedState=n.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=i,n=wd.bind(null,Ne,!0,i),i.dispatch=n,[t,n]};var Pr={readContext:Zt,use:ns,useCallback:N1,useContext:Zt,useEffect:vd,useImperativeHandle:z1,useInsertionEffect:M1,useLayoutEffect:_1,useMemo:B1,useReducer:rs,useRef:R1,useState:function(){return rs(Er)},useDebugValue:xd,useDeferredValue:function(t,n){var i=_t();return L1(i,tt.memoizedState,t,n)},useTransition:function(){var t=rs(Er)[0],n=_t().memoizedState;return[typeof t=="boolean"?t:lo(t),n]},useSyncExternalStore:d1,useId:I1};Pr.useCacheRefresh=V1,Pr.useMemoCache=md,Pr.useHostTransitionStatus=Td,Pr.useFormState=w1,Pr.useActionState=w1,Pr.useOptimistic=function(t,n){var i=_t();return b1(i,tt,t,n)};var Mi={readContext:Zt,use:ns,useCallback:N1,useContext:Zt,useEffect:vd,useImperativeHandle:z1,useInsertionEffect:M1,useLayoutEffect:_1,useMemo:B1,useReducer:yd,useRef:R1,useState:function(){return yd(Er)},useDebugValue:xd,useDeferredValue:function(t,n){var i=_t();return tt===null?Ed(i,t,n):L1(i,tt.memoizedState,t,n)},useTransition:function(){var t=yd(Er)[0],n=_t().memoizedState;return[typeof t=="boolean"?t:lo(t),n]},useSyncExternalStore:d1,useId:I1};Mi.useCacheRefresh=V1,Mi.useMemoCache=md,Mi.useHostTransitionStatus=Td,Mi.useFormState=k1,Mi.useActionState=k1,Mi.useOptimistic=function(t,n){var i=_t();return tt!==null?b1(i,tt,t,n):(i.baseState=t,[t,i.queue.dispatch])};function Ad(t,n,i,o){n=t.memoizedState,i=i(o,n),i=i==null?n:E({},n,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var kd={isMounted:function(t){return(t=t._reactInternals)?Q(t)===t:!1},enqueueSetState:function(t,n,i){t=t._reactInternals;var o=xn(),c=Kr(o);c.payload=n,i!=null&&(c.callback=i),n=Zr(t,c,o),n!==null&&(en(n,t,o),so(n,t,o))},enqueueReplaceState:function(t,n,i){t=t._reactInternals;var o=xn(),c=Kr(o);c.tag=1,c.payload=n,i!=null&&(c.callback=i),n=Zr(t,c,o),n!==null&&(en(n,t,o),so(n,t,o))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var i=xn(),o=Kr(i);o.tag=2,n!=null&&(o.callback=n),n=Zr(t,o,i),n!==null&&(en(n,t,i),so(n,t,i))}};function Y1(t,n,i,o,c,p,b){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,p,b):n.prototype&&n.prototype.isPureReactComponent?!Pa(i,o)||!Pa(c,p):!0}function F1(t,n,i,o){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,o),n.state!==t&&kd.enqueueReplaceState(n,n.state,null)}function _i(t,n){var i=n;if("ref"in n){i={};for(var o in n)o!=="ref"&&(i[o]=n[o])}if(t=t.defaultProps){i===n&&(i=E({},i));for(var c in t)i[c]===void 0&&(i[c]=t[c])}return i}var os=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function P1(t){os(t)}function X1(t){console.error(t)}function Q1(t){os(t)}function us(t,n){try{var i=t.onUncaughtError;i(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function K1(t,n,i){try{var o=t.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Rd(t,n,i){return i=Kr(i),i.tag=3,i.payload={element:null},i.callback=function(){us(t,n)},i}function Z1(t){return t=Kr(t),t.tag=3,t}function W1(t,n,i,o){var c=i.type.getDerivedStateFromError;if(typeof c=="function"){var p=o.value;t.payload=function(){return c(p)},t.callback=function(){K1(n,i,o)}}var b=i.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(t.callback=function(){K1(n,i,o),typeof c!="function"&&(ri===null?ri=new Set([this]):ri.add(this));var C=o.stack;this.componentDidCatch(o.value,{componentStack:C!==null?C:""})})}function F3(t,n,i,o,c){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=i.alternate,n!==null&&uo(n,i,c,!0),i=Bn.current,i!==null){switch(i.tag){case 13:return ur===null?sp():i.alternate===null&&xt===0&&(xt=3),i.flags&=-257,i.flags|=65536,i.lanes=c,o===id?i.flags|=16384:(n=i.updateQueue,n===null?i.updateQueue=new Set([o]):n.add(o),fp(t,o,c)),!1;case 22:return i.flags|=65536,o===id?i.flags|=16384:(n=i.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=n):(i=n.retryQueue,i===null?n.retryQueue=new Set([o]):i.add(o)),fp(t,o,c)),!1}throw Error(a(435,i.tag))}return fp(t,o,c),sp(),!1}if(Xe)return n=Bn.current,n!==null?(!(n.flags&65536)&&(n.flags|=256),n.flags|=65536,n.lanes=c,o!==rd&&(t=Error(a(422),{cause:o}),Za(Dn(t,i)))):(o!==rd&&(n=Error(a(423),{cause:o}),Za(Dn(n,i))),t=t.current.alternate,t.flags|=65536,c&=-c,t.lanes|=c,o=Dn(o,i),c=Rd(t.stateNode,o,c),$d(t,c),xt!==4&&(xt=2)),!1;var p=Error(a(520),{cause:o});if(p=Dn(p,i),bo===null?bo=[p]:bo.push(p),xt!==4&&(xt=2),n===null)return!0;o=Dn(o,i),i=n;do{switch(i.tag){case 3:return i.flags|=65536,t=c&-c,i.lanes|=t,t=Rd(i.stateNode,o,t),$d(i,t),!1;case 1:if(n=i.type,p=i.stateNode,(i.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(ri===null||!ri.has(p))))return i.flags|=65536,c&=-c,i.lanes|=c,c=Z1(c),W1(c,t,i,o),$d(i,c),!1}i=i.return}while(i!==null);return!1}var J1=Error(a(461)),Ht=!1;function Gt(t,n,i,o){n.child=t===null?i1(n,null,i,o):Ai(n,t.child,i,o)}function eb(t,n,i,o,c){i=i.render;var p=n.ref;if("ref"in o){var b={};for(var C in o)C!=="ref"&&(b[C]=o[C])}else b=o;return zi(n),o=fd(t,n,i,b,p,c),C=dd(),t!==null&&!Ht?(pd(t,n,c),Cr(t,n,c)):(Xe&&C&&td(n),n.flags|=1,Gt(t,n,o,c),n.child)}function tb(t,n,i,o,c){if(t===null){var p=i.type;return typeof p=="function"&&!Zd(p)&&p.defaultProps===void 0&&i.compare===null?(n.tag=15,n.type=p,nb(t,n,p,o,c)):(t=ps(i.type,null,o,n,n.mode,c),t.ref=n.ref,t.return=n,n.child=t)}if(p=t.child,!Ud(t,c)){var b=p.memoizedProps;if(i=i.compare,i=i!==null?i:Pa,i(b,o)&&t.ref===n.ref)return Cr(t,n,c)}return n.flags|=1,t=ti(p,o),t.ref=n.ref,t.return=n,n.child=t}function nb(t,n,i,o,c){if(t!==null){var p=t.memoizedProps;if(Pa(p,o)&&t.ref===n.ref)if(Ht=!1,n.pendingProps=o=p,Ud(t,c))t.flags&131072&&(Ht=!0);else return n.lanes=t.lanes,Cr(t,n,c)}return Od(t,n,i,o,c)}function rb(t,n,i){var o=n.pendingProps,c=o.children,p=(n.stateNode._pendingVisibility&2)!==0,b=t!==null?t.memoizedState:null;if(oo(t,n),o.mode==="hidden"||p){if(n.flags&128){if(o=b!==null?b.baseLanes|i:i,t!==null){for(c=n.child=t.child,p=0;c!==null;)p=p|c.lanes|c.childLanes,c=c.sibling;n.childLanes=p&~o}else n.childLanes=0,n.child=null;return ib(t,n,o,i)}if(i&536870912)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&Wu(n,b!==null?b.cachePool:null),b!==null?l1(n,b):ld(),a1(n);else return n.lanes=n.childLanes=536870912,ib(t,n,b!==null?b.baseLanes|i:i,i)}else b!==null?(Wu(n,b.cachePool),l1(n,b),Yr(),n.memoizedState=null):(t!==null&&Wu(n,null),ld(),Yr());return Gt(t,n,c,i),n.child}function ib(t,n,i,o){var c=sd();return c=c===null?null:{parent:Lt._currentValue,pool:c},n.memoizedState={baseLanes:i,cachePool:c},t!==null&&Wu(n,null),ld(),a1(n),t!==null&&uo(t,n,o,!0),null}function oo(t,n){var i=n.ref;if(i===null)t!==null&&t.ref!==null&&(n.flags|=2097664);else{if(typeof i!="function"&&typeof i!="object")throw Error(a(284));(t===null||t.ref!==i)&&(n.flags|=2097664)}}function Od(t,n,i,o,c){return zi(n),i=fd(t,n,i,o,void 0,c),o=dd(),t!==null&&!Ht?(pd(t,n,c),Cr(t,n,c)):(Xe&&o&&td(n),n.flags|=1,Gt(t,n,i,c),n.child)}function lb(t,n,i,o,c,p){return zi(n),n.updateQueue=null,i=f1(n,o,i,c),c1(t),o=dd(),t!==null&&!Ht?(pd(t,n,p),Cr(t,n,p)):(Xe&&o&&td(n),n.flags|=1,Gt(t,n,i,p),n.child)}function ab(t,n,i,o,c){if(zi(n),n.stateNode===null){var p=bl,b=i.contextType;typeof b=="object"&&b!==null&&(p=Zt(b)),p=new i(o,p),n.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=kd,n.stateNode=p,p._reactInternals=n,p=n.stateNode,p.props=o,p.state=n.memoizedState,p.refs={},Vd(n),b=i.contextType,p.context=typeof b=="object"&&b!==null?Zt(b):bl,p.state=n.memoizedState,b=i.getDerivedStateFromProps,typeof b=="function"&&(Ad(n,i,b,o),p.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(b=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),b!==p.state&&kd.enqueueReplaceState(p,p.state,null),fo(n,o,p,c),co(),p.state=n.memoizedState),typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(t===null){p=n.stateNode;var C=n.memoizedProps,D=_i(i,C);p.props=D;var U=p.context,te=i.contextType;b=bl,typeof te=="object"&&te!==null&&(b=Zt(te));var ae=i.getDerivedStateFromProps;te=typeof ae=="function"||typeof p.getSnapshotBeforeUpdate=="function",C=n.pendingProps!==C,te||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(C||U!==b)&&F1(n,p,o,b),Qr=!1;var G=n.memoizedState;p.state=G,fo(n,o,p,c),co(),U=n.memoizedState,C||G!==U||Qr?(typeof ae=="function"&&(Ad(n,i,ae,o),U=n.memoizedState),(D=Qr||Y1(n,i,D,o,G,U,b))?(te||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=U),p.props=o,p.state=U,p.context=b,o=D):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{p=n.stateNode,qd(t,n),b=n.memoizedProps,te=_i(i,b),p.props=te,ae=n.pendingProps,G=p.context,U=i.contextType,D=bl,typeof U=="object"&&U!==null&&(D=Zt(U)),C=i.getDerivedStateFromProps,(U=typeof C=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(b!==ae||G!==D)&&F1(n,p,o,D),Qr=!1,G=n.memoizedState,p.state=G,fo(n,o,p,c),co();var J=n.memoizedState;b!==ae||G!==J||Qr||t!==null&&t.dependencies!==null&&ss(t.dependencies)?(typeof C=="function"&&(Ad(n,i,C,o),J=n.memoizedState),(te=Qr||Y1(n,i,te,o,G,J,D)||t!==null&&t.dependencies!==null&&ss(t.dependencies))?(U||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(o,J,D),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(o,J,D)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||b===t.memoizedProps&&G===t.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===t.memoizedProps&&G===t.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=J),p.props=o,p.state=J,p.context=D,o=te):(typeof p.componentDidUpdate!="function"||b===t.memoizedProps&&G===t.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||b===t.memoizedProps&&G===t.memoizedState||(n.flags|=1024),o=!1)}return p=o,oo(t,n),o=(n.flags&128)!==0,p||o?(p=n.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:p.render(),n.flags|=1,t!==null&&o?(n.child=Ai(n,t.child,null,c),n.child=Ai(n,null,i,c)):Gt(t,n,i,c),n.memoizedState=p.state,t=n.child):t=Cr(t,n,c),t}function ob(t,n,i,o){return Ka(),n.flags|=256,Gt(t,n,i,o),n.child}var Md={dehydrated:null,treeContext:null,retryLane:0};function _d(t){return{baseLanes:t,cachePool:s1()}}function Dd(t,n,i){return t=t!==null?t.childLanes&~i:0,n&&(t|=Hn),t}function ub(t,n,i){var o=n.pendingProps,c=!1,p=(n.flags&128)!==0,b;if((b=p)||(b=t!==null&&t.memoizedState===null?!1:(Bt.current&2)!==0),b&&(c=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,t===null){if(Xe){if(c?Gr(n):Yr(),Xe){var C=$t,D;if(D=C){e:{for(D=C,C=or;D.nodeType!==8;){if(!C){C=null;break e}if(D=Kn(D.nextSibling),D===null){C=null;break e}}C=D}C!==null?(n.memoizedState={dehydrated:C,treeContext:Ci!==null?{id:Sr,overflow:vr}:null,retryLane:536870912},D=jn(18,null,null,0),D.stateNode=C,D.return=n,n.child=D,Jt=n,$t=null,D=!0):D=!1}D||wi(n)}if(C=n.memoizedState,C!==null&&(C=C.dehydrated,C!==null))return C.data==="$!"?n.lanes=16:n.lanes=536870912,null;xr(n)}return C=o.children,o=o.fallback,c?(Yr(),c=n.mode,C=Nd({mode:"hidden",children:C},c),o=Bi(o,c,i,null),C.return=n,o.return=n,C.sibling=o,n.child=C,c=n.child,c.memoizedState=_d(i),c.childLanes=Dd(t,b,i),n.memoizedState=Md,o):(Gr(n),zd(n,C))}if(D=t.memoizedState,D!==null&&(C=D.dehydrated,C!==null)){if(p)n.flags&256?(Gr(n),n.flags&=-257,n=Bd(t,n,i)):n.memoizedState!==null?(Yr(),n.child=t.child,n.flags|=128,n=null):(Yr(),c=o.fallback,C=n.mode,o=Nd({mode:"visible",children:o.children},C),c=Bi(c,C,i,null),c.flags|=2,o.return=n,c.return=n,o.sibling=c,n.child=o,Ai(n,t.child,null,i),o=n.child,o.memoizedState=_d(i),o.childLanes=Dd(t,b,i),n.memoizedState=Md,n=c);else if(Gr(n),C.data==="$!"){if(b=C.nextSibling&&C.nextSibling.dataset,b)var U=b.dgst;b=U,o=Error(a(419)),o.stack="",o.digest=b,Za({value:o,source:null,stack:null}),n=Bd(t,n,i)}else if(Ht||uo(t,n,i,!1),b=(i&t.childLanes)!==0,Ht||b){if(b=st,b!==null){if(o=i&-i,o&42)o=1;else switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=64;break;case 268435456:o=134217728;break;default:o=0}if(o=o&(b.suspendedLanes|i)?0:o,o!==0&&o!==D.retryLane)throw D.retryLane=o,$r(t,o),en(b,t,o),J1}C.data==="$?"||sp(),n=Bd(t,n,i)}else C.data==="$?"?(n.flags|=128,n.child=t.child,n=oO.bind(null,t),C._reactRetry=n,n=null):(t=D.treeContext,$t=Kn(C.nextSibling),Jt=n,Xe=!0,Xn=null,or=!1,t!==null&&(zn[Nn++]=Sr,zn[Nn++]=vr,zn[Nn++]=Ci,Sr=t.id,vr=t.overflow,Ci=n),n=zd(n,o.children),n.flags|=4096);return n}return c?(Yr(),c=o.fallback,C=n.mode,D=t.child,U=D.sibling,o=ti(D,{mode:"hidden",children:o.children}),o.subtreeFlags=D.subtreeFlags&31457280,U!==null?c=ti(U,c):(c=Bi(c,C,i,null),c.flags|=2),c.return=n,o.return=n,o.sibling=c,n.child=o,o=c,c=n.child,C=t.child.memoizedState,C===null?C=_d(i):(D=C.cachePool,D!==null?(U=Lt._currentValue,D=D.parent!==U?{parent:U,pool:U}:D):D=s1(),C={baseLanes:C.baseLanes|i,cachePool:D}),c.memoizedState=C,c.childLanes=Dd(t,b,i),n.memoizedState=Md,o):(Gr(n),i=t.child,t=i.sibling,i=ti(i,{mode:"visible",children:o.children}),i.return=n,i.sibling=null,t!==null&&(b=n.deletions,b===null?(n.deletions=[t],n.flags|=16):b.push(t)),n.child=i,n.memoizedState=null,i)}function zd(t,n){return n=Nd({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function Nd(t,n){return Nb(t,n,0,null)}function Bd(t,n,i){return Ai(n,t.child,null,i),t=zd(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function sb(t,n,i){t.lanes|=n;var o=t.alternate;o!==null&&(o.lanes|=n),Hd(t.return,n,i)}function Ld(t,n,i,o,c){var p=t.memoizedState;p===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:c}:(p.isBackwards=n,p.rendering=null,p.renderingStartTime=0,p.last=o,p.tail=i,p.tailMode=c)}function cb(t,n,i){var o=n.pendingProps,c=o.revealOrder,p=o.tail;if(Gt(t,n,o.children,i),o=Bt.current,o&2)o=o&1|2,n.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&sb(t,i,n);else if(t.tag===19)sb(t,i,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}o&=1}switch(pe(Bt,o),c){case"forwards":for(i=n.child,c=null;i!==null;)t=i.alternate,t!==null&&Zu(t)===null&&(c=i),i=i.sibling;i=c,i===null?(c=n.child,n.child=null):(c=i.sibling,i.sibling=null),Ld(n,!1,c,i,p);break;case"backwards":for(i=null,c=n.child,n.child=null;c!==null;){if(t=c.alternate,t!==null&&Zu(t)===null){n.child=c;break}t=c.sibling,c.sibling=i,i=c,c=t}Ld(n,!0,i,null,p);break;case"together":Ld(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Cr(t,n,i){if(t!==null&&(n.dependencies=t.dependencies),ni|=n.lanes,!(i&n.childLanes))if(t!==null){if(uo(t,n,i,!1),(i&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(a(153));if(n.child!==null){for(t=n.child,i=ti(t,t.pendingProps),n.child=i,i.return=n;t.sibling!==null;)t=t.sibling,i=i.sibling=ti(t,t.pendingProps),i.return=n;i.sibling=null}return n.child}function Ud(t,n){return t.lanes&n?!0:(t=t.dependencies,!!(t!==null&&ss(t)))}function P3(t,n,i){switch(n.tag){case 3:Ee(n,n.stateNode.containerInfo),Xr(n,Lt,t.memoizedState.cache),Ka();break;case 27:case 5:Le(n);break;case 4:Ee(n,n.stateNode.containerInfo);break;case 10:Xr(n,n.type,n.memoizedProps.value);break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(Gr(n),n.flags|=128,null):i&n.child.childLanes?ub(t,n,i):(Gr(n),t=Cr(t,n,i),t!==null?t.sibling:null);Gr(n);break;case 19:var c=(t.flags&128)!==0;if(o=(i&n.childLanes)!==0,o||(uo(t,n,i,!1),o=(i&n.childLanes)!==0),c){if(o)return cb(t,n,i);n.flags|=128}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),pe(Bt,Bt.current),o)break;return null;case 22:case 23:return n.lanes=0,rb(t,n,i);case 24:Xr(n,Lt,t.memoizedState.cache)}return Cr(t,n,i)}function fb(t,n,i){if(t!==null)if(t.memoizedProps!==n.pendingProps)Ht=!0;else{if(!Ud(t,i)&&!(n.flags&128))return Ht=!1,P3(t,n,i);Ht=!!(t.flags&131072)}else Ht=!1,Xe&&n.flags&1048576&&Q0(n,Fu,n.index);switch(n.lanes=0,n.tag){case 16:e:{t=n.pendingProps;var o=n.elementType,c=o._init;if(o=c(o._payload),n.type=o,typeof o=="function")Zd(o)?(t=_i(o,t),n.tag=1,n=ab(null,n,o,t,i)):(n.tag=0,n=Od(null,n,o,t,i));else{if(o!=null){if(c=o.$$typeof,c===R){n.tag=11,n=eb(null,n,o,t,i);break e}else if(c===w){n.tag=14,n=tb(null,n,o,t,i);break e}}throw n=ne(o)||o,Error(a(306,n,""))}}return n;case 0:return Od(t,n,n.type,n.pendingProps,i);case 1:return o=n.type,c=_i(o,n.pendingProps),ab(t,n,o,c,i);case 3:e:{if(Ee(n,n.stateNode.containerInfo),t===null)throw Error(a(387));var p=n.pendingProps;c=n.memoizedState,o=c.element,qd(t,n),fo(n,p,null,i);var b=n.memoizedState;if(p=b.cache,Xr(n,Lt,p),p!==c.cache&&Id(n,[Lt],i,!0),co(),p=b.element,c.isDehydrated)if(c={element:p,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=c,n.memoizedState=c,n.flags&256){n=ob(t,n,p,i);break e}else if(p!==o){o=Dn(Error(a(424)),n),Za(o),n=ob(t,n,p,i);break e}else for($t=Kn(n.stateNode.containerInfo.firstChild),Jt=n,Xe=!0,Xn=null,or=!0,i=i1(n,null,p,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ka(),p===o){n=Cr(t,n,i);break e}Gt(t,n,p,i)}n=n.child}return n;case 26:return oo(t,n),t===null?(i=hS(n.type,null,n.pendingProps,null))?n.memoizedState=i:Xe||(i=n.type,t=n.pendingProps,o=ws(ge.current).createElement(i),o[Kt]=n,o[un]=t,Yt(o,i,t),jt(o),n.stateNode=o):n.memoizedState=hS(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return Le(n),t===null&&Xe&&(o=n.stateNode=fS(n.type,n.pendingProps,ge.current),Jt=n,or=!0,$t=Kn(o.firstChild)),o=n.pendingProps.children,t!==null||Xe?Gt(t,n,o,i):n.child=Ai(n,null,o,i),oo(t,n),n.child;case 5:return t===null&&Xe&&((c=o=$t)&&(o=CO(o,n.type,n.pendingProps,or),o!==null?(n.stateNode=o,Jt=n,$t=Kn(o.firstChild),or=!1,c=!0):c=!1),c||wi(n)),Le(n),c=n.type,p=n.pendingProps,b=t!==null?t.memoizedProps:null,o=p.children,Cp(c,p)?o=null:b!==null&&Cp(c,b)&&(n.flags|=32),n.memoizedState!==null&&(c=fd(t,n,I3,null,null,i),ko._currentValue=c),oo(t,n),Gt(t,n,o,i),n.child;case 6:return t===null&&Xe&&((t=i=$t)&&(i=TO(i,n.pendingProps,or),i!==null?(n.stateNode=i,Jt=n,$t=null,t=!0):t=!1),t||wi(n)),null;case 13:return ub(t,n,i);case 4:return Ee(n,n.stateNode.containerInfo),o=n.pendingProps,t===null?n.child=Ai(n,null,o,i):Gt(t,n,o,i),n.child;case 11:return eb(t,n,n.type,n.pendingProps,i);case 7:return Gt(t,n,n.pendingProps,i),n.child;case 8:return Gt(t,n,n.pendingProps.children,i),n.child;case 12:return Gt(t,n,n.pendingProps.children,i),n.child;case 10:return o=n.pendingProps,Xr(n,n.type,o.value),Gt(t,n,o.children,i),n.child;case 9:return c=n.type._context,o=n.pendingProps.children,zi(n),c=Zt(c),o=o(c),n.flags|=1,Gt(t,n,o,i),n.child;case 14:return tb(t,n,n.type,n.pendingProps,i);case 15:return nb(t,n,n.type,n.pendingProps,i);case 19:return cb(t,n,i);case 22:return rb(t,n,i);case 24:return zi(n),o=Zt(Lt),t===null?(c=sd(),c===null&&(c=st,p=od(),c.pooledCache=p,p.refCount++,p!==null&&(c.pooledCacheLanes|=i),c=p),n.memoizedState={parent:o,cache:c},Vd(n),Xr(n,Lt,c)):(t.lanes&i&&(qd(t,n),fo(n,null,null,i),co()),c=t.memoizedState,p=n.memoizedState,c.parent!==o?(c={parent:o,cache:o},n.memoizedState=c,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=c),Xr(n,Lt,o)):(o=p.cache,Xr(n,Lt,o),o!==c.cache&&Id(n,[Lt],i,!0))),Gt(t,n,n.pendingProps.children,i),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}var jd=Ce(null),Di=null,Tr=null;function Xr(t,n,i){pe(jd,n._currentValue),n._currentValue=i}function wr(t){t._currentValue=jd.current,ke(jd)}function Hd(t,n,i){for(;t!==null;){var o=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),t===i)break;t=t.return}}function Id(t,n,i,o){var c=t.child;for(c!==null&&(c.return=t);c!==null;){var p=c.dependencies;if(p!==null){var b=c.child;p=p.firstContext;e:for(;p!==null;){var C=p;p=c;for(var D=0;D<n.length;D++)if(C.context===n[D]){p.lanes|=i,C=p.alternate,C!==null&&(C.lanes|=i),Hd(p.return,i,t),o||(b=null);break e}p=C.next}}else if(c.tag===18){if(b=c.return,b===null)throw Error(a(341));b.lanes|=i,p=b.alternate,p!==null&&(p.lanes|=i),Hd(b,i,t),b=null}else b=c.child;if(b!==null)b.return=c;else for(b=c;b!==null;){if(b===t){b=null;break}if(c=b.sibling,c!==null){c.return=b.return,b=c;break}b=b.return}c=b}}function uo(t,n,i,o){t=null;for(var c=n,p=!1;c!==null;){if(!p){if(c.flags&524288)p=!0;else if(c.flags&262144)break}if(c.tag===10){var b=c.alternate;if(b===null)throw Error(a(387));if(b=b.memoizedProps,b!==null){var C=c.type;yn(c.pendingProps.value,b.value)||(t!==null?t.push(C):t=[C])}}else if(c===fe.current){if(b=c.alternate,b===null)throw Error(a(387));b.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(t!==null?t.push(ko):t=[ko])}c=c.return}t!==null&&Id(n,t,i,o),n.flags|=262144}function ss(t){for(t=t.firstContext;t!==null;){if(!yn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function zi(t){Di=t,Tr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Zt(t){return db(Di,t)}function cs(t,n){return Di===null&&zi(t),db(t,n)}function db(t,n){var i=n._currentValue;if(n={context:n,memoizedValue:i,next:null},Tr===null){if(t===null)throw Error(a(308));Tr=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else Tr=Tr.next=n;return i}var Qr=!1;function Vd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qd(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Kr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Zr(t,n,i){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,gt&2){var c=o.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),o.pending=n,n=Gu(t),P0(t,null,i),n}return $u(t,o,n,i),Gu(t)}function so(t,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194176)!==0)){var o=n.lanes;o&=t.pendingLanes,i|=o,n.lanes=i,t0(t,i)}}function $d(t,n){var i=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var c=null,p=null;if(i=i.firstBaseUpdate,i!==null){do{var b={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};p===null?c=p=b:p=p.next=b,i=i.next}while(i!==null);p===null?c=p=n:p=p.next=n}else c=p=n;i={baseState:o.baseState,firstBaseUpdate:c,lastBaseUpdate:p,shared:o.shared,callbacks:o.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=n:t.next=n,i.lastBaseUpdate=n}var Gd=!1;function co(){if(Gd){var t=Tl;if(t!==null)throw t}}function fo(t,n,i,o){Gd=!1;var c=t.updateQueue;Qr=!1;var p=c.firstBaseUpdate,b=c.lastBaseUpdate,C=c.shared.pending;if(C!==null){c.shared.pending=null;var D=C,U=D.next;D.next=null,b===null?p=U:b.next=U,b=D;var te=t.alternate;te!==null&&(te=te.updateQueue,C=te.lastBaseUpdate,C!==b&&(C===null?te.firstBaseUpdate=U:C.next=U,te.lastBaseUpdate=D))}if(p!==null){var ae=c.baseState;b=0,te=U=D=null,C=p;do{var G=C.lane&-536870913,J=G!==C.lane;if(J?(Ye&G)===G:(o&G)===G){G!==0&&G===Cl&&(Gd=!0),te!==null&&(te=te.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{var Se=t,Re=C;G=n;var Et=i;switch(Re.tag){case 1:if(Se=Re.payload,typeof Se=="function"){ae=Se.call(Et,ae,G);break e}ae=Se;break e;case 3:Se.flags=Se.flags&-65537|128;case 0:if(Se=Re.payload,G=typeof Se=="function"?Se.call(Et,ae,G):Se,G==null)break e;ae=E({},ae,G);break e;case 2:Qr=!0}}G=C.callback,G!==null&&(t.flags|=64,J&&(t.flags|=8192),J=c.callbacks,J===null?c.callbacks=[G]:J.push(G))}else J={lane:G,tag:C.tag,payload:C.payload,callback:C.callback,next:null},te===null?(U=te=J,D=ae):te=te.next=J,b|=G;if(C=C.next,C===null){if(C=c.shared.pending,C===null)break;J=C,C=J.next,J.next=null,c.lastBaseUpdate=J,c.shared.pending=null}}while(!0);te===null&&(D=ae),c.baseState=D,c.firstBaseUpdate=U,c.lastBaseUpdate=te,p===null&&(c.shared.lanes=0),ni|=b,t.lanes=b,t.memoizedState=ae}}function pb(t,n){if(typeof t!="function")throw Error(a(191,t));t.call(n)}function hb(t,n){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)pb(i[t],n)}function po(t,n){try{var i=n.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&t)===t){o=void 0;var p=i.create,b=i.inst;o=p(),b.destroy=o}i=i.next}while(i!==c)}}catch(C){lt(n,n.return,C)}}function Wr(t,n,i){try{var o=n.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var p=c.next;o=p;do{if((o.tag&t)===t){var b=o.inst,C=b.destroy;if(C!==void 0){b.destroy=void 0,c=n;var D=i;try{C()}catch(U){lt(c,D,U)}}}o=o.next}while(o!==p)}}catch(U){lt(n,n.return,U)}}function mb(t){var n=t.updateQueue;if(n!==null){var i=t.stateNode;try{hb(n,i)}catch(o){lt(t,t.return,o)}}}function gb(t,n,i){i.props=_i(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(o){lt(t,n,o)}}function Ni(t,n){try{var i=t.ref;if(i!==null){var o=t.stateNode;switch(t.tag){case 26:case 27:case 5:var c=o;break;default:c=o}typeof i=="function"?t.refCleanup=i(c):i.current=c}}catch(p){lt(t,n,p)}}function bn(t,n){var i=t.ref,o=t.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(c){lt(t,n,c)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(c){lt(t,n,c)}else i.current=null}function yb(t){var n=t.type,i=t.memoizedProps,o=t.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(c){lt(t,t.return,c)}}function bb(t,n,i){try{var o=t.stateNode;bO(o,t.type,i,n),o[un]=n}catch(c){lt(t,t.return,c)}}function Sb(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27||t.tag===4}function Yd(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Sb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==27&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Fd(t,n,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,n?i.nodeType===8?i.parentNode.insertBefore(t,n):i.insertBefore(t,n):(i.nodeType===8?(n=i.parentNode,n.insertBefore(t,i)):(n=i,n.appendChild(t)),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=Ts));else if(o!==4&&o!==27&&(t=t.child,t!==null))for(Fd(t,n,i),t=t.sibling;t!==null;)Fd(t,n,i),t=t.sibling}function fs(t,n,i){var o=t.tag;if(o===5||o===6)t=t.stateNode,n?i.insertBefore(t,n):i.appendChild(t);else if(o!==4&&o!==27&&(t=t.child,t!==null))for(fs(t,n,i),t=t.sibling;t!==null;)fs(t,n,i),t=t.sibling}var Ar=!1,vt=!1,Pd=!1,vb=typeof WeakSet=="function"?WeakSet:Set,It=null,xb=!1;function X3(t,n){if(t=t.containerInfo,xp=_s,t=j0(t),Qf(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var c=o.anchorOffset,p=o.focusNode;o=o.focusOffset;try{i.nodeType,p.nodeType}catch{i=null;break e}var b=0,C=-1,D=-1,U=0,te=0,ae=t,G=null;t:for(;;){for(var J;ae!==i||c!==0&&ae.nodeType!==3||(C=b+c),ae!==p||o!==0&&ae.nodeType!==3||(D=b+o),ae.nodeType===3&&(b+=ae.nodeValue.length),(J=ae.firstChild)!==null;)G=ae,ae=J;for(;;){if(ae===t)break t;if(G===i&&++U===c&&(C=b),G===p&&++te===o&&(D=b),(J=ae.nextSibling)!==null)break;ae=G,G=ae.parentNode}ae=J}i=C===-1||D===-1?null:{start:C,end:D}}else i=null}i=i||{start:0,end:0}}else i=null;for(Ep={focusedElem:t,selectionRange:i},_s=!1,It=n;It!==null;)if(n=It,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,It=t;else for(;It!==null;){switch(n=It,p=n.alternate,t=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if(t&1024&&p!==null){t=void 0,i=n,c=p.memoizedProps,p=p.memoizedState,o=i.stateNode;try{var Se=_i(i.type,c,i.elementType===i.type);t=o.getSnapshotBeforeUpdate(Se,p),o.__reactInternalSnapshotBeforeUpdate=t}catch(Re){lt(i,i.return,Re)}}break;case 3:if(t&1024){if(t=n.stateNode.containerInfo,i=t.nodeType,i===9)Ap(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Ap(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(t&1024)throw Error(a(163))}if(t=n.sibling,t!==null){t.return=n.return,It=t;break}It=n.return}return Se=xb,xb=!1,Se}function Eb(t,n,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:Rr(t,i),o&4&&po(5,i);break;case 1:if(Rr(t,i),o&4)if(t=i.stateNode,n===null)try{t.componentDidMount()}catch(C){lt(i,i.return,C)}else{var c=_i(i.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(c,n,t.__reactInternalSnapshotBeforeUpdate)}catch(C){lt(i,i.return,C)}}o&64&&mb(i),o&512&&Ni(i,i.return);break;case 3:if(Rr(t,i),o&64&&(o=i.updateQueue,o!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{hb(o,t)}catch(C){lt(i,i.return,C)}}break;case 26:Rr(t,i),o&512&&Ni(i,i.return);break;case 27:case 5:Rr(t,i),n===null&&o&4&&yb(i),o&512&&Ni(i,i.return);break;case 12:Rr(t,i);break;case 13:Rr(t,i),o&4&&wb(t,i);break;case 22:if(c=i.memoizedState!==null||Ar,!c){n=n!==null&&n.memoizedState!==null||vt;var p=Ar,b=vt;Ar=c,(vt=n)&&!b?Jr(t,i,(i.subtreeFlags&8772)!==0):Rr(t,i),Ar=p,vt=b}o&512&&(i.memoizedProps.mode==="manual"?Ni(i,i.return):bn(i,i.return));break;default:Rr(t,i)}}function Cb(t){var n=t.alternate;n!==null&&(t.alternate=null,Cb(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&zf(n)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Dt=null,Sn=!1;function kr(t,n,i){for(i=i.child;i!==null;)Tb(t,n,i),i=i.sibling}function Tb(t,n,i){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Ut,i)}catch{}switch(i.tag){case 26:vt||bn(i,n),kr(t,n,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:vt||bn(i,n);var o=Dt,c=Sn;for(Dt=i.stateNode,kr(t,n,i),i=i.stateNode,n=i.attributes;n.length;)i.removeAttributeNode(n[0]);zf(i),Dt=o,Sn=c;break;case 5:vt||bn(i,n);case 6:c=Dt;var p=Sn;if(Dt=null,kr(t,n,i),Dt=c,Sn=p,Dt!==null)if(Sn)try{t=Dt,o=i.stateNode,t.nodeType===8?t.parentNode.removeChild(o):t.removeChild(o)}catch(b){lt(i,n,b)}else try{Dt.removeChild(i.stateNode)}catch(b){lt(i,n,b)}break;case 18:Dt!==null&&(Sn?(n=Dt,i=i.stateNode,n.nodeType===8?wp(n.parentNode,i):n.nodeType===1&&wp(n,i),_o(n)):wp(Dt,i.stateNode));break;case 4:o=Dt,c=Sn,Dt=i.stateNode.containerInfo,Sn=!0,kr(t,n,i),Dt=o,Sn=c;break;case 0:case 11:case 14:case 15:vt||Wr(2,i,n),vt||Wr(4,i,n),kr(t,n,i);break;case 1:vt||(bn(i,n),o=i.stateNode,typeof o.componentWillUnmount=="function"&&gb(i,n,o)),kr(t,n,i);break;case 21:kr(t,n,i);break;case 22:vt||bn(i,n),vt=(o=vt)||i.memoizedState!==null,kr(t,n,i),vt=o;break;default:kr(t,n,i)}}function wb(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{_o(t)}catch(i){lt(n,n.return,i)}}function Q3(t){switch(t.tag){case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new vb),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new vb),n;default:throw Error(a(435,t.tag))}}function Xd(t,n){var i=Q3(t);n.forEach(function(o){var c=uO.bind(null,t,o);i.has(o)||(i.add(o),o.then(c,c))})}function Ln(t,n){var i=n.deletions;if(i!==null)for(var o=0;o<i.length;o++){var c=i[o],p=t,b=n,C=b;e:for(;C!==null;){switch(C.tag){case 27:case 5:Dt=C.stateNode,Sn=!1;break e;case 3:Dt=C.stateNode.containerInfo,Sn=!0;break e;case 4:Dt=C.stateNode.containerInfo,Sn=!0;break e}C=C.return}if(Dt===null)throw Error(a(160));Tb(p,b,c),Dt=null,Sn=!1,p=c.alternate,p!==null&&(p.return=null),c.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)Ab(n,t),n=n.sibling}var Qn=null;function Ab(t,n){var i=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Ln(n,t),Un(t),o&4&&(Wr(3,t,t.return),po(3,t),Wr(5,t,t.return));break;case 1:Ln(n,t),Un(t),o&512&&(vt||i===null||bn(i,i.return)),o&64&&Ar&&(t=t.updateQueue,t!==null&&(o=t.callbacks,o!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var c=Qn;if(Ln(n,t),Un(t),o&512&&(vt||i===null||bn(i,i.return)),o&4){var p=i!==null?i.memoizedState:null;if(o=t.memoizedState,i===null)if(o===null)if(t.stateNode===null){e:{o=t.type,i=t.memoizedProps,c=c.ownerDocument||c;t:switch(o){case"title":p=c.getElementsByTagName("title")[0],(!p||p[ja]||p[Kt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=c.createElement(o),c.head.insertBefore(p,c.querySelector("head > title"))),Yt(p,o,i),p[Kt]=t,jt(p),o=p;break e;case"link":var b=yS("link","href",c).get(o+(i.href||""));if(b){for(var C=0;C<b.length;C++)if(p=b[C],p.getAttribute("href")===(i.href==null?null:i.href)&&p.getAttribute("rel")===(i.rel==null?null:i.rel)&&p.getAttribute("title")===(i.title==null?null:i.title)&&p.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice(C,1);break t}}p=c.createElement(o),Yt(p,o,i),c.head.appendChild(p);break;case"meta":if(b=yS("meta","content",c).get(o+(i.content||""))){for(C=0;C<b.length;C++)if(p=b[C],p.getAttribute("content")===(i.content==null?null:""+i.content)&&p.getAttribute("name")===(i.name==null?null:i.name)&&p.getAttribute("property")===(i.property==null?null:i.property)&&p.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&p.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice(C,1);break t}}p=c.createElement(o),Yt(p,o,i),c.head.appendChild(p);break;default:throw Error(a(468,o))}p[Kt]=t,jt(p),o=p}t.stateNode=o}else bS(c,t.type,t.stateNode);else t.stateNode=gS(c,o,t.memoizedProps);else p!==o?(p===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):p.count--,o===null?bS(c,t.type,t.stateNode):gS(c,o,t.memoizedProps)):o===null&&t.stateNode!==null&&bb(t,t.memoizedProps,i.memoizedProps)}break;case 27:if(o&4&&t.alternate===null){c=t.stateNode,p=t.memoizedProps;try{for(var D=c.firstChild;D;){var U=D.nextSibling,te=D.nodeName;D[ja]||te==="HEAD"||te==="BODY"||te==="SCRIPT"||te==="STYLE"||te==="LINK"&&D.rel.toLowerCase()==="stylesheet"||c.removeChild(D),D=U}for(var ae=t.type,G=c.attributes;G.length;)c.removeAttributeNode(G[0]);Yt(c,ae,p),c[Kt]=t,c[un]=p}catch(Se){lt(t,t.return,Se)}}case 5:if(Ln(n,t),Un(t),o&512&&(vt||i===null||bn(i,i.return)),t.flags&32){c=t.stateNode;try{fl(c,"")}catch(Se){lt(t,t.return,Se)}}o&4&&t.stateNode!=null&&(c=t.memoizedProps,bb(t,c,i!==null?i.memoizedProps:c)),o&1024&&(Pd=!0);break;case 6:if(Ln(n,t),Un(t),o&4){if(t.stateNode===null)throw Error(a(162));o=t.memoizedProps,i=t.stateNode;try{i.nodeValue=o}catch(Se){lt(t,t.return,Se)}}break;case 3:if(Rs=null,c=Qn,Qn=As(n.containerInfo),Ln(n,t),Qn=c,Un(t),o&4&&i!==null&&i.memoizedState.isDehydrated)try{_o(n.containerInfo)}catch(Se){lt(t,t.return,Se)}Pd&&(Pd=!1,kb(t));break;case 4:o=Qn,Qn=As(t.stateNode.containerInfo),Ln(n,t),Un(t),Qn=o;break;case 12:Ln(n,t),Un(t);break;case 13:Ln(n,t),Un(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(rp=ze()),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Xd(t,o)));break;case 22:if(o&512&&(vt||i===null||bn(i,i.return)),D=t.memoizedState!==null,U=i!==null&&i.memoizedState!==null,te=Ar,ae=vt,Ar=te||D,vt=ae||U,Ln(n,t),vt=ae,Ar=te,Un(t),n=t.stateNode,n._current=t,n._visibility&=-3,n._visibility|=n._pendingVisibility&2,o&8192&&(n._visibility=D?n._visibility&-2:n._visibility|1,D&&(n=Ar||vt,i===null||U||n||Rl(t)),t.memoizedProps===null||t.memoizedProps.mode!=="manual"))e:for(i=null,n=t;;){if(n.tag===5||n.tag===26||n.tag===27){if(i===null){U=i=n;try{if(c=U.stateNode,D)p=c.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{b=U.stateNode,C=U.memoizedProps.style;var J=C!=null&&C.hasOwnProperty("display")?C.display:null;b.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(Se){lt(U,U.return,Se)}}}else if(n.tag===6){if(i===null){U=n;try{U.stateNode.nodeValue=D?"":U.memoizedProps}catch(Se){lt(U,U.return,Se)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;i===n&&(i=null),n=n.return}i===n&&(i=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=t.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,Xd(t,i))));break;case 19:Ln(n,t),Un(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,Xd(t,o)));break;case 21:break;default:Ln(n,t),Un(t)}}function Un(t){var n=t.flags;if(n&2){try{if(t.tag!==27){e:{for(var i=t.return;i!==null;){if(Sb(i)){var o=i;break e}i=i.return}throw Error(a(160))}switch(o.tag){case 27:var c=o.stateNode,p=Yd(t);fs(t,p,c);break;case 5:var b=o.stateNode;o.flags&32&&(fl(b,""),o.flags&=-33);var C=Yd(t);fs(t,C,b);break;case 3:case 4:var D=o.stateNode.containerInfo,U=Yd(t);Fd(t,U,D);break;default:throw Error(a(161))}}}catch(te){lt(t,t.return,te)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function kb(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;kb(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function Rr(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Eb(t,n.alternate,n),n=n.sibling}function Rl(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:Wr(4,n,n.return),Rl(n);break;case 1:bn(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount=="function"&&gb(n,n.return,i),Rl(n);break;case 26:case 27:case 5:bn(n,n.return),Rl(n);break;case 22:bn(n,n.return),n.memoizedState===null&&Rl(n);break;default:Rl(n)}t=t.sibling}}function Jr(t,n,i){for(i=i&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,c=t,p=n,b=p.flags;switch(p.tag){case 0:case 11:case 15:Jr(c,p,i),po(4,p);break;case 1:if(Jr(c,p,i),o=p,c=o.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(U){lt(o,o.return,U)}if(o=p,c=o.updateQueue,c!==null){var C=o.stateNode;try{var D=c.shared.hiddenCallbacks;if(D!==null)for(c.shared.hiddenCallbacks=null,c=0;c<D.length;c++)pb(D[c],C)}catch(U){lt(o,o.return,U)}}i&&b&64&&mb(p),Ni(p,p.return);break;case 26:case 27:case 5:Jr(c,p,i),i&&o===null&&b&4&&yb(p),Ni(p,p.return);break;case 12:Jr(c,p,i);break;case 13:Jr(c,p,i),i&&b&4&&wb(c,p);break;case 22:p.memoizedState===null&&Jr(c,p,i),Ni(p,p.return);break;default:Jr(c,p,i)}n=n.sibling}}function Qd(t,n){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&no(i))}function Kd(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&no(t))}function ei(t,n,i,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Rb(t,n,i,o),n=n.sibling}function Rb(t,n,i,o){var c=n.flags;switch(n.tag){case 0:case 11:case 15:ei(t,n,i,o),c&2048&&po(9,n);break;case 3:ei(t,n,i,o),c&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&no(t)));break;case 12:if(c&2048){ei(t,n,i,o),t=n.stateNode;try{var p=n.memoizedProps,b=p.id,C=p.onPostCommit;typeof C=="function"&&C(b,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(D){lt(n,n.return,D)}}else ei(t,n,i,o);break;case 23:break;case 22:p=n.stateNode,n.memoizedState!==null?p._visibility&4?ei(t,n,i,o):ho(t,n):p._visibility&4?ei(t,n,i,o):(p._visibility|=4,Ol(t,n,i,o,(n.subtreeFlags&10256)!==0)),c&2048&&Qd(n.alternate,n);break;case 24:ei(t,n,i,o),c&2048&&Kd(n.alternate,n);break;default:ei(t,n,i,o)}}function Ol(t,n,i,o,c){for(c=c&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var p=t,b=n,C=i,D=o,U=b.flags;switch(b.tag){case 0:case 11:case 15:Ol(p,b,C,D,c),po(8,b);break;case 23:break;case 22:var te=b.stateNode;b.memoizedState!==null?te._visibility&4?Ol(p,b,C,D,c):ho(p,b):(te._visibility|=4,Ol(p,b,C,D,c)),c&&U&2048&&Qd(b.alternate,b);break;case 24:Ol(p,b,C,D,c),c&&U&2048&&Kd(b.alternate,b);break;default:Ol(p,b,C,D,c)}n=n.sibling}}function ho(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var i=t,o=n,c=o.flags;switch(o.tag){case 22:ho(i,o),c&2048&&Qd(o.alternate,o);break;case 24:ho(i,o),c&2048&&Kd(o.alternate,o);break;default:ho(i,o)}n=n.sibling}}var mo=8192;function Ml(t){if(t.subtreeFlags&mo)for(t=t.child;t!==null;)Ob(t),t=t.sibling}function Ob(t){switch(t.tag){case 26:Ml(t),t.flags&mo&&t.memoizedState!==null&&UO(Qn,t.memoizedState,t.memoizedProps);break;case 5:Ml(t);break;case 3:case 4:var n=Qn;Qn=As(t.stateNode.containerInfo),Ml(t),Qn=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=mo,mo=16777216,Ml(t),mo=n):Ml(t));break;default:Ml(t)}}function Mb(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function go(t){var n=t.deletions;if(t.flags&16){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];It=o,Db(o,t)}Mb(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)_b(t),t=t.sibling}function _b(t){switch(t.tag){case 0:case 11:case 15:go(t),t.flags&2048&&Wr(9,t,t.return);break;case 3:go(t);break;case 12:go(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&4&&(t.return===null||t.return.tag!==13)?(n._visibility&=-5,ds(t)):go(t);break;default:go(t)}}function ds(t){var n=t.deletions;if(t.flags&16){if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];It=o,Db(o,t)}Mb(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:Wr(8,n,n.return),ds(n);break;case 22:i=n.stateNode,i._visibility&4&&(i._visibility&=-5,ds(n));break;default:ds(n)}t=t.sibling}}function Db(t,n){for(;It!==null;){var i=It;switch(i.tag){case 0:case 11:case 15:Wr(8,i,n);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:no(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,It=o;else e:for(i=t;It!==null;){o=It;var c=o.sibling,p=o.return;if(Cb(o),o===i){It=null;break e}if(c!==null){c.return=p,It=c;break e}It=p}}}function K3(t,n,i,o){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jn(t,n,i,o){return new K3(t,n,i,o)}function Zd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ti(t,n){var i=t.alternate;return i===null?(i=jn(t.tag,n,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=n,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&31457280,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,n=t.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function zb(t,n){t.flags&=31457282;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,n=i.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function ps(t,n,i,o,c,p){var b=0;if(o=t,typeof t=="function")Zd(t)&&(b=1);else if(typeof t=="string")b=BO(t,i,De.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case m:return Bi(i.children,c,p,n);case h:b=8,c|=24;break;case g:return t=jn(12,i,n,c|2),t.elementType=g,t.lanes=p,t;case T:return t=jn(13,i,n,c),t.elementType=T,t.lanes=p,t;case N:return t=jn(19,i,n,c),t.elementType=N,t.lanes=p,t;case k:return Nb(i,c,p,n);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case y:case S:b=10;break e;case v:b=9;break e;case R:b=11;break e;case w:b=14;break e;case B:b=16,o=null;break e}b=29,i=Error(a(130,t===null?"null":typeof t,"")),o=null}return n=jn(b,i,n,c),n.elementType=t,n.type=o,n.lanes=p,n}function Bi(t,n,i,o){return t=jn(7,t,o,n),t.lanes=i,t}function Nb(t,n,i,o){t=jn(22,t,o,n),t.elementType=k,t.lanes=i;var c={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var p=c._current;if(p===null)throw Error(a(456));if(!(c._pendingVisibility&2)){var b=$r(p,2);b!==null&&(c._pendingVisibility|=2,en(b,p,2))}},attach:function(){var p=c._current;if(p===null)throw Error(a(456));if(c._pendingVisibility&2){var b=$r(p,2);b!==null&&(c._pendingVisibility&=-3,en(b,p,2))}}};return t.stateNode=c,t}function Wd(t,n,i){return t=jn(6,t,null,n),t.lanes=i,t}function Jd(t,n,i){return n=jn(4,t.children!==null?t.children:[],t.key,n),n.lanes=i,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}function Or(t){t.flags|=4}function Bb(t,n){if(n.type!=="stylesheet"||n.state.loading&4)t.flags&=-16777217;else if(t.flags|=16777216,!SS(n)){if(n=Bn.current,n!==null&&((Ye&4194176)===Ye?ur!==null:(Ye&62914560)!==Ye&&!(Ye&536870912)||n!==ur))throw Ja=id,W0;t.flags|=8192}}function hs(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?Jy():536870912,t.lanes|=n,Dl|=n)}function yo(t,n){if(!Xe)switch(t.tailMode){case"hidden":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function mt(t){var n=t.alternate!==null&&t.alternate.child===t.child,i=0,o=0;if(n)for(var c=t.child;c!==null;)i|=c.lanes|c.childLanes,o|=c.subtreeFlags&31457280,o|=c.flags&31457280,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)i|=c.lanes|c.childLanes,o|=c.subtreeFlags,o|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=o,t.childLanes=i,n}function Z3(t,n,i){var o=n.pendingProps;switch(nd(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(n),null;case 1:return mt(n),null;case 3:return i=n.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),wr(Lt),qe(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Qa(n)?Or(n):t===null||t.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,Xn!==null&&(op(Xn),Xn=null))),mt(n),null;case 26:return i=n.memoizedState,t===null?(Or(n),i!==null?(mt(n),Bb(n,i)):(mt(n),n.flags&=-16777217)):i?i!==t.memoizedState?(Or(n),mt(n),Bb(n,i)):(mt(n),n.flags&=-16777217):(t.memoizedProps!==o&&Or(n),mt(n),n.flags&=-16777217),null;case 27:Oe(n),i=ge.current;var c=n.type;if(t!==null&&n.stateNode!=null)t.memoizedProps!==o&&Or(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return mt(n),null}t=De.current,Qa(n)?K0(n):(t=fS(c,o,i),n.stateNode=t,Or(n))}return mt(n),null;case 5:if(Oe(n),i=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==o&&Or(n);else{if(!o){if(n.stateNode===null)throw Error(a(166));return mt(n),null}if(t=De.current,Qa(n))K0(n);else{switch(c=ws(ge.current),t){case 1:t=c.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:t=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":t=c.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":t=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":t=c.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof o.is=="string"?c.createElement("select",{is:o.is}):c.createElement("select"),o.multiple?t.multiple=!0:o.size&&(t.size=o.size);break;default:t=typeof o.is=="string"?c.createElement(i,{is:o.is}):c.createElement(i)}}t[Kt]=n,t[un]=o;e:for(c=n.child;c!==null;){if(c.tag===5||c.tag===6)t.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===n)break e;for(;c.sibling===null;){if(c.return===null||c.return===n)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}n.stateNode=t;e:switch(Yt(t,i,o),i){case"button":case"input":case"select":case"textarea":t=!!o.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&Or(n)}}return mt(n),n.flags&=-16777217,null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==o&&Or(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(a(166));if(t=ge.current,Qa(n)){if(t=n.stateNode,i=n.memoizedProps,o=null,c=Jt,c!==null)switch(c.tag){case 27:case 5:o=c.memoizedProps}t[Kt]=n,t=!!(t.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||lS(t.nodeValue,i)),t||wi(n)}else t=ws(t).createTextNode(o),t[Kt]=n,n.stateNode=t}return mt(n),null;case 13:if(o=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(c=Qa(n),o!==null&&o.dehydrated!==null){if(t===null){if(!c)throw Error(a(318));if(c=n.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(a(317));c[Kt]=n}else Ka(),!(n.flags&128)&&(n.memoizedState=null),n.flags|=4;mt(n),c=!1}else Xn!==null&&(op(Xn),Xn=null),c=!0;if(!c)return n.flags&256?(xr(n),n):(xr(n),null)}if(xr(n),n.flags&128)return n.lanes=i,n;if(i=o!==null,t=t!==null&&t.memoizedState!==null,i){o=n.child,c=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(c=o.alternate.memoizedState.cachePool.pool);var p=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(p=o.memoizedState.cachePool.pool),p!==c&&(o.flags|=2048)}return i!==t&&i&&(n.child.flags|=8192),hs(n,n.updateQueue),mt(n),null;case 4:return qe(),t===null&&bp(n.stateNode.containerInfo),mt(n),null;case 10:return wr(n.type),mt(n),null;case 19:if(ke(Bt),c=n.memoizedState,c===null)return mt(n),null;if(o=(n.flags&128)!==0,p=c.rendering,p===null)if(o)yo(c,!1);else{if(xt!==0||t!==null&&t.flags&128)for(t=n.child;t!==null;){if(p=Zu(t),p!==null){for(n.flags|=128,yo(c,!1),t=p.updateQueue,n.updateQueue=t,hs(n,t),n.subtreeFlags=0,t=i,i=n.child;i!==null;)zb(i,t),i=i.sibling;return pe(Bt,Bt.current&1|2),n.child}t=t.sibling}c.tail!==null&&ze()>ms&&(n.flags|=128,o=!0,yo(c,!1),n.lanes=4194304)}else{if(!o)if(t=Zu(p),t!==null){if(n.flags|=128,o=!0,t=t.updateQueue,n.updateQueue=t,hs(n,t),yo(c,!0),c.tail===null&&c.tailMode==="hidden"&&!p.alternate&&!Xe)return mt(n),null}else 2*ze()-c.renderingStartTime>ms&&i!==536870912&&(n.flags|=128,o=!0,yo(c,!1),n.lanes=4194304);c.isBackwards?(p.sibling=n.child,n.child=p):(t=c.last,t!==null?t.sibling=p:n.child=p,c.last=p)}return c.tail!==null?(n=c.tail,c.rendering=n,c.tail=n.sibling,c.renderingStartTime=ze(),n.sibling=null,t=Bt.current,pe(Bt,o?t&1|2:t&1),n):(mt(n),null);case 22:case 23:return xr(n),ad(),o=n.memoizedState!==null,t!==null?t.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?i&536870912&&!(n.flags&128)&&(mt(n),n.subtreeFlags&6&&(n.flags|=8192)):mt(n),i=n.updateQueue,i!==null&&hs(n,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==i&&(n.flags|=2048),t!==null&&ke(ki),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),wr(Lt),mt(n),null;case 25:return null}throw Error(a(156,n.tag))}function W3(t,n){switch(nd(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return wr(Lt),qe(),t=n.flags,t&65536&&!(t&128)?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return Oe(n),null;case 13:if(xr(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(a(340));Ka()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return ke(Bt),null;case 4:return qe(),null;case 10:return wr(n.type),null;case 22:case 23:return xr(n),ad(),t!==null&&ke(ki),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return wr(Lt),null;case 25:return null;default:return null}}function Lb(t,n){switch(nd(n),n.tag){case 3:wr(Lt),qe();break;case 26:case 27:case 5:Oe(n);break;case 4:qe();break;case 13:xr(n);break;case 19:ke(Bt);break;case 10:wr(n.type);break;case 22:case 23:xr(n),ad(),t!==null&&ke(ki);break;case 24:wr(Lt)}}var J3={getCacheForType:function(t){var n=Zt(Lt),i=n.data.get(t);return i===void 0&&(i=t(),n.data.set(t,i)),i}},eO=typeof WeakMap=="function"?WeakMap:Map,gt=0,st=null,He=null,Ye=0,ct=0,vn=null,Mr=!1,_l=!1,ep=!1,_r=0,xt=0,ni=0,Li=0,tp=0,Hn=0,Dl=0,bo=null,cr=null,np=!1,rp=0,ms=1/0,gs=null,ri=null,ys=!1,Ui=null,So=0,ip=0,lp=null,vo=0,ap=null;function xn(){if(gt&2&&Ye!==0)return Ye&-Ye;if(V.T!==null){var t=Cl;return t!==0?t:hp()}return r0()}function Ub(){Hn===0&&(Hn=!(Ye&536870912)||Xe?Wy():536870912);var t=Bn.current;return t!==null&&(t.flags|=32),Hn}function en(t,n,i){(t===st&&ct===2||t.cancelPendingCommit!==null)&&(zl(t,0),Dr(t,Ye,Hn,!1)),Ua(t,i),(!(gt&2)||t!==st)&&(t===st&&(!(gt&2)&&(Li|=i),xt===4&&Dr(t,Ye,Hn,!1)),fr(t))}function jb(t,n,i){if(gt&6)throw Error(a(327));var o=!i&&(n&60)===0&&(n&t.expiredLanes)===0||La(t,n),c=o?rO(t,n):cp(t,n,!0),p=o;do{if(c===0){_l&&!o&&Dr(t,n,0,!1);break}else if(c===6)Dr(t,n,0,!Mr);else{if(i=t.current.alternate,p&&!tO(i)){c=cp(t,n,!1),p=!1;continue}if(c===2){if(p=n,t.errorRecoveryDisabledLanes&p)var b=0;else b=t.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var C=t;c=bo;var D=C.current.memoizedState.isDehydrated;if(D&&(zl(C,b).flags|=256),b=cp(C,b,!1),b!==2){if(ep&&!D){C.errorRecoveryDisabledLanes|=p,Li|=p,c=4;break e}p=cr,cr=c,p!==null&&op(p)}c=b}if(p=!1,c!==2)continue}}if(c===1){zl(t,0),Dr(t,n,0,!0);break}e:{switch(o=t,c){case 0:case 1:throw Error(a(345));case 4:if((n&4194176)===n){Dr(o,n,Hn,!Mr);break e}break;case 2:cr=null;break;case 3:case 5:break;default:throw Error(a(329))}if(o.finishedWork=i,o.finishedLanes=n,(n&62914560)===n&&(p=rp+300-ze(),10<p)){if(Dr(o,n,Hn,!Mr),Mu(o,0)!==0)break e;o.timeoutHandle=uS(Hb.bind(null,o,i,cr,gs,np,n,Hn,Li,Dl,Mr,2,-0,0),p);break e}Hb(o,i,cr,gs,np,n,Hn,Li,Dl,Mr,0,-0,0)}}break}while(!0);fr(t)}function op(t){cr===null?cr=t:cr.push.apply(cr,t)}function Hb(t,n,i,o,c,p,b,C,D,U,te,ae,G){var J=n.subtreeFlags;if((J&8192||(J&16785408)===16785408)&&(Ao={stylesheets:null,count:0,unsuspend:LO},Ob(n),n=jO(),n!==null)){t.cancelPendingCommit=n(Fb.bind(null,t,i,o,c,b,C,D,1,ae,G)),Dr(t,p,b,!U);return}Fb(t,i,o,c,b,C,D,te,ae,G)}function tO(t){for(var n=t;;){var i=n.tag;if((i===0||i===11||i===15)&&n.flags&16384&&(i=n.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var c=i[o],p=c.getSnapshot;c=c.value;try{if(!yn(p(),c))return!1}catch{return!1}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Dr(t,n,i,o){n&=~tp,n&=~Li,t.suspendedLanes|=n,t.pingedLanes&=~n,o&&(t.warmLanes|=n),o=t.expirationTimes;for(var c=n;0<c;){var p=31-Ot(c),b=1<<p;o[p]=-1,c&=~b}i!==0&&e0(t,i,n)}function bs(){return gt&6?!0:(xo(0),!1)}function up(){if(He!==null){if(ct===0)var t=He.return;else t=He,Tr=Di=null,hd(t),xl=null,eo=0,t=He;for(;t!==null;)Lb(t.alternate,t),t=t.return;He=null}}function zl(t,n){t.finishedWork=null,t.finishedLanes=0;var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,vO(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),up(),st=t,He=i=ti(t.current,null),Ye=n,ct=0,vn=null,Mr=!1,_l=La(t,n),ep=!1,Dl=Hn=tp=Li=ni=xt=0,cr=bo=null,np=!1,n&8&&(n|=n&32);var o=t.entangledLanes;if(o!==0)for(t=t.entanglements,o&=n;0<o;){var c=31-Ot(o),p=1<<c;n|=t[c],o&=~p}return _r=n,qu(),i}function Ib(t,n){Ne=null,V.H=sr,n===Wa?(n=t1(),ct=3):n===W0?(n=t1(),ct=4):ct=n===J1?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,vn=n,He===null&&(xt=1,us(t,Dn(n,t.current)))}function Vb(){var t=V.H;return V.H=sr,t===null?sr:t}function qb(){var t=V.A;return V.A=J3,t}function sp(){xt=4,Mr||(Ye&4194176)!==Ye&&Bn.current!==null||(_l=!0),!(ni&134217727)&&!(Li&134217727)||st===null||Dr(st,Ye,Hn,!1)}function cp(t,n,i){var o=gt;gt|=2;var c=Vb(),p=qb();(st!==t||Ye!==n)&&(gs=null,zl(t,n)),n=!1;var b=xt;e:do try{if(ct!==0&&He!==null){var C=He,D=vn;switch(ct){case 8:up(),b=6;break e;case 3:case 2:case 6:Bn.current===null&&(n=!0);var U=ct;if(ct=0,vn=null,Nl(t,C,D,U),i&&_l){b=0;break e}break;default:U=ct,ct=0,vn=null,Nl(t,C,D,U)}}nO(),b=xt;break}catch(te){Ib(t,te)}while(!0);return n&&t.shellSuspendCounter++,Tr=Di=null,gt=o,V.H=c,V.A=p,He===null&&(st=null,Ye=0,qu()),b}function nO(){for(;He!==null;)$b(He)}function rO(t,n){var i=gt;gt|=2;var o=Vb(),c=qb();st!==t||Ye!==n?(gs=null,ms=ze()+500,zl(t,n)):_l=La(t,n);e:do try{if(ct!==0&&He!==null){n=He;var p=vn;t:switch(ct){case 1:ct=0,vn=null,Nl(t,n,p,1);break;case 2:if(J0(p)){ct=0,vn=null,Gb(n);break}n=function(){ct===2&&st===t&&(ct=7),fr(t)},p.then(n,n);break e;case 3:ct=7;break e;case 4:ct=5;break e;case 7:J0(p)?(ct=0,vn=null,Gb(n)):(ct=0,vn=null,Nl(t,n,p,7));break;case 5:var b=null;switch(He.tag){case 26:b=He.memoizedState;case 5:case 27:var C=He;if(!b||SS(b)){ct=0,vn=null;var D=C.sibling;if(D!==null)He=D;else{var U=C.return;U!==null?(He=U,Ss(U)):He=null}break t}}ct=0,vn=null,Nl(t,n,p,5);break;case 6:ct=0,vn=null,Nl(t,n,p,6);break;case 8:up(),xt=6;break e;default:throw Error(a(462))}}iO();break}catch(te){Ib(t,te)}while(!0);return Tr=Di=null,V.H=o,V.A=c,gt=i,He!==null?0:(st=null,Ye=0,qu(),xt)}function iO(){for(;He!==null&&!gn();)$b(He)}function $b(t){var n=fb(t.alternate,t,_r);t.memoizedProps=t.pendingProps,n===null?Ss(t):He=n}function Gb(t){var n=t,i=n.alternate;switch(n.tag){case 15:case 0:n=lb(i,n,n.pendingProps,n.type,void 0,Ye);break;case 11:n=lb(i,n,n.pendingProps,n.type.render,n.ref,Ye);break;case 5:hd(n);default:Lb(i,n),n=He=zb(n,_r),n=fb(i,n,_r)}t.memoizedProps=t.pendingProps,n===null?Ss(t):He=n}function Nl(t,n,i,o){Tr=Di=null,hd(n),xl=null,eo=0;var c=n.return;try{if(F3(t,c,n,i,Ye)){xt=1,us(t,Dn(i,t.current)),He=null;return}}catch(p){if(c!==null)throw He=c,p;xt=1,us(t,Dn(i,t.current)),He=null;return}n.flags&32768?(Xe||o===1?t=!0:_l||Ye&536870912?t=!1:(Mr=t=!0,(o===2||o===3||o===6)&&(o=Bn.current,o!==null&&o.tag===13&&(o.flags|=16384))),Yb(n,t)):Ss(n)}function Ss(t){var n=t;do{if(n.flags&32768){Yb(n,Mr);return}t=n.return;var i=Z3(n.alternate,n,_r);if(i!==null){He=i;return}if(n=n.sibling,n!==null){He=n;return}He=n=t}while(n!==null);xt===0&&(xt=5)}function Yb(t,n){do{var i=W3(t.alternate,t);if(i!==null){i.flags&=32767,He=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!n&&(t=t.sibling,t!==null)){He=t;return}He=t=i}while(t!==null);xt=6,He=null}function Fb(t,n,i,o,c,p,b,C,D,U){var te=V.T,ae=ie.p;try{ie.p=2,V.T=null,lO(t,n,i,o,ae,c,p,b,C,D,U)}finally{V.T=te,ie.p=ae}}function lO(t,n,i,o,c,p,b,C){do Bl();while(Ui!==null);if(gt&6)throw Error(a(327));var D=t.finishedWork;if(o=t.finishedLanes,D===null)return null;if(t.finishedWork=null,t.finishedLanes=0,D===t.current)throw Error(a(177));t.callbackNode=null,t.callbackPriority=0,t.cancelPendingCommit=null;var U=D.lanes|D.childLanes;if(U|=Jf,U4(t,o,U,p,b,C),t===st&&(He=st=null,Ye=0),!(D.subtreeFlags&10256)&&!(D.flags&10256)||ys||(ys=!0,ip=U,lp=i,sO(de,function(){return Bl(),null})),i=(D.flags&15990)!==0,D.subtreeFlags&15990||i?(i=V.T,V.T=null,p=ie.p,ie.p=2,b=gt,gt|=4,X3(t,D),Ab(D,t),O3(Ep,t.containerInfo),_s=!!xp,Ep=xp=null,t.current=D,Eb(t,D.alternate,D),xe(),gt=b,ie.p=p,V.T=i):t.current=D,ys?(ys=!1,Ui=t,So=o):Pb(t,U),U=t.pendingLanes,U===0&&(ri=null),gi(D.stateNode),fr(t),n!==null)for(c=t.onRecoverableError,D=0;D<n.length;D++)U=n[D],c(U.value,{componentStack:U.stack});return So&3&&Bl(),U=t.pendingLanes,o&4194218&&U&42?t===ap?vo++:(vo=0,ap=t):vo=0,xo(0),null}function Pb(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,no(n)))}function Bl(){if(Ui!==null){var t=Ui,n=ip;ip=0;var i=n0(So),o=V.T,c=ie.p;try{if(ie.p=32>i?32:i,V.T=null,Ui===null)var p=!1;else{i=lp,lp=null;var b=Ui,C=So;if(Ui=null,So=0,gt&6)throw Error(a(331));var D=gt;if(gt|=4,_b(b.current),Rb(b,b.current,C,i),gt=D,xo(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Ut,b)}catch{}p=!0}return p}finally{ie.p=c,V.T=o,Pb(t,n)}}return!1}function Xb(t,n,i){n=Dn(i,n),n=Rd(t.stateNode,n,2),t=Zr(t,n,2),t!==null&&(Ua(t,2),fr(t))}function lt(t,n,i){if(t.tag===3)Xb(t,t,i);else for(;n!==null;){if(n.tag===3){Xb(n,t,i);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ri===null||!ri.has(o))){t=Dn(i,t),i=Z1(2),o=Zr(n,i,2),o!==null&&(W1(i,o,n,t),Ua(o,2),fr(o));break}}n=n.return}}function fp(t,n,i){var o=t.pingCache;if(o===null){o=t.pingCache=new eO;var c=new Set;o.set(n,c)}else c=o.get(n),c===void 0&&(c=new Set,o.set(n,c));c.has(i)||(ep=!0,c.add(i),t=aO.bind(null,t,n,i),n.then(t,t))}function aO(t,n,i){var o=t.pingCache;o!==null&&o.delete(n),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,st===t&&(Ye&i)===i&&(xt===4||xt===3&&(Ye&62914560)===Ye&&300>ze()-rp?!(gt&2)&&zl(t,0):tp|=i,Dl===Ye&&(Dl=0)),fr(t)}function Qb(t,n){n===0&&(n=Jy()),t=$r(t,n),t!==null&&(Ua(t,n),fr(t))}function oO(t){var n=t.memoizedState,i=0;n!==null&&(i=n.retryLane),Qb(t,i)}function uO(t,n){var i=0;switch(t.tag){case 13:var o=t.stateNode,c=t.memoizedState;c!==null&&(i=c.retryLane);break;case 19:o=t.stateNode;break;case 22:o=t.stateNode._retryCache;break;default:throw Error(a(314))}o!==null&&o.delete(n),Qb(t,i)}function sO(t,n){return ht(t,n)}var vs=null,Ll=null,dp=!1,xs=!1,pp=!1,ji=0;function fr(t){t!==Ll&&t.next===null&&(Ll===null?vs=Ll=t:Ll=Ll.next=t),xs=!0,dp||(dp=!0,fO(cO))}function xo(t,n){if(!pp&&xs){pp=!0;do for(var i=!1,o=vs;o!==null;){if(t!==0){var c=o.pendingLanes;if(c===0)var p=0;else{var b=o.suspendedLanes,C=o.pingedLanes;p=(1<<31-Ot(42|t)+1)-1,p&=c&~(b&~C),p=p&201326677?p&201326677|1:p?p|2:0}p!==0&&(i=!0,Wb(o,p))}else p=Ye,p=Mu(o,o===st?p:0),!(p&3)||La(o,p)||(i=!0,Wb(o,p));o=o.next}while(i);pp=!1}}function cO(){xs=dp=!1;var t=0;ji!==0&&(SO()&&(t=ji),ji=0);for(var n=ze(),i=null,o=vs;o!==null;){var c=o.next,p=Kb(o,n);p===0?(o.next=null,i===null?vs=c:i.next=c,c===null&&(Ll=i)):(i=o,(t!==0||p&3)&&(xs=!0)),o=c}xo(t)}function Kb(t,n){for(var i=t.suspendedLanes,o=t.pingedLanes,c=t.expirationTimes,p=t.pendingLanes&-62914561;0<p;){var b=31-Ot(p),C=1<<b,D=c[b];D===-1?(!(C&i)||C&o)&&(c[b]=L4(C,n)):D<=n&&(t.expiredLanes|=C),p&=~C}if(n=st,i=Ye,i=Mu(t,t===n?i:0),o=t.callbackNode,i===0||t===n&&ct===2||t.cancelPendingCommit!==null)return o!==null&&o!==null&&Qt(o),t.callbackNode=null,t.callbackPriority=0;if(!(i&3)||La(t,i)){if(n=i&-i,n===t.callbackPriority)return n;switch(o!==null&&Qt(o),n0(i)){case 2:case 8:i=le;break;case 32:i=de;break;case 268435456:i=Ve;break;default:i=de}return o=Zb.bind(null,t),i=ht(i,o),t.callbackPriority=n,t.callbackNode=i,n}return o!==null&&o!==null&&Qt(o),t.callbackPriority=2,t.callbackNode=null,2}function Zb(t,n){var i=t.callbackNode;if(Bl()&&t.callbackNode!==i)return null;var o=Ye;return o=Mu(t,t===st?o:0),o===0?null:(jb(t,o,n),Kb(t,ze()),t.callbackNode!=null&&t.callbackNode===i?Zb.bind(null,t):null)}function Wb(t,n){if(Bl())return null;jb(t,n,!0)}function fO(t){xO(function(){gt&6?ht(X,t):t()})}function hp(){return ji===0&&(ji=Wy()),ji}function Jb(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Bu(""+t)}function eS(t,n){var i=n.ownerDocument.createElement("input");return i.name=n.name,i.value=n.value,t.id&&i.setAttribute("form",t.id),n.parentNode.insertBefore(i,n),t=new FormData(t),i.parentNode.removeChild(i),t}function dO(t,n,i,o,c){if(n==="submit"&&i&&i.stateNode===c){var p=Jb((c[un]||null).action),b=o.submitter;b&&(n=(n=b[un]||null)?Jb(n.formAction):b.getAttribute("formAction"),n!==null&&(p=n,b=null));var C=new Hu("action","action",null,o,c);t.push({event:C,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(ji!==0){var D=b?eS(c,b):new FormData(c);Cd(i,{pending:!0,data:D,method:c.method,action:p},null,D)}}else typeof p=="function"&&(C.preventDefault(),D=b?eS(c,b):new FormData(c),Cd(i,{pending:!0,data:D,method:c.method,action:p},p,D))},currentTarget:c}]})}}for(var mp=0;mp<F0.length;mp++){var gp=F0[mp],pO=gp.toLowerCase(),hO=gp[0].toUpperCase()+gp.slice(1);Pn(pO,"on"+hO)}Pn(V0,"onAnimationEnd"),Pn(q0,"onAnimationIteration"),Pn($0,"onAnimationStart"),Pn("dblclick","onDoubleClick"),Pn("focusin","onFocus"),Pn("focusout","onBlur"),Pn(_3,"onTransitionRun"),Pn(D3,"onTransitionStart"),Pn(z3,"onTransitionCancel"),Pn(G0,"onTransitionEnd"),sl("onMouseEnter",["mouseout","mouseover"]),sl("onMouseLeave",["mouseout","mouseover"]),sl("onPointerEnter",["pointerout","pointerover"]),sl("onPointerLeave",["pointerout","pointerover"]),Si("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Si("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Si("onBeforeInput",["compositionend","keypress","textInput","paste"]),Si("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Si("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Si("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Eo="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(" "),mO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Eo));function tS(t,n){n=(n&4)!==0;for(var i=0;i<t.length;i++){var o=t[i],c=o.event;o=o.listeners;e:{var p=void 0;if(n)for(var b=o.length-1;0<=b;b--){var C=o[b],D=C.instance,U=C.currentTarget;if(C=C.listener,D!==p&&c.isPropagationStopped())break e;p=C,c.currentTarget=U;try{p(c)}catch(te){os(te)}c.currentTarget=null,p=D}else for(b=0;b<o.length;b++){if(C=o[b],D=C.instance,U=C.currentTarget,C=C.listener,D!==p&&c.isPropagationStopped())break e;p=C,c.currentTarget=U;try{p(c)}catch(te){os(te)}c.currentTarget=null,p=D}}}}function $e(t,n){var i=n[Df];i===void 0&&(i=n[Df]=new Set);var o=t+"__bubble";i.has(o)||(nS(n,t,2,!1),i.add(o))}function yp(t,n,i){var o=0;n&&(o|=4),nS(i,t,o,n)}var Es="_reactListening"+Math.random().toString(36).slice(2);function bp(t){if(!t[Es]){t[Es]=!0,l0.forEach(function(i){i!=="selectionchange"&&(mO.has(i)||yp(i,!1,t),yp(i,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[Es]||(n[Es]=!0,yp("selectionchange",!1,n))}}function nS(t,n,i,o){switch(wS(n)){case 2:var c=VO;break;case 8:c=qO;break;default:c=_p}i=c.bind(null,n,i,t),c=void 0,!If||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=!0),o?c!==void 0?t.addEventListener(n,i,{capture:!0,passive:c}):t.addEventListener(n,i,!0):c!==void 0?t.addEventListener(n,i,{passive:c}):t.addEventListener(n,i,!1)}function Sp(t,n,i,o,c){var p=o;if(!(n&1)&&!(n&2)&&o!==null)e:for(;;){if(o===null)return;var b=o.tag;if(b===3||b===4){var C=o.stateNode.containerInfo;if(C===c||C.nodeType===8&&C.parentNode===c)break;if(b===4)for(b=o.return;b!==null;){var D=b.tag;if((D===3||D===4)&&(D=b.stateNode.containerInfo,D===c||D.nodeType===8&&D.parentNode===c))return;b=b.return}for(;C!==null;){if(b=bi(C),b===null)return;if(D=b.tag,D===5||D===6||D===26||D===27){o=p=b;continue e}C=C.parentNode}}o=o.return}y0(function(){var U=p,te=jf(i),ae=[];e:{var G=Y0.get(t);if(G!==void 0){var J=Hu,Se=t;switch(t){case"keypress":if(Uu(i)===0)break e;case"keydown":case"keyup":J=u3;break;case"focusin":Se="focus",J=Gf;break;case"focusout":Se="blur",J=Gf;break;case"beforeblur":case"afterblur":J=Gf;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=v0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=K4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=f3;break;case V0:case q0:case $0:J=J4;break;case G0:J=p3;break;case"scroll":case"scrollend":J=X4;break;case"wheel":J=m3;break;case"copy":case"cut":case"paste":J=t3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=E0;break;case"toggle":case"beforetoggle":J=y3}var Re=(n&4)!==0,Et=!Re&&(t==="scroll"||t==="scrollend"),j=Re?G!==null?G+"Capture":null:G;Re=[];for(var L=U,q;L!==null;){var re=L;if(q=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||q===null||j===null||(re=Ia(L,j),re!=null&&Re.push(Co(L,re,q))),Et)break;L=L.return}0<Re.length&&(G=new J(G,Se,null,i,te),ae.push({event:G,listeners:Re}))}}if(!(n&7)){e:{if(G=t==="mouseover"||t==="pointerover",J=t==="mouseout"||t==="pointerout",G&&i!==Uf&&(Se=i.relatedTarget||i.fromElement)&&(bi(Se)||Se[al]))break e;if((J||G)&&(G=te.window===te?te:(G=te.ownerDocument)?G.defaultView||G.parentWindow:window,J?(Se=i.relatedTarget||i.toElement,J=U,Se=Se?bi(Se):null,Se!==null&&(Et=Q(Se),Re=Se.tag,Se!==Et||Re!==5&&Re!==27&&Re!==6)&&(Se=null)):(J=null,Se=U),J!==Se)){if(Re=v0,re="onMouseLeave",j="onMouseEnter",L="mouse",(t==="pointerout"||t==="pointerover")&&(Re=E0,re="onPointerLeave",j="onPointerEnter",L="pointer"),Et=J==null?G:Ha(J),q=Se==null?G:Ha(Se),G=new Re(re,L+"leave",J,i,te),G.target=Et,G.relatedTarget=q,re=null,bi(te)===U&&(Re=new Re(j,L+"enter",Se,i,te),Re.target=q,Re.relatedTarget=Et,re=Re),Et=re,J&&Se)t:{for(Re=J,j=Se,L=0,q=Re;q;q=Ul(q))L++;for(q=0,re=j;re;re=Ul(re))q++;for(;0<L-q;)Re=Ul(Re),L--;for(;0<q-L;)j=Ul(j),q--;for(;L--;){if(Re===j||j!==null&&Re===j.alternate)break t;Re=Ul(Re),j=Ul(j)}Re=null}else Re=null;J!==null&&rS(ae,G,J,Re,!1),Se!==null&&Et!==null&&rS(ae,Et,Se,Re,!0)}}e:{if(G=U?Ha(U):window,J=G.nodeName&&G.nodeName.toLowerCase(),J==="select"||J==="input"&&G.type==="file")var be=M0;else if(R0(G))if(_0)be=k3;else{be=w3;var je=T3}else J=G.nodeName,!J||J.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?U&&Lf(U.elementType)&&(be=M0):be=A3;if(be&&(be=be(t,U))){O0(ae,be,i,te);break e}je&&je(t,G,U),t==="focusout"&&U&&G.type==="number"&&U.memoizedProps.value!=null&&Bf(G,"number",G.value)}switch(je=U?Ha(U):window,t){case"focusin":(R0(je)||je.contentEditable==="true")&&(ml=je,Kf=U,Xa=null);break;case"focusout":Xa=Kf=ml=null;break;case"mousedown":Zf=!0;break;case"contextmenu":case"mouseup":case"dragend":Zf=!1,H0(ae,i,te);break;case"selectionchange":if(M3)break;case"keydown":case"keyup":H0(ae,i,te)}var ve;if(Ff)e:{switch(t){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else hl?A0(t,i)&&(Te="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Te="onCompositionStart");Te&&(C0&&i.locale!=="ko"&&(hl||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&hl&&(ve=b0()):(qr=te,Vf="value"in qr?qr.value:qr.textContent,hl=!0)),je=Cs(U,Te),0<je.length&&(Te=new x0(Te,t,null,i,te),ae.push({event:Te,listeners:je}),ve?Te.data=ve:(ve=k0(i),ve!==null&&(Te.data=ve)))),(ve=S3?v3(t,i):x3(t,i))&&(Te=Cs(U,"onBeforeInput"),0<Te.length&&(je=new x0("onBeforeInput","beforeinput",null,i,te),ae.push({event:je,listeners:Te}),je.data=ve)),dO(ae,t,U,i,te)}tS(ae,n)})}function Co(t,n,i){return{instance:t,listener:n,currentTarget:i}}function Cs(t,n){for(var i=n+"Capture",o=[];t!==null;){var c=t,p=c.stateNode;c=c.tag,c!==5&&c!==26&&c!==27||p===null||(c=Ia(t,i),c!=null&&o.unshift(Co(t,c,p)),c=Ia(t,n),c!=null&&o.push(Co(t,c,p))),t=t.return}return o}function Ul(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function rS(t,n,i,o,c){for(var p=n._reactName,b=[];i!==null&&i!==o;){var C=i,D=C.alternate,U=C.stateNode;if(C=C.tag,D!==null&&D===o)break;C!==5&&C!==26&&C!==27||U===null||(D=U,c?(U=Ia(i,p),U!=null&&b.unshift(Co(i,U,D))):c||(U=Ia(i,p),U!=null&&b.push(Co(i,U,D)))),i=i.return}b.length!==0&&t.push({event:n,listeners:b})}var gO=/\r\n?/g,yO=/\u0000|\uFFFD/g;function iS(t){return(typeof t=="string"?t:""+t).replace(gO,`
41
+ `).replace(yO,"")}function lS(t,n){return n=iS(n),iS(t)===n}function Ts(){}function nt(t,n,i,o,c,p){switch(i){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||fl(t,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&fl(t,""+o);break;case"className":Du(t,"class",o);break;case"tabIndex":Du(t,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Du(t,i,o);break;case"style":m0(t,o,p);break;case"data":if(n!=="object"){Du(t,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||i!=="href")){t.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=Bu(""+o),t.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){t.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(i==="formAction"?(n!=="input"&&nt(t,n,"name",c.name,c,null),nt(t,n,"formEncType",c.formEncType,c,null),nt(t,n,"formMethod",c.formMethod,c,null),nt(t,n,"formTarget",c.formTarget,c,null)):(nt(t,n,"encType",c.encType,c,null),nt(t,n,"method",c.method,c,null),nt(t,n,"target",c.target,c,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(i);break}o=Bu(""+o),t.setAttribute(i,o);break;case"onClick":o!=null&&(t.onclick=Ts);break;case"onScroll":o!=null&&$e("scroll",t);break;case"onScrollEnd":o!=null&&$e("scrollend",t);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(i=o.__html,i!=null){if(c.children!=null)throw Error(a(60));t.innerHTML=i}}break;case"multiple":t.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":t.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){t.removeAttribute("xlink:href");break}i=Bu(""+o),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""+o):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":o===!0?t.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(i,o):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?t.setAttribute(i,o):t.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?t.removeAttribute(i):t.setAttribute(i,o);break;case"popover":$e("beforetoggle",t),$e("toggle",t),_u(t,"popover",o);break;case"xlinkActuate":br(t,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":br(t,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":br(t,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":br(t,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":br(t,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":br(t,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":br(t,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":br(t,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":br(t,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":_u(t,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=F4.get(i)||i,_u(t,i,o))}}function vp(t,n,i,o,c,p){switch(i){case"style":m0(t,o,p);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(i=o.__html,i!=null){if(c.children!=null)throw Error(a(60));t.innerHTML=i}}break;case"children":typeof o=="string"?fl(t,o):(typeof o=="number"||typeof o=="bigint")&&fl(t,""+o);break;case"onScroll":o!=null&&$e("scroll",t);break;case"onScrollEnd":o!=null&&$e("scrollend",t);break;case"onClick":o!=null&&(t.onclick=Ts);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!a0.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(c=i.endsWith("Capture"),n=i.slice(2,c?i.length-7:void 0),p=t[un]||null,p=p!=null?p[i]:null,typeof p=="function"&&t.removeEventListener(n,p,c),typeof o=="function")){typeof p!="function"&&p!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(n,o,c);break e}i in t?t[i]=o:o===!0?t.setAttribute(i,""):_u(t,i,o)}}}function Yt(t,n,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",t),$e("load",t);var o=!1,c=!1,p;for(p in i)if(i.hasOwnProperty(p)){var b=i[p];if(b!=null)switch(p){case"src":o=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:nt(t,n,p,b,i,null)}}c&&nt(t,n,"srcSet",i.srcSet,i,null),o&&nt(t,n,"src",i.src,i,null);return;case"input":$e("invalid",t);var C=p=b=c=null,D=null,U=null;for(o in i)if(i.hasOwnProperty(o)){var te=i[o];if(te!=null)switch(o){case"name":c=te;break;case"type":b=te;break;case"checked":D=te;break;case"defaultChecked":U=te;break;case"value":p=te;break;case"defaultValue":C=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(a(137,n));break;default:nt(t,n,o,te,i,null)}}f0(t,p,C,D,U,b,c,!1),zu(t);return;case"select":$e("invalid",t),o=b=p=null;for(c in i)if(i.hasOwnProperty(c)&&(C=i[c],C!=null))switch(c){case"value":p=C;break;case"defaultValue":b=C;break;case"multiple":o=C;default:nt(t,n,c,C,i,null)}n=p,i=b,t.multiple=!!o,n!=null?cl(t,!!o,n,!1):i!=null&&cl(t,!!o,i,!0);return;case"textarea":$e("invalid",t),p=c=o=null;for(b in i)if(i.hasOwnProperty(b)&&(C=i[b],C!=null))switch(b){case"value":o=C;break;case"defaultValue":c=C;break;case"children":p=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(a(91));break;default:nt(t,n,b,C,i,null)}p0(t,o,c,p),zu(t);return;case"option":for(D in i)if(i.hasOwnProperty(D)&&(o=i[D],o!=null))switch(D){case"selected":t.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:nt(t,n,D,o,i,null)}return;case"dialog":$e("cancel",t),$e("close",t);break;case"iframe":case"object":$e("load",t);break;case"video":case"audio":for(o=0;o<Eo.length;o++)$e(Eo[o],t);break;case"image":$e("error",t),$e("load",t);break;case"details":$e("toggle",t);break;case"embed":case"source":case"link":$e("error",t),$e("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in i)if(i.hasOwnProperty(U)&&(o=i[U],o!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:nt(t,n,U,o,i,null)}return;default:if(Lf(n)){for(te in i)i.hasOwnProperty(te)&&(o=i[te],o!==void 0&&vp(t,n,te,o,i,void 0));return}}for(C in i)i.hasOwnProperty(C)&&(o=i[C],o!=null&&nt(t,n,C,o,i,null))}function bO(t,n,i,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,p=null,b=null,C=null,D=null,U=null,te=null;for(J in i){var ae=i[J];if(i.hasOwnProperty(J)&&ae!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":D=ae;default:o.hasOwnProperty(J)||nt(t,n,J,null,o,ae)}}for(var G in o){var J=o[G];if(ae=i[G],o.hasOwnProperty(G)&&(J!=null||ae!=null))switch(G){case"type":p=J;break;case"name":c=J;break;case"checked":U=J;break;case"defaultChecked":te=J;break;case"value":b=J;break;case"defaultValue":C=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(a(137,n));break;default:J!==ae&&nt(t,n,G,J,o,ae)}}Nf(t,b,C,D,U,te,p,c);return;case"select":J=b=C=G=null;for(p in i)if(D=i[p],i.hasOwnProperty(p)&&D!=null)switch(p){case"value":break;case"multiple":J=D;default:o.hasOwnProperty(p)||nt(t,n,p,null,o,D)}for(c in o)if(p=o[c],D=i[c],o.hasOwnProperty(c)&&(p!=null||D!=null))switch(c){case"value":G=p;break;case"defaultValue":C=p;break;case"multiple":b=p;default:p!==D&&nt(t,n,c,p,o,D)}n=C,i=b,o=J,G!=null?cl(t,!!i,G,!1):!!o!=!!i&&(n!=null?cl(t,!!i,n,!0):cl(t,!!i,i?[]:"",!1));return;case"textarea":J=G=null;for(C in i)if(c=i[C],i.hasOwnProperty(C)&&c!=null&&!o.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:nt(t,n,C,null,o,c)}for(b in o)if(c=o[b],p=i[b],o.hasOwnProperty(b)&&(c!=null||p!=null))switch(b){case"value":G=c;break;case"defaultValue":J=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(a(91));break;default:c!==p&&nt(t,n,b,c,o,p)}d0(t,G,J);return;case"option":for(var Se in i)if(G=i[Se],i.hasOwnProperty(Se)&&G!=null&&!o.hasOwnProperty(Se))switch(Se){case"selected":t.selected=!1;break;default:nt(t,n,Se,null,o,G)}for(D in o)if(G=o[D],J=i[D],o.hasOwnProperty(D)&&G!==J&&(G!=null||J!=null))switch(D){case"selected":t.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:nt(t,n,D,G,o,J)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Re in i)G=i[Re],i.hasOwnProperty(Re)&&G!=null&&!o.hasOwnProperty(Re)&&nt(t,n,Re,null,o,G);for(U in o)if(G=o[U],J=i[U],o.hasOwnProperty(U)&&G!==J&&(G!=null||J!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(a(137,n));break;default:nt(t,n,U,G,o,J)}return;default:if(Lf(n)){for(var Et in i)G=i[Et],i.hasOwnProperty(Et)&&G!==void 0&&!o.hasOwnProperty(Et)&&vp(t,n,Et,void 0,o,G);for(te in o)G=o[te],J=i[te],!o.hasOwnProperty(te)||G===J||G===void 0&&J===void 0||vp(t,n,te,G,o,J);return}}for(var j in i)G=i[j],i.hasOwnProperty(j)&&G!=null&&!o.hasOwnProperty(j)&&nt(t,n,j,null,o,G);for(ae in o)G=o[ae],J=i[ae],!o.hasOwnProperty(ae)||G===J||G==null&&J==null||nt(t,n,ae,G,o,J)}var xp=null,Ep=null;function ws(t){return t.nodeType===9?t:t.ownerDocument}function aS(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function oS(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}function Cp(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Tp=null;function SO(){var t=window.event;return t&&t.type==="popstate"?t===Tp?!1:(Tp=t,!0):(Tp=null,!1)}var uS=typeof setTimeout=="function"?setTimeout:void 0,vO=typeof clearTimeout=="function"?clearTimeout:void 0,sS=typeof Promise=="function"?Promise:void 0,xO=typeof queueMicrotask=="function"?queueMicrotask:typeof sS<"u"?function(t){return sS.resolve(null).then(t).catch(EO)}:uS;function EO(t){setTimeout(function(){throw t})}function wp(t,n){var i=n,o=0;do{var c=i.nextSibling;if(t.removeChild(i),c&&c.nodeType===8)if(i=c.data,i==="/$"){if(o===0){t.removeChild(c),_o(n);return}o--}else i!=="$"&&i!=="$?"&&i!=="$!"||o++;i=c}while(i);_o(n)}function Ap(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var i=n;switch(n=n.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Ap(i),zf(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function CO(t,n,i,o){for(;t.nodeType===1;){var c=i;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(o){if(!t[ja])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(p=t.getAttribute("rel"),p==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(p!==c.rel||t.getAttribute("href")!==(c.href==null?null:c.href)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||t.getAttribute("title")!==(c.title==null?null:c.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(p=t.getAttribute("src"),(p!==(c.src==null?null:c.src)||t.getAttribute("type")!==(c.type==null?null:c.type)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&p&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var p=c.name==null?null:""+c.name;if(c.type==="hidden"&&t.getAttribute("name")===p)return t}else return t;if(t=Kn(t.nextSibling),t===null)break}return null}function TO(t,n,i){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Kn(t.nextSibling),t===null))return null;return t}function Kn(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return t}function cS(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"){if(n===0)return t;n--}else i==="/$"&&n++}t=t.previousSibling}return null}function fS(t,n,i){switch(n=ws(i),t){case"html":if(t=n.documentElement,!t)throw Error(a(452));return t;case"head":if(t=n.head,!t)throw Error(a(453));return t;case"body":if(t=n.body,!t)throw Error(a(454));return t;default:throw Error(a(451))}}var In=new Map,dS=new Set;function As(t){return typeof t.getRootNode=="function"?t.getRootNode():t.ownerDocument}var zr=ie.d;ie.d={f:wO,r:AO,D:kO,C:RO,L:OO,m:MO,X:DO,S:_O,M:zO};function wO(){var t=zr.f(),n=bs();return t||n}function AO(t){var n=ol(t);n!==null&&n.tag===5&&n.type==="form"?H1(n):zr.r(t)}var jl=typeof document>"u"?null:document;function pS(t,n,i){var o=jl;if(o&&typeof n=="string"&&n){var c=Mn(n);c='link[rel="'+t+'"][href="'+c+'"]',typeof i=="string"&&(c+='[crossorigin="'+i+'"]'),dS.has(c)||(dS.add(c),t={rel:t,crossOrigin:i,href:n},o.querySelector(c)===null&&(n=o.createElement("link"),Yt(n,"link",t),jt(n),o.head.appendChild(n)))}}function kO(t){zr.D(t),pS("dns-prefetch",t,null)}function RO(t,n){zr.C(t,n),pS("preconnect",t,n)}function OO(t,n,i){zr.L(t,n,i);var o=jl;if(o&&t&&n){var c='link[rel="preload"][as="'+Mn(n)+'"]';n==="image"&&i&&i.imageSrcSet?(c+='[imagesrcset="'+Mn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(c+='[imagesizes="'+Mn(i.imageSizes)+'"]')):c+='[href="'+Mn(t)+'"]';var p=c;switch(n){case"style":p=Hl(t);break;case"script":p=Il(t)}In.has(p)||(t=E({rel:"preload",href:n==="image"&&i&&i.imageSrcSet?void 0:t,as:n},i),In.set(p,t),o.querySelector(c)!==null||n==="style"&&o.querySelector(To(p))||n==="script"&&o.querySelector(wo(p))||(n=o.createElement("link"),Yt(n,"link",t),jt(n),o.head.appendChild(n)))}}function MO(t,n){zr.m(t,n);var i=jl;if(i&&t){var o=n&&typeof n.as=="string"?n.as:"script",c='link[rel="modulepreload"][as="'+Mn(o)+'"][href="'+Mn(t)+'"]',p=c;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Il(t)}if(!In.has(p)&&(t=E({rel:"modulepreload",href:t},n),In.set(p,t),i.querySelector(c)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(wo(p)))return}o=i.createElement("link"),Yt(o,"link",t),jt(o),i.head.appendChild(o)}}}function _O(t,n,i){zr.S(t,n,i);var o=jl;if(o&&t){var c=ul(o).hoistableStyles,p=Hl(t);n=n||"default";var b=c.get(p);if(!b){var C={loading:0,preload:null};if(b=o.querySelector(To(p)))C.loading=5;else{t=E({rel:"stylesheet",href:t,"data-precedence":n},i),(i=In.get(p))&&kp(t,i);var D=b=o.createElement("link");jt(D),Yt(D,"link",t),D._p=new Promise(function(U,te){D.onload=U,D.onerror=te}),D.addEventListener("load",function(){C.loading|=1}),D.addEventListener("error",function(){C.loading|=2}),C.loading|=4,ks(b,n,o)}b={type:"stylesheet",instance:b,count:1,state:C},c.set(p,b)}}}function DO(t,n){zr.X(t,n);var i=jl;if(i&&t){var o=ul(i).hoistableScripts,c=Il(t),p=o.get(c);p||(p=i.querySelector(wo(c)),p||(t=E({src:t,async:!0},n),(n=In.get(c))&&Rp(t,n),p=i.createElement("script"),jt(p),Yt(p,"link",t),i.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(c,p))}}function zO(t,n){zr.M(t,n);var i=jl;if(i&&t){var o=ul(i).hoistableScripts,c=Il(t),p=o.get(c);p||(p=i.querySelector(wo(c)),p||(t=E({src:t,async:!0,type:"module"},n),(n=In.get(c))&&Rp(t,n),p=i.createElement("script"),jt(p),Yt(p,"link",t),i.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},o.set(c,p))}}function hS(t,n,i,o){var c=(c=ge.current)?As(c):null;if(!c)throw Error(a(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(n=Hl(i.href),i=ul(c).hoistableStyles,o=i.get(n),o||(o={type:"style",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Hl(i.href);var p=ul(c).hoistableStyles,b=p.get(t);if(b||(c=c.ownerDocument||c,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(t,b),(p=c.querySelector(To(t)))&&!p._p&&(b.instance=p,b.state.loading=5),In.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},In.set(t,i),p||NO(c,t,i,b.state))),n&&o===null)throw Error(a(528,""));return b}if(n&&o!==null)throw Error(a(529,""));return null;case"script":return n=i.async,i=i.src,typeof i=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Il(i),i=ul(c).hoistableScripts,o=i.get(n),o||(o={type:"script",instance:null,count:0,state:null},i.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,t))}}function Hl(t){return'href="'+Mn(t)+'"'}function To(t){return'link[rel="stylesheet"]['+t+"]"}function mS(t){return E({},t,{"data-precedence":t.precedence,precedence:null})}function NO(t,n,i,o){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=t.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),Yt(n,"link",i),jt(n),t.head.appendChild(n))}function Il(t){return'[src="'+Mn(t)+'"]'}function wo(t){return"script[async]"+t}function gS(t,n,i){if(n.count++,n.instance===null)switch(n.type){case"style":var o=t.querySelector('style[data-href~="'+Mn(i.href)+'"]');if(o)return n.instance=o,jt(o),o;var c=E({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),jt(o),Yt(o,"style",c),ks(o,i.precedence,t),n.instance=o;case"stylesheet":c=Hl(i.href);var p=t.querySelector(To(c));if(p)return n.state.loading|=4,n.instance=p,jt(p),p;o=mS(i),(c=In.get(c))&&kp(o,c),p=(t.ownerDocument||t).createElement("link"),jt(p);var b=p;return b._p=new Promise(function(C,D){b.onload=C,b.onerror=D}),Yt(p,"link",o),n.state.loading|=4,ks(p,i.precedence,t),n.instance=p;case"script":return p=Il(i.src),(c=t.querySelector(wo(p)))?(n.instance=c,jt(c),c):(o=i,(c=In.get(p))&&(o=E({},i),Rp(o,c)),t=t.ownerDocument||t,c=t.createElement("script"),jt(c),Yt(c,"link",o),t.head.appendChild(c),n.instance=c);case"void":return null;default:throw Error(a(443,n.type))}else n.type==="stylesheet"&&!(n.state.loading&4)&&(o=n.instance,n.state.loading|=4,ks(o,i.precedence,t));return n.instance}function ks(t,n,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=o.length?o[o.length-1]:null,p=c,b=0;b<o.length;b++){var C=o[b];if(C.dataset.precedence===n)p=C;else if(p!==c)break}p?p.parentNode.insertBefore(t,p.nextSibling):(n=i.nodeType===9?i.head:i,n.insertBefore(t,n.firstChild))}function kp(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function Rp(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var Rs=null;function yS(t,n,i){if(Rs===null){var o=new Map,c=Rs=new Map;c.set(i,o)}else c=Rs,o=c.get(i),o||(o=new Map,c.set(i,o));if(o.has(t))return o;for(o.set(t,null),i=i.getElementsByTagName(t),c=0;c<i.length;c++){var p=i[c];if(!(p[ja]||p[Kt]||t==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var b=p.getAttribute(n)||"";b=t+b;var C=o.get(b);C?C.push(p):o.set(b,[p])}}return o}function bS(t,n,i){t=t.ownerDocument||t,t.head.insertBefore(i,n==="title"?t.querySelector("head > title"):null)}function BO(t,n,i){if(i===1||n.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return t=n.disabled,typeof n.precedence=="string"&&t==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function SS(t){return!(t.type==="stylesheet"&&!(t.state.loading&3))}var Ao=null;function LO(){}function UO(t,n,i){if(Ao===null)throw Error(a(475));var o=Ao;if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var c=Hl(i.href),p=t.querySelector(To(c));if(p){t=p._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(o.count++,o=Os.bind(o),t.then(o,o)),n.state.loading|=4,n.instance=p,jt(p);return}p=t.ownerDocument||t,i=mS(i),(c=In.get(c))&&kp(i,c),p=p.createElement("link"),jt(p);var b=p;b._p=new Promise(function(C,D){b.onload=C,b.onerror=D}),Yt(p,"link",i),n.instance=p}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(o.count++,n=Os.bind(o),t.addEventListener("load",n),t.addEventListener("error",n))}}function jO(){if(Ao===null)throw Error(a(475));var t=Ao;return t.stylesheets&&t.count===0&&Op(t,t.stylesheets),0<t.count?function(n){var i=setTimeout(function(){if(t.stylesheets&&Op(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i)}}:null}function Os(){if(this.count--,this.count===0){if(this.stylesheets)Op(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ms=null;function Op(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ms=new Map,n.forEach(HO,t),Ms=null,Os.call(t))}function HO(t,n){if(!(n.state.loading&4)){var i=Ms.get(t);if(i)var o=i.get(null);else{i=new Map,Ms.set(t,i);for(var c=t.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<c.length;p++){var b=c[p];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(i.set(b.dataset.precedence,b),o=b)}o&&i.set(null,o)}c=n.instance,b=c.getAttribute("data-precedence"),p=i.get(b)||o,p===o&&i.set(null,c),i.set(b,c),this.count++,o=Os.bind(this),c.addEventListener("load",o),c.addEventListener("error",o),p?p.parentNode.insertBefore(c,p.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(c,t.firstChild)),n.state.loading|=4}}var ko={$$typeof:S,Provider:null,Consumer:null,_currentValue:ye,_currentValue2:ye,_threadCount:0};function IO(t,n,i,o,c,p,b,C){this.tag=1,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=_f(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_f(0),this.hiddenUpdates=_f(null),this.identifierPrefix=o,this.onUncaughtError=c,this.onCaughtError=p,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function vS(t,n,i,o,c,p,b,C,D,U,te,ae){return t=new IO(t,n,i,b,C,D,U,ae),n=1,p===!0&&(n|=24),p=jn(3,null,null,n),t.current=p,p.stateNode=t,n=od(),n.refCount++,t.pooledCache=n,n.refCount++,p.memoizedState={element:o,isDehydrated:i,cache:n},Vd(p),t}function xS(t){return t?(t=bl,t):bl}function ES(t,n,i,o,c,p){c=xS(c),o.context===null?o.context=c:o.pendingContext=c,o=Kr(n),o.payload={element:i},p=p===void 0?null:p,p!==null&&(o.callback=p),i=Zr(t,o,n),i!==null&&(en(i,t,n),so(i,t,n))}function CS(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<n?i:n}}function Mp(t,n){CS(t,n),(t=t.alternate)&&CS(t,n)}function TS(t){if(t.tag===13){var n=$r(t,67108864);n!==null&&en(n,t,67108864),Mp(t,67108864)}}var _s=!0;function VO(t,n,i,o){var c=V.T;V.T=null;var p=ie.p;try{ie.p=2,_p(t,n,i,o)}finally{ie.p=p,V.T=c}}function qO(t,n,i,o){var c=V.T;V.T=null;var p=ie.p;try{ie.p=8,_p(t,n,i,o)}finally{ie.p=p,V.T=c}}function _p(t,n,i,o){if(_s){var c=Dp(o);if(c===null)Sp(t,n,o,Ds,i),AS(t,o);else if(GO(c,t,n,i,o))o.stopPropagation();else if(AS(t,o),n&4&&-1<$O.indexOf(t)){for(;c!==null;){var p=ol(c);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var b=yi(p.pendingLanes);if(b!==0){var C=p;for(C.pendingLanes|=2,C.entangledLanes|=2;b;){var D=1<<31-Ot(b);C.entanglements[1]|=D,b&=~D}fr(p),!(gt&6)&&(ms=ze()+500,xo(0))}}break;case 13:C=$r(p,2),C!==null&&en(C,p,2),bs(),Mp(p,2)}if(p=Dp(o),p===null&&Sp(t,n,o,Ds,i),p===c)break;c=p}c!==null&&o.stopPropagation()}else Sp(t,n,o,null,i)}}function Dp(t){return t=jf(t),zp(t)}var Ds=null;function zp(t){if(Ds=null,t=bi(t),t!==null){var n=Q(t);if(n===null)t=null;else{var i=n.tag;if(i===13){if(t=ue(n),t!==null)return t;t=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return Ds=t,null}function wS(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Rt()){case X:return 2;case le:return 8;case de:case Ae:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var Np=!1,ii=null,li=null,ai=null,Ro=new Map,Oo=new Map,oi=[],$O="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function AS(t,n){switch(t){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":li=null;break;case"mouseover":case"mouseout":ai=null;break;case"pointerover":case"pointerout":Ro.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oo.delete(n.pointerId)}}function Mo(t,n,i,o,c,p){return t===null||t.nativeEvent!==p?(t={blockedOn:n,domEventName:i,eventSystemFlags:o,nativeEvent:p,targetContainers:[c]},n!==null&&(n=ol(n),n!==null&&TS(n)),t):(t.eventSystemFlags|=o,n=t.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),t)}function GO(t,n,i,o,c){switch(n){case"focusin":return ii=Mo(ii,t,n,i,o,c),!0;case"dragenter":return li=Mo(li,t,n,i,o,c),!0;case"mouseover":return ai=Mo(ai,t,n,i,o,c),!0;case"pointerover":var p=c.pointerId;return Ro.set(p,Mo(Ro.get(p)||null,t,n,i,o,c)),!0;case"gotpointercapture":return p=c.pointerId,Oo.set(p,Mo(Oo.get(p)||null,t,n,i,o,c)),!0}return!1}function kS(t){var n=bi(t.target);if(n!==null){var i=Q(n);if(i!==null){if(n=i.tag,n===13){if(n=ue(i),n!==null){t.blockedOn=n,j4(t.priority,function(){if(i.tag===13){var o=xn(),c=$r(i,o);c!==null&&en(c,i,o),Mp(i,o)}});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function zs(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var i=Dp(t.nativeEvent);if(i===null){i=t.nativeEvent;var o=new i.constructor(i.type,i);Uf=o,i.target.dispatchEvent(o),Uf=null}else return n=ol(i),n!==null&&TS(n),t.blockedOn=i,!1;n.shift()}return!0}function RS(t,n,i){zs(t)&&i.delete(n)}function YO(){Np=!1,ii!==null&&zs(ii)&&(ii=null),li!==null&&zs(li)&&(li=null),ai!==null&&zs(ai)&&(ai=null),Ro.forEach(RS),Oo.forEach(RS)}function Ns(t,n){t.blockedOn===n&&(t.blockedOn=null,Np||(Np=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,YO)))}var Bs=null;function OS(t){Bs!==t&&(Bs=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Bs===t&&(Bs=null);for(var n=0;n<t.length;n+=3){var i=t[n],o=t[n+1],c=t[n+2];if(typeof o!="function"){if(zp(o||i)===null)continue;break}var p=ol(i);p!==null&&(t.splice(n,3),n-=3,Cd(p,{pending:!0,data:c,method:i.method,action:o},o,c))}}))}function _o(t){function n(D){return Ns(D,t)}ii!==null&&Ns(ii,t),li!==null&&Ns(li,t),ai!==null&&Ns(ai,t),Ro.forEach(n),Oo.forEach(n);for(var i=0;i<oi.length;i++){var o=oi[i];o.blockedOn===t&&(o.blockedOn=null)}for(;0<oi.length&&(i=oi[0],i.blockedOn===null);)kS(i),i.blockedOn===null&&oi.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var c=i[o],p=i[o+1],b=c[un]||null;if(typeof p=="function")b||OS(i);else if(b){var C=null;if(p&&p.hasAttribute("formAction")){if(c=p,b=p[un]||null)C=b.formAction;else if(zp(c)!==null)continue}else C=b.action;typeof C=="function"?i[o+1]=C:(i.splice(o,3),o-=3),OS(i)}}}function Bp(t){this._internalRoot=t}Ls.prototype.render=Bp.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(a(409));var i=n.current,o=xn();ES(i,o,t,n,null,null)},Ls.prototype.unmount=Bp.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;t.tag===0&&Bl(),ES(t.current,2,null,t,null,null),bs(),n[al]=null}};function Ls(t){this._internalRoot=t}Ls.prototype.unstable_scheduleHydration=function(t){if(t){var n=r0();t={blockedOn:null,target:t,priority:n};for(var i=0;i<oi.length&&n!==0&&n<oi[i].priority;i++);oi.splice(i,0,t),i===0&&kS(t)}};var MS=r.version;if(MS!=="19.0.0")throw Error(a(527,MS,"19.0.0"));ie.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(a(188)):(t=Object.keys(t).join(","),Error(a(268,t)));return t=K(n),t=t!==null?se(t):null,t=t===null?null:t.stateNode,t};var FO={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:V,findFiberByHostInstance:bi,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Us=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Us.isDisabled&&Us.supportsFiber)try{Ut=Us.inject(FO),Nt=Us}catch{}}return Vl.createRoot=function(t,n){if(!u(t))throw Error(a(299));var i=!1,o="",c=P1,p=X1,b=Q1,C=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(C=n.unstable_transitionCallbacks)),n=vS(t,1,!1,null,null,i,o,c,p,b,C,null),t[al]=n.current,bp(t.nodeType===8?t.parentNode:t),new Bp(n)},Vl.hydrateRoot=function(t,n,i){if(!u(t))throw Error(a(299));var o=!1,c="",p=P1,b=X1,C=Q1,D=null,U=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(p=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(C=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(D=i.unstable_transitionCallbacks),i.formState!==void 0&&(U=i.formState)),n=vS(t,1,!0,n,i??null,o,c,p,b,C,D,U),n.context=xS(null),i=n.current,o=xn(),c=Kr(o),c.callback=null,Zr(i,c,o),n.current.lanes=o,Ua(n,o),fr(n),t[al]=n.current,bp(t),new Ls(n)},Vl.version="19.0.0",Vl}var Fp;function US(){if(Fp)return Hs.exports;Fp=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Hs.exports=LS(),Hs.exports}var jS=US();function No(){return No=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},No.apply(null,arguments)}function Pp(e){var r=Object.create(null);return function(l){return r[l]===void 0&&(r[l]=e(l)),r[l]}}var HS=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,IS=Pp(function(e){return HS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function VS(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function qS(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var $S=function(){function e(l){var a=this;this._insertTag=function(u){var s;a.tags.length===0?a.insertionPoint?s=a.insertionPoint.nextSibling:a.prepend?s=a.container.firstChild:s=a.before:s=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(u,s),a.tags.push(u)},this.isSpeedy=l.speedy===void 0?!0:l.speedy,this.tags=[],this.ctr=0,this.nonce=l.nonce,this.key=l.key,this.container=l.container,this.prepend=l.prepend,this.insertionPoint=l.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(a){a.forEach(this._insertTag)},r.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(qS(this));var u=this.tags[this.tags.length-1];if(this.isSpeedy){var s=VS(u);try{s.insertRule(a,s.cssRules.length)}catch{}}else u.appendChild(document.createTextNode(a));this.ctr++},r.flush=function(){this.tags.forEach(function(a){var u;return(u=a.parentNode)==null?void 0:u.removeChild(a)}),this.tags=[],this.ctr=0},e}(),Pt="-ms-",Bo="-moz-",Ke="-webkit-",Xp="comm",$s="rule",Gs="decl",GS="@import",Qp="@keyframes",YS="@layer",FS=Math.abs,Lo=String.fromCharCode,PS=Object.assign;function XS(e,r){return qt(e,0)^45?(((r<<2^qt(e,0))<<2^qt(e,1))<<2^qt(e,2))<<2^qt(e,3):0}function Kp(e){return e.trim()}function QS(e,r){return(e=r.exec(e))?e[0]:e}function Ze(e,r,l){return e.replace(r,l)}function Ys(e,r){return e.indexOf(r)}function qt(e,r){return e.charCodeAt(r)|0}function ql(e,r,l){return e.slice(r,l)}function Zn(e){return e.length}function Fs(e){return e.length}function Uo(e,r){return r.push(e),e}function KS(e,r){return e.map(r).join("")}var jo=1,Hi=1,Zp=0,tn=0,wt=0,Ii="";function Ho(e,r,l,a,u,s,f){return{value:e,root:r,parent:l,type:a,props:u,children:s,line:jo,column:Hi,length:f,return:""}}function $l(e,r){return PS(Ho("",null,null,"",null,null,0),e,{length:-e.length},r)}function ZS(){return wt}function WS(){return wt=tn>0?qt(Ii,--tn):0,Hi--,wt===10&&(Hi=1,jo--),wt}function dn(){return wt=tn<Zp?qt(Ii,tn++):0,Hi++,wt===10&&(Hi=1,jo++),wt}function Wn(){return qt(Ii,tn)}function Io(){return tn}function Gl(e,r){return ql(Ii,e,r)}function Yl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Wp(e){return jo=Hi=1,Zp=Zn(Ii=e),tn=0,[]}function Jp(e){return Ii="",e}function Vo(e){return Kp(Gl(tn-1,Ps(e===91?e+2:e===40?e+1:e)))}function JS(e){for(;(wt=Wn())&&wt<33;)dn();return Yl(e)>2||Yl(wt)>3?"":" "}function ev(e,r){for(;--r&&dn()&&!(wt<48||wt>102||wt>57&&wt<65||wt>70&&wt<97););return Gl(e,Io()+(r<6&&Wn()==32&&dn()==32))}function Ps(e){for(;dn();)switch(wt){case e:return tn;case 34:case 39:e!==34&&e!==39&&Ps(wt);break;case 40:e===41&&Ps(e);break;case 92:dn();break}return tn}function tv(e,r){for(;dn()&&e+wt!==57;)if(e+wt===84&&Wn()===47)break;return"/*"+Gl(r,tn-1)+"*"+Lo(e===47?e:dn())}function nv(e){for(;!Yl(Wn());)dn();return Gl(e,tn)}function rv(e){return Jp(qo("",null,null,null,[""],e=Wp(e),0,[0],e))}function qo(e,r,l,a,u,s,f,d,m){for(var h=0,g=0,y=f,v=0,S=0,R=0,T=1,N=1,w=1,B=0,k="",z=u,A=s,_=a,H=k;N;)switch(R=B,B=dn()){case 40:if(R!=108&&qt(H,y-1)==58){Ys(H+=Ze(Vo(B),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:H+=Vo(B);break;case 9:case 10:case 13:case 32:H+=JS(R);break;case 92:H+=ev(Io()-1,7);continue;case 47:switch(Wn()){case 42:case 47:Uo(iv(tv(dn(),Io()),r,l),m);break;default:H+="/"}break;case 123*T:d[h++]=Zn(H)*w;case 125*T:case 59:case 0:switch(B){case 0:case 125:N=0;case 59+g:w==-1&&(H=Ze(H,/\f/g,"")),S>0&&Zn(H)-y&&Uo(S>32?th(H+";",a,l,y-1):th(Ze(H," ","")+";",a,l,y-2),m);break;case 59:H+=";";default:if(Uo(_=eh(H,r,l,h,g,u,d,k,z=[],A=[],y),s),B===123)if(g===0)qo(H,r,_,_,z,s,y,d,A);else switch(v===99&&qt(H,3)===110?100:v){case 100:case 108:case 109:case 115:qo(e,_,_,a&&Uo(eh(e,_,_,0,0,u,d,k,u,z=[],y),A),u,A,y,d,a?z:A);break;default:qo(H,_,_,_,[""],A,0,d,A)}}h=g=S=0,T=w=1,k=H="",y=f;break;case 58:y=1+Zn(H),S=R;default:if(T<1){if(B==123)--T;else if(B==125&&T++==0&&WS()==125)continue}switch(H+=Lo(B),B*T){case 38:w=g>0?1:(H+="\f",-1);break;case 44:d[h++]=(Zn(H)-1)*w,w=1;break;case 64:Wn()===45&&(H+=Vo(dn())),v=Wn(),g=y=Zn(k=H+=nv(Io())),B++;break;case 45:R===45&&Zn(H)==2&&(T=0)}}return s}function eh(e,r,l,a,u,s,f,d,m,h,g){for(var y=u-1,v=u===0?s:[""],S=Fs(v),R=0,T=0,N=0;R<a;++R)for(var w=0,B=ql(e,y+1,y=FS(T=f[R])),k=e;w<S;++w)(k=Kp(T>0?v[w]+" "+B:Ze(B,/&\f/g,v[w])))&&(m[N++]=k);return Ho(e,r,l,u===0?$s:d,m,h,g)}function iv(e,r,l){return Ho(e,r,l,Xp,Lo(ZS()),ql(e,2,-2),0)}function th(e,r,l,a){return Ho(e,r,l,Gs,ql(e,0,a),ql(e,a+1,-1),a)}function Vi(e,r){for(var l="",a=Fs(e),u=0;u<a;u++)l+=r(e[u],u,e,r)||"";return l}function lv(e,r,l,a){switch(e.type){case YS:if(e.children.length)break;case GS:case Gs:return e.return=e.return||e.value;case Xp:return"";case Qp:return e.return=e.value+"{"+Vi(e.children,a)+"}";case $s:e.value=e.props.join(",")}return Zn(l=Vi(e.children,a))?e.return=e.value+"{"+l+"}":""}function av(e){var r=Fs(e);return function(l,a,u,s){for(var f="",d=0;d<r;d++)f+=e[d](l,a,u,s)||"";return f}}function ov(e){return function(r){r.root||(r=r.return)&&e(r)}}var uv=function(r,l,a){for(var u=0,s=0;u=s,s=Wn(),u===38&&s===12&&(l[a]=1),!Yl(s);)dn();return Gl(r,tn)},sv=function(r,l){var a=-1,u=44;do switch(Yl(u)){case 0:u===38&&Wn()===12&&(l[a]=1),r[a]+=uv(tn-1,l,a);break;case 2:r[a]+=Vo(u);break;case 4:if(u===44){r[++a]=Wn()===58?"&\f":"",l[a]=r[a].length;break}default:r[a]+=Lo(u)}while(u=dn());return r},cv=function(r,l){return Jp(sv(Wp(r),l))},nh=new WeakMap,fv=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var l=r.value,a=r.parent,u=r.column===a.column&&r.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(r.props.length===1&&l.charCodeAt(0)!==58&&!nh.get(a))&&!u){nh.set(r,!0);for(var s=[],f=cv(l,s),d=a.props,m=0,h=0;m<f.length;m++)for(var g=0;g<d.length;g++,h++)r.props[h]=s[m]?f[m].replace(/&\f/g,d[g]):d[g]+" "+f[m]}}},dv=function(r){if(r.type==="decl"){var l=r.value;l.charCodeAt(0)===108&&l.charCodeAt(2)===98&&(r.return="",r.value="")}};function rh(e,r){switch(XS(e,r)){case 5103:return Ke+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ke+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ke+e+Bo+e+Pt+e+e;case 6828:case 4268:return Ke+e+Pt+e+e;case 6165:return Ke+e+Pt+"flex-"+e+e;case 5187:return Ke+e+Ze(e,/(\w+).+(:[^]+)/,Ke+"box-$1$2"+Pt+"flex-$1$2")+e;case 5443:return Ke+e+Pt+"flex-item-"+Ze(e,/flex-|-self/,"")+e;case 4675:return Ke+e+Pt+"flex-line-pack"+Ze(e,/align-content|flex-|-self/,"")+e;case 5548:return Ke+e+Pt+Ze(e,"shrink","negative")+e;case 5292:return Ke+e+Pt+Ze(e,"basis","preferred-size")+e;case 6060:return Ke+"box-"+Ze(e,"-grow","")+Ke+e+Pt+Ze(e,"grow","positive")+e;case 4554:return Ke+Ze(e,/([^-])(transform)/g,"$1"+Ke+"$2")+e;case 6187:return Ze(Ze(Ze(e,/(zoom-|grab)/,Ke+"$1"),/(image-set)/,Ke+"$1"),e,"")+e;case 5495:case 3959:return Ze(e,/(image-set\([^]*)/,Ke+"$1$`$1");case 4968:return Ze(Ze(e,/(.+:)(flex-)?(.*)/,Ke+"box-pack:$3"+Pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ke+e+e;case 4095:case 3583:case 4068:case 2532:return Ze(e,/(.+)-inline(.+)/,Ke+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Zn(e)-1-r>6)switch(qt(e,r+1)){case 109:if(qt(e,r+4)!==45)break;case 102:return Ze(e,/(.+:)(.+)-([^]+)/,"$1"+Ke+"$2-$3$1"+Bo+(qt(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Ys(e,"stretch")?rh(Ze(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(qt(e,r+1)!==115)break;case 6444:switch(qt(e,Zn(e)-3-(~Ys(e,"!important")&&10))){case 107:return Ze(e,":",":"+Ke)+e;case 101:return Ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ke+(qt(e,14)===45?"inline-":"")+"box$3$1"+Ke+"$2$3$1"+Pt+"$2box$3")+e}break;case 5936:switch(qt(e,r+11)){case 114:return Ke+e+Pt+Ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ke+e+Pt+Ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ke+e+Pt+Ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ke+e+Pt+e+e}return e}var pv=function(r,l,a,u){if(r.length>-1&&!r.return)switch(r.type){case Gs:r.return=rh(r.value,r.length);break;case Qp:return Vi([$l(r,{value:Ze(r.value,"@","@"+Ke)})],u);case $s:if(r.length)return KS(r.props,function(s){switch(QS(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vi([$l(r,{props:[Ze(s,/:(read-\w+)/,":"+Bo+"$1")]})],u);case"::placeholder":return Vi([$l(r,{props:[Ze(s,/:(plac\w+)/,":"+Ke+"input-$1")]}),$l(r,{props:[Ze(s,/:(plac\w+)/,":"+Bo+"$1")]}),$l(r,{props:[Ze(s,/:(plac\w+)/,Pt+"input-$1")]})],u)}return""})}},hv=[pv],mv=function(r){var l=r.key;if(l==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(T){var N=T.getAttribute("data-emotion");N.indexOf(" ")!==-1&&(document.head.appendChild(T),T.setAttribute("data-s",""))})}var u=r.stylisPlugins||hv,s={},f,d=[];f=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+l+' "]'),function(T){for(var N=T.getAttribute("data-emotion").split(" "),w=1;w<N.length;w++)s[N[w]]=!0;d.push(T)});var m,h=[fv,dv];{var g,y=[lv,ov(function(T){g.insert(T)})],v=av(h.concat(u,y)),S=function(N){return Vi(rv(N),v)};m=function(N,w,B,k){g=B,S(N?N+"{"+w.styles+"}":w.styles),k&&(R.inserted[w.name]=!0)}}var R={key:l,sheet:new $S({key:l,container:f,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:s,registered:{},insert:m};return R.sheet.hydrate(d),R},Xs={exports:{}},Je={};/** @license React v16.13.1
42
42
  * react-is.production.min.js
43
43
  *
44
44
  * Copyright (c) Facebook, Inc. and its affiliates.
45
45
  *
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
- */var Gh;function PS(){if(Gh)return Ze;Gh=1;var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,a=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,u=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,f=t?Symbol.for("react.provider"):60109,h=t?Symbol.for("react.context"):60110,m=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,g=t?Symbol.for("react.forward_ref"):60112,y=t?Symbol.for("react.suspense"):60113,x=t?Symbol.for("react.suspense_list"):60120,S=t?Symbol.for("react.memo"):60115,O=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,B=t?Symbol.for("react.fundamental"):60117,T=t?Symbol.for("react.responder"):60118,N=t?Symbol.for("react.scope"):60119;function A(R){if(typeof R=="object"&&R!==null){var M=R.$$typeof;switch(M){case r:switch(R=R.type,R){case m:case p:case i:case s:case u:case y:return R;default:switch(R=R&&R.$$typeof,R){case h:case g:case O:case S:case f:return R;default:return M}}case a:return M}}}function z(R){return A(R)===p}return Ze.AsyncMode=m,Ze.ConcurrentMode=p,Ze.ContextConsumer=h,Ze.ContextProvider=f,Ze.Element=r,Ze.ForwardRef=g,Ze.Fragment=i,Ze.Lazy=O,Ze.Memo=S,Ze.Portal=a,Ze.Profiler=s,Ze.StrictMode=u,Ze.Suspense=y,Ze.isAsyncMode=function(R){return z(R)||A(R)===m},Ze.isConcurrentMode=z,Ze.isContextConsumer=function(R){return A(R)===h},Ze.isContextProvider=function(R){return A(R)===f},Ze.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===r},Ze.isForwardRef=function(R){return A(R)===g},Ze.isFragment=function(R){return A(R)===i},Ze.isLazy=function(R){return A(R)===O},Ze.isMemo=function(R){return A(R)===S},Ze.isPortal=function(R){return A(R)===a},Ze.isProfiler=function(R){return A(R)===s},Ze.isStrictMode=function(R){return A(R)===u},Ze.isSuspense=function(R){return A(R)===y},Ze.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===i||R===p||R===s||R===u||R===y||R===x||typeof R=="object"&&R!==null&&(R.$$typeof===O||R.$$typeof===S||R.$$typeof===f||R.$$typeof===h||R.$$typeof===g||R.$$typeof===B||R.$$typeof===T||R.$$typeof===N||R.$$typeof===w)},Ze.typeOf=A,Ze}var Yh;function QS(){return Yh||(Yh=1,Ls.exports=PS()),Ls.exports}var Us,$h;function KS(){if($h)return Us;$h=1;var t=QS(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[t.ForwardRef]=i,s[t.Memo]=u;function f(O){return t.isMemo(O)?u:s[O.$$typeof]||r}var h=Object.defineProperty,m=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,x=Object.prototype;function S(O,w,B){if(typeof w!="string"){if(x){var T=y(w);T&&T!==x&&S(O,T,B)}var N=m(w);p&&(N=N.concat(p(w)));for(var A=f(O),z=f(w),R=0;R<N.length;++R){var M=N[R];if(!a[M]&&!(B&&B[M])&&!(z&&z[M])&&!(A&&A[M])){var I=g(w,M);try{h(O,M,I)}catch{}}}}return O}return Us=S,Us}KS();var ZS=!0;function JS(t,r,a){var i="";return a.split(" ").forEach(function(u){t[u]!==void 0?r.push(t[u]+";"):u&&(i+=u+" ")}),i}var Fh=function(r,a,i){var u=r.key+"-"+a.name;(i===!1||ZS===!1)&&r.registered[u]===void 0&&(r.registered[u]=a.styles)},Xh=function(r,a,i){Fh(r,a,i);var u=r.key+"-"+a.name;if(r.inserted[a.name]===void 0){var s=a;do r.insert(a===s?"."+u:"",s,r.sheet,!0),s=s.next;while(s!==void 0)}};function WS(t){for(var r=0,a,i=0,u=t.length;u>=4;++i,u-=4)a=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,r=(a&65535)*1540483477+((a>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(u){case 3:r^=(t.charCodeAt(i+2)&255)<<16;case 2:r^=(t.charCodeAt(i+1)&255)<<8;case 1:r^=t.charCodeAt(i)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var ev={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tv=/[A-Z]|^ms/g,nv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ph=function(r){return r.charCodeAt(1)===45},Qh=function(r){return r!=null&&typeof r!="boolean"},Hs=Dh(function(t){return Ph(t)?t:t.replace(tv,"-$&").toLowerCase()}),Kh=function(r,a){switch(r){case"animation":case"animationName":if(typeof a=="string")return a.replace(nv,function(i,u,s){return Gn={name:u,styles:s,next:Gn},u})}return ev[r]!==1&&!Ph(r)&&typeof a=="number"&&a!==0?a+"px":a};function Ia(t,r,a){if(a==null)return"";var i=a;if(i.__emotion_styles!==void 0)return i;switch(typeof a){case"boolean":return"";case"object":{var u=a;if(u.anim===1)return Gn={name:u.name,styles:u.styles,next:Gn},u.name;var s=a;if(s.styles!==void 0){var f=s.next;if(f!==void 0)for(;f!==void 0;)Gn={name:f.name,styles:f.styles,next:Gn},f=f.next;var h=s.styles+";";return h}return rv(t,r,a)}case"function":{if(t!==void 0){var m=Gn,p=a(t);return Gn=m,Ia(t,r,p)}break}}var g=a;if(r==null)return g;var y=r[g];return y!==void 0?y:g}function rv(t,r,a){var i="";if(Array.isArray(a))for(var u=0;u<a.length;u++)i+=Ia(t,r,a[u])+";";else for(var s in a){var f=a[s];if(typeof f!="object"){var h=f;r!=null&&r[h]!==void 0?i+=s+"{"+r[h]+"}":Qh(h)&&(i+=Hs(s)+":"+Kh(s,h)+";")}else if(Array.isArray(f)&&typeof f[0]=="string"&&(r==null||r[f[0]]===void 0))for(var m=0;m<f.length;m++)Qh(f[m])&&(i+=Hs(s)+":"+Kh(s,f[m])+";");else{var p=Ia(t,r,f);switch(s){case"animation":case"animationName":{i+=Hs(s)+":"+p+";";break}default:i+=s+"{"+p+"}"}}}return i}var Zh=/label:\s*([^\s;{]+)\s*(;|$)/g,Gn;function Do(t,r,a){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,u="";Gn=void 0;var s=t[0];if(s==null||s.raw===void 0)i=!1,u+=Ia(a,r,s);else{var f=s;u+=f[0]}for(var h=1;h<t.length;h++)if(u+=Ia(a,r,t[h]),i){var m=s;u+=m[h]}Zh.lastIndex=0;for(var p="",g;(g=Zh.exec(u))!==null;)p+="-"+g[1];var y=WS(u)+p;return{name:y,styles:u,next:Gn}}var lv=function(r){return r()},Jh=Th.useInsertionEffect?Th.useInsertionEffect:!1,av=Jh||lv,Wh=Jh||D.useLayoutEffect,ep=D.createContext(typeof HTMLElement<"u"?XS({key:"css"}):null);ep.Provider;var tp=function(r){return D.forwardRef(function(a,i){var u=D.useContext(ep);return r(a,u,i)})},qa=D.createContext({}),iv=function(){return D.useContext(qa)},ov=tp(function(t,r){var a=t.styles,i=Do([a],void 0,D.useContext(qa)),u=D.useRef();return Wh(function(){var s=r.key+"-global",f=new r.sheet.constructor({key:s,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),h=!1,m=document.querySelector('style[data-emotion="'+s+" "+i.name+'"]');return r.sheet.tags.length&&(f.before=r.sheet.tags[0]),m!==null&&(h=!0,m.setAttribute("data-emotion",s),f.hydrate([m])),u.current=[f,h],function(){f.flush()}},[r]),Wh(function(){var s=u.current,f=s[0],h=s[1];if(h){s[1]=!1;return}if(i.next!==void 0&&Xh(r,i.next,!0),f.tags.length){var m=f.tags[f.tags.length-1].nextElementSibling;f.before=m,f.flush()}r.insert("",i,f,!1)},[r,i.name]),null});function np(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return Do(r)}var uv=bS,sv=function(r){return r!=="theme"},rp=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?uv:sv},lp=function(r,a,i){var u;if(a){var s=a.shouldForwardProp;u=r.__emotion_forwardProp&&s?function(f){return r.__emotion_forwardProp(f)&&s(f)}:s}return typeof u!="function"&&i&&(u=r.__emotion_forwardProp),u},cv=function(r){var a=r.cache,i=r.serialized,u=r.isStringTag;return Fh(a,i,u),av(function(){return Xh(a,i,u)}),null},fv=function t(r,a){var i=r.__emotion_real===r,u=i&&r.__emotion_base||r,s,f;a!==void 0&&(s=a.label,f=a.target);var h=lp(r,a,i),m=h||rp(u),p=!m("as");return function(){var g=arguments,y=i&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(s!==void 0&&y.push("label:"+s+";"),g[0]==null||g[0].raw===void 0)y.push.apply(y,g);else{y.push(g[0][0]);for(var x=g.length,S=1;S<x;S++)y.push(g[S],g[0][S])}var O=tp(function(w,B,T){var N=p&&w.as||u,A="",z=[],R=w;if(w.theme==null){R={};for(var M in w)R[M]=w[M];R.theme=D.useContext(qa)}typeof w.className=="string"?A=JS(B.registered,z,w.className):w.className!=null&&(A=w.className+" ");var I=Do(y.concat(z),B.registered,R);A+=B.key+"-"+I.name,f!==void 0&&(A+=" "+f);var te=p&&h===void 0?rp(N):m,G={};for(var E in w)p&&E==="as"||te(E)&&(G[E]=w[E]);return G.className=A,T&&(G.ref=T),D.createElement(D.Fragment,null,D.createElement(cv,{cache:B,serialized:I,isStringTag:typeof N=="string"}),D.createElement(N,G))});return O.displayName=s!==void 0?s:"Styled("+(typeof u=="string"?u:u.displayName||u.name||"Component")+")",O.defaultProps=r.defaultProps,O.__emotion_real=O,O.__emotion_base=u,O.__emotion_styles=y,O.__emotion_forwardProp=h,Object.defineProperty(O,"toString",{value:function(){return"."+f}}),O.withComponent=function(w,B){return t(w,_s({},a,B,{shouldForwardProp:lp(O,B,!0)})).apply(void 0,y)},O}},dv=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],rt=fv.bind();dv.forEach(function(t){rt[t]=rt(t)});function wr(t,...r){const a=new URL(`https://mui.com/production-error/?code=${t}`);return r.forEach(i=>a.searchParams.append("args[]",i)),`Minified MUI error #${t}; visit ${a} for the full message.`}function ap(t){var r,a,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var u=t.length;for(r=0;r<u;r++)t[r]&&(a=ap(t[r]))&&(i&&(i+=" "),i+=a)}else for(a in t)t[a]&&(i&&(i+=" "),i+=a);return i}function on(){for(var t,r,a=0,i="",u=arguments.length;a<u;a++)(t=arguments[a])&&(r=ap(t))&&(i&&(i+=" "),i+=r);return i}function Ll(t,r,a=void 0){const i={};for(const u in t){const s=t[u];let f="",h=!0;for(let m=0;m<s.length;m+=1){const p=s[m];p&&(f+=(h===!0?"":" ")+r(p),h=!1,a&&a[p]&&(f+=" "+a[p]))}i[u]=f}return i}function Yn(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function ip(t){if(!Yn(t))return t;const r={};return Object.keys(t).forEach(a=>{r[a]=ip(t[a])}),r}function Kt(t,r,a={clone:!0}){const i=a.clone?{...t}:t;return Yn(t)&&Yn(r)&&Object.keys(r).forEach(u=>{Yn(r[u])&&Object.prototype.hasOwnProperty.call(t,u)&&Yn(t[u])?i[u]=Kt(t[u],r[u],a):a.clone?i[u]=Yn(r[u])?ip(r[u]):r[u]:i[u]=r[u]}),i}function bn(t){if(typeof t!="string")throw new Error(wr(7));return t.charAt(0).toUpperCase()+t.slice(1)}function op(...t){return t.reduce((r,a)=>a==null?r:function(...u){r.apply(this,u),a.apply(this,u)},()=>{})}function up(t,r=166){let a;function i(...u){const s=()=>{t.apply(this,u)};clearTimeout(a),a=setTimeout(s,r)}return i.clear=()=>{clearTimeout(a)},i}function tl(t){return t&&t.ownerDocument||document}function Ar(t){return tl(t).defaultView||window}function js(t,r){typeof t=="function"?t(r):t&&(t.current=r)}const Ul=typeof window<"u"?D.useLayoutEffect:D.useEffect;function sp(t){const r=D.useRef(t);return Ul(()=>{r.current=t}),D.useRef((...a)=>(0,r.current)(...a)).current}function nr(...t){return D.useMemo(()=>t.every(r=>r==null)?null:r=>{t.forEach(a=>{js(a,r)})},t)}function hv(t=window){const r=t.document.documentElement.clientWidth;return t.innerWidth-r}function Vs(t,r){const a={...r};for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)){const u=i;if(u==="components"||u==="slots")a[u]={...t[u],...a[u]};else if(u==="componentsProps"||u==="slotProps"){const s=t[u],f=r[u];if(!f)a[u]=s||{};else if(!s)a[u]=f;else{a[u]={...f};for(const h in s)if(Object.prototype.hasOwnProperty.call(s,h)){const m=h;a[u][m]=Vs(s[m],f[m])}}}else a[u]===void 0&&(a[u]=t[u])}return a}const cp=t=>t,pv=(()=>{let t=cp;return{configure(r){t=r},generate(r){return t(r)},reset(){t=cp}}})(),mv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function nl(t,r,a="Mui"){const i=mv[r];return i?`${a}-${i}`:`${pv.generate(t)}-${r}`}function Hl(t,r,a="Mui"){const i={};return r.forEach(u=>{i[u]=nl(t,u,a)}),i}function gv(t,r=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(t,a))}function yv(t){return typeof t=="string"}function bv(t,r,a){return t===void 0||yv(t)?r:{...r,ownerState:{...r.ownerState,...a}}}function fp(t,r=[]){if(t===void 0)return{};const a={};return Object.keys(t).filter(i=>i.match(/^on[A-Z]/)&&typeof t[i]=="function"&&!r.includes(i)).forEach(i=>{a[i]=t[i]}),a}function dp(t){if(t===void 0)return{};const r={};return Object.keys(t).filter(a=>!(a.match(/^on[A-Z]/)&&typeof t[a]=="function")).forEach(a=>{r[a]=t[a]}),r}function Sv(t){const{getSlotProps:r,additionalProps:a,externalSlotProps:i,externalForwardedProps:u,className:s}=t;if(!r){const S=on(a==null?void 0:a.className,s,u==null?void 0:u.className,i==null?void 0:i.className),O={...a==null?void 0:a.style,...u==null?void 0:u.style,...i==null?void 0:i.style},w={...a,...u,...i};return S.length>0&&(w.className=S),Object.keys(O).length>0&&(w.style=O),{props:w,internalRef:void 0}}const f=fp({...u,...i}),h=dp(i),m=dp(u),p=r(f),g=on(p==null?void 0:p.className,a==null?void 0:a.className,s,u==null?void 0:u.className,i==null?void 0:i.className),y={...p==null?void 0:p.style,...a==null?void 0:a.style,...u==null?void 0:u.style,...i==null?void 0:i.style},x={...p,...a,...m,...h};return g.length>0&&(x.className=g),Object.keys(y).length>0&&(x.style=y),{props:x,internalRef:p.ref}}function vv(t,r,a){return typeof t=="function"?t(r,a):t}function No(t){var r;return parseInt(D.version,10)>=19?((r=t==null?void 0:t.props)==null?void 0:r.ref)||null:(t==null?void 0:t.ref)||null}var Is={exports:{}},Ga={};/**
48
+ */var ih;function gv(){if(ih)return Je;ih=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,l=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,u=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,S=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,N=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,B=e?Symbol.for("react.scope"):60119;function k(A){if(typeof A=="object"&&A!==null){var _=A.$$typeof;switch(_){case r:switch(A=A.type,A){case m:case h:case a:case s:case u:case y:return A;default:switch(A=A&&A.$$typeof,A){case d:case g:case R:case S:case f:return A;default:return _}}case l:return _}}}function z(A){return k(A)===h}return Je.AsyncMode=m,Je.ConcurrentMode=h,Je.ContextConsumer=d,Je.ContextProvider=f,Je.Element=r,Je.ForwardRef=g,Je.Fragment=a,Je.Lazy=R,Je.Memo=S,Je.Portal=l,Je.Profiler=s,Je.StrictMode=u,Je.Suspense=y,Je.isAsyncMode=function(A){return z(A)||k(A)===m},Je.isConcurrentMode=z,Je.isContextConsumer=function(A){return k(A)===d},Je.isContextProvider=function(A){return k(A)===f},Je.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===r},Je.isForwardRef=function(A){return k(A)===g},Je.isFragment=function(A){return k(A)===a},Je.isLazy=function(A){return k(A)===R},Je.isMemo=function(A){return k(A)===S},Je.isPortal=function(A){return k(A)===l},Je.isProfiler=function(A){return k(A)===s},Je.isStrictMode=function(A){return k(A)===u},Je.isSuspense=function(A){return k(A)===y},Je.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===a||A===h||A===s||A===u||A===y||A===v||typeof A=="object"&&A!==null&&(A.$$typeof===R||A.$$typeof===S||A.$$typeof===f||A.$$typeof===d||A.$$typeof===g||A.$$typeof===N||A.$$typeof===w||A.$$typeof===B||A.$$typeof===T)},Je.typeOf=k,Je}var lh;function yv(){return lh||(lh=1,Xs.exports=gv()),Xs.exports}var Qs,ah;function bv(){if(ah)return Qs;ah=1;var e=yv(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=a,s[e.Memo]=u;function f(R){return e.isMemo(R)?u:s[R.$$typeof]||r}var d=Object.defineProperty,m=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,v=Object.prototype;function S(R,T,N){if(typeof T!="string"){if(v){var w=y(T);w&&w!==v&&S(R,w,N)}var B=m(T);h&&(B=B.concat(h(T)));for(var k=f(R),z=f(T),A=0;A<B.length;++A){var _=B[A];if(!l[_]&&!(N&&N[_])&&!(z&&z[_])&&!(k&&k[_])){var H=g(T,_);try{d(R,_,H)}catch{}}}}return R}return Qs=S,Qs}bv();var Sv=!0;function vv(e,r,l){var a="";return l.split(" ").forEach(function(u){e[u]!==void 0?r.push(e[u]+";"):u&&(a+=u+" ")}),a}var oh=function(r,l,a){var u=r.key+"-"+l.name;(a===!1||Sv===!1)&&r.registered[u]===void 0&&(r.registered[u]=l.styles)},uh=function(r,l,a){oh(r,l,a);var u=r.key+"-"+l.name;if(r.inserted[l.name]===void 0){var s=l;do r.insert(l===s?"."+u:"",s,r.sheet,!0),s=s.next;while(s!==void 0)}};function xv(e){for(var r=0,l,a=0,u=e.length;u>=4;++a,u-=4)l=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,l=(l&65535)*1540483477+((l>>>16)*59797<<16),l^=l>>>24,r=(l&65535)*1540483477+((l>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(u){case 3:r^=(e.charCodeAt(a+2)&255)<<16;case 2:r^=(e.charCodeAt(a+1)&255)<<8;case 1:r^=e.charCodeAt(a)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var Ev={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Cv=/[A-Z]|^ms/g,Tv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sh=function(r){return r.charCodeAt(1)===45},ch=function(r){return r!=null&&typeof r!="boolean"},Ks=Pp(function(e){return sh(e)?e:e.replace(Cv,"-$&").toLowerCase()}),fh=function(r,l){switch(r){case"animation":case"animationName":if(typeof l=="string")return l.replace(Tv,function(a,u,s){return Jn={name:u,styles:s,next:Jn},u})}return Ev[r]!==1&&!sh(r)&&typeof l=="number"&&l!==0?l+"px":l};function Fl(e,r,l){if(l==null)return"";var a=l;if(a.__emotion_styles!==void 0)return a;switch(typeof l){case"boolean":return"";case"object":{var u=l;if(u.anim===1)return Jn={name:u.name,styles:u.styles,next:Jn},u.name;var s=l;if(s.styles!==void 0){var f=s.next;if(f!==void 0)for(;f!==void 0;)Jn={name:f.name,styles:f.styles,next:Jn},f=f.next;var d=s.styles+";";return d}return wv(e,r,l)}case"function":{if(e!==void 0){var m=Jn,h=l(e);return Jn=m,Fl(e,r,h)}break}}var g=l;if(r==null)return g;var y=r[g];return y!==void 0?y:g}function wv(e,r,l){var a="";if(Array.isArray(l))for(var u=0;u<l.length;u++)a+=Fl(e,r,l[u])+";";else for(var s in l){var f=l[s];if(typeof f!="object"){var d=f;r!=null&&r[d]!==void 0?a+=s+"{"+r[d]+"}":ch(d)&&(a+=Ks(s)+":"+fh(s,d)+";")}else if(Array.isArray(f)&&typeof f[0]=="string"&&(r==null||r[f[0]]===void 0))for(var m=0;m<f.length;m++)ch(f[m])&&(a+=Ks(s)+":"+fh(s,f[m])+";");else{var h=Fl(e,r,f);switch(s){case"animation":case"animationName":{a+=Ks(s)+":"+h+";";break}default:a+=s+"{"+h+"}"}}}return a}var dh=/label:\s*([^\s;{]+)\s*(;|$)/g,Jn;function $o(e,r,l){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var a=!0,u="";Jn=void 0;var s=e[0];if(s==null||s.raw===void 0)a=!1,u+=Fl(l,r,s);else{var f=s;u+=f[0]}for(var d=1;d<e.length;d++)if(u+=Fl(l,r,e[d]),a){var m=s;u+=m[d]}dh.lastIndex=0;for(var h="",g;(g=dh.exec(u))!==null;)h+="-"+g[1];var y=xv(u)+h;return{name:y,styles:u,next:Jn}}var Av=function(r){return r()},ph=Hp.useInsertionEffect?Hp.useInsertionEffect:!1,kv=ph||Av,hh=ph||M.useLayoutEffect,mh=M.createContext(typeof HTMLElement<"u"?mv({key:"css"}):null);mh.Provider;var gh=function(r){return M.forwardRef(function(l,a){var u=M.useContext(mh);return r(l,u,a)})},Pl=M.createContext({}),Rv=function(){return M.useContext(Pl)},Ov=gh(function(e,r){var l=e.styles,a=$o([l],void 0,M.useContext(Pl)),u=M.useRef();return hh(function(){var s=r.key+"-global",f=new r.sheet.constructor({key:s,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),d=!1,m=document.querySelector('style[data-emotion="'+s+" "+a.name+'"]');return r.sheet.tags.length&&(f.before=r.sheet.tags[0]),m!==null&&(d=!0,m.setAttribute("data-emotion",s),f.hydrate([m])),u.current=[f,d],function(){f.flush()}},[r]),hh(function(){var s=u.current,f=s[0],d=s[1];if(d){s[1]=!1;return}if(a.next!==void 0&&uh(r,a.next,!0),f.tags.length){var m=f.tags[f.tags.length-1].nextElementSibling;f.before=m,f.flush()}r.insert("",a,f,!1)},[r,a.name]),null});function Zs(){for(var e=arguments.length,r=new Array(e),l=0;l<e;l++)r[l]=arguments[l];return $o(r)}var Ws=function(){var r=Zs.apply(void 0,arguments),l="animation-"+r.name;return{name:l,styles:"@keyframes "+l+"{"+r.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Mv=IS,_v=function(r){return r!=="theme"},yh=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Mv:_v},bh=function(r,l,a){var u;if(l){var s=l.shouldForwardProp;u=r.__emotion_forwardProp&&s?function(f){return r.__emotion_forwardProp(f)&&s(f)}:s}return typeof u!="function"&&a&&(u=r.__emotion_forwardProp),u},Dv=function(r){var l=r.cache,a=r.serialized,u=r.isStringTag;return oh(l,a,u),kv(function(){return uh(l,a,u)}),null},zv=function e(r,l){var a=r.__emotion_real===r,u=a&&r.__emotion_base||r,s,f;l!==void 0&&(s=l.label,f=l.target);var d=bh(r,l,a),m=d||yh(u),h=!m("as");return function(){var g=arguments,y=a&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(s!==void 0&&y.push("label:"+s+";"),g[0]==null||g[0].raw===void 0)y.push.apply(y,g);else{y.push(g[0][0]);for(var v=g.length,S=1;S<v;S++)y.push(g[S],g[0][S])}var R=gh(function(T,N,w){var B=h&&T.as||u,k="",z=[],A=T;if(T.theme==null){A={};for(var _ in T)A[_]=T[_];A.theme=M.useContext(Pl)}typeof T.className=="string"?k=vv(N.registered,z,T.className):T.className!=null&&(k=T.className+" ");var H=$o(y.concat(z),N.registered,A);k+=N.key+"-"+H.name,f!==void 0&&(k+=" "+f);var ne=h&&d===void 0?yh(B):m,V={};for(var E in T)h&&E==="as"||ne(E)&&(V[E]=T[E]);return V.className=k,w&&(V.ref=w),M.createElement(M.Fragment,null,M.createElement(Dv,{cache:N,serialized:H,isStringTag:typeof B=="string"}),M.createElement(B,V))});return R.displayName=s!==void 0?s:"Styled("+(typeof u=="string"?u:u.displayName||u.name||"Component")+")",R.defaultProps=r.defaultProps,R.__emotion_real=R,R.__emotion_base=u,R.__emotion_styles=y,R.__emotion_forwardProp=d,Object.defineProperty(R,"toString",{value:function(){return"."+f}}),R.withComponent=function(T,N){return e(T,No({},l,N,{shouldForwardProp:bh(R,N,!0)})).apply(void 0,y)},R}},Nv=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],et=zv.bind();Nv.forEach(function(e){et[e]=et(e)});function Nr(e,...r){const l=new URL(`https://mui.com/production-error/?code=${e}`);return r.forEach(a=>l.searchParams.append("args[]",a)),`Minified MUI error #${e}; visit ${l} for the full message.`}function Sh(e){var r,l,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var u=e.length;for(r=0;r<u;r++)e[r]&&(l=Sh(e[r]))&&(a&&(a+=" "),a+=l)}else for(l in e)e[l]&&(a&&(a+=" "),a+=l);return a}function at(){for(var e,r,l=0,a="",u=arguments.length;l<u;l++)(e=arguments[l])&&(r=Sh(e))&&(a&&(a+=" "),a+=r);return a}function er(e,r,l=void 0){const a={};for(const u in e){const s=e[u];let f="",d=!0;for(let m=0;m<s.length;m+=1){const h=s[m];h&&(f+=(d===!0?"":" ")+r(h),d=!1,l&&l[h]&&(f+=" "+l[h]))}a[u]=f}return a}function tr(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function vh(e){if(!tr(e))return e;const r={};return Object.keys(e).forEach(l=>{r[l]=vh(e[l])}),r}function nn(e,r,l={clone:!0}){const a=l.clone?{...e}:e;return tr(e)&&tr(r)&&Object.keys(r).forEach(u=>{tr(r[u])&&Object.prototype.hasOwnProperty.call(e,u)&&tr(e[u])?a[u]=nn(e[u],r[u],l):l.clone?a[u]=tr(r[u])?vh(r[u]):r[u]:a[u]=r[u]}),a}function dt(e){if(typeof e!="string")throw new Error(Nr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function xh(...e){return e.reduce((r,l)=>l==null?r:function(...u){r.apply(this,u),l.apply(this,u)},()=>{})}function Eh(e,r=166){let l;function a(...u){const s=()=>{e.apply(this,u)};clearTimeout(l),l=setTimeout(s,r)}return a.clear=()=>{clearTimeout(l)},a}function si(e){return e&&e.ownerDocument||document}function Br(e){return si(e).defaultView||window}function Js(e,r){typeof e=="function"?e(r):e&&(e.current=r)}const qi=typeof window<"u"?M.useLayoutEffect:M.useEffect;function $i(e){const r=M.useRef(e);return qi(()=>{r.current=e}),M.useRef((...l)=>(0,r.current)(...l)).current}function Vn(...e){return M.useMemo(()=>e.every(r=>r==null)?null:r=>{e.forEach(l=>{Js(l,r)})},e)}const Ch={};function Th(e,r){const l=M.useRef(Ch);return l.current===Ch&&(l.current=e(r)),l}const Bv=[];function Lv(e){M.useEffect(e,Bv)}class ec{constructor(){Do(this,"currentId",null);Do(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Do(this,"disposeEffect",()=>this.clear)}static create(){return new ec}start(r,l){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,l()},r)}}function Uv(){const e=Th(ec.create).current;return Lv(e.disposeEffect),e}function wh(e){try{return e.matches(":focus-visible")}catch{}return!1}function jv(e=window){const r=e.document.documentElement.clientWidth;return e.innerWidth-r}function tc(e,r){const l={...r};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const u=a;if(u==="components"||u==="slots")l[u]={...e[u],...l[u]};else if(u==="componentsProps"||u==="slotProps"){const s=e[u],f=r[u];if(!f)l[u]=s||{};else if(!s)l[u]=f;else{l[u]={...f};for(const d in s)if(Object.prototype.hasOwnProperty.call(s,d)){const m=d;l[u][m]=tc(s[m],f[m])}}}else l[u]===void 0&&(l[u]=e[u])}return l}const Ah=e=>e,Hv=(()=>{let e=Ah;return{configure(r){e=r},generate(r){return e(r)},reset(){e=Ah}}})(),Iv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function qn(e,r,l="Mui"){const a=Iv[r];return a?`${l}-${a}`:`${Hv.generate(e)}-${r}`}function $n(e,r,l="Mui"){const a={};return r.forEach(u=>{a[u]=qn(e,u,l)}),a}function Vv(e,r=Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(e,l))}function qv(e){return typeof e=="string"}function $v(e,r,l){return e===void 0||qv(e)?r:{...r,ownerState:{...r.ownerState,...l}}}function kh(e,r=[]){if(e===void 0)return{};const l={};return Object.keys(e).filter(a=>a.match(/^on[A-Z]/)&&typeof e[a]=="function"&&!r.includes(a)).forEach(a=>{l[a]=e[a]}),l}function Rh(e){if(e===void 0)return{};const r={};return Object.keys(e).filter(l=>!(l.match(/^on[A-Z]/)&&typeof e[l]=="function")).forEach(l=>{r[l]=e[l]}),r}function Gv(e){const{getSlotProps:r,additionalProps:l,externalSlotProps:a,externalForwardedProps:u,className:s}=e;if(!r){const S=at(l==null?void 0:l.className,s,u==null?void 0:u.className,a==null?void 0:a.className),R={...l==null?void 0:l.style,...u==null?void 0:u.style,...a==null?void 0:a.style},T={...l,...u,...a};return S.length>0&&(T.className=S),Object.keys(R).length>0&&(T.style=R),{props:T,internalRef:void 0}}const f=kh({...u,...a}),d=Rh(a),m=Rh(u),h=r(f),g=at(h==null?void 0:h.className,l==null?void 0:l.className,s,u==null?void 0:u.className,a==null?void 0:a.className),y={...h==null?void 0:h.style,...l==null?void 0:l.style,...u==null?void 0:u.style,...a==null?void 0:a.style},v={...h,...l,...m,...d};return g.length>0&&(v.className=g),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:h.ref}}function Yv(e,r,l){return typeof e=="function"?e(r,l):e}function Go(e){var r;return parseInt(M.version,10)>=19?((r=e==null?void 0:e.props)==null?void 0:r.ref)||null:(e==null?void 0:e.ref)||null}var nc={exports:{}},Xl={};/**
49
49
  * @license React
50
50
  * react-jsx-runtime.production.js
51
51
  *
@@ -53,22 +53,22 @@ Error generating stack: `+l.message+`
53
53
  *
54
54
  * This source code is licensed under the MIT license found in the
55
55
  * LICENSE file in the root directory of this source tree.
56
- */var hp;function xv(){if(hp)return Ga;hp=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(i,u,s){var f=null;if(s!==void 0&&(f=""+s),u.key!==void 0&&(f=""+u.key),"key"in u){s={};for(var h in u)h!=="key"&&(s[h]=u[h])}else s=u;return u=s.ref,{$$typeof:t,type:i,key:f,ref:u!==void 0?u:null,props:s}}return Ga.Fragment=r,Ga.jsx=a,Ga.jsxs=a,Ga}var pp;function Ev(){return pp||(pp=1,Is.exports=xv()),Is.exports}var ve=Ev();function zo(t){return parseInt(t,10)||0}const Cv={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Tv(t){return t==null||Object.keys(t).length===0||t.outerHeightStyle===0&&!t.overflowing}const wv=D.forwardRef(function(r,a){const{onChange:i,maxRows:u,minRows:s=1,style:f,value:h,...m}=r,{current:p}=D.useRef(h!=null),g=D.useRef(null),y=nr(a,g),x=D.useRef(null),S=D.useRef(null),O=D.useCallback(()=>{const T=g.current,A=Ar(T).getComputedStyle(T);if(A.width==="0px")return{outerHeightStyle:0,overflowing:!1};const z=S.current;z.style.width=A.width,z.value=T.value||r.placeholder||"x",z.value.slice(-1)===`
57
- `&&(z.value+=" ");const R=A.boxSizing,M=zo(A.paddingBottom)+zo(A.paddingTop),I=zo(A.borderBottomWidth)+zo(A.borderTopWidth),te=z.scrollHeight;z.value="x";const G=z.scrollHeight;let E=te;s&&(E=Math.max(Number(s)*G,E)),u&&(E=Math.min(Number(u)*G,E)),E=Math.max(E,G);const j=E+(R==="border-box"?M+I:0),$=Math.abs(E-te)<=1;return{outerHeightStyle:j,overflowing:$}},[u,s,r.placeholder]),w=D.useCallback(()=>{const T=O();if(Tv(T))return;const N=T.outerHeightStyle,A=g.current;x.current!==N&&(x.current=N,A.style.height=`${N}px`),A.style.overflow=T.overflowing?"hidden":""},[O]);Ul(()=>{const T=()=>{w()};let N;const A=up(T),z=g.current,R=Ar(z);R.addEventListener("resize",A);let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(T),M.observe(z)),()=>{A.clear(),cancelAnimationFrame(N),R.removeEventListener("resize",A),M&&M.disconnect()}},[O,w]),Ul(()=>{w()});const B=T=>{p||w(),i&&i(T)};return ve.jsxs(D.Fragment,{children:[ve.jsx("textarea",{value:h,onChange:B,ref:y,rows:s,style:f,...m}),ve.jsx("textarea",{"aria-hidden":!0,className:r.className,readOnly:!0,ref:S,tabIndex:-1,style:{...Cv.shadow,...f,paddingTop:0,paddingBottom:0}})]})});function mp(t){return typeof t=="string"}function Av({props:t,states:r,muiFormControl:a}){return r.reduce((i,u)=>(i[u]=t[u],a&&typeof t[u]>"u"&&(i[u]=a[u]),i),{})}const gp=D.createContext(void 0);function kv(){return D.useContext(gp)}function Ya(t,r){return r?Kt(t,r,{clone:!1}):t}function Rv(t,r){if(!t.containerQueries)return r;const a=Object.keys(r).filter(i=>i.startsWith("@container")).sort((i,u)=>{var f,h;const s=/min-width:\s*([0-9.]+)/;return+(((f=i.match(s))==null?void 0:f[1])||0)-+(((h=u.match(s))==null?void 0:h[1])||0)});return a.length?a.reduce((i,u)=>{const s=r[u];return delete i[u],i[u]=s,i},{...r}):r}function Ov(t,r){return r==="@"||r.startsWith("@")&&(t.some(a=>r.startsWith(`@${a}`))||!!r.match(/^@\d/))}function _v(t,r){const a=r.match(/^@([^/]+)?\/?(.+)?$/);if(!a)return null;const[,i,u]=a,s=Number.isNaN(+i)?i||0:+i;return t.containerQueries(u).up(s)}function Mv(t){const r=(s,f)=>s.replace("@media",f?`@container ${f}`:"@container");function a(s,f){s.up=(...h)=>r(t.breakpoints.up(...h),f),s.down=(...h)=>r(t.breakpoints.down(...h),f),s.between=(...h)=>r(t.breakpoints.between(...h),f),s.only=(...h)=>r(t.breakpoints.only(...h),f),s.not=(...h)=>{const m=r(t.breakpoints.not(...h),f);return m.includes("not all and")?m.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):m}}const i={},u=s=>(a(i,s),i);return a(u),{...t,containerQueries:u}}const Bo={xs:0,sm:600,md:900,lg:1200,xl:1536},yp={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Bo[t]}px)`},Dv={containerQueries:t=>({up:r=>{let a=typeof r=="number"?r:Bo[r]||r;return typeof a=="number"&&(a=`${a}px`),t?`@container ${t} (min-width:${a})`:`@container (min-width:${a})`}})};function rr(t,r,a){const i=t.theme||{};if(Array.isArray(r)){const s=i.breakpoints||yp;return r.reduce((f,h,m)=>(f[s.up(s.keys[m])]=a(r[m]),f),{})}if(typeof r=="object"){const s=i.breakpoints||yp;return Object.keys(r).reduce((f,h)=>{if(Ov(s.keys,h)){const m=_v(i.containerQueries?i:Dv,h);m&&(f[m]=a(r[h],h))}else if(Object.keys(s.values||Bo).includes(h)){const m=s.up(h);f[m]=a(r[h],h)}else{const m=h;f[m]=r[m]}return f},{})}return a(r)}function Nv(t={}){var a;return((a=t.keys)==null?void 0:a.reduce((i,u)=>{const s=t.up(u);return i[s]={},i},{}))||{}}function zv(t,r){return t.reduce((a,i)=>{const u=a[i];return(!u||Object.keys(u).length===0)&&delete a[i],a},r)}function Lo(t,r,a=!0){if(!r||typeof r!="string")return null;if(t&&t.vars&&a){const i=`vars.${r}`.split(".").reduce((u,s)=>u&&u[s]?u[s]:null,t);if(i!=null)return i}return r.split(".").reduce((i,u)=>i&&i[u]!=null?i[u]:null,t)}function Uo(t,r,a,i=a){let u;return typeof t=="function"?u=t(a):Array.isArray(t)?u=t[a]||i:u=Lo(t,a)||i,r&&(u=r(u,i,t)),u}function St(t){const{prop:r,cssProperty:a=t.prop,themeKey:i,transform:u}=t,s=f=>{if(f[r]==null)return null;const h=f[r],m=f.theme,p=Lo(m,i)||{};return rr(f,h,y=>{let x=Uo(p,u,y);return y===x&&typeof y=="string"&&(x=Uo(p,u,`${r}${y==="default"?"":bn(y)}`,y)),a===!1?x:{[a]:x}})};return s.propTypes={},s.filterProps=[r],s}function Bv(t){const r={};return a=>(r[a]===void 0&&(r[a]=t(a)),r[a])}const Lv={m:"margin",p:"padding"},Uv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Hv=Bv(t=>{if(t.length>2)if(bp[t])t=bp[t];else return[t];const[r,a]=t.split(""),i=Lv[r],u=Uv[a]||"";return Array.isArray(u)?u.map(s=>i+s):[i+u]}),qs=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Gs=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...qs,...Gs];function $a(t,r,a,i){const u=Lo(t,r,!0)??a;return typeof u=="number"||typeof u=="string"?s=>typeof s=="string"?s:typeof u=="string"?`calc(${s} * ${u})`:u*s:Array.isArray(u)?s=>{if(typeof s=="string")return s;const f=Math.abs(s),h=u[f];return s>=0?h:typeof h=="number"?-h:`-${h}`}:typeof u=="function"?u:()=>{}}function Ys(t){return $a(t,"spacing",8)}function Fa(t,r){return typeof r=="string"||r==null?r:t(r)}function jv(t,r){return a=>t.reduce((i,u)=>(i[u]=Fa(r,a),i),{})}function Vv(t,r,a,i){if(!r.includes(a))return null;const u=Hv(a),s=jv(u,i),f=t[a];return rr(t,f,s)}function Sp(t,r){const a=Ys(t.theme);return Object.keys(t).map(i=>Vv(t,r,i,a)).reduce(Ya,{})}function dt(t){return Sp(t,qs)}dt.propTypes={},dt.filterProps=qs;function ht(t){return Sp(t,Gs)}ht.propTypes={},ht.filterProps=Gs;function Ho(...t){const r=t.reduce((i,u)=>(u.filterProps.forEach(s=>{i[s]=u}),i),{}),a=i=>Object.keys(i).reduce((u,s)=>r[s]?Ya(u,r[s](i)):u,{});return a.propTypes={},a.filterProps=t.reduce((i,u)=>i.concat(u.filterProps),[]),a}function Sn(t){return typeof t!="number"?t:`${t}px solid`}function vn(t,r){return St({prop:t,themeKey:"borders",transform:r})}const Iv=vn("border",Sn),qv=vn("borderTop",Sn),Gv=vn("borderRight",Sn),Yv=vn("borderBottom",Sn),$v=vn("borderLeft",Sn),Fv=vn("borderColor"),Xv=vn("borderTopColor"),Pv=vn("borderRightColor"),Qv=vn("borderBottomColor"),Kv=vn("borderLeftColor"),Zv=vn("outline",Sn),Jv=vn("outlineColor"),jo=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const r=$a(t.theme,"shape.borderRadius",4),a=i=>({borderRadius:Fa(r,i)});return rr(t,t.borderRadius,a)}return null};jo.propTypes={},jo.filterProps=["borderRadius"],Ho(Iv,qv,Gv,Yv,$v,Fv,Xv,Pv,Qv,Kv,jo,Zv,Jv);const Vo=t=>{if(t.gap!==void 0&&t.gap!==null){const r=$a(t.theme,"spacing",8),a=i=>({gap:Fa(r,i)});return rr(t,t.gap,a)}return null};Vo.propTypes={},Vo.filterProps=["gap"];const Io=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const r=$a(t.theme,"spacing",8),a=i=>({columnGap:Fa(r,i)});return rr(t,t.columnGap,a)}return null};Io.propTypes={},Io.filterProps=["columnGap"];const qo=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const r=$a(t.theme,"spacing",8),a=i=>({rowGap:Fa(r,i)});return rr(t,t.rowGap,a)}return null};qo.propTypes={},qo.filterProps=["rowGap"];const Wv=St({prop:"gridColumn"}),ex=St({prop:"gridRow"}),tx=St({prop:"gridAutoFlow"}),nx=St({prop:"gridAutoColumns"}),rx=St({prop:"gridAutoRows"}),lx=St({prop:"gridTemplateColumns"}),ax=St({prop:"gridTemplateRows"}),ix=St({prop:"gridTemplateAreas"}),ox=St({prop:"gridArea"});Ho(Vo,Io,qo,Wv,ex,tx,nx,rx,lx,ax,ix,ox);function jl(t,r){return r==="grey"?r:t}const ux=St({prop:"color",themeKey:"palette",transform:jl}),sx=St({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:jl}),cx=St({prop:"backgroundColor",themeKey:"palette",transform:jl});Ho(ux,sx,cx);function un(t){return t<=1&&t!==0?`${t*100}%`:t}const fx=St({prop:"width",transform:un}),$s=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const r=a=>{var u,s,f,h,m;const i=((f=(s=(u=t.theme)==null?void 0:u.breakpoints)==null?void 0:s.values)==null?void 0:f[a])||Bo[a];return i?((m=(h=t.theme)==null?void 0:h.breakpoints)==null?void 0:m.unit)!=="px"?{maxWidth:`${i}${t.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:un(a)}};return rr(t,t.maxWidth,r)}return null};$s.filterProps=["maxWidth"];const dx=St({prop:"minWidth",transform:un}),hx=St({prop:"height",transform:un}),px=St({prop:"maxHeight",transform:un}),mx=St({prop:"minHeight",transform:un});St({prop:"size",cssProperty:"width",transform:un}),St({prop:"size",cssProperty:"height",transform:un});const gx=St({prop:"boxSizing"});Ho(fx,$s,dx,hx,px,mx,gx);const Xa={border:{themeKey:"borders",transform:Sn},borderTop:{themeKey:"borders",transform:Sn},borderRight:{themeKey:"borders",transform:Sn},borderBottom:{themeKey:"borders",transform:Sn},borderLeft:{themeKey:"borders",transform:Sn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Sn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jo},color:{themeKey:"palette",transform:jl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:jl},backgroundColor:{themeKey:"palette",transform:jl},p:{style:ht},pt:{style:ht},pr:{style:ht},pb:{style:ht},pl:{style:ht},px:{style:ht},py:{style:ht},padding:{style:ht},paddingTop:{style:ht},paddingRight:{style:ht},paddingBottom:{style:ht},paddingLeft:{style:ht},paddingX:{style:ht},paddingY:{style:ht},paddingInline:{style:ht},paddingInlineStart:{style:ht},paddingInlineEnd:{style:ht},paddingBlock:{style:ht},paddingBlockStart:{style:ht},paddingBlockEnd:{style:ht},m:{style:dt},mt:{style:dt},mr:{style:dt},mb:{style:dt},ml:{style:dt},mx:{style:dt},my:{style:dt},margin:{style:dt},marginTop:{style:dt},marginRight:{style:dt},marginBottom:{style:dt},marginLeft:{style:dt},marginX:{style:dt},marginY:{style:dt},marginInline:{style:dt},marginInlineStart:{style:dt},marginInlineEnd:{style:dt},marginBlock:{style:dt},marginBlockStart:{style:dt},marginBlockEnd:{style:dt},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Vo},rowGap:{style:qo},columnGap:{style:Io},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:un},maxWidth:{style:$s},minWidth:{transform:un},height:{transform:un},maxHeight:{transform:un},minHeight:{transform:un},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function yx(...t){const r=t.reduce((i,u)=>i.concat(Object.keys(u)),[]),a=new Set(r);return t.every(i=>a.size===Object.keys(i).length)}function bx(t,r){return typeof t=="function"?t(r):t}function Sx(){function t(a,i,u,s){const f={[a]:i,theme:u},h=s[a];if(!h)return{[a]:i};const{cssProperty:m=a,themeKey:p,transform:g,style:y}=h;if(i==null)return null;if(p==="typography"&&i==="inherit")return{[a]:i};const x=Lo(u,p)||{};return y?y(f):rr(f,i,O=>{let w=Uo(x,g,O);return O===w&&typeof O=="string"&&(w=Uo(x,g,`${a}${O==="default"?"":bn(O)}`,O)),m===!1?w:{[m]:w}})}function r(a){const{sx:i,theme:u={}}=a||{};if(!i)return null;const s=u.unstable_sxConfig??Xa;function f(h){let m=h;if(typeof h=="function")m=h(u);else if(typeof h!="object")return h;if(!m)return null;const p=Nv(u.breakpoints),g=Object.keys(p);let y=p;return Object.keys(m).forEach(x=>{const S=bx(m[x],u);if(S!=null)if(typeof S=="object")if(s[x])y=Ya(y,t(x,S,u,s));else{const O=rr({theme:u},S,w=>({[x]:w}));yx(O,S)?y[x]=r({sx:S,theme:u}):y=Ya(y,O)}else y=Ya(y,t(x,S,u,s))}),Rv(u,zv(g,y))}return Array.isArray(i)?i.map(f):f(i)}return r}const rl=Sx();rl.filterProps=["sx"];const vx=t=>{var i;const r={systemProps:{},otherProps:{}},a=((i=t==null?void 0:t.theme)==null?void 0:i.unstable_sxConfig)??Xa;return Object.keys(t).forEach(u=>{a[u]?r.systemProps[u]=t[u]:r.otherProps[u]=t[u]}),r};function xx(t){const{sx:r,...a}=t,{systemProps:i,otherProps:u}=vx(a);let s;return Array.isArray(r)?s=[i,...r]:typeof r=="function"?s=(...f)=>{const h=r(...f);return Yn(h)?{...i,...h}:i}:s={...i,...r},{...u,sx:s}}function Ex(t){return t==null||Object.keys(t).length===0}function vp(t){const{styles:r,defaultTheme:a={}}=t,i=typeof r=="function"?u=>r(Ex(u)?a:u):r;return ve.jsx(ov,{styles:i})}/**
56
+ */var Oh;function Fv(){if(Oh)return Xl;Oh=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(a,u,s){var f=null;if(s!==void 0&&(f=""+s),u.key!==void 0&&(f=""+u.key),"key"in u){s={};for(var d in u)d!=="key"&&(s[d]=u[d])}else s=u;return u=s.ref,{$$typeof:e,type:a,key:f,ref:u!==void 0?u:null,props:s}}return Xl.Fragment=r,Xl.jsx=l,Xl.jsxs=l,Xl}var Mh;function Pv(){return Mh||(Mh=1,nc.exports=Fv()),nc.exports}var ce=Pv();function Yo(e){return parseInt(e,10)||0}const Xv={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Qv(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Kv=M.forwardRef(function(r,l){const{onChange:a,maxRows:u,minRows:s=1,style:f,value:d,...m}=r,{current:h}=M.useRef(d!=null),g=M.useRef(null),y=Vn(l,g),v=M.useRef(null),S=M.useRef(null),R=M.useCallback(()=>{const w=g.current,k=Br(w).getComputedStyle(w);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};const z=S.current;z.style.width=k.width,z.value=w.value||r.placeholder||"x",z.value.slice(-1)===`
57
+ `&&(z.value+=" ");const A=k.boxSizing,_=Yo(k.paddingBottom)+Yo(k.paddingTop),H=Yo(k.borderBottomWidth)+Yo(k.borderTopWidth),ne=z.scrollHeight;z.value="x";const V=z.scrollHeight;let E=ne;s&&(E=Math.max(Number(s)*V,E)),u&&(E=Math.min(Number(u)*V,E)),E=Math.max(E,V);const I=E+(A==="border-box"?_+H:0),Y=Math.abs(E-ne)<=1;return{outerHeightStyle:I,overflowing:Y}},[u,s,r.placeholder]),T=M.useCallback(()=>{const w=R();if(Qv(w))return;const B=w.outerHeightStyle,k=g.current;v.current!==B&&(v.current=B,k.style.height=`${B}px`),k.style.overflow=w.overflowing?"hidden":""},[R]);qi(()=>{const w=()=>{T()};let B;const k=Eh(w),z=g.current,A=Br(z);A.addEventListener("resize",k);let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(w),_.observe(z)),()=>{k.clear(),cancelAnimationFrame(B),A.removeEventListener("resize",k),_&&_.disconnect()}},[R,T]),qi(()=>{T()});const N=w=>{h||T(),a&&a(w)};return ce.jsxs(M.Fragment,{children:[ce.jsx("textarea",{value:d,onChange:N,ref:y,rows:s,style:f,...m}),ce.jsx("textarea",{"aria-hidden":!0,className:r.className,readOnly:!0,ref:S,tabIndex:-1,style:{...Xv.shadow,...f,paddingTop:0,paddingBottom:0}})]})});function _h(e){return typeof e=="string"}function Zv({props:e,states:r,muiFormControl:l}){return r.reduce((a,u)=>(a[u]=e[u],l&&typeof e[u]>"u"&&(a[u]=l[u]),a),{})}const Dh=M.createContext(void 0);function Wv(){return M.useContext(Dh)}function Ql(e,r){return r?nn(e,r,{clone:!1}):e}function Jv(e,r){if(!e.containerQueries)return r;const l=Object.keys(r).filter(a=>a.startsWith("@container")).sort((a,u)=>{var f,d;const s=/min-width:\s*([0-9.]+)/;return+(((f=a.match(s))==null?void 0:f[1])||0)-+(((d=u.match(s))==null?void 0:d[1])||0)});return l.length?l.reduce((a,u)=>{const s=r[u];return delete a[u],a[u]=s,a},{...r}):r}function ex(e,r){return r==="@"||r.startsWith("@")&&(e.some(l=>r.startsWith(`@${l}`))||!!r.match(/^@\d/))}function tx(e,r){const l=r.match(/^@([^/]+)?\/?(.+)?$/);if(!l)return null;const[,a,u]=l,s=Number.isNaN(+a)?a||0:+a;return e.containerQueries(u).up(s)}function nx(e){const r=(s,f)=>s.replace("@media",f?`@container ${f}`:"@container");function l(s,f){s.up=(...d)=>r(e.breakpoints.up(...d),f),s.down=(...d)=>r(e.breakpoints.down(...d),f),s.between=(...d)=>r(e.breakpoints.between(...d),f),s.only=(...d)=>r(e.breakpoints.only(...d),f),s.not=(...d)=>{const m=r(e.breakpoints.not(...d),f);return m.includes("not all and")?m.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):m}}const a={},u=s=>(l(a,s),a);return l(u),{...e,containerQueries:u}}const Fo={xs:0,sm:600,md:900,lg:1200,xl:1536},zh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Fo[e]}px)`},rx={containerQueries:e=>({up:r=>{let l=typeof r=="number"?r:Fo[r]||r;return typeof l=="number"&&(l=`${l}px`),e?`@container ${e} (min-width:${l})`:`@container (min-width:${l})`}})};function dr(e,r,l){const a=e.theme||{};if(Array.isArray(r)){const s=a.breakpoints||zh;return r.reduce((f,d,m)=>(f[s.up(s.keys[m])]=l(r[m]),f),{})}if(typeof r=="object"){const s=a.breakpoints||zh;return Object.keys(r).reduce((f,d)=>{if(ex(s.keys,d)){const m=tx(a.containerQueries?a:rx,d);m&&(f[m]=l(r[d],d))}else if(Object.keys(s.values||Fo).includes(d)){const m=s.up(d);f[m]=l(r[d],d)}else{const m=d;f[m]=r[m]}return f},{})}return l(r)}function ix(e={}){var l;return((l=e.keys)==null?void 0:l.reduce((a,u)=>{const s=e.up(u);return a[s]={},a},{}))||{}}function lx(e,r){return e.reduce((l,a)=>{const u=l[a];return(!u||Object.keys(u).length===0)&&delete l[a],l},r)}function Po(e,r,l=!0){if(!r||typeof r!="string")return null;if(e&&e.vars&&l){const a=`vars.${r}`.split(".").reduce((u,s)=>u&&u[s]?u[s]:null,e);if(a!=null)return a}return r.split(".").reduce((a,u)=>a&&a[u]!=null?a[u]:null,e)}function Xo(e,r,l,a=l){let u;return typeof e=="function"?u=e(l):Array.isArray(e)?u=e[l]||a:u=Po(e,l)||a,r&&(u=r(u,a,e)),u}function Ct(e){const{prop:r,cssProperty:l=e.prop,themeKey:a,transform:u}=e,s=f=>{if(f[r]==null)return null;const d=f[r],m=f.theme,h=Po(m,a)||{};return dr(f,d,y=>{let v=Xo(h,u,y);return y===v&&typeof y=="string"&&(v=Xo(h,u,`${r}${y==="default"?"":dt(y)}`,y)),l===!1?v:{[l]:v}})};return s.propTypes={},s.filterProps=[r],s}function ax(e){const r={};return l=>(r[l]===void 0&&(r[l]=e(l)),r[l])}const ox={m:"margin",p:"padding"},ux={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Nh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},sx=ax(e=>{if(e.length>2)if(Nh[e])e=Nh[e];else return[e];const[r,l]=e.split(""),a=ox[r],u=ux[l]||"";return Array.isArray(u)?u.map(s=>a+s):[a+u]}),rc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ic=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...rc,...ic];function Kl(e,r,l,a){const u=Po(e,r,!0)??l;return typeof u=="number"||typeof u=="string"?s=>typeof s=="string"?s:typeof u=="string"?`calc(${s} * ${u})`:u*s:Array.isArray(u)?s=>{if(typeof s=="string")return s;const f=Math.abs(s),d=u[f];return s>=0?d:typeof d=="number"?-d:`-${d}`}:typeof u=="function"?u:()=>{}}function lc(e){return Kl(e,"spacing",8)}function Zl(e,r){return typeof r=="string"||r==null?r:e(r)}function cx(e,r){return l=>e.reduce((a,u)=>(a[u]=Zl(r,l),a),{})}function fx(e,r,l,a){if(!r.includes(l))return null;const u=sx(l),s=cx(u,a),f=e[l];return dr(e,f,s)}function Bh(e,r){const l=lc(e.theme);return Object.keys(e).map(a=>fx(e,r,a,l)).reduce(Ql,{})}function yt(e){return Bh(e,rc)}yt.propTypes={},yt.filterProps=rc;function bt(e){return Bh(e,ic)}bt.propTypes={},bt.filterProps=ic;function Qo(...e){const r=e.reduce((a,u)=>(u.filterProps.forEach(s=>{a[s]=u}),a),{}),l=a=>Object.keys(a).reduce((u,s)=>r[s]?Ql(u,r[s](a)):u,{});return l.propTypes={},l.filterProps=e.reduce((a,u)=>a.concat(u.filterProps),[]),l}function Tn(e){return typeof e!="number"?e:`${e}px solid`}function wn(e,r){return Ct({prop:e,themeKey:"borders",transform:r})}const dx=wn("border",Tn),px=wn("borderTop",Tn),hx=wn("borderRight",Tn),mx=wn("borderBottom",Tn),gx=wn("borderLeft",Tn),yx=wn("borderColor"),bx=wn("borderTopColor"),Sx=wn("borderRightColor"),vx=wn("borderBottomColor"),xx=wn("borderLeftColor"),Ex=wn("outline",Tn),Cx=wn("outlineColor"),Ko=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const r=Kl(e.theme,"shape.borderRadius",4),l=a=>({borderRadius:Zl(r,a)});return dr(e,e.borderRadius,l)}return null};Ko.propTypes={},Ko.filterProps=["borderRadius"],Qo(dx,px,hx,mx,gx,yx,bx,Sx,vx,xx,Ko,Ex,Cx);const Zo=e=>{if(e.gap!==void 0&&e.gap!==null){const r=Kl(e.theme,"spacing",8),l=a=>({gap:Zl(r,a)});return dr(e,e.gap,l)}return null};Zo.propTypes={},Zo.filterProps=["gap"];const Wo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const r=Kl(e.theme,"spacing",8),l=a=>({columnGap:Zl(r,a)});return dr(e,e.columnGap,l)}return null};Wo.propTypes={},Wo.filterProps=["columnGap"];const Jo=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const r=Kl(e.theme,"spacing",8),l=a=>({rowGap:Zl(r,a)});return dr(e,e.rowGap,l)}return null};Jo.propTypes={},Jo.filterProps=["rowGap"];const Tx=Ct({prop:"gridColumn"}),wx=Ct({prop:"gridRow"}),Ax=Ct({prop:"gridAutoFlow"}),kx=Ct({prop:"gridAutoColumns"}),Rx=Ct({prop:"gridAutoRows"}),Ox=Ct({prop:"gridTemplateColumns"}),Mx=Ct({prop:"gridTemplateRows"}),_x=Ct({prop:"gridTemplateAreas"}),Dx=Ct({prop:"gridArea"});Qo(Zo,Wo,Jo,Tx,wx,Ax,kx,Rx,Ox,Mx,_x,Dx);function Gi(e,r){return r==="grey"?r:e}const zx=Ct({prop:"color",themeKey:"palette",transform:Gi}),Nx=Ct({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gi}),Bx=Ct({prop:"backgroundColor",themeKey:"palette",transform:Gi});Qo(zx,Nx,Bx);function pn(e){return e<=1&&e!==0?`${e*100}%`:e}const Lx=Ct({prop:"width",transform:pn}),ac=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const r=l=>{var u,s,f,d,m;const a=((f=(s=(u=e.theme)==null?void 0:u.breakpoints)==null?void 0:s.values)==null?void 0:f[l])||Fo[l];return a?((m=(d=e.theme)==null?void 0:d.breakpoints)==null?void 0:m.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:pn(l)}};return dr(e,e.maxWidth,r)}return null};ac.filterProps=["maxWidth"];const Ux=Ct({prop:"minWidth",transform:pn}),jx=Ct({prop:"height",transform:pn}),Hx=Ct({prop:"maxHeight",transform:pn}),Ix=Ct({prop:"minHeight",transform:pn});Ct({prop:"size",cssProperty:"width",transform:pn}),Ct({prop:"size",cssProperty:"height",transform:pn});const Vx=Ct({prop:"boxSizing"});Qo(Lx,ac,Ux,jx,Hx,Ix,Vx);const Wl={border:{themeKey:"borders",transform:Tn},borderTop:{themeKey:"borders",transform:Tn},borderRight:{themeKey:"borders",transform:Tn},borderBottom:{themeKey:"borders",transform:Tn},borderLeft:{themeKey:"borders",transform:Tn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Tn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ko},color:{themeKey:"palette",transform:Gi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gi},backgroundColor:{themeKey:"palette",transform:Gi},p:{style:bt},pt:{style:bt},pr:{style:bt},pb:{style:bt},pl:{style:bt},px:{style:bt},py:{style:bt},padding:{style:bt},paddingTop:{style:bt},paddingRight:{style:bt},paddingBottom:{style:bt},paddingLeft:{style:bt},paddingX:{style:bt},paddingY:{style:bt},paddingInline:{style:bt},paddingInlineStart:{style:bt},paddingInlineEnd:{style:bt},paddingBlock:{style:bt},paddingBlockStart:{style:bt},paddingBlockEnd:{style:bt},m:{style:yt},mt:{style:yt},mr:{style:yt},mb:{style:yt},ml:{style:yt},mx:{style:yt},my:{style:yt},margin:{style:yt},marginTop:{style:yt},marginRight:{style:yt},marginBottom:{style:yt},marginLeft:{style:yt},marginX:{style:yt},marginY:{style:yt},marginInline:{style:yt},marginInlineStart:{style:yt},marginInlineEnd:{style:yt},marginBlock:{style:yt},marginBlockStart:{style:yt},marginBlockEnd:{style:yt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Zo},rowGap:{style:Jo},columnGap:{style:Wo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pn},maxWidth:{style:ac},minWidth:{transform:pn},height:{transform:pn},maxHeight:{transform:pn},minHeight:{transform:pn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function qx(...e){const r=e.reduce((a,u)=>a.concat(Object.keys(u)),[]),l=new Set(r);return e.every(a=>l.size===Object.keys(a).length)}function $x(e,r){return typeof e=="function"?e(r):e}function Gx(){function e(l,a,u,s){const f={[l]:a,theme:u},d=s[l];if(!d)return{[l]:a};const{cssProperty:m=l,themeKey:h,transform:g,style:y}=d;if(a==null)return null;if(h==="typography"&&a==="inherit")return{[l]:a};const v=Po(u,h)||{};return y?y(f):dr(f,a,R=>{let T=Xo(v,g,R);return R===T&&typeof R=="string"&&(T=Xo(v,g,`${l}${R==="default"?"":dt(R)}`,R)),m===!1?T:{[m]:T}})}function r(l){const{sx:a,theme:u={}}=l||{};if(!a)return null;const s=u.unstable_sxConfig??Wl;function f(d){let m=d;if(typeof d=="function")m=d(u);else if(typeof d!="object")return d;if(!m)return null;const h=ix(u.breakpoints),g=Object.keys(h);let y=h;return Object.keys(m).forEach(v=>{const S=$x(m[v],u);if(S!=null)if(typeof S=="object")if(s[v])y=Ql(y,e(v,S,u,s));else{const R=dr({theme:u},S,T=>({[v]:T}));qx(R,S)?y[v]=r({sx:S,theme:u}):y=Ql(y,R)}else y=Ql(y,e(v,S,u,s))}),Jv(u,lx(g,y))}return Array.isArray(a)?a.map(f):f(a)}return r}const ci=Gx();ci.filterProps=["sx"];const Yx=e=>{var a;const r={systemProps:{},otherProps:{}},l=((a=e==null?void 0:e.theme)==null?void 0:a.unstable_sxConfig)??Wl;return Object.keys(e).forEach(u=>{l[u]?r.systemProps[u]=e[u]:r.otherProps[u]=e[u]}),r};function Fx(e){const{sx:r,...l}=e,{systemProps:a,otherProps:u}=Yx(l);let s;return Array.isArray(r)?s=[a,...r]:typeof r=="function"?s=(...f)=>{const d=r(...f);return tr(d)?{...a,...d}:a}:s={...a,...r},{...u,sx:s}}function Px(e){return e==null||Object.keys(e).length===0}function Lh(e){const{styles:r,defaultTheme:l={}}=e,a=typeof r=="function"?u=>r(Px(u)?l:u):r;return ce.jsx(Ov,{styles:a})}/**
58
58
  * @mui/styled-engine v6.1.6
59
59
  *
60
60
  * @license MIT
61
61
  * This source code is licensed under the MIT license found in the
62
62
  * LICENSE file in the root directory of this source tree.
63
- */function Cx(t,r){return rt(t,r)}function Tx(t,r){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=r(t.__emotion_styles))}const xp=[];function Ep(t){return xp[0]=t,Do(xp)}const wx=t=>{const r=Object.keys(t).map(a=>({key:a,val:t[a]}))||[];return r.sort((a,i)=>a.val-i.val),r.reduce((a,i)=>({...a,[i.key]:i.val}),{})};function Ax(t){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:a="px",step:i=5,...u}=t,s=wx(r),f=Object.keys(s);function h(x){return`@media (min-width:${typeof r[x]=="number"?r[x]:x}${a})`}function m(x){return`@media (max-width:${(typeof r[x]=="number"?r[x]:x)-i/100}${a})`}function p(x,S){const O=f.indexOf(S);return`@media (min-width:${typeof r[x]=="number"?r[x]:x}${a}) and (max-width:${(O!==-1&&typeof r[f[O]]=="number"?r[f[O]]:S)-i/100}${a})`}function g(x){return f.indexOf(x)+1<f.length?p(x,f[f.indexOf(x)+1]):h(x)}function y(x){const S=f.indexOf(x);return S===0?h(f[1]):S===f.length-1?m(f[S]):p(x,f[f.indexOf(x)+1]).replace("@media","@media not all and")}return{keys:f,values:s,up:h,down:m,between:p,only:g,not:y,unit:a,...u}}const kx={borderRadius:4};function Cp(t=8,r=Ys({spacing:t})){if(t.mui)return t;const a=(...i)=>(i.length===0?[1]:i).map(s=>{const f=r(s);return typeof f=="number"?`${f}px`:f}).join(" ");return a.mui=!0,a}function Rx(t,r){var i;const a=this;if(a.vars){if(!((i=a.colorSchemes)!=null&&i[t])||typeof a.getColorSchemeSelector!="function")return{};let u=a.getColorSchemeSelector(t);return u==="&"?r:((u.includes("data-")||u.includes("."))&&(u=`*:where(${u.replace(/\s*&$/,"")}) &`),{[u]:r})}return a.palette.mode===t?r:{}}function Fs(t={},...r){const{breakpoints:a={},palette:i={},spacing:u,shape:s={},...f}=t,h=Ax(a),m=Cp(u);let p=Kt({breakpoints:h,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:m,shape:{...kx,...s}},f);return p=Mv(p),p.applyStyles=Rx,p=r.reduce((g,y)=>Kt(g,y),p),p.unstable_sxConfig={...Xa,...f==null?void 0:f.unstable_sxConfig},p.unstable_sx=function(y){return rl({sx:y,theme:this})},p}function Ox(t){return Object.keys(t).length===0}function Tp(t=null){const r=D.useContext(qa);return!r||Ox(r)?t:r}const _x=Fs();function wp(t=_x){return Tp(t)}function Mx({styles:t,themeId:r,defaultTheme:a={}}){const i=wp(a),u=typeof t=="function"?t(r&&i[r]||i):t;return ve.jsx(vp,{styles:u})}function Ap(t){const{variants:r,...a}=t,i={variants:r,style:Ep(a),isProcessed:!0};return i.style===a||r&&r.forEach(u=>{typeof u.style!="function"&&(u.style=Ep(u.style))}),i}const Dx=Fs();function Xs(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function Nx(t){return t?(r,a)=>a[t]:null}function zx(t,r,a){t.theme=Ux(t.theme)?a:t.theme[r]||t.theme}function Go(t,r){const a=typeof r=="function"?r(t):r;if(Array.isArray(a))return a.flatMap(i=>Go(t,i));if(Array.isArray(a==null?void 0:a.variants)){let i;if(a.isProcessed)i=a.style;else{const{variants:u,...s}=a;i=s}return kp(t,a.variants,[i])}return a!=null&&a.isProcessed?a.style:a}function kp(t,r,a=[]){var u;let i;e:for(let s=0;s<r.length;s+=1){const f=r[s];if(typeof f.props=="function"){if(i??(i={...t,...t.ownerState,ownerState:t.ownerState}),!f.props(i))continue}else for(const h in f.props)if(t[h]!==f.props[h]&&((u=t.ownerState)==null?void 0:u[h])!==f.props[h])continue e;typeof f.style=="function"?(i??(i={...t,...t.ownerState,ownerState:t.ownerState}),a.push(f.style(i))):a.push(f.style)}return a}function Bx(t={}){const{themeId:r,defaultTheme:a=Dx,rootShouldForwardProp:i=Xs,slotShouldForwardProp:u=Xs}=t;function s(h){zx(h,r,a)}return(h,m={})=>{Tx(h,R=>R.filter(M=>M!==rl));const{name:p,slot:g,skipVariantsResolver:y,skipSx:x,overridesResolver:S=Nx(jx(g)),...O}=m,w=y!==void 0?y:g&&g!=="Root"&&g!=="root"||!1,B=x||!1;let T=Xs;g==="Root"||g==="root"?T=i:g?T=u:Hx(h)&&(T=void 0);const N=Cx(h,{shouldForwardProp:T,label:Lx(),...O}),A=R=>{if(typeof R=="function"&&R.__emotion_real!==R)return function(I){return Go(I,R)};if(Yn(R)){const M=Ap(R);return M.variants?function(te){return Go(te,M)}:M.style}return R},z=(...R)=>{const M=[],I=R.map(A),te=[];if(M.push(s),p&&S&&te.push(function($){var V,ne;const Q=(ne=(V=$.theme.components)==null?void 0:V[p])==null?void 0:ne.styleOverrides;if(!Q)return null;const ee={};for(const W in Q)ee[W]=Go($,Q[W]);return S($,ee)}),p&&!w&&te.push(function($){var ee,V;const P=$.theme,Q=(V=(ee=P==null?void 0:P.components)==null?void 0:ee[p])==null?void 0:V.variants;return Q?kp($,Q):null}),B||te.push(rl),Array.isArray(I[0])){const j=I.shift(),$=new Array(M.length).fill(""),P=new Array(te.length).fill("");let Q;Q=[...$,...j,...P],Q.raw=[...$,...j.raw,...P],M.unshift(Q)}const G=[...M,...I,...te],E=N(...G);return h.muiName&&(E.muiName=h.muiName),E};return N.withConfig&&(z.withConfig=N.withConfig),z}}function Lx(t,r){return void 0}function Ux(t){for(const r in t)return!1;return!0}function Hx(t){return typeof t=="string"&&t.charCodeAt(0)>96}function jx(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function Ps(t,r=0,a=1){return gv(t,r,a)}function Vx(t){t=t.slice(1);const r=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let a=t.match(r);return a&&a[0].length===1&&(a=a.map(i=>i+i)),a?`rgb${a.length===4?"a":""}(${a.map((i,u)=>u<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function kr(t){if(t.type)return t;if(t.charAt(0)==="#")return kr(Vx(t));const r=t.indexOf("("),a=t.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(a))throw new Error(wr(9,t));let i=t.substring(r+1,t.length-1),u;if(a==="color"){if(i=i.split(" "),u=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(u))throw new Error(wr(10,u))}else i=i.split(",");return i=i.map(s=>parseFloat(s)),{type:a,values:i,colorSpace:u}}const Ix=t=>{const r=kr(t);return r.values.slice(0,3).map((a,i)=>r.type.includes("hsl")&&i!==0?`${a}%`:a).join(" ")},Pa=(t,r)=>{try{return Ix(t)}catch{return t}};function Yo(t){const{type:r,colorSpace:a}=t;let{values:i}=t;return r.includes("rgb")?i=i.map((u,s)=>s<3?parseInt(u,10):u):r.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),r.includes("color")?i=`${a} ${i.join(" ")}`:i=`${i.join(", ")}`,`${r}(${i})`}function Rp(t){t=kr(t);const{values:r}=t,a=r[0],i=r[1]/100,u=r[2]/100,s=i*Math.min(u,1-u),f=(p,g=(p+a/30)%12)=>u-s*Math.max(Math.min(g-3,9-g,1),-1);let h="rgb";const m=[Math.round(f(0)*255),Math.round(f(8)*255),Math.round(f(4)*255)];return t.type==="hsla"&&(h+="a",m.push(r[3])),Yo({type:h,values:m})}function Qs(t){t=kr(t);let r=t.type==="hsl"||t.type==="hsla"?kr(Rp(t)).values:t.values;return r=r.map(a=>(t.type!=="color"&&(a/=255),a<=.03928?a/12.92:((a+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function qx(t,r){const a=Qs(t),i=Qs(r);return(Math.max(a,i)+.05)/(Math.min(a,i)+.05)}function Ks(t,r){return t=kr(t),r=Ps(r),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${r}`:t.values[3]=r,Yo(t)}function $o(t,r,a){try{return Ks(t,r)}catch{return t}}function Zs(t,r){if(t=kr(t),r=Ps(r),t.type.includes("hsl"))t.values[2]*=1-r;else if(t.type.includes("rgb")||t.type.includes("color"))for(let a=0;a<3;a+=1)t.values[a]*=1-r;return Yo(t)}function et(t,r,a){try{return Zs(t,r)}catch{return t}}function Js(t,r){if(t=kr(t),r=Ps(r),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*r;else if(t.type.includes("rgb"))for(let a=0;a<3;a+=1)t.values[a]+=(255-t.values[a])*r;else if(t.type.includes("color"))for(let a=0;a<3;a+=1)t.values[a]+=(1-t.values[a])*r;return Yo(t)}function tt(t,r,a){try{return Js(t,r)}catch{return t}}function Gx(t,r=.15){return Qs(t)>.5?Zs(t,r):Js(t,r)}function Fo(t,r,a){try{return Gx(t,r)}catch{return t}}const Op=D.createContext(null);function Ws(){return D.useContext(Op)}const Yx=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function $x(t,r){return typeof r=="function"?r(t):{...t,...r}}function Fx(t){const{children:r,theme:a}=t,i=Ws(),u=D.useMemo(()=>{const s=i===null?{...a}:$x(i,a);return s!=null&&(s[Yx]=i!==null),s},[a,i]);return ve.jsx(Op.Provider,{value:u,children:r})}const _p=D.createContext();function Xx({value:t,...r}){return ve.jsx(_p.Provider,{value:t??!0,...r})}const Px=()=>D.useContext(_p)??!1,Mp=D.createContext(void 0);function Qx({value:t,children:r}){return ve.jsx(Mp.Provider,{value:t,children:r})}function Kx(t){const{theme:r,name:a,props:i}=t;if(!r||!r.components||!r.components[a])return i;const u=r.components[a];return u.defaultProps?Vs(u.defaultProps,i):!u.styleOverrides&&!u.variants?Vs(u,i):i}function Zx({props:t,name:r}){const a=D.useContext(Mp);return Kx({props:t,name:r,theme:{components:a}})}const Dp={};function Np(t,r,a,i=!1){return D.useMemo(()=>{const u=t&&r[t]||r;if(typeof a=="function"){const s=a(u),f=t?{...r,[t]:s}:s;return i?()=>f:f}return t?{...r,[t]:a}:{...r,...a}},[t,r,a,i])}function zp(t){const{children:r,theme:a,themeId:i}=t,u=Tp(Dp),s=Ws()||Dp,f=Np(i,u,a),h=Np(i,s,a,!0),m=f.direction==="rtl";return ve.jsx(Fx,{theme:h,children:ve.jsx(qa.Provider,{value:f,children:ve.jsx(Xx,{value:m,children:ve.jsx(Qx,{value:f==null?void 0:f.components,children:r})})})})}const Bp={theme:void 0};function Jx(t){let r,a;return function(u){let s=r;return(s===void 0||u.theme!==a)&&(Bp.theme=u.theme,s=Ap(t(Bp)),r=s,a=u.theme),s}}const ec="mode",tc="color-scheme",Wx="data-color-scheme";function eE(t){const{defaultMode:r="system",defaultLightColorScheme:a="light",defaultDarkColorScheme:i="dark",modeStorageKey:u=ec,colorSchemeStorageKey:s=tc,attribute:f=Wx,colorSchemeNode:h="document.documentElement",nonce:m}=t;let p="",g=f;if(f==="class"&&(g=".%s"),f==="data"&&(g="[data-%s]"),g.startsWith(".")){const x=g.substring(1);p+=`${h}.classList.remove('${x}'.replace('%s', light), '${x}'.replace('%s', dark));
64
- ${h}.classList.add('${x}'.replace('%s', colorScheme));`}const y=g.match(/\[([^\]]+)\]/);if(y){const[x,S]=y[1].split("=");S||(p+=`${h}.removeAttribute('${x}'.replace('%s', light));
65
- ${h}.removeAttribute('${x}'.replace('%s', dark));`),p+=`
66
- ${h}.setAttribute('${x}'.replace('%s', colorScheme), ${S?`${S}.replace('%s', colorScheme)`:'""'});`}else p+=`${h}.setAttribute('${g}', colorScheme);`;return ve.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(function() {
63
+ */function Xx(e,r){return et(e,r)}function Qx(e,r){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=r(e.__emotion_styles))}const Uh=[];function jh(e){return Uh[0]=e,$o(Uh)}const Kx=e=>{const r=Object.keys(e).map(l=>({key:l,val:e[l]}))||[];return r.sort((l,a)=>l.val-a.val),r.reduce((l,a)=>({...l,[a.key]:a.val}),{})};function Zx(e){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:l="px",step:a=5,...u}=e,s=Kx(r),f=Object.keys(s);function d(v){return`@media (min-width:${typeof r[v]=="number"?r[v]:v}${l})`}function m(v){return`@media (max-width:${(typeof r[v]=="number"?r[v]:v)-a/100}${l})`}function h(v,S){const R=f.indexOf(S);return`@media (min-width:${typeof r[v]=="number"?r[v]:v}${l}) and (max-width:${(R!==-1&&typeof r[f[R]]=="number"?r[f[R]]:S)-a/100}${l})`}function g(v){return f.indexOf(v)+1<f.length?h(v,f[f.indexOf(v)+1]):d(v)}function y(v){const S=f.indexOf(v);return S===0?d(f[1]):S===f.length-1?m(f[S]):h(v,f[f.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:f,values:s,up:d,down:m,between:h,only:g,not:y,unit:l,...u}}const Wx={borderRadius:4};function Hh(e=8,r=lc({spacing:e})){if(e.mui)return e;const l=(...a)=>(a.length===0?[1]:a).map(s=>{const f=r(s);return typeof f=="number"?`${f}px`:f}).join(" ");return l.mui=!0,l}function Jx(e,r){var a;const l=this;if(l.vars){if(!((a=l.colorSchemes)!=null&&a[e])||typeof l.getColorSchemeSelector!="function")return{};let u=l.getColorSchemeSelector(e);return u==="&"?r:((u.includes("data-")||u.includes("."))&&(u=`*:where(${u.replace(/\s*&$/,"")}) &`),{[u]:r})}return l.palette.mode===e?r:{}}function oc(e={},...r){const{breakpoints:l={},palette:a={},spacing:u,shape:s={},...f}=e,d=Zx(l),m=Hh(u);let h=nn({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...a},spacing:m,shape:{...Wx,...s}},f);return h=nx(h),h.applyStyles=Jx,h=r.reduce((g,y)=>nn(g,y),h),h.unstable_sxConfig={...Wl,...f==null?void 0:f.unstable_sxConfig},h.unstable_sx=function(y){return ci({sx:y,theme:this})},h}function eE(e){return Object.keys(e).length===0}function Ih(e=null){const r=M.useContext(Pl);return!r||eE(r)?e:r}const tE=oc();function Vh(e=tE){return Ih(e)}function nE({styles:e,themeId:r,defaultTheme:l={}}){const a=Vh(l),u=typeof e=="function"?e(r&&a[r]||a):e;return ce.jsx(Lh,{styles:u})}function qh(e){const{variants:r,...l}=e,a={variants:r,style:jh(l),isProcessed:!0};return a.style===l||r&&r.forEach(u=>{typeof u.style!="function"&&(u.style=jh(u.style))}),a}const rE=oc();function uc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function iE(e){return e?(r,l)=>l[e]:null}function lE(e,r,l){e.theme=uE(e.theme)?l:e.theme[r]||e.theme}function eu(e,r){const l=typeof r=="function"?r(e):r;if(Array.isArray(l))return l.flatMap(a=>eu(e,a));if(Array.isArray(l==null?void 0:l.variants)){let a;if(l.isProcessed)a=l.style;else{const{variants:u,...s}=l;a=s}return $h(e,l.variants,[a])}return l!=null&&l.isProcessed?l.style:l}function $h(e,r,l=[]){var u;let a;e:for(let s=0;s<r.length;s+=1){const f=r[s];if(typeof f.props=="function"){if(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),!f.props(a))continue}else for(const d in f.props)if(e[d]!==f.props[d]&&((u=e.ownerState)==null?void 0:u[d])!==f.props[d])continue e;typeof f.style=="function"?(a??(a={...e,...e.ownerState,ownerState:e.ownerState}),l.push(f.style(a))):l.push(f.style)}return l}function aE(e={}){const{themeId:r,defaultTheme:l=rE,rootShouldForwardProp:a=uc,slotShouldForwardProp:u=uc}=e;function s(d){lE(d,r,l)}return(d,m={})=>{Qx(d,A=>A.filter(_=>_!==ci));const{name:h,slot:g,skipVariantsResolver:y,skipSx:v,overridesResolver:S=iE(cE(g)),...R}=m,T=y!==void 0?y:g&&g!=="Root"&&g!=="root"||!1,N=v||!1;let w=uc;g==="Root"||g==="root"?w=a:g?w=u:sE(d)&&(w=void 0);const B=Xx(d,{shouldForwardProp:w,label:oE(),...R}),k=A=>{if(typeof A=="function"&&A.__emotion_real!==A)return function(H){return eu(H,A)};if(tr(A)){const _=qh(A);return _.variants?function(ne){return eu(ne,_)}:_.style}return A},z=(...A)=>{const _=[],H=A.map(k),ne=[];if(_.push(s),h&&S&&ne.push(function(Y){var $,Z;const P=(Z=($=Y.theme.components)==null?void 0:$[h])==null?void 0:Z.styleOverrides;if(!P)return null;const ee={};for(const Q in P)ee[Q]=eu(Y,P[Q]);return S(Y,ee)}),h&&!T&&ne.push(function(Y){var ee,$;const F=Y.theme,P=($=(ee=F==null?void 0:F.components)==null?void 0:ee[h])==null?void 0:$.variants;return P?$h(Y,P):null}),N||ne.push(ci),Array.isArray(H[0])){const I=H.shift(),Y=new Array(_.length).fill(""),F=new Array(ne.length).fill("");let P;P=[...Y,...I,...F],P.raw=[...Y,...I.raw,...F],_.unshift(P)}const V=[..._,...H,...ne],E=B(...V);return d.muiName&&(E.muiName=d.muiName),E};return B.withConfig&&(z.withConfig=B.withConfig),z}}function oE(e,r){return void 0}function uE(e){for(const r in e)return!1;return!0}function sE(e){return typeof e=="string"&&e.charCodeAt(0)>96}function cE(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function sc(e,r=0,l=1){return Vv(e,r,l)}function fE(e){e=e.slice(1);const r=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let l=e.match(r);return l&&l[0].length===1&&(l=l.map(a=>a+a)),l?`rgb${l.length===4?"a":""}(${l.map((a,u)=>u<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function Lr(e){if(e.type)return e;if(e.charAt(0)==="#")return Lr(fE(e));const r=e.indexOf("("),l=e.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(l))throw new Error(Nr(9,e));let a=e.substring(r+1,e.length-1),u;if(l==="color"){if(a=a.split(" "),u=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(u))throw new Error(Nr(10,u))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:l,values:a,colorSpace:u}}const dE=e=>{const r=Lr(e);return r.values.slice(0,3).map((l,a)=>r.type.includes("hsl")&&a!==0?`${l}%`:l).join(" ")},Jl=(e,r)=>{try{return dE(e)}catch{return e}};function tu(e){const{type:r,colorSpace:l}=e;let{values:a}=e;return r.includes("rgb")?a=a.map((u,s)=>s<3?parseInt(u,10):u):r.includes("hsl")&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),r.includes("color")?a=`${l} ${a.join(" ")}`:a=`${a.join(", ")}`,`${r}(${a})`}function Gh(e){e=Lr(e);const{values:r}=e,l=r[0],a=r[1]/100,u=r[2]/100,s=a*Math.min(u,1-u),f=(h,g=(h+l/30)%12)=>u-s*Math.max(Math.min(g-3,9-g,1),-1);let d="rgb";const m=[Math.round(f(0)*255),Math.round(f(8)*255),Math.round(f(4)*255)];return e.type==="hsla"&&(d+="a",m.push(r[3])),tu({type:d,values:m})}function cc(e){e=Lr(e);let r=e.type==="hsl"||e.type==="hsla"?Lr(Gh(e)).values:e.values;return r=r.map(l=>(e.type!=="color"&&(l/=255),l<=.03928?l/12.92:((l+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function pE(e,r){const l=cc(e),a=cc(r);return(Math.max(l,a)+.05)/(Math.min(l,a)+.05)}function ea(e,r){return e=Lr(e),r=sc(r),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${r}`:e.values[3]=r,tu(e)}function nu(e,r,l){try{return ea(e,r)}catch{return e}}function ta(e,r){if(e=Lr(e),r=sc(r),e.type.includes("hsl"))e.values[2]*=1-r;else if(e.type.includes("rgb")||e.type.includes("color"))for(let l=0;l<3;l+=1)e.values[l]*=1-r;return tu(e)}function rt(e,r,l){try{return ta(e,r)}catch{return e}}function na(e,r){if(e=Lr(e),r=sc(r),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*r;else if(e.type.includes("rgb"))for(let l=0;l<3;l+=1)e.values[l]+=(255-e.values[l])*r;else if(e.type.includes("color"))for(let l=0;l<3;l+=1)e.values[l]+=(1-e.values[l])*r;return tu(e)}function it(e,r,l){try{return na(e,r)}catch{return e}}function hE(e,r=.15){return cc(e)>.5?ta(e,r):na(e,r)}function ru(e,r,l){try{return hE(e,r)}catch{return e}}const Yh=M.createContext(null);function fc(){return M.useContext(Yh)}const mE=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function gE(e,r){return typeof r=="function"?r(e):{...e,...r}}function yE(e){const{children:r,theme:l}=e,a=fc(),u=M.useMemo(()=>{const s=a===null?{...l}:gE(a,l);return s!=null&&(s[mE]=a!==null),s},[l,a]);return ce.jsx(Yh.Provider,{value:u,children:r})}const Fh=M.createContext();function bE({value:e,...r}){return ce.jsx(Fh.Provider,{value:e??!0,...r})}const SE=()=>M.useContext(Fh)??!1,Ph=M.createContext(void 0);function vE({value:e,children:r}){return ce.jsx(Ph.Provider,{value:e,children:r})}function xE(e){const{theme:r,name:l,props:a}=e;if(!r||!r.components||!r.components[l])return a;const u=r.components[l];return u.defaultProps?tc(u.defaultProps,a):!u.styleOverrides&&!u.variants?tc(u,a):a}function EE({props:e,name:r}){const l=M.useContext(Ph);return xE({props:e,name:r,theme:{components:l}})}const Xh={};function Qh(e,r,l,a=!1){return M.useMemo(()=>{const u=e&&r[e]||r;if(typeof l=="function"){const s=l(u),f=e?{...r,[e]:s}:s;return a?()=>f:f}return e?{...r,[e]:l}:{...r,...l}},[e,r,l,a])}function Kh(e){const{children:r,theme:l,themeId:a}=e,u=Ih(Xh),s=fc()||Xh,f=Qh(a,u,l),d=Qh(a,s,l,!0),m=f.direction==="rtl";return ce.jsx(yE,{theme:d,children:ce.jsx(Pl.Provider,{value:f,children:ce.jsx(bE,{value:m,children:ce.jsx(vE,{value:f==null?void 0:f.components,children:r})})})})}const Zh={theme:void 0};function CE(e){let r,l;return function(u){let s=r;return(s===void 0||u.theme!==l)&&(Zh.theme=u.theme,s=qh(e(Zh)),r=s,l=u.theme),s}}const dc="mode",pc="color-scheme",TE="data-color-scheme";function wE(e){const{defaultMode:r="system",defaultLightColorScheme:l="light",defaultDarkColorScheme:a="dark",modeStorageKey:u=dc,colorSchemeStorageKey:s=pc,attribute:f=TE,colorSchemeNode:d="document.documentElement",nonce:m}=e;let h="",g=f;if(f==="class"&&(g=".%s"),f==="data"&&(g="[data-%s]"),g.startsWith(".")){const v=g.substring(1);h+=`${d}.classList.remove('${v}'.replace('%s', light), '${v}'.replace('%s', dark));
64
+ ${d}.classList.add('${v}'.replace('%s', colorScheme));`}const y=g.match(/\[([^\]]+)\]/);if(y){const[v,S]=y[1].split("=");S||(h+=`${d}.removeAttribute('${v}'.replace('%s', light));
65
+ ${d}.removeAttribute('${v}'.replace('%s', dark));`),h+=`
66
+ ${d}.setAttribute('${v}'.replace('%s', colorScheme), ${S?`${S}.replace('%s', colorScheme)`:'""'});`}else h+=`${d}.setAttribute('${g}', colorScheme);`;return ce.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(function() {
67
67
  try {
68
68
  let colorScheme = '';
69
69
  const mode = localStorage.getItem('${u}') || '${r}';
70
- const dark = localStorage.getItem('${s}-dark') || '${i}';
71
- const light = localStorage.getItem('${s}-light') || '${a}';
70
+ const dark = localStorage.getItem('${s}-dark') || '${a}';
71
+ const light = localStorage.getItem('${s}-light') || '${l}';
72
72
  if (mode === 'system') {
73
73
  // handle system mode
74
74
  const mql = window.matchMedia('(prefers-color-scheme: dark)');
@@ -85,23 +85,23 @@ try {
85
85
  colorScheme = dark;
86
86
  }
87
87
  if (colorScheme) {
88
- ${p}
88
+ ${h}
89
89
  }
90
- } catch(e){}})();`}},"mui-color-scheme-init")}function Lp(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Up(t,r){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return r("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return r("dark")}function tE(t){return Up(t,r=>{if(r==="light")return t.lightColorScheme;if(r==="dark")return t.darkColorScheme})}function nc(t,r){if(typeof window>"u")return;let a;try{a=localStorage.getItem(t)||void 0,a||localStorage.setItem(t,r)}catch{}return a||r}function nE(t){const{defaultMode:r="light",defaultLightColorScheme:a,defaultDarkColorScheme:i,supportedColorSchemes:u=[],modeStorageKey:s=ec,colorSchemeStorageKey:f=tc,storageWindow:h=typeof window>"u"?void 0:window}=t,m=u.join(","),p=u.length>1,[g,y]=D.useState(()=>{const A=nc(s,r),z=nc(`${f}-light`,a),R=nc(`${f}-dark`,i);return{mode:A,systemMode:Lp(A),lightColorScheme:z,darkColorScheme:R}}),[,x]=D.useState(!1),S=D.useRef(!1);D.useEffect(()=>{p&&x(!0),S.current=!0},[p]);const O=tE(g),w=D.useCallback(A=>{y(z=>{if(A===z.mode)return z;const R=A??r;try{localStorage.setItem(s,R)}catch{}return{...z,mode:R,systemMode:Lp(R)}})},[s,r]),B=D.useCallback(A=>{A?typeof A=="string"?A&&!m.includes(A)?console.error(`\`${A}\` does not exist in \`theme.colorSchemes\`.`):y(z=>{const R={...z};return Up(z,M=>{try{localStorage.setItem(`${f}-${M}`,A)}catch{}M==="light"&&(R.lightColorScheme=A),M==="dark"&&(R.darkColorScheme=A)}),R}):y(z=>{const R={...z},M=A.light===null?a:A.light,I=A.dark===null?i:A.dark;if(M)if(!m.includes(M))console.error(`\`${M}\` does not exist in \`theme.colorSchemes\`.`);else{R.lightColorScheme=M;try{localStorage.setItem(`${f}-light`,M)}catch{}}if(I)if(!m.includes(I))console.error(`\`${I}\` does not exist in \`theme.colorSchemes\`.`);else{R.darkColorScheme=I;try{localStorage.setItem(`${f}-dark`,I)}catch{}}return R}):y(z=>{try{localStorage.setItem(`${f}-light`,a),localStorage.setItem(`${f}-dark`,i)}catch{}return{...z,lightColorScheme:a,darkColorScheme:i}})},[m,f,a,i]),T=D.useCallback(A=>{g.mode==="system"&&y(z=>{const R=A!=null&&A.matches?"dark":"light";return z.systemMode===R?z:{...z,systemMode:R}})},[g.mode]),N=D.useRef(T);return N.current=T,D.useEffect(()=>{if(typeof window.matchMedia!="function"||!p)return;const A=(...R)=>N.current(...R),z=window.matchMedia("(prefers-color-scheme: dark)");return z.addListener(A),A(z),()=>{z.removeListener(A)}},[p]),D.useEffect(()=>{if(h&&p){const A=z=>{const R=z.newValue;typeof z.key=="string"&&z.key.startsWith(f)&&(!R||m.match(R))&&(z.key.endsWith("light")&&B({light:R}),z.key.endsWith("dark")&&B({dark:R})),z.key===s&&(!R||["light","dark","system"].includes(R))&&w(R||r)};return h.addEventListener("storage",A),()=>{h.removeEventListener("storage",A)}}},[B,w,s,f,m,r,h,p]),{...g,mode:S.current||!p?g.mode:void 0,systemMode:S.current||!p?g.systemMode:void 0,colorScheme:S.current||!p?O:void 0,setMode:w,setColorScheme:B}}const rE="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function lE(t){const{themeId:r,theme:a={},modeStorageKey:i=ec,colorSchemeStorageKey:u=tc,disableTransitionOnChange:s=!1,defaultColorScheme:f,resolveTheme:h}=t,m={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},p=D.createContext(void 0),g=()=>D.useContext(p)||m;function y(w){var Bn,dn,Ne,Dt,F;const{children:B,theme:T,modeStorageKey:N=i,colorSchemeStorageKey:A=u,disableTransitionOnChange:z=s,storageWindow:R=typeof window>"u"?void 0:window,documentNode:M=typeof document>"u"?void 0:document,colorSchemeNode:I=typeof document>"u"?void 0:document.documentElement,disableNestedContext:te=!1,disableStyleSheetGeneration:G=!1,defaultMode:E="system"}=w,j=D.useRef(!1),$=Ws(),P=D.useContext(p),Q=!!P&&!te,ee=D.useMemo(()=>T||(typeof a=="function"?a():a),[T]),V=ee[r],{colorSchemes:ne={},components:W={},cssVarPrefix:fe,...v}=V||ee,Z=Object.keys(ne).filter(le=>!!ne[le]).join(","),ue=D.useMemo(()=>Z.split(","),[Z]),k=typeof f=="string"?f:f.light,ie=typeof f=="string"?f:f.dark,ye=ne[k]&&ne[ie]?E:((dn=(Bn=ne[v.defaultColorScheme])==null?void 0:Bn.palette)==null?void 0:dn.mode)||((Ne=v.palette)==null?void 0:Ne.mode),{mode:he,setMode:He,systemMode:xe,lightColorScheme:Re,darkColorScheme:de,colorScheme:_e,setColorScheme:pe}=nE({supportedColorSchemes:ue,defaultLightColorScheme:k,defaultDarkColorScheme:ie,modeStorageKey:N,colorSchemeStorageKey:A,defaultMode:ye,storageWindow:R});let me=he,se=_e;Q&&(me=P.mode,se=P.colorScheme);const Ee=se||v.defaultColorScheme,Ye=((Dt=v.generateThemeVars)==null?void 0:Dt.call(v))||v.vars,je={...v,components:W,colorSchemes:ne,cssVarPrefix:fe,vars:Ye};if(typeof je.generateSpacing=="function"&&(je.spacing=je.generateSpacing()),Ee){const le=ne[Ee];le&&typeof le=="object"&&Object.keys(le).forEach(ce=>{le[ce]&&typeof le[ce]=="object"?je[ce]={...je[ce],...le[ce]}:je[ce]=le[ce]})}const De=v.colorSchemeSelector;D.useEffect(()=>{if(se&&I&&De&&De!=="media"){const le=De;let ce=De;if(le==="class"&&(ce=".%s"),le==="data"&&(ce="[data-%s]"),le!=null&&le.startsWith("data-")&&!le.includes("%s")&&(ce=`[${le}="%s"]`),ce.startsWith("."))I.classList.remove(...ue.map(we=>ce.substring(1).replace("%s",we))),I.classList.add(ce.substring(1).replace("%s",se));else{const we=ce.replace("%s",se).match(/\[([^\]]+)\]/);if(we){const[Ve,ze]=we[1].split("=");ze||ue.forEach(tn=>{I.removeAttribute(Ve.replace(se,tn))}),I.setAttribute(Ve,ze?ze.replace(/"|'/g,""):"")}else I.setAttribute(ce,se)}}},[se,De,I,ue]),D.useEffect(()=>{let le;if(z&&j.current&&M){const ce=M.createElement("style");ce.appendChild(M.createTextNode(rE)),M.head.appendChild(ce),window.getComputedStyle(M.body),le=setTimeout(()=>{M.head.removeChild(ce)},1)}return()=>{clearTimeout(le)}},[se,z,M]),D.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);const it=D.useMemo(()=>({allColorSchemes:ue,colorScheme:se,darkColorScheme:de,lightColorScheme:Re,mode:me,setColorScheme:pe,setMode:He,systemMode:xe}),[ue,se,de,Re,me,pe,He,xe]);let vt=!0;(G||v.cssVariables===!1||Q&&($==null?void 0:$.cssVarPrefix)===fe)&&(vt=!1);const fn=ve.jsxs(D.Fragment,{children:[ve.jsx(zp,{themeId:V?r:void 0,theme:h?h(je):je,children:B}),vt&&ve.jsx(vp,{styles:((F=je.generateStyleSheets)==null?void 0:F.call(je))||[]})]});return Q?fn:ve.jsx(p.Provider,{value:it,children:fn})}const x=typeof f=="string"?f:f.light,S=typeof f=="string"?f:f.dark;return{CssVarsProvider:y,useColorScheme:g,getInitColorSchemeScript:w=>eE({colorSchemeStorageKey:u,defaultLightColorScheme:x,defaultDarkColorScheme:S,modeStorageKey:i,...w})}}function aE(t=""){function r(...i){if(!i.length)return"";const u=i[0];return typeof u=="string"&&!u.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${u}${r(...i.slice(1))})`:`, ${u}`}return(i,...u)=>`var(--${t?`${t}-`:""}${i}${r(...u)})`}const Hp=(t,r,a,i=[])=>{let u=t;r.forEach((s,f)=>{f===r.length-1?Array.isArray(u)?u[Number(s)]=a:u&&typeof u=="object"&&(u[s]=a):u&&typeof u=="object"&&(u[s]||(u[s]=i.includes(s)?[]:{}),u=u[s])})},iE=(t,r,a)=>{function i(u,s=[],f=[]){Object.entries(u).forEach(([h,m])=>{(!a||!a([...s,h]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?i(m,[...s,h],Array.isArray(m)?[...f,h]:f):r([...s,h],m,f))})}i(t)},oE=(t,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>t.includes(i))||t[t.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function rc(t,r){const{prefix:a,shouldSkipGeneratingVar:i}=r||{},u={},s={},f={};return iE(t,(h,m,p)=>{if((typeof m=="string"||typeof m=="number")&&(!i||!i(h,m))){const g=`--${a?`${a}-`:""}${h.join("-")}`,y=oE(h,m);Object.assign(u,{[g]:y}),Hp(s,h,`var(${g})`,p),Hp(f,h,`var(${g}, ${y})`,p)}},h=>h[0]==="vars"),{css:u,vars:s,varsWithDefaults:f}}function uE(t,r={}){const{getSelector:a=B,disableCssColorScheme:i,colorSchemeSelector:u}=r,{colorSchemes:s={},components:f,defaultColorScheme:h="light",...m}=t,{vars:p,css:g,varsWithDefaults:y}=rc(m,r);let x=y;const S={},{[h]:O,...w}=s;if(Object.entries(w||{}).forEach(([A,z])=>{const{vars:R,css:M,varsWithDefaults:I}=rc(z,r);x=Kt(x,I),S[A]={css:M,vars:R}}),O){const{css:A,vars:z,varsWithDefaults:R}=rc(O,r);x=Kt(x,R),S[h]={css:A,vars:z}}function B(A,z){var M,I;let R=u;if(u==="class"&&(R=".%s"),u==="data"&&(R="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(R=`[${u}="%s"]`),A){if(R==="media")return t.defaultColorScheme===A?":root":{[`@media (prefers-color-scheme: ${((I=(M=s[A])==null?void 0:M.palette)==null?void 0:I.mode)||A})`]:{":root":z}};if(R)return t.defaultColorScheme===A?`:root, ${R.replace("%s",String(A))}`:R.replace("%s",String(A))}return":root"}return{vars:x,generateThemeVars:()=>{let A={...p};return Object.entries(S).forEach(([,{vars:z}])=>{A=Kt(A,z)}),A},generateStyleSheets:()=>{var te,G;const A=[],z=t.defaultColorScheme||"light";function R(E,j){Object.keys(j).length&&A.push(typeof E=="string"?{[E]:{...j}}:E)}R(a(void 0,{...g}),g);const{[z]:M,...I}=S;if(M){const{css:E}=M,j=(G=(te=s[z])==null?void 0:te.palette)==null?void 0:G.mode,$=!i&&j?{colorScheme:j,...E}:{...E};R(a(z,{...$}),$)}return Object.entries(I).forEach(([E,{css:j}])=>{var Q,ee;const $=(ee=(Q=s[E])==null?void 0:Q.palette)==null?void 0:ee.mode,P=!i&&$?{colorScheme:$,...j}:{...j};R(a(E,{...P}),P)}),A}}}function sE(t){return function(a){return t==="media"?`@media (prefers-color-scheme: ${a})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${a}"] &`:t==="class"?`.${a} &`:t==="data"?`[data-${a}] &`:`${t.replace("%s",a)} &`:"&"}}const Qa={black:"#000",white:"#fff"},cE={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Vl={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Il={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ka={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ql={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Gl={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Yl={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function jp(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Qa.white,default:Qa.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const fE=jp();function Vp(){return{text:{primary:Qa.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Qa.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Ip=Vp();function qp(t,r,a,i){const u=i.light||i,s=i.dark||i*1.5;t[r]||(t.hasOwnProperty(a)?t[r]=t[a]:r==="light"?t.light=Js(t.main,u):r==="dark"&&(t.dark=Zs(t.main,s)))}function dE(t="light"){return t==="dark"?{main:ql[200],light:ql[50],dark:ql[400]}:{main:ql[700],light:ql[400],dark:ql[800]}}function hE(t="light"){return t==="dark"?{main:Vl[200],light:Vl[50],dark:Vl[400]}:{main:Vl[500],light:Vl[300],dark:Vl[700]}}function pE(t="light"){return t==="dark"?{main:Il[500],light:Il[300],dark:Il[700]}:{main:Il[700],light:Il[400],dark:Il[800]}}function mE(t="light"){return t==="dark"?{main:Gl[400],light:Gl[300],dark:Gl[700]}:{main:Gl[700],light:Gl[500],dark:Gl[900]}}function gE(t="light"){return t==="dark"?{main:Yl[400],light:Yl[300],dark:Yl[700]}:{main:Yl[800],light:Yl[500],dark:Yl[900]}}function yE(t="light"){return t==="dark"?{main:Ka[400],light:Ka[300],dark:Ka[700]}:{main:"#ed6c02",light:Ka[500],dark:Ka[900]}}function lc(t){const{mode:r="light",contrastThreshold:a=3,tonalOffset:i=.2,...u}=t,s=t.primary||dE(r),f=t.secondary||hE(r),h=t.error||pE(r),m=t.info||mE(r),p=t.success||gE(r),g=t.warning||yE(r);function y(w){return qx(w,Ip.text.primary)>=a?Ip.text.primary:fE.text.primary}const x=({color:w,name:B,mainShade:T=500,lightShade:N=300,darkShade:A=700})=>{if(w={...w},!w.main&&w[T]&&(w.main=w[T]),!w.hasOwnProperty("main"))throw new Error(wr(11,B?` (${B})`:"",T));if(typeof w.main!="string")throw new Error(wr(12,B?` (${B})`:"",JSON.stringify(w.main)));return qp(w,"light",N,i),qp(w,"dark",A,i),w.contrastText||(w.contrastText=y(w.main)),w};let S;return r==="light"?S=jp():r==="dark"&&(S=Vp()),Kt({common:{...Qa},mode:r,primary:x({color:s,name:"primary"}),secondary:x({color:f,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:x({color:h,name:"error"}),warning:x({color:g,name:"warning"}),info:x({color:m,name:"info"}),success:x({color:p,name:"success"}),grey:cE,contrastThreshold:a,getContrastText:y,augmentColor:x,tonalOffset:i,...S},u)}function bE(t){const r={};return Object.entries(t).forEach(i=>{const[u,s]=i;typeof s=="object"&&(r[u]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),r}function SE(t,r){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...r}}function vE(t){return Math.round(t*1e5)/1e5}const Gp={textTransform:"uppercase"},Yp='"Roboto", "Helvetica", "Arial", sans-serif';function $p(t,r){const{fontFamily:a=Yp,fontSize:i=14,fontWeightLight:u=300,fontWeightRegular:s=400,fontWeightMedium:f=500,fontWeightBold:h=700,htmlFontSize:m=16,allVariants:p,pxToRem:g,...y}=typeof r=="function"?r(t):r,x=i/14,S=g||(B=>`${B/m*x}rem`),O=(B,T,N,A,z)=>({fontFamily:a,fontWeight:B,fontSize:S(T),lineHeight:N,...a===Yp?{letterSpacing:`${vE(A/T)}em`}:{},...z,...p}),w={h1:O(u,96,1.167,-1.5),h2:O(u,60,1.2,-.5),h3:O(s,48,1.167,0),h4:O(s,34,1.235,.25),h5:O(s,24,1.334,0),h6:O(f,20,1.6,.15),subtitle1:O(s,16,1.75,.15),subtitle2:O(f,14,1.57,.1),body1:O(s,16,1.5,.15),body2:O(s,14,1.43,.15),button:O(f,14,1.75,.4,Gp),caption:O(s,12,1.66,.4),overline:O(s,12,2.66,1,Gp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Kt({htmlFontSize:m,pxToRem:S,fontFamily:a,fontSize:i,fontWeightLight:u,fontWeightRegular:s,fontWeightMedium:f,fontWeightBold:h,...w},y,{clone:!1})}const xE=.2,EE=.14,CE=.12;function st(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${xE})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${EE})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${CE})`].join(",")}const TE=["none",st(0,2,1,-1,0,1,1,0,0,1,3,0),st(0,3,1,-2,0,2,2,0,0,1,5,0),st(0,3,3,-2,0,3,4,0,0,1,8,0),st(0,2,4,-1,0,4,5,0,0,1,10,0),st(0,3,5,-1,0,5,8,0,0,1,14,0),st(0,3,5,-1,0,6,10,0,0,1,18,0),st(0,4,5,-2,0,7,10,1,0,2,16,1),st(0,5,5,-3,0,8,10,1,0,3,14,2),st(0,5,6,-3,0,9,12,1,0,3,16,2),st(0,6,6,-3,0,10,14,1,0,4,18,3),st(0,6,7,-4,0,11,15,1,0,4,20,3),st(0,7,8,-4,0,12,17,2,0,5,22,4),st(0,7,8,-4,0,13,19,2,0,5,24,4),st(0,7,9,-4,0,14,21,2,0,5,26,4),st(0,8,9,-5,0,15,22,2,0,6,28,5),st(0,8,10,-5,0,16,24,2,0,6,30,5),st(0,8,11,-5,0,17,26,2,0,6,32,5),st(0,9,11,-5,0,18,28,2,0,7,34,6),st(0,9,12,-6,0,19,29,2,0,7,36,6),st(0,10,13,-6,0,20,31,3,0,8,38,7),st(0,10,13,-6,0,21,33,3,0,8,40,7),st(0,10,14,-6,0,22,35,3,0,8,42,7),st(0,11,14,-7,0,23,36,3,0,9,44,8),st(0,11,15,-7,0,24,38,3,0,9,46,8)],wE={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},AE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Fp(t){return`${Math.round(t)}ms`}function kE(t){if(!t)return 0;const r=t/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function RE(t){const r={...wE,...t.easing},a={...AE,...t.duration};return{getAutoHeightDuration:kE,create:(u=["all"],s={})=>{const{duration:f=a.standard,easing:h=r.easeInOut,delay:m=0,...p}=s;return(Array.isArray(u)?u:[u]).map(g=>`${g} ${typeof f=="string"?f:Fp(f)} ${h} ${typeof m=="string"?m:Fp(m)}`).join(",")},...t,easing:r,duration:a}}const OE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _E(t){return Yn(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function Xp(t={}){const r={...t};function a(i){const u=Object.entries(i);for(let s=0;s<u.length;s++){const[f,h]=u[s];!_E(h)||f.startsWith("unstable_")?delete i[f]:Yn(h)&&(i[f]={...h},a(i[f]))}}return a(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
90
+ } catch(e){}})();`}},"mui-color-scheme-init")}function Wh(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Jh(e,r){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return r("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return r("dark")}function AE(e){return Jh(e,r=>{if(r==="light")return e.lightColorScheme;if(r==="dark")return e.darkColorScheme})}function hc(e,r){if(typeof window>"u")return;let l;try{l=localStorage.getItem(e)||void 0,l||localStorage.setItem(e,r)}catch{}return l||r}function kE(e){const{defaultMode:r="light",defaultLightColorScheme:l,defaultDarkColorScheme:a,supportedColorSchemes:u=[],modeStorageKey:s=dc,colorSchemeStorageKey:f=pc,storageWindow:d=typeof window>"u"?void 0:window}=e,m=u.join(","),h=u.length>1,[g,y]=M.useState(()=>{const k=hc(s,r),z=hc(`${f}-light`,l),A=hc(`${f}-dark`,a);return{mode:k,systemMode:Wh(k),lightColorScheme:z,darkColorScheme:A}}),[,v]=M.useState(!1),S=M.useRef(!1);M.useEffect(()=>{h&&v(!0),S.current=!0},[h]);const R=AE(g),T=M.useCallback(k=>{y(z=>{if(k===z.mode)return z;const A=k??r;try{localStorage.setItem(s,A)}catch{}return{...z,mode:A,systemMode:Wh(A)}})},[s,r]),N=M.useCallback(k=>{k?typeof k=="string"?k&&!m.includes(k)?console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`):y(z=>{const A={...z};return Jh(z,_=>{try{localStorage.setItem(`${f}-${_}`,k)}catch{}_==="light"&&(A.lightColorScheme=k),_==="dark"&&(A.darkColorScheme=k)}),A}):y(z=>{const A={...z},_=k.light===null?l:k.light,H=k.dark===null?a:k.dark;if(_)if(!m.includes(_))console.error(`\`${_}\` does not exist in \`theme.colorSchemes\`.`);else{A.lightColorScheme=_;try{localStorage.setItem(`${f}-light`,_)}catch{}}if(H)if(!m.includes(H))console.error(`\`${H}\` does not exist in \`theme.colorSchemes\`.`);else{A.darkColorScheme=H;try{localStorage.setItem(`${f}-dark`,H)}catch{}}return A}):y(z=>{try{localStorage.setItem(`${f}-light`,l),localStorage.setItem(`${f}-dark`,a)}catch{}return{...z,lightColorScheme:l,darkColorScheme:a}})},[m,f,l,a]),w=M.useCallback(k=>{g.mode==="system"&&y(z=>{const A=k!=null&&k.matches?"dark":"light";return z.systemMode===A?z:{...z,systemMode:A}})},[g.mode]),B=M.useRef(w);return B.current=w,M.useEffect(()=>{if(typeof window.matchMedia!="function"||!h)return;const k=(...A)=>B.current(...A),z=window.matchMedia("(prefers-color-scheme: dark)");return z.addListener(k),k(z),()=>{z.removeListener(k)}},[h]),M.useEffect(()=>{if(d&&h){const k=z=>{const A=z.newValue;typeof z.key=="string"&&z.key.startsWith(f)&&(!A||m.match(A))&&(z.key.endsWith("light")&&N({light:A}),z.key.endsWith("dark")&&N({dark:A})),z.key===s&&(!A||["light","dark","system"].includes(A))&&T(A||r)};return d.addEventListener("storage",k),()=>{d.removeEventListener("storage",k)}}},[N,T,s,f,m,r,d,h]),{...g,mode:S.current||!h?g.mode:void 0,systemMode:S.current||!h?g.systemMode:void 0,colorScheme:S.current||!h?R:void 0,setMode:T,setColorScheme:N}}const RE="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function OE(e){const{themeId:r,theme:l={},modeStorageKey:a=dc,colorSchemeStorageKey:u=pc,disableTransitionOnChange:s=!1,defaultColorScheme:f,resolveTheme:d}=e,m={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},h=M.createContext(void 0),g=()=>M.useContext(h)||m;function y(T){var gn,xe,ze,Rt,X;const{children:N,theme:w,modeStorageKey:B=a,colorSchemeStorageKey:k=u,disableTransitionOnChange:z=s,storageWindow:A=typeof window>"u"?void 0:window,documentNode:_=typeof document>"u"?void 0:document,colorSchemeNode:H=typeof document>"u"?void 0:document.documentElement,disableNestedContext:ne=!1,disableStyleSheetGeneration:V=!1,defaultMode:E="system"}=T,I=M.useRef(!1),Y=fc(),F=M.useContext(h),P=!!F&&!ne,ee=M.useMemo(()=>w||(typeof l=="function"?l():l),[w]),$=ee[r],{colorSchemes:Z={},components:Q={},cssVarPrefix:ue,...x}=$||ee,K=Object.keys(Z).filter(le=>!!Z[le]).join(","),se=M.useMemo(()=>K.split(","),[K]),O=typeof f=="string"?f:f.light,ie=typeof f=="string"?f:f.dark,ye=Z[O]&&Z[ie]?E:((xe=(gn=Z[x.defaultColorScheme])==null?void 0:gn.palette)==null?void 0:xe.mode)||((ze=x.palette)==null?void 0:ze.mode),{mode:he,setMode:Be,systemMode:Ce,lightColorScheme:ke,darkColorScheme:pe,colorScheme:De,setColorScheme:me}=kE({supportedColorSchemes:se,defaultLightColorScheme:O,defaultDarkColorScheme:ie,modeStorageKey:B,colorSchemeStorageKey:k,defaultMode:ye,storageWindow:A});let ge=he,fe=De;P&&(ge=F.mode,fe=F.colorScheme);const Ee=fe||x.defaultColorScheme,qe=((Rt=x.generateThemeVars)==null?void 0:Rt.call(x))||x.vars,Le={...x,components:Q,colorSchemes:Z,cssVarPrefix:ue,vars:qe};if(typeof Le.generateSpacing=="function"&&(Le.spacing=Le.generateSpacing()),Ee){const le=Z[Ee];le&&typeof le=="object"&&Object.keys(le).forEach(de=>{le[de]&&typeof le[de]=="object"?Le[de]={...Le[de],...le[de]}:Le[de]=le[de]})}const Oe=x.colorSchemeSelector;M.useEffect(()=>{if(fe&&H&&Oe&&Oe!=="media"){const le=Oe;let de=Oe;if(le==="class"&&(de=".%s"),le==="data"&&(de="[data-%s]"),le!=null&&le.startsWith("data-")&&!le.includes("%s")&&(de=`[${le}="%s"]`),de.startsWith("."))H.classList.remove(...se.map(Ae=>de.substring(1).replace("%s",Ae))),H.classList.add(de.substring(1).replace("%s",fe));else{const Ae=de.replace("%s",fe).match(/\[([^\]]+)\]/);if(Ae){const[Ve,Ue]=Ae[1].split("=");Ue||se.forEach(on=>{H.removeAttribute(Ve.replace(fe,on))}),H.setAttribute(Ve,Ue?Ue.replace(/"|'/g,""):"")}else H.setAttribute(de,fe)}}},[fe,Oe,H,se]),M.useEffect(()=>{let le;if(z&&I.current&&_){const de=_.createElement("style");de.appendChild(_.createTextNode(RE)),_.head.appendChild(de),window.getComputedStyle(_.body),le=setTimeout(()=>{_.head.removeChild(de)},1)}return()=>{clearTimeout(le)}},[fe,z,_]),M.useEffect(()=>(I.current=!0,()=>{I.current=!1}),[]);const Pe=M.useMemo(()=>({allColorSchemes:se,colorScheme:fe,darkColorScheme:pe,lightColorScheme:ke,mode:ge,setColorScheme:me,setMode:Be,systemMode:Ce}),[se,fe,pe,ke,ge,me,Be,Ce]);let ht=!0;(V||x.cssVariables===!1||P&&(Y==null?void 0:Y.cssVarPrefix)===ue)&&(ht=!1);const Qt=ce.jsxs(M.Fragment,{children:[ce.jsx(Kh,{themeId:$?r:void 0,theme:d?d(Le):Le,children:N}),ht&&ce.jsx(Lh,{styles:((X=Le.generateStyleSheets)==null?void 0:X.call(Le))||[]})]});return P?Qt:ce.jsx(h.Provider,{value:Pe,children:Qt})}const v=typeof f=="string"?f:f.light,S=typeof f=="string"?f:f.dark;return{CssVarsProvider:y,useColorScheme:g,getInitColorSchemeScript:T=>wE({colorSchemeStorageKey:u,defaultLightColorScheme:v,defaultDarkColorScheme:S,modeStorageKey:a,...T})}}function ME(e=""){function r(...a){if(!a.length)return"";const u=a[0];return typeof u=="string"&&!u.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${u}${r(...a.slice(1))})`:`, ${u}`}return(a,...u)=>`var(--${e?`${e}-`:""}${a}${r(...u)})`}const em=(e,r,l,a=[])=>{let u=e;r.forEach((s,f)=>{f===r.length-1?Array.isArray(u)?u[Number(s)]=l:u&&typeof u=="object"&&(u[s]=l):u&&typeof u=="object"&&(u[s]||(u[s]=a.includes(s)?[]:{}),u=u[s])})},_E=(e,r,l)=>{function a(u,s=[],f=[]){Object.entries(u).forEach(([d,m])=>{(!l||!l([...s,d]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?a(m,[...s,d],Array.isArray(m)?[...f,d]:f):r([...s,d],m,f))})}a(e)},DE=(e,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(a=>e.includes(a))||e[e.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function mc(e,r){const{prefix:l,shouldSkipGeneratingVar:a}=r||{},u={},s={},f={};return _E(e,(d,m,h)=>{if((typeof m=="string"||typeof m=="number")&&(!a||!a(d,m))){const g=`--${l?`${l}-`:""}${d.join("-")}`,y=DE(d,m);Object.assign(u,{[g]:y}),em(s,d,`var(${g})`,h),em(f,d,`var(${g}, ${y})`,h)}},d=>d[0]==="vars"),{css:u,vars:s,varsWithDefaults:f}}function zE(e,r={}){const{getSelector:l=N,disableCssColorScheme:a,colorSchemeSelector:u}=r,{colorSchemes:s={},components:f,defaultColorScheme:d="light",...m}=e,{vars:h,css:g,varsWithDefaults:y}=mc(m,r);let v=y;const S={},{[d]:R,...T}=s;if(Object.entries(T||{}).forEach(([k,z])=>{const{vars:A,css:_,varsWithDefaults:H}=mc(z,r);v=nn(v,H),S[k]={css:_,vars:A}}),R){const{css:k,vars:z,varsWithDefaults:A}=mc(R,r);v=nn(v,A),S[d]={css:k,vars:z}}function N(k,z){var _,H;let A=u;if(u==="class"&&(A=".%s"),u==="data"&&(A="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(A=`[${u}="%s"]`),k){if(A==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${((H=(_=s[k])==null?void 0:_.palette)==null?void 0:H.mode)||k})`]:{":root":z}};if(A)return e.defaultColorScheme===k?`:root, ${A.replace("%s",String(k))}`:A.replace("%s",String(k))}return":root"}return{vars:v,generateThemeVars:()=>{let k={...h};return Object.entries(S).forEach(([,{vars:z}])=>{k=nn(k,z)}),k},generateStyleSheets:()=>{var ne,V;const k=[],z=e.defaultColorScheme||"light";function A(E,I){Object.keys(I).length&&k.push(typeof E=="string"?{[E]:{...I}}:E)}A(l(void 0,{...g}),g);const{[z]:_,...H}=S;if(_){const{css:E}=_,I=(V=(ne=s[z])==null?void 0:ne.palette)==null?void 0:V.mode,Y=!a&&I?{colorScheme:I,...E}:{...E};A(l(z,{...Y}),Y)}return Object.entries(H).forEach(([E,{css:I}])=>{var P,ee;const Y=(ee=(P=s[E])==null?void 0:P.palette)==null?void 0:ee.mode,F=!a&&Y?{colorScheme:Y,...I}:{...I};A(l(E,{...F}),F)}),k}}}function NE(e){return function(l){return e==="media"?`@media (prefers-color-scheme: ${l})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${l}"] &`:e==="class"?`.${l} &`:e==="data"?`[data-${l}] &`:`${e.replace("%s",l)} &`:"&"}}const ra={black:"#000",white:"#fff"},BE={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Yi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Fi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ia={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Pi={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Xi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Qi={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function tm(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ra.white,default:ra.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const LE=tm();function nm(){return{text:{primary:ra.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ra.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const rm=nm();function im(e,r,l,a){const u=a.light||a,s=a.dark||a*1.5;e[r]||(e.hasOwnProperty(l)?e[r]=e[l]:r==="light"?e.light=na(e.main,u):r==="dark"&&(e.dark=ta(e.main,s)))}function UE(e="light"){return e==="dark"?{main:Pi[200],light:Pi[50],dark:Pi[400]}:{main:Pi[700],light:Pi[400],dark:Pi[800]}}function jE(e="light"){return e==="dark"?{main:Yi[200],light:Yi[50],dark:Yi[400]}:{main:Yi[500],light:Yi[300],dark:Yi[700]}}function HE(e="light"){return e==="dark"?{main:Fi[500],light:Fi[300],dark:Fi[700]}:{main:Fi[700],light:Fi[400],dark:Fi[800]}}function IE(e="light"){return e==="dark"?{main:Xi[400],light:Xi[300],dark:Xi[700]}:{main:Xi[700],light:Xi[500],dark:Xi[900]}}function VE(e="light"){return e==="dark"?{main:Qi[400],light:Qi[300],dark:Qi[700]}:{main:Qi[800],light:Qi[500],dark:Qi[900]}}function qE(e="light"){return e==="dark"?{main:ia[400],light:ia[300],dark:ia[700]}:{main:"#ed6c02",light:ia[500],dark:ia[900]}}function gc(e){const{mode:r="light",contrastThreshold:l=3,tonalOffset:a=.2,...u}=e,s=e.primary||UE(r),f=e.secondary||jE(r),d=e.error||HE(r),m=e.info||IE(r),h=e.success||VE(r),g=e.warning||qE(r);function y(T){return pE(T,rm.text.primary)>=l?rm.text.primary:LE.text.primary}const v=({color:T,name:N,mainShade:w=500,lightShade:B=300,darkShade:k=700})=>{if(T={...T},!T.main&&T[w]&&(T.main=T[w]),!T.hasOwnProperty("main"))throw new Error(Nr(11,N?` (${N})`:"",w));if(typeof T.main!="string")throw new Error(Nr(12,N?` (${N})`:"",JSON.stringify(T.main)));return im(T,"light",B,a),im(T,"dark",k,a),T.contrastText||(T.contrastText=y(T.main)),T};let S;return r==="light"?S=tm():r==="dark"&&(S=nm()),nn({common:{...ra},mode:r,primary:v({color:s,name:"primary"}),secondary:v({color:f,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:d,name:"error"}),warning:v({color:g,name:"warning"}),info:v({color:m,name:"info"}),success:v({color:h,name:"success"}),grey:BE,contrastThreshold:l,getContrastText:y,augmentColor:v,tonalOffset:a,...S},u)}function $E(e){const r={};return Object.entries(e).forEach(a=>{const[u,s]=a;typeof s=="object"&&(r[u]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),r}function GE(e,r){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...r}}function YE(e){return Math.round(e*1e5)/1e5}const lm={textTransform:"uppercase"},am='"Roboto", "Helvetica", "Arial", sans-serif';function om(e,r){const{fontFamily:l=am,fontSize:a=14,fontWeightLight:u=300,fontWeightRegular:s=400,fontWeightMedium:f=500,fontWeightBold:d=700,htmlFontSize:m=16,allVariants:h,pxToRem:g,...y}=typeof r=="function"?r(e):r,v=a/14,S=g||(N=>`${N/m*v}rem`),R=(N,w,B,k,z)=>({fontFamily:l,fontWeight:N,fontSize:S(w),lineHeight:B,...l===am?{letterSpacing:`${YE(k/w)}em`}:{},...z,...h}),T={h1:R(u,96,1.167,-1.5),h2:R(u,60,1.2,-.5),h3:R(s,48,1.167,0),h4:R(s,34,1.235,.25),h5:R(s,24,1.334,0),h6:R(f,20,1.6,.15),subtitle1:R(s,16,1.75,.15),subtitle2:R(f,14,1.57,.1),body1:R(s,16,1.5,.15),body2:R(s,14,1.43,.15),button:R(f,14,1.75,.4,lm),caption:R(s,12,1.66,.4),overline:R(s,12,2.66,1,lm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nn({htmlFontSize:m,pxToRem:S,fontFamily:l,fontSize:a,fontWeightLight:u,fontWeightRegular:s,fontWeightMedium:f,fontWeightBold:d,...T},y,{clone:!1})}const FE=.2,PE=.14,XE=.12;function pt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${FE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${PE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${XE})`].join(",")}const QE=["none",pt(0,2,1,-1,0,1,1,0,0,1,3,0),pt(0,3,1,-2,0,2,2,0,0,1,5,0),pt(0,3,3,-2,0,3,4,0,0,1,8,0),pt(0,2,4,-1,0,4,5,0,0,1,10,0),pt(0,3,5,-1,0,5,8,0,0,1,14,0),pt(0,3,5,-1,0,6,10,0,0,1,18,0),pt(0,4,5,-2,0,7,10,1,0,2,16,1),pt(0,5,5,-3,0,8,10,1,0,3,14,2),pt(0,5,6,-3,0,9,12,1,0,3,16,2),pt(0,6,6,-3,0,10,14,1,0,4,18,3),pt(0,6,7,-4,0,11,15,1,0,4,20,3),pt(0,7,8,-4,0,12,17,2,0,5,22,4),pt(0,7,8,-4,0,13,19,2,0,5,24,4),pt(0,7,9,-4,0,14,21,2,0,5,26,4),pt(0,8,9,-5,0,15,22,2,0,6,28,5),pt(0,8,10,-5,0,16,24,2,0,6,30,5),pt(0,8,11,-5,0,17,26,2,0,6,32,5),pt(0,9,11,-5,0,18,28,2,0,7,34,6),pt(0,9,12,-6,0,19,29,2,0,7,36,6),pt(0,10,13,-6,0,20,31,3,0,8,38,7),pt(0,10,13,-6,0,21,33,3,0,8,40,7),pt(0,10,14,-6,0,22,35,3,0,8,42,7),pt(0,11,14,-7,0,23,36,3,0,9,44,8),pt(0,11,15,-7,0,24,38,3,0,9,46,8)],KE={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ZE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function um(e){return`${Math.round(e)}ms`}function WE(e){if(!e)return 0;const r=e/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function JE(e){const r={...KE,...e.easing},l={...ZE,...e.duration};return{getAutoHeightDuration:WE,create:(u=["all"],s={})=>{const{duration:f=l.standard,easing:d=r.easeInOut,delay:m=0,...h}=s;return(Array.isArray(u)?u:[u]).map(g=>`${g} ${typeof f=="string"?f:um(f)} ${d} ${typeof m=="string"?m:um(m)}`).join(",")},...e,easing:r,duration:l}}const e2={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function t2(e){return tr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function sm(e={}){const r={...e};function l(a){const u=Object.entries(a);for(let s=0;s<u.length;s++){const[f,d]=u[s];!t2(d)||f.startsWith("unstable_")?delete a[f]:tr(d)&&(a[f]={...d},l(a[f]))}}return l(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
91
91
 
92
92
  const theme = ${JSON.stringify(r,null,2)};
93
93
 
94
94
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
95
95
  theme.transitions = createTransitions(theme.transitions || {});
96
96
 
97
- export default theme;`}function ac(t={},...r){const{breakpoints:a,mixins:i={},spacing:u,palette:s={},transitions:f={},typography:h={},shape:m,...p}=t;if(t.vars)throw new Error(wr(20));const g=lc(s),y=Fs(t);let x=Kt(y,{mixins:SE(y.breakpoints,i),palette:g,shadows:TE.slice(),typography:$p(g,h),transitions:RE(f),zIndex:{...OE}});return x=Kt(x,p),x=r.reduce((S,O)=>Kt(S,O),x),x.unstable_sxConfig={...Xa,...p==null?void 0:p.unstable_sxConfig},x.unstable_sx=function(O){return rl({sx:O,theme:this})},x.toRuntimeSource=Xp,x}function ic(t){let r;return t<1?r=5.11916*t**2:r=4.5*Math.log(t+1)+2,Math.round(r*10)/1e3}const ME=[...Array(25)].map((t,r)=>{if(r===0)return"none";const a=ic(r);return`linear-gradient(rgba(255 255 255 / ${a}), rgba(255 255 255 / ${a}))`});function Pp(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function Qp(t){return t==="dark"?ME:[]}function DE(t){const{palette:r={mode:"light"},opacity:a,overlays:i,...u}=t,s=lc(r);return{palette:s,opacity:{...Pp(s.mode),...a},overlays:i||Qp(s.mode),...u}}function NE(t){var r;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((r=t[1])!=null&&r.match(/(mode|contrastThreshold|tonalOffset)/))}const zE=t=>[...[...Array(25)].map((r,a)=>`--${t?`${t}-`:""}overlays-${a}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],BE=t=>(r,a)=>{const i=t.rootSelector||":root",u=t.colorSchemeSelector;let s=u;if(u==="class"&&(s=".%s"),u==="data"&&(s="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(s=`[${u}="%s"]`),t.defaultColorScheme===r){if(r==="dark"){const f={};return zE(t.cssVarPrefix).forEach(h=>{f[h]=a[h],delete a[h]}),s==="media"?{[i]:a,"@media (prefers-color-scheme: dark)":{[i]:f}}:s?{[s.replace("%s",r)]:f,[`${i}, ${s.replace("%s",r)}`]:a}:{[i]:{...a,...f}}}if(s&&s!=="media")return`${i}, ${s.replace("%s",String(r))}`}else if(r){if(s==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[i]:a}};if(s)return s.replace("%s",String(r))}return i};function LE(t,r){r.forEach(a=>{t[a]||(t[a]={})})}function X(t,r,a){!t[r]&&a&&(t[r]=a)}function Za(t){return!t||!t.startsWith("hsl")?t:Rp(t)}function lr(t,r){`${r}Channel`in t||(t[`${r}Channel`]=Pa(Za(t[r])))}function UE(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const $n=t=>{try{return t()}catch{}},HE=(t="mui")=>aE(t);function oc(t,r,a,i){if(!r)return;r=r===!0?{}:r;const u=i==="dark"?"dark":"light";if(!a){t[i]=DE({...r,palette:{mode:u,...r==null?void 0:r.palette}});return}const{palette:s,...f}=ac({...a,palette:{mode:u,...r==null?void 0:r.palette}});return t[i]={...r,palette:s,opacity:{...Pp(u),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||Qp(u)},f}function jE(t={},...r){const{colorSchemes:a={light:!0},defaultColorScheme:i,disableCssColorScheme:u=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:f=NE,colorSchemeSelector:h=a.light&&a.dark?"media":void 0,rootSelector:m=":root",...p}=t,g=Object.keys(a)[0],y=i||(a.light&&g!=="light"?"light":g),x=HE(s),{[y]:S,light:O,dark:w,...B}=a,T={...B};let N=S;if((y==="dark"&&!("dark"in a)||y==="light"&&!("light"in a))&&(N=!0),!N)throw new Error(wr(21,y));const A=oc(T,N,p,y);O&&!T.light&&oc(T,O,void 0,"light"),w&&!T.dark&&oc(T,w,void 0,"dark");let z={defaultColorScheme:y,...A,cssVarPrefix:s,colorSchemeSelector:h,rootSelector:m,getCssVar:x,colorSchemes:T,font:{...bE(A.typography),...A.font},spacing:UE(p.spacing)};Object.keys(z.colorSchemes).forEach(G=>{const E=z.colorSchemes[G].palette,j=$=>{const P=$.split("-"),Q=P[1],ee=P[2];return x($,E[Q][ee])};if(E.mode==="light"&&(X(E.common,"background","#fff"),X(E.common,"onBackground","#000")),E.mode==="dark"&&(X(E.common,"background","#000"),X(E.common,"onBackground","#fff")),LE(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){X(E.Alert,"errorColor",et(E.error.light,.6)),X(E.Alert,"infoColor",et(E.info.light,.6)),X(E.Alert,"successColor",et(E.success.light,.6)),X(E.Alert,"warningColor",et(E.warning.light,.6)),X(E.Alert,"errorFilledBg",j("palette-error-main")),X(E.Alert,"infoFilledBg",j("palette-info-main")),X(E.Alert,"successFilledBg",j("palette-success-main")),X(E.Alert,"warningFilledBg",j("palette-warning-main")),X(E.Alert,"errorFilledColor",$n(()=>E.getContrastText(E.error.main))),X(E.Alert,"infoFilledColor",$n(()=>E.getContrastText(E.info.main))),X(E.Alert,"successFilledColor",$n(()=>E.getContrastText(E.success.main))),X(E.Alert,"warningFilledColor",$n(()=>E.getContrastText(E.warning.main))),X(E.Alert,"errorStandardBg",tt(E.error.light,.9)),X(E.Alert,"infoStandardBg",tt(E.info.light,.9)),X(E.Alert,"successStandardBg",tt(E.success.light,.9)),X(E.Alert,"warningStandardBg",tt(E.warning.light,.9)),X(E.Alert,"errorIconColor",j("palette-error-main")),X(E.Alert,"infoIconColor",j("palette-info-main")),X(E.Alert,"successIconColor",j("palette-success-main")),X(E.Alert,"warningIconColor",j("palette-warning-main")),X(E.AppBar,"defaultBg",j("palette-grey-100")),X(E.Avatar,"defaultBg",j("palette-grey-400")),X(E.Button,"inheritContainedBg",j("palette-grey-300")),X(E.Button,"inheritContainedHoverBg",j("palette-grey-A100")),X(E.Chip,"defaultBorder",j("palette-grey-400")),X(E.Chip,"defaultAvatarColor",j("palette-grey-700")),X(E.Chip,"defaultIconColor",j("palette-grey-700")),X(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),X(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),X(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),X(E.LinearProgress,"primaryBg",tt(E.primary.main,.62)),X(E.LinearProgress,"secondaryBg",tt(E.secondary.main,.62)),X(E.LinearProgress,"errorBg",tt(E.error.main,.62)),X(E.LinearProgress,"infoBg",tt(E.info.main,.62)),X(E.LinearProgress,"successBg",tt(E.success.main,.62)),X(E.LinearProgress,"warningBg",tt(E.warning.main,.62)),X(E.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.11)`),X(E.Slider,"primaryTrack",tt(E.primary.main,.62)),X(E.Slider,"secondaryTrack",tt(E.secondary.main,.62)),X(E.Slider,"errorTrack",tt(E.error.main,.62)),X(E.Slider,"infoTrack",tt(E.info.main,.62)),X(E.Slider,"successTrack",tt(E.success.main,.62)),X(E.Slider,"warningTrack",tt(E.warning.main,.62));const $=Fo(E.background.default,.8);X(E.SnackbarContent,"bg",$),X(E.SnackbarContent,"color",$n(()=>E.getContrastText($))),X(E.SpeedDialAction,"fabHoverBg",Fo(E.background.paper,.15)),X(E.StepConnector,"border",j("palette-grey-400")),X(E.StepContent,"border",j("palette-grey-400")),X(E.Switch,"defaultColor",j("palette-common-white")),X(E.Switch,"defaultDisabledColor",j("palette-grey-100")),X(E.Switch,"primaryDisabledColor",tt(E.primary.main,.62)),X(E.Switch,"secondaryDisabledColor",tt(E.secondary.main,.62)),X(E.Switch,"errorDisabledColor",tt(E.error.main,.62)),X(E.Switch,"infoDisabledColor",tt(E.info.main,.62)),X(E.Switch,"successDisabledColor",tt(E.success.main,.62)),X(E.Switch,"warningDisabledColor",tt(E.warning.main,.62)),X(E.TableCell,"border",tt($o(E.divider,1),.88)),X(E.Tooltip,"bg",$o(E.grey[700],.92))}if(E.mode==="dark"){X(E.Alert,"errorColor",tt(E.error.light,.6)),X(E.Alert,"infoColor",tt(E.info.light,.6)),X(E.Alert,"successColor",tt(E.success.light,.6)),X(E.Alert,"warningColor",tt(E.warning.light,.6)),X(E.Alert,"errorFilledBg",j("palette-error-dark")),X(E.Alert,"infoFilledBg",j("palette-info-dark")),X(E.Alert,"successFilledBg",j("palette-success-dark")),X(E.Alert,"warningFilledBg",j("palette-warning-dark")),X(E.Alert,"errorFilledColor",$n(()=>E.getContrastText(E.error.dark))),X(E.Alert,"infoFilledColor",$n(()=>E.getContrastText(E.info.dark))),X(E.Alert,"successFilledColor",$n(()=>E.getContrastText(E.success.dark))),X(E.Alert,"warningFilledColor",$n(()=>E.getContrastText(E.warning.dark))),X(E.Alert,"errorStandardBg",et(E.error.light,.9)),X(E.Alert,"infoStandardBg",et(E.info.light,.9)),X(E.Alert,"successStandardBg",et(E.success.light,.9)),X(E.Alert,"warningStandardBg",et(E.warning.light,.9)),X(E.Alert,"errorIconColor",j("palette-error-main")),X(E.Alert,"infoIconColor",j("palette-info-main")),X(E.Alert,"successIconColor",j("palette-success-main")),X(E.Alert,"warningIconColor",j("palette-warning-main")),X(E.AppBar,"defaultBg",j("palette-grey-900")),X(E.AppBar,"darkBg",j("palette-background-paper")),X(E.AppBar,"darkColor",j("palette-text-primary")),X(E.Avatar,"defaultBg",j("palette-grey-600")),X(E.Button,"inheritContainedBg",j("palette-grey-800")),X(E.Button,"inheritContainedHoverBg",j("palette-grey-700")),X(E.Chip,"defaultBorder",j("palette-grey-700")),X(E.Chip,"defaultAvatarColor",j("palette-grey-300")),X(E.Chip,"defaultIconColor",j("palette-grey-300")),X(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),X(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),X(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),X(E.LinearProgress,"primaryBg",et(E.primary.main,.5)),X(E.LinearProgress,"secondaryBg",et(E.secondary.main,.5)),X(E.LinearProgress,"errorBg",et(E.error.main,.5)),X(E.LinearProgress,"infoBg",et(E.info.main,.5)),X(E.LinearProgress,"successBg",et(E.success.main,.5)),X(E.LinearProgress,"warningBg",et(E.warning.main,.5)),X(E.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.13)`),X(E.Slider,"primaryTrack",et(E.primary.main,.5)),X(E.Slider,"secondaryTrack",et(E.secondary.main,.5)),X(E.Slider,"errorTrack",et(E.error.main,.5)),X(E.Slider,"infoTrack",et(E.info.main,.5)),X(E.Slider,"successTrack",et(E.success.main,.5)),X(E.Slider,"warningTrack",et(E.warning.main,.5));const $=Fo(E.background.default,.98);X(E.SnackbarContent,"bg",$),X(E.SnackbarContent,"color",$n(()=>E.getContrastText($))),X(E.SpeedDialAction,"fabHoverBg",Fo(E.background.paper,.15)),X(E.StepConnector,"border",j("palette-grey-600")),X(E.StepContent,"border",j("palette-grey-600")),X(E.Switch,"defaultColor",j("palette-grey-300")),X(E.Switch,"defaultDisabledColor",j("palette-grey-600")),X(E.Switch,"primaryDisabledColor",et(E.primary.main,.55)),X(E.Switch,"secondaryDisabledColor",et(E.secondary.main,.55)),X(E.Switch,"errorDisabledColor",et(E.error.main,.55)),X(E.Switch,"infoDisabledColor",et(E.info.main,.55)),X(E.Switch,"successDisabledColor",et(E.success.main,.55)),X(E.Switch,"warningDisabledColor",et(E.warning.main,.55)),X(E.TableCell,"border",et($o(E.divider,1),.68)),X(E.Tooltip,"bg",$o(E.grey[700],.92))}lr(E.background,"default"),lr(E.background,"paper"),lr(E.common,"background"),lr(E.common,"onBackground"),lr(E,"divider"),Object.keys(E).forEach($=>{const P=E[$];P&&typeof P=="object"&&(P.main&&X(E[$],"mainChannel",Pa(Za(P.main))),P.light&&X(E[$],"lightChannel",Pa(Za(P.light))),P.dark&&X(E[$],"darkChannel",Pa(Za(P.dark))),P.contrastText&&X(E[$],"contrastTextChannel",Pa(Za(P.contrastText))),$==="text"&&(lr(E[$],"primary"),lr(E[$],"secondary")),$==="action"&&(P.active&&lr(E[$],"active"),P.selected&&lr(E[$],"selected")))})}),z=r.reduce((G,E)=>Kt(G,E),z);const R={prefix:s,disableCssColorScheme:u,shouldSkipGeneratingVar:f,getSelector:BE(z)},{vars:M,generateThemeVars:I,generateStyleSheets:te}=uE(z,R);return z.vars=M,Object.entries(z.colorSchemes[z.defaultColorScheme]).forEach(([G,E])=>{z[G]=E}),z.generateThemeVars=I,z.generateStyleSheets=te,z.generateSpacing=function(){return Cp(p.spacing,Ys(this))},z.getColorSchemeSelector=sE(h),z.spacing=z.generateSpacing(),z.shouldSkipGeneratingVar=f,z.unstable_sxConfig={...Xa,...p==null?void 0:p.unstable_sxConfig},z.unstable_sx=function(E){return rl({sx:E,theme:this})},z.toRuntimeSource=Xp,z}function Kp(t,r,a){t.colorSchemes&&a&&(t.colorSchemes[r]={...a!==!0&&a,palette:lc({...a===!0?{}:a.palette,mode:r})})}function Xo(t={},...r){const{palette:a,cssVariables:i=!1,colorSchemes:u=a?void 0:{light:!0},defaultColorScheme:s=a==null?void 0:a.mode,...f}=t,h=s||"light",m=u==null?void 0:u[h],p={...u,...a?{[h]:{...typeof m!="boolean"&&m,palette:a}}:void 0};if(i===!1){if(!("colorSchemes"in t))return ac(t,...r);let g=a;"palette"in t||p[h]&&(p[h]!==!0?g=p[h].palette:h==="dark"&&(g={mode:"dark"}));const y=ac({...t,palette:g},...r);return y.defaultColorScheme=h,y.colorSchemes=p,y.palette.mode==="light"&&(y.colorSchemes.light={...p.light!==!0&&p.light,palette:y.palette},Kp(y,"dark",p.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:y.palette},Kp(y,"light",p.light)),y}return!a&&!("light"in p)&&h==="light"&&(p.light=!0),jE({...f,colorSchemes:p,defaultColorScheme:h,...typeof i!="boolean"&&i},...r)}const uc=Xo(),ar="$$material";function Po(){const t=wp(uc);return t[ar]||t}function VE(t){return ve.jsx(Mx,{...t,defaultTheme:uc,themeId:ar})}function IE(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const Zp=t=>IE(t)&&t!=="classes",Fn=Bx({themeId:ar,defaultTheme:uc,rootShouldForwardProp:Zp});function qE(t){return function(a){return ve.jsx(VE,{styles:typeof t=="function"?i=>t({theme:i,...a}):t})}}function GE(){return xx}const ll=Jx;function $l(t){return Zx(t)}function Jp(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function YE(t,r=!1){return t&&(Jp(t.value)&&t.value!==""||r&&Jp(t.defaultValue)&&t.defaultValue!=="")}function $E(t){return nl("MuiInputBase",t)}const sc=Hl("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Wp;const FE=(t,r)=>{const{ownerState:a}=t;return[r.root,a.formControl&&r.formControl,a.startAdornment&&r.adornedStart,a.endAdornment&&r.adornedEnd,a.error&&r.error,a.size==="small"&&r.sizeSmall,a.multiline&&r.multiline,a.color&&r[`color${bn(a.color)}`],a.fullWidth&&r.fullWidth,a.hiddenLabel&&r.hiddenLabel]},XE=(t,r)=>{const{ownerState:a}=t;return[r.input,a.size==="small"&&r.inputSizeSmall,a.multiline&&r.inputMultiline,a.type==="search"&&r.inputTypeSearch,a.startAdornment&&r.inputAdornedStart,a.endAdornment&&r.inputAdornedEnd,a.hiddenLabel&&r.inputHiddenLabel]},PE=t=>{const{classes:r,color:a,disabled:i,error:u,endAdornment:s,focused:f,formControl:h,fullWidth:m,hiddenLabel:p,multiline:g,readOnly:y,size:x,startAdornment:S,type:O}=t,w={root:["root",`color${bn(a)}`,i&&"disabled",u&&"error",m&&"fullWidth",f&&"focused",h&&"formControl",x&&x!=="medium"&&`size${bn(x)}`,g&&"multiline",S&&"adornedStart",s&&"adornedEnd",p&&"hiddenLabel",y&&"readOnly"],input:["input",i&&"disabled",O==="search"&&"inputTypeSearch",g&&"inputMultiline",x==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",S&&"inputAdornedStart",s&&"inputAdornedEnd",y&&"readOnly"]};return Ll(w,$E,r)},QE=Fn("div",{name:"MuiInputBase",slot:"Root",overridesResolver:FE})(ll(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${sc.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:r})=>r.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:r,size:a})=>r.multiline&&a==="small",style:{paddingTop:1}},{props:({ownerState:r})=>r.fullWidth,style:{width:"100%"}}]}))),KE=Fn("input",{name:"MuiInputBase",slot:"Input",overridesResolver:XE})(ll(({theme:t})=>{const r=t.palette.mode==="light",a={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},i={opacity:"0 !important"},u=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&::-ms-input-placeholder":a,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${sc.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":u,"&:focus::-moz-placeholder":u,"&:focus::-ms-input-placeholder":u},[`&.${sc.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),em=qE({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ZE=D.forwardRef(function(r,a){const i=$l({props:r,name:"MuiInputBase"}),{"aria-describedby":u,autoComplete:s,autoFocus:f,className:h,color:m,components:p={},componentsProps:g={},defaultValue:y,disabled:x,disableInjectingGlobalStyles:S,endAdornment:O,error:w,fullWidth:B=!1,id:T,inputComponent:N="input",inputProps:A={},inputRef:z,margin:R,maxRows:M,minRows:I,multiline:te=!1,name:G,onBlur:E,onChange:j,onClick:$,onFocus:P,onKeyDown:Q,onKeyUp:ee,placeholder:V,readOnly:ne,renderSuffix:W,rows:fe,size:v,slotProps:Z={},slots:ue={},startAdornment:k,type:ie="text",value:ye,...he}=i,He=A.value!=null?A.value:ye,{current:xe}=D.useRef(He!=null),Re=D.useRef(),de=D.useCallback(ze=>{},[]),_e=nr(Re,z,A.ref,de),[pe,me]=D.useState(!1),se=kv(),Ee=Av({props:i,muiFormControl:se,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ee.focused=se?se.focused:pe,D.useEffect(()=>{!se&&x&&pe&&(me(!1),E&&E())},[se,x,pe,E]);const Ye=se&&se.onFilled,je=se&&se.onEmpty,De=D.useCallback(ze=>{YE(ze)?Ye&&Ye():je&&je()},[Ye,je]);Ul(()=>{xe&&De({value:He})},[He,De,xe]);const it=ze=>{P&&P(ze),A.onFocus&&A.onFocus(ze),se&&se.onFocus?se.onFocus(ze):me(!0)},vt=ze=>{E&&E(ze),A.onBlur&&A.onBlur(ze),se&&se.onBlur?se.onBlur(ze):me(!1)},fn=(ze,...tn)=>{if(!xe){const Nt=ze.target||Re.current;if(Nt==null)throw new Error(wr(1));De({value:Nt.value})}A.onChange&&A.onChange(ze,...tn),j&&j(ze,...tn)};D.useEffect(()=>{De(Re.current)},[]);const Bn=ze=>{Re.current&&ze.currentTarget===ze.target&&Re.current.focus(),$&&$(ze)};let dn=N,Ne=A;te&&dn==="input"&&(fe?Ne={type:void 0,minRows:fe,maxRows:fe,...Ne}:Ne={type:void 0,maxRows:M,minRows:I,...Ne},dn=wv);const Dt=ze=>{De(ze.animationName==="mui-auto-fill-cancel"?Re.current:{value:"x"})};D.useEffect(()=>{se&&se.setAdornedStart(!!k)},[se,k]);const F={...i,color:Ee.color||"primary",disabled:Ee.disabled,endAdornment:O,error:Ee.error,focused:Ee.focused,formControl:se,fullWidth:B,hiddenLabel:Ee.hiddenLabel,multiline:te,size:Ee.size,startAdornment:k,type:ie},le=PE(F),ce=ue.root||p.Root||QE,we=Z.root||g.root||{},Ve=ue.input||p.Input||KE;return Ne={...Ne,...Z.input??g.input},ve.jsxs(D.Fragment,{children:[!S&&typeof em=="function"&&(Wp||(Wp=ve.jsx(em,{}))),ve.jsxs(ce,{...we,ref:a,onClick:Bn,...he,...!mp(ce)&&{ownerState:{...F,...we.ownerState}},className:on(le.root,we.className,h,ne&&"MuiInputBase-readOnly"),children:[k,ve.jsx(gp.Provider,{value:null,children:ve.jsx(Ve,{"aria-invalid":Ee.error,"aria-describedby":u,autoComplete:s,autoFocus:f,defaultValue:y,disabled:Ee.disabled,id:T,onAnimationStart:Dt,name:G,placeholder:V,readOnly:ne,required:Ee.required,rows:fe,value:He,onKeyDown:Q,onKeyUp:ee,type:ie,...Ne,...!mp(Ve)&&{as:dn,ownerState:{...F,...Ne.ownerState}},ref:_e,className:on(le.input,Ne.className,ne&&"MuiInputBase-readOnly"),onBlur:vt,onChange:fn,onFocus:it})}),O,W?W({...Ee,startAdornment:k}):null]})]})});var cc={exports:{}};/*!
97
+ export default theme;`}function yc(e={},...r){const{breakpoints:l,mixins:a={},spacing:u,palette:s={},transitions:f={},typography:d={},shape:m,...h}=e;if(e.vars)throw new Error(Nr(20));const g=gc(s),y=oc(e);let v=nn(y,{mixins:GE(y.breakpoints,a),palette:g,shadows:QE.slice(),typography:om(g,d),transitions:JE(f),zIndex:{...e2}});return v=nn(v,h),v=r.reduce((S,R)=>nn(S,R),v),v.unstable_sxConfig={...Wl,...h==null?void 0:h.unstable_sxConfig},v.unstable_sx=function(R){return ci({sx:R,theme:this})},v.toRuntimeSource=sm,v}function bc(e){let r;return e<1?r=5.11916*e**2:r=4.5*Math.log(e+1)+2,Math.round(r*10)/1e3}const n2=[...Array(25)].map((e,r)=>{if(r===0)return"none";const l=bc(r);return`linear-gradient(rgba(255 255 255 / ${l}), rgba(255 255 255 / ${l}))`});function cm(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function fm(e){return e==="dark"?n2:[]}function r2(e){const{palette:r={mode:"light"},opacity:l,overlays:a,...u}=e,s=gc(r);return{palette:s,opacity:{...cm(s.mode),...l},overlays:a||fm(s.mode),...u}}function i2(e){var r;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((r=e[1])!=null&&r.match(/(mode|contrastThreshold|tonalOffset)/))}const l2=e=>[...[...Array(25)].map((r,l)=>`--${e?`${e}-`:""}overlays-${l}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],a2=e=>(r,l)=>{const a=e.rootSelector||":root",u=e.colorSchemeSelector;let s=u;if(u==="class"&&(s=".%s"),u==="data"&&(s="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(s=`[${u}="%s"]`),e.defaultColorScheme===r){if(r==="dark"){const f={};return l2(e.cssVarPrefix).forEach(d=>{f[d]=l[d],delete l[d]}),s==="media"?{[a]:l,"@media (prefers-color-scheme: dark)":{[a]:f}}:s?{[s.replace("%s",r)]:f,[`${a}, ${s.replace("%s",r)}`]:l}:{[a]:{...l,...f}}}if(s&&s!=="media")return`${a}, ${s.replace("%s",String(r))}`}else if(r){if(s==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[a]:l}};if(s)return s.replace("%s",String(r))}return a};function o2(e,r){r.forEach(l=>{e[l]||(e[l]={})})}function W(e,r,l){!e[r]&&l&&(e[r]=l)}function la(e){return!e||!e.startsWith("hsl")?e:Gh(e)}function pr(e,r){`${r}Channel`in e||(e[`${r}Channel`]=Jl(la(e[r])))}function u2(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const nr=e=>{try{return e()}catch{}},s2=(e="mui")=>ME(e);function Sc(e,r,l,a){if(!r)return;r=r===!0?{}:r;const u=a==="dark"?"dark":"light";if(!l){e[a]=r2({...r,palette:{mode:u,...r==null?void 0:r.palette}});return}const{palette:s,...f}=yc({...l,palette:{mode:u,...r==null?void 0:r.palette}});return e[a]={...r,palette:s,opacity:{...cm(u),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||fm(u)},f}function c2(e={},...r){const{colorSchemes:l={light:!0},defaultColorScheme:a,disableCssColorScheme:u=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:f=i2,colorSchemeSelector:d=l.light&&l.dark?"media":void 0,rootSelector:m=":root",...h}=e,g=Object.keys(l)[0],y=a||(l.light&&g!=="light"?"light":g),v=s2(s),{[y]:S,light:R,dark:T,...N}=l,w={...N};let B=S;if((y==="dark"&&!("dark"in l)||y==="light"&&!("light"in l))&&(B=!0),!B)throw new Error(Nr(21,y));const k=Sc(w,B,h,y);R&&!w.light&&Sc(w,R,void 0,"light"),T&&!w.dark&&Sc(w,T,void 0,"dark");let z={defaultColorScheme:y,...k,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:m,getCssVar:v,colorSchemes:w,font:{...$E(k.typography),...k.font},spacing:u2(h.spacing)};Object.keys(z.colorSchemes).forEach(V=>{const E=z.colorSchemes[V].palette,I=Y=>{const F=Y.split("-"),P=F[1],ee=F[2];return v(Y,E[P][ee])};if(E.mode==="light"&&(W(E.common,"background","#fff"),W(E.common,"onBackground","#000")),E.mode==="dark"&&(W(E.common,"background","#000"),W(E.common,"onBackground","#fff")),o2(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){W(E.Alert,"errorColor",rt(E.error.light,.6)),W(E.Alert,"infoColor",rt(E.info.light,.6)),W(E.Alert,"successColor",rt(E.success.light,.6)),W(E.Alert,"warningColor",rt(E.warning.light,.6)),W(E.Alert,"errorFilledBg",I("palette-error-main")),W(E.Alert,"infoFilledBg",I("palette-info-main")),W(E.Alert,"successFilledBg",I("palette-success-main")),W(E.Alert,"warningFilledBg",I("palette-warning-main")),W(E.Alert,"errorFilledColor",nr(()=>E.getContrastText(E.error.main))),W(E.Alert,"infoFilledColor",nr(()=>E.getContrastText(E.info.main))),W(E.Alert,"successFilledColor",nr(()=>E.getContrastText(E.success.main))),W(E.Alert,"warningFilledColor",nr(()=>E.getContrastText(E.warning.main))),W(E.Alert,"errorStandardBg",it(E.error.light,.9)),W(E.Alert,"infoStandardBg",it(E.info.light,.9)),W(E.Alert,"successStandardBg",it(E.success.light,.9)),W(E.Alert,"warningStandardBg",it(E.warning.light,.9)),W(E.Alert,"errorIconColor",I("palette-error-main")),W(E.Alert,"infoIconColor",I("palette-info-main")),W(E.Alert,"successIconColor",I("palette-success-main")),W(E.Alert,"warningIconColor",I("palette-warning-main")),W(E.AppBar,"defaultBg",I("palette-grey-100")),W(E.Avatar,"defaultBg",I("palette-grey-400")),W(E.Button,"inheritContainedBg",I("palette-grey-300")),W(E.Button,"inheritContainedHoverBg",I("palette-grey-A100")),W(E.Chip,"defaultBorder",I("palette-grey-400")),W(E.Chip,"defaultAvatarColor",I("palette-grey-700")),W(E.Chip,"defaultIconColor",I("palette-grey-700")),W(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),W(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),W(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),W(E.LinearProgress,"primaryBg",it(E.primary.main,.62)),W(E.LinearProgress,"secondaryBg",it(E.secondary.main,.62)),W(E.LinearProgress,"errorBg",it(E.error.main,.62)),W(E.LinearProgress,"infoBg",it(E.info.main,.62)),W(E.LinearProgress,"successBg",it(E.success.main,.62)),W(E.LinearProgress,"warningBg",it(E.warning.main,.62)),W(E.Skeleton,"bg",`rgba(${I("palette-text-primaryChannel")} / 0.11)`),W(E.Slider,"primaryTrack",it(E.primary.main,.62)),W(E.Slider,"secondaryTrack",it(E.secondary.main,.62)),W(E.Slider,"errorTrack",it(E.error.main,.62)),W(E.Slider,"infoTrack",it(E.info.main,.62)),W(E.Slider,"successTrack",it(E.success.main,.62)),W(E.Slider,"warningTrack",it(E.warning.main,.62));const Y=ru(E.background.default,.8);W(E.SnackbarContent,"bg",Y),W(E.SnackbarContent,"color",nr(()=>E.getContrastText(Y))),W(E.SpeedDialAction,"fabHoverBg",ru(E.background.paper,.15)),W(E.StepConnector,"border",I("palette-grey-400")),W(E.StepContent,"border",I("palette-grey-400")),W(E.Switch,"defaultColor",I("palette-common-white")),W(E.Switch,"defaultDisabledColor",I("palette-grey-100")),W(E.Switch,"primaryDisabledColor",it(E.primary.main,.62)),W(E.Switch,"secondaryDisabledColor",it(E.secondary.main,.62)),W(E.Switch,"errorDisabledColor",it(E.error.main,.62)),W(E.Switch,"infoDisabledColor",it(E.info.main,.62)),W(E.Switch,"successDisabledColor",it(E.success.main,.62)),W(E.Switch,"warningDisabledColor",it(E.warning.main,.62)),W(E.TableCell,"border",it(nu(E.divider,1),.88)),W(E.Tooltip,"bg",nu(E.grey[700],.92))}if(E.mode==="dark"){W(E.Alert,"errorColor",it(E.error.light,.6)),W(E.Alert,"infoColor",it(E.info.light,.6)),W(E.Alert,"successColor",it(E.success.light,.6)),W(E.Alert,"warningColor",it(E.warning.light,.6)),W(E.Alert,"errorFilledBg",I("palette-error-dark")),W(E.Alert,"infoFilledBg",I("palette-info-dark")),W(E.Alert,"successFilledBg",I("palette-success-dark")),W(E.Alert,"warningFilledBg",I("palette-warning-dark")),W(E.Alert,"errorFilledColor",nr(()=>E.getContrastText(E.error.dark))),W(E.Alert,"infoFilledColor",nr(()=>E.getContrastText(E.info.dark))),W(E.Alert,"successFilledColor",nr(()=>E.getContrastText(E.success.dark))),W(E.Alert,"warningFilledColor",nr(()=>E.getContrastText(E.warning.dark))),W(E.Alert,"errorStandardBg",rt(E.error.light,.9)),W(E.Alert,"infoStandardBg",rt(E.info.light,.9)),W(E.Alert,"successStandardBg",rt(E.success.light,.9)),W(E.Alert,"warningStandardBg",rt(E.warning.light,.9)),W(E.Alert,"errorIconColor",I("palette-error-main")),W(E.Alert,"infoIconColor",I("palette-info-main")),W(E.Alert,"successIconColor",I("palette-success-main")),W(E.Alert,"warningIconColor",I("palette-warning-main")),W(E.AppBar,"defaultBg",I("palette-grey-900")),W(E.AppBar,"darkBg",I("palette-background-paper")),W(E.AppBar,"darkColor",I("palette-text-primary")),W(E.Avatar,"defaultBg",I("palette-grey-600")),W(E.Button,"inheritContainedBg",I("palette-grey-800")),W(E.Button,"inheritContainedHoverBg",I("palette-grey-700")),W(E.Chip,"defaultBorder",I("palette-grey-700")),W(E.Chip,"defaultAvatarColor",I("palette-grey-300")),W(E.Chip,"defaultIconColor",I("palette-grey-300")),W(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),W(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),W(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),W(E.LinearProgress,"primaryBg",rt(E.primary.main,.5)),W(E.LinearProgress,"secondaryBg",rt(E.secondary.main,.5)),W(E.LinearProgress,"errorBg",rt(E.error.main,.5)),W(E.LinearProgress,"infoBg",rt(E.info.main,.5)),W(E.LinearProgress,"successBg",rt(E.success.main,.5)),W(E.LinearProgress,"warningBg",rt(E.warning.main,.5)),W(E.Skeleton,"bg",`rgba(${I("palette-text-primaryChannel")} / 0.13)`),W(E.Slider,"primaryTrack",rt(E.primary.main,.5)),W(E.Slider,"secondaryTrack",rt(E.secondary.main,.5)),W(E.Slider,"errorTrack",rt(E.error.main,.5)),W(E.Slider,"infoTrack",rt(E.info.main,.5)),W(E.Slider,"successTrack",rt(E.success.main,.5)),W(E.Slider,"warningTrack",rt(E.warning.main,.5));const Y=ru(E.background.default,.98);W(E.SnackbarContent,"bg",Y),W(E.SnackbarContent,"color",nr(()=>E.getContrastText(Y))),W(E.SpeedDialAction,"fabHoverBg",ru(E.background.paper,.15)),W(E.StepConnector,"border",I("palette-grey-600")),W(E.StepContent,"border",I("palette-grey-600")),W(E.Switch,"defaultColor",I("palette-grey-300")),W(E.Switch,"defaultDisabledColor",I("palette-grey-600")),W(E.Switch,"primaryDisabledColor",rt(E.primary.main,.55)),W(E.Switch,"secondaryDisabledColor",rt(E.secondary.main,.55)),W(E.Switch,"errorDisabledColor",rt(E.error.main,.55)),W(E.Switch,"infoDisabledColor",rt(E.info.main,.55)),W(E.Switch,"successDisabledColor",rt(E.success.main,.55)),W(E.Switch,"warningDisabledColor",rt(E.warning.main,.55)),W(E.TableCell,"border",rt(nu(E.divider,1),.68)),W(E.Tooltip,"bg",nu(E.grey[700],.92))}pr(E.background,"default"),pr(E.background,"paper"),pr(E.common,"background"),pr(E.common,"onBackground"),pr(E,"divider"),Object.keys(E).forEach(Y=>{const F=E[Y];F&&typeof F=="object"&&(F.main&&W(E[Y],"mainChannel",Jl(la(F.main))),F.light&&W(E[Y],"lightChannel",Jl(la(F.light))),F.dark&&W(E[Y],"darkChannel",Jl(la(F.dark))),F.contrastText&&W(E[Y],"contrastTextChannel",Jl(la(F.contrastText))),Y==="text"&&(pr(E[Y],"primary"),pr(E[Y],"secondary")),Y==="action"&&(F.active&&pr(E[Y],"active"),F.selected&&pr(E[Y],"selected")))})}),z=r.reduce((V,E)=>nn(V,E),z);const A={prefix:s,disableCssColorScheme:u,shouldSkipGeneratingVar:f,getSelector:a2(z)},{vars:_,generateThemeVars:H,generateStyleSheets:ne}=zE(z,A);return z.vars=_,Object.entries(z.colorSchemes[z.defaultColorScheme]).forEach(([V,E])=>{z[V]=E}),z.generateThemeVars=H,z.generateStyleSheets=ne,z.generateSpacing=function(){return Hh(h.spacing,lc(this))},z.getColorSchemeSelector=NE(d),z.spacing=z.generateSpacing(),z.shouldSkipGeneratingVar=f,z.unstable_sxConfig={...Wl,...h==null?void 0:h.unstable_sxConfig},z.unstable_sx=function(E){return ci({sx:E,theme:this})},z.toRuntimeSource=sm,z}function dm(e,r,l){e.colorSchemes&&l&&(e.colorSchemes[r]={...l!==!0&&l,palette:gc({...l===!0?{}:l.palette,mode:r})})}function iu(e={},...r){const{palette:l,cssVariables:a=!1,colorSchemes:u=l?void 0:{light:!0},defaultColorScheme:s=l==null?void 0:l.mode,...f}=e,d=s||"light",m=u==null?void 0:u[d],h={...u,...l?{[d]:{...typeof m!="boolean"&&m,palette:l}}:void 0};if(a===!1){if(!("colorSchemes"in e))return yc(e,...r);let g=l;"palette"in e||h[d]&&(h[d]!==!0?g=h[d].palette:d==="dark"&&(g={mode:"dark"}));const y=yc({...e,palette:g},...r);return y.defaultColorScheme=d,y.colorSchemes=h,y.palette.mode==="light"&&(y.colorSchemes.light={...h.light!==!0&&h.light,palette:y.palette},dm(y,"dark",h.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:y.palette},dm(y,"light",h.light)),y}return!l&&!("light"in h)&&d==="light"&&(h.light=!0),c2({...f,colorSchemes:h,defaultColorScheme:d,...typeof a!="boolean"&&a},...r)}const vc=iu(),hr="$$material";function lu(){const e=Vh(vc);return e[hr]||e}function f2(e){return ce.jsx(nE,{...e,defaultTheme:vc,themeId:hr})}function d2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pm=e=>d2(e)&&e!=="classes",zt=aE({themeId:hr,defaultTheme:vc,rootShouldForwardProp:pm});function p2(e){return function(l){return ce.jsx(f2,{styles:typeof e=="function"?a=>e({theme:a,...l}):e})}}function h2(){return Fx}const Gn=CE;function Yn(e){return EE(e)}function hm(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function m2(e,r=!1){return e&&(hm(e.value)&&e.value!==""||r&&hm(e.defaultValue)&&e.defaultValue!=="")}function g2(e){return qn("MuiInputBase",e)}const xc=$n("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var mm;const y2=(e,r)=>{const{ownerState:l}=e;return[r.root,l.formControl&&r.formControl,l.startAdornment&&r.adornedStart,l.endAdornment&&r.adornedEnd,l.error&&r.error,l.size==="small"&&r.sizeSmall,l.multiline&&r.multiline,l.color&&r[`color${dt(l.color)}`],l.fullWidth&&r.fullWidth,l.hiddenLabel&&r.hiddenLabel]},b2=(e,r)=>{const{ownerState:l}=e;return[r.input,l.size==="small"&&r.inputSizeSmall,l.multiline&&r.inputMultiline,l.type==="search"&&r.inputTypeSearch,l.startAdornment&&r.inputAdornedStart,l.endAdornment&&r.inputAdornedEnd,l.hiddenLabel&&r.inputHiddenLabel]},S2=e=>{const{classes:r,color:l,disabled:a,error:u,endAdornment:s,focused:f,formControl:d,fullWidth:m,hiddenLabel:h,multiline:g,readOnly:y,size:v,startAdornment:S,type:R}=e,T={root:["root",`color${dt(l)}`,a&&"disabled",u&&"error",m&&"fullWidth",f&&"focused",d&&"formControl",v&&v!=="medium"&&`size${dt(v)}`,g&&"multiline",S&&"adornedStart",s&&"adornedEnd",h&&"hiddenLabel",y&&"readOnly"],input:["input",a&&"disabled",R==="search"&&"inputTypeSearch",g&&"inputMultiline",v==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",S&&"inputAdornedStart",s&&"inputAdornedEnd",y&&"readOnly"]};return er(T,g2,r)},v2=zt("div",{name:"MuiInputBase",slot:"Root",overridesResolver:y2})(Gn(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${xc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:r})=>r.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:r,size:l})=>r.multiline&&l==="small",style:{paddingTop:1}},{props:({ownerState:r})=>r.fullWidth,style:{width:"100%"}}]}))),x2=zt("input",{name:"MuiInputBase",slot:"Input",overridesResolver:b2})(Gn(({theme:e})=>{const r=e.palette.mode==="light",l={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},a={opacity:"0 !important"},u=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&::-ms-input-placeholder":l,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${xc.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":u,"&:focus::-moz-placeholder":u,"&:focus::-ms-input-placeholder":u},[`&.${xc.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),gm=p2({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),E2=M.forwardRef(function(r,l){const a=Yn({props:r,name:"MuiInputBase"}),{"aria-describedby":u,autoComplete:s,autoFocus:f,className:d,color:m,components:h={},componentsProps:g={},defaultValue:y,disabled:v,disableInjectingGlobalStyles:S,endAdornment:R,error:T,fullWidth:N=!1,id:w,inputComponent:B="input",inputProps:k={},inputRef:z,margin:A,maxRows:_,minRows:H,multiline:ne=!1,name:V,onBlur:E,onChange:I,onClick:Y,onFocus:F,onKeyDown:P,onKeyUp:ee,placeholder:$,readOnly:Z,renderSuffix:Q,rows:ue,size:x,slotProps:K={},slots:se={},startAdornment:O,type:ie="text",value:ye,...he}=a,Be=k.value!=null?k.value:ye,{current:Ce}=M.useRef(Be!=null),ke=M.useRef(),pe=M.useCallback(Ue=>{},[]),De=Vn(ke,z,k.ref,pe),[me,ge]=M.useState(!1),fe=Wv(),Ee=Zv({props:a,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ee.focused=fe?fe.focused:me,M.useEffect(()=>{!fe&&v&&me&&(ge(!1),E&&E())},[fe,v,me,E]);const qe=fe&&fe.onFilled,Le=fe&&fe.onEmpty,Oe=M.useCallback(Ue=>{m2(Ue)?qe&&qe():Le&&Le()},[qe,Le]);qi(()=>{Ce&&Oe({value:Be})},[Be,Oe,Ce]);const Pe=Ue=>{F&&F(Ue),k.onFocus&&k.onFocus(Ue),fe&&fe.onFocus?fe.onFocus(Ue):ge(!0)},ht=Ue=>{E&&E(Ue),k.onBlur&&k.onBlur(Ue),fe&&fe.onBlur?fe.onBlur(Ue):ge(!1)},Qt=(Ue,...on)=>{if(!Ce){const Ut=Ue.target||ke.current;if(Ut==null)throw new Error(Nr(1));Oe({value:Ut.value})}k.onChange&&k.onChange(Ue,...on),I&&I(Ue,...on)};M.useEffect(()=>{Oe(ke.current)},[]);const gn=Ue=>{ke.current&&Ue.currentTarget===Ue.target&&ke.current.focus(),Y&&Y(Ue)};let xe=B,ze=k;ne&&xe==="input"&&(ue?ze={type:void 0,minRows:ue,maxRows:ue,...ze}:ze={type:void 0,maxRows:_,minRows:H,...ze},xe=Kv);const Rt=Ue=>{Oe(Ue.animationName==="mui-auto-fill-cancel"?ke.current:{value:"x"})};M.useEffect(()=>{fe&&fe.setAdornedStart(!!O)},[fe,O]);const X={...a,color:Ee.color||"primary",disabled:Ee.disabled,endAdornment:R,error:Ee.error,focused:Ee.focused,formControl:fe,fullWidth:N,hiddenLabel:Ee.hiddenLabel,multiline:ne,size:Ee.size,startAdornment:O,type:ie},le=S2(X),de=se.root||h.Root||v2,Ae=K.root||g.root||{},Ve=se.input||h.Input||x2;return ze={...ze,...K.input??g.input},ce.jsxs(M.Fragment,{children:[!S&&typeof gm=="function"&&(mm||(mm=ce.jsx(gm,{}))),ce.jsxs(de,{...Ae,ref:l,onClick:gn,...he,...!_h(de)&&{ownerState:{...X,...Ae.ownerState}},className:at(le.root,Ae.className,d,Z&&"MuiInputBase-readOnly"),children:[O,ce.jsx(Dh.Provider,{value:null,children:ce.jsx(Ve,{"aria-invalid":Ee.error,"aria-describedby":u,autoComplete:s,autoFocus:f,defaultValue:y,disabled:Ee.disabled,id:w,onAnimationStart:Rt,name:V,placeholder:$,readOnly:Z,required:Ee.required,rows:ue,value:Be,onKeyDown:P,onKeyUp:ee,type:ie,...ze,...!_h(Ve)&&{as:xe,ownerState:{...X,...ze.ownerState}},ref:De,className:at(le.input,ze.className,Z&&"MuiInputBase-readOnly"),onBlur:ht,onChange:Qt,onFocus:Pe})}),R,Q?Q({...Ee,startAdornment:O}):null]})]})});var Ec={exports:{}};/*!
98
98
  Copyright (c) 2018 Jed Watson.
99
99
  Licensed under the MIT License (MIT), see
100
100
  http://jedwatson.github.io/classnames
101
- */var tm;function JE(){return tm||(tm=1,function(t){(function(){var r={}.hasOwnProperty;function a(){for(var s="",f=0;f<arguments.length;f++){var h=arguments[f];h&&(s=u(s,i(h)))}return s}function i(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return a.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var f="";for(var h in s)r.call(s,h)&&s[h]&&(f=u(f,h));return f}function u(s,f){return f?s?s+" "+f:s+f:s}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(cc)),cc.exports}var WE=JE();const Ja=el(WE),e2={size:"medium",multiline:!1},t2={small:"small",medium:"small",large:"medium",chat:"medium",hero:"large"},nm=({size:t,theme:r,multiline:a})=>np([(t==="small"||t==="medium")&&{...r.typography.body2},(t==="large"||t==="chat"||t==="hero")&&{".remixicon":{width:"24px",height:"24px"},...r.typography.body1},t==="medium"&&{paddingLeft:"12px",paddingRight:"12px"},t==="small"&&!a&&{height:"32px"},t==="medium"&&!a&&{height:"40px"},t==="large"&&!a&&{height:"48px"},t==="chat"&&!a&&{height:"56px"},t==="hero"&&!a&&{height:"72px"},t==="small"&&{padding:"0 8px",".Mit-AdornmentButton":{width:"32px",".remixicon":{width:"16px",height:"16px"}}},t==="medium"&&{padding:"0 12px",".Mit-AdornmentButton":{width:"40px",".remixicon":{width:"20px",height:"20px"}}},t==="large"&&{padding:"0 16px",".Mit-AdornmentButton":{width:"48px"}},t==="chat"&&{padding:"0 16px",borderRadius:"8px","&:hover:not(.Mui-disabled):not(.Mui-focused)":{borderColor:r.custom.colors.silverGrayLight},"&.Mui-focused":{borderColor:r.custom.colors.silverGrayLight,outline:"none"},".Mit-AdornmentButton":{padding:"0 16px"}},t==="hero"&&{padding:"0 24px",".Mit-AdornmentButton":{width:"72px"}}]),n2=t=>({backgroundColor:"white",color:t.custom.colors.darkGray2,borderColor:t.custom.colors.silverGrayLight,borderWidth:"1px",borderStyle:"solid",borderRadius:"4px",overflow:"hidden","&.Mui-disabled":{backgroundColor:t.custom.colors.lightGray1},"&:hover:not(.Mui-disabled):not(.Mui-focused)":{borderColor:t.custom.colors.darkGray2},"&.Mui-focused":{borderColor:"transparent",outline:"2px solid currentcolor",outlineOffset:"-2px"},"&.Mui-error":{borderColor:t.custom.colors.red,outlineColor:t.custom.colors.red},"& input::placeholder, textarea::placeholder":{color:t.custom.colors.silverGrayDark,opacity:1},"& input:placeholder-shown, textarea:placeholder-shown":{textOverflow:"ellipsis"},"& textarea":{paddingTop:"8px",paddingBottom:"8px"},"&.MuiInputBase-adornedStart":{paddingLeft:"0",input:{paddingLeft:"8px"}},"&.MuiInputBase-adornedEnd":{paddingRight:"0",input:{paddingRight:"8px"}}}),r2=Object.keys({responsive:!0}),l2=rt(ZE,{shouldForwardProp:t=>!r2.includes(t)})(({theme:t,size:r=e2.size,multiline:a,responsive:i})=>[n2(t),nm({size:r,theme:t,multiline:a}),i&&{[t.breakpoints.down("sm")]:nm({size:t2[r],theme:t,multiline:a})}]),a2=rt.button(({theme:t,disabled:r})=>({...t.typography.button,display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",border:"none",background:"transparent",transition:`background ${t.transitions.duration.short}ms`,cursor:r?"default":"pointer",":disabled":{cursor:"default",svg:{fill:t.custom.colors.silverGray}},":hover":{background:r?"inherit":"rgba(0, 0, 0, 0.06)"},color:t.custom.colors.silverGray,".MuiInputBase-root:hover &":{color:"inherit"},".MuiInputBase-root.Mui-focused &":{color:"inherit"},".MuiInputBase-root.Mui-disabled &":{color:"inherit"},height:"100%"})),i2=t=>t.preventDefault(),rm=({className:t,...r})=>D.createElement(a2,{onMouseDown:i2,className:Ja("Mit-AdornmentButton",t),...r});function lm({theme:t,...r}){const a=ar in t?t[ar]:void 0;return ve.jsx(zp,{...r,themeId:a?ar:void 0,theme:a||t})}const Qo={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:o2,useColorScheme:V3,getInitColorSchemeScript:I3}=lE({themeId:ar,theme:()=>Xo({cssVariables:!0}),colorSchemeStorageKey:Qo.colorSchemeStorageKey,modeStorageKey:Qo.modeStorageKey,defaultColorScheme:{light:Qo.defaultLightColorScheme,dark:Qo.defaultDarkColorScheme},resolveTheme:t=>{const r={...t,typography:$p(t.palette,t.typography)};return r.unstable_sx=function(i){return rl({sx:i,theme:this})},r}}),u2=o2;function s2({theme:t,...r}){return typeof t=="function"?ve.jsx(lm,{theme:t,...r}):"colorSchemes"in(ar in t?t[ar]:t)?ve.jsx(u2,{theme:t,...r}):ve.jsx(lm,{theme:t,...r})}const Ct={text:{roman:400,medium:500,bold:700}},qe=t=>`${t/16}rem`,am={fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeightLight:Ct.text.roman,fontWeightRegular:Ct.text.roman,fontWeightMedium:Ct.text.medium,fontWeightBold:Ct.text.bold,h1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Ct.text.bold,fontStyle:"normal",fontSize:qe(52),lineHeight:qe(60)},h2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Ct.text.bold,fontStyle:"normal",fontSize:qe(34),lineHeight:qe(40)},h3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Ct.text.bold,fontStyle:"normal",fontSize:qe(28),lineHeight:qe(36)},h4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Ct.text.bold,fontStyle:"normal",fontSize:qe(24),lineHeight:qe(30)},h5:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Ct.text.medium,fontStyle:"normal",fontSize:qe(18),lineHeight:qe(22)},subtitle1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Ct.text.medium,fontStyle:"normal",fontSize:qe(16),lineHeight:qe(20)},subtitle2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Ct.text.medium,fontStyle:"normal",fontSize:qe(14),lineHeight:qe(18)},subtitle3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Ct.text.medium,fontStyle:"normal",fontSize:qe(12),lineHeight:qe(16)},subtitle4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Ct.text.medium,fontStyle:"normal",fontSize:qe(10),lineHeight:qe(14)},body1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Ct.text.roman,fontStyle:"normal",fontSize:qe(16),lineHeight:qe(20)},body2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Ct.text.roman,fontStyle:"normal",fontSize:qe(14),lineHeight:qe(18)},body3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Ct.text.roman,fontStyle:"normal",fontSize:qe(12),lineHeight:qe(16)},body4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Ct.text.roman,fontStyle:"normal",fontSize:qe(10),lineHeight:qe(14)},buttonLarge:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Ct.text.medium,fontStyle:"normal",fontSize:qe(16),lineHeight:qe(20)},button:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Ct.text.medium,fontStyle:"normal",fontSize:qe(14),lineHeight:qe(18),textTransform:"none"},buttonSmall:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:Ct.text.medium,fontStyle:"normal",fontSize:qe(12),lineHeight:qe(16)}},c2={defaultProps:{variantMapping:{h1:"span",h2:"span",h3:"span",h4:"span",h5:"span",body1:"p",body2:"p",body3:"p",body4:"p",subtitle1:"p",subtitle2:"p",subtitle3:"p",subtitle4:"p",button:"span"}}};Xo({typography:am,custom:{}});const f2=rt.a({color:"inherit",textDecoration:"none"}),d2=D.forwardRef(function({Component:r,...a},i){const u=iv(),s=r??u.custom.LinkAdapter;return D.createElement(f2,{as:s,ref:i,...a})}),h2={variant:!0,size:!0,edge:!0,startIcon:!0,endIcon:!0,responsive:!0,color:!0},im=t=>!h2[t],fc={variant:"primary",size:"medium",edge:"rounded",responsive:!1},om={small:1,medium:1,large:2},um={small:"small",medium:"small",large:"medium"},sm=(t,r,a)=>{const i=r?om[t]:0;return[{boxSizing:"border-box",borderWidth:om[t]},t==="large"&&{padding:`${14-i}px 24px`,...a.typography.buttonLarge},t==="medium"&&{padding:`${11-i}px 16px`,...a.typography.button},t==="small"&&{padding:`${8-i}px 12px`,...a.typography.buttonSmall}]},cm=t=>{const{size:r,variant:a,edge:i,theme:u,color:s,responsive:f}={...fc,...t},{colors:h}=u.custom,m=a==="secondary"||a==="bordered";return np([{color:u.palette.text.primary,textAlign:"center",display:"inline-flex",justifyContent:"center",alignItems:"center",transition:`background ${u.transitions.duration.short}ms`,cursor:"pointer",":disabled":{cursor:"default"},minWidth:"100px"},...sm(r,m,u),f&&{[u.breakpoints.down("sm")]:sm(um[r],m,u)},a==="primary"&&{backgroundColor:h.mitRed,color:h.white,border:"none",boxShadow:"0px 2px 4px 0px rgba(37, 38, 43, 0.10), 0px 3px 8px 0px rgba(37, 38, 43, 0.12)",":hover:not(:disabled)":{backgroundColor:h.red,boxShadow:"none"},":disabled":{backgroundColor:h.silverGray,boxShadow:"none"}},a==="secondary"&&{color:h.red,backgroundColor:"transparent",borderColor:"currentcolor",borderStyle:"solid",":hover:not(:disabled)":{backgroundColor:"rgba(255, 20, 35, 0.06)"},":disabled":{color:h.silverGray}},a==="text"&&{backgroundColor:"transparent",borderStyle:"none",color:h.darkGray2,":hover:not(:disabled)":{backgroundColor:"rgba(64, 70, 76, 0.06)"},":disabled":{color:h.silverGray}},a==="bordered"&&{backgroundColor:h.white,color:h.silverGrayDark,border:`1px solid ${h.silverGrayLight}`,":hover:not(:disabled)":{backgroundColor:h.lightGray1,color:h.darkGray2},":disabled":{backgroundColor:h.lightGray2,border:`1px solid ${h.lightGray2}`,color:h.silverGrayDark}},a==="tertiary"&&{color:h.darkGray2,border:"none",backgroundColor:h.lightGray2,":hover:not(:disabled)":{backgroundColor:h.white},":disabled":{backgroundColor:h.lightGray2,color:h.silverGrayLight}},i==="rounded"&&{borderRadius:"4px"},i==="circular"&&{borderRadius:"100vh"},s==="secondary"&&{color:u.custom.colors.silverGray,borderColor:u.custom.colors.silverGray,":hover:not(:disabled)":{backgroundColor:u.custom.colors.lightGray1}}])},fm=rt("button",{shouldForwardProp:im})(cm),dm=rt(d2,{shouldForwardProp:im})(cm),hm=rt.span(({size:t,side:r})=>[{height:"1em",display:"flex",alignItems:"center"},r==="start"&&{marginLeft:"-4px",marginRight:"8px"},r==="end"&&{marginLeft:"8px",marginRight:"-4px"},{"& svg, & .MuiSvgIcon-root":{width:"1em",height:"1em",fontSize:qe({small:16,medium:20,large:24}[t])}}]),pm=t=>{const{children:r,size:a=fc.size}=t;return D.createElement(D.Fragment,null,t.startIcon?D.createElement(hm,{size:a,side:"start"},t.startIcon):null,r,t.endIcon?D.createElement(hm,{size:a,side:"end"},t.endIcon):null)},p2=D.forwardRef(({children:t,...r},a)=>D.createElement(fm,{ref:a,type:"button",...r},D.createElement(pm,{...r},t)));p2.displayName="Button";const m2=D.forwardRef(({children:t,Component:r,...a},i)=>D.createElement(dm,{Component:r,ref:i,...a},D.createElement(pm,{...a},t)));m2.displayName="ButtonLink";const mm=t=>({minWidth:"auto",padding:0,height:{small:"32px",medium:"40px",large:"48px"}[t],width:{small:"32px",medium:"40px",large:"48px"}[t],"& svg, & .MuiSvgIcon-root":{width:"1em",height:"1em",fontSize:qe({small:20,medium:24,large:32}[t])}}),dc=rt(D.forwardRef(function(r,a){return D.createElement(fm,{ref:a,type:"button",...r})}))(({size:t=fc.size,responsive:r,theme:a})=>[mm(t),r&&{[a.breakpoints.down("sm")]:mm(um[t])}]);dc.displayName="ActionButton";const g2=dc.withComponent(({Component:t,...r})=>D.createElement(dm,{Component:t,...r}));g2.displayName="ActionButtonLink";const gm=({color:t="currentColor",size:r=24,className:a,...i})=>bt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:t,...i,className:"remixicon "+(a||"")},bt.createElement("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})),y2=({color:t="currentColor",size:r=24,className:a,...i})=>bt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:t,...i,className:"remixicon "+(a||"")},bt.createElement("path",{d:"M5 10C3.9 10 3 10.9 3 12C3 13.1 3.9 14 5 14C6.1 14 7 13.1 7 12C7 10.9 6.1 10 5 10ZM19 10C17.9 10 17 10.9 17 12C17 13.1 17.9 14 19 14C20.1 14 21 13.1 21 12C21 10.9 20.1 10 19 10ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z"})),b2=({color:t="currentColor",size:r=24,className:a,...i})=>bt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:t,...i,className:"remixicon "+(a||"")},bt.createElement("path",{d:"M1.94607 9.31543C1.42353 9.14125 1.4194 8.86022 1.95682 8.68108L21.043 2.31901C21.5715 2.14285 21.8746 2.43866 21.7265 2.95694L16.2733 22.0432C16.1223 22.5716 15.8177 22.59 15.5944 22.0876L11.9999 14L17.9999 6.00005L9.99992 12L1.94607 9.31543Z"})),S2=({color:t="currentColor",size:r=24,className:a,...i})=>bt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:t,...i,className:"remixicon "+(a||"")},bt.createElement("path",{d:"M6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z"})),v2=({color:t="currentColor",size:r=24,className:a,...i})=>bt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:t,...i,className:"remixicon "+(a||"")},bt.createElement("path",{d:"M17.0007 1.20825 18.3195 3.68108 20.7923 4.99992 18.3195 6.31876 17.0007 8.79159 15.6818 6.31876 13.209 4.99992 15.6818 3.68108 17.0007 1.20825ZM10.6673 9.33325 15.6673 11.9999 10.6673 14.6666 8.00065 19.6666 5.33398 14.6666.333984 11.9999 5.33398 9.33325 8.00065 4.33325 10.6673 9.33325ZM11.4173 11.9999 9.18905 10.8115 8.00065 8.58325 6.81224 10.8115 4.58398 11.9999 6.81224 13.1883 8.00065 15.4166 9.18905 13.1883 11.4173 11.9999ZM19.6673 16.3333 18.0007 13.2083 16.334 16.3333 13.209 17.9999 16.334 19.6666 18.0007 22.7916 19.6673 19.6666 22.7923 17.9999 19.6673 16.3333Z"})),x2=({color:t="currentColor",size:r=24,className:a,...i})=>bt.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:t,...i,className:"remixicon "+(a||"")},bt.createElement("path",{d:"M13.5 2C13.5 2.44425 13.3069 2.84339 13 3.11805V5H18C19.6569 5 21 6.34315 21 8V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V8C3 6.34315 4.34315 5 6 5H11V3.11805C10.6931 2.84339 10.5 2.44425 10.5 2C10.5 1.17157 11.1716 0.5 12 0.5C12.8284 0.5 13.5 1.17157 13.5 2ZM6 7C5.44772 7 5 7.44772 5 8V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V8C19 7.44772 18.5523 7 18 7H13H11H6ZM2 10H0V16H2V10ZM22 10H24V16H22V10ZM9 14.5C9.82843 14.5 10.5 13.8284 10.5 13C10.5 12.1716 9.82843 11.5 9 11.5C8.17157 11.5 7.5 12.1716 7.5 13C7.5 13.8284 8.17157 14.5 9 14.5ZM15 14.5C15.8284 14.5 16.5 13.8284 16.5 13C16.5 12.1716 15.8284 11.5 15 11.5C14.1716 11.5 13.5 12.1716 13.5 13C13.5 13.8284 14.1716 14.5 15 14.5Z"}));var ym="vercel.ai.error",E2=Symbol.for(ym),bm,C2=class sS extends Error{constructor({name:r,message:a,cause:i}){super(a),this[bm]=!0,this.name=r,this.cause=i}static isInstance(r){return sS.hasMarker(r,ym)}static hasMarker(r,a){const i=Symbol.for(a);return r!=null&&typeof r=="object"&&i in r&&typeof r[i]=="boolean"&&r[i]===!0}};bm=E2;var Fl=C2;function Sm(t){return t==null?"unknown error":typeof t=="string"?t:t instanceof Error?t.message:JSON.stringify(t)}var vm="AI_InvalidArgumentError",xm=`vercel.ai.error.${vm}`,T2=Symbol.for(xm),Em,w2=class extends Fl{constructor({message:t,cause:r,argument:a}){super({name:vm,message:t,cause:r}),this[Em]=!0,this.argument=a}static isInstance(t){return Fl.hasMarker(t,xm)}};Em=T2;var Cm="AI_JSONParseError",Tm=`vercel.ai.error.${Cm}`,A2=Symbol.for(Tm),wm,Am=class extends Fl{constructor({text:t,cause:r}){super({name:Cm,message:`JSON parsing failed: Text: ${t}.
102
- Error message: ${Sm(r)}`,cause:r}),this[wm]=!0,this.text=t}static isInstance(t){return Fl.hasMarker(t,Tm)}};wm=A2;var km="AI_TypeValidationError",Rm=`vercel.ai.error.${km}`,k2=Symbol.for(Rm),Om,R2=class xh extends Fl{constructor({value:r,cause:a}){super({name:km,message:`Type validation failed: Value: ${JSON.stringify(r)}.
103
- Error message: ${Sm(a)}`,cause:a}),this[Om]=!0,this.value=r}static isInstance(r){return Fl.hasMarker(r,Rm)}static wrap({value:r,cause:a}){return xh.isInstance(a)&&a.value===r?a:new xh({value:r,cause:a})}};Om=k2;var _m=R2;let O2=(t,r=21)=>(a=r)=>{let i="",u=a;for(;u--;)i+=t[Math.random()*t.length|0];return i};var al={exports:{}},Mm;function _2(){if(Mm)return al.exports;Mm=1;const t=typeof Buffer<"u",r=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,a=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function i(h,m,p){p==null&&m!==null&&typeof m=="object"&&(p=m,m=void 0),t&&Buffer.isBuffer(h)&&(h=h.toString()),h&&h.charCodeAt(0)===65279&&(h=h.slice(1));const g=JSON.parse(h,m);if(g===null||typeof g!="object")return g;const y=p&&p.protoAction||"error",x=p&&p.constructorAction||"error";if(y==="ignore"&&x==="ignore")return g;if(y!=="ignore"&&x!=="ignore"){if(r.test(h)===!1&&a.test(h)===!1)return g}else if(y!=="ignore"&&x==="ignore"){if(r.test(h)===!1)return g}else if(a.test(h)===!1)return g;return u(g,{protoAction:y,constructorAction:x,safe:p&&p.safe})}function u(h,{protoAction:m="error",constructorAction:p="error",safe:g}={}){let y=[h];for(;y.length;){const x=y;y=[];for(const S of x){if(m!=="ignore"&&Object.prototype.hasOwnProperty.call(S,"__proto__")){if(g===!0)return null;if(m==="error")throw new SyntaxError("Object contains forbidden prototype property");delete S.__proto__}if(p!=="ignore"&&Object.prototype.hasOwnProperty.call(S,"constructor")&&Object.prototype.hasOwnProperty.call(S.constructor,"prototype")){if(g===!0)return null;if(p==="error")throw new SyntaxError("Object contains forbidden prototype property");delete S.constructor}for(const O in S){const w=S[O];w&&typeof w=="object"&&y.push(w)}}}return h}function s(h,m,p){const g=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return i(h,m,p)}finally{Error.stackTraceLimit=g}}function f(h,m){const p=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return i(h,m,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=p}}return al.exports=s,al.exports.default=s,al.exports.parse=s,al.exports.safeParse=f,al.exports.scan=u,al.exports}var M2=_2();const D2=el(M2);var N2=({prefix:t,size:r=16,alphabet:a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:i="-"}={})=>{const u=O2(a,r);if(t==null)return u;if(a.includes(i))throw new w2({argument:"separator",message:`The separator "${i}" must not be part of the alphabet "${a}".`});return s=>`${t}${i}${u(s)}`},Dm=N2(),hc=Symbol.for("vercel.ai.validator");function z2(t){return{[hc]:!0,validate:t}}function B2(t){return typeof t=="object"&&t!==null&&hc in t&&t[hc]===!0&&"validate"in t}function L2(t){return B2(t)?t:U2(t)}function U2(t){return z2(r=>{const a=t.safeParse(r);return a.success?{success:!0,value:a.data}:{success:!1,error:a.error}})}function H2({value:t,schema:r}){const a=L2(r);try{if(a.validate==null)return{success:!0,value:t};const i=a.validate(t);return i.success?i:{success:!1,error:_m.wrap({value:t,cause:i.error})}}catch(i){return{success:!1,error:_m.wrap({value:t,cause:i})}}}function Nm({text:t,schema:r}){try{const a=D2.parse(t);return r==null?{success:!0,value:a}:H2({value:a,schema:r})}catch(a){return{success:!1,error:Am.isInstance(a)?a:new Am({text:t,cause:a})}}}var Wa={code:"0",name:"text",parse:t=>{if(typeof t!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:t}}},ei={code:"3",name:"error",parse:t=>{if(typeof t!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:t}}},ti={code:"4",name:"assistant_message",parse:t=>{if(t==null||typeof t!="object"||!("id"in t)||!("role"in t)||!("content"in t)||typeof t.id!="string"||typeof t.role!="string"||t.role!=="assistant"||!Array.isArray(t.content)||!t.content.every(r=>r!=null&&typeof r=="object"&&"type"in r&&r.type==="text"&&"text"in r&&r.text!=null&&typeof r.text=="object"&&"value"in r.text&&typeof r.text.value=="string"))throw new Error('"assistant_message" parts expect an object with an "id", "role", and "content" property.');return{type:"assistant_message",value:t}}},ni={code:"5",name:"assistant_control_data",parse:t=>{if(t==null||typeof t!="object"||!("threadId"in t)||!("messageId"in t)||typeof t.threadId!="string"||typeof t.messageId!="string")throw new Error('"assistant_control_data" parts expect an object with a "threadId" and "messageId" property.');return{type:"assistant_control_data",value:{threadId:t.threadId,messageId:t.messageId}}}},ri={code:"6",name:"data_message",parse:t=>{if(t==null||typeof t!="object"||!("role"in t)||!("data"in t)||typeof t.role!="string"||t.role!=="data")throw new Error('"data_message" parts expect an object with a "role" and "data" property.');return{type:"data_message",value:t}}},j2=[Wa,ei,ti,ni,ri];Wa.code+"",ei.code+"",ti.code+"",ni.code+"",ri.code+"",Wa.name+"",Wa.code,ei.name+"",ei.code,ti.name+"",ti.code,ni.name+"",ni.code,ri.name+"",ri.code,j2.map(t=>t.code);function V2(t){const r=["ROOT"];let a=-1,i=null;function u(m,p,g){switch(m){case'"':{a=p,r.pop(),r.push(g),r.push("INSIDE_STRING");break}case"f":case"t":case"n":{a=p,i=p,r.pop(),r.push(g),r.push("INSIDE_LITERAL");break}case"-":{r.pop(),r.push(g),r.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{a=p,r.pop(),r.push(g),r.push("INSIDE_NUMBER");break}case"{":{a=p,r.pop(),r.push(g),r.push("INSIDE_OBJECT_START");break}case"[":{a=p,r.pop(),r.push(g),r.push("INSIDE_ARRAY_START");break}}}function s(m,p){switch(m){case",":{r.pop(),r.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{a=p,r.pop();break}}}function f(m,p){switch(m){case",":{r.pop(),r.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{a=p,r.pop();break}}}for(let m=0;m<t.length;m++){const p=t[m];switch(r[r.length-1]){case"ROOT":u(p,m,"FINISH");break;case"INSIDE_OBJECT_START":{switch(p){case'"':{r.pop(),r.push("INSIDE_OBJECT_KEY");break}case"}":{a=m,r.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(p){case'"':{r.pop(),r.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(p){case'"':{r.pop(),r.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(p){case":":{r.pop(),r.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{u(p,m,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{s(p,m);break}case"INSIDE_STRING":{switch(p){case'"':{r.pop(),a=m;break}case"\\":{r.push("INSIDE_STRING_ESCAPE");break}default:a=m}break}case"INSIDE_ARRAY_START":{switch(p){case"]":{a=m,r.pop();break}default:{a=m,u(p,m,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(p){case",":{r.pop(),r.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{a=m,r.pop();break}default:{a=m;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{u(p,m,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{r.pop(),a=m;break}case"INSIDE_NUMBER":{switch(p){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{a=m;break}case"e":case"E":case"-":case".":break;case",":{r.pop(),r[r.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&f(p,m),r[r.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(p,m);break}case"}":{r.pop(),r[r.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(p,m);break}case"]":{r.pop(),r[r.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&f(p,m);break}default:{r.pop();break}}break}case"INSIDE_LITERAL":{const y=t.substring(i,m+1);!"false".startsWith(y)&&!"true".startsWith(y)&&!"null".startsWith(y)?(r.pop(),r[r.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?s(p,m):r[r.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&f(p,m)):a=m;break}}}let h=t.slice(0,a+1);for(let m=r.length-1;m>=0;m--)switch(r[m]){case"INSIDE_STRING":{h+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{h+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{h+="]";break}case"INSIDE_LITERAL":{const g=t.substring(i,t.length);"true".startsWith(g)?h+="true".slice(g.length):"false".startsWith(g)?h+="false".slice(g.length):"null".startsWith(g)&&(h+="null".slice(g.length))}}return h}function I2(t){if(t===void 0)return{value:void 0,state:"undefined-input"};let r=Nm({text:t});return r.success?{value:r.value,state:"successful-parse"}:(r=Nm({text:V2(t)}),r.success?{value:r.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var li={code:"0",name:"text",parse:t=>{if(typeof t!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:t}}},ai={code:"2",name:"data",parse:t=>{if(!Array.isArray(t))throw new Error('"data" parts expect an array value.');return{type:"data",value:t}}},ii={code:"3",name:"error",parse:t=>{if(typeof t!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:t}}},oi={code:"8",name:"message_annotations",parse:t=>{if(!Array.isArray(t))throw new Error('"message_annotations" parts expect an array value.');return{type:"message_annotations",value:t}}},ui={code:"9",name:"tool_call",parse:t=>{if(t==null||typeof t!="object"||!("toolCallId"in t)||typeof t.toolCallId!="string"||!("toolName"in t)||typeof t.toolName!="string"||!("args"in t)||typeof t.args!="object")throw new Error('"tool_call" parts expect an object with a "toolCallId", "toolName", and "args" property.');return{type:"tool_call",value:t}}},si={code:"a",name:"tool_result",parse:t=>{if(t==null||typeof t!="object"||!("toolCallId"in t)||typeof t.toolCallId!="string"||!("result"in t))throw new Error('"tool_result" parts expect an object with a "toolCallId" and a "result" property.');return{type:"tool_result",value:t}}},ci={code:"b",name:"tool_call_streaming_start",parse:t=>{if(t==null||typeof t!="object"||!("toolCallId"in t)||typeof t.toolCallId!="string"||!("toolName"in t)||typeof t.toolName!="string")throw new Error('"tool_call_streaming_start" parts expect an object with a "toolCallId" and "toolName" property.');return{type:"tool_call_streaming_start",value:t}}},fi={code:"c",name:"tool_call_delta",parse:t=>{if(t==null||typeof t!="object"||!("toolCallId"in t)||typeof t.toolCallId!="string"||!("argsTextDelta"in t)||typeof t.argsTextDelta!="string")throw new Error('"tool_call_delta" parts expect an object with a "toolCallId" and "argsTextDelta" property.');return{type:"tool_call_delta",value:t}}},di={code:"d",name:"finish_message",parse:t=>{if(t==null||typeof t!="object"||!("finishReason"in t)||typeof t.finishReason!="string")throw new Error('"finish_message" parts expect an object with a "finishReason" property.');const r={finishReason:t.finishReason};return"usage"in t&&t.usage!=null&&typeof t.usage=="object"&&"promptTokens"in t.usage&&"completionTokens"in t.usage&&(r.usage={promptTokens:typeof t.usage.promptTokens=="number"?t.usage.promptTokens:Number.NaN,completionTokens:typeof t.usage.completionTokens=="number"?t.usage.completionTokens:Number.NaN}),{type:"finish_message",value:r}}},hi={code:"e",name:"finish_step",parse:t=>{if(t==null||typeof t!="object"||!("finishReason"in t)||typeof t.finishReason!="string")throw new Error('"finish_step" parts expect an object with a "finishReason" property.');const r={finishReason:t.finishReason,isContinued:!1};return"usage"in t&&t.usage!=null&&typeof t.usage=="object"&&"promptTokens"in t.usage&&"completionTokens"in t.usage&&(r.usage={promptTokens:typeof t.usage.promptTokens=="number"?t.usage.promptTokens:Number.NaN,completionTokens:typeof t.usage.completionTokens=="number"?t.usage.completionTokens:Number.NaN}),"isContinued"in t&&typeof t.isContinued=="boolean"&&(r.isContinued=t.isContinued),{type:"finish_step",value:r}}},q2=[li,ai,ii,oi,ui,si,ci,fi,di,hi],G2={[li.code]:li,[ai.code]:ai,[ii.code]:ii,[oi.code]:oi,[ui.code]:ui,[si.code]:si,[ci.code]:ci,[fi.code]:fi,[di.code]:di,[hi.code]:hi};li.name+"",li.code,ai.name+"",ai.code,ii.name+"",ii.code,oi.name+"",oi.code,ui.name+"",ui.code,si.name+"",si.code,ci.name+"",ci.code,fi.name+"",fi.code,di.name+"",di.code,hi.name+"",hi.code;var Y2=q2.map(t=>t.code),$2=t=>{const r=t.indexOf(":");if(r===-1)throw new Error("Failed to parse stream string. No separator found.");const a=t.slice(0,r);if(!Y2.includes(a))throw new Error(`Failed to parse stream string. Invalid code ${a}.`);const i=a,u=t.slice(r+1),s=JSON.parse(u);return G2[i].parse(s)},F2=10;function X2(t,r){const a=new Uint8Array(r);let i=0;for(const u of t)a.set(u,i),i+=u.length;return t.length=0,a}async function P2({stream:t,onTextPart:r,onDataPart:a,onErrorPart:i,onToolCallStreamingStartPart:u,onToolCallDeltaPart:s,onToolCallPart:f,onToolResultPart:h,onMessageAnnotationsPart:m,onFinishMessagePart:p,onFinishStepPart:g}){const y=t.getReader(),x=new TextDecoder,S=[];let O=0;for(;;){const{value:w}=await y.read();if(w&&(S.push(w),O+=w.length,w[w.length-1]!==F2))continue;if(S.length===0)break;const B=X2(S,O);O=0;const T=x.decode(B,{stream:!0}).split(`
104
- `).filter(N=>N!=="").map($2);for(const{type:N,value:A}of T)switch(N){case"text":await(r==null?void 0:r(A));break;case"data":await(a==null?void 0:a(A));break;case"error":await(i==null?void 0:i(A));break;case"message_annotations":await(m==null?void 0:m(A));break;case"tool_call_streaming_start":await(u==null?void 0:u(A));break;case"tool_call_delta":await(s==null?void 0:s(A));break;case"tool_call":await(f==null?void 0:f(A));break;case"tool_result":await(h==null?void 0:h(A));break;case"finish_message":await(p==null?void 0:p(A));break;case"finish_step":await(g==null?void 0:g(A));break;default:{const z=N;throw new Error(`Unknown stream part type: ${z}`)}}}}function Q2({promptTokens:t,completionTokens:r}){return{promptTokens:t,completionTokens:r,totalTokens:t+r}}async function K2({stream:t,update:r,onToolCall:a,onFinish:i,generateId:u=Dm,getCurrentDate:s=()=>new Date}){const f=s();let h,m=!0;const p=[],g=[];let y;const x={};let S={completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},O="unknown";function w(){const T=[...g];if(h==null){r(p,T);return}y!=null&&y.length&&(h.annotations=y);const N={...JSON.parse(JSON.stringify(h)),revisionId:u(),createdAt:h.createdAt};r([...p,N],T)}function B(){return(m||h==null)&&(h!=null&&p.push(h),m=!1,h={id:u(),role:"assistant",content:"",createdAt:f}),h}await P2({stream:t,onTextPart(T){const N=B();h={...N,content:N.content+T},w()},onToolCallStreamingStartPart(T){const N=B();N.toolInvocations==null&&(N.toolInvocations=[]),x[T.toolCallId]={text:"",toolName:T.toolName,index:N.toolInvocations.length},N.toolInvocations.push({state:"partial-call",toolCallId:T.toolCallId,toolName:T.toolName,args:void 0}),w()},onToolCallDeltaPart(T){const N=B(),A=x[T.toolCallId];A.text+=T.argsTextDelta;const{value:z}=I2(A.text);N.toolInvocations[A.index]={state:"partial-call",toolCallId:T.toolCallId,toolName:A.toolName,args:z},w()},async onToolCallPart(T){const N=B();if(x[T.toolCallId]!=null?N.toolInvocations[x[T.toolCallId].index]={state:"call",...T}:(N.toolInvocations==null&&(N.toolInvocations=[]),N.toolInvocations.push({state:"call",...T})),a){const A=await a({toolCall:T});A!=null&&(N.toolInvocations[N.toolInvocations.length-1]={state:"result",...T,result:A})}w()},onToolResultPart(T){const A=B().toolInvocations;if(A==null)throw new Error("tool_result must be preceded by a tool_call");const z=A.findIndex(R=>R.toolCallId===T.toolCallId);if(z===-1)throw new Error("tool_result must be preceded by a tool_call with the same toolCallId");A[z]={...A[z],state:"result",...T},w()},onDataPart(T){g.push(...T),w()},onMessageAnnotationsPart(T){y==null?y=[...T]:y.push(...T),w()},onFinishStepPart(T){m=!T.isContinued},onFinishMessagePart(T){O=T.finishReason,T.usage!=null&&(S=Q2(T.usage))},onErrorPart(T){throw new Error(T)}}),i==null||i({message:h,finishReason:O,usage:S})}async function Z2({stream:t,onTextPart:r}){const a=t.pipeThrough(new TextDecoderStream).getReader();for(;;){const{done:i,value:u}=await a.read();if(i)break;await r(u)}}var J2=()=>fetch;async function W2({api:t,body:r,streamProtocol:a="data",credentials:i,headers:u,abortController:s,restoreMessagesOnFailure:f,onResponse:h,onUpdate:m,onFinish:p,onToolCall:g,generateId:y,fetch:x=J2()}){var S,O;const w=await x(t,{method:"POST",body:JSON.stringify(r),headers:{"Content-Type":"application/json",...u},signal:(S=s==null?void 0:s())==null?void 0:S.signal,credentials:i}).catch(B=>{throw f(),B});if(h)try{await h(w)}catch(B){throw B}if(!w.ok)throw f(),new Error((O=await w.text())!=null?O:"Failed to fetch the chat response.");if(!w.body)throw new Error("The response body is empty.");switch(a){case"text":{const B={id:y(),createdAt:new Date,role:"assistant",content:""};await Z2({stream:w.body,onTextPart:T=>{B.content+=T,m([{...B}],[])}}),p==null||p(B,{usage:{completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},finishReason:"unknown"});return}case"data":{await K2({stream:w.body,update:m,onToolCall:g,onFinish({message:B,finishReason:T,usage:N}){p&&B!=null&&p(B,{usage:N,finishReason:T})},generateId:y});return}default:{const B=a;throw new Error(`Unknown stream protocol: ${B}`)}}}async function zm(t){if(!t)return[];if(t instanceof FileList)return Promise.all(Array.from(t).map(async r=>{const{name:a,type:i}=r,u=await new Promise((s,f)=>{const h=new FileReader;h.onload=m=>{var p;s((p=m.target)==null?void 0:p.result)},h.onerror=m=>f(m),h.readAsDataURL(r)});return{name:a,contentType:i,url:u}}));if(Array.isArray(t))return t;throw new Error("Invalid attachments type")}var pc={exports:{}},mc={};/**
101
+ */var ym;function C2(){return ym||(ym=1,function(e){(function(){var r={}.hasOwnProperty;function l(){for(var s="",f=0;f<arguments.length;f++){var d=arguments[f];d&&(s=u(s,a(d)))}return s}function a(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return l.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var f="";for(var d in s)r.call(s,d)&&s[d]&&(f=u(f,d));return f}function u(s,f){return f?s?s+" "+f:s+f:s}e.exports?(l.default=l,e.exports=l):window.classNames=l})()}(Ec)),Ec.exports}var T2=C2();const aa=Cn(T2),w2={size:"medium",multiline:!1},A2={small:"small",medium:"small",large:"medium",chat:"chat",hero:"large"},bm=({size:e,theme:r,multiline:l})=>Zs([(e==="small"||e==="medium")&&{...r.typography.body2},(e==="large"||e==="chat"||e==="hero")&&{".remixicon":{width:"24px",height:"24px"},...r.typography.body1},e==="medium"&&{paddingLeft:"12px",paddingRight:"12px"},e==="small"&&!l&&{height:"32px"},e==="medium"&&!l&&{height:"40px"},e==="large"&&!l&&{height:"48px"},e==="chat"&&!l&&{height:"56px"},e==="hero"&&!l&&{height:"72px"},e==="small"&&{padding:"0 8px",".Mit-AdornmentButton":{width:"32px",".remixicon":{width:"16px",height:"16px"}}},e==="medium"&&{padding:"0 12px",".Mit-AdornmentButton":{width:"40px",".remixicon":{width:"20px",height:"20px"}}},e==="large"&&{padding:"0 16px",".Mit-AdornmentButton":{width:"48px"}},e==="chat"&&{padding:"0 16px",borderRadius:"8px",borderColor:r.custom.colors.silverGrayLight,"&:hover:not(.Mui-disabled), &.Mui-focused, :hover:not(.Mui-disabled):not(.Mui-focused)":{boxShadow:"0px 8px 20px 0px rgba(120, 147, 172, 0.10)",borderColor:r.custom.colors.silverGray,outline:"none",svg:{fill:r.custom.colors.lightRed}},".Mit-AdornmentButton":{padding:"0 16px"}},e==="hero"&&{padding:"0 24px",".Mit-AdornmentButton":{width:"72px"}}]),k2=e=>({backgroundColor:"white",color:e.custom.colors.darkGray2,borderColor:e.custom.colors.silverGrayLight,borderWidth:"1px",borderStyle:"solid",borderRadius:"4px",overflow:"hidden","&.Mui-disabled":{backgroundColor:e.custom.colors.lightGray1},"&:hover:not(.Mui-disabled):not(.Mui-focused)":{borderColor:e.custom.colors.darkGray2},"&.Mui-focused":{borderColor:"transparent",outline:"2px solid currentcolor",outlineOffset:"-2px"},"&.Mui-error":{borderColor:e.custom.colors.red,outlineColor:e.custom.colors.red},"& input::placeholder, textarea::placeholder":{color:e.custom.colors.silverGrayDark,opacity:1},"& input:placeholder-shown, textarea:placeholder-shown":{textOverflow:"ellipsis"},"& textarea":{paddingTop:"8px",paddingBottom:"8px"},"&.MuiInputBase-adornedStart":{paddingLeft:"0",input:{paddingLeft:"8px"}},"&.MuiInputBase-adornedEnd":{paddingRight:"0",input:{paddingRight:"8px"}}}),R2=Object.keys({responsive:!0}),O2=et(E2,{shouldForwardProp:e=>!R2.includes(e)})(({theme:e,size:r=w2.size,multiline:l,responsive:a})=>[k2(e),bm({size:r,theme:e,multiline:l}),a&&{[e.breakpoints.down("sm")]:bm({size:A2[r],theme:e,multiline:l})}]),M2=et.button(({theme:e,disabled:r})=>({...e.typography.button,display:"flex",flexShrink:0,justifyContent:"center",alignItems:"center",border:"none",background:"transparent",transition:`background ${e.transitions.duration.short}ms`,cursor:r?"default":"pointer",":disabled":{cursor:"default",svg:{fill:e.custom.colors.silverGray}},":hover":{background:r?"inherit":"rgba(0, 0, 0, 0.06)"},color:e.custom.colors.silverGray,".MuiInputBase-root:hover &":{color:"inherit"},".MuiInputBase-root.Mui-focused &":{color:"inherit"},".MuiInputBase-root.Mui-disabled &":{color:"inherit"},height:"100%"})),_2=e=>e.preventDefault(),Sm=({className:e,...r})=>M.createElement(M2,{onMouseDown:_2,className:aa("Mit-AdornmentButton",e),...r});function vm({theme:e,...r}){const l=hr in e?e[hr]:void 0;return ce.jsx(Kh,{...r,themeId:l?hr:void 0,theme:l||e})}const au={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:D2,useColorScheme:WO,getInitColorSchemeScript:JO}=OE({themeId:hr,theme:()=>iu({cssVariables:!0}),colorSchemeStorageKey:au.colorSchemeStorageKey,modeStorageKey:au.modeStorageKey,defaultColorScheme:{light:au.defaultLightColorScheme,dark:au.defaultDarkColorScheme},resolveTheme:e=>{const r={...e,typography:om(e.palette,e.typography)};return r.unstable_sx=function(a){return ci({sx:a,theme:this})},r}}),z2=D2;function N2({theme:e,...r}){return typeof e=="function"?ce.jsx(vm,{theme:e,...r}):"colorSchemes"in(hr in e?e[hr]:e)?ce.jsx(z2,{theme:e,...r}):ce.jsx(vm,{theme:e,...r})}const At={text:{roman:400,medium:500,bold:700}},Ge=e=>`${e/16}rem`,xm={fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeightLight:At.text.roman,fontWeightRegular:At.text.roman,fontWeightMedium:At.text.medium,fontWeightBold:At.text.bold,h1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.bold,fontStyle:"normal",fontSize:Ge(52),lineHeight:Ge(60)},h2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.bold,fontStyle:"normal",fontSize:Ge(34),lineHeight:Ge(40)},h3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.bold,fontStyle:"normal",fontSize:Ge(28),lineHeight:Ge(36)},h4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.bold,fontStyle:"normal",fontSize:Ge(24),lineHeight:Ge(30)},h5:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.medium,fontStyle:"normal",fontSize:Ge(18),lineHeight:Ge(22)},subtitle1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.medium,fontStyle:"normal",fontSize:Ge(16),lineHeight:Ge(20)},subtitle2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.medium,fontStyle:"normal",fontSize:Ge(14),lineHeight:Ge(18)},subtitle3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.medium,fontStyle:"normal",fontSize:Ge(12),lineHeight:Ge(16)},subtitle4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.medium,fontStyle:"normal",fontSize:Ge(10),lineHeight:Ge(14)},body1:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.roman,fontStyle:"normal",fontSize:Ge(16),lineHeight:Ge(20)},body2:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.roman,fontStyle:"normal",fontSize:Ge(14),lineHeight:Ge(18)},body3:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.roman,fontStyle:"normal",fontSize:Ge(12),lineHeight:Ge(16)},body4:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.roman,fontStyle:"normal",fontSize:Ge(10),lineHeight:Ge(14)},buttonLarge:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.medium,fontStyle:"normal",fontSize:Ge(16),lineHeight:Ge(20)},button:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.medium,fontStyle:"normal",fontSize:Ge(14),lineHeight:Ge(18),textTransform:"none"},buttonSmall:{fontFamily:"neue-haas-grotesk-text, sans-serif",fontWeight:At.text.medium,fontStyle:"normal",fontSize:Ge(12),lineHeight:Ge(16)}},B2={defaultProps:{variantMapping:{h1:"span",h2:"span",h3:"span",h4:"span",h5:"span",body1:"p",body2:"p",body3:"p",body4:"p",subtitle1:"p",subtitle2:"p",subtitle3:"p",subtitle4:"p",button:"span"}}};iu({typography:xm,custom:{}});const L2=et.a({color:"inherit",textDecoration:"none"}),U2=M.forwardRef(function({Component:r,...l},a){const u=Rv(),s=r??u.custom.LinkAdapter;return M.createElement(L2,{as:s,ref:a,...l})}),j2={variant:!0,size:!0,edge:!0,startIcon:!0,endIcon:!0,responsive:!0,color:!0},Em=e=>!j2[e],Cc={variant:"primary",size:"medium",edge:"rounded",responsive:!1},Cm={small:1,medium:1,large:2},Tm={small:"small",medium:"small",large:"medium"},wm=(e,r,l)=>{const a=r?Cm[e]:0;return[{boxSizing:"border-box",borderWidth:Cm[e]},e==="large"&&{padding:`${14-a}px 24px`,...l.typography.buttonLarge},e==="medium"&&{padding:`${11-a}px 16px`,...l.typography.button},e==="small"&&{padding:`${8-a}px 12px`,...l.typography.buttonSmall}]},Am=e=>{const{size:r,variant:l,edge:a,theme:u,color:s,responsive:f}={...Cc,...e},{colors:d}=u.custom,m=l==="secondary"||l==="bordered";return Zs([{color:u.palette.text.primary,textAlign:"center",display:"inline-flex",justifyContent:"center",alignItems:"center",transition:`background ${u.transitions.duration.short}ms`,cursor:"pointer",":disabled":{cursor:"default"},minWidth:"100px"},...wm(r,m,u),f&&{[u.breakpoints.down("sm")]:wm(Tm[r],m,u)},l==="primary"&&{backgroundColor:d.mitRed,color:d.white,border:"none",boxShadow:"0px 2px 4px 0px rgba(37, 38, 43, 0.10), 0px 3px 8px 0px rgba(37, 38, 43, 0.12)",":hover:not(:disabled)":{backgroundColor:d.red,boxShadow:"none"},":disabled":{backgroundColor:d.silverGray,boxShadow:"none"}},l==="secondary"&&{color:d.red,backgroundColor:"transparent",borderColor:"currentcolor",borderStyle:"solid",":hover:not(:disabled)":{backgroundColor:"rgba(255, 20, 35, 0.06)"},":disabled":{color:d.silverGray}},l==="text"&&{backgroundColor:"transparent",borderStyle:"none",color:d.darkGray2,":hover:not(:disabled)":{backgroundColor:"rgba(64, 70, 76, 0.06)"},":disabled":{color:d.silverGray}},l==="bordered"&&{backgroundColor:d.white,color:d.silverGrayDark,border:`1px solid ${d.silverGrayLight}`,":hover:not(:disabled)":{backgroundColor:d.lightGray1,color:d.darkGray2},":disabled":{backgroundColor:d.lightGray2,border:`1px solid ${d.lightGray2}`,color:d.silverGrayDark}},l==="tertiary"&&{color:d.darkGray2,border:"none",backgroundColor:d.lightGray2,":hover:not(:disabled)":{backgroundColor:d.white},":disabled":{backgroundColor:d.lightGray2,color:d.silverGrayLight}},a==="rounded"&&{borderRadius:"4px"},a==="circular"&&{borderRadius:"100vh"},s==="secondary"&&{color:u.custom.colors.silverGray,borderColor:u.custom.colors.silverGray,":hover:not(:disabled)":{backgroundColor:u.custom.colors.lightGray1}}])},km=et("button",{shouldForwardProp:Em})(Am),Rm=et(U2,{shouldForwardProp:Em})(Am),Om=et.span(({size:e,side:r})=>[{height:"1em",display:"flex",alignItems:"center"},r==="start"&&{marginLeft:"-4px",marginRight:"8px"},r==="end"&&{marginLeft:"8px",marginRight:"-4px"},{"& svg, & .MuiSvgIcon-root":{width:"1em",height:"1em",fontSize:Ge({small:16,medium:20,large:24}[e])}}]),Mm=e=>{const{children:r,size:l=Cc.size}=e;return M.createElement(M.Fragment,null,e.startIcon?M.createElement(Om,{size:l,side:"start"},e.startIcon):null,r,e.endIcon?M.createElement(Om,{size:l,side:"end"},e.endIcon):null)},H2=M.forwardRef(({children:e,...r},l)=>M.createElement(km,{ref:l,type:"button",...r},M.createElement(Mm,{...r},e)));H2.displayName="Button";const I2=M.forwardRef(({children:e,Component:r,...l},a)=>M.createElement(Rm,{Component:r,ref:a,...l},M.createElement(Mm,{...l},e)));I2.displayName="ButtonLink";const _m=e=>({minWidth:"auto",padding:0,height:{small:"32px",medium:"40px",large:"48px"}[e],width:{small:"32px",medium:"40px",large:"48px"}[e],"& svg, & .MuiSvgIcon-root":{width:"1em",height:"1em",fontSize:Ge({small:20,medium:24,large:32}[e])}}),Tc=et(M.forwardRef(function(r,l){return M.createElement(km,{ref:l,type:"button",...r})}))(({size:e=Cc.size,responsive:r,theme:l})=>[_m(e),r&&{[l.breakpoints.down("sm")]:_m(Tm[e])}]);Tc.displayName="ActionButton";const V2=Tc.withComponent(({Component:e,...r})=>M.createElement(Rm,{Component:e,...r}));V2.displayName="ActionButtonLink";const Dm=({color:e="currentColor",size:r=24,className:l,...a})=>ft.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...a,className:"remixicon "+(l||"")},ft.createElement("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})),q2=({color:e="currentColor",size:r=24,className:l,...a})=>ft.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...a,className:"remixicon "+(l||"")},ft.createElement("path",{d:"M5 10C3.9 10 3 10.9 3 12C3 13.1 3.9 14 5 14C6.1 14 7 13.1 7 12C7 10.9 6.1 10 5 10ZM19 10C17.9 10 17 10.9 17 12C17 13.1 17.9 14 19 14C20.1 14 21 13.1 21 12C21 10.9 20.1 10 19 10ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10Z"})),$2=({color:e="currentColor",size:r=24,className:l,...a})=>ft.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...a,className:"remixicon "+(l||"")},ft.createElement("path",{d:"M1.94607 9.31543C1.42353 9.14125 1.4194 8.86022 1.95682 8.68108L21.043 2.31901C21.5715 2.14285 21.8746 2.43866 21.7265 2.95694L16.2733 22.0432C16.1223 22.5716 15.8177 22.59 15.5944 22.0876L11.9999 14L17.9999 6.00005L9.99992 12L1.94607 9.31543Z"})),G2=({color:e="currentColor",size:r=24,className:l,...a})=>ft.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...a,className:"remixicon "+(l||"")},ft.createElement("path",{d:"M6 5H18C18.5523 5 19 5.44772 19 6V18C19 18.5523 18.5523 19 18 19H6C5.44772 19 5 18.5523 5 18V6C5 5.44772 5.44772 5 6 5Z"})),Y2=({color:e="currentColor",size:r=24,className:l,...a})=>ft.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...a,className:"remixicon "+(l||"")},ft.createElement("path",{d:"M17.0007 1.20825 18.3195 3.68108 20.7923 4.99992 18.3195 6.31876 17.0007 8.79159 15.6818 6.31876 13.209 4.99992 15.6818 3.68108 17.0007 1.20825ZM10.6673 9.33325 15.6673 11.9999 10.6673 14.6666 8.00065 19.6666 5.33398 14.6666.333984 11.9999 5.33398 9.33325 8.00065 4.33325 10.6673 9.33325ZM11.4173 11.9999 9.18905 10.8115 8.00065 8.58325 6.81224 10.8115 4.58398 11.9999 6.81224 13.1883 8.00065 15.4166 9.18905 13.1883 11.4173 11.9999ZM19.6673 16.3333 18.0007 13.2083 16.334 16.3333 13.209 17.9999 16.334 19.6666 18.0007 22.7916 19.6673 19.6666 22.7923 17.9999 19.6673 16.3333Z"})),F2=({color:e="currentColor",size:r=24,className:l,...a})=>ft.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:r,height:r,fill:e,...a,className:"remixicon "+(l||"")},ft.createElement("path",{d:"M13.5 2C13.5 2.44425 13.3069 2.84339 13 3.11805V5H18C19.6569 5 21 6.34315 21 8V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V8C3 6.34315 4.34315 5 6 5H11V3.11805C10.6931 2.84339 10.5 2.44425 10.5 2C10.5 1.17157 11.1716 0.5 12 0.5C12.8284 0.5 13.5 1.17157 13.5 2ZM6 7C5.44772 7 5 7.44772 5 8V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V8C19 7.44772 18.5523 7 18 7H13H11H6ZM2 10H0V16H2V10ZM22 10H24V16H22V10ZM9 14.5C9.82843 14.5 10.5 13.8284 10.5 13C10.5 12.1716 9.82843 11.5 9 11.5C8.17157 11.5 7.5 12.1716 7.5 13C7.5 13.8284 8.17157 14.5 9 14.5ZM15 14.5C15.8284 14.5 16.5 13.8284 16.5 13C16.5 12.1716 15.8284 11.5 15 11.5C14.1716 11.5 13.5 12.1716 13.5 13C13.5 13.8284 14.1716 14.5 15 14.5Z"}));var zm="vercel.ai.error",P2=Symbol.for(zm),Nm,X2=class _S extends Error{constructor({name:r,message:l,cause:a}){super(l),this[Nm]=!0,this.name=r,this.cause=a}static isInstance(r){return _S.hasMarker(r,zm)}static hasMarker(r,l){const a=Symbol.for(l);return r!=null&&typeof r=="object"&&a in r&&typeof r[a]=="boolean"&&r[a]===!0}};Nm=P2;var Ki=X2;function Bm(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var Lm="AI_InvalidArgumentError",Um=`vercel.ai.error.${Lm}`,Q2=Symbol.for(Um),jm,K2=class extends Ki{constructor({message:e,cause:r,argument:l}){super({name:Lm,message:e,cause:r}),this[jm]=!0,this.argument=l}static isInstance(e){return Ki.hasMarker(e,Um)}};jm=Q2;var Hm="AI_JSONParseError",Im=`vercel.ai.error.${Hm}`,Z2=Symbol.for(Im),Vm,qm=class extends Ki{constructor({text:e,cause:r}){super({name:Hm,message:`JSON parsing failed: Text: ${e}.
102
+ Error message: ${Bm(r)}`,cause:r}),this[Vm]=!0,this.text=e}static isInstance(e){return Ki.hasMarker(e,Im)}};Vm=Z2;var $m="AI_TypeValidationError",Gm=`vercel.ai.error.${$m}`,W2=Symbol.for(Gm),Ym,J2=class Lp extends Ki{constructor({value:r,cause:l}){super({name:$m,message:`Type validation failed: Value: ${JSON.stringify(r)}.
103
+ Error message: ${Bm(l)}`,cause:l}),this[Ym]=!0,this.value=r}static isInstance(r){return Ki.hasMarker(r,Gm)}static wrap({value:r,cause:l}){return Lp.isInstance(l)&&l.value===r?l:new Lp({value:r,cause:l})}};Ym=W2;var Fm=J2;let eC=(e,r=21)=>(l=r)=>{let a="",u=l;for(;u--;)a+=e[Math.random()*e.length|0];return a};var fi={exports:{}},Pm;function tC(){if(Pm)return fi.exports;Pm=1;const e=typeof Buffer<"u",r=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,l=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function a(d,m,h){h==null&&m!==null&&typeof m=="object"&&(h=m,m=void 0),e&&Buffer.isBuffer(d)&&(d=d.toString()),d&&d.charCodeAt(0)===65279&&(d=d.slice(1));const g=JSON.parse(d,m);if(g===null||typeof g!="object")return g;const y=h&&h.protoAction||"error",v=h&&h.constructorAction||"error";if(y==="ignore"&&v==="ignore")return g;if(y!=="ignore"&&v!=="ignore"){if(r.test(d)===!1&&l.test(d)===!1)return g}else if(y!=="ignore"&&v==="ignore"){if(r.test(d)===!1)return g}else if(l.test(d)===!1)return g;return u(g,{protoAction:y,constructorAction:v,safe:h&&h.safe})}function u(d,{protoAction:m="error",constructorAction:h="error",safe:g}={}){let y=[d];for(;y.length;){const v=y;y=[];for(const S of v){if(m!=="ignore"&&Object.prototype.hasOwnProperty.call(S,"__proto__")){if(g===!0)return null;if(m==="error")throw new SyntaxError("Object contains forbidden prototype property");delete S.__proto__}if(h!=="ignore"&&Object.prototype.hasOwnProperty.call(S,"constructor")&&Object.prototype.hasOwnProperty.call(S.constructor,"prototype")){if(g===!0)return null;if(h==="error")throw new SyntaxError("Object contains forbidden prototype property");delete S.constructor}for(const R in S){const T=S[R];T&&typeof T=="object"&&y.push(T)}}}return d}function s(d,m,h){const g=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return a(d,m,h)}finally{Error.stackTraceLimit=g}}function f(d,m){const h=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return a(d,m,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=h}}return fi.exports=s,fi.exports.default=s,fi.exports.parse=s,fi.exports.safeParse=f,fi.exports.scan=u,fi.exports}var nC=tC();const rC=Cn(nC);var iC=({prefix:e,size:r=16,alphabet:l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:a="-"}={})=>{const u=eC(l,r);if(e==null)return u;if(l.includes(a))throw new K2({argument:"separator",message:`The separator "${a}" must not be part of the alphabet "${l}".`});return s=>`${e}${a}${u(s)}`},Xm=iC(),wc=Symbol.for("vercel.ai.validator");function lC(e){return{[wc]:!0,validate:e}}function aC(e){return typeof e=="object"&&e!==null&&wc in e&&e[wc]===!0&&"validate"in e}function oC(e){return aC(e)?e:uC(e)}function uC(e){return lC(r=>{const l=e.safeParse(r);return l.success?{success:!0,value:l.data}:{success:!1,error:l.error}})}function sC({value:e,schema:r}){const l=oC(r);try{if(l.validate==null)return{success:!0,value:e};const a=l.validate(e);return a.success?a:{success:!1,error:Fm.wrap({value:e,cause:a.error})}}catch(a){return{success:!1,error:Fm.wrap({value:e,cause:a})}}}function Qm({text:e,schema:r}){try{const l=rC.parse(e);return r==null?{success:!0,value:l}:sC({value:l,schema:r})}catch(l){return{success:!1,error:qm.isInstance(l)?l:new qm({text:e,cause:l})}}}var oa={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},ua={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},sa={code:"4",name:"assistant_message",parse:e=>{if(e==null||typeof e!="object"||!("id"in e)||!("role"in e)||!("content"in e)||typeof e.id!="string"||typeof e.role!="string"||e.role!=="assistant"||!Array.isArray(e.content)||!e.content.every(r=>r!=null&&typeof r=="object"&&"type"in r&&r.type==="text"&&"text"in r&&r.text!=null&&typeof r.text=="object"&&"value"in r.text&&typeof r.text.value=="string"))throw new Error('"assistant_message" parts expect an object with an "id", "role", and "content" property.');return{type:"assistant_message",value:e}}},ca={code:"5",name:"assistant_control_data",parse:e=>{if(e==null||typeof e!="object"||!("threadId"in e)||!("messageId"in e)||typeof e.threadId!="string"||typeof e.messageId!="string")throw new Error('"assistant_control_data" parts expect an object with a "threadId" and "messageId" property.');return{type:"assistant_control_data",value:{threadId:e.threadId,messageId:e.messageId}}}},fa={code:"6",name:"data_message",parse:e=>{if(e==null||typeof e!="object"||!("role"in e)||!("data"in e)||typeof e.role!="string"||e.role!=="data")throw new Error('"data_message" parts expect an object with a "role" and "data" property.');return{type:"data_message",value:e}}},cC=[oa,ua,sa,ca,fa];oa.code+"",ua.code+"",sa.code+"",ca.code+"",fa.code+"",oa.name+"",oa.code,ua.name+"",ua.code,sa.name+"",sa.code,ca.name+"",ca.code,fa.name+"",fa.code,cC.map(e=>e.code);function fC(e){const r=["ROOT"];let l=-1,a=null;function u(m,h,g){switch(m){case'"':{l=h,r.pop(),r.push(g),r.push("INSIDE_STRING");break}case"f":case"t":case"n":{l=h,a=h,r.pop(),r.push(g),r.push("INSIDE_LITERAL");break}case"-":{r.pop(),r.push(g),r.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{l=h,r.pop(),r.push(g),r.push("INSIDE_NUMBER");break}case"{":{l=h,r.pop(),r.push(g),r.push("INSIDE_OBJECT_START");break}case"[":{l=h,r.pop(),r.push(g),r.push("INSIDE_ARRAY_START");break}}}function s(m,h){switch(m){case",":{r.pop(),r.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{l=h,r.pop();break}}}function f(m,h){switch(m){case",":{r.pop(),r.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{l=h,r.pop();break}}}for(let m=0;m<e.length;m++){const h=e[m];switch(r[r.length-1]){case"ROOT":u(h,m,"FINISH");break;case"INSIDE_OBJECT_START":{switch(h){case'"':{r.pop(),r.push("INSIDE_OBJECT_KEY");break}case"}":{l=m,r.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(h){case'"':{r.pop(),r.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(h){case'"':{r.pop(),r.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(h){case":":{r.pop(),r.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{u(h,m,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{s(h,m);break}case"INSIDE_STRING":{switch(h){case'"':{r.pop(),l=m;break}case"\\":{r.push("INSIDE_STRING_ESCAPE");break}default:l=m}break}case"INSIDE_ARRAY_START":{switch(h){case"]":{l=m,r.pop();break}default:{l=m,u(h,m,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(h){case",":{r.pop(),r.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{l=m,r.pop();break}default:{l=m;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{u(h,m,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{r.pop(),l=m;break}case"INSIDE_NUMBER":{switch(h){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{l=m;break}case"e":case"E":case"-":case".":break;case",":{r.pop(),r[r.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&f(h,m),r[r.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(h,m);break}case"}":{r.pop(),r[r.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(h,m);break}case"]":{r.pop(),r[r.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&f(h,m);break}default:{r.pop();break}}break}case"INSIDE_LITERAL":{const y=e.substring(a,m+1);!"false".startsWith(y)&&!"true".startsWith(y)&&!"null".startsWith(y)?(r.pop(),r[r.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?s(h,m):r[r.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&f(h,m)):l=m;break}}}let d=e.slice(0,l+1);for(let m=r.length-1;m>=0;m--)switch(r[m]){case"INSIDE_STRING":{d+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{d+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{d+="]";break}case"INSIDE_LITERAL":{const g=e.substring(a,e.length);"true".startsWith(g)?d+="true".slice(g.length):"false".startsWith(g)?d+="false".slice(g.length):"null".startsWith(g)&&(d+="null".slice(g.length))}}return d}function dC(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let r=Qm({text:e});return r.success?{value:r.value,state:"successful-parse"}:(r=Qm({text:fC(e)}),r.success?{value:r.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var da={code:"0",name:"text",parse:e=>{if(typeof e!="string")throw new Error('"text" parts expect a string value.');return{type:"text",value:e}}},pa={code:"2",name:"data",parse:e=>{if(!Array.isArray(e))throw new Error('"data" parts expect an array value.');return{type:"data",value:e}}},ha={code:"3",name:"error",parse:e=>{if(typeof e!="string")throw new Error('"error" parts expect a string value.');return{type:"error",value:e}}},ma={code:"8",name:"message_annotations",parse:e=>{if(!Array.isArray(e))throw new Error('"message_annotations" parts expect an array value.');return{type:"message_annotations",value:e}}},ga={code:"9",name:"tool_call",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("toolName"in e)||typeof e.toolName!="string"||!("args"in e)||typeof e.args!="object")throw new Error('"tool_call" parts expect an object with a "toolCallId", "toolName", and "args" property.');return{type:"tool_call",value:e}}},ya={code:"a",name:"tool_result",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("result"in e))throw new Error('"tool_result" parts expect an object with a "toolCallId" and a "result" property.');return{type:"tool_result",value:e}}},ba={code:"b",name:"tool_call_streaming_start",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("toolName"in e)||typeof e.toolName!="string")throw new Error('"tool_call_streaming_start" parts expect an object with a "toolCallId" and "toolName" property.');return{type:"tool_call_streaming_start",value:e}}},Sa={code:"c",name:"tool_call_delta",parse:e=>{if(e==null||typeof e!="object"||!("toolCallId"in e)||typeof e.toolCallId!="string"||!("argsTextDelta"in e)||typeof e.argsTextDelta!="string")throw new Error('"tool_call_delta" parts expect an object with a "toolCallId" and "argsTextDelta" property.');return{type:"tool_call_delta",value:e}}},va={code:"d",name:"finish_message",parse:e=>{if(e==null||typeof e!="object"||!("finishReason"in e)||typeof e.finishReason!="string")throw new Error('"finish_message" parts expect an object with a "finishReason" property.');const r={finishReason:e.finishReason};return"usage"in e&&e.usage!=null&&typeof e.usage=="object"&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(r.usage={promptTokens:typeof e.usage.promptTokens=="number"?e.usage.promptTokens:Number.NaN,completionTokens:typeof e.usage.completionTokens=="number"?e.usage.completionTokens:Number.NaN}),{type:"finish_message",value:r}}},xa={code:"e",name:"finish_step",parse:e=>{if(e==null||typeof e!="object"||!("finishReason"in e)||typeof e.finishReason!="string")throw new Error('"finish_step" parts expect an object with a "finishReason" property.');const r={finishReason:e.finishReason,isContinued:!1};return"usage"in e&&e.usage!=null&&typeof e.usage=="object"&&"promptTokens"in e.usage&&"completionTokens"in e.usage&&(r.usage={promptTokens:typeof e.usage.promptTokens=="number"?e.usage.promptTokens:Number.NaN,completionTokens:typeof e.usage.completionTokens=="number"?e.usage.completionTokens:Number.NaN}),"isContinued"in e&&typeof e.isContinued=="boolean"&&(r.isContinued=e.isContinued),{type:"finish_step",value:r}}},pC=[da,pa,ha,ma,ga,ya,ba,Sa,va,xa],hC={[da.code]:da,[pa.code]:pa,[ha.code]:ha,[ma.code]:ma,[ga.code]:ga,[ya.code]:ya,[ba.code]:ba,[Sa.code]:Sa,[va.code]:va,[xa.code]:xa};da.name+"",da.code,pa.name+"",pa.code,ha.name+"",ha.code,ma.name+"",ma.code,ga.name+"",ga.code,ya.name+"",ya.code,ba.name+"",ba.code,Sa.name+"",Sa.code,va.name+"",va.code,xa.name+"",xa.code;var mC=pC.map(e=>e.code),gC=e=>{const r=e.indexOf(":");if(r===-1)throw new Error("Failed to parse stream string. No separator found.");const l=e.slice(0,r);if(!mC.includes(l))throw new Error(`Failed to parse stream string. Invalid code ${l}.`);const a=l,u=e.slice(r+1),s=JSON.parse(u);return hC[a].parse(s)},yC=10;function bC(e,r){const l=new Uint8Array(r);let a=0;for(const u of e)l.set(u,a),a+=u.length;return e.length=0,l}async function SC({stream:e,onTextPart:r,onDataPart:l,onErrorPart:a,onToolCallStreamingStartPart:u,onToolCallDeltaPart:s,onToolCallPart:f,onToolResultPart:d,onMessageAnnotationsPart:m,onFinishMessagePart:h,onFinishStepPart:g}){const y=e.getReader(),v=new TextDecoder,S=[];let R=0;for(;;){const{value:T}=await y.read();if(T&&(S.push(T),R+=T.length,T[T.length-1]!==yC))continue;if(S.length===0)break;const N=bC(S,R);R=0;const w=v.decode(N,{stream:!0}).split(`
104
+ `).filter(B=>B!=="").map(gC);for(const{type:B,value:k}of w)switch(B){case"text":await(r==null?void 0:r(k));break;case"data":await(l==null?void 0:l(k));break;case"error":await(a==null?void 0:a(k));break;case"message_annotations":await(m==null?void 0:m(k));break;case"tool_call_streaming_start":await(u==null?void 0:u(k));break;case"tool_call_delta":await(s==null?void 0:s(k));break;case"tool_call":await(f==null?void 0:f(k));break;case"tool_result":await(d==null?void 0:d(k));break;case"finish_message":await(h==null?void 0:h(k));break;case"finish_step":await(g==null?void 0:g(k));break;default:{const z=B;throw new Error(`Unknown stream part type: ${z}`)}}}}function vC({promptTokens:e,completionTokens:r}){return{promptTokens:e,completionTokens:r,totalTokens:e+r}}async function xC({stream:e,update:r,onToolCall:l,onFinish:a,generateId:u=Xm,getCurrentDate:s=()=>new Date}){const f=s();let d,m=!0;const h=[],g=[];let y;const v={};let S={completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},R="unknown";function T(){const w=[...g];if(d==null){r(h,w);return}y!=null&&y.length&&(d.annotations=y);const B={...JSON.parse(JSON.stringify(d)),revisionId:u(),createdAt:d.createdAt};r([...h,B],w)}function N(){return(m||d==null)&&(d!=null&&h.push(d),m=!1,d={id:u(),role:"assistant",content:"",createdAt:f}),d}await SC({stream:e,onTextPart(w){const B=N();d={...B,content:B.content+w},T()},onToolCallStreamingStartPart(w){const B=N();B.toolInvocations==null&&(B.toolInvocations=[]),v[w.toolCallId]={text:"",toolName:w.toolName,index:B.toolInvocations.length},B.toolInvocations.push({state:"partial-call",toolCallId:w.toolCallId,toolName:w.toolName,args:void 0}),T()},onToolCallDeltaPart(w){const B=N(),k=v[w.toolCallId];k.text+=w.argsTextDelta;const{value:z}=dC(k.text);B.toolInvocations[k.index]={state:"partial-call",toolCallId:w.toolCallId,toolName:k.toolName,args:z},T()},async onToolCallPart(w){const B=N();if(v[w.toolCallId]!=null?B.toolInvocations[v[w.toolCallId].index]={state:"call",...w}:(B.toolInvocations==null&&(B.toolInvocations=[]),B.toolInvocations.push({state:"call",...w})),l){const k=await l({toolCall:w});k!=null&&(B.toolInvocations[B.toolInvocations.length-1]={state:"result",...w,result:k})}T()},onToolResultPart(w){const k=N().toolInvocations;if(k==null)throw new Error("tool_result must be preceded by a tool_call");const z=k.findIndex(A=>A.toolCallId===w.toolCallId);if(z===-1)throw new Error("tool_result must be preceded by a tool_call with the same toolCallId");k[z]={...k[z],state:"result",...w},T()},onDataPart(w){g.push(...w),T()},onMessageAnnotationsPart(w){y==null?y=[...w]:y.push(...w),T()},onFinishStepPart(w){m=!w.isContinued},onFinishMessagePart(w){R=w.finishReason,w.usage!=null&&(S=vC(w.usage))},onErrorPart(w){throw new Error(w)}}),a==null||a({message:d,finishReason:R,usage:S})}async function EC({stream:e,onTextPart:r}){const l=e.pipeThrough(new TextDecoderStream).getReader();for(;;){const{done:a,value:u}=await l.read();if(a)break;await r(u)}}var CC=()=>fetch;async function TC({api:e,body:r,streamProtocol:l="data",credentials:a,headers:u,abortController:s,restoreMessagesOnFailure:f,onResponse:d,onUpdate:m,onFinish:h,onToolCall:g,generateId:y,fetch:v=CC()}){var S,R;const T=await v(e,{method:"POST",body:JSON.stringify(r),headers:{"Content-Type":"application/json",...u},signal:(S=s==null?void 0:s())==null?void 0:S.signal,credentials:a}).catch(N=>{throw f(),N});if(d)try{await d(T)}catch(N){throw N}if(!T.ok)throw f(),new Error((R=await T.text())!=null?R:"Failed to fetch the chat response.");if(!T.body)throw new Error("The response body is empty.");switch(l){case"text":{const N={id:y(),createdAt:new Date,role:"assistant",content:""};await EC({stream:T.body,onTextPart:w=>{N.content+=w,m([{...N}],[])}}),h==null||h(N,{usage:{completionTokens:NaN,promptTokens:NaN,totalTokens:NaN},finishReason:"unknown"});return}case"data":{await xC({stream:T.body,update:m,onToolCall:g,onFinish({message:N,finishReason:w,usage:B}){h&&N!=null&&h(N,{usage:B,finishReason:w})},generateId:y});return}default:{const N=l;throw new Error(`Unknown stream protocol: ${N}`)}}}async function Km(e){if(!e)return[];if(e instanceof FileList)return Promise.all(Array.from(e).map(async r=>{const{name:l,type:a}=r,u=await new Promise((s,f)=>{const d=new FileReader;d.onload=m=>{var h;s((h=m.target)==null?void 0:h.result)},d.onerror=m=>f(m),d.readAsDataURL(r)});return{name:l,contentType:a,url:u}}));if(Array.isArray(e))return e;throw new Error("Invalid attachments type")}var Ac={exports:{}},kc={};/**
105
105
  * @license React
106
106
  * use-sync-external-store-shim.production.js
107
107
  *
@@ -109,17 +109,90 @@ Error message: ${Sm(a)}`,cause:a}),this[Om]=!0,this.value=r}static isInstance(r)
109
109
  *
110
110
  * This source code is licensed under the MIT license found in the
111
111
  * LICENSE file in the root directory of this source tree.
112
- */var Bm;function eC(){if(Bm)return mc;Bm=1;var t=Co();function r(y,x){return y===x&&(y!==0||1/y===1/x)||y!==y&&x!==x}var a=typeof Object.is=="function"?Object.is:r,i=t.useState,u=t.useEffect,s=t.useLayoutEffect,f=t.useDebugValue;function h(y,x){var S=x(),O=i({inst:{value:S,getSnapshot:x}}),w=O[0].inst,B=O[1];return s(function(){w.value=S,w.getSnapshot=x,m(w)&&B({inst:w})},[y,S,x]),u(function(){return m(w)&&B({inst:w}),y(function(){m(w)&&B({inst:w})})},[y]),f(S),S}function m(y){var x=y.getSnapshot;y=y.value;try{var S=x();return!a(y,S)}catch{return!0}}function p(y,x){return x()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:h;return mc.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:g,mc}var Lm;function tC(){return Lm||(Lm=1,pc.exports=eC()),pc.exports}var nC=tC();const Rr=()=>{},Zt=Rr(),gc=Object,$e=t=>t===Zt,Xn=t=>typeof t=="function",Or=(t,r)=>({...t,...r}),rC=t=>Xn(t.then),Ko=new WeakMap;let lC=0;const pi=t=>{const r=typeof t,a=t&&t.constructor,i=a==Date;let u,s;if(gc(t)===t&&!i&&a!=RegExp){if(u=Ko.get(t),u)return u;if(u=++lC+"~",Ko.set(t,u),a==Array){for(u="@",s=0;s<t.length;s++)u+=pi(t[s])+",";Ko.set(t,u)}if(a==gc){u="#";const f=gc.keys(t).sort();for(;!$e(s=f.pop());)$e(t[s])||(u+=s+":"+pi(t[s])+",");Ko.set(t,u)}}else u=i?t.toJSON():r=="symbol"?t.toString():r=="string"?JSON.stringify(t):""+t;return u},ir=new WeakMap,yc={},Zo={},bc="undefined",Jo=typeof window!=bc,Sc=typeof document!=bc,aC=()=>Jo&&typeof window.requestAnimationFrame!=bc,Um=(t,r)=>{const a=ir.get(t);return[()=>!$e(r)&&t.get(r)||yc,i=>{if(!$e(r)){const u=t.get(r);r in Zo||(Zo[r]=u),a[5](r,Or(u,i),u||yc)}},a[6],()=>!$e(r)&&r in Zo?Zo[r]:!$e(r)&&t.get(r)||yc]};let vc=!0;const iC=()=>vc,[xc,Ec]=Jo&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Rr,Rr],oC=()=>{const t=Sc&&document.visibilityState;return $e(t)||t!=="hidden"},uC=t=>(Sc&&document.addEventListener("visibilitychange",t),xc("focus",t),()=>{Sc&&document.removeEventListener("visibilitychange",t),Ec("focus",t)}),sC=t=>{const r=()=>{vc=!0,t()},a=()=>{vc=!1};return xc("online",r),xc("offline",a),()=>{Ec("online",r),Ec("offline",a)}},cC={isOnline:iC,isVisible:oC},fC={initFocus:uC,initReconnect:sC},Hm=!bt.useId,mi=!Jo||"Deno"in window,dC=t=>aC()?window.requestAnimationFrame(t):setTimeout(t,1),Cc=mi?D.useEffect:D.useLayoutEffect,Tc=typeof navigator<"u"&&navigator.connection,jm=!mi&&Tc&&(["slow-2g","2g"].includes(Tc.effectiveType)||Tc.saveData),wc=t=>{if(Xn(t))try{t=t()}catch{t=""}const r=t;return t=typeof t=="string"?t:(Array.isArray(t)?t.length:t)?pi(t):"",[t,r]};let hC=0;const Ac=()=>++hC,Vm=0,Im=1,qm=2;var gi={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:Vm,MUTATE_EVENT:qm,RECONNECT_EVENT:Im};async function Gm(...t){const[r,a,i,u]=t,s=Or({populateCache:!0,throwOnError:!0},typeof u=="boolean"?{revalidate:u}:u||{});let f=s.populateCache;const h=s.rollbackOnError;let m=s.optimisticData;const p=x=>typeof h=="function"?h(x):h!==!1,g=s.throwOnError;if(Xn(a)){const x=a,S=[],O=r.keys();for(const w of O)!/^\$(inf|sub)\$/.test(w)&&x(r.get(w)._k)&&S.push(w);return Promise.all(S.map(y))}return y(a);async function y(x){const[S]=wc(x);if(!S)return;const[O,w]=Um(r,S),[B,T,N,A]=ir.get(r),z=()=>{const P=B[S];return(Xn(s.revalidate)?s.revalidate(O().data,x):s.revalidate!==!1)&&(delete N[S],delete A[S],P&&P[0])?P[0](qm).then(()=>O().data):O().data};if(t.length<3)return z();let R=i,M;const I=Ac();T[S]=[I,0];const te=!$e(m),G=O(),E=G.data,j=G._c,$=$e(j)?E:j;if(te&&(m=Xn(m)?m($,E):m,w({data:m,_c:$})),Xn(R))try{R=R($)}catch(P){M=P}if(R&&rC(R))if(R=await R.catch(P=>{M=P}),I!==T[S][0]){if(M)throw M;return R}else M&&te&&p(M)&&(f=!0,w({data:$,_c:Zt}));if(f&&!M)if(Xn(f)){const P=f(R,$);w({data:P,error:Zt,_c:Zt})}else w({data:R,error:Zt,_c:Zt});if(T[S][1]=Ac(),Promise.resolve(z()).then(()=>{w({_c:Zt})}),M){if(g)throw M;return}return R}}const Ym=(t,r)=>{for(const a in t)t[a][0]&&t[a][0](r)},pC=(t,r)=>{if(!ir.has(t)){const a=Or(fC,r),i={},u=Gm.bind(Zt,t);let s=Rr;const f={},h=(g,y)=>{const x=f[g]||[];return f[g]=x,x.push(y),()=>x.splice(x.indexOf(y),1)},m=(g,y,x)=>{t.set(g,y);const S=f[g];if(S)for(const O of S)O(y,x)},p=()=>{if(!ir.has(t)&&(ir.set(t,[i,{},{},{},u,m,h]),!mi)){const g=a.initFocus(setTimeout.bind(Zt,Ym.bind(Zt,i,Vm))),y=a.initReconnect(setTimeout.bind(Zt,Ym.bind(Zt,i,Im)));s=()=>{g&&g(),y&&y(),ir.delete(t)}}};return p(),[t,u,p,s]}return[t,ir.get(t)[4]]},mC=(t,r,a,i,u)=>{const s=a.errorRetryCount,f=u.retryCount,h=~~((Math.random()+.5)*(1<<(f<8?f:8)))*a.errorRetryInterval;!$e(s)&&f>s||setTimeout(i,h,u)},gC=(t,r)=>pi(t)==pi(r),[$m,yC]=pC(new Map),bC=Or({onLoadingSlow:Rr,onSuccess:Rr,onError:Rr,onErrorRetry:mC,onDiscarded:Rr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:jm?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:jm?5e3:3e3,compare:gC,isPaused:()=>!1,cache:$m,mutate:yC,fallback:{}},cC),SC=(t,r)=>{const a=Or(t,r);if(r){const{use:i,fallback:u}=t,{use:s,fallback:f}=r;i&&s&&(a.use=i.concat(s)),u&&f&&(a.fallback=Or(u,f))}return a},vC=D.createContext({}),xC="$inf$",Fm=Jo&&window.__SWR_DEVTOOLS_USE__,EC=Fm?window.__SWR_DEVTOOLS_USE__:[],CC=()=>{Fm&&(window.__SWR_DEVTOOLS_REACT__=bt)},TC=t=>Xn(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(t[1]===null?t[2]:t[1])||{}],wC=()=>Or(bC,D.useContext(vC)),AC=t=>(r,a,i)=>t(r,a&&((...s)=>{const[f]=wc(r),[,,,h]=ir.get($m);if(f.startsWith(xC))return a(...s);const m=h[f];return $e(m)?a(...s):(delete h[f],m)}),i),kC=EC.concat(AC),RC=t=>function(...a){const i=wC(),[u,s,f]=TC(a),h=SC(i,f);let m=t;const{use:p}=h,g=(p||[]).concat(kC);for(let y=g.length;y--;)m=g[y](m);return m(u,s||h.fetcher||null,h)},OC=(t,r,a)=>{const i=r[t]||(r[t]=[]);return i.push(a),()=>{const u=i.indexOf(a);u>=0&&(i[u]=i[i.length-1],i.pop())}};CC();const Xm=bt.use||(t=>{if(t.status==="pending")throw t;if(t.status==="fulfilled")return t.value;throw t.status==="rejected"?t.reason:(t.status="pending",t.then(r=>{t.status="fulfilled",t.value=r},r=>{t.status="rejected",t.reason=r}),t)}),kc={dedupe:!0},Wo=RC((t,r,a)=>{const{cache:i,compare:u,suspense:s,fallbackData:f,revalidateOnMount:h,revalidateIfStale:m,refreshInterval:p,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:x}=a,[S,O,w,B]=ir.get(i),[T,N]=wc(t),A=D.useRef(!1),z=D.useRef(!1),R=D.useRef(T),M=D.useRef(r),I=D.useRef(a),te=()=>I.current,G=()=>te().isVisible()&&te().isOnline(),[E,j,$,P]=Um(i,T),Q=D.useRef({}).current,ee=$e(f)?a.fallback[T]:f,V=(pe,me)=>{for(const se in Q){const Ee=se;if(Ee==="data"){if(!u(pe[Ee],me[Ee])&&(!$e(pe[Ee])||!u(ye,me[Ee])))return!1}else if(me[Ee]!==pe[Ee])return!1}return!0},ne=D.useMemo(()=>{const pe=!T||!r?!1:$e(h)?te().isPaused()||s?!1:$e(m)?!0:m:h,me=it=>{const vt=Or(it);return delete vt._k,pe?{isValidating:!0,isLoading:!0,...vt}:vt},se=E(),Ee=P(),Ye=me(se),je=se===Ee?Ye:me(Ee);let De=Ye;return[()=>{const it=me(E());return V(it,De)?(De.data=it.data,De.isLoading=it.isLoading,De.isValidating=it.isValidating,De.error=it.error,De):(De=it,it)},()=>je]},[i,T]),W=nC.useSyncExternalStore(D.useCallback(pe=>$(T,(me,se)=>{V(se,me)||pe()}),[i,T]),ne[0],ne[1]),fe=!A.current,v=S[T]&&S[T].length>0,Z=W.data,ue=$e(Z)?ee:Z,k=W.error,ie=D.useRef(ue),ye=x?$e(Z)?ie.current:Z:ue,he=v&&!$e(k)?!1:fe&&!$e(h)?h:te().isPaused()?!1:s?$e(ue)?!1:m:$e(ue)||m,He=!!(T&&r&&fe&&he),xe=$e(W.isValidating)?He:W.isValidating,Re=$e(W.isLoading)?He:W.isLoading,de=D.useCallback(async pe=>{const me=M.current;if(!T||!me||z.current||te().isPaused())return!1;let se,Ee,Ye=!0;const je=pe||{},De=!w[T]||!je.dedupe,it=()=>Hm?!z.current&&T===R.current&&A.current:T===R.current,vt={isValidating:!1,isLoading:!1},fn=()=>{j(vt)},Bn=()=>{const Ne=w[T];Ne&&Ne[1]===Ee&&delete w[T]},dn={isValidating:!0};$e(E().data)&&(dn.isLoading=!0);try{if(De&&(j(dn),a.loadingTimeout&&$e(E().data)&&setTimeout(()=>{Ye&&it()&&te().onLoadingSlow(T,a)},a.loadingTimeout),w[T]=[me(N),Ac()]),[se,Ee]=w[T],se=await se,De&&setTimeout(Bn,a.dedupingInterval),!w[T]||w[T][1]!==Ee)return De&&it()&&te().onDiscarded(T),!1;vt.error=Zt;const Ne=O[T];if(!$e(Ne)&&(Ee<=Ne[0]||Ee<=Ne[1]||Ne[1]===0))return fn(),De&&it()&&te().onDiscarded(T),!1;const Dt=E().data;vt.data=u(Dt,se)?Dt:se,De&&it()&&te().onSuccess(se,T,a)}catch(Ne){Bn();const Dt=te(),{shouldRetryOnError:F}=Dt;Dt.isPaused()||(vt.error=Ne,De&&it()&&(Dt.onError(Ne,T,Dt),(F===!0||Xn(F)&&F(Ne))&&(!te().revalidateOnFocus||!te().revalidateOnReconnect||G())&&Dt.onErrorRetry(Ne,T,Dt,le=>{const ce=S[T];ce&&ce[0]&&ce[0](gi.ERROR_REVALIDATE_EVENT,le)},{retryCount:(je.retryCount||0)+1,dedupe:!0})))}return Ye=!1,fn(),!0},[T,i]),_e=D.useCallback((...pe)=>Gm(i,R.current,...pe),[]);if(Cc(()=>{M.current=r,I.current=a,$e(Z)||(ie.current=Z)}),Cc(()=>{if(!T)return;const pe=de.bind(Zt,kc);let me=0;const Ee=OC(T,S,(Ye,je={})=>{if(Ye==gi.FOCUS_EVENT){const De=Date.now();te().revalidateOnFocus&&De>me&&G()&&(me=De+te().focusThrottleInterval,pe())}else if(Ye==gi.RECONNECT_EVENT)te().revalidateOnReconnect&&G()&&pe();else{if(Ye==gi.MUTATE_EVENT)return de();if(Ye==gi.ERROR_REVALIDATE_EVENT)return de(je)}});return z.current=!1,R.current=T,A.current=!0,j({_k:N}),he&&($e(ue)||mi?pe():dC(pe)),()=>{z.current=!0,Ee()}},[T]),Cc(()=>{let pe;function me(){const Ee=Xn(p)?p(E().data):p;Ee&&pe!==-1&&(pe=setTimeout(se,Ee))}function se(){!E().error&&(g||te().isVisible())&&(y||te().isOnline())?de(kc).then(me):me()}return me(),()=>{pe&&(clearTimeout(pe),pe=-1)}},[p,g,y,T]),D.useDebugValue(ye),s&&$e(ue)&&T){if(!Hm&&mi)throw new Error("Fallback data is required when using suspense in SSR.");M.current=r,I.current=a,z.current=!1;const pe=B[T];if(!$e(pe)){const me=_e(pe);Xm(me)}if($e(k)){const me=de(kc);$e(ye)||(me.status="fulfilled",me.value=!0),Xm(me)}else throw k}return{mutate:_e,get data(){return Q.data=!0,ye},get error(){return Q.error=!0,k},get isValidating(){return Q.isValidating=!0,xe},get isLoading(){return Q.isLoading=!0,Re}}});var Rc,Pm;function _C(){if(Pm)return Rc;Pm=1;function t(r,a){if(typeof r!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof r}\`.`);let i,u=0;return function(...f){clearTimeout(i);const h=Date.now(),m=h-u,p=a-m;p<=0?(u=h,r.apply(this,f)):i=setTimeout(()=>{u=Date.now(),r.apply(this,f)},p)}}return Rc=t,Rc}var MC=_C();const DC=el(MC);function Qm(t,r){return r!=null?DC(t,r):t}var NC=async(t,r,a,i,u,s,f,h,m,p,g,y,x,S,O,w,B)=>{var T;const N=f.current;a(r.messages,!1);const A=S?r.messages:r.messages.map(({role:R,content:M,experimental_attachments:I,data:te,annotations:G,toolInvocations:E})=>({role:R,content:M,...I!==void 0&&{experimental_attachments:I},...te!==void 0&&{data:te},...G!==void 0&&{annotations:G},...E!==void 0&&{toolInvocations:E}})),z=u.current;return await W2({api:t,body:(T=O==null?void 0:O({messages:r.messages,requestData:r.data,requestBody:r.body}))!=null?T:{messages:A,data:r.data,...s.current.body,...r.body},streamProtocol:p,credentials:s.current.credentials,headers:{...s.current.headers,...r.headers},abortController:()=>h.current,restoreMessagesOnFailure(){B||a(N,!1)},onResponse:y,onUpdate(R,M){a([...r.messages,...R],!1),M!=null&&M.length&&i([...z??[],...M],!1)},onToolCall:x,onFinish:g,generateId:m,fetch:w})};function zC({api:t="/api/chat",id:r,initialMessages:a,initialInput:i="",sendExtraMessageFields:u,onToolCall:s,experimental_prepareRequestBody:f,maxSteps:h=1,streamProtocol:m="data",onResponse:p,onFinish:g,onError:y,credentials:x,headers:S,body:O,generateId:w=Dm,fetch:B,keepLastMessageOnError:T=!0,experimental_throttle:N}={}){const A=D.useId(),z=r??A,R=typeof t=="string"?[t,z]:z,[M]=D.useState([]),{data:I,mutate:te}=Wo([R,"messages"],null,{fallbackData:a??M}),G=D.useRef(I||[]);D.useEffect(()=>{G.current=I||[]},[I]);const{data:E,mutate:j}=Wo([R,"streamData"],null),$=D.useRef(E);D.useEffect(()=>{$.current=E},[E]);const{data:P=!1,mutate:Q}=Wo([R,"loading"],null),{data:ee=void 0,mutate:V}=Wo([R,"error"],null),ne=D.useRef(null),W=D.useRef({credentials:x,headers:S,body:O});D.useEffect(()=>{W.current={credentials:x,headers:S,body:O}},[x,S,O]);const fe=D.useCallback(async de=>{const _e=G.current.length;try{Q(!0),V(void 0);const se=new AbortController;ne.current=se,await NC(t,de,Qm(te,N),Qm(j,N),$,W,G,ne,w,m,g,p,s,u,f,B,T),ne.current=null}catch(se){if(se.name==="AbortError")return ne.current=null,null;y&&se instanceof Error&&y(se),V(se)}finally{Q(!1)}const pe=G.current,me=pe[pe.length-1];pe.length>_e&&me!=null&&h>1&&Km(me)&&BC(pe)<h&&await fe({messages:pe})},[te,Q,t,W,p,g,y,V,j,$,m,u,f,s,h,G,ne,w,B,T,N]),v=D.useCallback(async(de,{data:_e,headers:pe,body:me,experimental_attachments:se}={})=>{var Ee,Ye;const je=await zm(se),De=G.current.concat({...de,id:(Ee=de.id)!=null?Ee:w(),createdAt:(Ye=de.createdAt)!=null?Ye:new Date,experimental_attachments:je.length>0?je:void 0});return fe({messages:De,headers:pe,body:me,data:_e})},[fe,w]),Z=D.useCallback(async({data:de,headers:_e,body:pe}={})=>{const me=G.current;if(me.length===0)return null;const se=me[me.length-1];return fe({messages:se.role==="assistant"?me.slice(0,-1):me,headers:_e,body:pe,data:de})},[fe]),ue=D.useCallback(()=>{ne.current&&(ne.current.abort(),ne.current=null)},[]),k=D.useCallback(de=>{typeof de=="function"&&(de=de(G.current)),te(de,!1),G.current=de},[te]),ie=D.useCallback(de=>{typeof de=="function"&&(de=de($.current)),j(de,!1),$.current=de},[j]),[ye,he]=D.useState(i),He=D.useCallback(async(de,_e={},pe)=>{var me;if((me=de==null?void 0:de.preventDefault)==null||me.call(de),!ye&&!_e.allowEmptySubmit)return;pe&&(W.current={...W.current,...pe});const se=await zm(_e.experimental_attachments),Ye={messages:!ye&&!se.length&&_e.allowEmptySubmit?G.current:G.current.concat({id:w(),createdAt:new Date,role:"user",content:ye,experimental_attachments:se.length>0?se:void 0}),headers:_e.headers,body:_e.body,data:_e.data};fe(Ye),he("")},[ye,w,fe]);return{messages:I||[],setMessages:k,data:E,setData:ie,error:ee,append:v,reload:Z,stop:ue,input:ye,setInput:he,handleInputChange:de=>{he(de.target.value)},handleSubmit:He,isLoading:P,addToolResult:({toolCallId:de,result:_e})=>{const pe=G.current.map((se,Ee,Ye)=>Ee===Ye.length-1&&se.role==="assistant"&&se.toolInvocations?{...se,toolInvocations:se.toolInvocations.map(je=>je.toolCallId===de?{...je,result:_e,state:"result"}:je)}:se);te(pe,!1);const me=pe[pe.length-1];Km(me)&&fe({messages:pe})}}}function Km(t){return t.role==="assistant"&&t.toolInvocations&&t.toolInvocations.length>0&&t.toolInvocations.every(r=>"result"in r)}function BC(t){let r=0;for(let a=t.length-1;a>=0&&t[a].role==="assistant";a--)r++;return r}var LC=zC;const UC=t=>t,HC=t=>async(r,a)=>{var f;if(typeof(a==null?void 0:a.body)!="string")return console.error("Unexpected body type."),window.fetch(r,a);const i=JSON.parse(a==null?void 0:a.body).messages,u=t.transformBody??UC,s={...a,body:JSON.stringify(u(i)),...t.fetchOpts,headers:{...a==null?void 0:a.headers,"Content-Type":"application/json",...(f=t.fetchOpts)==null?void 0:f.headers}};return fetch(r,s)},jC=(t,r)=>{const a=D.useMemo(()=>HC(t),[t]);return LC({api:t.apiUrl,streamProtocol:"text",fetch:a,onFinish:i=>{var u;t.onFinish&&(i.role==="assistant"||i.role==="user"?(u=t.onFinish)==null||u.call(t,i):console.info("Unexpected message role.",i))},...r})};function Y3(){}function $3(){}function VC(t,r){const a={};return(t[t.length-1]===""?[...t,""]:t).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}const IC=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qC=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,GC={};function Zm(t,r){return(GC.jsx?qC:IC).test(t)}const YC=/[ \t\n\f\r]/g;function $C(t){return typeof t=="object"?t.type==="text"?Jm(t.value):!1:Jm(t)}function Jm(t){return t.replace(YC,"")===""}class yi{constructor(r,a,i){this.property=r,this.normal=a,i&&(this.space=i)}}yi.prototype.property={},yi.prototype.normal={},yi.prototype.space=null;function Wm(t,r){const a={},i={};let u=-1;for(;++u<t.length;)Object.assign(a,t[u].property),Object.assign(i,t[u].normal);return new yi(a,i,r)}function Oc(t){return t.toLowerCase()}class xn{constructor(r,a){this.property=r,this.attribute=a}}xn.prototype.space=null,xn.prototype.boolean=!1,xn.prototype.booleanish=!1,xn.prototype.overloadedBoolean=!1,xn.prototype.number=!1,xn.prototype.commaSeparated=!1,xn.prototype.spaceSeparated=!1,xn.prototype.commaOrSpaceSeparated=!1,xn.prototype.mustUseProperty=!1,xn.prototype.defined=!1;let FC=0;const ke=il(),Tt=il(),eg=il(),oe=il(),lt=il(),Xl=il(),sn=il();function il(){return 2**++FC}const _c=Object.freeze(Object.defineProperty({__proto__:null,boolean:ke,booleanish:Tt,commaOrSpaceSeparated:sn,commaSeparated:Xl,number:oe,overloadedBoolean:eg,spaceSeparated:lt},Symbol.toStringTag,{value:"Module"})),Mc=Object.keys(_c);class Dc extends xn{constructor(r,a,i,u){let s=-1;if(super(r,a),tg(this,"space",u),typeof i=="number")for(;++s<Mc.length;){const f=Mc[s];tg(this,Mc[s],(i&_c[f])===_c[f])}}}Dc.prototype.defined=!0;function tg(t,r,a){a&&(t[r]=a)}const XC={}.hasOwnProperty;function Pl(t){const r={},a={};let i;for(i in t.properties)if(XC.call(t.properties,i)){const u=t.properties[i],s=new Dc(i,t.transform(t.attributes||{},i),u,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),r[i]=s,a[Oc(i)]=i,a[Oc(s.attribute)]=i}return new yi(r,a,t.space)}const ng=Pl({space:"xlink",transform(t,r){return"xlink:"+r.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),rg=Pl({space:"xml",transform(t,r){return"xml:"+r.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function lg(t,r){return r in t?t[r]:r}function ag(t,r){return lg(t,r.toLowerCase())}const ig=Pl({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ag,properties:{xmlns:null,xmlnsXLink:null}}),og=Pl({transform(t,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Tt,ariaAutoComplete:null,ariaBusy:Tt,ariaChecked:Tt,ariaColCount:oe,ariaColIndex:oe,ariaColSpan:oe,ariaControls:lt,ariaCurrent:null,ariaDescribedBy:lt,ariaDetails:null,ariaDisabled:Tt,ariaDropEffect:lt,ariaErrorMessage:null,ariaExpanded:Tt,ariaFlowTo:lt,ariaGrabbed:Tt,ariaHasPopup:null,ariaHidden:Tt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:lt,ariaLevel:oe,ariaLive:null,ariaModal:Tt,ariaMultiLine:Tt,ariaMultiSelectable:Tt,ariaOrientation:null,ariaOwns:lt,ariaPlaceholder:null,ariaPosInSet:oe,ariaPressed:Tt,ariaReadOnly:Tt,ariaRelevant:null,ariaRequired:Tt,ariaRoleDescription:lt,ariaRowCount:oe,ariaRowIndex:oe,ariaRowSpan:oe,ariaSelected:Tt,ariaSetSize:oe,ariaSort:null,ariaValueMax:oe,ariaValueMin:oe,ariaValueNow:oe,ariaValueText:null,role:null}}),PC=Pl({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ag,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xl,acceptCharset:lt,accessKey:lt,action:null,allow:null,allowFullScreen:ke,allowPaymentRequest:ke,allowUserMedia:ke,alt:null,as:null,async:ke,autoCapitalize:null,autoComplete:lt,autoFocus:ke,autoPlay:ke,blocking:lt,capture:null,charSet:null,checked:ke,cite:null,className:lt,cols:oe,colSpan:null,content:null,contentEditable:Tt,controls:ke,controlsList:lt,coords:oe|Xl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ke,defer:ke,dir:null,dirName:null,disabled:ke,download:eg,draggable:Tt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ke,formTarget:null,headers:lt,height:oe,hidden:ke,high:oe,href:null,hrefLang:null,htmlFor:lt,httpEquiv:lt,id:null,imageSizes:null,imageSrcSet:null,inert:ke,inputMode:null,integrity:null,is:null,isMap:ke,itemId:null,itemProp:lt,itemRef:lt,itemScope:ke,itemType:lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ke,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:ke,muted:ke,name:null,nonce:null,noModule:ke,noValidate:ke,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ke,optimum:oe,pattern:null,ping:lt,placeholder:null,playsInline:ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ke,referrerPolicy:null,rel:lt,required:ke,reversed:ke,rows:oe,rowSpan:oe,sandbox:lt,scope:null,scoped:ke,seamless:ke,selected:ke,shadowRootClonable:ke,shadowRootDelegatesFocus:ke,shadowRootMode:null,shape:null,size:oe,sizes:null,slot:null,span:oe,spellCheck:Tt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:oe,step:null,style:null,tabIndex:oe,target:null,title:null,translate:null,type:null,typeMustMatch:ke,useMap:null,value:Tt,width:oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:lt,axis:null,background:null,bgColor:null,border:oe,borderColor:null,bottomMargin:oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ke,declare:ke,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:ke,noHref:ke,noShade:ke,noWrap:ke,object:null,profile:null,prompt:null,rev:null,rightMargin:oe,rules:null,scheme:null,scrolling:Tt,standby:null,summary:null,text:null,topMargin:oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ke,disableRemotePlayback:ke,prefix:null,property:null,results:oe,security:null,unselectable:null}}),QC=Pl({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:lg,properties:{about:sn,accentHeight:oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oe,amplitude:oe,arabicForm:null,ascent:oe,attributeName:null,attributeType:null,azimuth:oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oe,by:null,calcMode:null,capHeight:oe,className:lt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:oe,diffuseConstant:oe,direction:null,display:null,dur:null,divisor:oe,dominantBaseline:null,download:ke,dx:null,dy:null,edgeMode:null,editable:null,elevation:oe,enableBackground:null,end:null,event:null,exponent:oe,externalResourcesRequired:null,fill:null,fillOpacity:oe,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:Xl,g2:Xl,glyphName:Xl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oe,horizOriginX:oe,horizOriginY:oe,id:null,ideographic:oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oe,k:oe,k1:oe,k2:oe,k3:oe,k4:oe,kernelMatrix:sn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oe,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:oe,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:oe,overlineThickness:oe,paintOrder:null,panose1:null,path:null,pathLength:oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:lt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oe,pointsAtY:oe,pointsAtZ:oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:sn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:sn,rev:sn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:sn,requiredFeatures:sn,requiredFonts:sn,requiredFormats:sn,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:oe,specularExponent:oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oe,strikethroughThickness:oe,string:null,stroke:null,strokeDashArray:sn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oe,strokeOpacity:oe,strokeWidth:null,style:null,surfaceScale:oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:sn,tabIndex:oe,tableValues:null,target:null,targetX:oe,targetY:oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:sn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oe,underlineThickness:oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oe,values:null,vAlphabetic:oe,vMathematical:oe,vectorEffect:null,vHanging:oe,vIdeographic:oe,version:null,vertAdvY:oe,vertOriginX:oe,vertOriginY:oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),KC=/^data[-\w.:]+$/i,ug=/-[a-z]/g,ZC=/[A-Z]/g;function JC(t,r){const a=Oc(r);let i=r,u=xn;if(a in t.normal)return t.property[t.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&KC.test(r)){if(r.charAt(4)==="-"){const s=r.slice(5).replace(ug,eT);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=r.slice(4);if(!ug.test(s)){let f=s.replace(ZC,WC);f.charAt(0)!=="-"&&(f="-"+f),r="data"+f}}u=Dc}return new u(i,r)}function WC(t){return"-"+t.toLowerCase()}function eT(t){return t.charAt(1).toUpperCase()}const tT={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"},nT=Wm([rg,ng,ig,og,PC],"html"),Nc=Wm([rg,ng,ig,og,QC],"svg");function rT(t){return t.join(" ").trim()}var bi={},zc,sg;function lT(){if(sg)return zc;sg=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,a=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,u=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,h=/^\s+|\s+$/g,m=`
113
- `,p="/",g="*",y="",x="comment",S="declaration";zc=function(w,B){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];B=B||{};var T=1,N=1;function A(P){var Q=P.match(r);Q&&(T+=Q.length);var ee=P.lastIndexOf(m);N=~ee?P.length-ee:N+P.length}function z(){var P={line:T,column:N};return function(Q){return Q.position=new R(P),te(),Q}}function R(P){this.start=P,this.end={line:T,column:N},this.source=B.source}R.prototype.content=w;function M(P){var Q=new Error(B.source+":"+T+":"+N+": "+P);if(Q.reason=P,Q.filename=B.source,Q.line=T,Q.column=N,Q.source=w,!B.silent)throw Q}function I(P){var Q=P.exec(w);if(Q){var ee=Q[0];return A(ee),w=w.slice(ee.length),Q}}function te(){I(a)}function G(P){var Q;for(P=P||[];Q=E();)Q!==!1&&P.push(Q);return P}function E(){var P=z();if(!(p!=w.charAt(0)||g!=w.charAt(1))){for(var Q=2;y!=w.charAt(Q)&&(g!=w.charAt(Q)||p!=w.charAt(Q+1));)++Q;if(Q+=2,y===w.charAt(Q-1))return M("End of comment missing");var ee=w.slice(2,Q-2);return N+=2,A(ee),w=w.slice(Q),N+=2,P({type:x,comment:ee})}}function j(){var P=z(),Q=I(i);if(Q){if(E(),!I(u))return M("property missing ':'");var ee=I(s),V=P({type:S,property:O(Q[0].replace(t,y)),value:ee?O(ee[0].replace(t,y)):y});return I(f),V}}function $(){var P=[];G(P);for(var Q;Q=j();)Q!==!1&&(P.push(Q),G(P));return P}return te(),$()};function O(w){return w?w.replace(h,y):y}return zc}var cg;function aT(){if(cg)return bi;cg=1;var t=bi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(bi,"__esModule",{value:!0}),bi.default=a;var r=t(lT());function a(i,u){var s=null;if(!i||typeof i!="string")return s;var f=(0,r.default)(i),h=typeof u=="function";return f.forEach(function(m){if(m.type==="declaration"){var p=m.property,g=m.value;h?u(p,g,m):g&&(s=s||{},s[p]=g)}}),s}return bi}var iT=aT();const fg=el(iT),oT=fg.default||fg,dg=hg("end"),Bc=hg("start");function hg(t){return r;function r(a){const i=a&&a.position&&a.position[t]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function uT(t){const r=Bc(t),a=dg(t);if(r&&a)return{start:r,end:a}}function Si(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?pg(t.position):"start"in t||"end"in t?pg(t):"line"in t||"column"in t?Lc(t):""}function Lc(t){return mg(t&&t.line)+":"+mg(t&&t.column)}function pg(t){return Lc(t&&t.start)+"-"+Lc(t&&t.end)}function mg(t){return t&&typeof t=="number"?t:1}class Yt extends Error{constructor(r,a,i){super(),typeof a=="string"&&(i=a,a=void 0);let u="",s={},f=!1;if(a&&("line"in a&&"column"in a?s={place:a}:"start"in a&&"end"in a?s={place:a}:"type"in a?s={ancestors:[a],place:a.position}:s={...a}),typeof r=="string"?u=r:!s.cause&&r&&(f=!0,u=r.message,s.cause=r),!s.ruleId&&!s.source&&typeof i=="string"){const m=i.indexOf(":");m===-1?s.ruleId=i:(s.source=i.slice(0,m),s.ruleId=i.slice(m+1))}if(!s.place&&s.ancestors&&s.ancestors){const m=s.ancestors[s.ancestors.length-1];m&&(s.place=m.position)}const h=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=h?h.column:void 0,this.fatal=void 0,this.file,this.message=u,this.line=h?h.line:void 0,this.name=Si(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=f&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}Yt.prototype.file="",Yt.prototype.name="",Yt.prototype.reason="",Yt.prototype.message="",Yt.prototype.stack="",Yt.prototype.column=void 0,Yt.prototype.line=void 0,Yt.prototype.ancestors=void 0,Yt.prototype.cause=void 0,Yt.prototype.fatal=void 0,Yt.prototype.place=void 0,Yt.prototype.ruleId=void 0,Yt.prototype.source=void 0;const Uc={}.hasOwnProperty,sT=new Map,cT=/[A-Z]/g,fT=/-([a-z])/g,dT=new Set(["table","tbody","thead","tfoot","tr"]),hT=new Set(["td","th"]),gg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function pT(t,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const a=r.filePath||void 0;let i;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=ET(a,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=xT(a,r.jsx,r.jsxs)}const u={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:i,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?Nc:nT,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},s=yg(u,t,void 0);return s&&typeof s!="string"?s:u.create(t,u.Fragment,{children:s||void 0},void 0)}function yg(t,r,a){if(r.type==="element")return mT(t,r,a);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return gT(t,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return bT(t,r,a);if(r.type==="mdxjsEsm")return yT(t,r);if(r.type==="root")return ST(t,r,a);if(r.type==="text")return vT(t,r)}function mT(t,r,a){const i=t.schema;let u=i;r.tagName.toLowerCase()==="svg"&&i.space==="html"&&(u=Nc,t.schema=u),t.ancestors.push(r);const s=Sg(t,r.tagName,!1),f=CT(t,r);let h=jc(t,r);return dT.has(r.tagName)&&(h=h.filter(function(m){return typeof m=="string"?!$C(m):!0})),bg(t,f,s,r),Hc(f,h),t.ancestors.pop(),t.schema=i,t.create(r,s,f,a)}function gT(t,r){if(r.data&&r.data.estree&&t.evaluater){const i=r.data.estree.body[0];return i.type,t.evaluater.evaluateExpression(i.expression)}vi(t,r.position)}function yT(t,r){if(r.data&&r.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(r.data.estree);vi(t,r.position)}function bT(t,r,a){const i=t.schema;let u=i;r.name==="svg"&&i.space==="html"&&(u=Nc,t.schema=u),t.ancestors.push(r);const s=r.name===null?t.Fragment:Sg(t,r.name,!0),f=TT(t,r),h=jc(t,r);return bg(t,f,s,r),Hc(f,h),t.ancestors.pop(),t.schema=i,t.create(r,s,f,a)}function ST(t,r,a){const i={};return Hc(i,jc(t,r)),t.create(r,t.Fragment,i,a)}function vT(t,r){return r.value}function bg(t,r,a,i){typeof a!="string"&&a!==t.Fragment&&t.passNode&&(r.node=i)}function Hc(t,r){if(r.length>0){const a=r.length>1?r:r[0];a&&(t.children=a)}}function xT(t,r,a){return i;function i(u,s,f,h){const p=Array.isArray(f.children)?a:r;return h?p(s,f,h):p(s,f)}}function ET(t,r){return a;function a(i,u,s,f){const h=Array.isArray(s.children),m=Bc(i);return r(u,s,f,h,{columnNumber:m?m.column-1:void 0,fileName:t,lineNumber:m?m.line:void 0},void 0)}}function CT(t,r){const a={};let i,u;for(u in r.properties)if(u!=="children"&&Uc.call(r.properties,u)){const s=wT(t,u,r.properties[u]);if(s){const[f,h]=s;t.tableCellAlignToStyle&&f==="align"&&typeof h=="string"&&hT.has(r.tagName)?i=h:a[f]=h}}if(i){const s=a.style||(a.style={});s[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return a}function TT(t,r){const a={};for(const i of r.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&t.evaluater){const s=i.data.estree.body[0];s.type;const f=s.expression;f.type;const h=f.properties[0];h.type,Object.assign(a,t.evaluater.evaluateExpression(h.argument))}else vi(t,r.position);else{const u=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&t.evaluater){const h=i.value.data.estree.body[0];h.type,s=t.evaluater.evaluateExpression(h.expression)}else vi(t,r.position);else s=i.value===null?!0:i.value;a[u]=s}return a}function jc(t,r){const a=[];let i=-1;const u=t.passKeys?new Map:sT;for(;++i<r.children.length;){const s=r.children[i];let f;if(t.passKeys){const m=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(m){const p=u.get(m)||0;f=m+"-"+p,u.set(m,p+1)}}const h=yg(t,s,f);h!==void 0&&a.push(h)}return a}function wT(t,r,a){const i=JC(t.schema,r);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=i.commaSeparated?VC(a):rT(a)),i.property==="style"){let u=typeof a=="object"?a:AT(t,String(a));return t.stylePropertyNameCase==="css"&&(u=kT(u)),["style",u]}return[t.elementAttributeNameCase==="react"&&i.space?tT[i.property]||i.property:i.attribute,a]}}function AT(t,r){const a={};try{oT(r,i)}catch(u){if(!t.ignoreInvalidStyle){const s=u,f=new Yt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:s,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw f.file=t.filePath||void 0,f.url=gg+"#cannot-parse-style-attribute",f}}return a;function i(u,s){let f=u;f.slice(0,2)!=="--"&&(f.slice(0,4)==="-ms-"&&(f="ms-"+f.slice(4)),f=f.replace(fT,OT)),a[f]=s}}function Sg(t,r,a){let i;if(!a)i={type:"Literal",value:r};else if(r.includes(".")){const u=r.split(".");let s=-1,f;for(;++s<u.length;){const h=Zm(u[s])?{type:"Identifier",name:u[s]}:{type:"Literal",value:u[s]};f=f?{type:"MemberExpression",object:f,property:h,computed:!!(s&&h.type==="Literal"),optional:!1}:h}i=f}else i=Zm(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(i.type==="Literal"){const u=i.value;return Uc.call(t.components,u)?t.components[u]:u}if(t.evaluater)return t.evaluater.evaluateExpression(i);vi(t)}function vi(t,r){const a=new Yt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=t.filePath||void 0,a.url=gg+"#cannot-handle-mdx-estrees-without-createevaluater",a}function kT(t){const r={};let a;for(a in t)Uc.call(t,a)&&(r[RT(a)]=t[a]);return r}function RT(t){let r=t.replace(cT,_T);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function OT(t,r){return r.toUpperCase()}function _T(t){return"-"+t.toLowerCase()}const Vc={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"]},MT={};function DT(t,r){const a=MT,i=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,u=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return vg(t,i,u)}function vg(t,r,a){if(NT(t)){if("value"in t)return t.type==="html"&&!a?"":t.value;if(r&&"alt"in t&&t.alt)return t.alt;if("children"in t)return xg(t.children,r,a)}return Array.isArray(t)?xg(t,r,a):""}function xg(t,r,a){const i=[];let u=-1;for(;++u<t.length;)i[u]=vg(t[u],r,a);return i.join("")}function NT(t){return!!(t&&typeof t=="object")}const Eg=document.createElement("i");function Ic(t){const r="&"+t+";";Eg.innerHTML=r;const a=Eg.textContent;return a.charCodeAt(a.length-1)===59&&t!=="semi"||a===r?!1:a}function or(t,r,a,i){const u=t.length;let s=0,f;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,a=a>0?a:0,i.length<1e4)f=Array.from(i),f.unshift(r,a),t.splice(...f);else for(a&&t.splice(r,a);s<i.length;)f=i.slice(s,s+1e4),f.unshift(r,0),t.splice(...f),s+=1e4,r+=1e4}function En(t,r){return t.length>0?(or(t,t.length,0,r),t):r}const Cg={}.hasOwnProperty;function zT(t){const r={};let a=-1;for(;++a<t.length;)BT(r,t[a]);return r}function BT(t,r){let a;for(a in r){const u=(Cg.call(t,a)?t[a]:void 0)||(t[a]={}),s=r[a];let f;if(s)for(f in s){Cg.call(u,f)||(u[f]=[]);const h=s[f];LT(u[f],Array.isArray(h)?h:h?[h]:[])}}}function LT(t,r){let a=-1;const i=[];for(;++a<r.length;)(r[a].add==="after"?t:i).push(r[a]);or(t,0,0,i)}function Tg(t,r){const a=Number.parseInt(t,r);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function Ql(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Pn=_r(/[A-Za-z]/),cn=_r(/[\dA-Za-z]/),UT=_r(/[#-'*+\--9=?A-Z^-~]/);function qc(t){return t!==null&&(t<32||t===127)}const Gc=_r(/\d/),HT=_r(/[\dA-Fa-f]/),jT=_r(/[!-/:-@[-`{-~]/);function Te(t){return t!==null&&t<-2}function Jt(t){return t!==null&&(t<0||t===32)}function Ke(t){return t===-2||t===-1||t===32}const VT=_r(new RegExp("\\p{P}|\\p{S}","u")),IT=_r(/\s/);function _r(t){return r;function r(a){return a!==null&&a>-1&&t.test(String.fromCharCode(a))}}function Kl(t){const r=[];let a=-1,i=0,u=0;for(;++a<t.length;){const s=t.charCodeAt(a);let f="";if(s===37&&cn(t.charCodeAt(a+1))&&cn(t.charCodeAt(a+2)))u=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(f=String.fromCharCode(s));else if(s>55295&&s<57344){const h=t.charCodeAt(a+1);s<56320&&h>56319&&h<57344?(f=String.fromCharCode(s,h),u=1):f="�"}else f=String.fromCharCode(s);f&&(r.push(t.slice(i,a),encodeURIComponent(f)),i=a+u+1,f=""),u&&(a+=u,u=0)}return r.join("")+t.slice(i)}function at(t,r,a,i){const u=i?i-1:Number.POSITIVE_INFINITY;let s=0;return f;function f(m){return Ke(m)?(t.enter(a),h(m)):r(m)}function h(m){return Ke(m)&&s++<u?(t.consume(m),h):(t.exit(a),r(m))}}const qT={tokenize:GT};function GT(t){const r=t.attempt(this.parser.constructs.contentInitial,i,u);let a;return r;function i(h){if(h===null){t.consume(h);return}return t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),at(t,r,"linePrefix")}function u(h){return t.enter("paragraph"),s(h)}function s(h){const m=t.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=m),a=m,f(h)}function f(h){if(h===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(h);return}return Te(h)?(t.consume(h),t.exit("chunkText"),s):(t.consume(h),f)}}const YT={tokenize:$T},wg={tokenize:FT};function $T(t){const r=this,a=[];let i=0,u,s,f;return h;function h(A){if(i<a.length){const z=a[i];return r.containerState=z[1],t.attempt(z[0].continuation,m,p)(A)}return p(A)}function m(A){if(i++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,u&&N();const z=r.events.length;let R=z,M;for(;R--;)if(r.events[R][0]==="exit"&&r.events[R][1].type==="chunkFlow"){M=r.events[R][1].end;break}T(i);let I=z;for(;I<r.events.length;)r.events[I][1].end=Object.assign({},M),I++;return or(r.events,R+1,0,r.events.slice(z)),r.events.length=I,p(A)}return h(A)}function p(A){if(i===a.length){if(!u)return x(A);if(u.currentConstruct&&u.currentConstruct.concrete)return O(A);r.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(wg,g,y)(A)}function g(A){return u&&N(),T(i),x(A)}function y(A){return r.parser.lazy[r.now().line]=i!==a.length,f=r.now().offset,O(A)}function x(A){return r.containerState={},t.attempt(wg,S,O)(A)}function S(A){return i++,a.push([r.currentConstruct,r.containerState]),x(A)}function O(A){if(A===null){u&&N(),T(0),t.consume(A);return}return u=u||r.parser.flow(r.now()),t.enter("chunkFlow",{contentType:"flow",previous:s,_tokenizer:u}),w(A)}function w(A){if(A===null){B(t.exit("chunkFlow"),!0),T(0),t.consume(A);return}return Te(A)?(t.consume(A),B(t.exit("chunkFlow")),i=0,r.interrupt=void 0,h):(t.consume(A),w)}function B(A,z){const R=r.sliceStream(A);if(z&&R.push(null),A.previous=s,s&&(s.next=A),s=A,u.defineSkip(A.start),u.write(R),r.parser.lazy[A.start.line]){let M=u.events.length;for(;M--;)if(u.events[M][1].start.offset<f&&(!u.events[M][1].end||u.events[M][1].end.offset>f))return;const I=r.events.length;let te=I,G,E;for(;te--;)if(r.events[te][0]==="exit"&&r.events[te][1].type==="chunkFlow"){if(G){E=r.events[te][1].end;break}G=!0}for(T(i),M=I;M<r.events.length;)r.events[M][1].end=Object.assign({},E),M++;or(r.events,te+1,0,r.events.slice(I)),r.events.length=M}}function T(A){let z=a.length;for(;z-- >A;){const R=a[z];r.containerState=R[1],R[0].exit.call(r,t)}a.length=A}function N(){u.write([null]),s=void 0,u=void 0,r.containerState._closeFlow=void 0}}function FT(t,r,a){return at(t,t.attempt(this.parser.constructs.document,r,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ag(t){if(t===null||Jt(t)||IT(t))return 1;if(VT(t))return 2}function Yc(t,r,a){const i=[];let u=-1;for(;++u<t.length;){const s=t[u].resolveAll;s&&!i.includes(s)&&(r=s(r,a),i.push(s))}return r}const $c={name:"attention",tokenize:PT,resolveAll:XT};function XT(t,r){let a=-1,i,u,s,f,h,m,p,g;for(;++a<t.length;)if(t[a][0]==="enter"&&t[a][1].type==="attentionSequence"&&t[a][1]._close){for(i=a;i--;)if(t[i][0]==="exit"&&t[i][1].type==="attentionSequence"&&t[i][1]._open&&r.sliceSerialize(t[i][1]).charCodeAt(0)===r.sliceSerialize(t[a][1]).charCodeAt(0)){if((t[i][1]._close||t[a][1]._open)&&(t[a][1].end.offset-t[a][1].start.offset)%3&&!((t[i][1].end.offset-t[i][1].start.offset+t[a][1].end.offset-t[a][1].start.offset)%3))continue;m=t[i][1].end.offset-t[i][1].start.offset>1&&t[a][1].end.offset-t[a][1].start.offset>1?2:1;const y=Object.assign({},t[i][1].end),x=Object.assign({},t[a][1].start);kg(y,-m),kg(x,m),f={type:m>1?"strongSequence":"emphasisSequence",start:y,end:Object.assign({},t[i][1].end)},h={type:m>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[a][1].start),end:x},s={type:m>1?"strongText":"emphasisText",start:Object.assign({},t[i][1].end),end:Object.assign({},t[a][1].start)},u={type:m>1?"strong":"emphasis",start:Object.assign({},f.start),end:Object.assign({},h.end)},t[i][1].end=Object.assign({},f.start),t[a][1].start=Object.assign({},h.end),p=[],t[i][1].end.offset-t[i][1].start.offset&&(p=En(p,[["enter",t[i][1],r],["exit",t[i][1],r]])),p=En(p,[["enter",u,r],["enter",f,r],["exit",f,r],["enter",s,r]]),p=En(p,Yc(r.parser.constructs.insideSpan.null,t.slice(i+1,a),r)),p=En(p,[["exit",s,r],["enter",h,r],["exit",h,r],["exit",u,r]]),t[a][1].end.offset-t[a][1].start.offset?(g=2,p=En(p,[["enter",t[a][1],r],["exit",t[a][1],r]])):g=0,or(t,i-1,a-i+3,p),a=i+p.length-g-2;break}}for(a=-1;++a<t.length;)t[a][1].type==="attentionSequence"&&(t[a][1].type="data");return t}function PT(t,r){const a=this.parser.constructs.attentionMarkers.null,i=this.previous,u=Ag(i);let s;return f;function f(m){return s=m,t.enter("attentionSequence"),h(m)}function h(m){if(m===s)return t.consume(m),h;const p=t.exit("attentionSequence"),g=Ag(m),y=!g||g===2&&u||a.includes(m),x=!u||u===2&&g||a.includes(i);return p._open=!!(s===42?y:y&&(u||!x)),p._close=!!(s===42?x:x&&(g||!y)),r(m)}}function kg(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}const QT={name:"autolink",tokenize:KT};function KT(t,r,a){let i=0;return u;function u(S){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(S){return Pn(S)?(t.consume(S),f):S===64?a(S):p(S)}function f(S){return S===43||S===45||S===46||cn(S)?(i=1,h(S)):p(S)}function h(S){return S===58?(t.consume(S),i=0,m):(S===43||S===45||S===46||cn(S))&&i++<32?(t.consume(S),h):(i=0,p(S))}function m(S){return S===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.exit("autolink"),r):S===null||S===32||S===60||qc(S)?a(S):(t.consume(S),m)}function p(S){return S===64?(t.consume(S),g):UT(S)?(t.consume(S),p):a(S)}function g(S){return cn(S)?y(S):a(S)}function y(S){return S===46?(t.consume(S),i=0,g):S===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.exit("autolink"),r):x(S)}function x(S){if((S===45||cn(S))&&i++<63){const O=S===45?x:y;return t.consume(S),O}return a(S)}}const eu={tokenize:ZT,partial:!0};function ZT(t,r,a){return i;function i(s){return Ke(s)?at(t,u,"linePrefix")(s):u(s)}function u(s){return s===null||Te(s)?r(s):a(s)}}const Rg={name:"blockQuote",tokenize:JT,continuation:{tokenize:WT},exit:ew};function JT(t,r,a){const i=this;return u;function u(f){if(f===62){const h=i.containerState;return h.open||(t.enter("blockQuote",{_container:!0}),h.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(f),t.exit("blockQuoteMarker"),s}return a(f)}function s(f){return Ke(f)?(t.enter("blockQuotePrefixWhitespace"),t.consume(f),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(f))}}function WT(t,r,a){const i=this;return u;function u(f){return Ke(f)?at(t,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):s(f)}function s(f){return t.attempt(Rg,r,a)(f)}}function ew(t){t.exit("blockQuote")}const Og={name:"characterEscape",tokenize:tw};function tw(t,r,a){return i;function i(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),u}function u(s){return jT(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):a(s)}}const _g={name:"characterReference",tokenize:nw};function nw(t,r,a){const i=this;let u=0,s,f;return h;function h(y){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),m}function m(y){return y===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(y),t.exit("characterReferenceMarkerNumeric"),p):(t.enter("characterReferenceValue"),s=31,f=cn,g(y))}function p(y){return y===88||y===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(y),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,f=HT,g):(t.enter("characterReferenceValue"),s=7,f=Gc,g(y))}function g(y){if(y===59&&u){const x=t.exit("characterReferenceValue");return f===cn&&!Ic(i.sliceSerialize(x))?a(y):(t.enter("characterReferenceMarker"),t.consume(y),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)}return f(y)&&u++<s?(t.consume(y),g):a(y)}}const Mg={tokenize:lw,partial:!0},Dg={name:"codeFenced",tokenize:rw,concrete:!0};function rw(t,r,a){const i=this,u={tokenize:R,partial:!0};let s=0,f=0,h;return m;function m(M){return p(M)}function p(M){const I=i.events[i.events.length-1];return s=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,h=M,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),g(M)}function g(M){return M===h?(f++,t.consume(M),g):f<3?a(M):(t.exit("codeFencedFenceSequence"),Ke(M)?at(t,y,"whitespace")(M):y(M))}function y(M){return M===null||Te(M)?(t.exit("codeFencedFence"),i.interrupt?r(M):t.check(Mg,w,z)(M)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),x(M))}function x(M){return M===null||Te(M)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),y(M)):Ke(M)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),at(t,S,"whitespace")(M)):M===96&&M===h?a(M):(t.consume(M),x)}function S(M){return M===null||Te(M)?y(M):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),O(M))}function O(M){return M===null||Te(M)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),y(M)):M===96&&M===h?a(M):(t.consume(M),O)}function w(M){return t.attempt(u,z,B)(M)}function B(M){return t.enter("lineEnding"),t.consume(M),t.exit("lineEnding"),T}function T(M){return s>0&&Ke(M)?at(t,N,"linePrefix",s+1)(M):N(M)}function N(M){return M===null||Te(M)?t.check(Mg,w,z)(M):(t.enter("codeFlowValue"),A(M))}function A(M){return M===null||Te(M)?(t.exit("codeFlowValue"),N(M)):(t.consume(M),A)}function z(M){return t.exit("codeFenced"),r(M)}function R(M,I,te){let G=0;return E;function E(ee){return M.enter("lineEnding"),M.consume(ee),M.exit("lineEnding"),j}function j(ee){return M.enter("codeFencedFence"),Ke(ee)?at(M,$,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):$(ee)}function $(ee){return ee===h?(M.enter("codeFencedFenceSequence"),P(ee)):te(ee)}function P(ee){return ee===h?(G++,M.consume(ee),P):G>=f?(M.exit("codeFencedFenceSequence"),Ke(ee)?at(M,Q,"whitespace")(ee):Q(ee)):te(ee)}function Q(ee){return ee===null||Te(ee)?(M.exit("codeFencedFence"),I(ee)):te(ee)}}}function lw(t,r,a){const i=this;return u;function u(f){return f===null?a(f):(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),s)}function s(f){return i.parser.lazy[i.now().line]?a(f):r(f)}}const Fc={name:"codeIndented",tokenize:iw},aw={tokenize:ow,partial:!0};function iw(t,r,a){const i=this;return u;function u(p){return t.enter("codeIndented"),at(t,s,"linePrefix",5)(p)}function s(p){const g=i.events[i.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?f(p):a(p)}function f(p){return p===null?m(p):Te(p)?t.attempt(aw,f,m)(p):(t.enter("codeFlowValue"),h(p))}function h(p){return p===null||Te(p)?(t.exit("codeFlowValue"),f(p)):(t.consume(p),h)}function m(p){return t.exit("codeIndented"),r(p)}}function ow(t,r,a){const i=this;return u;function u(f){return i.parser.lazy[i.now().line]?a(f):Te(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),u):at(t,s,"linePrefix",5)(f)}function s(f){const h=i.events[i.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?r(f):Te(f)?u(f):a(f)}}const uw={name:"codeText",tokenize:fw,resolve:sw,previous:cw};function sw(t){let r=t.length-4,a=3,i,u;if((t[a][1].type==="lineEnding"||t[a][1].type==="space")&&(t[r][1].type==="lineEnding"||t[r][1].type==="space")){for(i=a;++i<r;)if(t[i][1].type==="codeTextData"){t[a][1].type="codeTextPadding",t[r][1].type="codeTextPadding",a+=2,r-=2;break}}for(i=a-1,r++;++i<=r;)u===void 0?i!==r&&t[i][1].type!=="lineEnding"&&(u=i):(i===r||t[i][1].type==="lineEnding")&&(t[u][1].type="codeTextData",i!==u+2&&(t[u][1].end=t[i-1][1].end,t.splice(u+2,i-u-2),r-=i-u-2,i=u+2),u=void 0);return t}function cw(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function fw(t,r,a){let i=0,u,s;return f;function f(y){return t.enter("codeText"),t.enter("codeTextSequence"),h(y)}function h(y){return y===96?(t.consume(y),i++,h):(t.exit("codeTextSequence"),m(y))}function m(y){return y===null?a(y):y===32?(t.enter("space"),t.consume(y),t.exit("space"),m):y===96?(s=t.enter("codeTextSequence"),u=0,g(y)):Te(y)?(t.enter("lineEnding"),t.consume(y),t.exit("lineEnding"),m):(t.enter("codeTextData"),p(y))}function p(y){return y===null||y===32||y===96||Te(y)?(t.exit("codeTextData"),m(y)):(t.consume(y),p)}function g(y){return y===96?(t.consume(y),u++,g):u===i?(t.exit("codeTextSequence"),t.exit("codeText"),r(y)):(s.type="codeTextData",p(y))}}class dw{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,a){const i=a??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(r,i):r>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(r,a,i){const u=a||0;this.setCursor(Math.trunc(r));const s=this.right.splice(this.right.length-u,Number.POSITIVE_INFINITY);return i&&xi(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),xi(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),xi(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const a=this.left.splice(r,Number.POSITIVE_INFINITY);xi(this.right,a.reverse())}else{const a=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);xi(this.left,a.reverse())}}}function xi(t,r){let a=0;if(r.length<1e4)t.push(...r);else for(;a<r.length;)t.push(...r.slice(a,a+1e4)),a+=1e4}function Ng(t){const r={};let a=-1,i,u,s,f,h,m,p;const g=new dw(t);for(;++a<g.length;){for(;a in r;)a=r[a];if(i=g.get(a),a&&i[1].type==="chunkFlow"&&g.get(a-1)[1].type==="listItemPrefix"&&(m=i[1]._tokenizer.events,s=0,s<m.length&&m[s][1].type==="lineEndingBlank"&&(s+=2),s<m.length&&m[s][1].type==="content"))for(;++s<m.length&&m[s][1].type!=="content";)m[s][1].type==="chunkText"&&(m[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(r,hw(g,a)),a=r[a],p=!0);else if(i[1]._container){for(s=a,u=void 0;s--&&(f=g.get(s),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank");)f[0]==="enter"&&(u&&(g.get(u)[1].type="lineEndingBlank"),f[1].type="lineEnding",u=s);u&&(i[1].end=Object.assign({},g.get(u)[1].start),h=g.slice(u,a),h.unshift(i),g.splice(u,a-u+1,h))}}return or(t,0,Number.POSITIVE_INFINITY,g.slice(0)),!p}function hw(t,r){const a=t.get(r)[1],i=t.get(r)[2];let u=r-1;const s=[],f=a._tokenizer||i.parser[a.contentType](a.start),h=f.events,m=[],p={};let g,y,x=-1,S=a,O=0,w=0;const B=[w];for(;S;){for(;t.get(++u)[1]!==S;);s.push(u),S._tokenizer||(g=i.sliceStream(S),S.next||g.push(null),y&&f.defineSkip(S.start),S._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(g),S._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),y=S,S=S.next}for(S=a;++x<h.length;)h[x][0]==="exit"&&h[x-1][0]==="enter"&&h[x][1].type===h[x-1][1].type&&h[x][1].start.line!==h[x][1].end.line&&(w=x+1,B.push(w),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(f.events=[],S?(S._tokenizer=void 0,S.previous=void 0):B.pop(),x=B.length;x--;){const T=h.slice(B[x],B[x+1]),N=s.pop();m.push([N,N+T.length-1]),t.splice(N,2,T)}for(m.reverse(),x=-1;++x<m.length;)p[O+m[x][0]]=O+m[x][1],O+=m[x][1]-m[x][0]-1;return p}const pw={tokenize:yw,resolve:gw},mw={tokenize:bw,partial:!0};function gw(t){return Ng(t),t}function yw(t,r){let a;return i;function i(h){return t.enter("content"),a=t.enter("chunkContent",{contentType:"content"}),u(h)}function u(h){return h===null?s(h):Te(h)?t.check(mw,f,s)(h):(t.consume(h),u)}function s(h){return t.exit("chunkContent"),t.exit("content"),r(h)}function f(h){return t.consume(h),t.exit("chunkContent"),a.next=t.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,u}}function bw(t,r,a){const i=this;return u;function u(f){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),at(t,s,"linePrefix")}function s(f){if(f===null||Te(f))return a(f);const h=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?r(f):t.interrupt(i.parser.constructs.flow,a,r)(f)}}function zg(t,r,a,i,u,s,f,h,m){const p=m||Number.POSITIVE_INFINITY;let g=0;return y;function y(T){return T===60?(t.enter(i),t.enter(u),t.enter(s),t.consume(T),t.exit(s),x):T===null||T===32||T===41||qc(T)?a(T):(t.enter(i),t.enter(f),t.enter(h),t.enter("chunkString",{contentType:"string"}),w(T))}function x(T){return T===62?(t.enter(s),t.consume(T),t.exit(s),t.exit(u),t.exit(i),r):(t.enter(h),t.enter("chunkString",{contentType:"string"}),S(T))}function S(T){return T===62?(t.exit("chunkString"),t.exit(h),x(T)):T===null||T===60||Te(T)?a(T):(t.consume(T),T===92?O:S)}function O(T){return T===60||T===62||T===92?(t.consume(T),S):S(T)}function w(T){return!g&&(T===null||T===41||Jt(T))?(t.exit("chunkString"),t.exit(h),t.exit(f),t.exit(i),r(T)):g<p&&T===40?(t.consume(T),g++,w):T===41?(t.consume(T),g--,w):T===null||T===32||T===40||qc(T)?a(T):(t.consume(T),T===92?B:w)}function B(T){return T===40||T===41||T===92?(t.consume(T),w):w(T)}}function Bg(t,r,a,i,u,s){const f=this;let h=0,m;return p;function p(S){return t.enter(i),t.enter(u),t.consume(S),t.exit(u),t.enter(s),g}function g(S){return h>999||S===null||S===91||S===93&&!m||S===94&&!h&&"_hiddenFootnoteSupport"in f.parser.constructs?a(S):S===93?(t.exit(s),t.enter(u),t.consume(S),t.exit(u),t.exit(i),r):Te(S)?(t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),g):(t.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===null||S===91||S===93||Te(S)||h++>999?(t.exit("chunkString"),g(S)):(t.consume(S),m||(m=!Ke(S)),S===92?x:y)}function x(S){return S===91||S===92||S===93?(t.consume(S),h++,y):y(S)}}function Lg(t,r,a,i,u,s){let f;return h;function h(x){return x===34||x===39||x===40?(t.enter(i),t.enter(u),t.consume(x),t.exit(u),f=x===40?41:x,m):a(x)}function m(x){return x===f?(t.enter(u),t.consume(x),t.exit(u),t.exit(i),r):(t.enter(s),p(x))}function p(x){return x===f?(t.exit(s),m(f)):x===null?a(x):Te(x)?(t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),at(t,p,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),g(x))}function g(x){return x===f||x===null||Te(x)?(t.exit("chunkString"),p(x)):(t.consume(x),x===92?y:g)}function y(x){return x===f||x===92?(t.consume(x),g):g(x)}}function Ei(t,r){let a;return i;function i(u){return Te(u)?(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),a=!0,i):Ke(u)?at(t,i,a?"linePrefix":"lineSuffix")(u):r(u)}}const Sw={name:"definition",tokenize:xw},vw={tokenize:Ew,partial:!0};function xw(t,r,a){const i=this;let u;return s;function s(S){return t.enter("definition"),f(S)}function f(S){return Bg.call(i,t,h,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function h(S){return u=Ql(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),S===58?(t.enter("definitionMarker"),t.consume(S),t.exit("definitionMarker"),m):a(S)}function m(S){return Jt(S)?Ei(t,p)(S):p(S)}function p(S){return zg(t,g,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function g(S){return t.attempt(vw,y,y)(S)}function y(S){return Ke(S)?at(t,x,"whitespace")(S):x(S)}function x(S){return S===null||Te(S)?(t.exit("definition"),i.parser.defined.push(u),r(S)):a(S)}}function Ew(t,r,a){return i;function i(h){return Jt(h)?Ei(t,u)(h):a(h)}function u(h){return Lg(t,s,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(h)}function s(h){return Ke(h)?at(t,f,"whitespace")(h):f(h)}function f(h){return h===null||Te(h)?r(h):a(h)}}const Cw={name:"hardBreakEscape",tokenize:Tw};function Tw(t,r,a){return i;function i(s){return t.enter("hardBreakEscape"),t.consume(s),u}function u(s){return Te(s)?(t.exit("hardBreakEscape"),r(s)):a(s)}}const ww={name:"headingAtx",tokenize:kw,resolve:Aw};function Aw(t,r){let a=t.length-2,i=3,u,s;return t[i][1].type==="whitespace"&&(i+=2),a-2>i&&t[a][1].type==="whitespace"&&(a-=2),t[a][1].type==="atxHeadingSequence"&&(i===a-1||a-4>i&&t[a-2][1].type==="whitespace")&&(a-=i+1===a?2:4),a>i&&(u={type:"atxHeadingText",start:t[i][1].start,end:t[a][1].end},s={type:"chunkText",start:t[i][1].start,end:t[a][1].end,contentType:"text"},or(t,i,a-i+1,[["enter",u,r],["enter",s,r],["exit",s,r],["exit",u,r]])),t}function kw(t,r,a){let i=0;return u;function u(g){return t.enter("atxHeading"),s(g)}function s(g){return t.enter("atxHeadingSequence"),f(g)}function f(g){return g===35&&i++<6?(t.consume(g),f):g===null||Jt(g)?(t.exit("atxHeadingSequence"),h(g)):a(g)}function h(g){return g===35?(t.enter("atxHeadingSequence"),m(g)):g===null||Te(g)?(t.exit("atxHeading"),r(g)):Ke(g)?at(t,h,"whitespace")(g):(t.enter("atxHeadingText"),p(g))}function m(g){return g===35?(t.consume(g),m):(t.exit("atxHeadingSequence"),h(g))}function p(g){return g===null||g===35||Jt(g)?(t.exit("atxHeadingText"),h(g)):(t.consume(g),p)}}const Rw=["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"],Ug=["pre","script","style","textarea"],Ow={name:"htmlFlow",tokenize:Nw,resolveTo:Dw,concrete:!0},_w={tokenize:Bw,partial:!0},Mw={tokenize:zw,partial:!0};function Dw(t){let r=t.length;for(;r--&&!(t[r][0]==="enter"&&t[r][1].type==="htmlFlow"););return r>1&&t[r-2][1].type==="linePrefix"&&(t[r][1].start=t[r-2][1].start,t[r+1][1].start=t[r-2][1].start,t.splice(r-2,2)),t}function Nw(t,r,a){const i=this;let u,s,f,h,m;return p;function p(k){return g(k)}function g(k){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(k),y}function y(k){return k===33?(t.consume(k),x):k===47?(t.consume(k),s=!0,w):k===63?(t.consume(k),u=3,i.interrupt?r:v):Pn(k)?(t.consume(k),f=String.fromCharCode(k),B):a(k)}function x(k){return k===45?(t.consume(k),u=2,S):k===91?(t.consume(k),u=5,h=0,O):Pn(k)?(t.consume(k),u=4,i.interrupt?r:v):a(k)}function S(k){return k===45?(t.consume(k),i.interrupt?r:v):a(k)}function O(k){const ie="CDATA[";return k===ie.charCodeAt(h++)?(t.consume(k),h===ie.length?i.interrupt?r:$:O):a(k)}function w(k){return Pn(k)?(t.consume(k),f=String.fromCharCode(k),B):a(k)}function B(k){if(k===null||k===47||k===62||Jt(k)){const ie=k===47,ye=f.toLowerCase();return!ie&&!s&&Ug.includes(ye)?(u=1,i.interrupt?r(k):$(k)):Rw.includes(f.toLowerCase())?(u=6,ie?(t.consume(k),T):i.interrupt?r(k):$(k)):(u=7,i.interrupt&&!i.parser.lazy[i.now().line]?a(k):s?N(k):A(k))}return k===45||cn(k)?(t.consume(k),f+=String.fromCharCode(k),B):a(k)}function T(k){return k===62?(t.consume(k),i.interrupt?r:$):a(k)}function N(k){return Ke(k)?(t.consume(k),N):E(k)}function A(k){return k===47?(t.consume(k),E):k===58||k===95||Pn(k)?(t.consume(k),z):Ke(k)?(t.consume(k),A):E(k)}function z(k){return k===45||k===46||k===58||k===95||cn(k)?(t.consume(k),z):R(k)}function R(k){return k===61?(t.consume(k),M):Ke(k)?(t.consume(k),R):A(k)}function M(k){return k===null||k===60||k===61||k===62||k===96?a(k):k===34||k===39?(t.consume(k),m=k,I):Ke(k)?(t.consume(k),M):te(k)}function I(k){return k===m?(t.consume(k),m=null,G):k===null||Te(k)?a(k):(t.consume(k),I)}function te(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Jt(k)?R(k):(t.consume(k),te)}function G(k){return k===47||k===62||Ke(k)?A(k):a(k)}function E(k){return k===62?(t.consume(k),j):a(k)}function j(k){return k===null||Te(k)?$(k):Ke(k)?(t.consume(k),j):a(k)}function $(k){return k===45&&u===2?(t.consume(k),V):k===60&&u===1?(t.consume(k),ne):k===62&&u===4?(t.consume(k),Z):k===63&&u===3?(t.consume(k),v):k===93&&u===5?(t.consume(k),fe):Te(k)&&(u===6||u===7)?(t.exit("htmlFlowData"),t.check(_w,ue,P)(k)):k===null||Te(k)?(t.exit("htmlFlowData"),P(k)):(t.consume(k),$)}function P(k){return t.check(Mw,Q,ue)(k)}function Q(k){return t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),ee}function ee(k){return k===null||Te(k)?P(k):(t.enter("htmlFlowData"),$(k))}function V(k){return k===45?(t.consume(k),v):$(k)}function ne(k){return k===47?(t.consume(k),f="",W):$(k)}function W(k){if(k===62){const ie=f.toLowerCase();return Ug.includes(ie)?(t.consume(k),Z):$(k)}return Pn(k)&&f.length<8?(t.consume(k),f+=String.fromCharCode(k),W):$(k)}function fe(k){return k===93?(t.consume(k),v):$(k)}function v(k){return k===62?(t.consume(k),Z):k===45&&u===2?(t.consume(k),v):$(k)}function Z(k){return k===null||Te(k)?(t.exit("htmlFlowData"),ue(k)):(t.consume(k),Z)}function ue(k){return t.exit("htmlFlow"),r(k)}}function zw(t,r,a){const i=this;return u;function u(f){return Te(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),s):a(f)}function s(f){return i.parser.lazy[i.now().line]?a(f):r(f)}}function Bw(t,r,a){return i;function i(u){return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),t.attempt(eu,r,a)}}const Lw={name:"htmlText",tokenize:Uw};function Uw(t,r,a){const i=this;let u,s,f;return h;function h(v){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(v),m}function m(v){return v===33?(t.consume(v),p):v===47?(t.consume(v),R):v===63?(t.consume(v),A):Pn(v)?(t.consume(v),te):a(v)}function p(v){return v===45?(t.consume(v),g):v===91?(t.consume(v),s=0,O):Pn(v)?(t.consume(v),N):a(v)}function g(v){return v===45?(t.consume(v),S):a(v)}function y(v){return v===null?a(v):v===45?(t.consume(v),x):Te(v)?(f=y,ne(v)):(t.consume(v),y)}function x(v){return v===45?(t.consume(v),S):y(v)}function S(v){return v===62?V(v):v===45?x(v):y(v)}function O(v){const Z="CDATA[";return v===Z.charCodeAt(s++)?(t.consume(v),s===Z.length?w:O):a(v)}function w(v){return v===null?a(v):v===93?(t.consume(v),B):Te(v)?(f=w,ne(v)):(t.consume(v),w)}function B(v){return v===93?(t.consume(v),T):w(v)}function T(v){return v===62?V(v):v===93?(t.consume(v),T):w(v)}function N(v){return v===null||v===62?V(v):Te(v)?(f=N,ne(v)):(t.consume(v),N)}function A(v){return v===null?a(v):v===63?(t.consume(v),z):Te(v)?(f=A,ne(v)):(t.consume(v),A)}function z(v){return v===62?V(v):A(v)}function R(v){return Pn(v)?(t.consume(v),M):a(v)}function M(v){return v===45||cn(v)?(t.consume(v),M):I(v)}function I(v){return Te(v)?(f=I,ne(v)):Ke(v)?(t.consume(v),I):V(v)}function te(v){return v===45||cn(v)?(t.consume(v),te):v===47||v===62||Jt(v)?G(v):a(v)}function G(v){return v===47?(t.consume(v),V):v===58||v===95||Pn(v)?(t.consume(v),E):Te(v)?(f=G,ne(v)):Ke(v)?(t.consume(v),G):V(v)}function E(v){return v===45||v===46||v===58||v===95||cn(v)?(t.consume(v),E):j(v)}function j(v){return v===61?(t.consume(v),$):Te(v)?(f=j,ne(v)):Ke(v)?(t.consume(v),j):G(v)}function $(v){return v===null||v===60||v===61||v===62||v===96?a(v):v===34||v===39?(t.consume(v),u=v,P):Te(v)?(f=$,ne(v)):Ke(v)?(t.consume(v),$):(t.consume(v),Q)}function P(v){return v===u?(t.consume(v),u=void 0,ee):v===null?a(v):Te(v)?(f=P,ne(v)):(t.consume(v),P)}function Q(v){return v===null||v===34||v===39||v===60||v===61||v===96?a(v):v===47||v===62||Jt(v)?G(v):(t.consume(v),Q)}function ee(v){return v===47||v===62||Jt(v)?G(v):a(v)}function V(v){return v===62?(t.consume(v),t.exit("htmlTextData"),t.exit("htmlText"),r):a(v)}function ne(v){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),W}function W(v){return Ke(v)?at(t,fe,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):fe(v)}function fe(v){return t.enter("htmlTextData"),f(v)}}const Xc={name:"labelEnd",tokenize:Gw,resolveTo:qw,resolveAll:Iw},Hw={tokenize:Yw},jw={tokenize:$w},Vw={tokenize:Fw};function Iw(t){let r=-1;for(;++r<t.length;){const a=t[r][1];(a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd")&&(t.splice(r+1,a.type==="labelImage"?4:2),a.type="data",r++)}return t}function qw(t,r){let a=t.length,i=0,u,s,f,h;for(;a--;)if(u=t[a][1],s){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;t[a][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(f){if(t[a][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(s=a,u.type!=="labelLink")){i=2;break}}else u.type==="labelEnd"&&(f=a);const m={type:t[s][1].type==="labelLink"?"link":"image",start:Object.assign({},t[s][1].start),end:Object.assign({},t[t.length-1][1].end)},p={type:"label",start:Object.assign({},t[s][1].start),end:Object.assign({},t[f][1].end)},g={type:"labelText",start:Object.assign({},t[s+i+2][1].end),end:Object.assign({},t[f-2][1].start)};return h=[["enter",m,r],["enter",p,r]],h=En(h,t.slice(s+1,s+i+3)),h=En(h,[["enter",g,r]]),h=En(h,Yc(r.parser.constructs.insideSpan.null,t.slice(s+i+4,f-3),r)),h=En(h,[["exit",g,r],t[f-2],t[f-1],["exit",p,r]]),h=En(h,t.slice(f+1)),h=En(h,[["exit",m,r]]),or(t,s,t.length,h),t}function Gw(t,r,a){const i=this;let u=i.events.length,s,f;for(;u--;)if((i.events[u][1].type==="labelImage"||i.events[u][1].type==="labelLink")&&!i.events[u][1]._balanced){s=i.events[u][1];break}return h;function h(x){return s?s._inactive?y(x):(f=i.parser.defined.includes(Ql(i.sliceSerialize({start:s.end,end:i.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(x),t.exit("labelMarker"),t.exit("labelEnd"),m):a(x)}function m(x){return x===40?t.attempt(Hw,g,f?g:y)(x):x===91?t.attempt(jw,g,f?p:y)(x):f?g(x):y(x)}function p(x){return t.attempt(Vw,g,y)(x)}function g(x){return r(x)}function y(x){return s._balanced=!0,a(x)}}function Yw(t,r,a){return i;function i(y){return t.enter("resource"),t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),u}function u(y){return Jt(y)?Ei(t,s)(y):s(y)}function s(y){return y===41?g(y):zg(t,f,h,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function f(y){return Jt(y)?Ei(t,m)(y):g(y)}function h(y){return a(y)}function m(y){return y===34||y===39||y===40?Lg(t,p,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):g(y)}function p(y){return Jt(y)?Ei(t,g)(y):g(y)}function g(y){return y===41?(t.enter("resourceMarker"),t.consume(y),t.exit("resourceMarker"),t.exit("resource"),r):a(y)}}function $w(t,r,a){const i=this;return u;function u(h){return Bg.call(i,t,s,f,"reference","referenceMarker","referenceString")(h)}function s(h){return i.parser.defined.includes(Ql(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?r(h):a(h)}function f(h){return a(h)}}function Fw(t,r,a){return i;function i(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),u}function u(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),r):a(s)}}const Xw={name:"labelStartImage",tokenize:Pw,resolveAll:Xc.resolveAll};function Pw(t,r,a){const i=this;return u;function u(h){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(h),t.exit("labelImageMarker"),s}function s(h){return h===91?(t.enter("labelMarker"),t.consume(h),t.exit("labelMarker"),t.exit("labelImage"),f):a(h)}function f(h){return h===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(h):r(h)}}const Qw={name:"labelStartLink",tokenize:Kw,resolveAll:Xc.resolveAll};function Kw(t,r,a){const i=this;return u;function u(f){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(f),t.exit("labelMarker"),t.exit("labelLink"),s}function s(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?a(f):r(f)}}const Pc={name:"lineEnding",tokenize:Zw};function Zw(t,r){return a;function a(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),at(t,r,"linePrefix")}}const tu={name:"thematicBreak",tokenize:Jw};function Jw(t,r,a){let i=0,u;return s;function s(p){return t.enter("thematicBreak"),f(p)}function f(p){return u=p,h(p)}function h(p){return p===u?(t.enter("thematicBreakSequence"),m(p)):i>=3&&(p===null||Te(p))?(t.exit("thematicBreak"),r(p)):a(p)}function m(p){return p===u?(t.consume(p),i++,m):(t.exit("thematicBreakSequence"),Ke(p)?at(t,h,"whitespace")(p):h(p))}}const Wt={name:"list",tokenize:tA,continuation:{tokenize:nA},exit:lA},Ww={tokenize:aA,partial:!0},eA={tokenize:rA,partial:!0};function tA(t,r,a){const i=this,u=i.events[i.events.length-1];let s=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,f=0;return h;function h(S){const O=i.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(O==="listUnordered"?!i.containerState.marker||S===i.containerState.marker:Gc(S)){if(i.containerState.type||(i.containerState.type=O,t.enter(O,{_container:!0})),O==="listUnordered")return t.enter("listItemPrefix"),S===42||S===45?t.check(tu,a,p)(S):p(S);if(!i.interrupt||S===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),m(S)}return a(S)}function m(S){return Gc(S)&&++f<10?(t.consume(S),m):(!i.interrupt||f<2)&&(i.containerState.marker?S===i.containerState.marker:S===41||S===46)?(t.exit("listItemValue"),p(S)):a(S)}function p(S){return t.enter("listItemMarker"),t.consume(S),t.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||S,t.check(eu,i.interrupt?a:g,t.attempt(Ww,x,y))}function g(S){return i.containerState.initialBlankLine=!0,s++,x(S)}function y(S){return Ke(S)?(t.enter("listItemPrefixWhitespace"),t.consume(S),t.exit("listItemPrefixWhitespace"),x):a(S)}function x(S){return i.containerState.size=s+i.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(S)}}function nA(t,r,a){const i=this;return i.containerState._closeFlow=void 0,t.check(eu,u,s);function u(h){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,at(t,r,"listItemIndent",i.containerState.size+1)(h)}function s(h){return i.containerState.furtherBlankLines||!Ke(h)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,f(h)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,t.attempt(eA,r,f)(h))}function f(h){return i.containerState._closeFlow=!0,i.interrupt=void 0,at(t,t.attempt(Wt,r,a),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function rA(t,r,a){const i=this;return at(t,u,"listItemIndent",i.containerState.size+1);function u(s){const f=i.events[i.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===i.containerState.size?r(s):a(s)}}function lA(t){t.exit(this.containerState.type)}function aA(t,r,a){const i=this;return at(t,u,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(s){const f=i.events[i.events.length-1];return!Ke(s)&&f&&f[1].type==="listItemPrefixWhitespace"?r(s):a(s)}}const Hg={name:"setextUnderline",tokenize:oA,resolveTo:iA};function iA(t,r){let a=t.length,i,u,s;for(;a--;)if(t[a][0]==="enter"){if(t[a][1].type==="content"){i=a;break}t[a][1].type==="paragraph"&&(u=a)}else t[a][1].type==="content"&&t.splice(a,1),!s&&t[a][1].type==="definition"&&(s=a);const f={type:"setextHeading",start:Object.assign({},t[u][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[u][1].type="setextHeadingText",s?(t.splice(u,0,["enter",f,r]),t.splice(s+1,0,["exit",t[i][1],r]),t[i][1].end=Object.assign({},t[s][1].end)):t[i][1]=f,t.push(["exit",f,r]),t}function oA(t,r,a){const i=this;let u;return s;function s(p){let g=i.events.length,y;for(;g--;)if(i.events[g][1].type!=="lineEnding"&&i.events[g][1].type!=="linePrefix"&&i.events[g][1].type!=="content"){y=i.events[g][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||y)?(t.enter("setextHeadingLine"),u=p,f(p)):a(p)}function f(p){return t.enter("setextHeadingLineSequence"),h(p)}function h(p){return p===u?(t.consume(p),h):(t.exit("setextHeadingLineSequence"),Ke(p)?at(t,m,"lineSuffix")(p):m(p))}function m(p){return p===null||Te(p)?(t.exit("setextHeadingLine"),r(p)):a(p)}}const uA={tokenize:sA};function sA(t){const r=this,a=t.attempt(eu,i,t.attempt(this.parser.constructs.flowInitial,u,at(t,t.attempt(this.parser.constructs.flow,u,t.attempt(pw,u)),"linePrefix")));return a;function i(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),r.currentConstruct=void 0,a}function u(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),r.currentConstruct=void 0,a}}const cA={resolveAll:Vg()},fA=jg("string"),dA=jg("text");function jg(t){return{tokenize:r,resolveAll:Vg(t==="text"?hA:void 0)};function r(a){const i=this,u=this.parser.constructs[t],s=a.attempt(u,f,h);return f;function f(g){return p(g)?s(g):h(g)}function h(g){if(g===null){a.consume(g);return}return a.enter("data"),a.consume(g),m}function m(g){return p(g)?(a.exit("data"),s(g)):(a.consume(g),m)}function p(g){if(g===null)return!0;const y=u[g];let x=-1;if(y)for(;++x<y.length;){const S=y[x];if(!S.previous||S.previous.call(i,i.previous))return!0}return!1}}}function Vg(t){return r;function r(a,i){let u=-1,s;for(;++u<=a.length;)s===void 0?a[u]&&a[u][1].type==="data"&&(s=u,u++):(!a[u]||a[u][1].type!=="data")&&(u!==s+2&&(a[s][1].end=a[u-1][1].end,a.splice(s+2,u-s-2),u=s+2),s=void 0);return t?t(a,i):a}}function hA(t,r){let a=0;for(;++a<=t.length;)if((a===t.length||t[a][1].type==="lineEnding")&&t[a-1][1].type==="data"){const i=t[a-1][1],u=r.sliceStream(i);let s=u.length,f=-1,h=0,m;for(;s--;){const p=u[s];if(typeof p=="string"){for(f=p.length;p.charCodeAt(f-1)===32;)h++,f--;if(f)break;f=-1}else if(p===-2)m=!0,h++;else if(p!==-1){s++;break}}if(h){const p={type:a===t.length||m||h<2?"lineSuffix":"hardBreakTrailing",start:{line:i.end.line,column:i.end.column-h,offset:i.end.offset-h,_index:i.start._index+s,_bufferIndex:s?f:i.start._bufferIndex+f},end:Object.assign({},i.end)};i.end=Object.assign({},p.start),i.start.offset===i.end.offset?Object.assign(i,p):(t.splice(a,0,["enter",p,r],["exit",p,r]),a+=2)}a++}return t}function pA(t,r,a){let i=Object.assign(a?Object.assign({},a):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const u={},s=[];let f=[],h=[];const m={consume:N,enter:A,exit:z,attempt:I(R),check:I(M),interrupt:I(M,{interrupt:!0})},p={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:S,sliceSerialize:x,now:O,defineSkip:w,write:y};let g=r.tokenize.call(p,m);return r.resolveAll&&s.push(r),p;function y(j){return f=En(f,j),B(),f[f.length-1]!==null?[]:(te(r,0),p.events=Yc(s,p.events,p),p.events)}function x(j,$){return gA(S(j),$)}function S(j){return mA(f,j)}function O(){const{line:j,column:$,offset:P,_index:Q,_bufferIndex:ee}=i;return{line:j,column:$,offset:P,_index:Q,_bufferIndex:ee}}function w(j){u[j.line]=j.column,E()}function B(){let j;for(;i._index<f.length;){const $=f[i._index];if(typeof $=="string")for(j=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===j&&i._bufferIndex<$.length;)T($.charCodeAt(i._bufferIndex));else T($)}}function T(j){g=g(j)}function N(j){Te(j)?(i.line++,i.column=1,i.offset+=j===-3?2:1,E()):j!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===f[i._index].length&&(i._bufferIndex=-1,i._index++)),p.previous=j}function A(j,$){const P=$||{};return P.type=j,P.start=O(),p.events.push(["enter",P,p]),h.push(P),P}function z(j){const $=h.pop();return $.end=O(),p.events.push(["exit",$,p]),$}function R(j,$){te(j,$.from)}function M(j,$){$.restore()}function I(j,$){return P;function P(Q,ee,V){let ne,W,fe,v;return Array.isArray(Q)?ue(Q):"tokenize"in Q?ue([Q]):Z(Q);function Z(he){return He;function He(xe){const Re=xe!==null&&he[xe],de=xe!==null&&he.null,_e=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(de)?de:de?[de]:[]];return ue(_e)(xe)}}function ue(he){return ne=he,W=0,he.length===0?V:k(he[W])}function k(he){return He;function He(xe){return v=G(),fe=he,he.partial||(p.currentConstruct=he),he.name&&p.parser.constructs.disable.null.includes(he.name)?ye():he.tokenize.call($?Object.assign(Object.create(p),$):p,m,ie,ye)(xe)}}function ie(he){return j(fe,v),ee}function ye(he){return v.restore(),++W<ne.length?k(ne[W]):V}}}function te(j,$){j.resolveAll&&!s.includes(j)&&s.push(j),j.resolve&&or(p.events,$,p.events.length-$,j.resolve(p.events.slice($),p)),j.resolveTo&&(p.events=j.resolveTo(p.events,p))}function G(){const j=O(),$=p.previous,P=p.currentConstruct,Q=p.events.length,ee=Array.from(h);return{restore:V,from:Q};function V(){i=j,p.previous=$,p.currentConstruct=P,p.events.length=Q,h=ee,E()}}function E(){i.line in u&&i.column<2&&(i.column=u[i.line],i.offset+=u[i.line]-1)}}function mA(t,r){const a=r.start._index,i=r.start._bufferIndex,u=r.end._index,s=r.end._bufferIndex;let f;if(a===u)f=[t[a].slice(i,s)];else{if(f=t.slice(a,u),i>-1){const h=f[0];typeof h=="string"?f[0]=h.slice(i):f.shift()}s>0&&f.push(t[u].slice(0,s))}return f}function gA(t,r){let a=-1;const i=[];let u;for(;++a<t.length;){const s=t[a];let f;if(typeof s=="string")f=s;else switch(s){case-5:{f="\r";break}case-4:{f=`
112
+ */var Zm;function wC(){if(Zm)return kc;Zm=1;var e=zo();function r(y,v){return y===v&&(y!==0||1/y===1/v)||y!==y&&v!==v}var l=typeof Object.is=="function"?Object.is:r,a=e.useState,u=e.useEffect,s=e.useLayoutEffect,f=e.useDebugValue;function d(y,v){var S=v(),R=a({inst:{value:S,getSnapshot:v}}),T=R[0].inst,N=R[1];return s(function(){T.value=S,T.getSnapshot=v,m(T)&&N({inst:T})},[y,S,v]),u(function(){return m(T)&&N({inst:T}),y(function(){m(T)&&N({inst:T})})},[y]),f(S),S}function m(y){var v=y.getSnapshot;y=y.value;try{var S=v();return!l(y,S)}catch{return!0}}function h(y,v){return v()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:d;return kc.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,kc}var Wm;function AC(){return Wm||(Wm=1,Ac.exports=wC()),Ac.exports}var kC=AC();const Ur=()=>{},rn=Ur(),Rc=Object,Fe=e=>e===rn,rr=e=>typeof e=="function",jr=(e,r)=>({...e,...r}),RC=e=>rr(e.then),ou=new WeakMap;let OC=0;const Ea=e=>{const r=typeof e,l=e&&e.constructor,a=l==Date;let u,s;if(Rc(e)===e&&!a&&l!=RegExp){if(u=ou.get(e),u)return u;if(u=++OC+"~",ou.set(e,u),l==Array){for(u="@",s=0;s<e.length;s++)u+=Ea(e[s])+",";ou.set(e,u)}if(l==Rc){u="#";const f=Rc.keys(e).sort();for(;!Fe(s=f.pop());)Fe(e[s])||(u+=s+":"+Ea(e[s])+",");ou.set(e,u)}}else u=a?e.toJSON():r=="symbol"?e.toString():r=="string"?JSON.stringify(e):""+e;return u},mr=new WeakMap,Oc={},uu={},Mc="undefined",su=typeof window!=Mc,_c=typeof document!=Mc,MC=()=>su&&typeof window.requestAnimationFrame!=Mc,Jm=(e,r)=>{const l=mr.get(e);return[()=>!Fe(r)&&e.get(r)||Oc,a=>{if(!Fe(r)){const u=e.get(r);r in uu||(uu[r]=u),l[5](r,jr(u,a),u||Oc)}},l[6],()=>!Fe(r)&&r in uu?uu[r]:!Fe(r)&&e.get(r)||Oc]};let Dc=!0;const _C=()=>Dc,[zc,Nc]=su&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ur,Ur],DC=()=>{const e=_c&&document.visibilityState;return Fe(e)||e!=="hidden"},zC=e=>(_c&&document.addEventListener("visibilitychange",e),zc("focus",e),()=>{_c&&document.removeEventListener("visibilitychange",e),Nc("focus",e)}),NC=e=>{const r=()=>{Dc=!0,e()},l=()=>{Dc=!1};return zc("online",r),zc("offline",l),()=>{Nc("online",r),Nc("offline",l)}},BC={isOnline:_C,isVisible:DC},LC={initFocus:zC,initReconnect:NC},eg=!ft.useId,Ca=!su||"Deno"in window,UC=e=>MC()?window.requestAnimationFrame(e):setTimeout(e,1),Bc=Ca?M.useEffect:M.useLayoutEffect,Lc=typeof navigator<"u"&&navigator.connection,tg=!Ca&&Lc&&(["slow-2g","2g"].includes(Lc.effectiveType)||Lc.saveData),Uc=e=>{if(rr(e))try{e=e()}catch{e=""}const r=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Ea(e):"",[e,r]};let jC=0;const jc=()=>++jC,ng=0,rg=1,ig=2;var Ta={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:ng,MUTATE_EVENT:ig,RECONNECT_EVENT:rg};async function lg(...e){const[r,l,a,u]=e,s=jr({populateCache:!0,throwOnError:!0},typeof u=="boolean"?{revalidate:u}:u||{});let f=s.populateCache;const d=s.rollbackOnError;let m=s.optimisticData;const h=v=>typeof d=="function"?d(v):d!==!1,g=s.throwOnError;if(rr(l)){const v=l,S=[],R=r.keys();for(const T of R)!/^\$(inf|sub)\$/.test(T)&&v(r.get(T)._k)&&S.push(T);return Promise.all(S.map(y))}return y(l);async function y(v){const[S]=Uc(v);if(!S)return;const[R,T]=Jm(r,S),[N,w,B,k]=mr.get(r),z=()=>{const F=N[S];return(rr(s.revalidate)?s.revalidate(R().data,v):s.revalidate!==!1)&&(delete B[S],delete k[S],F&&F[0])?F[0](ig).then(()=>R().data):R().data};if(e.length<3)return z();let A=a,_;const H=jc();w[S]=[H,0];const ne=!Fe(m),V=R(),E=V.data,I=V._c,Y=Fe(I)?E:I;if(ne&&(m=rr(m)?m(Y,E):m,T({data:m,_c:Y})),rr(A))try{A=A(Y)}catch(F){_=F}if(A&&RC(A))if(A=await A.catch(F=>{_=F}),H!==w[S][0]){if(_)throw _;return A}else _&&ne&&h(_)&&(f=!0,T({data:Y,_c:rn}));if(f&&!_)if(rr(f)){const F=f(A,Y);T({data:F,error:rn,_c:rn})}else T({data:A,error:rn,_c:rn});if(w[S][1]=jc(),Promise.resolve(z()).then(()=>{T({_c:rn})}),_){if(g)throw _;return}return A}}const ag=(e,r)=>{for(const l in e)e[l][0]&&e[l][0](r)},HC=(e,r)=>{if(!mr.has(e)){const l=jr(LC,r),a={},u=lg.bind(rn,e);let s=Ur;const f={},d=(g,y)=>{const v=f[g]||[];return f[g]=v,v.push(y),()=>v.splice(v.indexOf(y),1)},m=(g,y,v)=>{e.set(g,y);const S=f[g];if(S)for(const R of S)R(y,v)},h=()=>{if(!mr.has(e)&&(mr.set(e,[a,{},{},{},u,m,d]),!Ca)){const g=l.initFocus(setTimeout.bind(rn,ag.bind(rn,a,ng))),y=l.initReconnect(setTimeout.bind(rn,ag.bind(rn,a,rg)));s=()=>{g&&g(),y&&y(),mr.delete(e)}}};return h(),[e,u,h,s]}return[e,mr.get(e)[4]]},IC=(e,r,l,a,u)=>{const s=l.errorRetryCount,f=u.retryCount,d=~~((Math.random()+.5)*(1<<(f<8?f:8)))*l.errorRetryInterval;!Fe(s)&&f>s||setTimeout(a,d,u)},VC=(e,r)=>Ea(e)==Ea(r),[og,qC]=HC(new Map),$C=jr({onLoadingSlow:Ur,onSuccess:Ur,onError:Ur,onErrorRetry:IC,onDiscarded:Ur,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:tg?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:tg?5e3:3e3,compare:VC,isPaused:()=>!1,cache:og,mutate:qC,fallback:{}},BC),GC=(e,r)=>{const l=jr(e,r);if(r){const{use:a,fallback:u}=e,{use:s,fallback:f}=r;a&&s&&(l.use=a.concat(s)),u&&f&&(l.fallback=jr(u,f))}return l},YC=M.createContext({}),FC="$inf$",ug=su&&window.__SWR_DEVTOOLS_USE__,PC=ug?window.__SWR_DEVTOOLS_USE__:[],XC=()=>{ug&&(window.__SWR_DEVTOOLS_REACT__=ft)},QC=e=>rr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],KC=()=>jr($C,M.useContext(YC)),ZC=e=>(r,l,a)=>e(r,l&&((...s)=>{const[f]=Uc(r),[,,,d]=mr.get(og);if(f.startsWith(FC))return l(...s);const m=d[f];return Fe(m)?l(...s):(delete d[f],m)}),a),WC=PC.concat(ZC),JC=e=>function(...l){const a=KC(),[u,s,f]=QC(l),d=GC(a,f);let m=e;const{use:h}=d,g=(h||[]).concat(WC);for(let y=g.length;y--;)m=g[y](m);return m(u,s||d.fetcher||null,d)},eT=(e,r,l)=>{const a=r[e]||(r[e]=[]);return a.push(l),()=>{const u=a.indexOf(l);u>=0&&(a[u]=a[a.length-1],a.pop())}};XC();const sg=ft.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(r=>{e.status="fulfilled",e.value=r},r=>{e.status="rejected",e.reason=r}),e)}),Hc={dedupe:!0},cu=JC((e,r,l)=>{const{cache:a,compare:u,suspense:s,fallbackData:f,revalidateOnMount:d,revalidateIfStale:m,refreshInterval:h,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:v}=l,[S,R,T,N]=mr.get(a),[w,B]=Uc(e),k=M.useRef(!1),z=M.useRef(!1),A=M.useRef(w),_=M.useRef(r),H=M.useRef(l),ne=()=>H.current,V=()=>ne().isVisible()&&ne().isOnline(),[E,I,Y,F]=Jm(a,w),P=M.useRef({}).current,ee=Fe(f)?l.fallback[w]:f,$=(me,ge)=>{for(const fe in P){const Ee=fe;if(Ee==="data"){if(!u(me[Ee],ge[Ee])&&(!Fe(me[Ee])||!u(ye,ge[Ee])))return!1}else if(ge[Ee]!==me[Ee])return!1}return!0},Z=M.useMemo(()=>{const me=!w||!r?!1:Fe(d)?ne().isPaused()||s?!1:Fe(m)?!0:m:d,ge=Pe=>{const ht=jr(Pe);return delete ht._k,me?{isValidating:!0,isLoading:!0,...ht}:ht},fe=E(),Ee=F(),qe=ge(fe),Le=fe===Ee?qe:ge(Ee);let Oe=qe;return[()=>{const Pe=ge(E());return $(Pe,Oe)?(Oe.data=Pe.data,Oe.isLoading=Pe.isLoading,Oe.isValidating=Pe.isValidating,Oe.error=Pe.error,Oe):(Oe=Pe,Pe)},()=>Le]},[a,w]),Q=kC.useSyncExternalStore(M.useCallback(me=>Y(w,(ge,fe)=>{$(fe,ge)||me()}),[a,w]),Z[0],Z[1]),ue=!k.current,x=S[w]&&S[w].length>0,K=Q.data,se=Fe(K)?ee:K,O=Q.error,ie=M.useRef(se),ye=v?Fe(K)?ie.current:K:se,he=x&&!Fe(O)?!1:ue&&!Fe(d)?d:ne().isPaused()?!1:s?Fe(se)?!1:m:Fe(se)||m,Be=!!(w&&r&&ue&&he),Ce=Fe(Q.isValidating)?Be:Q.isValidating,ke=Fe(Q.isLoading)?Be:Q.isLoading,pe=M.useCallback(async me=>{const ge=_.current;if(!w||!ge||z.current||ne().isPaused())return!1;let fe,Ee,qe=!0;const Le=me||{},Oe=!T[w]||!Le.dedupe,Pe=()=>eg?!z.current&&w===A.current&&k.current:w===A.current,ht={isValidating:!1,isLoading:!1},Qt=()=>{I(ht)},gn=()=>{const ze=T[w];ze&&ze[1]===Ee&&delete T[w]},xe={isValidating:!0};Fe(E().data)&&(xe.isLoading=!0);try{if(Oe&&(I(xe),l.loadingTimeout&&Fe(E().data)&&setTimeout(()=>{qe&&Pe()&&ne().onLoadingSlow(w,l)},l.loadingTimeout),T[w]=[ge(B),jc()]),[fe,Ee]=T[w],fe=await fe,Oe&&setTimeout(gn,l.dedupingInterval),!T[w]||T[w][1]!==Ee)return Oe&&Pe()&&ne().onDiscarded(w),!1;ht.error=rn;const ze=R[w];if(!Fe(ze)&&(Ee<=ze[0]||Ee<=ze[1]||ze[1]===0))return Qt(),Oe&&Pe()&&ne().onDiscarded(w),!1;const Rt=E().data;ht.data=u(Rt,fe)?Rt:fe,Oe&&Pe()&&ne().onSuccess(fe,w,l)}catch(ze){gn();const Rt=ne(),{shouldRetryOnError:X}=Rt;Rt.isPaused()||(ht.error=ze,Oe&&Pe()&&(Rt.onError(ze,w,Rt),(X===!0||rr(X)&&X(ze))&&(!ne().revalidateOnFocus||!ne().revalidateOnReconnect||V())&&Rt.onErrorRetry(ze,w,Rt,le=>{const de=S[w];de&&de[0]&&de[0](Ta.ERROR_REVALIDATE_EVENT,le)},{retryCount:(Le.retryCount||0)+1,dedupe:!0})))}return qe=!1,Qt(),!0},[w,a]),De=M.useCallback((...me)=>lg(a,A.current,...me),[]);if(Bc(()=>{_.current=r,H.current=l,Fe(K)||(ie.current=K)}),Bc(()=>{if(!w)return;const me=pe.bind(rn,Hc);let ge=0;const Ee=eT(w,S,(qe,Le={})=>{if(qe==Ta.FOCUS_EVENT){const Oe=Date.now();ne().revalidateOnFocus&&Oe>ge&&V()&&(ge=Oe+ne().focusThrottleInterval,me())}else if(qe==Ta.RECONNECT_EVENT)ne().revalidateOnReconnect&&V()&&me();else{if(qe==Ta.MUTATE_EVENT)return pe();if(qe==Ta.ERROR_REVALIDATE_EVENT)return pe(Le)}});return z.current=!1,A.current=w,k.current=!0,I({_k:B}),he&&(Fe(se)||Ca?me():UC(me)),()=>{z.current=!0,Ee()}},[w]),Bc(()=>{let me;function ge(){const Ee=rr(h)?h(E().data):h;Ee&&me!==-1&&(me=setTimeout(fe,Ee))}function fe(){!E().error&&(g||ne().isVisible())&&(y||ne().isOnline())?pe(Hc).then(ge):ge()}return ge(),()=>{me&&(clearTimeout(me),me=-1)}},[h,g,y,w]),M.useDebugValue(ye),s&&Fe(se)&&w){if(!eg&&Ca)throw new Error("Fallback data is required when using suspense in SSR.");_.current=r,H.current=l,z.current=!1;const me=N[w];if(!Fe(me)){const ge=De(me);sg(ge)}if(Fe(O)){const ge=pe(Hc);Fe(ye)||(ge.status="fulfilled",ge.value=!0),sg(ge)}else throw O}return{mutate:De,get data(){return P.data=!0,ye},get error(){return P.error=!0,O},get isValidating(){return P.isValidating=!0,Ce},get isLoading(){return P.isLoading=!0,ke}}});var Ic,cg;function tT(){if(cg)return Ic;cg=1;function e(r,l){if(typeof r!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof r}\`.`);let a,u=0;return function(...f){clearTimeout(a);const d=Date.now(),m=d-u,h=l-m;h<=0?(u=d,r.apply(this,f)):a=setTimeout(()=>{u=Date.now(),r.apply(this,f)},h)}}return Ic=e,Ic}var nT=tT();const rT=Cn(nT);function fg(e,r){return r!=null?rT(e,r):e}var iT=async(e,r,l,a,u,s,f,d,m,h,g,y,v,S,R,T,N)=>{var w;const B=f.current;l(r.messages,!1);const k=S?r.messages:r.messages.map(({role:A,content:_,experimental_attachments:H,data:ne,annotations:V,toolInvocations:E})=>({role:A,content:_,...H!==void 0&&{experimental_attachments:H},...ne!==void 0&&{data:ne},...V!==void 0&&{annotations:V},...E!==void 0&&{toolInvocations:E}})),z=u.current;return await TC({api:e,body:(w=R==null?void 0:R({messages:r.messages,requestData:r.data,requestBody:r.body}))!=null?w:{messages:k,data:r.data,...s.current.body,...r.body},streamProtocol:h,credentials:s.current.credentials,headers:{...s.current.headers,...r.headers},abortController:()=>d.current,restoreMessagesOnFailure(){N||l(B,!1)},onResponse:y,onUpdate(A,_){l([...r.messages,...A],!1),_!=null&&_.length&&a([...z??[],..._],!1)},onToolCall:v,onFinish:g,generateId:m,fetch:T})};function lT({api:e="/api/chat",id:r,initialMessages:l,initialInput:a="",sendExtraMessageFields:u,onToolCall:s,experimental_prepareRequestBody:f,maxSteps:d=1,streamProtocol:m="data",onResponse:h,onFinish:g,onError:y,credentials:v,headers:S,body:R,generateId:T=Xm,fetch:N,keepLastMessageOnError:w=!0,experimental_throttle:B}={}){const k=M.useId(),z=r??k,A=typeof e=="string"?[e,z]:z,[_]=M.useState([]),{data:H,mutate:ne}=cu([A,"messages"],null,{fallbackData:l??_}),V=M.useRef(H||[]);M.useEffect(()=>{V.current=H||[]},[H]);const{data:E,mutate:I}=cu([A,"streamData"],null),Y=M.useRef(E);M.useEffect(()=>{Y.current=E},[E]);const{data:F=!1,mutate:P}=cu([A,"loading"],null),{data:ee=void 0,mutate:$}=cu([A,"error"],null),Z=M.useRef(null),Q=M.useRef({credentials:v,headers:S,body:R});M.useEffect(()=>{Q.current={credentials:v,headers:S,body:R}},[v,S,R]);const ue=M.useCallback(async pe=>{const De=V.current.length;try{P(!0),$(void 0);const fe=new AbortController;Z.current=fe,await iT(e,pe,fg(ne,B),fg(I,B),Y,Q,V,Z,T,m,g,h,s,u,f,N,w),Z.current=null}catch(fe){if(fe.name==="AbortError")return Z.current=null,null;y&&fe instanceof Error&&y(fe),$(fe)}finally{P(!1)}const me=V.current,ge=me[me.length-1];me.length>De&&ge!=null&&d>1&&dg(ge)&&aT(me)<d&&await ue({messages:me})},[ne,P,e,Q,h,g,y,$,I,Y,m,u,f,s,d,V,Z,T,N,w,B]),x=M.useCallback(async(pe,{data:De,headers:me,body:ge,experimental_attachments:fe}={})=>{var Ee,qe;const Le=await Km(fe),Oe=V.current.concat({...pe,id:(Ee=pe.id)!=null?Ee:T(),createdAt:(qe=pe.createdAt)!=null?qe:new Date,experimental_attachments:Le.length>0?Le:void 0});return ue({messages:Oe,headers:me,body:ge,data:De})},[ue,T]),K=M.useCallback(async({data:pe,headers:De,body:me}={})=>{const ge=V.current;if(ge.length===0)return null;const fe=ge[ge.length-1];return ue({messages:fe.role==="assistant"?ge.slice(0,-1):ge,headers:De,body:me,data:pe})},[ue]),se=M.useCallback(()=>{Z.current&&(Z.current.abort(),Z.current=null)},[]),O=M.useCallback(pe=>{typeof pe=="function"&&(pe=pe(V.current)),ne(pe,!1),V.current=pe},[ne]),ie=M.useCallback(pe=>{typeof pe=="function"&&(pe=pe(Y.current)),I(pe,!1),Y.current=pe},[I]),[ye,he]=M.useState(a),Be=M.useCallback(async(pe,De={},me)=>{var ge;if((ge=pe==null?void 0:pe.preventDefault)==null||ge.call(pe),!ye&&!De.allowEmptySubmit)return;me&&(Q.current={...Q.current,...me});const fe=await Km(De.experimental_attachments),qe={messages:!ye&&!fe.length&&De.allowEmptySubmit?V.current:V.current.concat({id:T(),createdAt:new Date,role:"user",content:ye,experimental_attachments:fe.length>0?fe:void 0}),headers:De.headers,body:De.body,data:De.data};ue(qe),he("")},[ye,T,ue]);return{messages:H||[],setMessages:O,data:E,setData:ie,error:ee,append:x,reload:K,stop:se,input:ye,setInput:he,handleInputChange:pe=>{he(pe.target.value)},handleSubmit:Be,isLoading:F,addToolResult:({toolCallId:pe,result:De})=>{const me=V.current.map((fe,Ee,qe)=>Ee===qe.length-1&&fe.role==="assistant"&&fe.toolInvocations?{...fe,toolInvocations:fe.toolInvocations.map(Le=>Le.toolCallId===pe?{...Le,result:De,state:"result"}:Le)}:fe);ne(me,!1);const ge=me[me.length-1];dg(ge)&&ue({messages:me})}}}function dg(e){return e.role==="assistant"&&e.toolInvocations&&e.toolInvocations.length>0&&e.toolInvocations.every(r=>"result"in r)}function aT(e){let r=0;for(let l=e.length-1;l>=0&&e[l].role==="assistant";l--)r++;return r}var oT=lT;const uT=e=>e,sT=e=>async(r,l)=>{var f;if(typeof(l==null?void 0:l.body)!="string")return console.error("Unexpected body type."),window.fetch(r,l);const a=JSON.parse(l==null?void 0:l.body).messages,u=e.transformBody??uT,s={...l,body:JSON.stringify(u(a)),...e.fetchOpts,headers:{...l==null?void 0:l.headers,"Content-Type":"application/json",...(f=e.fetchOpts)==null?void 0:f.headers}};return fetch(r,s)},cT=(e,r)=>{const l=M.useMemo(()=>sT(e),[e]);return oT({api:e.apiUrl,streamProtocol:"text",fetch:l,onFinish:a=>{var u;e.onFinish&&(a.role==="assistant"||a.role==="user"?(u=e.onFinish)==null||u.call(e,a):console.info("Unexpected message role.",a))},...r})};function n6(){}function r6(){}function fT(e,r){const l={};return(e[e.length-1]===""?[...e,""]:e).join((l.padRight?" ":"")+","+(l.padLeft===!1?"":" ")).trim()}const dT=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pT=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hT={};function pg(e,r){return(hT.jsx?pT:dT).test(e)}const mT=/[ \t\n\f\r]/g;function gT(e){return typeof e=="object"?e.type==="text"?hg(e.value):!1:hg(e)}function hg(e){return e.replace(mT,"")===""}class wa{constructor(r,l,a){this.property=r,this.normal=l,a&&(this.space=a)}}wa.prototype.property={},wa.prototype.normal={},wa.prototype.space=null;function mg(e,r){const l={},a={};let u=-1;for(;++u<e.length;)Object.assign(l,e[u].property),Object.assign(a,e[u].normal);return new wa(l,a,r)}function Vc(e){return e.toLowerCase()}class An{constructor(r,l){this.property=r,this.attribute=l}}An.prototype.space=null,An.prototype.boolean=!1,An.prototype.booleanish=!1,An.prototype.overloadedBoolean=!1,An.prototype.number=!1,An.prototype.commaSeparated=!1,An.prototype.spaceSeparated=!1,An.prototype.commaOrSpaceSeparated=!1,An.prototype.mustUseProperty=!1,An.prototype.defined=!1;let yT=0;const Me=di(),kt=di(),gg=di(),oe=di(),ot=di(),Zi=di(),hn=di();function di(){return 2**++yT}const qc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Me,booleanish:kt,commaOrSpaceSeparated:hn,commaSeparated:Zi,number:oe,overloadedBoolean:gg,spaceSeparated:ot},Symbol.toStringTag,{value:"Module"})),$c=Object.keys(qc);class Gc extends An{constructor(r,l,a,u){let s=-1;if(super(r,l),yg(this,"space",u),typeof a=="number")for(;++s<$c.length;){const f=$c[s];yg(this,$c[s],(a&qc[f])===qc[f])}}}Gc.prototype.defined=!0;function yg(e,r,l){l&&(e[r]=l)}const bT={}.hasOwnProperty;function Wi(e){const r={},l={};let a;for(a in e.properties)if(bT.call(e.properties,a)){const u=e.properties[a],s=new Gc(a,e.transform(e.attributes||{},a),u,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(s.mustUseProperty=!0),r[a]=s,l[Vc(a)]=a,l[Vc(s.attribute)]=a}return new wa(r,l,e.space)}const bg=Wi({space:"xlink",transform(e,r){return"xlink:"+r.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Sg=Wi({space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function vg(e,r){return r in e?e[r]:r}function xg(e,r){return vg(e,r.toLowerCase())}const Eg=Wi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:xg,properties:{xmlns:null,xmlnsXLink:null}}),Cg=Wi({transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:kt,ariaAutoComplete:null,ariaBusy:kt,ariaChecked:kt,ariaColCount:oe,ariaColIndex:oe,ariaColSpan:oe,ariaControls:ot,ariaCurrent:null,ariaDescribedBy:ot,ariaDetails:null,ariaDisabled:kt,ariaDropEffect:ot,ariaErrorMessage:null,ariaExpanded:kt,ariaFlowTo:ot,ariaGrabbed:kt,ariaHasPopup:null,ariaHidden:kt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ot,ariaLevel:oe,ariaLive:null,ariaModal:kt,ariaMultiLine:kt,ariaMultiSelectable:kt,ariaOrientation:null,ariaOwns:ot,ariaPlaceholder:null,ariaPosInSet:oe,ariaPressed:kt,ariaReadOnly:kt,ariaRelevant:null,ariaRequired:kt,ariaRoleDescription:ot,ariaRowCount:oe,ariaRowIndex:oe,ariaRowSpan:oe,ariaSelected:kt,ariaSetSize:oe,ariaSort:null,ariaValueMax:oe,ariaValueMin:oe,ariaValueNow:oe,ariaValueText:null,role:null}}),ST=Wi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:xg,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zi,acceptCharset:ot,accessKey:ot,action:null,allow:null,allowFullScreen:Me,allowPaymentRequest:Me,allowUserMedia:Me,alt:null,as:null,async:Me,autoCapitalize:null,autoComplete:ot,autoFocus:Me,autoPlay:Me,blocking:ot,capture:null,charSet:null,checked:Me,cite:null,className:ot,cols:oe,colSpan:null,content:null,contentEditable:kt,controls:Me,controlsList:ot,coords:oe|Zi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Me,defer:Me,dir:null,dirName:null,disabled:Me,download:gg,draggable:kt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Me,formTarget:null,headers:ot,height:oe,hidden:Me,high:oe,href:null,hrefLang:null,htmlFor:ot,httpEquiv:ot,id:null,imageSizes:null,imageSrcSet:null,inert:Me,inputMode:null,integrity:null,is:null,isMap:Me,itemId:null,itemProp:ot,itemRef:ot,itemScope:Me,itemType:ot,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Me,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:Me,muted:Me,name:null,nonce:null,noModule:Me,noValidate:Me,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:Me,optimum:oe,pattern:null,ping:ot,placeholder:null,playsInline:Me,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Me,referrerPolicy:null,rel:ot,required:Me,reversed:Me,rows:oe,rowSpan:oe,sandbox:ot,scope:null,scoped:Me,seamless:Me,selected:Me,shadowRootClonable:Me,shadowRootDelegatesFocus:Me,shadowRootMode:null,shape:null,size:oe,sizes:null,slot:null,span:oe,spellCheck:kt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:oe,step:null,style:null,tabIndex:oe,target:null,title:null,translate:null,type:null,typeMustMatch:Me,useMap:null,value:kt,width:oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ot,axis:null,background:null,bgColor:null,border:oe,borderColor:null,bottomMargin:oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Me,declare:Me,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:Me,noHref:Me,noShade:Me,noWrap:Me,object:null,profile:null,prompt:null,rev:null,rightMargin:oe,rules:null,scheme:null,scrolling:kt,standby:null,summary:null,text:null,topMargin:oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Me,disableRemotePlayback:Me,prefix:null,property:null,results:oe,security:null,unselectable:null}}),vT=Wi({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:vg,properties:{about:hn,accentHeight:oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oe,amplitude:oe,arabicForm:null,ascent:oe,attributeName:null,attributeType:null,azimuth:oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oe,by:null,calcMode:null,capHeight:oe,className:ot,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:oe,diffuseConstant:oe,direction:null,display:null,dur:null,divisor:oe,dominantBaseline:null,download:Me,dx:null,dy:null,edgeMode:null,editable:null,elevation:oe,enableBackground:null,end:null,event:null,exponent:oe,externalResourcesRequired:null,fill:null,fillOpacity:oe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Zi,g2:Zi,glyphName:Zi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oe,horizOriginX:oe,horizOriginY:oe,id:null,ideographic:oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oe,k:oe,k1:oe,k2:oe,k3:oe,k4:oe,kernelMatrix:hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oe,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:oe,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:oe,overlineThickness:oe,paintOrder:null,panose1:null,path:null,pathLength:oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ot,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oe,pointsAtY:oe,pointsAtZ:oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:hn,rev:hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:hn,requiredFeatures:hn,requiredFonts:hn,requiredFormats:hn,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:oe,specularExponent:oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oe,strikethroughThickness:oe,string:null,stroke:null,strokeDashArray:hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oe,strokeOpacity:oe,strokeWidth:null,style:null,surfaceScale:oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:hn,tabIndex:oe,tableValues:null,target:null,targetX:oe,targetY:oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oe,underlineThickness:oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oe,values:null,vAlphabetic:oe,vMathematical:oe,vectorEffect:null,vHanging:oe,vIdeographic:oe,version:null,vertAdvY:oe,vertOriginX:oe,vertOriginY:oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),xT=/^data[-\w.:]+$/i,Tg=/-[a-z]/g,ET=/[A-Z]/g;function CT(e,r){const l=Vc(r);let a=r,u=An;if(l in e.normal)return e.property[e.normal[l]];if(l.length>4&&l.slice(0,4)==="data"&&xT.test(r)){if(r.charAt(4)==="-"){const s=r.slice(5).replace(Tg,wT);a="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=r.slice(4);if(!Tg.test(s)){let f=s.replace(ET,TT);f.charAt(0)!=="-"&&(f="-"+f),r="data"+f}}u=Gc}return new u(a,r)}function TT(e){return"-"+e.toLowerCase()}function wT(e){return e.charAt(1).toUpperCase()}const AT={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"},kT=mg([Sg,bg,Eg,Cg,ST],"html"),Yc=mg([Sg,bg,Eg,Cg,vT],"svg");function RT(e){return e.join(" ").trim()}var Aa={},Fc,wg;function OT(){if(wg)return Fc;wg=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,l=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,u=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,d=/^\s+|\s+$/g,m=`
113
+ `,h="/",g="*",y="",v="comment",S="declaration";Fc=function(T,N){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];N=N||{};var w=1,B=1;function k(F){var P=F.match(r);P&&(w+=P.length);var ee=F.lastIndexOf(m);B=~ee?F.length-ee:B+F.length}function z(){var F={line:w,column:B};return function(P){return P.position=new A(F),ne(),P}}function A(F){this.start=F,this.end={line:w,column:B},this.source=N.source}A.prototype.content=T;function _(F){var P=new Error(N.source+":"+w+":"+B+": "+F);if(P.reason=F,P.filename=N.source,P.line=w,P.column=B,P.source=T,!N.silent)throw P}function H(F){var P=F.exec(T);if(P){var ee=P[0];return k(ee),T=T.slice(ee.length),P}}function ne(){H(l)}function V(F){var P;for(F=F||[];P=E();)P!==!1&&F.push(P);return F}function E(){var F=z();if(!(h!=T.charAt(0)||g!=T.charAt(1))){for(var P=2;y!=T.charAt(P)&&(g!=T.charAt(P)||h!=T.charAt(P+1));)++P;if(P+=2,y===T.charAt(P-1))return _("End of comment missing");var ee=T.slice(2,P-2);return B+=2,k(ee),T=T.slice(P),B+=2,F({type:v,comment:ee})}}function I(){var F=z(),P=H(a);if(P){if(E(),!H(u))return _("property missing ':'");var ee=H(s),$=F({type:S,property:R(P[0].replace(e,y)),value:ee?R(ee[0].replace(e,y)):y});return H(f),$}}function Y(){var F=[];V(F);for(var P;P=I();)P!==!1&&(F.push(P),V(F));return F}return ne(),Y()};function R(T){return T?T.replace(d,y):y}return Fc}var Ag;function MT(){if(Ag)return Aa;Ag=1;var e=Aa.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.default=l;var r=e(OT());function l(a,u){var s=null;if(!a||typeof a!="string")return s;var f=(0,r.default)(a),d=typeof u=="function";return f.forEach(function(m){if(m.type==="declaration"){var h=m.property,g=m.value;d?u(h,g,m):g&&(s=s||{},s[h]=g)}}),s}return Aa}var _T=MT();const kg=Cn(_T),DT=kg.default||kg,Rg=Og("end"),Pc=Og("start");function Og(e){return r;function r(l){const a=l&&l.position&&l.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function zT(e){const r=Pc(e),l=Rg(e);if(r&&l)return{start:r,end:l}}function ka(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Mg(e.position):"start"in e||"end"in e?Mg(e):"line"in e||"column"in e?Xc(e):""}function Xc(e){return _g(e&&e.line)+":"+_g(e&&e.column)}function Mg(e){return Xc(e&&e.start)+"-"+Xc(e&&e.end)}function _g(e){return e&&typeof e=="number"?e:1}class Xt extends Error{constructor(r,l,a){super(),typeof l=="string"&&(a=l,l=void 0);let u="",s={},f=!1;if(l&&("line"in l&&"column"in l?s={place:l}:"start"in l&&"end"in l?s={place:l}:"type"in l?s={ancestors:[l],place:l.position}:s={...l}),typeof r=="string"?u=r:!s.cause&&r&&(f=!0,u=r.message,s.cause=r),!s.ruleId&&!s.source&&typeof a=="string"){const m=a.indexOf(":");m===-1?s.ruleId=a:(s.source=a.slice(0,m),s.ruleId=a.slice(m+1))}if(!s.place&&s.ancestors&&s.ancestors){const m=s.ancestors[s.ancestors.length-1];m&&(s.place=m.position)}const d=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file,this.message=u,this.line=d?d.line:void 0,this.name=ka(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=f&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual,this.expected,this.note,this.url}}Xt.prototype.file="",Xt.prototype.name="",Xt.prototype.reason="",Xt.prototype.message="",Xt.prototype.stack="",Xt.prototype.column=void 0,Xt.prototype.line=void 0,Xt.prototype.ancestors=void 0,Xt.prototype.cause=void 0,Xt.prototype.fatal=void 0,Xt.prototype.place=void 0,Xt.prototype.ruleId=void 0,Xt.prototype.source=void 0;const Qc={}.hasOwnProperty,NT=new Map,BT=/[A-Z]/g,LT=/-([a-z])/g,UT=new Set(["table","tbody","thead","tfoot","tr"]),jT=new Set(["td","th"]),Dg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function HT(e,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const l=r.filePath||void 0;let a;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=PT(l,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=FT(l,r.jsx,r.jsxs)}const u={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:a,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?Yc:kT,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},s=zg(u,e,void 0);return s&&typeof s!="string"?s:u.create(e,u.Fragment,{children:s||void 0},void 0)}function zg(e,r,l){if(r.type==="element")return IT(e,r,l);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return VT(e,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return $T(e,r,l);if(r.type==="mdxjsEsm")return qT(e,r);if(r.type==="root")return GT(e,r,l);if(r.type==="text")return YT(e,r)}function IT(e,r,l){const a=e.schema;let u=a;r.tagName.toLowerCase()==="svg"&&a.space==="html"&&(u=Yc,e.schema=u),e.ancestors.push(r);const s=Bg(e,r.tagName,!1),f=XT(e,r);let d=Zc(e,r);return UT.has(r.tagName)&&(d=d.filter(function(m){return typeof m=="string"?!gT(m):!0})),Ng(e,f,s,r),Kc(f,d),e.ancestors.pop(),e.schema=a,e.create(r,s,f,l)}function VT(e,r){if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Ra(e,r.position)}function qT(e,r){if(r.data&&r.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(r.data.estree);Ra(e,r.position)}function $T(e,r,l){const a=e.schema;let u=a;r.name==="svg"&&a.space==="html"&&(u=Yc,e.schema=u),e.ancestors.push(r);const s=r.name===null?e.Fragment:Bg(e,r.name,!0),f=QT(e,r),d=Zc(e,r);return Ng(e,f,s,r),Kc(f,d),e.ancestors.pop(),e.schema=a,e.create(r,s,f,l)}function GT(e,r,l){const a={};return Kc(a,Zc(e,r)),e.create(r,e.Fragment,a,l)}function YT(e,r){return r.value}function Ng(e,r,l,a){typeof l!="string"&&l!==e.Fragment&&e.passNode&&(r.node=a)}function Kc(e,r){if(r.length>0){const l=r.length>1?r:r[0];l&&(e.children=l)}}function FT(e,r,l){return a;function a(u,s,f,d){const h=Array.isArray(f.children)?l:r;return d?h(s,f,d):h(s,f)}}function PT(e,r){return l;function l(a,u,s,f){const d=Array.isArray(s.children),m=Pc(a);return r(u,s,f,d,{columnNumber:m?m.column-1:void 0,fileName:e,lineNumber:m?m.line:void 0},void 0)}}function XT(e,r){const l={};let a,u;for(u in r.properties)if(u!=="children"&&Qc.call(r.properties,u)){const s=KT(e,u,r.properties[u]);if(s){const[f,d]=s;e.tableCellAlignToStyle&&f==="align"&&typeof d=="string"&&jT.has(r.tagName)?a=d:l[f]=d}}if(a){const s=l.style||(l.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return l}function QT(e,r){const l={};for(const a of r.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const s=a.data.estree.body[0];s.type;const f=s.expression;f.type;const d=f.properties[0];d.type,Object.assign(l,e.evaluater.evaluateExpression(d.argument))}else Ra(e,r.position);else{const u=a.name;let s;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const d=a.value.data.estree.body[0];d.type,s=e.evaluater.evaluateExpression(d.expression)}else Ra(e,r.position);else s=a.value===null?!0:a.value;l[u]=s}return l}function Zc(e,r){const l=[];let a=-1;const u=e.passKeys?new Map:NT;for(;++a<r.children.length;){const s=r.children[a];let f;if(e.passKeys){const m=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(m){const h=u.get(m)||0;f=m+"-"+h,u.set(m,h+1)}}const d=zg(e,s,f);d!==void 0&&l.push(d)}return l}function KT(e,r,l){const a=CT(e.schema,r);if(!(l==null||typeof l=="number"&&Number.isNaN(l))){if(Array.isArray(l)&&(l=a.commaSeparated?fT(l):RT(l)),a.property==="style"){let u=typeof l=="object"?l:ZT(e,String(l));return e.stylePropertyNameCase==="css"&&(u=WT(u)),["style",u]}return[e.elementAttributeNameCase==="react"&&a.space?AT[a.property]||a.property:a.attribute,l]}}function ZT(e,r){const l={};try{DT(r,a)}catch(u){if(!e.ignoreInvalidStyle){const s=u,f=new Xt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:s,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw f.file=e.filePath||void 0,f.url=Dg+"#cannot-parse-style-attribute",f}}return l;function a(u,s){let f=u;f.slice(0,2)!=="--"&&(f.slice(0,4)==="-ms-"&&(f="ms-"+f.slice(4)),f=f.replace(LT,ew)),l[f]=s}}function Bg(e,r,l){let a;if(!l)a={type:"Literal",value:r};else if(r.includes(".")){const u=r.split(".");let s=-1,f;for(;++s<u.length;){const d=pg(u[s])?{type:"Identifier",name:u[s]}:{type:"Literal",value:u[s]};f=f?{type:"MemberExpression",object:f,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}a=f}else a=pg(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(a.type==="Literal"){const u=a.value;return Qc.call(e.components,u)?e.components[u]:u}if(e.evaluater)return e.evaluater.evaluateExpression(a);Ra(e)}function Ra(e,r){const l=new Xt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=Dg+"#cannot-handle-mdx-estrees-without-createevaluater",l}function WT(e){const r={};let l;for(l in e)Qc.call(e,l)&&(r[JT(l)]=e[l]);return r}function JT(e){let r=e.replace(BT,tw);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function ew(e,r){return r.toUpperCase()}function tw(e){return"-"+e.toLowerCase()}const Wc={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"]},nw={};function rw(e,r){const l=nw,a=typeof l.includeImageAlt=="boolean"?l.includeImageAlt:!0,u=typeof l.includeHtml=="boolean"?l.includeHtml:!0;return Lg(e,a,u)}function Lg(e,r,l){if(iw(e)){if("value"in e)return e.type==="html"&&!l?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ug(e.children,r,l)}return Array.isArray(e)?Ug(e,r,l):""}function Ug(e,r,l){const a=[];let u=-1;for(;++u<e.length;)a[u]=Lg(e[u],r,l);return a.join("")}function iw(e){return!!(e&&typeof e=="object")}const jg=document.createElement("i");function Jc(e){const r="&"+e+";";jg.innerHTML=r;const l=jg.textContent;return l.charCodeAt(l.length-1)===59&&e!=="semi"||l===r?!1:l}function gr(e,r,l,a){const u=e.length;let s=0,f;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,l=l>0?l:0,a.length<1e4)f=Array.from(a),f.unshift(r,l),e.splice(...f);else for(l&&e.splice(r,l);s<a.length;)f=a.slice(s,s+1e4),f.unshift(r,0),e.splice(...f),s+=1e4,r+=1e4}function kn(e,r){return e.length>0?(gr(e,e.length,0,r),e):r}const Hg={}.hasOwnProperty;function lw(e){const r={};let l=-1;for(;++l<e.length;)aw(r,e[l]);return r}function aw(e,r){let l;for(l in r){const u=(Hg.call(e,l)?e[l]:void 0)||(e[l]={}),s=r[l];let f;if(s)for(f in s){Hg.call(u,f)||(u[f]=[]);const d=s[f];ow(u[f],Array.isArray(d)?d:d?[d]:[])}}}function ow(e,r){let l=-1;const a=[];for(;++l<r.length;)(r[l].add==="after"?e:a).push(r[l]);gr(e,0,0,a)}function Ig(e,r){const l=Number.parseInt(e,r);return l<9||l===11||l>13&&l<32||l>126&&l<160||l>55295&&l<57344||l>64975&&l<65008||(l&65535)===65535||(l&65535)===65534||l>1114111?"�":String.fromCodePoint(l)}function Ji(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ir=Hr(/[A-Za-z]/),mn=Hr(/[\dA-Za-z]/),uw=Hr(/[#-'*+\--9=?A-Z^-~]/);function ef(e){return e!==null&&(e<32||e===127)}const tf=Hr(/\d/),sw=Hr(/[\dA-Fa-f]/),cw=Hr(/[!-/:-@[-`{-~]/);function we(e){return e!==null&&e<-2}function ln(e){return e!==null&&(e<0||e===32)}function We(e){return e===-2||e===-1||e===32}const fw=Hr(new RegExp("\\p{P}|\\p{S}","u")),dw=Hr(/\s/);function Hr(e){return r;function r(l){return l!==null&&l>-1&&e.test(String.fromCharCode(l))}}function el(e){const r=[];let l=-1,a=0,u=0;for(;++l<e.length;){const s=e.charCodeAt(l);let f="";if(s===37&&mn(e.charCodeAt(l+1))&&mn(e.charCodeAt(l+2)))u=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(f=String.fromCharCode(s));else if(s>55295&&s<57344){const d=e.charCodeAt(l+1);s<56320&&d>56319&&d<57344?(f=String.fromCharCode(s,d),u=1):f="�"}else f=String.fromCharCode(s);f&&(r.push(e.slice(a,l),encodeURIComponent(f)),a=l+u+1,f=""),u&&(l+=u,u=0)}return r.join("")+e.slice(a)}function ut(e,r,l,a){const u=a?a-1:Number.POSITIVE_INFINITY;let s=0;return f;function f(m){return We(m)?(e.enter(l),d(m)):r(m)}function d(m){return We(m)&&s++<u?(e.consume(m),d):(e.exit(l),r(m))}}const pw={tokenize:hw};function hw(e){const r=e.attempt(this.parser.constructs.contentInitial,a,u);let l;return r;function a(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ut(e,r,"linePrefix")}function u(d){return e.enter("paragraph"),s(d)}function s(d){const m=e.enter("chunkText",{contentType:"text",previous:l});return l&&(l.next=m),l=m,f(d)}function f(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return we(d)?(e.consume(d),e.exit("chunkText"),s):(e.consume(d),f)}}const mw={tokenize:gw},Vg={tokenize:yw};function gw(e){const r=this,l=[];let a=0,u,s,f;return d;function d(k){if(a<l.length){const z=l[a];return r.containerState=z[1],e.attempt(z[0].continuation,m,h)(k)}return h(k)}function m(k){if(a++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,u&&B();const z=r.events.length;let A=z,_;for(;A--;)if(r.events[A][0]==="exit"&&r.events[A][1].type==="chunkFlow"){_=r.events[A][1].end;break}w(a);let H=z;for(;H<r.events.length;)r.events[H][1].end=Object.assign({},_),H++;return gr(r.events,A+1,0,r.events.slice(z)),r.events.length=H,h(k)}return d(k)}function h(k){if(a===l.length){if(!u)return v(k);if(u.currentConstruct&&u.currentConstruct.concrete)return R(k);r.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return r.containerState={},e.check(Vg,g,y)(k)}function g(k){return u&&B(),w(a),v(k)}function y(k){return r.parser.lazy[r.now().line]=a!==l.length,f=r.now().offset,R(k)}function v(k){return r.containerState={},e.attempt(Vg,S,R)(k)}function S(k){return a++,l.push([r.currentConstruct,r.containerState]),v(k)}function R(k){if(k===null){u&&B(),w(0),e.consume(k);return}return u=u||r.parser.flow(r.now()),e.enter("chunkFlow",{contentType:"flow",previous:s,_tokenizer:u}),T(k)}function T(k){if(k===null){N(e.exit("chunkFlow"),!0),w(0),e.consume(k);return}return we(k)?(e.consume(k),N(e.exit("chunkFlow")),a=0,r.interrupt=void 0,d):(e.consume(k),T)}function N(k,z){const A=r.sliceStream(k);if(z&&A.push(null),k.previous=s,s&&(s.next=k),s=k,u.defineSkip(k.start),u.write(A),r.parser.lazy[k.start.line]){let _=u.events.length;for(;_--;)if(u.events[_][1].start.offset<f&&(!u.events[_][1].end||u.events[_][1].end.offset>f))return;const H=r.events.length;let ne=H,V,E;for(;ne--;)if(r.events[ne][0]==="exit"&&r.events[ne][1].type==="chunkFlow"){if(V){E=r.events[ne][1].end;break}V=!0}for(w(a),_=H;_<r.events.length;)r.events[_][1].end=Object.assign({},E),_++;gr(r.events,ne+1,0,r.events.slice(H)),r.events.length=_}}function w(k){let z=l.length;for(;z-- >k;){const A=l[z];r.containerState=A[1],A[0].exit.call(r,e)}l.length=k}function B(){u.write([null]),s=void 0,u=void 0,r.containerState._closeFlow=void 0}}function yw(e,r,l){return ut(e,e.attempt(this.parser.constructs.document,r,l),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function qg(e){if(e===null||ln(e)||dw(e))return 1;if(fw(e))return 2}function nf(e,r,l){const a=[];let u=-1;for(;++u<e.length;){const s=e[u].resolveAll;s&&!a.includes(s)&&(r=s(r,l),a.push(s))}return r}const rf={name:"attention",tokenize:Sw,resolveAll:bw};function bw(e,r){let l=-1,a,u,s,f,d,m,h,g;for(;++l<e.length;)if(e[l][0]==="enter"&&e[l][1].type==="attentionSequence"&&e[l][1]._close){for(a=l;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&r.sliceSerialize(e[a][1]).charCodeAt(0)===r.sliceSerialize(e[l][1]).charCodeAt(0)){if((e[a][1]._close||e[l][1]._open)&&(e[l][1].end.offset-e[l][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[l][1].end.offset-e[l][1].start.offset)%3))continue;m=e[a][1].end.offset-e[a][1].start.offset>1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const y=Object.assign({},e[a][1].end),v=Object.assign({},e[l][1].start);$g(y,-m),$g(v,m),f={type:m>1?"strongSequence":"emphasisSequence",start:y,end:Object.assign({},e[a][1].end)},d={type:m>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[l][1].start),end:v},s={type:m>1?"strongText":"emphasisText",start:Object.assign({},e[a][1].end),end:Object.assign({},e[l][1].start)},u={type:m>1?"strong":"emphasis",start:Object.assign({},f.start),end:Object.assign({},d.end)},e[a][1].end=Object.assign({},f.start),e[l][1].start=Object.assign({},d.end),h=[],e[a][1].end.offset-e[a][1].start.offset&&(h=kn(h,[["enter",e[a][1],r],["exit",e[a][1],r]])),h=kn(h,[["enter",u,r],["enter",f,r],["exit",f,r],["enter",s,r]]),h=kn(h,nf(r.parser.constructs.insideSpan.null,e.slice(a+1,l),r)),h=kn(h,[["exit",s,r],["enter",d,r],["exit",d,r],["exit",u,r]]),e[l][1].end.offset-e[l][1].start.offset?(g=2,h=kn(h,[["enter",e[l][1],r],["exit",e[l][1],r]])):g=0,gr(e,a-1,l-a+3,h),l=a+h.length-g-2;break}}for(l=-1;++l<e.length;)e[l][1].type==="attentionSequence"&&(e[l][1].type="data");return e}function Sw(e,r){const l=this.parser.constructs.attentionMarkers.null,a=this.previous,u=qg(a);let s;return f;function f(m){return s=m,e.enter("attentionSequence"),d(m)}function d(m){if(m===s)return e.consume(m),d;const h=e.exit("attentionSequence"),g=qg(m),y=!g||g===2&&u||l.includes(m),v=!u||u===2&&g||l.includes(a);return h._open=!!(s===42?y:y&&(u||!v)),h._close=!!(s===42?v:v&&(g||!y)),r(m)}}function $g(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}const vw={name:"autolink",tokenize:xw};function xw(e,r,l){let a=0;return u;function u(S){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(S){return ir(S)?(e.consume(S),f):S===64?l(S):h(S)}function f(S){return S===43||S===45||S===46||mn(S)?(a=1,d(S)):h(S)}function d(S){return S===58?(e.consume(S),a=0,m):(S===43||S===45||S===46||mn(S))&&a++<32?(e.consume(S),d):(a=0,h(S))}function m(S){return S===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.exit("autolink"),r):S===null||S===32||S===60||ef(S)?l(S):(e.consume(S),m)}function h(S){return S===64?(e.consume(S),g):uw(S)?(e.consume(S),h):l(S)}function g(S){return mn(S)?y(S):l(S)}function y(S){return S===46?(e.consume(S),a=0,g):S===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(S),e.exit("autolinkMarker"),e.exit("autolink"),r):v(S)}function v(S){if((S===45||mn(S))&&a++<63){const R=S===45?v:y;return e.consume(S),R}return l(S)}}const fu={tokenize:Ew,partial:!0};function Ew(e,r,l){return a;function a(s){return We(s)?ut(e,u,"linePrefix")(s):u(s)}function u(s){return s===null||we(s)?r(s):l(s)}}const Gg={name:"blockQuote",tokenize:Cw,continuation:{tokenize:Tw},exit:ww};function Cw(e,r,l){const a=this;return u;function u(f){if(f===62){const d=a.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(f),e.exit("blockQuoteMarker"),s}return l(f)}function s(f){return We(f)?(e.enter("blockQuotePrefixWhitespace"),e.consume(f),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),r):(e.exit("blockQuotePrefix"),r(f))}}function Tw(e,r,l){const a=this;return u;function u(f){return We(f)?ut(e,s,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):s(f)}function s(f){return e.attempt(Gg,r,l)(f)}}function ww(e){e.exit("blockQuote")}const Yg={name:"characterEscape",tokenize:Aw};function Aw(e,r,l){return a;function a(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),u}function u(s){return cw(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),r):l(s)}}const Fg={name:"characterReference",tokenize:kw};function kw(e,r,l){const a=this;let u=0,s,f;return d;function d(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),m}function m(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),s=31,f=mn,g(y))}function h(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,f=sw,g):(e.enter("characterReferenceValue"),s=7,f=tf,g(y))}function g(y){if(y===59&&u){const v=e.exit("characterReferenceValue");return f===mn&&!Jc(a.sliceSerialize(v))?l(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),r)}return f(y)&&u++<s?(e.consume(y),g):l(y)}}const Pg={tokenize:Ow,partial:!0},Xg={name:"codeFenced",tokenize:Rw,concrete:!0};function Rw(e,r,l){const a=this,u={tokenize:A,partial:!0};let s=0,f=0,d;return m;function m(_){return h(_)}function h(_){const H=a.events[a.events.length-1];return s=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,d=_,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(_)}function g(_){return _===d?(f++,e.consume(_),g):f<3?l(_):(e.exit("codeFencedFenceSequence"),We(_)?ut(e,y,"whitespace")(_):y(_))}function y(_){return _===null||we(_)?(e.exit("codeFencedFence"),a.interrupt?r(_):e.check(Pg,T,z)(_)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(_))}function v(_){return _===null||we(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(_)):We(_)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ut(e,S,"whitespace")(_)):_===96&&_===d?l(_):(e.consume(_),v)}function S(_){return _===null||we(_)?y(_):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),R(_))}function R(_){return _===null||we(_)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(_)):_===96&&_===d?l(_):(e.consume(_),R)}function T(_){return e.attempt(u,z,N)(_)}function N(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),w}function w(_){return s>0&&We(_)?ut(e,B,"linePrefix",s+1)(_):B(_)}function B(_){return _===null||we(_)?e.check(Pg,T,z)(_):(e.enter("codeFlowValue"),k(_))}function k(_){return _===null||we(_)?(e.exit("codeFlowValue"),B(_)):(e.consume(_),k)}function z(_){return e.exit("codeFenced"),r(_)}function A(_,H,ne){let V=0;return E;function E(ee){return _.enter("lineEnding"),_.consume(ee),_.exit("lineEnding"),I}function I(ee){return _.enter("codeFencedFence"),We(ee)?ut(_,Y,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):Y(ee)}function Y(ee){return ee===d?(_.enter("codeFencedFenceSequence"),F(ee)):ne(ee)}function F(ee){return ee===d?(V++,_.consume(ee),F):V>=f?(_.exit("codeFencedFenceSequence"),We(ee)?ut(_,P,"whitespace")(ee):P(ee)):ne(ee)}function P(ee){return ee===null||we(ee)?(_.exit("codeFencedFence"),H(ee)):ne(ee)}}}function Ow(e,r,l){const a=this;return u;function u(f){return f===null?l(f):(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s)}function s(f){return a.parser.lazy[a.now().line]?l(f):r(f)}}const lf={name:"codeIndented",tokenize:_w},Mw={tokenize:Dw,partial:!0};function _w(e,r,l){const a=this;return u;function u(h){return e.enter("codeIndented"),ut(e,s,"linePrefix",5)(h)}function s(h){const g=a.events[a.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?f(h):l(h)}function f(h){return h===null?m(h):we(h)?e.attempt(Mw,f,m)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||we(h)?(e.exit("codeFlowValue"),f(h)):(e.consume(h),d)}function m(h){return e.exit("codeIndented"),r(h)}}function Dw(e,r,l){const a=this;return u;function u(f){return a.parser.lazy[a.now().line]?l(f):we(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):ut(e,s,"linePrefix",5)(f)}function s(f){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(f):we(f)?u(f):l(f)}}const zw={name:"codeText",tokenize:Lw,resolve:Nw,previous:Bw};function Nw(e){let r=e.length-4,l=3,a,u;if((e[l][1].type==="lineEnding"||e[l][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(a=l;++a<r;)if(e[a][1].type==="codeTextData"){e[l][1].type="codeTextPadding",e[r][1].type="codeTextPadding",l+=2,r-=2;break}}for(a=l-1,r++;++a<=r;)u===void 0?a!==r&&e[a][1].type!=="lineEnding"&&(u=a):(a===r||e[a][1].type==="lineEnding")&&(e[u][1].type="codeTextData",a!==u+2&&(e[u][1].end=e[a-1][1].end,e.splice(u+2,a-u-2),r-=a-u-2,a=u+2),u=void 0);return e}function Bw(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Lw(e,r,l){let a=0,u,s;return f;function f(y){return e.enter("codeText"),e.enter("codeTextSequence"),d(y)}function d(y){return y===96?(e.consume(y),a++,d):(e.exit("codeTextSequence"),m(y))}function m(y){return y===null?l(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),m):y===96?(s=e.enter("codeTextSequence"),u=0,g(y)):we(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),m):(e.enter("codeTextData"),h(y))}function h(y){return y===null||y===32||y===96||we(y)?(e.exit("codeTextData"),m(y)):(e.consume(y),h)}function g(y){return y===96?(e.consume(y),u++,g):u===a?(e.exit("codeTextSequence"),e.exit("codeText"),r(y)):(s.type="codeTextData",h(y))}}class Uw{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,l){const a=l??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(r,a):r>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(r,l,a){const u=l||0;this.setCursor(Math.trunc(r));const s=this.right.splice(this.right.length-u,Number.POSITIVE_INFINITY);return a&&Oa(this.left,a),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),Oa(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Oa(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const l=this.left.splice(r,Number.POSITIVE_INFINITY);Oa(this.right,l.reverse())}else{const l=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);Oa(this.left,l.reverse())}}}function Oa(e,r){let l=0;if(r.length<1e4)e.push(...r);else for(;l<r.length;)e.push(...r.slice(l,l+1e4)),l+=1e4}function Qg(e){const r={};let l=-1,a,u,s,f,d,m,h;const g=new Uw(e);for(;++l<g.length;){for(;l in r;)l=r[l];if(a=g.get(l),l&&a[1].type==="chunkFlow"&&g.get(l-1)[1].type==="listItemPrefix"&&(m=a[1]._tokenizer.events,s=0,s<m.length&&m[s][1].type==="lineEndingBlank"&&(s+=2),s<m.length&&m[s][1].type==="content"))for(;++s<m.length&&m[s][1].type!=="content";)m[s][1].type==="chunkText"&&(m[s][1]._isInFirstContentOfListItem=!0,s++);if(a[0]==="enter")a[1].contentType&&(Object.assign(r,jw(g,l)),l=r[l],h=!0);else if(a[1]._container){for(s=l,u=void 0;s--&&(f=g.get(s),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank");)f[0]==="enter"&&(u&&(g.get(u)[1].type="lineEndingBlank"),f[1].type="lineEnding",u=s);u&&(a[1].end=Object.assign({},g.get(u)[1].start),d=g.slice(u,l),d.unshift(a),g.splice(u,l-u+1,d))}}return gr(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!h}function jw(e,r){const l=e.get(r)[1],a=e.get(r)[2];let u=r-1;const s=[],f=l._tokenizer||a.parser[l.contentType](l.start),d=f.events,m=[],h={};let g,y,v=-1,S=l,R=0,T=0;const N=[T];for(;S;){for(;e.get(++u)[1]!==S;);s.push(u),S._tokenizer||(g=a.sliceStream(S),S.next||g.push(null),y&&f.defineSkip(S.start),S._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(g),S._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),y=S,S=S.next}for(S=l;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(T=v+1,N.push(T),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(f.events=[],S?(S._tokenizer=void 0,S.previous=void 0):N.pop(),v=N.length;v--;){const w=d.slice(N[v],N[v+1]),B=s.pop();m.push([B,B+w.length-1]),e.splice(B,2,w)}for(m.reverse(),v=-1;++v<m.length;)h[R+m[v][0]]=R+m[v][1],R+=m[v][1]-m[v][0]-1;return h}const Hw={tokenize:qw,resolve:Vw},Iw={tokenize:$w,partial:!0};function Vw(e){return Qg(e),e}function qw(e,r){let l;return a;function a(d){return e.enter("content"),l=e.enter("chunkContent",{contentType:"content"}),u(d)}function u(d){return d===null?s(d):we(d)?e.check(Iw,f,s)(d):(e.consume(d),u)}function s(d){return e.exit("chunkContent"),e.exit("content"),r(d)}function f(d){return e.consume(d),e.exit("chunkContent"),l.next=e.enter("chunkContent",{contentType:"content",previous:l}),l=l.next,u}}function $w(e,r,l){const a=this;return u;function u(f){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),ut(e,s,"linePrefix")}function s(f){if(f===null||we(f))return l(f);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?r(f):e.interrupt(a.parser.constructs.flow,l,r)(f)}}function Kg(e,r,l,a,u,s,f,d,m){const h=m||Number.POSITIVE_INFINITY;let g=0;return y;function y(w){return w===60?(e.enter(a),e.enter(u),e.enter(s),e.consume(w),e.exit(s),v):w===null||w===32||w===41||ef(w)?l(w):(e.enter(a),e.enter(f),e.enter(d),e.enter("chunkString",{contentType:"string"}),T(w))}function v(w){return w===62?(e.enter(s),e.consume(w),e.exit(s),e.exit(u),e.exit(a),r):(e.enter(d),e.enter("chunkString",{contentType:"string"}),S(w))}function S(w){return w===62?(e.exit("chunkString"),e.exit(d),v(w)):w===null||w===60||we(w)?l(w):(e.consume(w),w===92?R:S)}function R(w){return w===60||w===62||w===92?(e.consume(w),S):S(w)}function T(w){return!g&&(w===null||w===41||ln(w))?(e.exit("chunkString"),e.exit(d),e.exit(f),e.exit(a),r(w)):g<h&&w===40?(e.consume(w),g++,T):w===41?(e.consume(w),g--,T):w===null||w===32||w===40||ef(w)?l(w):(e.consume(w),w===92?N:T)}function N(w){return w===40||w===41||w===92?(e.consume(w),T):T(w)}}function Zg(e,r,l,a,u,s){const f=this;let d=0,m;return h;function h(S){return e.enter(a),e.enter(u),e.consume(S),e.exit(u),e.enter(s),g}function g(S){return d>999||S===null||S===91||S===93&&!m||S===94&&!d&&"_hiddenFootnoteSupport"in f.parser.constructs?l(S):S===93?(e.exit(s),e.enter(u),e.consume(S),e.exit(u),e.exit(a),r):we(S)?(e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===null||S===91||S===93||we(S)||d++>999?(e.exit("chunkString"),g(S)):(e.consume(S),m||(m=!We(S)),S===92?v:y)}function v(S){return S===91||S===92||S===93?(e.consume(S),d++,y):y(S)}}function Wg(e,r,l,a,u,s){let f;return d;function d(v){return v===34||v===39||v===40?(e.enter(a),e.enter(u),e.consume(v),e.exit(u),f=v===40?41:v,m):l(v)}function m(v){return v===f?(e.enter(u),e.consume(v),e.exit(u),e.exit(a),r):(e.enter(s),h(v))}function h(v){return v===f?(e.exit(s),m(f)):v===null?l(v):we(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),ut(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===f||v===null||we(v)?(e.exit("chunkString"),h(v)):(e.consume(v),v===92?y:g)}function y(v){return v===f||v===92?(e.consume(v),g):g(v)}}function Ma(e,r){let l;return a;function a(u){return we(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l=!0,a):We(u)?ut(e,a,l?"linePrefix":"lineSuffix")(u):r(u)}}const Gw={name:"definition",tokenize:Fw},Yw={tokenize:Pw,partial:!0};function Fw(e,r,l){const a=this;let u;return s;function s(S){return e.enter("definition"),f(S)}function f(S){return Zg.call(a,e,d,l,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function d(S){return u=Ji(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),m):l(S)}function m(S){return ln(S)?Ma(e,h)(S):h(S)}function h(S){return Kg(e,g,l,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function g(S){return e.attempt(Yw,y,y)(S)}function y(S){return We(S)?ut(e,v,"whitespace")(S):v(S)}function v(S){return S===null||we(S)?(e.exit("definition"),a.parser.defined.push(u),r(S)):l(S)}}function Pw(e,r,l){return a;function a(d){return ln(d)?Ma(e,u)(d):l(d)}function u(d){return Wg(e,s,l,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return We(d)?ut(e,f,"whitespace")(d):f(d)}function f(d){return d===null||we(d)?r(d):l(d)}}const Xw={name:"hardBreakEscape",tokenize:Qw};function Qw(e,r,l){return a;function a(s){return e.enter("hardBreakEscape"),e.consume(s),u}function u(s){return we(s)?(e.exit("hardBreakEscape"),r(s)):l(s)}}const Kw={name:"headingAtx",tokenize:Ww,resolve:Zw};function Zw(e,r){let l=e.length-2,a=3,u,s;return e[a][1].type==="whitespace"&&(a+=2),l-2>a&&e[l][1].type==="whitespace"&&(l-=2),e[l][1].type==="atxHeadingSequence"&&(a===l-1||l-4>a&&e[l-2][1].type==="whitespace")&&(l-=a+1===l?2:4),l>a&&(u={type:"atxHeadingText",start:e[a][1].start,end:e[l][1].end},s={type:"chunkText",start:e[a][1].start,end:e[l][1].end,contentType:"text"},gr(e,a,l-a+1,[["enter",u,r],["enter",s,r],["exit",s,r],["exit",u,r]])),e}function Ww(e,r,l){let a=0;return u;function u(g){return e.enter("atxHeading"),s(g)}function s(g){return e.enter("atxHeadingSequence"),f(g)}function f(g){return g===35&&a++<6?(e.consume(g),f):g===null||ln(g)?(e.exit("atxHeadingSequence"),d(g)):l(g)}function d(g){return g===35?(e.enter("atxHeadingSequence"),m(g)):g===null||we(g)?(e.exit("atxHeading"),r(g)):We(g)?ut(e,d,"whitespace")(g):(e.enter("atxHeadingText"),h(g))}function m(g){return g===35?(e.consume(g),m):(e.exit("atxHeadingSequence"),d(g))}function h(g){return g===null||g===35||ln(g)?(e.exit("atxHeadingText"),d(g)):(e.consume(g),h)}}const Jw=["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"],Jg=["pre","script","style","textarea"],eA={name:"htmlFlow",tokenize:iA,resolveTo:rA,concrete:!0},tA={tokenize:aA,partial:!0},nA={tokenize:lA,partial:!0};function rA(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function iA(e,r,l){const a=this;let u,s,f,d,m;return h;function h(O){return g(O)}function g(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),y}function y(O){return O===33?(e.consume(O),v):O===47?(e.consume(O),s=!0,T):O===63?(e.consume(O),u=3,a.interrupt?r:x):ir(O)?(e.consume(O),f=String.fromCharCode(O),N):l(O)}function v(O){return O===45?(e.consume(O),u=2,S):O===91?(e.consume(O),u=5,d=0,R):ir(O)?(e.consume(O),u=4,a.interrupt?r:x):l(O)}function S(O){return O===45?(e.consume(O),a.interrupt?r:x):l(O)}function R(O){const ie="CDATA[";return O===ie.charCodeAt(d++)?(e.consume(O),d===ie.length?a.interrupt?r:Y:R):l(O)}function T(O){return ir(O)?(e.consume(O),f=String.fromCharCode(O),N):l(O)}function N(O){if(O===null||O===47||O===62||ln(O)){const ie=O===47,ye=f.toLowerCase();return!ie&&!s&&Jg.includes(ye)?(u=1,a.interrupt?r(O):Y(O)):Jw.includes(f.toLowerCase())?(u=6,ie?(e.consume(O),w):a.interrupt?r(O):Y(O)):(u=7,a.interrupt&&!a.parser.lazy[a.now().line]?l(O):s?B(O):k(O))}return O===45||mn(O)?(e.consume(O),f+=String.fromCharCode(O),N):l(O)}function w(O){return O===62?(e.consume(O),a.interrupt?r:Y):l(O)}function B(O){return We(O)?(e.consume(O),B):E(O)}function k(O){return O===47?(e.consume(O),E):O===58||O===95||ir(O)?(e.consume(O),z):We(O)?(e.consume(O),k):E(O)}function z(O){return O===45||O===46||O===58||O===95||mn(O)?(e.consume(O),z):A(O)}function A(O){return O===61?(e.consume(O),_):We(O)?(e.consume(O),A):k(O)}function _(O){return O===null||O===60||O===61||O===62||O===96?l(O):O===34||O===39?(e.consume(O),m=O,H):We(O)?(e.consume(O),_):ne(O)}function H(O){return O===m?(e.consume(O),m=null,V):O===null||we(O)?l(O):(e.consume(O),H)}function ne(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||ln(O)?A(O):(e.consume(O),ne)}function V(O){return O===47||O===62||We(O)?k(O):l(O)}function E(O){return O===62?(e.consume(O),I):l(O)}function I(O){return O===null||we(O)?Y(O):We(O)?(e.consume(O),I):l(O)}function Y(O){return O===45&&u===2?(e.consume(O),$):O===60&&u===1?(e.consume(O),Z):O===62&&u===4?(e.consume(O),K):O===63&&u===3?(e.consume(O),x):O===93&&u===5?(e.consume(O),ue):we(O)&&(u===6||u===7)?(e.exit("htmlFlowData"),e.check(tA,se,F)(O)):O===null||we(O)?(e.exit("htmlFlowData"),F(O)):(e.consume(O),Y)}function F(O){return e.check(nA,P,se)(O)}function P(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),ee}function ee(O){return O===null||we(O)?F(O):(e.enter("htmlFlowData"),Y(O))}function $(O){return O===45?(e.consume(O),x):Y(O)}function Z(O){return O===47?(e.consume(O),f="",Q):Y(O)}function Q(O){if(O===62){const ie=f.toLowerCase();return Jg.includes(ie)?(e.consume(O),K):Y(O)}return ir(O)&&f.length<8?(e.consume(O),f+=String.fromCharCode(O),Q):Y(O)}function ue(O){return O===93?(e.consume(O),x):Y(O)}function x(O){return O===62?(e.consume(O),K):O===45&&u===2?(e.consume(O),x):Y(O)}function K(O){return O===null||we(O)?(e.exit("htmlFlowData"),se(O)):(e.consume(O),K)}function se(O){return e.exit("htmlFlow"),r(O)}}function lA(e,r,l){const a=this;return u;function u(f){return we(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):l(f)}function s(f){return a.parser.lazy[a.now().line]?l(f):r(f)}}function aA(e,r,l){return a;function a(u){return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),e.attempt(fu,r,l)}}const oA={name:"htmlText",tokenize:uA};function uA(e,r,l){const a=this;let u,s,f;return d;function d(x){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(x),m}function m(x){return x===33?(e.consume(x),h):x===47?(e.consume(x),A):x===63?(e.consume(x),k):ir(x)?(e.consume(x),ne):l(x)}function h(x){return x===45?(e.consume(x),g):x===91?(e.consume(x),s=0,R):ir(x)?(e.consume(x),B):l(x)}function g(x){return x===45?(e.consume(x),S):l(x)}function y(x){return x===null?l(x):x===45?(e.consume(x),v):we(x)?(f=y,Z(x)):(e.consume(x),y)}function v(x){return x===45?(e.consume(x),S):y(x)}function S(x){return x===62?$(x):x===45?v(x):y(x)}function R(x){const K="CDATA[";return x===K.charCodeAt(s++)?(e.consume(x),s===K.length?T:R):l(x)}function T(x){return x===null?l(x):x===93?(e.consume(x),N):we(x)?(f=T,Z(x)):(e.consume(x),T)}function N(x){return x===93?(e.consume(x),w):T(x)}function w(x){return x===62?$(x):x===93?(e.consume(x),w):T(x)}function B(x){return x===null||x===62?$(x):we(x)?(f=B,Z(x)):(e.consume(x),B)}function k(x){return x===null?l(x):x===63?(e.consume(x),z):we(x)?(f=k,Z(x)):(e.consume(x),k)}function z(x){return x===62?$(x):k(x)}function A(x){return ir(x)?(e.consume(x),_):l(x)}function _(x){return x===45||mn(x)?(e.consume(x),_):H(x)}function H(x){return we(x)?(f=H,Z(x)):We(x)?(e.consume(x),H):$(x)}function ne(x){return x===45||mn(x)?(e.consume(x),ne):x===47||x===62||ln(x)?V(x):l(x)}function V(x){return x===47?(e.consume(x),$):x===58||x===95||ir(x)?(e.consume(x),E):we(x)?(f=V,Z(x)):We(x)?(e.consume(x),V):$(x)}function E(x){return x===45||x===46||x===58||x===95||mn(x)?(e.consume(x),E):I(x)}function I(x){return x===61?(e.consume(x),Y):we(x)?(f=I,Z(x)):We(x)?(e.consume(x),I):V(x)}function Y(x){return x===null||x===60||x===61||x===62||x===96?l(x):x===34||x===39?(e.consume(x),u=x,F):we(x)?(f=Y,Z(x)):We(x)?(e.consume(x),Y):(e.consume(x),P)}function F(x){return x===u?(e.consume(x),u=void 0,ee):x===null?l(x):we(x)?(f=F,Z(x)):(e.consume(x),F)}function P(x){return x===null||x===34||x===39||x===60||x===61||x===96?l(x):x===47||x===62||ln(x)?V(x):(e.consume(x),P)}function ee(x){return x===47||x===62||ln(x)?V(x):l(x)}function $(x){return x===62?(e.consume(x),e.exit("htmlTextData"),e.exit("htmlText"),r):l(x)}function Z(x){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),Q}function Q(x){return We(x)?ut(e,ue,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):ue(x)}function ue(x){return e.enter("htmlTextData"),f(x)}}const af={name:"labelEnd",tokenize:hA,resolveTo:pA,resolveAll:dA},sA={tokenize:mA},cA={tokenize:gA},fA={tokenize:yA};function dA(e){let r=-1;for(;++r<e.length;){const l=e[r][1];(l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd")&&(e.splice(r+1,l.type==="labelImage"?4:2),l.type="data",r++)}return e}function pA(e,r){let l=e.length,a=0,u,s,f,d;for(;l--;)if(u=e[l][1],s){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;e[l][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(f){if(e[l][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(s=l,u.type!=="labelLink")){a=2;break}}else u.type==="labelEnd"&&(f=l);const m={type:e[s][1].type==="labelLink"?"link":"image",start:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)},h={type:"label",start:Object.assign({},e[s][1].start),end:Object.assign({},e[f][1].end)},g={type:"labelText",start:Object.assign({},e[s+a+2][1].end),end:Object.assign({},e[f-2][1].start)};return d=[["enter",m,r],["enter",h,r]],d=kn(d,e.slice(s+1,s+a+3)),d=kn(d,[["enter",g,r]]),d=kn(d,nf(r.parser.constructs.insideSpan.null,e.slice(s+a+4,f-3),r)),d=kn(d,[["exit",g,r],e[f-2],e[f-1],["exit",h,r]]),d=kn(d,e.slice(f+1)),d=kn(d,[["exit",m,r]]),gr(e,s,e.length,d),e}function hA(e,r,l){const a=this;let u=a.events.length,s,f;for(;u--;)if((a.events[u][1].type==="labelImage"||a.events[u][1].type==="labelLink")&&!a.events[u][1]._balanced){s=a.events[u][1];break}return d;function d(v){return s?s._inactive?y(v):(f=a.parser.defined.includes(Ji(a.sliceSerialize({start:s.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),m):l(v)}function m(v){return v===40?e.attempt(sA,g,f?g:y)(v):v===91?e.attempt(cA,g,f?h:y)(v):f?g(v):y(v)}function h(v){return e.attempt(fA,g,y)(v)}function g(v){return r(v)}function y(v){return s._balanced=!0,l(v)}}function mA(e,r,l){return a;function a(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),u}function u(y){return ln(y)?Ma(e,s)(y):s(y)}function s(y){return y===41?g(y):Kg(e,f,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function f(y){return ln(y)?Ma(e,m)(y):g(y)}function d(y){return l(y)}function m(y){return y===34||y===39||y===40?Wg(e,h,l,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):g(y)}function h(y){return ln(y)?Ma(e,g)(y):g(y)}function g(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),r):l(y)}}function gA(e,r,l){const a=this;return u;function u(d){return Zg.call(a,e,s,f,"reference","referenceMarker","referenceString")(d)}function s(d){return a.parser.defined.includes(Ji(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?r(d):l(d)}function f(d){return l(d)}}function yA(e,r,l){return a;function a(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),u}function u(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),r):l(s)}}const bA={name:"labelStartImage",tokenize:SA,resolveAll:af.resolveAll};function SA(e,r,l){const a=this;return u;function u(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),s}function s(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),f):l(d)}function f(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?l(d):r(d)}}const vA={name:"labelStartLink",tokenize:xA,resolveAll:af.resolveAll};function xA(e,r,l){const a=this;return u;function u(f){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelLink"),s}function s(f){return f===94&&"_hiddenFootnoteSupport"in a.parser.constructs?l(f):r(f)}}const of={name:"lineEnding",tokenize:EA};function EA(e,r){return l;function l(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),ut(e,r,"linePrefix")}}const du={name:"thematicBreak",tokenize:CA};function CA(e,r,l){let a=0,u;return s;function s(h){return e.enter("thematicBreak"),f(h)}function f(h){return u=h,d(h)}function d(h){return h===u?(e.enter("thematicBreakSequence"),m(h)):a>=3&&(h===null||we(h))?(e.exit("thematicBreak"),r(h)):l(h)}function m(h){return h===u?(e.consume(h),a++,m):(e.exit("thematicBreakSequence"),We(h)?ut(e,d,"whitespace")(h):d(h))}}const an={name:"list",tokenize:AA,continuation:{tokenize:kA},exit:OA},TA={tokenize:MA,partial:!0},wA={tokenize:RA,partial:!0};function AA(e,r,l){const a=this,u=a.events[a.events.length-1];let s=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,f=0;return d;function d(S){const R=a.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(R==="listUnordered"?!a.containerState.marker||S===a.containerState.marker:tf(S)){if(a.containerState.type||(a.containerState.type=R,e.enter(R,{_container:!0})),R==="listUnordered")return e.enter("listItemPrefix"),S===42||S===45?e.check(du,l,h)(S):h(S);if(!a.interrupt||S===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),m(S)}return l(S)}function m(S){return tf(S)&&++f<10?(e.consume(S),m):(!a.interrupt||f<2)&&(a.containerState.marker?S===a.containerState.marker:S===41||S===46)?(e.exit("listItemValue"),h(S)):l(S)}function h(S){return e.enter("listItemMarker"),e.consume(S),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||S,e.check(fu,a.interrupt?l:g,e.attempt(TA,v,y))}function g(S){return a.containerState.initialBlankLine=!0,s++,v(S)}function y(S){return We(S)?(e.enter("listItemPrefixWhitespace"),e.consume(S),e.exit("listItemPrefixWhitespace"),v):l(S)}function v(S){return a.containerState.size=s+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(S)}}function kA(e,r,l){const a=this;return a.containerState._closeFlow=void 0,e.check(fu,u,s);function u(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,ut(e,r,"listItemIndent",a.containerState.size+1)(d)}function s(d){return a.containerState.furtherBlankLines||!We(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,f(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(wA,r,f)(d))}function f(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,ut(e,e.attempt(an,r,l),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function RA(e,r,l){const a=this;return ut(e,u,"listItemIndent",a.containerState.size+1);function u(s){const f=a.events[a.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===a.containerState.size?r(s):l(s)}}function OA(e){e.exit(this.containerState.type)}function MA(e,r,l){const a=this;return ut(e,u,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(s){const f=a.events[a.events.length-1];return!We(s)&&f&&f[1].type==="listItemPrefixWhitespace"?r(s):l(s)}}const ey={name:"setextUnderline",tokenize:DA,resolveTo:_A};function _A(e,r){let l=e.length,a,u,s;for(;l--;)if(e[l][0]==="enter"){if(e[l][1].type==="content"){a=l;break}e[l][1].type==="paragraph"&&(u=l)}else e[l][1].type==="content"&&e.splice(l,1),!s&&e[l][1].type==="definition"&&(s=l);const f={type:"setextHeading",start:Object.assign({},e[u][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[u][1].type="setextHeadingText",s?(e.splice(u,0,["enter",f,r]),e.splice(s+1,0,["exit",e[a][1],r]),e[a][1].end=Object.assign({},e[s][1].end)):e[a][1]=f,e.push(["exit",f,r]),e}function DA(e,r,l){const a=this;let u;return s;function s(h){let g=a.events.length,y;for(;g--;)if(a.events[g][1].type!=="lineEnding"&&a.events[g][1].type!=="linePrefix"&&a.events[g][1].type!=="content"){y=a.events[g][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||y)?(e.enter("setextHeadingLine"),u=h,f(h)):l(h)}function f(h){return e.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===u?(e.consume(h),d):(e.exit("setextHeadingLineSequence"),We(h)?ut(e,m,"lineSuffix")(h):m(h))}function m(h){return h===null||we(h)?(e.exit("setextHeadingLine"),r(h)):l(h)}}const zA={tokenize:NA};function NA(e){const r=this,l=e.attempt(fu,a,e.attempt(this.parser.constructs.flowInitial,u,ut(e,e.attempt(this.parser.constructs.flow,u,e.attempt(Hw,u)),"linePrefix")));return l;function a(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),r.currentConstruct=void 0,l}function u(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r.currentConstruct=void 0,l}}const BA={resolveAll:ny()},LA=ty("string"),UA=ty("text");function ty(e){return{tokenize:r,resolveAll:ny(e==="text"?jA:void 0)};function r(l){const a=this,u=this.parser.constructs[e],s=l.attempt(u,f,d);return f;function f(g){return h(g)?s(g):d(g)}function d(g){if(g===null){l.consume(g);return}return l.enter("data"),l.consume(g),m}function m(g){return h(g)?(l.exit("data"),s(g)):(l.consume(g),m)}function h(g){if(g===null)return!0;const y=u[g];let v=-1;if(y)for(;++v<y.length;){const S=y[v];if(!S.previous||S.previous.call(a,a.previous))return!0}return!1}}}function ny(e){return r;function r(l,a){let u=-1,s;for(;++u<=l.length;)s===void 0?l[u]&&l[u][1].type==="data"&&(s=u,u++):(!l[u]||l[u][1].type!=="data")&&(u!==s+2&&(l[s][1].end=l[u-1][1].end,l.splice(s+2,u-s-2),u=s+2),s=void 0);return e?e(l,a):l}}function jA(e,r){let l=0;for(;++l<=e.length;)if((l===e.length||e[l][1].type==="lineEnding")&&e[l-1][1].type==="data"){const a=e[l-1][1],u=r.sliceStream(a);let s=u.length,f=-1,d=0,m;for(;s--;){const h=u[s];if(typeof h=="string"){for(f=h.length;h.charCodeAt(f-1)===32;)d++,f--;if(f)break;f=-1}else if(h===-2)m=!0,d++;else if(h!==-1){s++;break}}if(d){const h={type:l===e.length||m||d<2?"lineSuffix":"hardBreakTrailing",start:{line:a.end.line,column:a.end.column-d,offset:a.end.offset-d,_index:a.start._index+s,_bufferIndex:s?f:a.start._bufferIndex+f},end:Object.assign({},a.end)};a.end=Object.assign({},h.start),a.start.offset===a.end.offset?Object.assign(a,h):(e.splice(l,0,["enter",h,r],["exit",h,r]),l+=2)}l++}return e}function HA(e,r,l){let a=Object.assign(l?Object.assign({},l):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const u={},s=[];let f=[],d=[];const m={consume:B,enter:k,exit:z,attempt:H(A),check:H(_),interrupt:H(_,{interrupt:!0})},h={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:S,sliceSerialize:v,now:R,defineSkip:T,write:y};let g=r.tokenize.call(h,m);return r.resolveAll&&s.push(r),h;function y(I){return f=kn(f,I),N(),f[f.length-1]!==null?[]:(ne(r,0),h.events=nf(s,h.events,h),h.events)}function v(I,Y){return VA(S(I),Y)}function S(I){return IA(f,I)}function R(){const{line:I,column:Y,offset:F,_index:P,_bufferIndex:ee}=a;return{line:I,column:Y,offset:F,_index:P,_bufferIndex:ee}}function T(I){u[I.line]=I.column,E()}function N(){let I;for(;a._index<f.length;){const Y=f[a._index];if(typeof Y=="string")for(I=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===I&&a._bufferIndex<Y.length;)w(Y.charCodeAt(a._bufferIndex));else w(Y)}}function w(I){g=g(I)}function B(I){we(I)?(a.line++,a.column=1,a.offset+=I===-3?2:1,E()):I!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===f[a._index].length&&(a._bufferIndex=-1,a._index++)),h.previous=I}function k(I,Y){const F=Y||{};return F.type=I,F.start=R(),h.events.push(["enter",F,h]),d.push(F),F}function z(I){const Y=d.pop();return Y.end=R(),h.events.push(["exit",Y,h]),Y}function A(I,Y){ne(I,Y.from)}function _(I,Y){Y.restore()}function H(I,Y){return F;function F(P,ee,$){let Z,Q,ue,x;return Array.isArray(P)?se(P):"tokenize"in P?se([P]):K(P);function K(he){return Be;function Be(Ce){const ke=Ce!==null&&he[Ce],pe=Ce!==null&&he.null,De=[...Array.isArray(ke)?ke:ke?[ke]:[],...Array.isArray(pe)?pe:pe?[pe]:[]];return se(De)(Ce)}}function se(he){return Z=he,Q=0,he.length===0?$:O(he[Q])}function O(he){return Be;function Be(Ce){return x=V(),ue=he,he.partial||(h.currentConstruct=he),he.name&&h.parser.constructs.disable.null.includes(he.name)?ye():he.tokenize.call(Y?Object.assign(Object.create(h),Y):h,m,ie,ye)(Ce)}}function ie(he){return I(ue,x),ee}function ye(he){return x.restore(),++Q<Z.length?O(Z[Q]):$}}}function ne(I,Y){I.resolveAll&&!s.includes(I)&&s.push(I),I.resolve&&gr(h.events,Y,h.events.length-Y,I.resolve(h.events.slice(Y),h)),I.resolveTo&&(h.events=I.resolveTo(h.events,h))}function V(){const I=R(),Y=h.previous,F=h.currentConstruct,P=h.events.length,ee=Array.from(d);return{restore:$,from:P};function $(){a=I,h.previous=Y,h.currentConstruct=F,h.events.length=P,d=ee,E()}}function E(){a.line in u&&a.column<2&&(a.column=u[a.line],a.offset+=u[a.line]-1)}}function IA(e,r){const l=r.start._index,a=r.start._bufferIndex,u=r.end._index,s=r.end._bufferIndex;let f;if(l===u)f=[e[l].slice(a,s)];else{if(f=e.slice(l,u),a>-1){const d=f[0];typeof d=="string"?f[0]=d.slice(a):f.shift()}s>0&&f.push(e[u].slice(0,s))}return f}function VA(e,r){let l=-1;const a=[];let u;for(;++l<e.length;){const s=e[l];let f;if(typeof s=="string")f=s;else switch(s){case-5:{f="\r";break}case-4:{f=`
114
114
  `;break}case-3:{f=`\r
115
- `;break}case-2:{f=r?" ":" ";break}case-1:{if(!r&&u)continue;f=" ";break}default:f=String.fromCharCode(s)}u=s===-2,i.push(f)}return i.join("")}const yA=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Sw},disable:{null:[]},document:{42:Wt,43:Wt,45:Wt,48:Wt,49:Wt,50:Wt,51:Wt,52:Wt,53:Wt,54:Wt,55:Wt,56:Wt,57:Wt,62:Rg},flow:{35:ww,42:tu,45:[Hg,tu],60:Ow,61:Hg,95:tu,96:Dg,126:Dg},flowInitial:{[-2]:Fc,[-1]:Fc,32:Fc},insideSpan:{null:[$c,cA]},string:{38:_g,92:Og},text:{[-5]:Pc,[-4]:Pc,[-3]:Pc,33:Xw,38:_g,42:$c,60:[QT,Lw],91:Qw,92:[Cw,Og],93:Xc,95:$c,96:uw}},Symbol.toStringTag,{value:"Module"}));function bA(t){const a=zT([yA,...(t||{}).extensions||[]]),i={defined:[],lazy:{},constructs:a,content:u(qT),document:u(YT),flow:u(uA),string:u(fA),text:u(dA)};return i;function u(s){return f;function f(h){return pA(i,s,h)}}}function SA(t){for(;!Ng(t););return t}const Ig=/[\0\t\n\r]/g;function vA(){let t=1,r="",a=!0,i;return u;function u(s,f,h){const m=[];let p,g,y,x,S;for(s=r+(typeof s=="string"?s.toString():new TextDecoder(f||void 0).decode(s)),y=0,r="",a&&(s.charCodeAt(0)===65279&&y++,a=void 0);y<s.length;){if(Ig.lastIndex=y,p=Ig.exec(s),x=p&&p.index!==void 0?p.index:s.length,S=s.charCodeAt(x),!p){r=s.slice(y);break}if(S===10&&y===x&&i)m.push(-3),i=void 0;else switch(i&&(m.push(-5),i=void 0),y<x&&(m.push(s.slice(y,x)),t+=x-y),S){case 0:{m.push(65533),t++;break}case 9:{for(g=Math.ceil(t/4)*4,m.push(-2);t++<g;)m.push(-1);break}case 10:{m.push(-4),t=1;break}default:i=!0,t=1}y=x+1}return h&&(i&&m.push(-5),r&&m.push(r),m.push(null)),m}}const xA=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function EA(t){return t.replace(xA,CA)}function CA(t,r,a){if(r)return r;if(a.charCodeAt(0)===35){const u=a.charCodeAt(1),s=u===120||u===88;return Tg(a.slice(s?2:1),s?16:10)}return Ic(a)||t}const qg={}.hasOwnProperty;function TA(t,r,a){return typeof r!="string"&&(a=r,r=void 0),wA(a)(SA(bA(a).document().write(vA()(t,r,!0))))}function wA(t){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(it),autolinkProtocol:G,autolinkEmail:G,atxHeading:s(Ee),blockQuote:s(de),characterEscape:G,characterReference:G,codeFenced:s(_e),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:s(_e,f),codeText:s(pe,f),codeTextData:G,data:G,codeFlowValue:G,definition:s(me),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:s(se),hardBreakEscape:s(Ye),hardBreakTrailing:s(Ye),htmlFlow:s(je,f),htmlFlowData:G,htmlText:s(je,f),htmlTextData:G,image:s(De),label:f,link:s(it),listItem:s(fn),listItemValue:x,listOrdered:s(vt,y),listUnordered:s(vt),paragraph:s(Bn),reference:k,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:s(Ee),strong:s(dn),thematicBreak:s(Dt)},exit:{atxHeading:m(),atxHeadingSequence:R,autolink:m(),autolinkEmail:Re,autolinkProtocol:xe,blockQuote:m(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:he,characterReference:He,codeFenced:m(B),codeFencedFence:w,codeFencedFenceInfo:S,codeFencedFenceMeta:O,codeFlowValue:E,codeIndented:m(T),codeText:m(ee),codeTextData:E,data:E,definition:m(),definitionDestinationString:z,definitionLabelString:N,definitionTitleString:A,emphasis:m(),hardBreakEscape:m($),hardBreakTrailing:m($),htmlFlow:m(P),htmlFlowData:E,htmlText:m(Q),htmlTextData:E,image:m(ne),label:fe,labelText:W,lineEnding:j,link:m(V),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:ie,resourceDestinationString:v,resourceTitleString:Z,resource:ue,setextHeading:m(te),setextHeadingLineSequence:I,setextHeadingText:M,strong:m(),thematicBreak:m()}};Gg(r,(t||{}).mdastExtensions||[]);const a={};return i;function i(F){let le={type:"root",children:[]};const ce={stack:[le],tokenStack:[],config:r,enter:h,exit:p,buffer:f,resume:g,data:a},we=[];let Ve=-1;for(;++Ve<F.length;)if(F[Ve][1].type==="listOrdered"||F[Ve][1].type==="listUnordered")if(F[Ve][0]==="enter")we.push(Ve);else{const ze=we.pop();Ve=u(F,ze,Ve)}for(Ve=-1;++Ve<F.length;){const ze=r[F[Ve][0]];qg.call(ze,F[Ve][1].type)&&ze[F[Ve][1].type].call(Object.assign({sliceSerialize:F[Ve][2].sliceSerialize},ce),F[Ve][1])}if(ce.tokenStack.length>0){const ze=ce.tokenStack[ce.tokenStack.length-1];(ze[1]||Yg).call(ce,void 0,ze[0])}for(le.position={start:Mr(F.length>0?F[0][1].start:{line:1,column:1,offset:0}),end:Mr(F.length>0?F[F.length-2][1].end:{line:1,column:1,offset:0})},Ve=-1;++Ve<r.transforms.length;)le=r.transforms[Ve](le)||le;return le}function u(F,le,ce){let we=le-1,Ve=-1,ze=!1,tn,Nt,Ot,sl;for(;++we<=ce;){const pt=F[we];switch(pt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{pt[0]==="enter"?Ve++:Ve--,sl=void 0;break}case"lineEndingBlank":{pt[0]==="enter"&&(tn&&!sl&&!Ve&&!Ot&&(Ot=we),sl=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:sl=void 0}if(!Ve&&pt[0]==="enter"&&pt[1].type==="listItemPrefix"||Ve===-1&&pt[0]==="exit"&&(pt[1].type==="listUnordered"||pt[1].type==="listOrdered")){if(tn){let wt=we;for(Nt=void 0;wt--;){const Ln=F[wt];if(Ln[1].type==="lineEnding"||Ln[1].type==="lineEndingBlank"){if(Ln[0]==="exit")continue;Nt&&(F[Nt][1].type="lineEndingBlank",ze=!0),Ln[1].type="lineEnding",Nt=wt}else if(!(Ln[1].type==="linePrefix"||Ln[1].type==="blockQuotePrefix"||Ln[1].type==="blockQuotePrefixWhitespace"||Ln[1].type==="blockQuoteMarker"||Ln[1].type==="listItemIndent"))break}Ot&&(!Nt||Ot<Nt)&&(tn._spread=!0),tn.end=Object.assign({},Nt?F[Nt][1].start:pt[1].end),F.splice(Nt||we,0,["exit",tn,pt[2]]),we++,ce++}if(pt[1].type==="listItemPrefix"){const wt={type:"listItem",_spread:!1,start:Object.assign({},pt[1].start),end:void 0};tn=wt,F.splice(we,0,["enter",wt,pt[2]]),we++,ce++,Ot=void 0,sl=!0}}}return F[le][1]._spread=ze,ce}function s(F,le){return ce;function ce(we){h.call(this,F(we),we),le&&le.call(this,we)}}function f(){this.stack.push({type:"fragment",children:[]})}function h(F,le,ce){this.stack[this.stack.length-1].children.push(F),this.stack.push(F),this.tokenStack.push([le,ce||void 0]),F.position={start:Mr(le.start),end:void 0}}function m(F){return le;function le(ce){F&&F.call(this,ce),p.call(this,ce)}}function p(F,le){const ce=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==F.type&&(le?le.call(this,F,we[0]):(we[1]||Yg).call(this,F,we[0]));else throw new Error("Cannot close `"+F.type+"` ("+Si({start:F.start,end:F.end})+"): it’s not open");ce.position.end=Mr(F.end)}function g(){return DT(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function x(F){if(this.data.expectingFirstListItemValue){const le=this.stack[this.stack.length-2];le.start=Number.parseInt(this.sliceSerialize(F),10),this.data.expectingFirstListItemValue=void 0}}function S(){const F=this.resume(),le=this.stack[this.stack.length-1];le.lang=F}function O(){const F=this.resume(),le=this.stack[this.stack.length-1];le.meta=F}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function B(){const F=this.resume(),le=this.stack[this.stack.length-1];le.value=F.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const F=this.resume(),le=this.stack[this.stack.length-1];le.value=F.replace(/(\r?\n|\r)$/g,"")}function N(F){const le=this.resume(),ce=this.stack[this.stack.length-1];ce.label=le,ce.identifier=Ql(this.sliceSerialize(F)).toLowerCase()}function A(){const F=this.resume(),le=this.stack[this.stack.length-1];le.title=F}function z(){const F=this.resume(),le=this.stack[this.stack.length-1];le.url=F}function R(F){const le=this.stack[this.stack.length-1];if(!le.depth){const ce=this.sliceSerialize(F).length;le.depth=ce}}function M(){this.data.setextHeadingSlurpLineEnding=!0}function I(F){const le=this.stack[this.stack.length-1];le.depth=this.sliceSerialize(F).codePointAt(0)===61?1:2}function te(){this.data.setextHeadingSlurpLineEnding=void 0}function G(F){const ce=this.stack[this.stack.length-1].children;let we=ce[ce.length-1];(!we||we.type!=="text")&&(we=Ne(),we.position={start:Mr(F.start),end:void 0},ce.push(we)),this.stack.push(we)}function E(F){const le=this.stack.pop();le.value+=this.sliceSerialize(F),le.position.end=Mr(F.end)}function j(F){const le=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ce=le.children[le.children.length-1];ce.position.end=Mr(F.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(le.type)&&(G.call(this,F),E.call(this,F))}function $(){this.data.atHardBreak=!0}function P(){const F=this.resume(),le=this.stack[this.stack.length-1];le.value=F}function Q(){const F=this.resume(),le=this.stack[this.stack.length-1];le.value=F}function ee(){const F=this.resume(),le=this.stack[this.stack.length-1];le.value=F}function V(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const le=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=le,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function ne(){const F=this.stack[this.stack.length-1];if(this.data.inReference){const le=this.data.referenceType||"shortcut";F.type+="Reference",F.referenceType=le,delete F.url,delete F.title}else delete F.identifier,delete F.label;this.data.referenceType=void 0}function W(F){const le=this.sliceSerialize(F),ce=this.stack[this.stack.length-2];ce.label=EA(le),ce.identifier=Ql(le).toLowerCase()}function fe(){const F=this.stack[this.stack.length-1],le=this.resume(),ce=this.stack[this.stack.length-1];if(this.data.inReference=!0,ce.type==="link"){const we=F.children;ce.children=we}else ce.alt=le}function v(){const F=this.resume(),le=this.stack[this.stack.length-1];le.url=F}function Z(){const F=this.resume(),le=this.stack[this.stack.length-1];le.title=F}function ue(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function ie(F){const le=this.resume(),ce=this.stack[this.stack.length-1];ce.label=le,ce.identifier=Ql(this.sliceSerialize(F)).toLowerCase(),this.data.referenceType="full"}function ye(F){this.data.characterReferenceType=F.type}function he(F){const le=this.sliceSerialize(F),ce=this.data.characterReferenceType;let we;ce?(we=Tg(le,ce==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=Ic(le);const Ve=this.stack[this.stack.length-1];Ve.value+=we}function He(F){const le=this.stack.pop();le.position.end=Mr(F.end)}function xe(F){E.call(this,F);const le=this.stack[this.stack.length-1];le.url=this.sliceSerialize(F)}function Re(F){E.call(this,F);const le=this.stack[this.stack.length-1];le.url="mailto:"+this.sliceSerialize(F)}function de(){return{type:"blockquote",children:[]}}function _e(){return{type:"code",lang:null,meta:null,value:""}}function pe(){return{type:"inlineCode",value:""}}function me(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function se(){return{type:"emphasis",children:[]}}function Ee(){return{type:"heading",depth:0,children:[]}}function Ye(){return{type:"break"}}function je(){return{type:"html",value:""}}function De(){return{type:"image",title:null,url:"",alt:null}}function it(){return{type:"link",title:null,url:"",children:[]}}function vt(F){return{type:"list",ordered:F.type==="listOrdered",start:null,spread:F._spread,children:[]}}function fn(F){return{type:"listItem",spread:F._spread,checked:null,children:[]}}function Bn(){return{type:"paragraph",children:[]}}function dn(){return{type:"strong",children:[]}}function Ne(){return{type:"text",value:""}}function Dt(){return{type:"thematicBreak"}}}function Mr(t){return{line:t.line,column:t.column,offset:t.offset}}function Gg(t,r){let a=-1;for(;++a<r.length;){const i=r[a];Array.isArray(i)?Gg(t,i):AA(t,i)}}function AA(t,r){let a;for(a in r)if(qg.call(r,a))switch(a){case"canContainEols":{const i=r[a];i&&t[a].push(...i);break}case"transforms":{const i=r[a];i&&t[a].push(...i);break}case"enter":case"exit":{const i=r[a];i&&Object.assign(t[a],i);break}}}function Yg(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+Si({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+Si({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+Si({start:r.start,end:r.end})+") is still open")}function kA(t){const r=this;r.parser=a;function a(i){return TA(i,{...r.data("settings"),...t,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function RA(t,r){const a={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(r),!0)};return t.patch(r,a),t.applyData(r,a)}function OA(t,r){const a={type:"element",tagName:"br",properties:{},children:[]};return t.patch(r,a),[t.applyData(r,a),{type:"text",value:`
116
- `}]}function _A(t,r){const a=r.value?r.value+`
117
- `:"",i={};r.lang&&(i.className=["language-"+r.lang]);let u={type:"element",tagName:"code",properties:i,children:[{type:"text",value:a}]};return r.meta&&(u.data={meta:r.meta}),t.patch(r,u),u=t.applyData(r,u),u={type:"element",tagName:"pre",properties:{},children:[u]},t.patch(r,u),u}function MA(t,r){const a={type:"element",tagName:"del",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function DA(t,r){const a={type:"element",tagName:"em",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function NA(t,r){const a=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=String(r.identifier).toUpperCase(),u=Kl(i.toLowerCase()),s=t.footnoteOrder.indexOf(i);let f,h=t.footnoteCounts.get(i);h===void 0?(h=0,t.footnoteOrder.push(i),f=t.footnoteOrder.length):f=s+1,h+=1,t.footnoteCounts.set(i,h);const m={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+u,id:a+"fnref-"+u+(h>1?"-"+h:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};t.patch(r,m);const p={type:"element",tagName:"sup",properties:{},children:[m]};return t.patch(r,p),t.applyData(r,p)}function zA(t,r){const a={type:"element",tagName:"h"+r.depth,properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function BA(t,r){if(t.options.allowDangerousHtml){const a={type:"raw",value:r.value};return t.patch(r,a),t.applyData(r,a)}}function $g(t,r){const a=r.referenceType;let i="]";if(a==="collapsed"?i+="[]":a==="full"&&(i+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+i}];const u=t.all(r),s=u[0];s&&s.type==="text"?s.value="["+s.value:u.unshift({type:"text",value:"["});const f=u[u.length-1];return f&&f.type==="text"?f.value+=i:u.push({type:"text",value:i}),u}function LA(t,r){const a=String(r.identifier).toUpperCase(),i=t.definitionById.get(a);if(!i)return $g(t,r);const u={src:Kl(i.url||""),alt:r.alt};i.title!==null&&i.title!==void 0&&(u.title=i.title);const s={type:"element",tagName:"img",properties:u,children:[]};return t.patch(r,s),t.applyData(r,s)}function UA(t,r){const a={src:Kl(r.url)};r.alt!==null&&r.alt!==void 0&&(a.alt=r.alt),r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return t.patch(r,i),t.applyData(r,i)}function HA(t,r){const a={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};t.patch(r,a);const i={type:"element",tagName:"code",properties:{},children:[a]};return t.patch(r,i),t.applyData(r,i)}function jA(t,r){const a=String(r.identifier).toUpperCase(),i=t.definitionById.get(a);if(!i)return $g(t,r);const u={href:Kl(i.url||"")};i.title!==null&&i.title!==void 0&&(u.title=i.title);const s={type:"element",tagName:"a",properties:u,children:t.all(r)};return t.patch(r,s),t.applyData(r,s)}function VA(t,r){const a={href:Kl(r.url)};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function IA(t,r,a){const i=t.all(r),u=a?qA(a):Fg(r),s={},f=[];if(typeof r.checked=="boolean"){const g=i[0];let y;g&&g.type==="element"&&g.tagName==="p"?y=g:(y={type:"element",tagName:"p",properties:{},children:[]},i.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let h=-1;for(;++h<i.length;){const g=i[h];(u||h!==0||g.type!=="element"||g.tagName!=="p")&&f.push({type:"text",value:`
118
- `}),g.type==="element"&&g.tagName==="p"&&!u?f.push(...g.children):f.push(g)}const m=i[i.length-1];m&&(u||m.type!=="element"||m.tagName!=="p")&&f.push({type:"text",value:`
119
- `});const p={type:"element",tagName:"li",properties:s,children:f};return t.patch(r,p),t.applyData(r,p)}function qA(t){let r=!1;if(t.type==="list"){r=t.spread||!1;const a=t.children;let i=-1;for(;!r&&++i<a.length;)r=Fg(a[i])}return r}function Fg(t){const r=t.spread;return r??t.children.length>1}function GA(t,r){const a={},i=t.all(r);let u=-1;for(typeof r.start=="number"&&r.start!==1&&(a.start=r.start);++u<i.length;){const f=i[u];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}const s={type:"element",tagName:r.ordered?"ol":"ul",properties:a,children:t.wrap(i,!0)};return t.patch(r,s),t.applyData(r,s)}function YA(t,r){const a={type:"element",tagName:"p",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function $A(t,r){const a={type:"root",children:t.wrap(t.all(r))};return t.patch(r,a),t.applyData(r,a)}function FA(t,r){const a={type:"element",tagName:"strong",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function XA(t,r){const a=t.all(r),i=a.shift(),u=[];if(i){const f={type:"element",tagName:"thead",properties:{},children:t.wrap([i],!0)};t.patch(r.children[0],f),u.push(f)}if(a.length>0){const f={type:"element",tagName:"tbody",properties:{},children:t.wrap(a,!0)},h=Bc(r.children[1]),m=dg(r.children[r.children.length-1]);h&&m&&(f.position={start:h,end:m}),u.push(f)}const s={type:"element",tagName:"table",properties:{},children:t.wrap(u,!0)};return t.patch(r,s),t.applyData(r,s)}function PA(t,r,a){const i=a?a.children:void 0,s=(i?i.indexOf(r):1)===0?"th":"td",f=a&&a.type==="table"?a.align:void 0,h=f?f.length:r.children.length;let m=-1;const p=[];for(;++m<h;){const y=r.children[m],x={},S=f?f[m]:void 0;S&&(x.align=S);let O={type:"element",tagName:s,properties:x,children:[]};y&&(O.children=t.all(y),t.patch(y,O),O=t.applyData(y,O)),p.push(O)}const g={type:"element",tagName:"tr",properties:{},children:t.wrap(p,!0)};return t.patch(r,g),t.applyData(r,g)}function QA(t,r){const a={type:"element",tagName:"td",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}const Xg=9,Pg=32;function KA(t){const r=String(t),a=/\r?\n|\r/g;let i=a.exec(r),u=0;const s=[];for(;i;)s.push(Qg(r.slice(u,i.index),u>0,!0),i[0]),u=i.index+i[0].length,i=a.exec(r);return s.push(Qg(r.slice(u),u>0,!1)),s.join("")}function Qg(t,r,a){let i=0,u=t.length;if(r){let s=t.codePointAt(i);for(;s===Xg||s===Pg;)i++,s=t.codePointAt(i)}if(a){let s=t.codePointAt(u-1);for(;s===Xg||s===Pg;)u--,s=t.codePointAt(u-1)}return u>i?t.slice(i,u):""}function ZA(t,r){const a={type:"text",value:KA(String(r.value))};return t.patch(r,a),t.applyData(r,a)}function JA(t,r){const a={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(r,a),t.applyData(r,a)}const WA={blockquote:RA,break:OA,code:_A,delete:MA,emphasis:DA,footnoteReference:NA,heading:zA,html:BA,imageReference:LA,image:UA,inlineCode:HA,linkReference:jA,link:VA,listItem:IA,list:GA,paragraph:YA,root:$A,strong:FA,table:XA,tableCell:QA,tableRow:PA,text:ZA,thematicBreak:JA,toml:nu,yaml:nu,definition:nu,footnoteDefinition:nu};function nu(){}const Kg=-1,ru=0,lu=1,au=2,Qc=3,Kc=4,Zc=5,Jc=6,Zg=7,Jg=8,Wg=typeof self=="object"?self:globalThis,ek=(t,r)=>{const a=(u,s)=>(t.set(s,u),u),i=u=>{if(t.has(u))return t.get(u);const[s,f]=r[u];switch(s){case ru:case Kg:return a(f,u);case lu:{const h=a([],u);for(const m of f)h.push(i(m));return h}case au:{const h=a({},u);for(const[m,p]of f)h[i(m)]=i(p);return h}case Qc:return a(new Date(f),u);case Kc:{const{source:h,flags:m}=f;return a(new RegExp(h,m),u)}case Zc:{const h=a(new Map,u);for(const[m,p]of f)h.set(i(m),i(p));return h}case Jc:{const h=a(new Set,u);for(const m of f)h.add(i(m));return h}case Zg:{const{name:h,message:m}=f;return a(new Wg[h](m),u)}case Jg:return a(BigInt(f),u);case"BigInt":return a(Object(BigInt(f)),u)}return a(new Wg[s](f),u)};return i},ey=t=>ek(new Map,t)(0),Zl="",{toString:tk}={},{keys:nk}=Object,Ci=t=>{const r=typeof t;if(r!=="object"||!t)return[ru,r];const a=tk.call(t).slice(8,-1);switch(a){case"Array":return[lu,Zl];case"Object":return[au,Zl];case"Date":return[Qc,Zl];case"RegExp":return[Kc,Zl];case"Map":return[Zc,Zl];case"Set":return[Jc,Zl]}return a.includes("Array")?[lu,a]:a.includes("Error")?[Zg,a]:[au,a]},iu=([t,r])=>t===ru&&(r==="function"||r==="symbol"),rk=(t,r,a,i)=>{const u=(f,h)=>{const m=i.push(f)-1;return a.set(h,m),m},s=f=>{if(a.has(f))return a.get(f);let[h,m]=Ci(f);switch(h){case ru:{let g=f;switch(m){case"bigint":h=Jg,g=f.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+m);g=null;break;case"undefined":return u([Kg],f)}return u([h,g],f)}case lu:{if(m)return u([m,[...f]],f);const g=[],y=u([h,g],f);for(const x of f)g.push(s(x));return y}case au:{if(m)switch(m){case"BigInt":return u([m,f.toString()],f);case"Boolean":case"Number":case"String":return u([m,f.valueOf()],f)}if(r&&"toJSON"in f)return s(f.toJSON());const g=[],y=u([h,g],f);for(const x of nk(f))(t||!iu(Ci(f[x])))&&g.push([s(x),s(f[x])]);return y}case Qc:return u([h,f.toISOString()],f);case Kc:{const{source:g,flags:y}=f;return u([h,{source:g,flags:y}],f)}case Zc:{const g=[],y=u([h,g],f);for(const[x,S]of f)(t||!(iu(Ci(x))||iu(Ci(S))))&&g.push([s(x),s(S)]);return y}case Jc:{const g=[],y=u([h,g],f);for(const x of f)(t||!iu(Ci(x)))&&g.push(s(x));return y}}const{message:p}=f;return u([h,{name:m,message:p}],f)};return s},ty=(t,{json:r,lossy:a}={})=>{const i=[];return rk(!(r||a),!!r,new Map,i)(t),i},ou=typeof structuredClone=="function"?(t,r)=>r&&("json"in r||"lossy"in r)?ey(ty(t,r)):structuredClone(t):(t,r)=>ey(ty(t,r));function lk(t,r){const a=[{type:"text",value:"↩"}];return r>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),a}function ak(t,r){return"Back to reference "+(t+1)+(r>1?"-"+r:"")}function ik(t){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",a=t.options.footnoteBackContent||lk,i=t.options.footnoteBackLabel||ak,u=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",f=t.options.footnoteLabelProperties||{className:["sr-only"]},h=[];let m=-1;for(;++m<t.footnoteOrder.length;){const p=t.footnoteById.get(t.footnoteOrder[m]);if(!p)continue;const g=t.all(p),y=String(p.identifier).toUpperCase(),x=Kl(y.toLowerCase());let S=0;const O=[],w=t.footnoteCounts.get(y);for(;w!==void 0&&++S<=w;){O.length>0&&O.push({type:"text",value:" "});let N=typeof a=="string"?a:a(m,S);typeof N=="string"&&(N={type:"text",value:N}),O.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+x+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(m,S),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const B=g[g.length-1];if(B&&B.type==="element"&&B.tagName==="p"){const N=B.children[B.children.length-1];N&&N.type==="text"?N.value+=" ":B.children.push({type:"text",value:" "}),B.children.push(...O)}else g.push(...O);const T={type:"element",tagName:"li",properties:{id:r+"fn-"+x},children:t.wrap(g,!0)};t.patch(p,T),h.push(T)}if(h.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...ou(f),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:`
120
- `},{type:"element",tagName:"ol",properties:{},children:t.wrap(h,!0)},{type:"text",value:`
121
- `}]}}const ny=function(t){if(t==null)return ck;if(typeof t=="function")return uu(t);if(typeof t=="object")return Array.isArray(t)?ok(t):uk(t);if(typeof t=="string")return sk(t);throw new Error("Expected function, string, or object as test")};function ok(t){const r=[];let a=-1;for(;++a<t.length;)r[a]=ny(t[a]);return uu(i);function i(...u){let s=-1;for(;++s<r.length;)if(r[s].apply(this,u))return!0;return!1}}function uk(t){const r=t;return uu(a);function a(i){const u=i;let s;for(s in t)if(u[s]!==r[s])return!1;return!0}}function sk(t){return uu(r);function r(a){return a&&a.type===t}}function uu(t){return r;function r(a,i,u){return!!(fk(a)&&t.call(this,a,typeof i=="number"?i:void 0,u||void 0))}}function ck(){return!0}function fk(t){return t!==null&&typeof t=="object"&&"type"in t}function tO(t){return t}const ry=[],dk=!0,ly=!1,hk="skip";function pk(t,r,a,i){let u;typeof r=="function"&&typeof a!="function"?(i=a,a=r):u=r;const s=ny(u),f=i?-1:1;h(t,void 0,[])();function h(m,p,g){const y=m&&typeof m=="object"?m:{};if(typeof y.type=="string"){const S=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(m.type+(S?"<"+S+">":""))+")"})}return x;function x(){let S=ry,O,w,B;if((!r||s(m,p,g[g.length-1]||void 0))&&(S=mk(a(m,g)),S[0]===ly))return S;if("children"in m&&m.children){const T=m;if(T.children&&S[0]!==hk)for(w=(i?T.children.length:-1)+f,B=g.concat(T);w>-1&&w<T.children.length;){const N=T.children[w];if(O=h(N,w,B)(),O[0]===ly)return O;w=typeof O[1]=="number"?O[1]:w+f}}return S}}}function mk(t){return Array.isArray(t)?t:typeof t=="number"?[dk,t]:t==null?ry:[t]}function ay(t,r,a,i){let u,s,f;typeof r=="function"?(s=void 0,f=r,u=a):(s=r,f=a,u=i),pk(t,s,h,u);function h(m,p){const g=p[p.length-1],y=g?g.children.indexOf(m):void 0;return f(m,y,g)}}const Wc={}.hasOwnProperty,gk={};function yk(t,r){const a=r||gk,i=new Map,u=new Map,s=new Map,f={...WA,...a.handlers},h={all:p,applyData:Sk,definitionById:i,footnoteById:u,footnoteCounts:s,footnoteOrder:[],handlers:f,one:m,options:a,patch:bk,wrap:xk};return ay(t,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const y=g.type==="definition"?i:u,x=String(g.identifier).toUpperCase();y.has(x)||y.set(x,g)}}),h;function m(g,y){const x=g.type,S=h.handlers[x];if(Wc.call(h.handlers,x)&&S)return S(h,g,y);if(h.options.passThrough&&h.options.passThrough.includes(x)){if("children"in g){const{children:w,...B}=g,T=ou(B);return T.children=h.all(g),T}return ou(g)}return(h.options.unknownHandler||vk)(h,g,y)}function p(g){const y=[];if("children"in g){const x=g.children;let S=-1;for(;++S<x.length;){const O=h.one(x[S],g);if(O){if(S&&x[S-1].type==="break"&&(!Array.isArray(O)&&O.type==="text"&&(O.value=iy(O.value)),!Array.isArray(O)&&O.type==="element")){const w=O.children[0];w&&w.type==="text"&&(w.value=iy(w.value))}Array.isArray(O)?y.push(...O):y.push(O)}}}return y}}function bk(t,r){t.position&&(r.position=uT(t))}function Sk(t,r){let a=r;if(t&&t.data){const i=t.data.hName,u=t.data.hChildren,s=t.data.hProperties;if(typeof i=="string")if(a.type==="element")a.tagName=i;else{const f="children"in a?a.children:[a];a={type:"element",tagName:i,properties:{},children:f}}a.type==="element"&&s&&Object.assign(a.properties,ou(s)),"children"in a&&a.children&&u!==null&&u!==void 0&&(a.children=u)}return a}function vk(t,r){const a=r.data||{},i="value"in r&&!(Wc.call(a,"hProperties")||Wc.call(a,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function xk(t,r){const a=[];let i=-1;for(r&&a.push({type:"text",value:`
122
- `});++i<t.length;)i&&a.push({type:"text",value:`
123
- `}),a.push(t[i]);return r&&t.length>0&&a.push({type:"text",value:`
124
- `}),a}function iy(t){let r=0,a=t.charCodeAt(r);for(;a===9||a===32;)r++,a=t.charCodeAt(r);return t.slice(r)}function oy(t,r){const a=yk(t,r),i=a.one(t,void 0),u=ik(a),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return u&&s.children.push({type:"text",value:`
125
- `},u),s}function Ek(t,r){return t&&"run"in t?async function(a,i){const u=oy(a,{file:i,...r});await t.run(u,i)}:function(a,i){return oy(a,{file:i,...t||r})}}function uy(t){if(t)throw t}var ef,sy;function Ck(){if(sy)return ef;sy=1;var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,a=Object.defineProperty,i=Object.getOwnPropertyDescriptor,u=function(p){return typeof Array.isArray=="function"?Array.isArray(p):r.call(p)==="[object Array]"},s=function(p){if(!p||r.call(p)!=="[object Object]")return!1;var g=t.call(p,"constructor"),y=p.constructor&&p.constructor.prototype&&t.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!g&&!y)return!1;var x;for(x in p);return typeof x>"u"||t.call(p,x)},f=function(p,g){a&&g.name==="__proto__"?a(p,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):p[g.name]=g.newValue},h=function(p,g){if(g==="__proto__")if(t.call(p,g)){if(i)return i(p,g).value}else return;return p[g]};return ef=function m(){var p,g,y,x,S,O,w=arguments[0],B=1,T=arguments.length,N=!1;for(typeof w=="boolean"&&(N=w,w=arguments[1]||{},B=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});B<T;++B)if(p=arguments[B],p!=null)for(g in p)y=h(w,g),x=h(p,g),w!==x&&(N&&x&&(s(x)||(S=u(x)))?(S?(S=!1,O=y&&u(y)?y:[]):O=y&&s(y)?y:{},f(w,{name:g,newValue:m(N,O,x)})):typeof x<"u"&&f(w,{name:g,newValue:x}));return w},ef}var Tk=Ck();const tf=el(Tk);function nf(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function wk(){const t=[],r={run:a,use:i};return r;function a(...u){let s=-1;const f=u.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);h(null,...u);function h(m,...p){const g=t[++s];let y=-1;if(m){f(m);return}for(;++y<u.length;)(p[y]===null||p[y]===void 0)&&(p[y]=u[y]);u=p,g?Ak(g,h)(...p):f(null,...p)}}function i(u){if(typeof u!="function")throw new TypeError("Expected `middelware` to be a function, not "+u);return t.push(u),r}}function Ak(t,r){let a;return i;function i(...f){const h=t.length>f.length;let m;h&&f.push(u);try{m=t.apply(this,f)}catch(p){const g=p;if(h&&a)throw g;return u(g)}h||(m&&m.then&&typeof m.then=="function"?m.then(s,u):m instanceof Error?u(m):s(m))}function u(f,...h){a||(a=!0,r(f,...h))}function s(f){u(null,f)}}const Qn={basename:kk,dirname:Rk,extname:Ok,join:_k,sep:"/"};function kk(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Ti(t);let a=0,i=-1,u=t.length,s;if(r===void 0||r.length===0||r.length>t.length){for(;u--;)if(t.codePointAt(u)===47){if(s){a=u+1;break}}else i<0&&(s=!0,i=u+1);return i<0?"":t.slice(a,i)}if(r===t)return"";let f=-1,h=r.length-1;for(;u--;)if(t.codePointAt(u)===47){if(s){a=u+1;break}}else f<0&&(s=!0,f=u+1),h>-1&&(t.codePointAt(u)===r.codePointAt(h--)?h<0&&(i=u):(h=-1,i=f));return a===i?i=f:i<0&&(i=t.length),t.slice(a,i)}function Rk(t){if(Ti(t),t.length===0)return".";let r=-1,a=t.length,i;for(;--a;)if(t.codePointAt(a)===47){if(i){r=a;break}}else i||(i=!0);return r<0?t.codePointAt(0)===47?"/":".":r===1&&t.codePointAt(0)===47?"//":t.slice(0,r)}function Ok(t){Ti(t);let r=t.length,a=-1,i=0,u=-1,s=0,f;for(;r--;){const h=t.codePointAt(r);if(h===47){if(f){i=r+1;break}continue}a<0&&(f=!0,a=r+1),h===46?u<0?u=r:s!==1&&(s=1):u>-1&&(s=-1)}return u<0||a<0||s===0||s===1&&u===a-1&&u===i+1?"":t.slice(u,a)}function _k(...t){let r=-1,a;for(;++r<t.length;)Ti(t[r]),t[r]&&(a=a===void 0?t[r]:a+"/"+t[r]);return a===void 0?".":Mk(a)}function Mk(t){Ti(t);const r=t.codePointAt(0)===47;let a=Dk(t,!r);return a.length===0&&!r&&(a="."),a.length>0&&t.codePointAt(t.length-1)===47&&(a+="/"),r?"/"+a:a}function Dk(t,r){let a="",i=0,u=-1,s=0,f=-1,h,m;for(;++f<=t.length;){if(f<t.length)h=t.codePointAt(f);else{if(h===47)break;h=47}if(h===47){if(!(u===f-1||s===1))if(u!==f-1&&s===2){if(a.length<2||i!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(m=a.lastIndexOf("/"),m!==a.length-1){m<0?(a="",i=0):(a=a.slice(0,m),i=a.length-1-a.lastIndexOf("/")),u=f,s=0;continue}}else if(a.length>0){a="",i=0,u=f,s=0;continue}}r&&(a=a.length>0?a+"/..":"..",i=2)}else a.length>0?a+="/"+t.slice(u+1,f):a=t.slice(u+1,f),i=f-u-1;u=f,s=0}else h===46&&s>-1?s++:s=-1}return a}function Ti(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const Nk={cwd:zk};function zk(){return"/"}function rf(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function Bk(t){if(typeof t=="string")t=new URL(t);else if(!rf(t)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(t.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return Lk(t)}function Lk(t){if(t.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const r=t.pathname;let a=-1;for(;++a<r.length;)if(r.codePointAt(a)===37&&r.codePointAt(a+1)===50){const i=r.codePointAt(a+2);if(i===70||i===102){const u=new TypeError("File URL path must not include encoded / characters");throw u.code="ERR_INVALID_FILE_URL_PATH",u}}return decodeURIComponent(r)}const lf=["history","path","basename","stem","extname","dirname"];class cy{constructor(r){let a;r?rf(r)?a={path:r}:typeof r=="string"||Uk(r)?a={value:r}:a=r:a={},this.cwd="cwd"in a?"":Nk.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<lf.length;){const s=lf[i];s in a&&a[s]!==void 0&&a[s]!==null&&(this[s]=s==="history"?[...a[s]]:a[s])}let u;for(u in a)lf.includes(u)||(this[u]=a[u])}get basename(){return typeof this.path=="string"?Qn.basename(this.path):void 0}set basename(r){of(r,"basename"),af(r,"basename"),this.path=Qn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Qn.dirname(this.path):void 0}set dirname(r){fy(this.basename,"dirname"),this.path=Qn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Qn.extname(this.path):void 0}set extname(r){if(af(r,"extname"),fy(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Qn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){rf(r)&&(r=Bk(r)),of(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Qn.basename(this.path,this.extname):void 0}set stem(r){of(r,"stem"),af(r,"stem"),this.path=Qn.join(this.dirname||"",r+(this.extname||""))}fail(r,a,i){const u=this.message(r,a,i);throw u.fatal=!0,u}info(r,a,i){const u=this.message(r,a,i);return u.fatal=void 0,u}message(r,a,i){const u=new Yt(r,a,i);return this.path&&(u.name=this.path+":"+u.name,u.file=this.path),u.fatal=!1,this.messages.push(u),u}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function af(t,r){if(t&&t.includes(Qn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Qn.sep+"`")}function of(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function fy(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}function Uk(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const Hk=function(t){const i=this.constructor.prototype,u=i[t],s=function(){return u.apply(s,arguments)};return Object.setPrototypeOf(s,i),s},jk={}.hasOwnProperty;class uf extends Hk{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=wk()}copy(){const r=new uf;let a=-1;for(;++a<this.attachers.length;){const i=this.attachers[a];r.use(...i)}return r.data(tf(!0,{},this.namespace)),r}data(r,a){return typeof r=="string"?arguments.length===2?(ff("data",this.frozen),this.namespace[r]=a,this):jk.call(this.namespace,r)&&this.namespace[r]||void 0:r?(ff("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[a,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const u=a.call(r,...i);typeof u=="function"&&this.transformers.use(u)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const a=su(r),i=this.parser||this.Parser;return sf("parse",i),i(String(a),a)}process(r,a){const i=this;return this.freeze(),sf("process",this.parser||this.Parser),cf("process",this.compiler||this.Compiler),a?u(void 0,a):new Promise(u);function u(s,f){const h=su(r),m=i.parse(h);i.run(m,h,function(g,y,x){if(g||!y||!x)return p(g);const S=y,O=i.stringify(S,x);qk(O)?x.value=O:x.result=O,p(g,x)});function p(g,y){g||!y?f(g):s?s(y):a(void 0,y)}}}processSync(r){let a=!1,i;return this.freeze(),sf("processSync",this.parser||this.Parser),cf("processSync",this.compiler||this.Compiler),this.process(r,u),hy("processSync","process",a),i;function u(s,f){a=!0,uy(s),i=f}}run(r,a,i){dy(r),this.freeze();const u=this.transformers;return!i&&typeof a=="function"&&(i=a,a=void 0),i?s(void 0,i):new Promise(s);function s(f,h){const m=su(a);u.run(r,m,p);function p(g,y,x){const S=y||r;g?h(g):f?f(S):i(void 0,S,x)}}}runSync(r,a){let i=!1,u;return this.run(r,a,s),hy("runSync","run",i),u;function s(f,h){uy(f),u=h,i=!0}}stringify(r,a){this.freeze();const i=su(a),u=this.compiler||this.Compiler;return cf("stringify",u),dy(r),u(r,i)}use(r,...a){const i=this.attachers,u=this.namespace;if(ff("use",this.frozen),r!=null)if(typeof r=="function")m(r,a);else if(typeof r=="object")Array.isArray(r)?h(r):f(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function s(p){if(typeof p=="function")m(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[g,...y]=p;m(g,y)}else f(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function f(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");h(p.plugins),p.settings&&(u.settings=tf(!0,u.settings,p.settings))}function h(p){let g=-1;if(p!=null)if(Array.isArray(p))for(;++g<p.length;){const y=p[g];s(y)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,g){let y=-1,x=-1;for(;++y<i.length;)if(i[y][0]===p){x=y;break}if(x===-1)i.push([p,...g]);else if(g.length>0){let[S,...O]=g;const w=i[x][1];nf(w)&&nf(S)&&(S=tf(!0,w,S)),i[x]=[p,S,...O]}}}}const Vk=new uf().freeze();function sf(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function cf(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function ff(t,r){if(r)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function dy(t){if(!nf(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function hy(t,r,a){if(!a)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function su(t){return Ik(t)?t:new cy(t)}function Ik(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function qk(t){return typeof t=="string"||Gk(t)}function Gk(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const Yk="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",py=[],my={allowDangerousHtml:!0},$k=/^(https?|ircs?|mailto|xmpp)$/i,Fk=[{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:"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 Xk(t){const r=t.allowedElements,a=t.allowElement,i=t.children||"",u=t.className,s=t.components,f=t.disallowedElements,h=t.rehypePlugins||py,m=t.remarkPlugins||py,p=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...my}:my,g=t.skipHtml,y=t.unwrapDisallowed,x=t.urlTransform||Pk,S=Vk().use(kA).use(m).use(Ek,p).use(h),O=new cy;typeof i=="string"&&(O.value=i);for(const N of Fk)Object.hasOwn(t,N.from)&&(""+N.from+(N.to?"use `"+N.to+"` instead":"remove it")+Yk+N.id,void 0);const w=S.parse(O);let B=S.runSync(w,O);return u&&(B={type:"element",tagName:"div",properties:{className:u},children:B.type==="root"?B.children:[B]}),ay(B,T),pT(B,{Fragment:ve.Fragment,components:s,ignoreInvalidStyle:!0,jsx:ve.jsx,jsxs:ve.jsxs,passKeys:!0,passNode:!0});function T(N,A,z){if(N.type==="raw"&&z&&typeof A=="number")return g?z.children.splice(A,1):z.children[A]={type:"text",value:N.value},A;if(N.type==="element"){let R;for(R in Vc)if(Object.hasOwn(Vc,R)&&Object.hasOwn(N.properties,R)){const M=N.properties[R],I=Vc[R];(I===null||I.includes(N.tagName))&&(N.properties[R]=x(String(M||""),R,N))}}if(N.type==="element"){let R=r?!r.includes(N.tagName):f?f.includes(N.tagName):!1;if(!R&&a&&typeof A=="number"&&(R=!a(N,A,z)),R&&z&&typeof A=="number")return y&&N.children?z.children.splice(A,1,...N.children):z.children.splice(A,1),A}}}function Pk(t){const r=t.indexOf(":"),a=t.indexOf("?"),i=t.indexOf("#"),u=t.indexOf("/");return r<0||u>-1&&r>u||a>-1&&r>a||i>-1&&r>i||$k.test(t.slice(0,r))?t:""}const Qk=(...t)=>r=>{t.forEach(a=>{typeof a=="function"?a(r):a&&(a.current=r)})},gy=t=>t.scrollHeight-t.clientHeight-t.scrollTop,Kk=t=>{t.scrollTop=t.scrollHeight},Zk=rt.div({overflow:"auto"}),Jk=D.forwardRef(function({children:r,threshold:a=2,className:i},u){const s=D.useRef(null),[f,h]=D.useState(r),m=D.useRef(null);return D.useLayoutEffect(()=>{s.current&&(m.current=gy(s.current)<a,h(r))},[r,a]),D.useLayoutEffect(()=>{if(!s.current)return;const p=gy(s.current)<a;m.current&&!p&&(Kk(s.current),m.current=null)},[f,a]),D.createElement(Zk,{className:i,ref:Qk(s,u)},f)}),yy=rt.span({clipPath:"inset(100%)",clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),Wk={loadingMessages:[{delay:1500,text:"Loading"},{delay:4e3,text:"Still loading"}]},e5=({message:t,isLoading:r,loadingMessages:a=Wk.loadingMessages})=>{var f;const[i,u]=D.useState(-1);D.useEffect(()=>{u(-1)},[r,a]),D.useEffect(()=>{const h=a[i+1];if(!r||!h)return()=>{};const m=setTimeout(()=>{u(i+1)},h.delay);return()=>{clearTimeout(m)}},[r,i,a]);const s=(f=a[i])==null?void 0:f.text;return D.createElement(yy,{"aria-atomic":"true","aria-live":"polite"},r?s:t)};function t5(t){return typeof t.main=="string"}function n5(t,r=[]){if(!t5(t))return!1;for(const a of r)if(!t.hasOwnProperty(a)||typeof t[a]!="string")return!1;return!0}function r5(t=[]){return([,r])=>r&&n5(r,t)}function l5(t){return nl("MuiTypography",t)}Hl("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const a5={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},i5=GE(),o5=t=>{const{align:r,gutterBottom:a,noWrap:i,paragraph:u,variant:s,classes:f}=t,h={root:["root",s,t.align!=="inherit"&&`align${bn(r)}`,a&&"gutterBottom",i&&"noWrap",u&&"paragraph"]};return Ll(h,l5,f)},u5=Fn("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,a.variant&&r[a.variant],a.align!=="inherit"&&r[`align${bn(a.align)}`],a.noWrap&&r.noWrap,a.gutterBottom&&r.gutterBottom,a.paragraph&&r.paragraph]}})(ll(({theme:t})=>{var r;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([a,i])=>a!=="inherit"&&i&&typeof i=="object").map(([a,i])=>({props:{variant:a},style:i})),...Object.entries(t.palette).filter(r5()).map(([a])=>({props:{color:a},style:{color:(t.vars||t).palette[a].main}})),...Object.entries(((r=t.palette)==null?void 0:r.text)||{}).filter(([,a])=>typeof a=="string").map(([a])=>({props:{color:`text${bn(a)}`},style:{color:(t.vars||t).palette.text[a]}})),{props:({ownerState:a})=>a.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:a})=>a.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:a})=>a.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:a})=>a.paragraph,style:{marginBottom:16}}]}})),by={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},df=D.forwardRef(function(r,a){const{color:i,...u}=$l({props:r,name:"MuiTypography"}),s=!a5[i],f=i5({...u,...s&&{color:i}}),{align:h="inherit",className:m,component:p,gutterBottom:g=!1,noWrap:y=!1,paragraph:x=!1,variant:S="body1",variantMapping:O=by,...w}=f,B={...f,align:h,color:i,className:m,component:p,gutterBottom:g,noWrap:y,paragraph:x,variant:S,variantMapping:O},T=p||(x?"p":O[S]||by[S])||"span",N=o5(B);return ve.jsx(u5,{as:T,ref:a,className:on(N.root,m),...w,ownerState:B,style:{...h!=="inherit"&&{"--Typography-textAlign":h},...w.style}})}),en={root:"MitAiChat--root",title:"MitAiChat--title",conversationStarter:"MitAiChat--conversationStarter",messagesContainer:"MitAiChat--messagesContainer",messageRow:"MitAiChat--messageRow",messageRowUser:"MitAiChat--messageRowUser",messageRowAssistant:"MitAiChat--messageRowAssistant",message:"MitAiChat--message",input:"MitAiChat--input"},s5=rt.div({width:"100%",height:"100%",display:"flex",flexDirection:"column"}),c5=rt(dc)(({theme:t})=>({"&&:hover":{backgroundColor:t.custom.colors.red,color:t.custom.colors.white}})),f5=rt.div(({theme:t})=>({display:"flex",alignItems:"center",gap:"8px",color:t.custom.colors.darkGray2,img:{width:"24px",height:"24px"},svg:{fill:t.custom.colors.red,width:"24px",height:"24px"}})),d5=rt(Jk)({display:"flex",flexDirection:"column",flex:1,paddingTop:"14px",paddingBottom:"24px",overflow:"auto",gap:"24px"}),Sy=rt.div({display:"flex",width:"100%",gap:"10px",[`&.${en.messageRowUser}`]:{flexDirection:"row-reverse"},"> *":{minWidth:0},position:"relative"}),vy=rt.div(({theme:t})=>({color:t.custom.colors.darkGray2,backgroundColor:t.custom.colors.white,padding:"12px 16px",...t.typography.body2,"p:first-of-type":{marginTop:0},"p:last-of-type":{marginBottom:0},a:{color:t.custom.colors.red,fontWeight:"normal"},borderRadius:"12px",[`.${en.messageRowAssistant} &`]:{border:`1px solid ${t.custom.colors.lightGray2}`,borderRadius:"0px 8px 8px 8px",svg:{fill:t.custom.colors.silverGrayDark,display:"block"}},[`.${en.messageRowUser} &`]:{borderRadius:"8px 0px 8px 8px",backgroundColor:t.custom.colors.lightGray1}})),h5=rt.div({alignSelf:"flex-end",alignItems:"end",display:"flex",flexDirection:"column",gap:"12px"}),p5=rt.button(({theme:t})=>({border:`1px solid ${t.custom.colors.lightGray2}`,backgroundColor:t.custom.colors.white,padding:"8px 16px",...t.typography.body3,cursor:"pointer",boxSizing:"border-box","&:hover":{color:t.custom.colors.white,backgroundColor:t.custom.colors.silverGrayDark,borderColor:"transparent"},borderRadius:"8px"})),m5=rt(x2)({width:"40px",height:"40px"}),g5=rt(l2)(({theme:t})=>({backgroundColor:t.custom.colors.lightGray1,borderRadius:"8px",border:`1px solid ${t.custom.colors.lightGray2}`})),y5=rt(b2)(({theme:t})=>({fill:t.custom.colors.red})),b5=rt(S2)(({theme:t})=>({fill:t.custom.colors.red})),S5=rt(df)(({theme:t})=>({color:t.custom.colors.silverGrayDark,marginTop:"16px",textAlign:"center"})),v5=rt(({title:t,askTimTitle:r,onClose:a,className:i})=>D.createElement("div",{className:i},r?D.createElement(f5,null,D.createElement(v2,null),D.createElement(df,{variant:"body1"},"Ask",D.createElement("strong",null,"TIM")," ",r)):null,t?D.createElement(D.Fragment,null,D.createElement(m5,null),D.createElement(df,{flex:1,variant:"h5"},t)):null,a?D.createElement(c5,{variant:"tertiary",edge:"rounded",onClick:a,"aria-label":"Close chat"},D.createElement(gm,null)):null))(({theme:t})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0",gap:"16px",color:t.custom.colors.white,borderRadius:"8px 8px 0 0"})),x5=function({chatId:r,className:a,conversationStarters:i,requestOpts:u,initialMessages:s,parseContent:f,srLoadingMessages:h,title:m,askTimTitle:p,onClose:g,ImgComponent:y,placeholder:x="",ref:S,...O}){var Q,ee;const w=D.useRef(null),B=D.useMemo(()=>{const V=Math.random().toString().slice(2);return s.map((ne,W)=>({...ne,id:`initial-${V}-${W}`}))},[s]),{messages:T,input:N,handleInputChange:A,handleSubmit:z,append:R,isLoading:M,stop:I}=jC(u,{initialMessages:B,id:r});D.useImperativeHandle(S,()=>({append:R}),[R]);const te=D.useMemo(()=>{const V=B.map(ne=>ne.id);return T.map(ne=>{if(ne.role==="assistant"&&!V.includes(ne.id)){const W=f?f(ne.content):ne.content;return{...ne,content:W}}return ne})},[f,T,B]),G=te.length===B.length,E=!G&&((Q=te[te.length-1])==null?void 0:Q.role)==="user",j=M&&((ee=te[te.length-1])==null?void 0:ee.role)!=="user",$=()=>{var V;(V=w.current)==null||V.scrollBy({behavior:"instant",top:w.current.scrollHeight})},P=te[te.length-1];return D.createElement(s5,{className:Ja(a,en.root),...O},D.createElement(v5,{title:m,askTimTitle:p,onClose:g,className:Ja(a,en.title)}),D.createElement(d5,{className:en.messagesContainer,ref:w},te.map(V=>D.createElement(Sy,{key:V.id,"data-chat-role":V.role,className:Ja(en.messageRow,{[en.messageRowUser]:V.role==="user",[en.messageRowAssistant]:V.role==="assistant"})},D.createElement(vy,{className:en.message},D.createElement(yy,null,V.role==="user"?"You said: ":"Assistant said: "),D.createElement(Xk,{skipHtml:!0},V.content)))),G?D.createElement(h5,null,i==null?void 0:i.map(V=>D.createElement(p5,{className:en.conversationStarter,key:V.content,onClick:()=>{$(),R({role:"user",content:V.content})}},V.content))):null,E?D.createElement(Sy,{className:Ja(en.messageRow,en.messageRowAssistant),key:"loading"},D.createElement(vy,null,D.createElement(y2,null))):null),D.createElement("form",{onSubmit:V=>{V.preventDefault(),M&&j?I():($(),z(V))}},D.createElement(g5,{fullWidth:!0,size:"chat",className:en.input,placeholder:x,name:"message",sx:{flex:1},value:N,onChange:A,endAdornment:M?D.createElement(rm,{"aria-label":"Stop",onClick:I,disabled:!j},D.createElement(b5,null)):D.createElement(rm,{"aria-label":"Send",type:"submit",disabled:!N,onClick:V=>{$(),z(V)}},D.createElement(y5,null))})),D.createElement(S5,{variant:"body3"},"AI-generated content may be incorrect."),D.createElement(e5,{isLoading:M,loadingMessages:h,message:P.role==="assistant"?P.content:""}))},E5=t=>D.createElement(x5,{key:t.chatId,...t});function C5(t){const r=tl(t);return r.body===t?Ar(t).innerWidth>r.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function wi(t,r){r?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function xy(t){return parseInt(Ar(t).getComputedStyle(t).paddingRight,10)||0}function T5(t){const a=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),i=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return a||i}function Ey(t,r,a,i,u){const s=[r,a,...i];[].forEach.call(t.children,f=>{const h=!s.includes(f),m=!T5(f);h&&m&&wi(f,u)})}function hf(t,r){let a=-1;return t.some((i,u)=>r(i)?(a=u,!0):!1),a}function w5(t,r){const a=[],i=t.container;if(!r.disableScrollLock){if(C5(i)){const f=hv(Ar(i));a.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${xy(i)+f}px`;const h=tl(i).querySelectorAll(".mui-fixed");[].forEach.call(h,m=>{a.push({value:m.style.paddingRight,property:"padding-right",el:m}),m.style.paddingRight=`${xy(m)+f}px`})}let s;if(i.parentNode instanceof DocumentFragment)s=tl(i).body;else{const f=i.parentElement,h=Ar(i);s=(f==null?void 0:f.nodeName)==="HTML"&&h.getComputedStyle(f).overflowY==="scroll"?f:i}a.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{a.forEach(({value:s,el:f,property:h})=>{s?f.style.setProperty(h,s):f.style.removeProperty(h)})}}function A5(t){const r=[];return[].forEach.call(t.children,a=>{a.getAttribute("aria-hidden")==="true"&&r.push(a)}),r}class k5{constructor(){this.modals=[],this.containers=[]}add(r,a){let i=this.modals.indexOf(r);if(i!==-1)return i;i=this.modals.length,this.modals.push(r),r.modalRef&&wi(r.modalRef,!1);const u=A5(a);Ey(a,r.mount,r.modalRef,u,!0);const s=hf(this.containers,f=>f.container===a);return s!==-1?(this.containers[s].modals.push(r),i):(this.containers.push({modals:[r],container:a,restore:null,hiddenSiblings:u}),i)}mount(r,a){const i=hf(this.containers,s=>s.modals.includes(r)),u=this.containers[i];u.restore||(u.restore=w5(u,a))}remove(r,a=!0){const i=this.modals.indexOf(r);if(i===-1)return i;const u=hf(this.containers,f=>f.modals.includes(r)),s=this.containers[u];if(s.modals.splice(s.modals.indexOf(r),1),this.modals.splice(i,1),s.modals.length===0)s.restore&&s.restore(),r.modalRef&&wi(r.modalRef,a),Ey(s.container,r.mount,r.modalRef,s.hiddenSiblings,!1),this.containers.splice(u,1);else{const f=s.modals[s.modals.length-1];f.modalRef&&wi(f.modalRef,!1)}return i}isTopModal(r){return this.modals.length>0&&this.modals[this.modals.length-1]===r}}const R5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function O5(t){const r=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(r)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:r}function _5(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const r=i=>t.ownerDocument.querySelector(`input[type="radio"]${i}`);let a=r(`[name="${t.name}"]:checked`);return a||(a=r(`[name="${t.name}"]`)),a!==t}function M5(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||_5(t))}function D5(t){const r=[],a=[];return Array.from(t.querySelectorAll(R5)).forEach((i,u)=>{const s=O5(i);s===-1||!M5(i)||(s===0?r.push(i):a.push({documentOrder:u,tabIndex:s,node:i}))}),a.sort((i,u)=>i.tabIndex===u.tabIndex?i.documentOrder-u.documentOrder:i.tabIndex-u.tabIndex).map(i=>i.node).concat(r)}function N5(){return!0}function z5(t){const{children:r,disableAutoFocus:a=!1,disableEnforceFocus:i=!1,disableRestoreFocus:u=!1,getTabbable:s=D5,isEnabled:f=N5,open:h}=t,m=D.useRef(!1),p=D.useRef(null),g=D.useRef(null),y=D.useRef(null),x=D.useRef(null),S=D.useRef(!1),O=D.useRef(null),w=nr(No(r),O),B=D.useRef(null);D.useEffect(()=>{!h||!O.current||(S.current=!a)},[a,h]),D.useEffect(()=>{if(!h||!O.current)return;const A=tl(O.current);return O.current.contains(A.activeElement)||(O.current.hasAttribute("tabIndex")||O.current.setAttribute("tabIndex","-1"),S.current&&O.current.focus()),()=>{u||(y.current&&y.current.focus&&(m.current=!0,y.current.focus()),y.current=null)}},[h]),D.useEffect(()=>{if(!h||!O.current)return;const A=tl(O.current),z=I=>{B.current=I,!(i||!f()||I.key!=="Tab")&&A.activeElement===O.current&&I.shiftKey&&(m.current=!0,g.current&&g.current.focus())},R=()=>{var G,E;const I=O.current;if(I===null)return;if(!A.hasFocus()||!f()||m.current){m.current=!1;return}if(I.contains(A.activeElement)||i&&A.activeElement!==p.current&&A.activeElement!==g.current)return;if(A.activeElement!==x.current)x.current=null;else if(x.current!==null)return;if(!S.current)return;let te=[];if((A.activeElement===p.current||A.activeElement===g.current)&&(te=s(O.current)),te.length>0){const j=!!((G=B.current)!=null&&G.shiftKey&&((E=B.current)==null?void 0:E.key)==="Tab"),$=te[0],P=te[te.length-1];typeof $!="string"&&typeof P!="string"&&(j?P.focus():$.focus())}else I.focus()};A.addEventListener("focusin",R),A.addEventListener("keydown",z,!0);const M=setInterval(()=>{A.activeElement&&A.activeElement.tagName==="BODY"&&R()},50);return()=>{clearInterval(M),A.removeEventListener("focusin",R),A.removeEventListener("keydown",z,!0)}},[a,i,u,f,h,s]);const T=A=>{y.current===null&&(y.current=A.relatedTarget),S.current=!0,x.current=A.target;const z=r.props.onFocus;z&&z(A)},N=A=>{y.current===null&&(y.current=A.relatedTarget),S.current=!0};return ve.jsxs(D.Fragment,{children:[ve.jsx("div",{tabIndex:h?0:-1,onFocus:N,ref:p,"data-testid":"sentinelStart"}),D.cloneElement(r,{ref:w,onFocus:T}),ve.jsx("div",{tabIndex:h?0:-1,onFocus:N,ref:g,"data-testid":"sentinelEnd"})]})}var Cy=Oh();const cu=el(Cy);function B5(t){return typeof t=="function"?t():t}const L5=D.forwardRef(function(r,a){const{children:i,container:u,disablePortal:s=!1}=r,[f,h]=D.useState(null),m=nr(D.isValidElement(i)?No(i):null,a);if(Ul(()=>{s||h(B5(u)||document.body)},[u,s]),Ul(()=>{if(f&&!s)return js(a,f),()=>{js(a,null)}},[a,f,s]),s){if(D.isValidElement(i)){const p={ref:m};return D.cloneElement(i,p)}return ve.jsx(D.Fragment,{children:i})}return ve.jsx(D.Fragment,{children:f&&Cy.createPortal(i,f)})});function fu(t,r){const{className:a,elementType:i,ownerState:u,externalForwardedProps:s,getSlotOwnerState:f,internalForwardedProps:h,...m}=r,{component:p,slots:g={[t]:void 0},slotProps:y={[t]:void 0},...x}=s,S=g[t]||i,O=vv(y[t],u),{props:{component:w,...B},internalRef:T}=Sv({className:a,...m,externalForwardedProps:t==="root"?x:void 0,externalSlotProps:O}),N=nr(T,O==null?void 0:O.ref,r.ref),A=f?f(B):{},z={...u,...A},R=t==="root"?w||p:w,M=bv(S,{...t==="root"&&!p&&!g[t]&&h,...t!=="root"&&!g[t]&&h,...B,...R&&{as:R},ref:N},z);return Object.keys(A).forEach(I=>{delete M[I]}),[S,M]}function U5(t,r){if(t==null)return{};var a={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(r.includes(i))continue;a[i]=t[i]}return a}function pf(t,r){return pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,i){return a.__proto__=i,a},pf(t,r)}function H5(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,pf(t,r)}const Ty={disabled:!1},wy=bt.createContext(null);var j5=function(r){return r.scrollTop},Ai="unmounted",ol="exited",ul="entering",Jl="entered",mf="exiting",Kn=function(t){H5(r,t);function r(i,u){var s;s=t.call(this,i,u)||this;var f=u,h=f&&!f.isMounting?i.enter:i.appear,m;return s.appearStatus=null,i.in?h?(m=ol,s.appearStatus=ul):m=Jl:i.unmountOnExit||i.mountOnEnter?m=Ai:m=ol,s.state={status:m},s.nextCallback=null,s}r.getDerivedStateFromProps=function(u,s){var f=u.in;return f&&s.status===Ai?{status:ol}:null};var a=r.prototype;return a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(u){var s=null;if(u!==this.props){var f=this.state.status;this.props.in?f!==ul&&f!==Jl&&(s=ul):(f===ul||f===Jl)&&(s=mf)}this.updateStatus(!1,s)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var u=this.props.timeout,s,f,h;return s=f=h=u,u!=null&&typeof u!="number"&&(s=u.exit,f=u.enter,h=u.appear!==void 0?u.appear:f),{exit:s,enter:f,appear:h}},a.updateStatus=function(u,s){if(u===void 0&&(u=!1),s!==null)if(this.cancelNextCallback(),s===ul){if(this.props.unmountOnExit||this.props.mountOnEnter){var f=this.props.nodeRef?this.props.nodeRef.current:cu.findDOMNode(this);f&&j5(f)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ol&&this.setState({status:Ai})},a.performEnter=function(u){var s=this,f=this.props.enter,h=this.context?this.context.isMounting:u,m=this.props.nodeRef?[h]:[cu.findDOMNode(this),h],p=m[0],g=m[1],y=this.getTimeouts(),x=h?y.appear:y.enter;if(!u&&!f||Ty.disabled){this.safeSetState({status:Jl},function(){s.props.onEntered(p)});return}this.props.onEnter(p,g),this.safeSetState({status:ul},function(){s.props.onEntering(p,g),s.onTransitionEnd(x,function(){s.safeSetState({status:Jl},function(){s.props.onEntered(p,g)})})})},a.performExit=function(){var u=this,s=this.props.exit,f=this.getTimeouts(),h=this.props.nodeRef?void 0:cu.findDOMNode(this);if(!s||Ty.disabled){this.safeSetState({status:ol},function(){u.props.onExited(h)});return}this.props.onExit(h),this.safeSetState({status:mf},function(){u.props.onExiting(h),u.onTransitionEnd(f.exit,function(){u.safeSetState({status:ol},function(){u.props.onExited(h)})})})},a.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(u,s){s=this.setNextCallback(s),this.setState(u,s)},a.setNextCallback=function(u){var s=this,f=!0;return this.nextCallback=function(h){f&&(f=!1,s.nextCallback=null,u(h))},this.nextCallback.cancel=function(){f=!1},this.nextCallback},a.onTransitionEnd=function(u,s){this.setNextCallback(s);var f=this.props.nodeRef?this.props.nodeRef.current:cu.findDOMNode(this),h=u==null&&!this.props.addEndListener;if(!f||h){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var m=this.props.nodeRef?[this.nextCallback]:[f,this.nextCallback],p=m[0],g=m[1];this.props.addEndListener(p,g)}u!=null&&setTimeout(this.nextCallback,u)},a.render=function(){var u=this.state.status;if(u===Ai)return null;var s=this.props,f=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var h=U5(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return bt.createElement(wy.Provider,{value:null},typeof f=="function"?f(u,h):bt.cloneElement(bt.Children.only(f),h))},r}(bt.Component);Kn.contextType=wy,Kn.propTypes={};function Wl(){}Kn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Wl,onEntering:Wl,onEntered:Wl,onExit:Wl,onExiting:Wl,onExited:Wl},Kn.UNMOUNTED=Ai,Kn.EXITED=ol,Kn.ENTERING=ul,Kn.ENTERED=Jl,Kn.EXITING=mf;const Ay=t=>t.scrollTop;function du(t,r){const{timeout:a,easing:i,style:u={}}=t;return{duration:u.transitionDuration??(typeof a=="number"?a:a[r.mode]||0),easing:u.transitionTimingFunction??(typeof i=="object"?i[r.mode]:i),delay:u.transitionDelay}}const V5={entering:{opacity:1},entered:{opacity:1}},I5=D.forwardRef(function(r,a){const i=Po(),u={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:s,appear:f=!0,children:h,easing:m,in:p,onEnter:g,onEntered:y,onEntering:x,onExit:S,onExited:O,onExiting:w,style:B,timeout:T=u,TransitionComponent:N=Kn,...A}=r,z=D.useRef(null),R=nr(z,No(h),a),M=Q=>ee=>{if(Q){const V=z.current;ee===void 0?Q(V):Q(V,ee)}},I=M(x),te=M((Q,ee)=>{Ay(Q);const V=du({style:B,timeout:T,easing:m},{mode:"enter"});Q.style.webkitTransition=i.transitions.create("opacity",V),Q.style.transition=i.transitions.create("opacity",V),g&&g(Q,ee)}),G=M(y),E=M(w),j=M(Q=>{const ee=du({style:B,timeout:T,easing:m},{mode:"exit"});Q.style.webkitTransition=i.transitions.create("opacity",ee),Q.style.transition=i.transitions.create("opacity",ee),S&&S(Q)}),$=M(O),P=Q=>{s&&s(z.current,Q)};return ve.jsx(N,{appear:f,in:p,nodeRef:z,onEnter:te,onEntered:G,onEntering:I,onExit:j,onExited:$,onExiting:E,addEndListener:P,timeout:T,...A,children:(Q,ee)=>D.cloneElement(h,{style:{opacity:0,visibility:Q==="exited"&&!p?"hidden":void 0,...V5[Q],...B,...h.props.style},ref:R,...ee})})});function q5(t){return nl("MuiBackdrop",t)}Hl("MuiBackdrop",["root","invisible"]);const G5=t=>{const{ownerState:r,...a}=t;return a},Y5=t=>{const{classes:r,invisible:a}=t;return Ll({root:["root",a&&"invisible"]},q5,r)},$5=Fn("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,a.invisible&&r.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),F5=D.forwardRef(function(r,a){const i=$l({props:r,name:"MuiBackdrop"}),{children:u,className:s,component:f="div",invisible:h=!1,open:m,components:p={},componentsProps:g={},slotProps:y={},slots:x={},TransitionComponent:S,transitionDuration:O,...w}=i,B={...i,component:f,invisible:h},T=Y5(B),N={transition:S,root:p.Root,...x},A={...g,...y},z={slots:N,slotProps:A},[R,M]=fu("root",{elementType:$5,externalForwardedProps:z,className:on(T.root,s),ownerState:B}),[I,te]=fu("transition",{elementType:I5,externalForwardedProps:z,ownerState:B}),G=G5(te);return ve.jsx(I,{in:m,timeout:O,...w,...G,children:ve.jsx(R,{"aria-hidden":!0,...M,classes:T,ref:a,children:u})})});function X5(t){return typeof t=="function"?t():t}function P5(t){return t?t.props.hasOwnProperty("in"):!1}const hu=new k5;function Q5(t){const{container:r,disableEscapeKeyDown:a=!1,disableScrollLock:i=!1,closeAfterTransition:u=!1,onTransitionEnter:s,onTransitionExited:f,children:h,onClose:m,open:p,rootRef:g}=t,y=D.useRef({}),x=D.useRef(null),S=D.useRef(null),O=nr(S,g),[w,B]=D.useState(!p),T=P5(h);let N=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(N=!1);const A=()=>tl(x.current),z=()=>(y.current.modalRef=S.current,y.current.mount=x.current,y.current),R=()=>{hu.mount(z(),{disableScrollLock:i}),S.current&&(S.current.scrollTop=0)},M=sp(()=>{const ee=X5(r)||A().body;hu.add(z(),ee),S.current&&R()}),I=()=>hu.isTopModal(z()),te=sp(ee=>{x.current=ee,ee&&(p&&I()?R():S.current&&wi(S.current,N))}),G=D.useCallback(()=>{hu.remove(z(),N)},[N]);D.useEffect(()=>()=>{G()},[G]),D.useEffect(()=>{p?M():(!T||!u)&&G()},[p,G,T,u,M]);const E=ee=>V=>{var ne;(ne=ee.onKeyDown)==null||ne.call(ee,V),!(V.key!=="Escape"||V.which===229||!I())&&(a||(V.stopPropagation(),m&&m(V,"escapeKeyDown")))},j=ee=>V=>{var ne;(ne=ee.onClick)==null||ne.call(ee,V),V.target===V.currentTarget&&m&&m(V,"backdropClick")};return{getRootProps:(ee={})=>{const V=fp(t);delete V.onTransitionEnter,delete V.onTransitionExited;const ne={...V,...ee};return{role:"presentation",...ne,onKeyDown:E(ne),ref:O}},getBackdropProps:(ee={})=>{const V=ee;return{"aria-hidden":!0,...V,onClick:j(V),open:p}},getTransitionProps:()=>{const ee=()=>{B(!1),s&&s()},V=()=>{B(!0),f&&f(),u&&G()};return{onEnter:op(ee,h==null?void 0:h.props.onEnter),onExited:op(V,h==null?void 0:h.props.onExited)}},rootRef:O,portalRef:te,isTopModal:I,exited:w,hasTransition:T}}function K5(t){return nl("MuiModal",t)}Hl("MuiModal",["root","hidden","backdrop"]);const Z5=t=>{const{open:r,exited:a,classes:i}=t;return Ll({root:["root",!r&&a&&"hidden"],backdrop:["backdrop"]},K5,i)},J5=Fn("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,!a.open&&a.exited&&r.hidden]}})(ll(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:r})=>!r.open&&r.exited,style:{visibility:"hidden"}}]}))),W5=Fn(F5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,r)=>r.backdrop})({zIndex:-1}),eR=D.forwardRef(function(r,a){const i=$l({name:"MuiModal",props:r}),{BackdropComponent:u=W5,BackdropProps:s,classes:f,className:h,closeAfterTransition:m=!1,children:p,container:g,component:y,components:x={},componentsProps:S={},disableAutoFocus:O=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:B=!1,disablePortal:T=!1,disableRestoreFocus:N=!1,disableScrollLock:A=!1,hideBackdrop:z=!1,keepMounted:R=!1,onBackdropClick:M,onClose:I,onTransitionEnter:te,onTransitionExited:G,open:E,slotProps:j={},slots:$={},theme:P,...Q}=i,ee={...i,closeAfterTransition:m,disableAutoFocus:O,disableEnforceFocus:w,disableEscapeKeyDown:B,disablePortal:T,disableRestoreFocus:N,disableScrollLock:A,hideBackdrop:z,keepMounted:R},{getRootProps:V,getBackdropProps:ne,getTransitionProps:W,portalRef:fe,isTopModal:v,exited:Z,hasTransition:ue}=Q5({...ee,rootRef:a}),k={...ee,exited:Z},ie=Z5(k),ye={};if(p.props.tabIndex===void 0&&(ye.tabIndex="-1"),ue){const{onEnter:pe,onExited:me}=W();ye.onEnter=pe,ye.onExited=me}const he={...Q,slots:{root:x.Root,backdrop:x.Backdrop,...$},slotProps:{...S,...j}},[He,xe]=fu("root",{elementType:J5,externalForwardedProps:he,getSlotProps:V,additionalProps:{ref:a,as:y},ownerState:k,className:on(h,ie==null?void 0:ie.root,!k.open&&k.exited&&(ie==null?void 0:ie.hidden))}),[Re,de]=fu("backdrop",{elementType:u,externalForwardedProps:he,additionalProps:s,getSlotProps:pe=>ne({...pe,onClick:me=>{M&&M(me),pe!=null&&pe.onClick&&pe.onClick(me)}}),className:on(s==null?void 0:s.className,ie==null?void 0:ie.backdrop),ownerState:k}),_e=nr(s==null?void 0:s.ref,de.ref);return!R&&!E&&(!ue||Z)?null:ve.jsx(L5,{ref:fe,container:g,disablePortal:T,children:ve.jsxs(He,{...xe,children:[!z&&u?ve.jsx(Re,{...de,ref:_e}):null,ve.jsx(z5,{disableEnforceFocus:w,disableAutoFocus:O,disableRestoreFocus:N,isEnabled:v,open:E,children:D.cloneElement(p,ye)})]})})});function tR(t,r,a){const i=r.getBoundingClientRect(),u=a&&a.getBoundingClientRect(),s=Ar(r);let f;if(r.fakeTransform)f=r.fakeTransform;else{const p=s.getComputedStyle(r);f=p.getPropertyValue("-webkit-transform")||p.getPropertyValue("transform")}let h=0,m=0;if(f&&f!=="none"&&typeof f=="string"){const p=f.split("(")[1].split(")")[0].split(",");h=parseInt(p[4],10),m=parseInt(p[5],10)}return t==="left"?u?`translateX(${u.right+h-i.left}px)`:`translateX(${s.innerWidth+h-i.left}px)`:t==="right"?u?`translateX(-${i.right-u.left-h}px)`:`translateX(-${i.left+i.width-h}px)`:t==="up"?u?`translateY(${u.bottom+m-i.top}px)`:`translateY(${s.innerHeight+m-i.top}px)`:u?`translateY(-${i.top-u.top+i.height-m}px)`:`translateY(-${i.top+i.height-m}px)`}function nR(t){return typeof t=="function"?t():t}function pu(t,r,a){const i=nR(a),u=tR(t,r,i);u&&(r.style.webkitTransform=u,r.style.transform=u)}const rR=D.forwardRef(function(r,a){const i=Po(),u={enter:i.transitions.easing.easeOut,exit:i.transitions.easing.sharp},s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:f,appear:h=!0,children:m,container:p,direction:g="down",easing:y=u,in:x,onEnter:S,onEntered:O,onEntering:w,onExit:B,onExited:T,onExiting:N,style:A,timeout:z=s,TransitionComponent:R=Kn,...M}=r,I=D.useRef(null),te=nr(No(m),I,a),G=W=>fe=>{W&&(fe===void 0?W(I.current):W(I.current,fe))},E=G((W,fe)=>{pu(g,W,p),Ay(W),S&&S(W,fe)}),j=G((W,fe)=>{const v=du({timeout:z,style:A,easing:y},{mode:"enter"});W.style.webkitTransition=i.transitions.create("-webkit-transform",{...v}),W.style.transition=i.transitions.create("transform",{...v}),W.style.webkitTransform="none",W.style.transform="none",w&&w(W,fe)}),$=G(O),P=G(N),Q=G(W=>{const fe=du({timeout:z,style:A,easing:y},{mode:"exit"});W.style.webkitTransition=i.transitions.create("-webkit-transform",fe),W.style.transition=i.transitions.create("transform",fe),pu(g,W,p),B&&B(W)}),ee=G(W=>{W.style.webkitTransition="",W.style.transition="",T&&T(W)}),V=W=>{f&&f(I.current,W)},ne=D.useCallback(()=>{I.current&&pu(g,I.current,p)},[g,p]);return D.useEffect(()=>{if(x||g==="down"||g==="right")return;const W=up(()=>{I.current&&pu(g,I.current,p)}),fe=Ar(I.current);return fe.addEventListener("resize",W),()=>{W.clear(),fe.removeEventListener("resize",W)}},[g,x,p]),D.useEffect(()=>{x||ne()},[x,ne]),ve.jsx(R,{nodeRef:I,onEnter:E,onEntered:$,onEntering:j,onExit:Q,onExited:ee,onExiting:P,addEndListener:V,appear:h,in:x,timeout:z,...M,children:(W,fe)=>D.cloneElement(m,{ref:te,style:{visibility:W==="exited"&&!x?"hidden":void 0,...A,...m.props.style},...fe})})});function lR(t){return nl("MuiPaper",t)}Hl("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const aR=t=>{const{square:r,elevation:a,variant:i,classes:u}=t,s={root:["root",i,!r&&"rounded",i==="elevation"&&`elevation${a}`]};return Ll(s,lR,u)},iR=Fn("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.root,r[a.variant],!a.square&&r.rounded,a.variant==="elevation"&&r[`elevation${a.elevation}`]]}})(ll(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:r})=>!r.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),oR=D.forwardRef(function(r,a){var S;const i=$l({props:r,name:"MuiPaper"}),u=Po(),{className:s,component:f="div",elevation:h=1,square:m=!1,variant:p="elevation",...g}=i,y={...i,component:f,elevation:h,square:m,variant:p},x=aR(y);return ve.jsx(iR,{as:f,ownerState:y,className:on(x.root,s),ref:a,...g,style:{...p==="elevation"&&{"--Paper-shadow":(u.vars||u).shadows[h],...u.vars&&{"--Paper-overlay":(S=u.vars.overlays)==null?void 0:S[h]},...!u.vars&&u.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ks("#fff",ic(h))}, ${Ks("#fff",ic(h))})`}},...g.style}})});function uR(t){return nl("MuiDrawer",t)}Hl("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const ky=(t,r)=>{const{ownerState:a}=t;return[r.root,(a.variant==="permanent"||a.variant==="persistent")&&r.docked,r.modal]},sR=t=>{const{classes:r,anchor:a,variant:i}=t,u={root:["root"],docked:[(i==="permanent"||i==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${bn(a)}`,i!=="temporary"&&`paperAnchorDocked${bn(a)}`]};return Ll(u,uR,r)},cR=Fn(eR,{name:"MuiDrawer",slot:"Root",overridesResolver:ky})(ll(({theme:t})=>({zIndex:(t.vars||t).zIndex.drawer}))),Ry=Fn("div",{shouldForwardProp:Zp,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:ky})({flex:"0 0 auto"}),fR=Fn(oR,{name:"MuiDrawer",slot:"Paper",overridesResolver:(t,r)=>{const{ownerState:a}=t;return[r.paper,r[`paperAnchor${bn(a.anchor)}`],a.variant!=="temporary"&&r[`paperAnchorDocked${bn(a.anchor)}`]]}})(ll(({theme:t})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:r})=>r.anchor==="left"&&r.variant!=="temporary",style:{borderRight:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:r})=>r.anchor==="top"&&r.variant!=="temporary",style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:r})=>r.anchor==="right"&&r.variant!=="temporary",style:{borderLeft:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:r})=>r.anchor==="bottom"&&r.variant!=="temporary",style:{borderTop:`1px solid ${(t.vars||t).palette.divider}`}}]}))),Oy={left:"right",right:"left",top:"down",bottom:"up"};function dR(t){return["left","right"].includes(t)}function hR({direction:t},r){return t==="rtl"&&dR(r)?Oy[r]:r}const pR=D.forwardRef(function(r,a){const i=$l({props:r,name:"MuiDrawer"}),u=Po(),s=Px(),f={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{anchor:h="left",BackdropProps:m,children:p,className:g,elevation:y=16,hideBackdrop:x=!1,ModalProps:{BackdropProps:S,...O}={},onClose:w,open:B=!1,PaperProps:T={},SlideProps:N,TransitionComponent:A=rR,transitionDuration:z=f,variant:R="temporary",...M}=i,I=D.useRef(!1);D.useEffect(()=>{I.current=!0},[]);const te=hR({direction:s?"rtl":"ltr"},h),E={...i,anchor:h,elevation:y,open:B,variant:R,...M},j=sR(E),$=ve.jsx(fR,{elevation:R==="temporary"?y:0,square:!0,...T,className:on(j.paper,T.className),ownerState:E,children:p});if(R==="permanent")return ve.jsx(Ry,{className:on(j.root,j.docked,g),ownerState:E,ref:a,...M,children:$});const P=ve.jsx(A,{in:B,direction:Oy[te],timeout:z,appear:I.current,...N,children:$});return R==="persistent"?ve.jsx(Ry,{className:on(j.root,j.docked,g),ownerState:E,ref:a,...M,children:P}):ve.jsx(cR,{BackdropProps:{...m,...S,transitionDuration:z},className:on(j.root,j.modal,g),open:B,ownerState:E,onClose:w,hideBackdrop:x,ref:a,...M,...O,children:P})}),mR=({messageOrigin:t,transformBody:r,className:a})=>{const[i,u]=D.useState(!1),[s,f]=D.useState(null);return D.useEffect(()=>{const h=m=>{m.origin===t&&m.data.type==="smoot-design::chat-open"&&(u(!0),f(m.data.payload))};return console.log("Attaching listener"),window.addEventListener("message",h),()=>{window.removeEventListener("message",h)}},[t]),D.createElement(pR,{className:a,PaperProps:{sx:{width:"600px",maxWidth:"100%",boxSizing:"border-box",padding:"24px 40px",".MitAiChat--title":{paddingTop:"0px"}}},anchor:"right",open:i,onClose:()=>u(!1)},s?D.createElement(E5,{...s,requestOpts:{transformBody:r,apiUrl:s==null?void 0:s.apiUrl},onClose:()=>u(!1)}):null)},gR={defaultProps:{disableRipple:!0},styleOverrides:{root:{":focus-visible":{outline:"revert"}}}},Ue={mitRed:"#750014",brightRed:"#FF1423",black:"#000000",white:"#FFFFFF",darkGray2:"#212326",darkGray1:"#40464C",silverGrayDark:"#626A73",silverGray:"#8B959E",silverGrayLight:"#B8C2CC",lightGray2:"#DDE1E6",lightGray1:"#F3F4F8",navGray:"#303337",darkPink:"#750062",pink:"#FF14F0",lightPink:"#FFB3FF",darkPurple:"#3E006B",purple:"#93F",lightPurple:"#BFB3FF",darkBlue:"#002896",blue:"#1966FF",lightBlue:"#99EBFF",darkGreen:"#004D1A",green:"#00AD00",lightGreen:"#AF3",darkRed:"#83192A",red:"#A31F34",lightRed:"#D02E44",orange:"#FAB005",yellow:"#FFEB00"},yR={defaultProps:{size:"medium",color:"default",variant:"outlined",deleteIcon:D.createElement(gm,{"aria-hidden":"true"})},styleOverrides:{root:{borderRadius:"100vh",borderWidth:"1px"},deleteIcon:{"&:hover":{color:"inherit"},"&.MuiChip-deleteIconLarge":{width:"16px",height:"16px"},"&.MuiChip-deleteIconMedium":{width:"14px",height:"14px"},margin:"0 -2px 0 8px",color:"inherit"},icon:{margin:"0 8px 0 -2px",color:"inherit","&.MuiChip-iconLarge":{width:"16px",height:"16px"},"&.MuiChip-iconMedium":{width:"14px",height:"14px"}}},variants:[{props:{size:"medium"},style:({theme:t})=>({...t.typography.body3,boxSizing:"border-box",height:"24px",paddingRight:"12px",paddingLeft:"12px",".MuiChip-label":{paddingLeft:"0px",paddingRight:"0px"}})},{props:{size:"large"},style:({theme:t})=>({...t.typography.body2,height:"32px",paddingLeft:"16px",paddingRight:"16px",".MuiChip-label":{paddingLeft:"0px",paddingRight:"0px"}})},{props:{variant:"outlined"},style:{borderColor:Ue.silverGrayLight,color:Ue.darkGray1,"&.Mui-focusVisible":{backgroundColor:"transparent"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:Ue.darkGray1,borderColor:Ue.silverGrayDark,backgroundColor:"transparent"}}},{props:{variant:"outlinedWhite"},style:{backgroundColor:"white",border:"1px solid",borderColor:Ue.silverGrayLight,color:Ue.darkGray1,"&.Mui-focusVisible":{backgroundColor:"white"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:Ue.darkGray1,borderColor:Ue.silverGrayDark,backgroundColor:"white"}}},{props:{variant:"gray"},style:{backgroundColor:Ue.lightGray2,border:"none",color:Ue.darkGray2,"&.Mui-focusVisible":{backgroundColor:Ue.lightGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:Ue.darkGray1,backgroundColor:Ue.silverGrayLight}}},{props:{variant:"dark"},style:{backgroundColor:Ue.silverGrayDark,border:"none",color:Ue.white,"&.Mui-focusVisible":{backgroundColor:Ue.silverGrayDark},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:Ue.darkGray1}}},{props:{variant:"darker"},style:{backgroundColor:Ue.darkGray2,border:`1px solid ${Ue.darkGray1}`,color:Ue.white,"&.Mui-focusVisible":{backgroundColor:Ue.darkGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:Ue.black,border:`1px solid ${Ue.silverGray}`}}},{props:{variant:"filled"},style:{backgroundColor:Ue.mitRed,border:"none",color:Ue.white,"&.Mui-focusVisible":{backgroundColor:Ue.mitRed},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:Ue.red}}}]},bR={colors:Ue,dimensions:{headerHeight:"72px",headerHeightSm:"60px"}},SR={values:{xs:0,sm:600,md:900,lg:1320,xl:1536}},vR={custom:bR,palette:{primary:{main:Ue.mitRed,light:Ue.lightRed,active:Ue.red,contrastText:Ue.white},secondary:{light:Ue.darkGray2,active:Ue.silverGrayDark,main:Ue.black,contrastText:Ue.white}},shape:{borderRadius:8},spacing:8,typography:am,breakpoints:SR,components:{MuiButtonBase:gR,MuiTypography:c2,MuiMenu:{styleOverrides:{paper:{borderRadius:"4px"}}},MuiAutocomplete:{styleOverrides:{paper:{borderRadius:"4px"},popupIndicator:{paddingRight:0,marginRight:0}}},MuiChip:yR}},xR=(t=>Xo(Kt(vR,t)))(),ER=({children:t,theme:r=xR})=>D.createElement(s2,{theme:r},t),CR=t=>{const r=document.createElement("div");r.id="smoot-chat-drawer-root",document.body.append(r),gS.createRoot(r).render(D.createElement(ER,null,D.createElement(mR,{...t})))};Dl.init=CR,Object.defineProperty(Dl,Symbol.toStringTag,{value:"Module"})});
115
+ `;break}case-2:{f=r?" ":" ";break}case-1:{if(!r&&u)continue;f=" ";break}default:f=String.fromCharCode(s)}u=s===-2,a.push(f)}return a.join("")}const qA=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Gw},disable:{null:[]},document:{42:an,43:an,45:an,48:an,49:an,50:an,51:an,52:an,53:an,54:an,55:an,56:an,57:an,62:Gg},flow:{35:Kw,42:du,45:[ey,du],60:eA,61:ey,95:du,96:Xg,126:Xg},flowInitial:{[-2]:lf,[-1]:lf,32:lf},insideSpan:{null:[rf,BA]},string:{38:Fg,92:Yg},text:{[-5]:of,[-4]:of,[-3]:of,33:bA,38:Fg,42:rf,60:[vw,oA],91:vA,92:[Xw,Yg],93:af,95:rf,96:zw}},Symbol.toStringTag,{value:"Module"}));function $A(e){const l=lw([qA,...(e||{}).extensions||[]]),a={defined:[],lazy:{},constructs:l,content:u(pw),document:u(mw),flow:u(zA),string:u(LA),text:u(UA)};return a;function u(s){return f;function f(d){return HA(a,s,d)}}}function GA(e){for(;!Qg(e););return e}const ry=/[\0\t\n\r]/g;function YA(){let e=1,r="",l=!0,a;return u;function u(s,f,d){const m=[];let h,g,y,v,S;for(s=r+(typeof s=="string"?s.toString():new TextDecoder(f||void 0).decode(s)),y=0,r="",l&&(s.charCodeAt(0)===65279&&y++,l=void 0);y<s.length;){if(ry.lastIndex=y,h=ry.exec(s),v=h&&h.index!==void 0?h.index:s.length,S=s.charCodeAt(v),!h){r=s.slice(y);break}if(S===10&&y===v&&a)m.push(-3),a=void 0;else switch(a&&(m.push(-5),a=void 0),y<v&&(m.push(s.slice(y,v)),e+=v-y),S){case 0:{m.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,m.push(-2);e++<g;)m.push(-1);break}case 10:{m.push(-4),e=1;break}default:a=!0,e=1}y=v+1}return d&&(a&&m.push(-5),r&&m.push(r),m.push(null)),m}}const FA=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function PA(e){return e.replace(FA,XA)}function XA(e,r,l){if(r)return r;if(l.charCodeAt(0)===35){const u=l.charCodeAt(1),s=u===120||u===88;return Ig(l.slice(s?2:1),s?16:10)}return Jc(l)||e}const iy={}.hasOwnProperty;function QA(e,r,l){return typeof r!="string"&&(l=r,r=void 0),KA(l)(GA($A(l).document().write(YA()(e,r,!0))))}function KA(e){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Pe),autolinkProtocol:V,autolinkEmail:V,atxHeading:s(Ee),blockQuote:s(pe),characterEscape:V,characterReference:V,codeFenced:s(De),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:s(De,f),codeText:s(me,f),codeTextData:V,data:V,codeFlowValue:V,definition:s(ge),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:s(fe),hardBreakEscape:s(qe),hardBreakTrailing:s(qe),htmlFlow:s(Le,f),htmlFlowData:V,htmlText:s(Le,f),htmlTextData:V,image:s(Oe),label:f,link:s(Pe),listItem:s(Qt),listItemValue:v,listOrdered:s(ht,y),listUnordered:s(ht),paragraph:s(gn),reference:O,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:s(Ee),strong:s(xe),thematicBreak:s(Rt)},exit:{atxHeading:m(),atxHeadingSequence:A,autolink:m(),autolinkEmail:ke,autolinkProtocol:Ce,blockQuote:m(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:he,characterReference:Be,codeFenced:m(N),codeFencedFence:T,codeFencedFenceInfo:S,codeFencedFenceMeta:R,codeFlowValue:E,codeIndented:m(w),codeText:m(ee),codeTextData:E,data:E,definition:m(),definitionDestinationString:z,definitionLabelString:B,definitionTitleString:k,emphasis:m(),hardBreakEscape:m(Y),hardBreakTrailing:m(Y),htmlFlow:m(F),htmlFlowData:E,htmlText:m(P),htmlTextData:E,image:m(Z),label:ue,labelText:Q,lineEnding:I,link:m($),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:ie,resourceDestinationString:x,resourceTitleString:K,resource:se,setextHeading:m(ne),setextHeadingLineSequence:H,setextHeadingText:_,strong:m(),thematicBreak:m()}};ly(r,(e||{}).mdastExtensions||[]);const l={};return a;function a(X){let le={type:"root",children:[]};const de={stack:[le],tokenStack:[],config:r,enter:d,exit:h,buffer:f,resume:g,data:l},Ae=[];let Ve=-1;for(;++Ve<X.length;)if(X[Ve][1].type==="listOrdered"||X[Ve][1].type==="listUnordered")if(X[Ve][0]==="enter")Ae.push(Ve);else{const Ue=Ae.pop();Ve=u(X,Ue,Ve)}for(Ve=-1;++Ve<X.length;){const Ue=r[X[Ve][0]];iy.call(Ue,X[Ve][1].type)&&Ue[X[Ve][1].type].call(Object.assign({sliceSerialize:X[Ve][2].sliceSerialize},de),X[Ve][1])}if(de.tokenStack.length>0){const Ue=de.tokenStack[de.tokenStack.length-1];(Ue[1]||ay).call(de,void 0,Ue[0])}for(le.position={start:Ir(X.length>0?X[0][1].start:{line:1,column:1,offset:0}),end:Ir(X.length>0?X[X.length-2][1].end:{line:1,column:1,offset:0})},Ve=-1;++Ve<r.transforms.length;)le=r.transforms[Ve](le)||le;return le}function u(X,le,de){let Ae=le-1,Ve=-1,Ue=!1,on,Ut,Nt,gi;for(;++Ae<=de;){const St=X[Ae];switch(St[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{St[0]==="enter"?Ve++:Ve--,gi=void 0;break}case"lineEndingBlank":{St[0]==="enter"&&(on&&!gi&&!Ve&&!Nt&&(Nt=Ae),gi=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:gi=void 0}if(!Ve&&St[0]==="enter"&&St[1].type==="listItemPrefix"||Ve===-1&&St[0]==="exit"&&(St[1].type==="listUnordered"||St[1].type==="listOrdered")){if(on){let Ot=Ae;for(Ut=void 0;Ot--;){const Fn=X[Ot];if(Fn[1].type==="lineEnding"||Fn[1].type==="lineEndingBlank"){if(Fn[0]==="exit")continue;Ut&&(X[Ut][1].type="lineEndingBlank",Ue=!0),Fn[1].type="lineEnding",Ut=Ot}else if(!(Fn[1].type==="linePrefix"||Fn[1].type==="blockQuotePrefix"||Fn[1].type==="blockQuotePrefixWhitespace"||Fn[1].type==="blockQuoteMarker"||Fn[1].type==="listItemIndent"))break}Nt&&(!Ut||Nt<Ut)&&(on._spread=!0),on.end=Object.assign({},Ut?X[Ut][1].start:St[1].end),X.splice(Ut||Ae,0,["exit",on,St[2]]),Ae++,de++}if(St[1].type==="listItemPrefix"){const Ot={type:"listItem",_spread:!1,start:Object.assign({},St[1].start),end:void 0};on=Ot,X.splice(Ae,0,["enter",Ot,St[2]]),Ae++,de++,Nt=void 0,gi=!0}}}return X[le][1]._spread=Ue,de}function s(X,le){return de;function de(Ae){d.call(this,X(Ae),Ae),le&&le.call(this,Ae)}}function f(){this.stack.push({type:"fragment",children:[]})}function d(X,le,de){this.stack[this.stack.length-1].children.push(X),this.stack.push(X),this.tokenStack.push([le,de||void 0]),X.position={start:Ir(le.start),end:void 0}}function m(X){return le;function le(de){X&&X.call(this,de),h.call(this,de)}}function h(X,le){const de=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==X.type&&(le?le.call(this,X,Ae[0]):(Ae[1]||ay).call(this,X,Ae[0]));else throw new Error("Cannot close `"+X.type+"` ("+ka({start:X.start,end:X.end})+"): it’s not open");de.position.end=Ir(X.end)}function g(){return rw(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function v(X){if(this.data.expectingFirstListItemValue){const le=this.stack[this.stack.length-2];le.start=Number.parseInt(this.sliceSerialize(X),10),this.data.expectingFirstListItemValue=void 0}}function S(){const X=this.resume(),le=this.stack[this.stack.length-1];le.lang=X}function R(){const X=this.resume(),le=this.stack[this.stack.length-1];le.meta=X}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function N(){const X=this.resume(),le=this.stack[this.stack.length-1];le.value=X.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const X=this.resume(),le=this.stack[this.stack.length-1];le.value=X.replace(/(\r?\n|\r)$/g,"")}function B(X){const le=this.resume(),de=this.stack[this.stack.length-1];de.label=le,de.identifier=Ji(this.sliceSerialize(X)).toLowerCase()}function k(){const X=this.resume(),le=this.stack[this.stack.length-1];le.title=X}function z(){const X=this.resume(),le=this.stack[this.stack.length-1];le.url=X}function A(X){const le=this.stack[this.stack.length-1];if(!le.depth){const de=this.sliceSerialize(X).length;le.depth=de}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function H(X){const le=this.stack[this.stack.length-1];le.depth=this.sliceSerialize(X).codePointAt(0)===61?1:2}function ne(){this.data.setextHeadingSlurpLineEnding=void 0}function V(X){const de=this.stack[this.stack.length-1].children;let Ae=de[de.length-1];(!Ae||Ae.type!=="text")&&(Ae=ze(),Ae.position={start:Ir(X.start),end:void 0},de.push(Ae)),this.stack.push(Ae)}function E(X){const le=this.stack.pop();le.value+=this.sliceSerialize(X),le.position.end=Ir(X.end)}function I(X){const le=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=le.children[le.children.length-1];de.position.end=Ir(X.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(le.type)&&(V.call(this,X),E.call(this,X))}function Y(){this.data.atHardBreak=!0}function F(){const X=this.resume(),le=this.stack[this.stack.length-1];le.value=X}function P(){const X=this.resume(),le=this.stack[this.stack.length-1];le.value=X}function ee(){const X=this.resume(),le=this.stack[this.stack.length-1];le.value=X}function $(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const le=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=le,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function Z(){const X=this.stack[this.stack.length-1];if(this.data.inReference){const le=this.data.referenceType||"shortcut";X.type+="Reference",X.referenceType=le,delete X.url,delete X.title}else delete X.identifier,delete X.label;this.data.referenceType=void 0}function Q(X){const le=this.sliceSerialize(X),de=this.stack[this.stack.length-2];de.label=PA(le),de.identifier=Ji(le).toLowerCase()}function ue(){const X=this.stack[this.stack.length-1],le=this.resume(),de=this.stack[this.stack.length-1];if(this.data.inReference=!0,de.type==="link"){const Ae=X.children;de.children=Ae}else de.alt=le}function x(){const X=this.resume(),le=this.stack[this.stack.length-1];le.url=X}function K(){const X=this.resume(),le=this.stack[this.stack.length-1];le.title=X}function se(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function ie(X){const le=this.resume(),de=this.stack[this.stack.length-1];de.label=le,de.identifier=Ji(this.sliceSerialize(X)).toLowerCase(),this.data.referenceType="full"}function ye(X){this.data.characterReferenceType=X.type}function he(X){const le=this.sliceSerialize(X),de=this.data.characterReferenceType;let Ae;de?(Ae=Ig(le,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=Jc(le);const Ve=this.stack[this.stack.length-1];Ve.value+=Ae}function Be(X){const le=this.stack.pop();le.position.end=Ir(X.end)}function Ce(X){E.call(this,X);const le=this.stack[this.stack.length-1];le.url=this.sliceSerialize(X)}function ke(X){E.call(this,X);const le=this.stack[this.stack.length-1];le.url="mailto:"+this.sliceSerialize(X)}function pe(){return{type:"blockquote",children:[]}}function De(){return{type:"code",lang:null,meta:null,value:""}}function me(){return{type:"inlineCode",value:""}}function ge(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function fe(){return{type:"emphasis",children:[]}}function Ee(){return{type:"heading",depth:0,children:[]}}function qe(){return{type:"break"}}function Le(){return{type:"html",value:""}}function Oe(){return{type:"image",title:null,url:"",alt:null}}function Pe(){return{type:"link",title:null,url:"",children:[]}}function ht(X){return{type:"list",ordered:X.type==="listOrdered",start:null,spread:X._spread,children:[]}}function Qt(X){return{type:"listItem",spread:X._spread,checked:null,children:[]}}function gn(){return{type:"paragraph",children:[]}}function xe(){return{type:"strong",children:[]}}function ze(){return{type:"text",value:""}}function Rt(){return{type:"thematicBreak"}}}function Ir(e){return{line:e.line,column:e.column,offset:e.offset}}function ly(e,r){let l=-1;for(;++l<r.length;){const a=r[l];Array.isArray(a)?ly(e,a):ZA(e,a)}}function ZA(e,r){let l;for(l in r)if(iy.call(r,l))switch(l){case"canContainEols":{const a=r[l];a&&e[l].push(...a);break}case"transforms":{const a=r[l];a&&e[l].push(...a);break}case"enter":case"exit":{const a=r[l];a&&Object.assign(e[l],a);break}}}function ay(e,r){throw e?new Error("Cannot close `"+e.type+"` ("+ka({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+ka({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+ka({start:r.start,end:r.end})+") is still open")}function WA(e){const r=this;r.parser=l;function l(a){return QA(a,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function JA(e,r){const l={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(r),!0)};return e.patch(r,l),e.applyData(r,l)}function ek(e,r){const l={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,l),[e.applyData(r,l),{type:"text",value:`
116
+ `}]}function tk(e,r){const l=r.value?r.value+`
117
+ `:"",a={};r.lang&&(a.className=["language-"+r.lang]);let u={type:"element",tagName:"code",properties:a,children:[{type:"text",value:l}]};return r.meta&&(u.data={meta:r.meta}),e.patch(r,u),u=e.applyData(r,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(r,u),u}function nk(e,r){const l={type:"element",tagName:"del",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function rk(e,r){const l={type:"element",tagName:"em",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function ik(e,r){const l=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(r.identifier).toUpperCase(),u=el(a.toLowerCase()),s=e.footnoteOrder.indexOf(a);let f,d=e.footnoteCounts.get(a);d===void 0?(d=0,e.footnoteOrder.push(a),f=e.footnoteOrder.length):f=s+1,d+=1,e.footnoteCounts.set(a,d);const m={type:"element",tagName:"a",properties:{href:"#"+l+"fn-"+u,id:l+"fnref-"+u+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};e.patch(r,m);const h={type:"element",tagName:"sup",properties:{},children:[m]};return e.patch(r,h),e.applyData(r,h)}function lk(e,r){const l={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function ak(e,r){if(e.options.allowDangerousHtml){const l={type:"raw",value:r.value};return e.patch(r,l),e.applyData(r,l)}}function oy(e,r){const l=r.referenceType;let a="]";if(l==="collapsed"?a+="[]":l==="full"&&(a+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+a}];const u=e.all(r),s=u[0];s&&s.type==="text"?s.value="["+s.value:u.unshift({type:"text",value:"["});const f=u[u.length-1];return f&&f.type==="text"?f.value+=a:u.push({type:"text",value:a}),u}function ok(e,r){const l=String(r.identifier).toUpperCase(),a=e.definitionById.get(l);if(!a)return oy(e,r);const u={src:el(a.url||""),alt:r.alt};a.title!==null&&a.title!==void 0&&(u.title=a.title);const s={type:"element",tagName:"img",properties:u,children:[]};return e.patch(r,s),e.applyData(r,s)}function uk(e,r){const l={src:el(r.url)};r.alt!==null&&r.alt!==void 0&&(l.alt=r.alt),r.title!==null&&r.title!==void 0&&(l.title=r.title);const a={type:"element",tagName:"img",properties:l,children:[]};return e.patch(r,a),e.applyData(r,a)}function sk(e,r){const l={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,l);const a={type:"element",tagName:"code",properties:{},children:[l]};return e.patch(r,a),e.applyData(r,a)}function ck(e,r){const l=String(r.identifier).toUpperCase(),a=e.definitionById.get(l);if(!a)return oy(e,r);const u={href:el(a.url||"")};a.title!==null&&a.title!==void 0&&(u.title=a.title);const s={type:"element",tagName:"a",properties:u,children:e.all(r)};return e.patch(r,s),e.applyData(r,s)}function fk(e,r){const l={href:el(r.url)};r.title!==null&&r.title!==void 0&&(l.title=r.title);const a={type:"element",tagName:"a",properties:l,children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function dk(e,r,l){const a=e.all(r),u=l?pk(l):uy(r),s={},f=[];if(typeof r.checked=="boolean"){const g=a[0];let y;g&&g.type==="element"&&g.tagName==="p"?y=g:(y={type:"element",tagName:"p",properties:{},children:[]},a.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let d=-1;for(;++d<a.length;){const g=a[d];(u||d!==0||g.type!=="element"||g.tagName!=="p")&&f.push({type:"text",value:`
118
+ `}),g.type==="element"&&g.tagName==="p"&&!u?f.push(...g.children):f.push(g)}const m=a[a.length-1];m&&(u||m.type!=="element"||m.tagName!=="p")&&f.push({type:"text",value:`
119
+ `});const h={type:"element",tagName:"li",properties:s,children:f};return e.patch(r,h),e.applyData(r,h)}function pk(e){let r=!1;if(e.type==="list"){r=e.spread||!1;const l=e.children;let a=-1;for(;!r&&++a<l.length;)r=uy(l[a])}return r}function uy(e){const r=e.spread;return r??e.children.length>1}function hk(e,r){const l={},a=e.all(r);let u=-1;for(typeof r.start=="number"&&r.start!==1&&(l.start=r.start);++u<a.length;){const f=a[u];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){l.className=["contains-task-list"];break}}const s={type:"element",tagName:r.ordered?"ol":"ul",properties:l,children:e.wrap(a,!0)};return e.patch(r,s),e.applyData(r,s)}function mk(e,r){const l={type:"element",tagName:"p",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function gk(e,r){const l={type:"root",children:e.wrap(e.all(r))};return e.patch(r,l),e.applyData(r,l)}function yk(e,r){const l={type:"element",tagName:"strong",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}function bk(e,r){const l=e.all(r),a=l.shift(),u=[];if(a){const f={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(r.children[0],f),u.push(f)}if(l.length>0){const f={type:"element",tagName:"tbody",properties:{},children:e.wrap(l,!0)},d=Pc(r.children[1]),m=Rg(r.children[r.children.length-1]);d&&m&&(f.position={start:d,end:m}),u.push(f)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(u,!0)};return e.patch(r,s),e.applyData(r,s)}function Sk(e,r,l){const a=l?l.children:void 0,s=(a?a.indexOf(r):1)===0?"th":"td",f=l&&l.type==="table"?l.align:void 0,d=f?f.length:r.children.length;let m=-1;const h=[];for(;++m<d;){const y=r.children[m],v={},S=f?f[m]:void 0;S&&(v.align=S);let R={type:"element",tagName:s,properties:v,children:[]};y&&(R.children=e.all(y),e.patch(y,R),R=e.applyData(y,R)),h.push(R)}const g={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(r,g),e.applyData(r,g)}function vk(e,r){const l={type:"element",tagName:"td",properties:{},children:e.all(r)};return e.patch(r,l),e.applyData(r,l)}const sy=9,cy=32;function xk(e){const r=String(e),l=/\r?\n|\r/g;let a=l.exec(r),u=0;const s=[];for(;a;)s.push(fy(r.slice(u,a.index),u>0,!0),a[0]),u=a.index+a[0].length,a=l.exec(r);return s.push(fy(r.slice(u),u>0,!1)),s.join("")}function fy(e,r,l){let a=0,u=e.length;if(r){let s=e.codePointAt(a);for(;s===sy||s===cy;)a++,s=e.codePointAt(a)}if(l){let s=e.codePointAt(u-1);for(;s===sy||s===cy;)u--,s=e.codePointAt(u-1)}return u>a?e.slice(a,u):""}function Ek(e,r){const l={type:"text",value:xk(String(r.value))};return e.patch(r,l),e.applyData(r,l)}function Ck(e,r){const l={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,l),e.applyData(r,l)}const Tk={blockquote:JA,break:ek,code:tk,delete:nk,emphasis:rk,footnoteReference:ik,heading:lk,html:ak,imageReference:ok,image:uk,inlineCode:sk,linkReference:ck,link:fk,listItem:dk,list:hk,paragraph:mk,root:gk,strong:yk,table:bk,tableCell:vk,tableRow:Sk,text:Ek,thematicBreak:Ck,toml:pu,yaml:pu,definition:pu,footnoteDefinition:pu};function pu(){}const dy=-1,hu=0,mu=1,gu=2,uf=3,sf=4,cf=5,ff=6,py=7,hy=8,my=typeof self=="object"?self:globalThis,wk=(e,r)=>{const l=(u,s)=>(e.set(s,u),u),a=u=>{if(e.has(u))return e.get(u);const[s,f]=r[u];switch(s){case hu:case dy:return l(f,u);case mu:{const d=l([],u);for(const m of f)d.push(a(m));return d}case gu:{const d=l({},u);for(const[m,h]of f)d[a(m)]=a(h);return d}case uf:return l(new Date(f),u);case sf:{const{source:d,flags:m}=f;return l(new RegExp(d,m),u)}case cf:{const d=l(new Map,u);for(const[m,h]of f)d.set(a(m),a(h));return d}case ff:{const d=l(new Set,u);for(const m of f)d.add(a(m));return d}case py:{const{name:d,message:m}=f;return l(new my[d](m),u)}case hy:return l(BigInt(f),u);case"BigInt":return l(Object(BigInt(f)),u)}return l(new my[s](f),u)};return a},gy=e=>wk(new Map,e)(0),tl="",{toString:Ak}={},{keys:kk}=Object,_a=e=>{const r=typeof e;if(r!=="object"||!e)return[hu,r];const l=Ak.call(e).slice(8,-1);switch(l){case"Array":return[mu,tl];case"Object":return[gu,tl];case"Date":return[uf,tl];case"RegExp":return[sf,tl];case"Map":return[cf,tl];case"Set":return[ff,tl]}return l.includes("Array")?[mu,l]:l.includes("Error")?[py,l]:[gu,l]},yu=([e,r])=>e===hu&&(r==="function"||r==="symbol"),Rk=(e,r,l,a)=>{const u=(f,d)=>{const m=a.push(f)-1;return l.set(d,m),m},s=f=>{if(l.has(f))return l.get(f);let[d,m]=_a(f);switch(d){case hu:{let g=f;switch(m){case"bigint":d=hy,g=f.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+m);g=null;break;case"undefined":return u([dy],f)}return u([d,g],f)}case mu:{if(m)return u([m,[...f]],f);const g=[],y=u([d,g],f);for(const v of f)g.push(s(v));return y}case gu:{if(m)switch(m){case"BigInt":return u([m,f.toString()],f);case"Boolean":case"Number":case"String":return u([m,f.valueOf()],f)}if(r&&"toJSON"in f)return s(f.toJSON());const g=[],y=u([d,g],f);for(const v of kk(f))(e||!yu(_a(f[v])))&&g.push([s(v),s(f[v])]);return y}case uf:return u([d,f.toISOString()],f);case sf:{const{source:g,flags:y}=f;return u([d,{source:g,flags:y}],f)}case cf:{const g=[],y=u([d,g],f);for(const[v,S]of f)(e||!(yu(_a(v))||yu(_a(S))))&&g.push([s(v),s(S)]);return y}case ff:{const g=[],y=u([d,g],f);for(const v of f)(e||!yu(_a(v)))&&g.push(s(v));return y}}const{message:h}=f;return u([d,{name:m,message:h}],f)};return s},yy=(e,{json:r,lossy:l}={})=>{const a=[];return Rk(!(r||l),!!r,new Map,a)(e),a},bu=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?gy(yy(e,r)):structuredClone(e):(e,r)=>gy(yy(e,r));function Ok(e,r){const l=[{type:"text",value:"↩"}];return r>1&&l.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),l}function Mk(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function _k(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",l=e.options.footnoteBackContent||Ok,a=e.options.footnoteBackLabel||Mk,u=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",f=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let m=-1;for(;++m<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[m]);if(!h)continue;const g=e.all(h),y=String(h.identifier).toUpperCase(),v=el(y.toLowerCase());let S=0;const R=[],T=e.footnoteCounts.get(y);for(;T!==void 0&&++S<=T;){R.length>0&&R.push({type:"text",value:" "});let B=typeof l=="string"?l:l(m,S);typeof B=="string"&&(B={type:"text",value:B}),R.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+v+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(m,S),className:["data-footnote-backref"]},children:Array.isArray(B)?B:[B]})}const N=g[g.length-1];if(N&&N.type==="element"&&N.tagName==="p"){const B=N.children[N.children.length-1];B&&B.type==="text"?B.value+=" ":N.children.push({type:"text",value:" "}),N.children.push(...R)}else g.push(...R);const w={type:"element",tagName:"li",properties:{id:r+"fn-"+v},children:e.wrap(g,!0)};e.patch(h,w),d.push(w)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...bu(f),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:`
120
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
121
+ `}]}}const by=function(e){if(e==null)return Bk;if(typeof e=="function")return Su(e);if(typeof e=="object")return Array.isArray(e)?Dk(e):zk(e);if(typeof e=="string")return Nk(e);throw new Error("Expected function, string, or object as test")};function Dk(e){const r=[];let l=-1;for(;++l<e.length;)r[l]=by(e[l]);return Su(a);function a(...u){let s=-1;for(;++s<r.length;)if(r[s].apply(this,u))return!0;return!1}}function zk(e){const r=e;return Su(l);function l(a){const u=a;let s;for(s in e)if(u[s]!==r[s])return!1;return!0}}function Nk(e){return Su(r);function r(l){return l&&l.type===e}}function Su(e){return r;function r(l,a,u){return!!(Lk(l)&&e.call(this,l,typeof a=="number"?a:void 0,u||void 0))}}function Bk(){return!0}function Lk(e){return e!==null&&typeof e=="object"&&"type"in e}function p6(e){return e}const Sy=[],Uk=!0,vy=!1,jk="skip";function Hk(e,r,l,a){let u;typeof r=="function"&&typeof l!="function"?(a=l,l=r):u=r;const s=by(u),f=a?-1:1;d(e,void 0,[])();function d(m,h,g){const y=m&&typeof m=="object"?m:{};if(typeof y.type=="string"){const S=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(m.type+(S?"<"+S+">":""))+")"})}return v;function v(){let S=Sy,R,T,N;if((!r||s(m,h,g[g.length-1]||void 0))&&(S=Ik(l(m,g)),S[0]===vy))return S;if("children"in m&&m.children){const w=m;if(w.children&&S[0]!==jk)for(T=(a?w.children.length:-1)+f,N=g.concat(w);T>-1&&T<w.children.length;){const B=w.children[T];if(R=d(B,T,N)(),R[0]===vy)return R;T=typeof R[1]=="number"?R[1]:T+f}}return S}}}function Ik(e){return Array.isArray(e)?e:typeof e=="number"?[Uk,e]:e==null?Sy:[e]}function xy(e,r,l,a){let u,s,f;typeof r=="function"?(s=void 0,f=r,u=l):(s=r,f=l,u=a),Hk(e,s,d,u);function d(m,h){const g=h[h.length-1],y=g?g.children.indexOf(m):void 0;return f(m,y,g)}}const df={}.hasOwnProperty,Vk={};function qk(e,r){const l=r||Vk,a=new Map,u=new Map,s=new Map,f={...Tk,...l.handlers},d={all:h,applyData:Gk,definitionById:a,footnoteById:u,footnoteCounts:s,footnoteOrder:[],handlers:f,one:m,options:l,patch:$k,wrap:Fk};return xy(e,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const y=g.type==="definition"?a:u,v=String(g.identifier).toUpperCase();y.has(v)||y.set(v,g)}}),d;function m(g,y){const v=g.type,S=d.handlers[v];if(df.call(d.handlers,v)&&S)return S(d,g,y);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in g){const{children:T,...N}=g,w=bu(N);return w.children=d.all(g),w}return bu(g)}return(d.options.unknownHandler||Yk)(d,g,y)}function h(g){const y=[];if("children"in g){const v=g.children;let S=-1;for(;++S<v.length;){const R=d.one(v[S],g);if(R){if(S&&v[S-1].type==="break"&&(!Array.isArray(R)&&R.type==="text"&&(R.value=Ey(R.value)),!Array.isArray(R)&&R.type==="element")){const T=R.children[0];T&&T.type==="text"&&(T.value=Ey(T.value))}Array.isArray(R)?y.push(...R):y.push(R)}}}return y}}function $k(e,r){e.position&&(r.position=zT(e))}function Gk(e,r){let l=r;if(e&&e.data){const a=e.data.hName,u=e.data.hChildren,s=e.data.hProperties;if(typeof a=="string")if(l.type==="element")l.tagName=a;else{const f="children"in l?l.children:[l];l={type:"element",tagName:a,properties:{},children:f}}l.type==="element"&&s&&Object.assign(l.properties,bu(s)),"children"in l&&l.children&&u!==null&&u!==void 0&&(l.children=u)}return l}function Yk(e,r){const l=r.data||{},a="value"in r&&!(df.call(l,"hProperties")||df.call(l,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:e.all(r)};return e.patch(r,a),e.applyData(r,a)}function Fk(e,r){const l=[];let a=-1;for(r&&l.push({type:"text",value:`
122
+ `});++a<e.length;)a&&l.push({type:"text",value:`
123
+ `}),l.push(e[a]);return r&&e.length>0&&l.push({type:"text",value:`
124
+ `}),l}function Ey(e){let r=0,l=e.charCodeAt(r);for(;l===9||l===32;)r++,l=e.charCodeAt(r);return e.slice(r)}function Cy(e,r){const l=qk(e,r),a=l.one(e,void 0),u=_k(l),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return u&&s.children.push({type:"text",value:`
125
+ `},u),s}function Pk(e,r){return e&&"run"in e?async function(l,a){const u=Cy(l,{file:a,...r});await e.run(u,a)}:function(l,a){return Cy(l,{file:a,...e||r})}}function Ty(e){if(e)throw e}var pf,wy;function Xk(){if(wy)return pf;wy=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,l=Object.defineProperty,a=Object.getOwnPropertyDescriptor,u=function(h){return typeof Array.isArray=="function"?Array.isArray(h):r.call(h)==="[object Array]"},s=function(h){if(!h||r.call(h)!=="[object Object]")return!1;var g=e.call(h,"constructor"),y=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!g&&!y)return!1;var v;for(v in h);return typeof v>"u"||e.call(h,v)},f=function(h,g){l&&g.name==="__proto__"?l(h,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):h[g.name]=g.newValue},d=function(h,g){if(g==="__proto__")if(e.call(h,g)){if(a)return a(h,g).value}else return;return h[g]};return pf=function m(){var h,g,y,v,S,R,T=arguments[0],N=1,w=arguments.length,B=!1;for(typeof T=="boolean"&&(B=T,T=arguments[1]||{},N=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});N<w;++N)if(h=arguments[N],h!=null)for(g in h)y=d(T,g),v=d(h,g),T!==v&&(B&&v&&(s(v)||(S=u(v)))?(S?(S=!1,R=y&&u(y)?y:[]):R=y&&s(y)?y:{},f(T,{name:g,newValue:m(B,R,v)})):typeof v<"u"&&f(T,{name:g,newValue:v}));return T},pf}var Qk=Xk();const hf=Cn(Qk);function mf(e){if(typeof e!="object"||e===null)return!1;const r=Object.getPrototypeOf(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Kk(){const e=[],r={run:l,use:a};return r;function l(...u){let s=-1;const f=u.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);d(null,...u);function d(m,...h){const g=e[++s];let y=-1;if(m){f(m);return}for(;++y<u.length;)(h[y]===null||h[y]===void 0)&&(h[y]=u[y]);u=h,g?Zk(g,d)(...h):f(null,...h)}}function a(u){if(typeof u!="function")throw new TypeError("Expected `middelware` to be a function, not "+u);return e.push(u),r}}function Zk(e,r){let l;return a;function a(...f){const d=e.length>f.length;let m;d&&f.push(u);try{m=e.apply(this,f)}catch(h){const g=h;if(d&&l)throw g;return u(g)}d||(m&&m.then&&typeof m.then=="function"?m.then(s,u):m instanceof Error?u(m):s(m))}function u(f,...d){l||(l=!0,r(f,...d))}function s(f){u(null,f)}}const lr={basename:Wk,dirname:Jk,extname:eR,join:tR,sep:"/"};function Wk(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Da(e);let l=0,a=-1,u=e.length,s;if(r===void 0||r.length===0||r.length>e.length){for(;u--;)if(e.codePointAt(u)===47){if(s){l=u+1;break}}else a<0&&(s=!0,a=u+1);return a<0?"":e.slice(l,a)}if(r===e)return"";let f=-1,d=r.length-1;for(;u--;)if(e.codePointAt(u)===47){if(s){l=u+1;break}}else f<0&&(s=!0,f=u+1),d>-1&&(e.codePointAt(u)===r.codePointAt(d--)?d<0&&(a=u):(d=-1,a=f));return l===a?a=f:a<0&&(a=e.length),e.slice(l,a)}function Jk(e){if(Da(e),e.length===0)return".";let r=-1,l=e.length,a;for(;--l;)if(e.codePointAt(l)===47){if(a){r=l;break}}else a||(a=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function eR(e){Da(e);let r=e.length,l=-1,a=0,u=-1,s=0,f;for(;r--;){const d=e.codePointAt(r);if(d===47){if(f){a=r+1;break}continue}l<0&&(f=!0,l=r+1),d===46?u<0?u=r:s!==1&&(s=1):u>-1&&(s=-1)}return u<0||l<0||s===0||s===1&&u===l-1&&u===a+1?"":e.slice(u,l)}function tR(...e){let r=-1,l;for(;++r<e.length;)Da(e[r]),e[r]&&(l=l===void 0?e[r]:l+"/"+e[r]);return l===void 0?".":nR(l)}function nR(e){Da(e);const r=e.codePointAt(0)===47;let l=rR(e,!r);return l.length===0&&!r&&(l="."),l.length>0&&e.codePointAt(e.length-1)===47&&(l+="/"),r?"/"+l:l}function rR(e,r){let l="",a=0,u=-1,s=0,f=-1,d,m;for(;++f<=e.length;){if(f<e.length)d=e.codePointAt(f);else{if(d===47)break;d=47}if(d===47){if(!(u===f-1||s===1))if(u!==f-1&&s===2){if(l.length<2||a!==2||l.codePointAt(l.length-1)!==46||l.codePointAt(l.length-2)!==46){if(l.length>2){if(m=l.lastIndexOf("/"),m!==l.length-1){m<0?(l="",a=0):(l=l.slice(0,m),a=l.length-1-l.lastIndexOf("/")),u=f,s=0;continue}}else if(l.length>0){l="",a=0,u=f,s=0;continue}}r&&(l=l.length>0?l+"/..":"..",a=2)}else l.length>0?l+="/"+e.slice(u+1,f):l=e.slice(u+1,f),a=f-u-1;u=f,s=0}else d===46&&s>-1?s++:s=-1}return l}function Da(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const iR={cwd:lR};function lR(){return"/"}function gf(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function aR(e){if(typeof e=="string")e=new URL(e);else if(!gf(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return oR(e)}function oR(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const r=e.pathname;let l=-1;for(;++l<r.length;)if(r.codePointAt(l)===37&&r.codePointAt(l+1)===50){const a=r.codePointAt(l+2);if(a===70||a===102){const u=new TypeError("File URL path must not include encoded / characters");throw u.code="ERR_INVALID_FILE_URL_PATH",u}}return decodeURIComponent(r)}const yf=["history","path","basename","stem","extname","dirname"];class Ay{constructor(r){let l;r?gf(r)?l={path:r}:typeof r=="string"||uR(r)?l={value:r}:l=r:l={},this.cwd="cwd"in l?"":iR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<yf.length;){const s=yf[a];s in l&&l[s]!==void 0&&l[s]!==null&&(this[s]=s==="history"?[...l[s]]:l[s])}let u;for(u in l)yf.includes(u)||(this[u]=l[u])}get basename(){return typeof this.path=="string"?lr.basename(this.path):void 0}set basename(r){Sf(r,"basename"),bf(r,"basename"),this.path=lr.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?lr.dirname(this.path):void 0}set dirname(r){ky(this.basename,"dirname"),this.path=lr.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?lr.extname(this.path):void 0}set extname(r){if(bf(r,"extname"),ky(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=lr.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){gf(r)&&(r=aR(r)),Sf(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?lr.basename(this.path,this.extname):void 0}set stem(r){Sf(r,"stem"),bf(r,"stem"),this.path=lr.join(this.dirname||"",r+(this.extname||""))}fail(r,l,a){const u=this.message(r,l,a);throw u.fatal=!0,u}info(r,l,a){const u=this.message(r,l,a);return u.fatal=void 0,u}message(r,l,a){const u=new Xt(r,l,a);return this.path&&(u.name=this.path+":"+u.name,u.file=this.path),u.fatal=!1,this.messages.push(u),u}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function bf(e,r){if(e&&e.includes(lr.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+lr.sep+"`")}function Sf(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function ky(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function uR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const sR=function(e){const a=this.constructor.prototype,u=a[e],s=function(){return u.apply(s,arguments)};return Object.setPrototypeOf(s,a),s},cR={}.hasOwnProperty;class vf extends sR{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=Kk()}copy(){const r=new vf;let l=-1;for(;++l<this.attachers.length;){const a=this.attachers[l];r.use(...a)}return r.data(hf(!0,{},this.namespace)),r}data(r,l){return typeof r=="string"?arguments.length===2?(Cf("data",this.frozen),this.namespace[r]=l,this):cR.call(this.namespace,r)&&this.namespace[r]||void 0:r?(Cf("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[l,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const u=l.call(r,...a);typeof u=="function"&&this.transformers.use(u)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const l=vu(r),a=this.parser||this.Parser;return xf("parse",a),a(String(l),l)}process(r,l){const a=this;return this.freeze(),xf("process",this.parser||this.Parser),Ef("process",this.compiler||this.Compiler),l?u(void 0,l):new Promise(u);function u(s,f){const d=vu(r),m=a.parse(d);a.run(m,d,function(g,y,v){if(g||!y||!v)return h(g);const S=y,R=a.stringify(S,v);pR(R)?v.value=R:v.result=R,h(g,v)});function h(g,y){g||!y?f(g):s?s(y):l(void 0,y)}}}processSync(r){let l=!1,a;return this.freeze(),xf("processSync",this.parser||this.Parser),Ef("processSync",this.compiler||this.Compiler),this.process(r,u),Oy("processSync","process",l),a;function u(s,f){l=!0,Ty(s),a=f}}run(r,l,a){Ry(r),this.freeze();const u=this.transformers;return!a&&typeof l=="function"&&(a=l,l=void 0),a?s(void 0,a):new Promise(s);function s(f,d){const m=vu(l);u.run(r,m,h);function h(g,y,v){const S=y||r;g?d(g):f?f(S):a(void 0,S,v)}}}runSync(r,l){let a=!1,u;return this.run(r,l,s),Oy("runSync","run",a),u;function s(f,d){Ty(f),u=d,a=!0}}stringify(r,l){this.freeze();const a=vu(l),u=this.compiler||this.Compiler;return Ef("stringify",u),Ry(r),u(r,a)}use(r,...l){const a=this.attachers,u=this.namespace;if(Cf("use",this.frozen),r!=null)if(typeof r=="function")m(r,l);else if(typeof r=="object")Array.isArray(r)?d(r):f(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function s(h){if(typeof h=="function")m(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[g,...y]=h;m(g,y)}else f(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function f(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(h.plugins),h.settings&&(u.settings=hf(!0,u.settings,h.settings))}function d(h){let g=-1;if(h!=null)if(Array.isArray(h))for(;++g<h.length;){const y=h[g];s(y)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function m(h,g){let y=-1,v=-1;for(;++y<a.length;)if(a[y][0]===h){v=y;break}if(v===-1)a.push([h,...g]);else if(g.length>0){let[S,...R]=g;const T=a[v][1];mf(T)&&mf(S)&&(S=hf(!0,T,S)),a[v]=[h,S,...R]}}}}const fR=new vf().freeze();function xf(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ef(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Cf(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ry(e){if(!mf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Oy(e,r,l){if(!l)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function vu(e){return dR(e)?e:new Ay(e)}function dR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function pR(e){return typeof e=="string"||hR(e)}function hR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const mR="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",My=[],_y={allowDangerousHtml:!0},gR=/^(https?|ircs?|mailto|xmpp)$/i,yR=[{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:"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 bR(e){const r=e.allowedElements,l=e.allowElement,a=e.children||"",u=e.className,s=e.components,f=e.disallowedElements,d=e.rehypePlugins||My,m=e.remarkPlugins||My,h=e.remarkRehypeOptions?{...e.remarkRehypeOptions,..._y}:_y,g=e.skipHtml,y=e.unwrapDisallowed,v=e.urlTransform||SR,S=fR().use(WA).use(m).use(Pk,h).use(d),R=new Ay;typeof a=="string"&&(R.value=a);for(const B of yR)Object.hasOwn(e,B.from)&&(""+B.from+(B.to?"use `"+B.to+"` instead":"remove it")+mR+B.id,void 0);const T=S.parse(R);let N=S.runSync(T,R);return u&&(N={type:"element",tagName:"div",properties:{className:u},children:N.type==="root"?N.children:[N]}),xy(N,w),HT(N,{Fragment:ce.Fragment,components:s,ignoreInvalidStyle:!0,jsx:ce.jsx,jsxs:ce.jsxs,passKeys:!0,passNode:!0});function w(B,k,z){if(B.type==="raw"&&z&&typeof k=="number")return g?z.children.splice(k,1):z.children[k]={type:"text",value:B.value},k;if(B.type==="element"){let A;for(A in Wc)if(Object.hasOwn(Wc,A)&&Object.hasOwn(B.properties,A)){const _=B.properties[A],H=Wc[A];(H===null||H.includes(B.tagName))&&(B.properties[A]=v(String(_||""),A,B))}}if(B.type==="element"){let A=r?!r.includes(B.tagName):f?f.includes(B.tagName):!1;if(!A&&l&&typeof k=="number"&&(A=!l(B,k,z)),A&&z&&typeof k=="number")return y&&B.children?z.children.splice(k,1,...B.children):z.children.splice(k,1),k}}}function SR(e){const r=e.indexOf(":"),l=e.indexOf("?"),a=e.indexOf("#"),u=e.indexOf("/");return r<0||u>-1&&r>u||l>-1&&r>l||a>-1&&r>a||gR.test(e.slice(0,r))?e:""}const vR=(...e)=>r=>{e.forEach(l=>{typeof l=="function"?l(r):l&&(l.current=r)})},Dy=e=>e.scrollHeight-e.clientHeight-e.scrollTop,xR=e=>{e.scrollTop=e.scrollHeight},ER=et.div({overflow:"auto"}),CR=M.forwardRef(function({children:r,threshold:l=2,className:a},u){const s=M.useRef(null),[f,d]=M.useState(r),m=M.useRef(null);return M.useLayoutEffect(()=>{s.current&&(m.current=Dy(s.current)<l,d(r))},[r,l]),M.useLayoutEffect(()=>{if(!s.current)return;const h=Dy(s.current)<l;m.current&&!h&&(xR(s.current),m.current=null)},[f,l]),M.createElement(ER,{className:a,ref:vR(s,u)},f)}),zy=et.span({clipPath:"inset(100%)",clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),TR={loadingMessages:[{delay:1500,text:"Loading"},{delay:4e3,text:"Still loading"}]},wR=({message:e,isLoading:r,loadingMessages:l=TR.loadingMessages})=>{var f;const[a,u]=M.useState(-1);M.useEffect(()=>{u(-1)},[r,l]),M.useEffect(()=>{const d=l[a+1];if(!r||!d)return()=>{};const m=setTimeout(()=>{u(a+1)},d.delay);return()=>{clearTimeout(m)}},[r,a,l]);const s=(f=l[a])==null?void 0:f.text;return M.createElement(zy,{"aria-atomic":"true","aria-live":"polite"},r?s:e)};function AR(e){return typeof e.main=="string"}function kR(e,r=[]){if(!AR(e))return!1;for(const l of r)if(!e.hasOwnProperty(l)||typeof e[l]!="string")return!1;return!0}function nl(e=[]){return([,r])=>r&&kR(r,e)}function RR(e){return qn("MuiTypography",e)}$n("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const OR={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},MR=h2(),_R=e=>{const{align:r,gutterBottom:l,noWrap:a,paragraph:u,variant:s,classes:f}=e,d={root:["root",s,e.align!=="inherit"&&`align${dt(r)}`,l&&"gutterBottom",a&&"noWrap",u&&"paragraph"]};return er(d,RR,f)},DR=zt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:l}=e;return[r.root,l.variant&&r[l.variant],l.align!=="inherit"&&r[`align${dt(l.align)}`],l.noWrap&&r.noWrap,l.gutterBottom&&r.gutterBottom,l.paragraph&&r.paragraph]}})(Gn(({theme:e})=>{var r;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([l,a])=>l!=="inherit"&&a&&typeof a=="object").map(([l,a])=>({props:{variant:l},style:a})),...Object.entries(e.palette).filter(nl()).map(([l])=>({props:{color:l},style:{color:(e.vars||e).palette[l].main}})),...Object.entries(((r=e.palette)==null?void 0:r.text)||{}).filter(([,l])=>typeof l=="string").map(([l])=>({props:{color:`text${dt(l)}`},style:{color:(e.vars||e).palette.text[l]}})),{props:({ownerState:l})=>l.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:l})=>l.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:l})=>l.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:l})=>l.paragraph,style:{marginBottom:16}}]}})),Ny={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Tf=M.forwardRef(function(r,l){const{color:a,...u}=Yn({props:r,name:"MuiTypography"}),s=!OR[a],f=MR({...u,...s&&{color:a}}),{align:d="inherit",className:m,component:h,gutterBottom:g=!1,noWrap:y=!1,paragraph:v=!1,variant:S="body1",variantMapping:R=Ny,...T}=f,N={...f,align:d,color:a,className:m,component:h,gutterBottom:g,noWrap:y,paragraph:v,variant:S,variantMapping:R},w=h||(v?"p":R[S]||Ny[S])||"span",B=_R(N);return ce.jsx(DR,{as:w,ref:l,className:at(B.root,m),...T,ownerState:N,style:{...d!=="inherit"&&{"--Typography-textAlign":d},...T.style}})});function rl(e,r){const{className:l,elementType:a,ownerState:u,externalForwardedProps:s,getSlotOwnerState:f,internalForwardedProps:d,...m}=r,{component:h,slots:g={[e]:void 0},slotProps:y={[e]:void 0},...v}=s,S=g[e]||a,R=Yv(y[e],u),{props:{component:T,...N},internalRef:w}=Gv({className:l,...m,externalForwardedProps:e==="root"?v:void 0,externalSlotProps:R}),B=Vn(w,R==null?void 0:R.ref,r.ref),k=f?f(N):{},z={...u,...k},A=e==="root"?T||h:T,_=$v(S,{...e==="root"&&!h&&!g[e]&&d,...e!=="root"&&!g[e]&&d,...N,...A&&{as:A},ref:B},z);return Object.keys(k).forEach(H=>{delete _[H]}),[S,_]}function zR(e){return qn("MuiPaper",e)}$n("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const NR=e=>{const{square:r,elevation:l,variant:a,classes:u}=e,s={root:["root",a,!r&&"rounded",a==="elevation"&&`elevation${l}`]};return er(s,zR,u)},BR=zt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:l}=e;return[r.root,r[l.variant],!l.square&&r.rounded,l.variant==="elevation"&&r[`elevation${l.elevation}`]]}})(Gn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:r})=>!r.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),By=M.forwardRef(function(r,l){var S;const a=Yn({props:r,name:"MuiPaper"}),u=lu(),{className:s,component:f="div",elevation:d=1,square:m=!1,variant:h="elevation",...g}=a,y={...a,component:f,elevation:d,square:m,variant:h},v=NR(y);return ce.jsx(BR,{as:f,ownerState:y,className:at(v.root,s),ref:l,...g,style:{...h==="elevation"&&{"--Paper-shadow":(u.vars||u).shadows[d],...u.vars&&{"--Paper-overlay":(S=u.vars.overlays)==null?void 0:S[d]},...!u.vars&&u.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ea("#fff",bc(d))}, ${ea("#fff",bc(d))})`}},...g.style}})});function LR(e){return qn("MuiAlert",e)}const Ly=$n("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);class xu{constructor(){Do(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new xu}static use(){const r=Th(xu.create).current,[l,a]=M.useState(!1);return r.shouldMount=l,r.setShouldMount=a,M.useEffect(r.mountEffect,[l]),r}mount(){return this.mounted||(this.mounted=jR(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...r){this.mount().then(()=>{var l;return(l=this.ref.current)==null?void 0:l.start(...r)})}stop(...r){this.mount().then(()=>{var l;return(l=this.ref.current)==null?void 0:l.stop(...r)})}pulsate(...r){this.mount().then(()=>{var l;return(l=this.ref.current)==null?void 0:l.pulsate(...r)})}}function UR(){return xu.use()}function jR(){let e,r;const l=new Promise((a,u)=>{e=a,r=u});return l.resolve=e,l.reject=r,l}function Uy(e,r){if(e==null)return{};var l={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(r.includes(a))continue;l[a]=e[a]}return l}function wf(e,r){return wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,a){return l.__proto__=a,l},wf(e,r)}function jy(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,wf(e,r)}var Hy=Gp();const Eu=Cn(Hy),Iy={disabled:!1},Cu=ft.createContext(null);var HR=function(r){return r.scrollTop},za="unmounted",pi="exited",hi="entering",il="entered",Af="exiting",ar=function(e){jy(r,e);function r(a,u){var s;s=e.call(this,a,u)||this;var f=u,d=f&&!f.isMounting?a.enter:a.appear,m;return s.appearStatus=null,a.in?d?(m=pi,s.appearStatus=hi):m=il:a.unmountOnExit||a.mountOnEnter?m=za:m=pi,s.state={status:m},s.nextCallback=null,s}r.getDerivedStateFromProps=function(u,s){var f=u.in;return f&&s.status===za?{status:pi}:null};var l=r.prototype;return l.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},l.componentDidUpdate=function(u){var s=null;if(u!==this.props){var f=this.state.status;this.props.in?f!==hi&&f!==il&&(s=hi):(f===hi||f===il)&&(s=Af)}this.updateStatus(!1,s)},l.componentWillUnmount=function(){this.cancelNextCallback()},l.getTimeouts=function(){var u=this.props.timeout,s,f,d;return s=f=d=u,u!=null&&typeof u!="number"&&(s=u.exit,f=u.enter,d=u.appear!==void 0?u.appear:f),{exit:s,enter:f,appear:d}},l.updateStatus=function(u,s){if(u===void 0&&(u=!1),s!==null)if(this.cancelNextCallback(),s===hi){if(this.props.unmountOnExit||this.props.mountOnEnter){var f=this.props.nodeRef?this.props.nodeRef.current:Eu.findDOMNode(this);f&&HR(f)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===pi&&this.setState({status:za})},l.performEnter=function(u){var s=this,f=this.props.enter,d=this.context?this.context.isMounting:u,m=this.props.nodeRef?[d]:[Eu.findDOMNode(this),d],h=m[0],g=m[1],y=this.getTimeouts(),v=d?y.appear:y.enter;if(!u&&!f||Iy.disabled){this.safeSetState({status:il},function(){s.props.onEntered(h)});return}this.props.onEnter(h,g),this.safeSetState({status:hi},function(){s.props.onEntering(h,g),s.onTransitionEnd(v,function(){s.safeSetState({status:il},function(){s.props.onEntered(h,g)})})})},l.performExit=function(){var u=this,s=this.props.exit,f=this.getTimeouts(),d=this.props.nodeRef?void 0:Eu.findDOMNode(this);if(!s||Iy.disabled){this.safeSetState({status:pi},function(){u.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:Af},function(){u.props.onExiting(d),u.onTransitionEnd(f.exit,function(){u.safeSetState({status:pi},function(){u.props.onExited(d)})})})},l.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},l.safeSetState=function(u,s){s=this.setNextCallback(s),this.setState(u,s)},l.setNextCallback=function(u){var s=this,f=!0;return this.nextCallback=function(d){f&&(f=!1,s.nextCallback=null,u(d))},this.nextCallback.cancel=function(){f=!1},this.nextCallback},l.onTransitionEnd=function(u,s){this.setNextCallback(s);var f=this.props.nodeRef?this.props.nodeRef.current:Eu.findDOMNode(this),d=u==null&&!this.props.addEndListener;if(!f||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var m=this.props.nodeRef?[this.nextCallback]:[f,this.nextCallback],h=m[0],g=m[1];this.props.addEndListener(h,g)}u!=null&&setTimeout(this.nextCallback,u)},l.render=function(){var u=this.state.status;if(u===za)return null;var s=this.props,f=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var d=Uy(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ft.createElement(Cu.Provider,{value:null},typeof f=="function"?f(u,d):ft.cloneElement(ft.Children.only(f),d))},r}(ft.Component);ar.contextType=Cu,ar.propTypes={};function ll(){}ar.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ll,onEntering:ll,onEntered:ll,onExit:ll,onExiting:ll,onExited:ll},ar.UNMOUNTED=za,ar.EXITED=pi,ar.ENTERING=hi,ar.ENTERED=il,ar.EXITING=Af;function IR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kf(e,r){var l=function(s){return r&&M.isValidElement(s)?r(s):s},a=Object.create(null);return e&&M.Children.map(e,function(u){return u}).forEach(function(u){a[u.key]=l(u)}),a}function VR(e,r){e=e||{},r=r||{};function l(g){return g in r?r[g]:e[g]}var a=Object.create(null),u=[];for(var s in e)s in r?u.length&&(a[s]=u,u=[]):u.push(s);var f,d={};for(var m in r){if(a[m])for(f=0;f<a[m].length;f++){var h=a[m][f];d[a[m][f]]=l(h)}d[m]=l(m)}for(f=0;f<u.length;f++)d[u[f]]=l(u[f]);return d}function mi(e,r,l){return l[r]!=null?l[r]:e.props[r]}function qR(e,r){return kf(e.children,function(l){return M.cloneElement(l,{onExited:r.bind(null,l),in:!0,appear:mi(l,"appear",e),enter:mi(l,"enter",e),exit:mi(l,"exit",e)})})}function $R(e,r,l){var a=kf(e.children),u=VR(r,a);return Object.keys(u).forEach(function(s){var f=u[s];if(M.isValidElement(f)){var d=s in r,m=s in a,h=r[s],g=M.isValidElement(h)&&!h.props.in;m&&(!d||g)?u[s]=M.cloneElement(f,{onExited:l.bind(null,f),in:!0,exit:mi(f,"exit",e),enter:mi(f,"enter",e)}):!m&&d&&!g?u[s]=M.cloneElement(f,{in:!1}):m&&d&&M.isValidElement(h)&&(u[s]=M.cloneElement(f,{onExited:l.bind(null,f),in:h.props.in,exit:mi(f,"exit",e),enter:mi(f,"enter",e)}))}}),u}var GR=Object.values||function(e){return Object.keys(e).map(function(r){return e[r]})},YR={component:"div",childFactory:function(r){return r}},Rf=function(e){jy(r,e);function r(a,u){var s;s=e.call(this,a,u)||this;var f=s.handleExited.bind(IR(s));return s.state={contextValue:{isMounting:!0},handleExited:f,firstRender:!0},s}var l=r.prototype;return l.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},l.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(u,s){var f=s.children,d=s.handleExited,m=s.firstRender;return{children:m?qR(u,d):$R(u,f,d),firstRender:!1}},l.handleExited=function(u,s){var f=kf(this.props.children);u.key in f||(u.props.onExited&&u.props.onExited(s),this.mounted&&this.setState(function(d){var m=No({},d.children);return delete m[u.key],{children:m}}))},l.render=function(){var u=this.props,s=u.component,f=u.childFactory,d=Uy(u,["component","childFactory"]),m=this.state.contextValue,h=GR(this.state.children).map(f);return delete d.appear,delete d.enter,delete d.exit,s===null?ft.createElement(Cu.Provider,{value:m},h):ft.createElement(Cu.Provider,{value:m},ft.createElement(s,d,h))},r}(ft.Component);Rf.propTypes={},Rf.defaultProps=YR;function FR(e){const{className:r,classes:l,pulsate:a=!1,rippleX:u,rippleY:s,rippleSize:f,in:d,onExited:m,timeout:h}=e,[g,y]=M.useState(!1),v=at(r,l.ripple,l.rippleVisible,a&&l.ripplePulsate),S={width:f,height:f,top:-(f/2)+s,left:-(f/2)+u},R=at(l.child,g&&l.childLeaving,a&&l.childPulsate);return!d&&!g&&y(!0),M.useEffect(()=>{if(!d&&m!=null){const T=setTimeout(m,h);return()=>{clearTimeout(T)}}},[m,d,h]),ce.jsx("span",{className:v,style:S,children:ce.jsx("span",{className:R})})}const Rn=$n("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Of=550,PR=80,XR=Ws`
126
+ 0% {
127
+ transform: scale(0);
128
+ opacity: 0.1;
129
+ }
130
+
131
+ 100% {
132
+ transform: scale(1);
133
+ opacity: 0.3;
134
+ }
135
+ `,QR=Ws`
136
+ 0% {
137
+ opacity: 1;
138
+ }
139
+
140
+ 100% {
141
+ opacity: 0;
142
+ }
143
+ `,KR=Ws`
144
+ 0% {
145
+ transform: scale(1);
146
+ }
147
+
148
+ 50% {
149
+ transform: scale(0.92);
150
+ }
151
+
152
+ 100% {
153
+ transform: scale(1);
154
+ }
155
+ `,ZR=zt("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),WR=zt(FR,{name:"MuiTouchRipple",slot:"Ripple"})`
156
+ opacity: 0;
157
+ position: absolute;
158
+
159
+ &.${Rn.rippleVisible} {
160
+ opacity: 0.3;
161
+ transform: scale(1);
162
+ animation-name: ${XR};
163
+ animation-duration: ${Of}ms;
164
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
165
+ }
166
+
167
+ &.${Rn.ripplePulsate} {
168
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
169
+ }
170
+
171
+ & .${Rn.child} {
172
+ opacity: 1;
173
+ display: block;
174
+ width: 100%;
175
+ height: 100%;
176
+ border-radius: 50%;
177
+ background-color: currentColor;
178
+ }
179
+
180
+ & .${Rn.childLeaving} {
181
+ opacity: 0;
182
+ animation-name: ${QR};
183
+ animation-duration: ${Of}ms;
184
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
185
+ }
186
+
187
+ & .${Rn.childPulsate} {
188
+ position: absolute;
189
+ /* @noflip */
190
+ left: 0px;
191
+ top: 0;
192
+ animation-name: ${KR};
193
+ animation-duration: 2500ms;
194
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
195
+ animation-iteration-count: infinite;
196
+ animation-delay: 200ms;
197
+ }
198
+ `,JR=M.forwardRef(function(r,l){const a=Yn({props:r,name:"MuiTouchRipple"}),{center:u=!1,classes:s={},className:f,...d}=a,[m,h]=M.useState([]),g=M.useRef(0),y=M.useRef(null);M.useEffect(()=>{y.current&&(y.current(),y.current=null)},[m]);const v=M.useRef(!1),S=Uv(),R=M.useRef(null),T=M.useRef(null),N=M.useCallback(z=>{const{pulsate:A,rippleX:_,rippleY:H,rippleSize:ne,cb:V}=z;h(E=>[...E,ce.jsx(WR,{classes:{ripple:at(s.ripple,Rn.ripple),rippleVisible:at(s.rippleVisible,Rn.rippleVisible),ripplePulsate:at(s.ripplePulsate,Rn.ripplePulsate),child:at(s.child,Rn.child),childLeaving:at(s.childLeaving,Rn.childLeaving),childPulsate:at(s.childPulsate,Rn.childPulsate)},timeout:Of,pulsate:A,rippleX:_,rippleY:H,rippleSize:ne},g.current)]),g.current+=1,y.current=V},[s]),w=M.useCallback((z={},A={},_=()=>{})=>{const{pulsate:H=!1,center:ne=u||A.pulsate,fakeElement:V=!1}=A;if((z==null?void 0:z.type)==="mousedown"&&v.current){v.current=!1;return}(z==null?void 0:z.type)==="touchstart"&&(v.current=!0);const E=V?null:T.current,I=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Y,F,P;if(ne||z===void 0||z.clientX===0&&z.clientY===0||!z.clientX&&!z.touches)Y=Math.round(I.width/2),F=Math.round(I.height/2);else{const{clientX:ee,clientY:$}=z.touches&&z.touches.length>0?z.touches[0]:z;Y=Math.round(ee-I.left),F=Math.round($-I.top)}if(ne)P=Math.sqrt((2*I.width**2+I.height**2)/3),P%2===0&&(P+=1);else{const ee=Math.max(Math.abs((E?E.clientWidth:0)-Y),Y)*2+2,$=Math.max(Math.abs((E?E.clientHeight:0)-F),F)*2+2;P=Math.sqrt(ee**2+$**2)}z!=null&&z.touches?R.current===null&&(R.current=()=>{N({pulsate:H,rippleX:Y,rippleY:F,rippleSize:P,cb:_})},S.start(PR,()=>{R.current&&(R.current(),R.current=null)})):N({pulsate:H,rippleX:Y,rippleY:F,rippleSize:P,cb:_})},[u,N,S]),B=M.useCallback(()=>{w({},{pulsate:!0})},[w]),k=M.useCallback((z,A)=>{if(S.clear(),(z==null?void 0:z.type)==="touchend"&&R.current){R.current(),R.current=null,S.start(0,()=>{k(z,A)});return}R.current=null,h(_=>_.length>0?_.slice(1):_),y.current=A},[S]);return M.useImperativeHandle(l,()=>({pulsate:B,start:w,stop:k}),[B,w,k]),ce.jsx(ZR,{className:at(Rn.root,s.root,f),ref:T,...d,children:ce.jsx(Rf,{component:null,exit:!0,children:m})})});function e5(e){return qn("MuiButtonBase",e)}const t5=$n("MuiButtonBase",["root","disabled","focusVisible"]),n5=e=>{const{disabled:r,focusVisible:l,focusVisibleClassName:a,classes:u}=e,f=er({root:["root",r&&"disabled",l&&"focusVisible"]},e5,u);return l&&a&&(f.root+=` ${a}`),f},r5=zt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,r)=>r.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${t5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),i5=M.forwardRef(function(r,l){const a=Yn({props:r,name:"MuiButtonBase"}),{action:u,centerRipple:s=!1,children:f,className:d,component:m="button",disabled:h=!1,disableRipple:g=!1,disableTouchRipple:y=!1,focusRipple:v=!1,focusVisibleClassName:S,LinkComponent:R="a",onBlur:T,onClick:N,onContextMenu:w,onDragLeave:B,onFocus:k,onFocusVisible:z,onKeyDown:A,onKeyUp:_,onMouseDown:H,onMouseLeave:ne,onMouseUp:V,onTouchEnd:E,onTouchMove:I,onTouchStart:Y,tabIndex:F=0,TouchRippleProps:P,touchRippleRef:ee,type:$,...Z}=a,Q=M.useRef(null),ue=UR(),x=Vn(ue.ref,ee),[K,se]=M.useState(!1);h&&K&&se(!1),M.useImperativeHandle(u,()=>({focusVisible:()=>{se(!0),Q.current.focus()}}),[]);const O=ue.shouldMount&&!g&&!h;M.useEffect(()=>{K&&v&&!g&&ue.pulsate()},[g,v,K,ue]);function ie(xe,ze,Rt=y){return $i(X=>(ze&&ze(X),Rt||ue[xe](X),!0))}const ye=ie("start",H),he=ie("stop",w),Be=ie("stop",B),Ce=ie("stop",V),ke=ie("stop",xe=>{K&&xe.preventDefault(),ne&&ne(xe)}),pe=ie("start",Y),De=ie("stop",E),me=ie("stop",I),ge=ie("stop",xe=>{wh(xe.target)||se(!1),T&&T(xe)},!1),fe=$i(xe=>{Q.current||(Q.current=xe.currentTarget),wh(xe.target)&&(se(!0),z&&z(xe)),k&&k(xe)}),Ee=()=>{const xe=Q.current;return m&&m!=="button"&&!(xe.tagName==="A"&&xe.href)},qe=$i(xe=>{v&&!xe.repeat&&K&&xe.key===" "&&ue.stop(xe,()=>{ue.start(xe)}),xe.target===xe.currentTarget&&Ee()&&xe.key===" "&&xe.preventDefault(),A&&A(xe),xe.target===xe.currentTarget&&Ee()&&xe.key==="Enter"&&!h&&(xe.preventDefault(),N&&N(xe))}),Le=$i(xe=>{v&&xe.key===" "&&K&&!xe.defaultPrevented&&ue.stop(xe,()=>{ue.pulsate(xe)}),_&&_(xe),N&&xe.target===xe.currentTarget&&Ee()&&xe.key===" "&&!xe.defaultPrevented&&N(xe)});let Oe=m;Oe==="button"&&(Z.href||Z.to)&&(Oe=R);const Pe={};Oe==="button"?(Pe.type=$===void 0?"button":$,Pe.disabled=h):(!Z.href&&!Z.to&&(Pe.role="button"),h&&(Pe["aria-disabled"]=h));const ht=Vn(l,Q),Qt={...a,centerRipple:s,component:m,disabled:h,disableRipple:g,disableTouchRipple:y,focusRipple:v,tabIndex:F,focusVisible:K},gn=n5(Qt);return ce.jsxs(r5,{as:Oe,className:at(gn.root,d),ownerState:Qt,onBlur:ge,onClick:N,onContextMenu:he,onFocus:fe,onKeyDown:qe,onKeyUp:Le,onMouseDown:ye,onMouseLeave:ke,onMouseUp:Ce,onDragLeave:Be,onTouchEnd:De,onTouchMove:me,onTouchStart:pe,ref:ht,tabIndex:h?-1:F,type:$,...Pe,...Z,children:[f,O?ce.jsx(JR,{ref:x,center:s,...P}):null]})});function l5(e){return qn("MuiIconButton",e)}const a5=$n("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),o5=e=>{const{classes:r,disabled:l,color:a,edge:u,size:s}=e,f={root:["root",l&&"disabled",a!=="default"&&`color${dt(a)}`,u&&`edge${dt(u)}`,`size${dt(s)}`]};return er(f,l5,r)},u5=zt(i5,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:l}=e;return[r.root,l.color!=="default"&&r[`color${dt(l.color)}`],l.edge&&r[`edge${dt(l.edge)}`],r[`size${dt(l.size)}`]]}})(Gn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:r=>!r.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ea(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Gn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(nl()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(e.palette).filter(nl()).map(([r])=>({props:{color:r},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ea((e.vars||e).palette[r].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${a5.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),s5=M.forwardRef(function(r,l){const a=Yn({props:r,name:"MuiIconButton"}),{edge:u=!1,children:s,className:f,color:d="default",disabled:m=!1,disableFocusRipple:h=!1,size:g="medium",...y}=a,v={...a,edge:u,color:d,disabled:m,disableFocusRipple:h,size:g},S=o5(v);return ce.jsx(u5,{className:at(S.root,f),centerRipple:!0,focusRipple:!h,disabled:m,ref:l,...y,ownerState:v,children:s})});function c5(e){return qn("MuiSvgIcon",e)}$n("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const f5=e=>{const{color:r,fontSize:l,classes:a}=e,u={root:["root",r!=="inherit"&&`color${dt(r)}`,`fontSize${dt(l)}`]};return er(u,c5,a)},d5=zt("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:l}=e;return[r.root,l.color!=="inherit"&&r[`color${dt(l.color)}`],r[`fontSize${dt(l.fontSize)}`]]}})(Gn(({theme:e})=>{var r,l,a,u,s,f,d,m,h,g,y,v,S,R;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(u=(r=e.transitions)==null?void 0:r.create)==null?void 0:u.call(r,"fill",{duration:(a=(l=(e.vars??e).transitions)==null?void 0:l.duration)==null?void 0:a.shorter}),variants:[{props:T=>!T.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((f=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:f.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((m=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:m.call(d,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((g=(h=e.typography)==null?void 0:h.pxToRem)==null?void 0:g.call(h,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,T])=>T&&T.main).map(([T])=>{var N,w;return{props:{color:T},style:{color:(w=(N=(e.vars??e).palette)==null?void 0:N[T])==null?void 0:w.main}}}),{props:{color:"action"},style:{color:(v=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:v.active}},{props:{color:"disabled"},style:{color:(R=(S=(e.vars??e).palette)==null?void 0:S.action)==null?void 0:R.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Tu=M.forwardRef(function(r,l){const a=Yn({props:r,name:"MuiSvgIcon"}),{children:u,className:s,color:f="inherit",component:d="svg",fontSize:m="medium",htmlColor:h,inheritViewBox:g=!1,titleAccess:y,viewBox:v="0 0 24 24",...S}=a,R=M.isValidElement(u)&&u.type==="svg",T={...a,color:f,component:d,fontSize:m,instanceFontSize:r.fontSize,inheritViewBox:g,viewBox:v,hasSvgAsChild:R},N={};g||(N.viewBox=v);const w=f5(T);return ce.jsxs(d5,{as:d,className:at(w.root,s),focusable:"false",color:h,"aria-hidden":y?void 0:!0,role:y?"img":void 0,ref:l,...N,...S,...R&&u.props,ownerState:T,children:[R?u.props.children:u,y?ce.jsx("title",{children:y}):null]})});Tu&&(Tu.muiName="SvgIcon");function Na(e,r){function l(a,u){return ce.jsx(Tu,{"data-testid":`${r}Icon`,ref:u,...a,children:e})}return l.muiName=Tu.muiName,M.memo(M.forwardRef(l))}const p5=Na(ce.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),h5=Na(ce.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),m5=Na(ce.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),g5=Na(ce.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),y5=Na(ce.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),b5=e=>{const{variant:r,color:l,severity:a,classes:u}=e,s={root:["root",`color${dt(l||a)}`,`${r}${dt(l||a)}`,`${r}`],icon:["icon"],message:["message"],action:["action"]};return er(s,LR,u)},S5=zt(By,{name:"MuiAlert",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:l}=e;return[r.root,r[l.variant],r[`${l.variant}${dt(l.color||l.severity)}`]]}})(Gn(({theme:e})=>{const r=e.palette.mode==="light"?ta:na,l=e.palette.mode==="light"?na:ta;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(nl(["light"])).map(([a])=>({props:{colorSeverity:a,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${a}Color`]:r(e.palette[a].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${a}StandardBg`]:l(e.palette[a].light,.9),[`& .${Ly.icon}`]:e.vars?{color:e.vars.palette.Alert[`${a}IconColor`]}:{color:e.palette[a].main}}})),...Object.entries(e.palette).filter(nl(["light"])).map(([a])=>({props:{colorSeverity:a,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${a}Color`]:r(e.palette[a].light,.6),border:`1px solid ${(e.vars||e).palette[a].light}`,[`& .${Ly.icon}`]:e.vars?{color:e.vars.palette.Alert[`${a}IconColor`]}:{color:e.palette[a].main}}})),...Object.entries(e.palette).filter(nl(["dark"])).map(([a])=>({props:{colorSeverity:a,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${a}FilledColor`],backgroundColor:e.vars.palette.Alert[`${a}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[a].dark:e.palette[a].main,color:e.palette.getContrastText(e.palette[a].main)}}}))]}})),v5=zt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,r)=>r.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),x5=zt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,r)=>r.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Vy=zt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,r)=>r.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),qy={success:ce.jsx(p5,{fontSize:"inherit"}),warning:ce.jsx(h5,{fontSize:"inherit"}),error:ce.jsx(m5,{fontSize:"inherit"}),info:ce.jsx(g5,{fontSize:"inherit"})},E5=M.forwardRef(function(r,l){const a=Yn({props:r,name:"MuiAlert"}),{action:u,children:s,className:f,closeText:d="Close",color:m,components:h={},componentsProps:g={},icon:y,iconMapping:v=qy,onClose:S,role:R="alert",severity:T="success",slotProps:N={},slots:w={},variant:B="standard",...k}=a,z={...a,color:m,severity:T,variant:B,colorSeverity:m||T},A=b5(z),_={slots:{closeButton:h.CloseButton,closeIcon:h.CloseIcon,...w},slotProps:{...g,...N}},[H,ne]=rl("closeButton",{elementType:s5,externalForwardedProps:_,ownerState:z}),[V,E]=rl("closeIcon",{elementType:y5,externalForwardedProps:_,ownerState:z});return ce.jsxs(S5,{role:R,elevation:0,ownerState:z,className:at(A.root,f),ref:l,...k,children:[y!==!1?ce.jsx(v5,{ownerState:z,className:A.icon,children:y||v[T]||qy[T]}):null,ce.jsx(x5,{ownerState:z,className:A.message,children:s}),u!=null?ce.jsx(Vy,{ownerState:z,className:A.action,children:u}):null,u==null&&S?ce.jsx(Vy,{ownerState:z,className:A.action,children:ce.jsx(H,{size:"small","aria-label":d,title:d,color:"inherit",onClick:S,...ne,children:ce.jsx(V,{fontSize:"small",...E})})}):null]})}),$y=(e,r)=>({info:e.custom.colors.blue,success:e.custom.colors.green,warning:e.custom.colors.orange,error:e.custom.colors.lightRed})[r],C5=et(E5)(({theme:e,severity:r})=>({padding:"11px 16px",borderRadius:4,borderWidth:2,borderStyle:"solid",borderColor:$y(e,r),background:"#FFF",".MuiAlert-message":{...e.typography.body2,color:e.custom.colors.darkGray2,alignSelf:"center"},"> div":{paddingTop:0,paddingBottom:0},".MuiAlert-icon":{marginRight:8,svg:{width:16,fill:$y(e,r)}},button:{padding:0,":hover":{margin:0,background:"none"}}})),T5=et.span({display:"none"}),w5=({visible:e=!0,severity:r="info",closable:l,children:a,className:u})=>{const[s,f]=M.useState(e),d=M.useId(),m=()=>{f(!1)};return M.useEffect(()=>{f(e)},[e]),s?M.createElement(C5,{severity:r,onClose:l?m:void 0,role:"alert","aria-describedby":d,className:u},a,M.createElement(T5,{id:d},r," message")):null},Wt={root:"MitAiChat--root",title:"MitAiChat--title",conversationStarter:"MitAiChat--conversationStarter",messagesContainer:"MitAiChat--messagesContainer",messageRow:"MitAiChat--messageRow",messageRowUser:"MitAiChat--messageRowUser",messageRowAssistant:"MitAiChat--messageRowAssistant",message:"MitAiChat--message",input:"MitAiChat--input",bottomSection:"MitAiChat--bottomSection"},A5=et.div({width:"100%",height:"100%",display:"flex",flexDirection:"column"}),k5=et(Tc)(({theme:e})=>({"&&:hover":{backgroundColor:e.custom.colors.red,color:e.custom.colors.white}})),R5=et.div(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",color:e.custom.colors.darkGray2,img:{width:"24px",height:"24px"},svg:{fill:e.custom.colors.red,width:"24px",height:"24px"}})),O5=et(CR)({display:"flex",flexDirection:"column",flex:1,padding:"14px 0",overflow:"auto",gap:"16px"}),Gy=et.div({display:"flex",width:"100%",gap:"10px",[`&.${Wt.messageRowUser}`]:{flexDirection:"row-reverse"},"> *":{minWidth:0},position:"relative"}),Yy=et.div(({theme:e})=>({color:e.custom.colors.darkGray2,backgroundColor:e.custom.colors.white,padding:"12px 16px",...e.typography.body2,"p:first-of-type":{marginTop:0},"p:last-of-type":{marginBottom:0},"ol, ul":{paddingInlineStart:"32px",li:{margin:"16px 0"}},ul:{marginInlineStart:"-16px"},a:{color:e.custom.colors.red,fontWeight:"normal"},borderRadius:"12px",[`.${Wt.messageRowAssistant} &`]:{padding:"12px 16px 12px 0"},[`.${Wt.messageRowUser} &`]:{borderRadius:"8px 0px 8px 8px",backgroundColor:e.custom.colors.lightGray1}})),M5=et.div({alignSelf:"flex-end",alignItems:"end",display:"flex",flexDirection:"column",gap:"12px"}),_5=et.button(({theme:e})=>({border:`1px solid ${e.custom.colors.lightGray2}`,backgroundColor:e.custom.colors.white,padding:"8px 16px",...e.typography.body3,cursor:"pointer",boxSizing:"border-box","&:hover":{color:e.custom.colors.white,backgroundColor:e.custom.colors.silverGrayDark,borderColor:"transparent"},borderRadius:"8px"})),D5=et(F2)({width:"40px",height:"40px"}),z5=et($2)(({theme:e})=>({fill:e.custom.colors.red})),N5=et(G2)(({theme:e})=>({fill:e.custom.colors.red})),B5=et.div({paddingTop:"12px"}),L5=et(Tf)(({theme:e})=>({color:e.custom.colors.silverGrayDark,marginTop:"14px",textAlign:"center"})),U5=et(({title:e,askTimTitle:r,onClose:l,className:a})=>M.createElement("div",{className:a},r?M.createElement(R5,null,M.createElement(Y2,null),M.createElement(Tf,{variant:"body1"},"Ask",M.createElement("strong",null,"TIM")," ",r)):null,e?M.createElement(M.Fragment,null,M.createElement(D5,null),M.createElement(Tf,{flex:1,variant:"h5"},e)):null,l?M.createElement(k5,{variant:"tertiary",edge:"rounded",onClick:l,"aria-label":"Close chat"},M.createElement(Dm,null)):null))(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0",gap:"16px",color:e.custom.colors.white,borderRadius:"8px 8px 0 0"})),j5=function({chatId:r,className:l,conversationStarters:a,requestOpts:u,initialMessages:s,parseContent:f,srLoadingMessages:d,title:m,askTimTitle:h,onClose:g,ImgComponent:y,placeholder:v="",ref:S,...R}){var ee,$;const T=M.useRef(null),N=M.useMemo(()=>{const Z=Math.random().toString().slice(2);return s.map((Q,ue)=>({...Q,id:`initial-${Z}-${ue}`}))},[s]),{messages:w,input:B,handleInputChange:k,handleSubmit:z,append:A,isLoading:_,stop:H,error:ne}=cT(u,{initialMessages:N,id:r});M.useImperativeHandle(S,()=>({append:A}),[A]);const V=M.useMemo(()=>{const Z=N.map(Q=>Q.id);return w.map(Q=>{if(Q.role==="assistant"&&!Z.includes(Q.id)){const ue=f?f(Q.content):Q.content;return{...Q,content:ue}}return Q})},[f,w,N]),E=V.length===N.length,I=!E&&!ne&&((ee=V[V.length-1])==null?void 0:ee.role)==="user",Y=_&&(($=V[V.length-1])==null?void 0:$.role)!=="user",F=()=>{var Z;(Z=T.current)==null||Z.scrollBy({behavior:"instant",top:T.current.scrollHeight})},P=V[V.length-1];return M.createElement(A5,{className:aa(l,Wt.root),...R},M.createElement(U5,{title:m,askTimTitle:h,onClose:g,className:aa(l,Wt.title)}),M.createElement(O5,{className:Wt.messagesContainer,ref:T},V.map(Z=>M.createElement(Gy,{key:Z.id,"data-chat-role":Z.role,className:aa(Wt.messageRow,{[Wt.messageRowUser]:Z.role==="user",[Wt.messageRowAssistant]:Z.role==="assistant"})},M.createElement(Yy,{className:Wt.message},M.createElement(zy,null,Z.role==="user"?"You said: ":"Assistant said: "),M.createElement(bR,{skipHtml:!0},Z.content)))),E?M.createElement(M5,null,a==null?void 0:a.map(Z=>M.createElement(_5,{className:Wt.conversationStarter,key:Z.content,onClick:()=>{F(),A({role:"user",content:Z.content})}},Z.content))):null,I?M.createElement(Gy,{className:aa(Wt.messageRow,Wt.messageRowAssistant),key:"loading"},M.createElement(Yy,null,M.createElement(q2,null))):null,ne?M.createElement(w5,{severity:"error",closable:!0},"An unexpected error has occurred."):null),M.createElement(B5,{className:Wt.bottomSection},M.createElement("form",{onSubmit:Z=>{Z.preventDefault(),_&&Y?H():(F(),z(Z))}},M.createElement(O2,{fullWidth:!0,size:"chat",className:Wt.input,placeholder:v,name:"message",sx:{flex:1},value:B,onChange:k,endAdornment:_?M.createElement(Sm,{"aria-label":"Stop",onClick:H,disabled:!Y},M.createElement(N5,null)):M.createElement(Sm,{"aria-label":"Send",type:"submit",onClick:Z=>{F(),z(Z)}},M.createElement(z5,null))})),M.createElement(L5,{variant:"body3"},"AI-generated content may be incorrect.")),M.createElement(wR,{isLoading:_,loadingMessages:d,message:P.role==="assistant"?P.content:""}))},H5=e=>M.createElement(j5,{key:e.chatId,...e});function I5(e){const r=si(e);return r.body===e?Br(e).innerWidth>r.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ba(e,r){r?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Fy(e){return parseInt(Br(e).getComputedStyle(e).paddingRight,10)||0}function V5(e){const l=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),a=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return l||a}function Py(e,r,l,a,u){const s=[r,l,...a];[].forEach.call(e.children,f=>{const d=!s.includes(f),m=!V5(f);d&&m&&Ba(f,u)})}function Mf(e,r){let l=-1;return e.some((a,u)=>r(a)?(l=u,!0):!1),l}function q5(e,r){const l=[],a=e.container;if(!r.disableScrollLock){if(I5(a)){const f=jv(Br(a));l.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${Fy(a)+f}px`;const d=si(a).querySelectorAll(".mui-fixed");[].forEach.call(d,m=>{l.push({value:m.style.paddingRight,property:"padding-right",el:m}),m.style.paddingRight=`${Fy(m)+f}px`})}let s;if(a.parentNode instanceof DocumentFragment)s=si(a).body;else{const f=a.parentElement,d=Br(a);s=(f==null?void 0:f.nodeName)==="HTML"&&d.getComputedStyle(f).overflowY==="scroll"?f:a}l.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{l.forEach(({value:s,el:f,property:d})=>{s?f.style.setProperty(d,s):f.style.removeProperty(d)})}}function $5(e){const r=[];return[].forEach.call(e.children,l=>{l.getAttribute("aria-hidden")==="true"&&r.push(l)}),r}class G5{constructor(){this.modals=[],this.containers=[]}add(r,l){let a=this.modals.indexOf(r);if(a!==-1)return a;a=this.modals.length,this.modals.push(r),r.modalRef&&Ba(r.modalRef,!1);const u=$5(l);Py(l,r.mount,r.modalRef,u,!0);const s=Mf(this.containers,f=>f.container===l);return s!==-1?(this.containers[s].modals.push(r),a):(this.containers.push({modals:[r],container:l,restore:null,hiddenSiblings:u}),a)}mount(r,l){const a=Mf(this.containers,s=>s.modals.includes(r)),u=this.containers[a];u.restore||(u.restore=q5(u,l))}remove(r,l=!0){const a=this.modals.indexOf(r);if(a===-1)return a;const u=Mf(this.containers,f=>f.modals.includes(r)),s=this.containers[u];if(s.modals.splice(s.modals.indexOf(r),1),this.modals.splice(a,1),s.modals.length===0)s.restore&&s.restore(),r.modalRef&&Ba(r.modalRef,l),Py(s.container,r.mount,r.modalRef,s.hiddenSiblings,!1),this.containers.splice(u,1);else{const f=s.modals[s.modals.length-1];f.modalRef&&Ba(f.modalRef,!1)}return a}isTopModal(r){return this.modals.length>0&&this.modals[this.modals.length-1]===r}}const Y5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function F5(e){const r=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(r)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:r}function P5(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const r=a=>e.ownerDocument.querySelector(`input[type="radio"]${a}`);let l=r(`[name="${e.name}"]:checked`);return l||(l=r(`[name="${e.name}"]`)),l!==e}function X5(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||P5(e))}function Q5(e){const r=[],l=[];return Array.from(e.querySelectorAll(Y5)).forEach((a,u)=>{const s=F5(a);s===-1||!X5(a)||(s===0?r.push(a):l.push({documentOrder:u,tabIndex:s,node:a}))}),l.sort((a,u)=>a.tabIndex===u.tabIndex?a.documentOrder-u.documentOrder:a.tabIndex-u.tabIndex).map(a=>a.node).concat(r)}function K5(){return!0}function Z5(e){const{children:r,disableAutoFocus:l=!1,disableEnforceFocus:a=!1,disableRestoreFocus:u=!1,getTabbable:s=Q5,isEnabled:f=K5,open:d}=e,m=M.useRef(!1),h=M.useRef(null),g=M.useRef(null),y=M.useRef(null),v=M.useRef(null),S=M.useRef(!1),R=M.useRef(null),T=Vn(Go(r),R),N=M.useRef(null);M.useEffect(()=>{!d||!R.current||(S.current=!l)},[l,d]),M.useEffect(()=>{if(!d||!R.current)return;const k=si(R.current);return R.current.contains(k.activeElement)||(R.current.hasAttribute("tabIndex")||R.current.setAttribute("tabIndex","-1"),S.current&&R.current.focus()),()=>{u||(y.current&&y.current.focus&&(m.current=!0,y.current.focus()),y.current=null)}},[d]),M.useEffect(()=>{if(!d||!R.current)return;const k=si(R.current),z=H=>{N.current=H,!(a||!f()||H.key!=="Tab")&&k.activeElement===R.current&&H.shiftKey&&(m.current=!0,g.current&&g.current.focus())},A=()=>{var V,E;const H=R.current;if(H===null)return;if(!k.hasFocus()||!f()||m.current){m.current=!1;return}if(H.contains(k.activeElement)||a&&k.activeElement!==h.current&&k.activeElement!==g.current)return;if(k.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!S.current)return;let ne=[];if((k.activeElement===h.current||k.activeElement===g.current)&&(ne=s(R.current)),ne.length>0){const I=!!((V=N.current)!=null&&V.shiftKey&&((E=N.current)==null?void 0:E.key)==="Tab"),Y=ne[0],F=ne[ne.length-1];typeof Y!="string"&&typeof F!="string"&&(I?F.focus():Y.focus())}else H.focus()};k.addEventListener("focusin",A),k.addEventListener("keydown",z,!0);const _=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&A()},50);return()=>{clearInterval(_),k.removeEventListener("focusin",A),k.removeEventListener("keydown",z,!0)}},[l,a,u,f,d,s]);const w=k=>{y.current===null&&(y.current=k.relatedTarget),S.current=!0,v.current=k.target;const z=r.props.onFocus;z&&z(k)},B=k=>{y.current===null&&(y.current=k.relatedTarget),S.current=!0};return ce.jsxs(M.Fragment,{children:[ce.jsx("div",{tabIndex:d?0:-1,onFocus:B,ref:h,"data-testid":"sentinelStart"}),M.cloneElement(r,{ref:T,onFocus:w}),ce.jsx("div",{tabIndex:d?0:-1,onFocus:B,ref:g,"data-testid":"sentinelEnd"})]})}function W5(e){return typeof e=="function"?e():e}const J5=M.forwardRef(function(r,l){const{children:a,container:u,disablePortal:s=!1}=r,[f,d]=M.useState(null),m=Vn(M.isValidElement(a)?Go(a):null,l);if(qi(()=>{s||d(W5(u)||document.body)},[u,s]),qi(()=>{if(f&&!s)return Js(l,f),()=>{Js(l,null)}},[l,f,s]),s){if(M.isValidElement(a)){const h={ref:m};return M.cloneElement(a,h)}return ce.jsx(M.Fragment,{children:a})}return ce.jsx(M.Fragment,{children:f&&Hy.createPortal(a,f)})}),Xy=e=>e.scrollTop;function wu(e,r){const{timeout:l,easing:a,style:u={}}=e;return{duration:u.transitionDuration??(typeof l=="number"?l:l[r.mode]||0),easing:u.transitionTimingFunction??(typeof a=="object"?a[r.mode]:a),delay:u.transitionDelay}}const e4={entering:{opacity:1},entered:{opacity:1}},t4=M.forwardRef(function(r,l){const a=lu(),u={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:s,appear:f=!0,children:d,easing:m,in:h,onEnter:g,onEntered:y,onEntering:v,onExit:S,onExited:R,onExiting:T,style:N,timeout:w=u,TransitionComponent:B=ar,...k}=r,z=M.useRef(null),A=Vn(z,Go(d),l),_=P=>ee=>{if(P){const $=z.current;ee===void 0?P($):P($,ee)}},H=_(v),ne=_((P,ee)=>{Xy(P);const $=wu({style:N,timeout:w,easing:m},{mode:"enter"});P.style.webkitTransition=a.transitions.create("opacity",$),P.style.transition=a.transitions.create("opacity",$),g&&g(P,ee)}),V=_(y),E=_(T),I=_(P=>{const ee=wu({style:N,timeout:w,easing:m},{mode:"exit"});P.style.webkitTransition=a.transitions.create("opacity",ee),P.style.transition=a.transitions.create("opacity",ee),S&&S(P)}),Y=_(R),F=P=>{s&&s(z.current,P)};return ce.jsx(B,{appear:f,in:h,nodeRef:z,onEnter:ne,onEntered:V,onEntering:H,onExit:I,onExited:Y,onExiting:E,addEndListener:F,timeout:w,...k,children:(P,ee)=>M.cloneElement(d,{style:{opacity:0,visibility:P==="exited"&&!h?"hidden":void 0,...e4[P],...N,...d.props.style},ref:A,...ee})})});function n4(e){return qn("MuiBackdrop",e)}$n("MuiBackdrop",["root","invisible"]);const r4=e=>{const{ownerState:r,...l}=e;return l},i4=e=>{const{classes:r,invisible:l}=e;return er({root:["root",l&&"invisible"]},n4,r)},l4=zt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:l}=e;return[r.root,l.invisible&&r.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),a4=M.forwardRef(function(r,l){const a=Yn({props:r,name:"MuiBackdrop"}),{children:u,className:s,component:f="div",invisible:d=!1,open:m,components:h={},componentsProps:g={},slotProps:y={},slots:v={},TransitionComponent:S,transitionDuration:R,...T}=a,N={...a,component:f,invisible:d},w=i4(N),B={transition:S,root:h.Root,...v},k={...g,...y},z={slots:B,slotProps:k},[A,_]=rl("root",{elementType:l4,externalForwardedProps:z,className:at(w.root,s),ownerState:N}),[H,ne]=rl("transition",{elementType:t4,externalForwardedProps:z,ownerState:N}),V=r4(ne);return ce.jsx(H,{in:m,timeout:R,...T,...V,children:ce.jsx(A,{"aria-hidden":!0,..._,classes:w,ref:l,children:u})})});function o4(e){return typeof e=="function"?e():e}function u4(e){return e?e.props.hasOwnProperty("in"):!1}const Au=new G5;function s4(e){const{container:r,disableEscapeKeyDown:l=!1,disableScrollLock:a=!1,closeAfterTransition:u=!1,onTransitionEnter:s,onTransitionExited:f,children:d,onClose:m,open:h,rootRef:g}=e,y=M.useRef({}),v=M.useRef(null),S=M.useRef(null),R=Vn(S,g),[T,N]=M.useState(!h),w=u4(d);let B=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(B=!1);const k=()=>si(v.current),z=()=>(y.current.modalRef=S.current,y.current.mount=v.current,y.current),A=()=>{Au.mount(z(),{disableScrollLock:a}),S.current&&(S.current.scrollTop=0)},_=$i(()=>{const ee=o4(r)||k().body;Au.add(z(),ee),S.current&&A()}),H=()=>Au.isTopModal(z()),ne=$i(ee=>{v.current=ee,ee&&(h&&H()?A():S.current&&Ba(S.current,B))}),V=M.useCallback(()=>{Au.remove(z(),B)},[B]);M.useEffect(()=>()=>{V()},[V]),M.useEffect(()=>{h?_():(!w||!u)&&V()},[h,V,w,u,_]);const E=ee=>$=>{var Z;(Z=ee.onKeyDown)==null||Z.call(ee,$),!($.key!=="Escape"||$.which===229||!H())&&(l||($.stopPropagation(),m&&m($,"escapeKeyDown")))},I=ee=>$=>{var Z;(Z=ee.onClick)==null||Z.call(ee,$),$.target===$.currentTarget&&m&&m($,"backdropClick")};return{getRootProps:(ee={})=>{const $=kh(e);delete $.onTransitionEnter,delete $.onTransitionExited;const Z={...$,...ee};return{role:"presentation",...Z,onKeyDown:E(Z),ref:R}},getBackdropProps:(ee={})=>{const $=ee;return{"aria-hidden":!0,...$,onClick:I($),open:h}},getTransitionProps:()=>{const ee=()=>{N(!1),s&&s()},$=()=>{N(!0),f&&f(),u&&V()};return{onEnter:xh(ee,d==null?void 0:d.props.onEnter),onExited:xh($,d==null?void 0:d.props.onExited)}},rootRef:R,portalRef:ne,isTopModal:H,exited:T,hasTransition:w}}function c4(e){return qn("MuiModal",e)}$n("MuiModal",["root","hidden","backdrop"]);const f4=e=>{const{open:r,exited:l,classes:a}=e;return er({root:["root",!r&&l&&"hidden"],backdrop:["backdrop"]},c4,a)},d4=zt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:l}=e;return[r.root,!l.open&&l.exited&&r.hidden]}})(Gn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:r})=>!r.open&&r.exited,style:{visibility:"hidden"}}]}))),p4=zt(a4,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,r)=>r.backdrop})({zIndex:-1}),h4=M.forwardRef(function(r,l){const a=Yn({name:"MuiModal",props:r}),{BackdropComponent:u=p4,BackdropProps:s,classes:f,className:d,closeAfterTransition:m=!1,children:h,container:g,component:y,components:v={},componentsProps:S={},disableAutoFocus:R=!1,disableEnforceFocus:T=!1,disableEscapeKeyDown:N=!1,disablePortal:w=!1,disableRestoreFocus:B=!1,disableScrollLock:k=!1,hideBackdrop:z=!1,keepMounted:A=!1,onBackdropClick:_,onClose:H,onTransitionEnter:ne,onTransitionExited:V,open:E,slotProps:I={},slots:Y={},theme:F,...P}=a,ee={...a,closeAfterTransition:m,disableAutoFocus:R,disableEnforceFocus:T,disableEscapeKeyDown:N,disablePortal:w,disableRestoreFocus:B,disableScrollLock:k,hideBackdrop:z,keepMounted:A},{getRootProps:$,getBackdropProps:Z,getTransitionProps:Q,portalRef:ue,isTopModal:x,exited:K,hasTransition:se}=s4({...ee,rootRef:l}),O={...ee,exited:K},ie=f4(O),ye={};if(h.props.tabIndex===void 0&&(ye.tabIndex="-1"),se){const{onEnter:me,onExited:ge}=Q();ye.onEnter=me,ye.onExited=ge}const he={...P,slots:{root:v.Root,backdrop:v.Backdrop,...Y},slotProps:{...S,...I}},[Be,Ce]=rl("root",{elementType:d4,externalForwardedProps:he,getSlotProps:$,additionalProps:{ref:l,as:y},ownerState:O,className:at(d,ie==null?void 0:ie.root,!O.open&&O.exited&&(ie==null?void 0:ie.hidden))}),[ke,pe]=rl("backdrop",{elementType:u,externalForwardedProps:he,additionalProps:s,getSlotProps:me=>Z({...me,onClick:ge=>{_&&_(ge),me!=null&&me.onClick&&me.onClick(ge)}}),className:at(s==null?void 0:s.className,ie==null?void 0:ie.backdrop),ownerState:O}),De=Vn(s==null?void 0:s.ref,pe.ref);return!A&&!E&&(!se||K)?null:ce.jsx(J5,{ref:ue,container:g,disablePortal:w,children:ce.jsxs(Be,{...Ce,children:[!z&&u?ce.jsx(ke,{...pe,ref:De}):null,ce.jsx(Z5,{disableEnforceFocus:T,disableAutoFocus:R,disableRestoreFocus:B,isEnabled:x,open:E,children:M.cloneElement(h,ye)})]})})});function m4(e,r,l){const a=r.getBoundingClientRect(),u=l&&l.getBoundingClientRect(),s=Br(r);let f;if(r.fakeTransform)f=r.fakeTransform;else{const h=s.getComputedStyle(r);f=h.getPropertyValue("-webkit-transform")||h.getPropertyValue("transform")}let d=0,m=0;if(f&&f!=="none"&&typeof f=="string"){const h=f.split("(")[1].split(")")[0].split(",");d=parseInt(h[4],10),m=parseInt(h[5],10)}return e==="left"?u?`translateX(${u.right+d-a.left}px)`:`translateX(${s.innerWidth+d-a.left}px)`:e==="right"?u?`translateX(-${a.right-u.left-d}px)`:`translateX(-${a.left+a.width-d}px)`:e==="up"?u?`translateY(${u.bottom+m-a.top}px)`:`translateY(${s.innerHeight+m-a.top}px)`:u?`translateY(-${a.top-u.top+a.height-m}px)`:`translateY(-${a.top+a.height-m}px)`}function g4(e){return typeof e=="function"?e():e}function ku(e,r,l){const a=g4(l),u=m4(e,r,a);u&&(r.style.webkitTransform=u,r.style.transform=u)}const y4=M.forwardRef(function(r,l){const a=lu(),u={enter:a.transitions.easing.easeOut,exit:a.transitions.easing.sharp},s={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{addEndListener:f,appear:d=!0,children:m,container:h,direction:g="down",easing:y=u,in:v,onEnter:S,onEntered:R,onEntering:T,onExit:N,onExited:w,onExiting:B,style:k,timeout:z=s,TransitionComponent:A=ar,..._}=r,H=M.useRef(null),ne=Vn(Go(m),H,l),V=Q=>ue=>{Q&&(ue===void 0?Q(H.current):Q(H.current,ue))},E=V((Q,ue)=>{ku(g,Q,h),Xy(Q),S&&S(Q,ue)}),I=V((Q,ue)=>{const x=wu({timeout:z,style:k,easing:y},{mode:"enter"});Q.style.webkitTransition=a.transitions.create("-webkit-transform",{...x}),Q.style.transition=a.transitions.create("transform",{...x}),Q.style.webkitTransform="none",Q.style.transform="none",T&&T(Q,ue)}),Y=V(R),F=V(B),P=V(Q=>{const ue=wu({timeout:z,style:k,easing:y},{mode:"exit"});Q.style.webkitTransition=a.transitions.create("-webkit-transform",ue),Q.style.transition=a.transitions.create("transform",ue),ku(g,Q,h),N&&N(Q)}),ee=V(Q=>{Q.style.webkitTransition="",Q.style.transition="",w&&w(Q)}),$=Q=>{f&&f(H.current,Q)},Z=M.useCallback(()=>{H.current&&ku(g,H.current,h)},[g,h]);return M.useEffect(()=>{if(v||g==="down"||g==="right")return;const Q=Eh(()=>{H.current&&ku(g,H.current,h)}),ue=Br(H.current);return ue.addEventListener("resize",Q),()=>{Q.clear(),ue.removeEventListener("resize",Q)}},[g,v,h]),M.useEffect(()=>{v||Z()},[v,Z]),ce.jsx(A,{nodeRef:H,onEnter:E,onEntered:Y,onEntering:I,onExit:P,onExited:ee,onExiting:F,addEndListener:$,appear:d,in:v,timeout:z,..._,children:(Q,ue)=>M.cloneElement(m,{ref:ne,style:{visibility:Q==="exited"&&!v?"hidden":void 0,...k,...m.props.style},...ue})})});function b4(e){return qn("MuiDrawer",e)}$n("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Qy=(e,r)=>{const{ownerState:l}=e;return[r.root,(l.variant==="permanent"||l.variant==="persistent")&&r.docked,r.modal]},S4=e=>{const{classes:r,anchor:l,variant:a}=e,u={root:["root"],docked:[(a==="permanent"||a==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${dt(l)}`,a!=="temporary"&&`paperAnchorDocked${dt(l)}`]};return er(u,b4,r)},v4=zt(h4,{name:"MuiDrawer",slot:"Root",overridesResolver:Qy})(Gn(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),Ky=zt("div",{shouldForwardProp:pm,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Qy})({flex:"0 0 auto"}),x4=zt(By,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,r)=>{const{ownerState:l}=e;return[r.paper,r[`paperAnchor${dt(l.anchor)}`],l.variant!=="temporary"&&r[`paperAnchorDocked${dt(l.anchor)}`]]}})(Gn(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:r})=>r.anchor==="left"&&r.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:r})=>r.anchor==="top"&&r.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:r})=>r.anchor==="right"&&r.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:r})=>r.anchor==="bottom"&&r.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),Zy={left:"right",right:"left",top:"down",bottom:"up"};function E4(e){return["left","right"].includes(e)}function C4({direction:e},r){return e==="rtl"&&E4(r)?Zy[r]:r}const T4=M.forwardRef(function(r,l){const a=Yn({props:r,name:"MuiDrawer"}),u=lu(),s=SE(),f={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:m,children:h,className:g,elevation:y=16,hideBackdrop:v=!1,ModalProps:{BackdropProps:S,...R}={},onClose:T,open:N=!1,PaperProps:w={},SlideProps:B,TransitionComponent:k=y4,transitionDuration:z=f,variant:A="temporary",..._}=a,H=M.useRef(!1);M.useEffect(()=>{H.current=!0},[]);const ne=C4({direction:s?"rtl":"ltr"},d),E={...a,anchor:d,elevation:y,open:N,variant:A,..._},I=S4(E),Y=ce.jsx(x4,{elevation:A==="temporary"?y:0,square:!0,...w,className:at(I.paper,w.className),ownerState:E,children:h});if(A==="permanent")return ce.jsx(Ky,{className:at(I.root,I.docked,g),ownerState:E,ref:l,..._,children:Y});const F=ce.jsx(k,{in:N,direction:Zy[ne],timeout:z,appear:H.current,...B,children:Y});return A==="persistent"?ce.jsx(Ky,{className:at(I.root,I.docked,g),ownerState:E,ref:l,..._,children:F}):ce.jsx(v4,{BackdropProps:{...m,...S,transitionDuration:z},className:at(I.root,I.modal,g),open:N,ownerState:E,onClose:T,hideBackdrop:v,ref:l,..._,...R,children:F})}),w4=({messageOrigin:e,transformBody:r,className:l})=>{const[a,u]=M.useState(!1),[s,f]=M.useState(null);return M.useEffect(()=>{const d=m=>{m.origin===e&&m.data.type==="smoot-design::chat-open"&&(u(!0),f(m.data.payload))};return console.log("Attaching listener"),window.addEventListener("message",d),()=>{window.removeEventListener("message",d)}},[e]),M.createElement(T4,{className:l,PaperProps:{sx:{width:"600px",maxWidth:"100%",boxSizing:"border-box",padding:"24px 40px",".MitAiChat--title":{paddingTop:"0px"}}},anchor:"right",open:a,onClose:()=>u(!1)},s?M.createElement(H5,{...s,requestOpts:{transformBody:r,apiUrl:s==null?void 0:s.apiUrl},onClose:()=>u(!1)}):null)},A4={defaultProps:{disableRipple:!0},styleOverrides:{root:{":focus-visible":{outline:"revert"}}}},Ie={mitRed:"#750014",brightRed:"#FF1423",black:"#000000",white:"#FFFFFF",darkGray2:"#212326",darkGray1:"#40464C",silverGrayDark:"#626A73",silverGray:"#8B959E",silverGrayLight:"#B8C2CC",lightGray2:"#DDE1E6",lightGray1:"#F3F4F8",navGray:"#303337",darkPink:"#750062",pink:"#FF14F0",lightPink:"#FFB3FF",darkPurple:"#3E006B",purple:"#93F",lightPurple:"#BFB3FF",darkBlue:"#002896",blue:"#1966FF",lightBlue:"#99EBFF",darkGreen:"#004D1A",green:"#00AD00",lightGreen:"#AF3",darkRed:"#83192A",red:"#A31F34",lightRed:"#D02E44",orange:"#FAB005",yellow:"#FFEB00"},k4={defaultProps:{size:"medium",color:"default",variant:"outlined",deleteIcon:M.createElement(Dm,{"aria-hidden":"true"})},styleOverrides:{root:{borderRadius:"100vh",borderWidth:"1px"},deleteIcon:{"&:hover":{color:"inherit"},"&.MuiChip-deleteIconLarge":{width:"16px",height:"16px"},"&.MuiChip-deleteIconMedium":{width:"14px",height:"14px"},margin:"0 -2px 0 8px",color:"inherit"},icon:{margin:"0 8px 0 -2px",color:"inherit","&.MuiChip-iconLarge":{width:"16px",height:"16px"},"&.MuiChip-iconMedium":{width:"14px",height:"14px"}}},variants:[{props:{size:"medium"},style:({theme:e})=>({...e.typography.body3,boxSizing:"border-box",height:"24px",paddingRight:"12px",paddingLeft:"12px",".MuiChip-label":{paddingLeft:"0px",paddingRight:"0px"}})},{props:{size:"large"},style:({theme:e})=>({...e.typography.body2,height:"32px",paddingLeft:"16px",paddingRight:"16px",".MuiChip-label":{paddingLeft:"0px",paddingRight:"0px"}})},{props:{variant:"outlined"},style:{borderColor:Ie.silverGrayLight,color:Ie.darkGray1,"&.Mui-focusVisible":{backgroundColor:"transparent"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:Ie.darkGray1,borderColor:Ie.silverGrayDark,backgroundColor:"transparent"}}},{props:{variant:"outlinedWhite"},style:{backgroundColor:"white",border:"1px solid",borderColor:Ie.silverGrayLight,color:Ie.darkGray1,"&.Mui-focusVisible":{backgroundColor:"white"},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:Ie.darkGray1,borderColor:Ie.silverGrayDark,backgroundColor:"white"}}},{props:{variant:"gray"},style:{backgroundColor:Ie.lightGray2,border:"none",color:Ie.darkGray2,"&.Mui-focusVisible":{backgroundColor:Ie.lightGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{color:Ie.darkGray1,backgroundColor:Ie.silverGrayLight}}},{props:{variant:"dark"},style:{backgroundColor:Ie.silverGrayDark,border:"none",color:Ie.white,"&.Mui-focusVisible":{backgroundColor:Ie.silverGrayDark},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:Ie.darkGray1}}},{props:{variant:"darker"},style:{backgroundColor:Ie.darkGray2,border:`1px solid ${Ie.darkGray1}`,color:Ie.white,"&.Mui-focusVisible":{backgroundColor:Ie.darkGray2},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:Ie.black,border:`1px solid ${Ie.silverGray}`}}},{props:{variant:"filled"},style:{backgroundColor:Ie.mitRed,border:"none",color:Ie.white,"&.Mui-focusVisible":{backgroundColor:Ie.mitRed},"&.MuiChip-clickable:hover, &.MuiChip-deletable:hover":{backgroundColor:Ie.red}}}]},R4={colors:Ie,dimensions:{headerHeight:"72px",headerHeightSm:"60px"}},O4={values:{xs:0,sm:600,md:900,lg:1320,xl:1536}},M4={custom:R4,palette:{primary:{main:Ie.mitRed,light:Ie.lightRed,active:Ie.red,contrastText:Ie.white},secondary:{light:Ie.darkGray2,active:Ie.silverGrayDark,main:Ie.black,contrastText:Ie.white}},shape:{borderRadius:8},spacing:8,typography:xm,breakpoints:O4,components:{MuiButtonBase:A4,MuiTypography:B2,MuiMenu:{styleOverrides:{paper:{borderRadius:"4px"}}},MuiAutocomplete:{styleOverrides:{paper:{borderRadius:"4px"},popupIndicator:{paddingRight:0,marginRight:0}}},MuiChip:k4}},_4=(e=>iu(nn(M4,e)))(),D4=({children:e,theme:r=_4})=>M.createElement(N2,{theme:r},e),z4=e=>{const r=document.createElement("div");r.id="smoot-chat-drawer-root",document.body.append(r),jS.createRoot(r).render(M.createElement(D4,null,M.createElement(w4,{...e})))};En.init=z4,Object.defineProperty(En,Symbol.toStringTag,{value:"Module"})});