@mitodl/smoot-design 3.2.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles/remoteAiChatDrawer.es.js +26362 -0
- package/dist/bundles/remoteAiChatDrawer.umd.js +125 -0
- package/dist/cjs/bundles/RemoteAiChatDrawer/RemoteAiChatDrawer.d.ts +28 -0
- package/dist/cjs/bundles/RemoteAiChatDrawer/RemoteAiChatDrawer.js +44 -0
- package/dist/cjs/bundles/RemoteAiChatDrawer/RemoteAiChatDrawer.stories.d.ts +6 -0
- package/dist/cjs/bundles/RemoteAiChatDrawer/RemoteAiChatDrawer.stories.js +63 -0
- package/dist/cjs/bundles/remoteAiChatDrawer.d.ts +3 -0
- package/dist/cjs/bundles/remoteAiChatDrawer.js +15 -0
- package/dist/cjs/components/AiChat/AiChat.js +15 -5
- package/dist/cjs/components/AiChat/AiChat.stories.js +1 -1
- package/dist/esm/bundles/RemoteAiChatDrawer/RemoteAiChatDrawer.d.ts +28 -0
- package/dist/esm/bundles/RemoteAiChatDrawer/RemoteAiChatDrawer.js +41 -0
- package/dist/esm/bundles/RemoteAiChatDrawer/RemoteAiChatDrawer.stories.d.ts +6 -0
- package/dist/esm/bundles/RemoteAiChatDrawer/RemoteAiChatDrawer.stories.js +60 -0
- package/dist/esm/bundles/remoteAiChatDrawer.d.ts +3 -0
- package/dist/esm/bundles/remoteAiChatDrawer.js +12 -0
- package/dist/esm/components/AiChat/AiChat.js +15 -5
- package/dist/esm/components/AiChat/AiChat.stories.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/bundles/aiChat.es.js +0 -24870
- package/dist/bundles/aiChat.umd.js +0 -125
- package/dist/cjs/bundles/aiChat.d.ts +0 -6
- package/dist/cjs/bundles/aiChat.js +0 -13
- package/dist/esm/bundles/aiChat.d.ts +0 -6
- package/dist/esm/bundles/aiChat.js +0 -10
|
@@ -0,0 +1,125 @@
|
|
|
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={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
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={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
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={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react-dom.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
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}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom-client.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
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(`
|
|
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&>===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
|
|
42
|
+
* react-is.production.min.js
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the MIT license found in the
|
|
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={};/**
|
|
49
|
+
* @license React
|
|
50
|
+
* react-jsx-runtime.production.js
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
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})}/**
|
|
58
|
+
* @mui/styled-engine v6.1.6
|
|
59
|
+
*
|
|
60
|
+
* @license MIT
|
|
61
|
+
* This source code is licensed under the MIT license found in the
|
|
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() {
|
|
67
|
+
try {
|
|
68
|
+
let colorScheme = '';
|
|
69
|
+
const mode = localStorage.getItem('${u}') || '${r}';
|
|
70
|
+
const dark = localStorage.getItem('${s}-dark') || '${i}';
|
|
71
|
+
const light = localStorage.getItem('${s}-light') || '${a}';
|
|
72
|
+
if (mode === 'system') {
|
|
73
|
+
// handle system mode
|
|
74
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
75
|
+
if (mql.matches) {
|
|
76
|
+
colorScheme = dark
|
|
77
|
+
} else {
|
|
78
|
+
colorScheme = light
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
if (mode === 'light') {
|
|
82
|
+
colorScheme = light;
|
|
83
|
+
}
|
|
84
|
+
if (mode === 'dark') {
|
|
85
|
+
colorScheme = dark;
|
|
86
|
+
}
|
|
87
|
+
if (colorScheme) {
|
|
88
|
+
${p}
|
|
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';
|
|
91
|
+
|
|
92
|
+
const theme = ${JSON.stringify(r,null,2)};
|
|
93
|
+
|
|
94
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
95
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
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:{}};/*!
|
|
98
|
+
Copyright (c) 2018 Jed Watson.
|
|
99
|
+
Licensed under the MIT License (MIT), see
|
|
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={};/**
|
|
105
|
+
* @license React
|
|
106
|
+
* use-sync-external-store-shim.production.js
|
|
107
|
+
*
|
|
108
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
109
|
+
*
|
|
110
|
+
* This source code is licensed under the MIT license found in the
|
|
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=`
|
|
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"})});
|