Relay firehose browser tools: https://compare.hose.cam
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

update for protocol fix

phil 3f08a9b3 7ffd63f0

+29 -29
+28 -28
docs/assets/index-BvyuZvXE.js docs/assets/index-GCbXm-Bp.js
··· 1 - var GT=Object.defineProperty;var qT=(t,n,i)=>n in t?GT(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i;var Ln=(t,n,i)=>qT(t,typeof n!="symbol"?n+"":n,i);function IT(t,n){for(var i=0;i<n.length;i++){const a=n[i];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in t)){const s=Object.getOwnPropertyDescriptor(a,o);s&&Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function i(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(o){if(o.ep)return;o.ep=!0;const s=i(o);fetch(o.href,s)}})();function jb(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Jd={exports:{}},ho={};/** 1 + var GT=Object.defineProperty;var qT=(t,n,i)=>n in t?GT(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i;var Ln=(t,n,i)=>qT(t,typeof n!="symbol"?n+"":n,i);function IT(t,n){for(var i=0;i<n.length;i++){const a=n[i];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in t)){const u=Object.getOwnPropertyDescriptor(a,o);u&&Object.defineProperty(t,o,u.get?u:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function i(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(o){if(o.ep)return;o.ep=!0;const u=i(o);fetch(o.href,u)}})();function jb(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Jd={exports:{}},ho={};/** 2 2 * @license React 3 3 * react-jsx-runtime.production.js 4 4 * ··· 6 6 * 7 7 * This source code is licensed under the MIT license found in the 8 8 * LICENSE file in the root directory of this source tree. 9 - */var d1;function VT(){if(d1)return ho;d1=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(a,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var f in o)f!=="key"&&(s[f]=o[f])}else s=o;return o=s.ref,{$$typeof:t,type:a,key:c,ref:o!==void 0?o:null,props:s}}return ho.Fragment=n,ho.jsx=i,ho.jsxs=i,ho}var h1;function XT(){return h1||(h1=1,Jd.exports=VT()),Jd.exports}var H=XT(),th={exports:{}},mo={},eh={exports:{}},nh={};/** 9 + */var d1;function VT(){if(d1)return ho;d1=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function i(a,o,u){var c=null;if(u!==void 0&&(c=""+u),o.key!==void 0&&(c=""+o.key),"key"in o){u={};for(var f in o)f!=="key"&&(u[f]=o[f])}else u=o;return o=u.ref,{$$typeof:t,type:a,key:c,ref:o!==void 0?o:null,props:u}}return ho.Fragment=n,ho.jsx=i,ho.jsxs=i,ho}var h1;function XT(){return h1||(h1=1,Jd.exports=VT()),Jd.exports}var H=XT(),th={exports:{}},mo={},eh={exports:{}},nh={};/** 10 10 * @license React 11 11 * scheduler.production.js 12 12 * ··· 14 14 * 15 15 * This source code is licensed under the MIT license found in the 16 16 * LICENSE file in the root directory of this source tree. 17 - */var m1;function PT(){return m1||(m1=1,function(t){function n(j,P){var nt=j.length;j.push(P);t:for(;0<nt;){var ut=nt-1>>>1,N=j[ut];if(0<o(N,P))j[ut]=P,j[nt]=N,nt=ut;else break t}}function i(j){return j.length===0?null:j[0]}function a(j){if(j.length===0)return null;var P=j[0],nt=j.pop();if(nt!==P){j[0]=nt;t:for(var ut=0,N=j.length,F=N>>>1;ut<F;){var at=2*(ut+1)-1,lt=j[at],ct=at+1,yt=j[ct];if(0>o(lt,nt))ct<N&&0>o(yt,lt)?(j[ut]=yt,j[ct]=nt,ut=ct):(j[ut]=lt,j[at]=nt,ut=at);else if(ct<N&&0>o(yt,nt))j[ut]=yt,j[ct]=nt,ut=ct;else break t}}return P}function o(j,P){var nt=j.sortIndex-P.sortIndex;return nt!==0?nt:j.id-P.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 c=Date,f=c.now();t.unstable_now=function(){return c.now()-f}}var m=[],h=[],p=1,y=null,v=3,b=!1,x=!1,S=!1,C=!1,E=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function k(j){for(var P=i(h);P!==null;){if(P.callback===null)a(h);else if(P.startTime<=j)a(h),P.sortIndex=P.expirationTime,n(m,P);else break;P=i(h)}}function M(j){if(S=!1,k(j),!x)if(i(m)!==null)x=!0,_||(_=!0,X());else{var P=i(h);P!==null&&ot(M,P.startTime-j)}}var _=!1,D=-1,L=5,$=-1;function T(){return C?!0:!(t.unstable_now()-$<L)}function z(){if(C=!1,_){var j=t.unstable_now();$=j;var P=!0;try{t:{x=!1,S&&(S=!1,R(D),D=-1),b=!0;var nt=v;try{e:{for(k(j),y=i(m);y!==null&&!(y.expirationTime>j&&T());){var ut=y.callback;if(typeof ut=="function"){y.callback=null,v=y.priorityLevel;var N=ut(y.expirationTime<=j);if(j=t.unstable_now(),typeof N=="function"){y.callback=N,k(j),P=!0;break e}y===i(m)&&a(m),k(j)}else a(m);y=i(m)}if(y!==null)P=!0;else{var F=i(h);F!==null&&ot(M,F.startTime-j),P=!1}}break t}finally{y=null,v=nt,b=!1}P=void 0}}finally{P?X():_=!1}}}var X;if(typeof O=="function")X=function(){O(z)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,it=K.port2;K.port1.onmessage=z,X=function(){it.postMessage(null)}}else X=function(){E(z,0)};function ot(j,P){D=E(function(){j(t.unstable_now())},P)}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(j){j.callback=null},t.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<j?Math.floor(1e3/j):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(j){switch(v){case 1:case 2:case 3:var P=3;break;default:P=v}var nt=v;v=P;try{return j()}finally{v=nt}},t.unstable_requestPaint=function(){C=!0},t.unstable_runWithPriority=function(j,P){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var nt=v;v=j;try{return P()}finally{v=nt}},t.unstable_scheduleCallback=function(j,P,nt){var ut=t.unstable_now();switch(typeof nt=="object"&&nt!==null?(nt=nt.delay,nt=typeof nt=="number"&&0<nt?ut+nt:ut):nt=ut,j){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=nt+N,j={id:p++,callback:P,priorityLevel:j,startTime:nt,expirationTime:N,sortIndex:-1},nt>ut?(j.sortIndex=nt,n(h,j),i(m)===null&&j===i(h)&&(S?(R(D),D=-1):S=!0,ot(M,nt-ut))):(j.sortIndex=N,n(m,j),x||b||(x=!0,_||(_=!0,X()))),j},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(j){var P=v;return function(){var nt=v;v=P;try{return j.apply(this,arguments)}finally{v=nt}}}}(nh)),nh}var g1;function ZT(){return g1||(g1=1,eh.exports=PT()),eh.exports}var rh={exports:{}},Ct={};/** 17 + */var m1;function PT(){return m1||(m1=1,function(t){function n(j,P){var nt=j.length;j.push(P);t:for(;0<nt;){var st=nt-1>>>1,N=j[st];if(0<o(N,P))j[st]=P,j[nt]=N,nt=st;else break t}}function i(j){return j.length===0?null:j[0]}function a(j){if(j.length===0)return null;var P=j[0],nt=j.pop();if(nt!==P){j[0]=nt;t:for(var st=0,N=j.length,F=N>>>1;st<F;){var at=2*(st+1)-1,lt=j[at],ct=at+1,yt=j[ct];if(0>o(lt,nt))ct<N&&0>o(yt,lt)?(j[st]=yt,j[ct]=nt,st=ct):(j[st]=lt,j[at]=nt,st=at);else if(ct<N&&0>o(yt,nt))j[st]=yt,j[ct]=nt,st=ct;else break t}}return P}function o(j,P){var nt=j.sortIndex-P.sortIndex;return nt!==0?nt:j.id-P.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();t.unstable_now=function(){return c.now()-f}}var m=[],h=[],p=1,y=null,v=3,b=!1,x=!1,S=!1,C=!1,E=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function k(j){for(var P=i(h);P!==null;){if(P.callback===null)a(h);else if(P.startTime<=j)a(h),P.sortIndex=P.expirationTime,n(m,P);else break;P=i(h)}}function M(j){if(S=!1,k(j),!x)if(i(m)!==null)x=!0,R||(R=!0,X());else{var P=i(h);P!==null&&ot(M,P.startTime-j)}}var R=!1,D=-1,L=5,$=-1;function T(){return C?!0:!(t.unstable_now()-$<L)}function z(){if(C=!1,R){var j=t.unstable_now();$=j;var P=!0;try{t:{x=!1,S&&(S=!1,_(D),D=-1),b=!0;var nt=v;try{e:{for(k(j),y=i(m);y!==null&&!(y.expirationTime>j&&T());){var st=y.callback;if(typeof st=="function"){y.callback=null,v=y.priorityLevel;var N=st(y.expirationTime<=j);if(j=t.unstable_now(),typeof N=="function"){y.callback=N,k(j),P=!0;break e}y===i(m)&&a(m),k(j)}else a(m);y=i(m)}if(y!==null)P=!0;else{var F=i(h);F!==null&&ot(M,F.startTime-j),P=!1}}break t}finally{y=null,v=nt,b=!1}P=void 0}}finally{P?X():R=!1}}}var X;if(typeof O=="function")X=function(){O(z)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,it=K.port2;K.port1.onmessage=z,X=function(){it.postMessage(null)}}else X=function(){E(z,0)};function ot(j,P){D=E(function(){j(t.unstable_now())},P)}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(j){j.callback=null},t.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<j?Math.floor(1e3/j):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(j){switch(v){case 1:case 2:case 3:var P=3;break;default:P=v}var nt=v;v=P;try{return j()}finally{v=nt}},t.unstable_requestPaint=function(){C=!0},t.unstable_runWithPriority=function(j,P){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var nt=v;v=j;try{return P()}finally{v=nt}},t.unstable_scheduleCallback=function(j,P,nt){var st=t.unstable_now();switch(typeof nt=="object"&&nt!==null?(nt=nt.delay,nt=typeof nt=="number"&&0<nt?st+nt:st):nt=st,j){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=nt+N,j={id:p++,callback:P,priorityLevel:j,startTime:nt,expirationTime:N,sortIndex:-1},nt>st?(j.sortIndex=nt,n(h,j),i(m)===null&&j===i(h)&&(S?(_(D),D=-1):S=!0,ot(M,nt-st))):(j.sortIndex=N,n(m,j),x||b||(x=!0,R||(R=!0,X()))),j},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(j){var P=v;return function(){var nt=v;v=P;try{return j.apply(this,arguments)}finally{v=nt}}}}(nh)),nh}var g1;function ZT(){return g1||(g1=1,eh.exports=PT()),eh.exports}var rh={exports:{}},Ct={};/** 18 18 * @license React 19 19 * react.production.js 20 20 * ··· 22 22 * 23 23 * This source code is licensed under the MIT license found in the 24 24 * LICENSE file in the root directory of this source tree. 25 - */var p1;function QT(){if(p1)return Ct;p1=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator;function v(N){return N===null||typeof N!="object"?null:(N=y&&N[y]||N["@@iterator"],typeof N=="function"?N:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function C(N,F,at){this.props=N,this.context=F,this.refs=S,this.updater=at||b}C.prototype.isReactComponent={},C.prototype.setState=function(N,F){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,F,"setState")},C.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function E(){}E.prototype=C.prototype;function R(N,F,at){this.props=N,this.context=F,this.refs=S,this.updater=at||b}var O=R.prototype=new E;O.constructor=R,x(O,C.prototype),O.isPureReactComponent=!0;var k=Array.isArray,M={H:null,A:null,T:null,S:null,V:null},_=Object.prototype.hasOwnProperty;function D(N,F,at,lt,ct,yt){return at=yt.ref,{$$typeof:t,type:N,key:F,ref:at!==void 0?at:null,props:yt}}function L(N,F){return D(N.type,F,void 0,void 0,void 0,N.props)}function $(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function T(N){var F={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(at){return F[at]})}var z=/\/+/g;function X(N,F){return typeof N=="object"&&N!==null&&N.key!=null?T(""+N.key):F.toString(36)}function K(){}function it(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(K,K):(N.status="pending",N.then(function(F){N.status==="pending"&&(N.status="fulfilled",N.value=F)},function(F){N.status==="pending"&&(N.status="rejected",N.reason=F)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function ot(N,F,at,lt,ct){var yt=typeof N;(yt==="undefined"||yt==="boolean")&&(N=null);var dt=!1;if(N===null)dt=!0;else switch(yt){case"bigint":case"string":case"number":dt=!0;break;case"object":switch(N.$$typeof){case t:case n:dt=!0;break;case p:return dt=N._init,ot(dt(N._payload),F,at,lt,ct)}}if(dt)return ct=ct(N),dt=lt===""?"."+X(N,0):lt,k(ct)?(at="",dt!=null&&(at=dt.replace(z,"$&/")+"/"),ot(ct,F,at,"",function(st){return st})):ct!=null&&($(ct)&&(ct=L(ct,at+(ct.key==null||N&&N.key===ct.key?"":(""+ct.key).replace(z,"$&/")+"/")+dt)),F.push(ct)),1;dt=0;var gt=lt===""?".":lt+":";if(k(N))for(var mt=0;mt<N.length;mt++)lt=N[mt],yt=gt+X(lt,mt),dt+=ot(lt,F,at,yt,ct);else if(mt=v(N),typeof mt=="function")for(N=mt.call(N),mt=0;!(lt=N.next()).done;)lt=lt.value,yt=gt+X(lt,mt++),dt+=ot(lt,F,at,yt,ct);else if(yt==="object"){if(typeof N.then=="function")return ot(it(N),F,at,lt,ct);throw F=String(N),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return dt}function j(N,F,at){if(N==null)return N;var lt=[],ct=0;return ot(N,lt,"","",function(yt){return F.call(at,yt,ct++)}),lt}function P(N){if(N._status===-1){var F=N._result;F=F(),F.then(function(at){(N._status===0||N._status===-1)&&(N._status=1,N._result=at)},function(at){(N._status===0||N._status===-1)&&(N._status=2,N._result=at)}),N._status===-1&&(N._status=0,N._result=F)}if(N._status===1)return N._result.default;throw N._result}var nt=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function ut(){}return Ct.Children={map:j,forEach:function(N,F,at){j(N,function(){F.apply(this,arguments)},at)},count:function(N){var F=0;return j(N,function(){F++}),F},toArray:function(N){return j(N,function(F){return F})||[]},only:function(N){if(!$(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},Ct.Component=C,Ct.Fragment=i,Ct.Profiler=o,Ct.PureComponent=R,Ct.StrictMode=a,Ct.Suspense=m,Ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Ct.__COMPILER_RUNTIME={__proto__:null,c:function(N){return M.H.useMemoCache(N)}},Ct.cache=function(N){return function(){return N.apply(null,arguments)}},Ct.cloneElement=function(N,F,at){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var lt=x({},N.props),ct=N.key,yt=void 0;if(F!=null)for(dt in F.ref!==void 0&&(yt=void 0),F.key!==void 0&&(ct=""+F.key),F)!_.call(F,dt)||dt==="key"||dt==="__self"||dt==="__source"||dt==="ref"&&F.ref===void 0||(lt[dt]=F[dt]);var dt=arguments.length-2;if(dt===1)lt.children=at;else if(1<dt){for(var gt=Array(dt),mt=0;mt<dt;mt++)gt[mt]=arguments[mt+2];lt.children=gt}return D(N.type,ct,void 0,void 0,yt,lt)},Ct.createContext=function(N){return N={$$typeof:c,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:s,_context:N},N},Ct.createElement=function(N,F,at){var lt,ct={},yt=null;if(F!=null)for(lt in F.key!==void 0&&(yt=""+F.key),F)_.call(F,lt)&&lt!=="key"&&lt!=="__self"&&lt!=="__source"&&(ct[lt]=F[lt]);var dt=arguments.length-2;if(dt===1)ct.children=at;else if(1<dt){for(var gt=Array(dt),mt=0;mt<dt;mt++)gt[mt]=arguments[mt+2];ct.children=gt}if(N&&N.defaultProps)for(lt in dt=N.defaultProps,dt)ct[lt]===void 0&&(ct[lt]=dt[lt]);return D(N,yt,void 0,void 0,null,ct)},Ct.createRef=function(){return{current:null}},Ct.forwardRef=function(N){return{$$typeof:f,render:N}},Ct.isValidElement=$,Ct.lazy=function(N){return{$$typeof:p,_payload:{_status:-1,_result:N},_init:P}},Ct.memo=function(N,F){return{$$typeof:h,type:N,compare:F===void 0?null:F}},Ct.startTransition=function(N){var F=M.T,at={};M.T=at;try{var lt=N(),ct=M.S;ct!==null&&ct(at,lt),typeof lt=="object"&&lt!==null&&typeof lt.then=="function"&&lt.then(ut,nt)}catch(yt){nt(yt)}finally{M.T=F}},Ct.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Ct.use=function(N){return M.H.use(N)},Ct.useActionState=function(N,F,at){return M.H.useActionState(N,F,at)},Ct.useCallback=function(N,F){return M.H.useCallback(N,F)},Ct.useContext=function(N){return M.H.useContext(N)},Ct.useDebugValue=function(){},Ct.useDeferredValue=function(N,F){return M.H.useDeferredValue(N,F)},Ct.useEffect=function(N,F,at){var lt=M.H;if(typeof at=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return lt.useEffect(N,F)},Ct.useId=function(){return M.H.useId()},Ct.useImperativeHandle=function(N,F,at){return M.H.useImperativeHandle(N,F,at)},Ct.useInsertionEffect=function(N,F){return M.H.useInsertionEffect(N,F)},Ct.useLayoutEffect=function(N,F){return M.H.useLayoutEffect(N,F)},Ct.useMemo=function(N,F){return M.H.useMemo(N,F)},Ct.useOptimistic=function(N,F){return M.H.useOptimistic(N,F)},Ct.useReducer=function(N,F,at){return M.H.useReducer(N,F,at)},Ct.useRef=function(N){return M.H.useRef(N)},Ct.useState=function(N){return M.H.useState(N)},Ct.useSyncExternalStore=function(N,F,at){return M.H.useSyncExternalStore(N,F,at)},Ct.useTransition=function(){return M.H.useTransition()},Ct.version="19.1.0",Ct}var y1;function ic(){return y1||(y1=1,rh.exports=QT()),rh.exports}var ih={exports:{}},Be={};/** 25 + */var p1;function QT(){if(p1)return Ct;p1=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator;function v(N){return N===null||typeof N!="object"?null:(N=y&&N[y]||N["@@iterator"],typeof N=="function"?N:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function C(N,F,at){this.props=N,this.context=F,this.refs=S,this.updater=at||b}C.prototype.isReactComponent={},C.prototype.setState=function(N,F){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,F,"setState")},C.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function E(){}E.prototype=C.prototype;function _(N,F,at){this.props=N,this.context=F,this.refs=S,this.updater=at||b}var O=_.prototype=new E;O.constructor=_,x(O,C.prototype),O.isPureReactComponent=!0;var k=Array.isArray,M={H:null,A:null,T:null,S:null,V:null},R=Object.prototype.hasOwnProperty;function D(N,F,at,lt,ct,yt){return at=yt.ref,{$$typeof:t,type:N,key:F,ref:at!==void 0?at:null,props:yt}}function L(N,F){return D(N.type,F,void 0,void 0,void 0,N.props)}function $(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function T(N){var F={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(at){return F[at]})}var z=/\/+/g;function X(N,F){return typeof N=="object"&&N!==null&&N.key!=null?T(""+N.key):F.toString(36)}function K(){}function it(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(K,K):(N.status="pending",N.then(function(F){N.status==="pending"&&(N.status="fulfilled",N.value=F)},function(F){N.status==="pending"&&(N.status="rejected",N.reason=F)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function ot(N,F,at,lt,ct){var yt=typeof N;(yt==="undefined"||yt==="boolean")&&(N=null);var dt=!1;if(N===null)dt=!0;else switch(yt){case"bigint":case"string":case"number":dt=!0;break;case"object":switch(N.$$typeof){case t:case n:dt=!0;break;case p:return dt=N._init,ot(dt(N._payload),F,at,lt,ct)}}if(dt)return ct=ct(N),dt=lt===""?"."+X(N,0):lt,k(ct)?(at="",dt!=null&&(at=dt.replace(z,"$&/")+"/"),ot(ct,F,at,"",function(ut){return ut})):ct!=null&&($(ct)&&(ct=L(ct,at+(ct.key==null||N&&N.key===ct.key?"":(""+ct.key).replace(z,"$&/")+"/")+dt)),F.push(ct)),1;dt=0;var gt=lt===""?".":lt+":";if(k(N))for(var mt=0;mt<N.length;mt++)lt=N[mt],yt=gt+X(lt,mt),dt+=ot(lt,F,at,yt,ct);else if(mt=v(N),typeof mt=="function")for(N=mt.call(N),mt=0;!(lt=N.next()).done;)lt=lt.value,yt=gt+X(lt,mt++),dt+=ot(lt,F,at,yt,ct);else if(yt==="object"){if(typeof N.then=="function")return ot(it(N),F,at,lt,ct);throw F=String(N),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return dt}function j(N,F,at){if(N==null)return N;var lt=[],ct=0;return ot(N,lt,"","",function(yt){return F.call(at,yt,ct++)}),lt}function P(N){if(N._status===-1){var F=N._result;F=F(),F.then(function(at){(N._status===0||N._status===-1)&&(N._status=1,N._result=at)},function(at){(N._status===0||N._status===-1)&&(N._status=2,N._result=at)}),N._status===-1&&(N._status=0,N._result=F)}if(N._status===1)return N._result.default;throw N._result}var nt=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function st(){}return Ct.Children={map:j,forEach:function(N,F,at){j(N,function(){F.apply(this,arguments)},at)},count:function(N){var F=0;return j(N,function(){F++}),F},toArray:function(N){return j(N,function(F){return F})||[]},only:function(N){if(!$(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},Ct.Component=C,Ct.Fragment=i,Ct.Profiler=o,Ct.PureComponent=_,Ct.StrictMode=a,Ct.Suspense=m,Ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Ct.__COMPILER_RUNTIME={__proto__:null,c:function(N){return M.H.useMemoCache(N)}},Ct.cache=function(N){return function(){return N.apply(null,arguments)}},Ct.cloneElement=function(N,F,at){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var lt=x({},N.props),ct=N.key,yt=void 0;if(F!=null)for(dt in F.ref!==void 0&&(yt=void 0),F.key!==void 0&&(ct=""+F.key),F)!R.call(F,dt)||dt==="key"||dt==="__self"||dt==="__source"||dt==="ref"&&F.ref===void 0||(lt[dt]=F[dt]);var dt=arguments.length-2;if(dt===1)lt.children=at;else if(1<dt){for(var gt=Array(dt),mt=0;mt<dt;mt++)gt[mt]=arguments[mt+2];lt.children=gt}return D(N.type,ct,void 0,void 0,yt,lt)},Ct.createContext=function(N){return N={$$typeof:c,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:u,_context:N},N},Ct.createElement=function(N,F,at){var lt,ct={},yt=null;if(F!=null)for(lt in F.key!==void 0&&(yt=""+F.key),F)R.call(F,lt)&&lt!=="key"&&lt!=="__self"&&lt!=="__source"&&(ct[lt]=F[lt]);var dt=arguments.length-2;if(dt===1)ct.children=at;else if(1<dt){for(var gt=Array(dt),mt=0;mt<dt;mt++)gt[mt]=arguments[mt+2];ct.children=gt}if(N&&N.defaultProps)for(lt in dt=N.defaultProps,dt)ct[lt]===void 0&&(ct[lt]=dt[lt]);return D(N,yt,void 0,void 0,null,ct)},Ct.createRef=function(){return{current:null}},Ct.forwardRef=function(N){return{$$typeof:f,render:N}},Ct.isValidElement=$,Ct.lazy=function(N){return{$$typeof:p,_payload:{_status:-1,_result:N},_init:P}},Ct.memo=function(N,F){return{$$typeof:h,type:N,compare:F===void 0?null:F}},Ct.startTransition=function(N){var F=M.T,at={};M.T=at;try{var lt=N(),ct=M.S;ct!==null&&ct(at,lt),typeof lt=="object"&&lt!==null&&typeof lt.then=="function"&&lt.then(st,nt)}catch(yt){nt(yt)}finally{M.T=F}},Ct.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Ct.use=function(N){return M.H.use(N)},Ct.useActionState=function(N,F,at){return M.H.useActionState(N,F,at)},Ct.useCallback=function(N,F){return M.H.useCallback(N,F)},Ct.useContext=function(N){return M.H.useContext(N)},Ct.useDebugValue=function(){},Ct.useDeferredValue=function(N,F){return M.H.useDeferredValue(N,F)},Ct.useEffect=function(N,F,at){var lt=M.H;if(typeof at=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return lt.useEffect(N,F)},Ct.useId=function(){return M.H.useId()},Ct.useImperativeHandle=function(N,F,at){return M.H.useImperativeHandle(N,F,at)},Ct.useInsertionEffect=function(N,F){return M.H.useInsertionEffect(N,F)},Ct.useLayoutEffect=function(N,F){return M.H.useLayoutEffect(N,F)},Ct.useMemo=function(N,F){return M.H.useMemo(N,F)},Ct.useOptimistic=function(N,F){return M.H.useOptimistic(N,F)},Ct.useReducer=function(N,F,at){return M.H.useReducer(N,F,at)},Ct.useRef=function(N){return M.H.useRef(N)},Ct.useState=function(N){return M.H.useState(N)},Ct.useSyncExternalStore=function(N,F,at){return M.H.useSyncExternalStore(N,F,at)},Ct.useTransition=function(){return M.H.useTransition()},Ct.version="19.1.0",Ct}var y1;function ic(){return y1||(y1=1,rh.exports=QT()),rh.exports}var ih={exports:{}},Be={};/** 26 26 * @license React 27 27 * react-dom.production.js 28 28 * ··· 30 30 * 31 31 * This source code is licensed under the MIT license found in the 32 32 * LICENSE file in the root directory of this source tree. 33 - */var v1;function KT(){if(v1)return Be;v1=1;var t=ic();function n(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(m,h,p){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:m,containerInfo:h,implementation:p}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Be.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Be.createPortal=function(m,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return s(m,h,null,p)},Be.flushSync=function(m){var h=c.T,p=a.p;try{if(c.T=null,a.p=2,m)return m()}finally{c.T=h,a.p=p,a.d.f()}},Be.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,a.d.C(m,h))},Be.prefetchDNS=function(m){typeof m=="string"&&a.d.D(m)},Be.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var p=h.as,y=f(p,h.crossOrigin),v=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?a.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:v,fetchPriority:b}):p==="script"&&a.d.X(m,{crossOrigin:y,integrity:v,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Be.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=f(h.as,h.crossOrigin);a.d.M(m,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&a.d.M(m)},Be.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,y=f(p,h.crossOrigin);a.d.L(m,p,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Be.preloadModule=function(m,h){if(typeof m=="string")if(h){var p=f(h.as,h.crossOrigin);a.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else a.d.m(m)},Be.requestFormReset=function(m){a.d.r(m)},Be.unstable_batchedUpdates=function(m,h){return m(h)},Be.useFormState=function(m,h,p){return c.H.useFormState(m,h,p)},Be.useFormStatus=function(){return c.H.useHostTransitionStatus()},Be.version="19.1.0",Be}var b1;function $b(){if(b1)return ih.exports;b1=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(n){console.error(n)}}return t(),ih.exports=KT(),ih.exports}/** 33 + */var v1;function KT(){if(v1)return Be;v1=1;var t=ic();function n(m){var h="https://react.dev/errors/"+m;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+m+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(n(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(m,h,p){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:m,containerInfo:h,implementation:p}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(m,h){if(m==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Be.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Be.createPortal=function(m,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return u(m,h,null,p)},Be.flushSync=function(m){var h=c.T,p=a.p;try{if(c.T=null,a.p=2,m)return m()}finally{c.T=h,a.p=p,a.d.f()}},Be.preconnect=function(m,h){typeof m=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,a.d.C(m,h))},Be.prefetchDNS=function(m){typeof m=="string"&&a.d.D(m)},Be.preinit=function(m,h){if(typeof m=="string"&&h&&typeof h.as=="string"){var p=h.as,y=f(p,h.crossOrigin),v=typeof h.integrity=="string"?h.integrity:void 0,b=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?a.d.S(m,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:v,fetchPriority:b}):p==="script"&&a.d.X(m,{crossOrigin:y,integrity:v,fetchPriority:b,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Be.preinitModule=function(m,h){if(typeof m=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=f(h.as,h.crossOrigin);a.d.M(m,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&a.d.M(m)},Be.preload=function(m,h){if(typeof m=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,y=f(p,h.crossOrigin);a.d.L(m,p,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Be.preloadModule=function(m,h){if(typeof m=="string")if(h){var p=f(h.as,h.crossOrigin);a.d.m(m,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else a.d.m(m)},Be.requestFormReset=function(m){a.d.r(m)},Be.unstable_batchedUpdates=function(m,h){return m(h)},Be.useFormState=function(m,h,p){return c.H.useFormState(m,h,p)},Be.useFormStatus=function(){return c.H.useHostTransitionStatus()},Be.version="19.1.0",Be}var b1;function $b(){if(b1)return ih.exports;b1=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(n){console.error(n)}}return t(),ih.exports=KT(),ih.exports}/** 34 34 * @license React 35 35 * react-dom-client.production.js 36 36 * ··· 38 38 * 39 39 * This source code is licensed under the MIT license found in the 40 40 * LICENSE file in the root directory of this source tree. 41 - */var x1;function FT(){if(x1)return mo;x1=1;var t=ZT(),n=ic(),i=$b();function a(e){var r="https://react.dev/errors/"+e;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)r+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var r=e,l=e;if(e.alternate)for(;r.return;)r=r.return;else{e=r;do r=e,(r.flags&4098)!==0&&(l=r.return),e=r.return;while(e)}return r.tag===3?l:null}function c(e){if(e.tag===13){var r=e.memoizedState;if(r===null&&(e=e.alternate,e!==null&&(r=e.memoizedState)),r!==null)return r.dehydrated}return null}function f(e){if(s(e)!==e)throw Error(a(188))}function m(e){var r=e.alternate;if(!r){if(r=s(e),r===null)throw Error(a(188));return r!==e?null:e}for(var l=e,u=r;;){var d=l.return;if(d===null)break;var g=d.alternate;if(g===null){if(u=d.return,u!==null){l=u;continue}break}if(d.child===g.child){for(g=d.child;g;){if(g===l)return f(d),e;if(g===u)return f(d),r;g=g.sibling}throw Error(a(188))}if(l.return!==u.return)l=d,u=g;else{for(var A=!1,w=d.child;w;){if(w===l){A=!0,l=d,u=g;break}if(w===u){A=!0,u=d,l=g;break}w=w.sibling}if(!A){for(w=g.child;w;){if(w===l){A=!0,l=g,u=d;break}if(w===u){A=!0,u=g,l=d;break}w=w.sibling}if(!A)throw Error(a(189))}}if(l.alternate!==u)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?e:r}function h(e){var r=e.tag;if(r===5||r===26||r===27||r===6)return e;for(e=e.child;e!==null;){if(r=h(e),r!==null)return r;e=e.sibling}return null}var p=Object.assign,y=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),R=Symbol.for("react.consumer"),O=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),T=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=z&&e[z]||e["@@iterator"],typeof e=="function"?e:null)}var K=Symbol.for("react.client.reference");function it(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===K?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case x:return"Fragment";case C:return"Profiler";case S:return"StrictMode";case M:return"Suspense";case _:return"SuspenseList";case $:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case b:return"Portal";case O:return(e.displayName||"Context")+".Provider";case R:return(e._context.displayName||"Context")+".Consumer";case k:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case D:return r=e.displayName||null,r!==null?r:it(e.type)||"Memo";case L:r=e._payload,e=e._init;try{return it(e(r))}catch{}}return null}var ot=Array.isArray,j=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt={pending:!1,data:null,method:null,action:null},ut=[],N=-1;function F(e){return{current:e}}function at(e){0>N||(e.current=ut[N],ut[N]=null,N--)}function lt(e,r){N++,ut[N]=e.current,e.current=r}var ct=F(null),yt=F(null),dt=F(null),gt=F(null);function mt(e,r){switch(lt(dt,r),lt(yt,e),lt(ct,null),r.nodeType){case 9:case 11:e=(e=r.documentElement)&&(e=e.namespaceURI)?Hy(e):0;break;default:if(e=r.tagName,r=r.namespaceURI)r=Hy(r),e=Yy(r,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}at(ct),lt(ct,e)}function st(){at(ct),at(yt),at(dt)}function xt(e){e.memoizedState!==null&&lt(gt,e);var r=ct.current,l=Yy(r,e.type);r!==l&&(lt(yt,e),lt(ct,l))}function bt(e){yt.current===e&&(at(ct),at(yt)),gt.current===e&&(at(gt),oo._currentValue=nt)}var rt=Object.prototype.hasOwnProperty,Rt=t.unstable_scheduleCallback,vt=t.unstable_cancelCallback,Bt=t.unstable_shouldYield,Wt=t.unstable_requestPaint,Yt=t.unstable_now,Ae=t.unstable_getCurrentPriorityLevel,se=t.unstable_ImmediatePriority,me=t.unstable_UserBlockingPriority,Kt=t.unstable_NormalPriority,Xe=t.unstable_LowPriority,mn=t.unstable_IdlePriority,gn=t.log,Un=t.unstable_setDisableYieldValue,Ge=null,te=null;function _e(e){if(typeof gn=="function"&&Un(e),te&&typeof te.setStrictMode=="function")try{te.setStrictMode(Ge,e)}catch{}}var Te=Math.clz32?Math.clz32:lr,Ne=Math.log,re=Math.LN2;function lr(e){return e>>>=0,e===0?32:31-(Ne(e)/re|0)|0}var qe=256,Ue=4194304;function or(e){var r=e&42;if(r!==0)return r;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:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 au(e,r,l){var u=e.pendingLanes;if(u===0)return 0;var d=0,g=e.suspendedLanes,A=e.pingedLanes;e=e.warmLanes;var w=u&134217727;return w!==0?(u=w&~g,u!==0?d=or(u):(A&=w,A!==0?d=or(A):l||(l=w&~e,l!==0&&(d=or(l))))):(w=u&~g,w!==0?d=or(w):A!==0?d=or(A):l||(l=u&~e,l!==0&&(d=or(l)))),d===0?0:r!==0&&r!==d&&(r&g)===0&&(g=d&-d,l=r&-r,g>=l||g===32&&(l&4194048)!==0)?r:d}function pl(e,r){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&r)===0}function _2(e,r){switch(e){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+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 T0(){var e=qe;return qe<<=1,(qe&4194048)===0&&(qe=256),e}function C0(){var e=Ue;return Ue<<=1,(Ue&62914560)===0&&(Ue=4194304),e}function Yc(e){for(var r=[],l=0;31>l;l++)r.push(e);return r}function yl(e,r){e.pendingLanes|=r,r!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function R2(e,r,l,u,d,g){var A=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 w=e.entanglements,U=e.expirationTimes,V=e.hiddenUpdates;for(l=A&~l;0<l;){var J=31-Te(l),et=1<<J;w[J]=0,U[J]=-1;var Z=V[J];if(Z!==null)for(V[J]=null,J=0;J<Z.length;J++){var Q=Z[J];Q!==null&&(Q.lane&=-536870913)}l&=~et}u!==0&&w0(e,u,0),g!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=g&~(A&~r))}function w0(e,r,l){e.pendingLanes|=r,e.suspendedLanes&=~r;var u=31-Te(r);e.entangledLanes|=r,e.entanglements[u]=e.entanglements[u]|1073741824|l&4194090}function M0(e,r){var l=e.entangledLanes|=r;for(e=e.entanglements;l;){var u=31-Te(l),d=1<<u;d&r|e[u]&r&&(e[u]|=r),l&=~d}}function Gc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function qc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function E0(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:l1(e.type))}function k2(e,r){var l=P.p;try{return P.p=e,r()}finally{P.p=l}}var Br=Math.random().toString(36).slice(2),je="__reactFiber$"+Br,Pe="__reactProps$"+Br,Zi="__reactContainer$"+Br,Ic="__reactEvents$"+Br,D2="__reactListeners$"+Br,z2="__reactHandles$"+Br,O0="__reactResources$"+Br,vl="__reactMarker$"+Br;function Vc(e){delete e[je],delete e[Pe],delete e[Ic],delete e[D2],delete e[z2]}function Qi(e){var r=e[je];if(r)return r;for(var l=e.parentNode;l;){if(r=l[Zi]||l[je]){if(l=r.alternate,r.child!==null||l!==null&&l.child!==null)for(e=Vy(e);e!==null;){if(l=e[je])return l;e=Vy(e)}return r}e=l,l=e.parentNode}return null}function Ki(e){if(e=e[je]||e[Zi]){var r=e.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return e}return null}function bl(e){var r=e.tag;if(r===5||r===26||r===27||r===6)return e.stateNode;throw Error(a(33))}function Fi(e){var r=e[O0];return r||(r=e[O0]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Ce(e){e[vl]=!0}var _0=new Set,R0={};function di(e,r){Wi(e,r),Wi(e+"Capture",r)}function Wi(e,r){for(R0[e]=r,e=0;e<r.length;e++)_0.add(r[e])}var N2=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]*$"),k0={},D0={};function U2(e){return rt.call(D0,e)?!0:rt.call(k0,e)?!1:N2.test(e)?D0[e]=!0:(k0[e]=!0,!1)}function lu(e,r,l){if(U2(r))if(l===null)e.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(r);return;case"boolean":var u=r.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(r);return}}e.setAttribute(r,""+l)}}function ou(e,r,l){if(l===null)e.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttribute(r,""+l)}}function ur(e,r,l,u){if(u===null)e.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(r,l,""+u)}}var Xc,z0;function Ji(e){if(Xc===void 0)try{throw Error()}catch(l){var r=l.stack.trim().match(/\n( *(at )?)/);Xc=r&&r[1]||"",z0=-1<l.stack.indexOf(` 41 + */var x1;function FT(){if(x1)return mo;x1=1;var t=ZT(),n=ic(),i=$b();function a(e){var r="https://react.dev/errors/"+e;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)r+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var r=e,l=e;if(e.alternate)for(;r.return;)r=r.return;else{e=r;do r=e,(r.flags&4098)!==0&&(l=r.return),e=r.return;while(e)}return r.tag===3?l:null}function c(e){if(e.tag===13){var r=e.memoizedState;if(r===null&&(e=e.alternate,e!==null&&(r=e.memoizedState)),r!==null)return r.dehydrated}return null}function f(e){if(u(e)!==e)throw Error(a(188))}function m(e){var r=e.alternate;if(!r){if(r=u(e),r===null)throw Error(a(188));return r!==e?null:e}for(var l=e,s=r;;){var d=l.return;if(d===null)break;var g=d.alternate;if(g===null){if(s=d.return,s!==null){l=s;continue}break}if(d.child===g.child){for(g=d.child;g;){if(g===l)return f(d),e;if(g===s)return f(d),r;g=g.sibling}throw Error(a(188))}if(l.return!==s.return)l=d,s=g;else{for(var A=!1,w=d.child;w;){if(w===l){A=!0,l=d,s=g;break}if(w===s){A=!0,s=d,l=g;break}w=w.sibling}if(!A){for(w=g.child;w;){if(w===l){A=!0,l=g,s=d;break}if(w===s){A=!0,s=g,l=d;break}w=w.sibling}if(!A)throw Error(a(189))}}if(l.alternate!==s)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?e:r}function h(e){var r=e.tag;if(r===5||r===26||r===27||r===6)return e;for(e=e.child;e!==null;){if(r=h(e),r!==null)return r;e=e.sibling}return null}var p=Object.assign,y=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),_=Symbol.for("react.consumer"),O=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),T=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function X(e){return e===null||typeof e!="object"?null:(e=z&&e[z]||e["@@iterator"],typeof e=="function"?e:null)}var K=Symbol.for("react.client.reference");function it(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===K?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case x:return"Fragment";case C:return"Profiler";case S:return"StrictMode";case M:return"Suspense";case R:return"SuspenseList";case $:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case b:return"Portal";case O:return(e.displayName||"Context")+".Provider";case _:return(e._context.displayName||"Context")+".Consumer";case k:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case D:return r=e.displayName||null,r!==null?r:it(e.type)||"Memo";case L:r=e._payload,e=e._init;try{return it(e(r))}catch{}}return null}var ot=Array.isArray,j=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt={pending:!1,data:null,method:null,action:null},st=[],N=-1;function F(e){return{current:e}}function at(e){0>N||(e.current=st[N],st[N]=null,N--)}function lt(e,r){N++,st[N]=e.current,e.current=r}var ct=F(null),yt=F(null),dt=F(null),gt=F(null);function mt(e,r){switch(lt(dt,r),lt(yt,e),lt(ct,null),r.nodeType){case 9:case 11:e=(e=r.documentElement)&&(e=e.namespaceURI)?Hy(e):0;break;default:if(e=r.tagName,r=r.namespaceURI)r=Hy(r),e=Yy(r,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}at(ct),lt(ct,e)}function ut(){at(ct),at(yt),at(dt)}function xt(e){e.memoizedState!==null&&lt(gt,e);var r=ct.current,l=Yy(r,e.type);r!==l&&(lt(yt,e),lt(ct,l))}function bt(e){yt.current===e&&(at(ct),at(yt)),gt.current===e&&(at(gt),oo._currentValue=nt)}var rt=Object.prototype.hasOwnProperty,_t=t.unstable_scheduleCallback,vt=t.unstable_cancelCallback,Bt=t.unstable_shouldYield,Wt=t.unstable_requestPaint,Yt=t.unstable_now,Ae=t.unstable_getCurrentPriorityLevel,ue=t.unstable_ImmediatePriority,me=t.unstable_UserBlockingPriority,Kt=t.unstable_NormalPriority,Xe=t.unstable_LowPriority,mn=t.unstable_IdlePriority,gn=t.log,Un=t.unstable_setDisableYieldValue,Ge=null,te=null;function Re(e){if(typeof gn=="function"&&Un(e),te&&typeof te.setStrictMode=="function")try{te.setStrictMode(Ge,e)}catch{}}var Te=Math.clz32?Math.clz32:lr,Ne=Math.log,re=Math.LN2;function lr(e){return e>>>=0,e===0?32:31-(Ne(e)/re|0)|0}var qe=256,Ue=4194304;function or(e){var r=e&42;if(r!==0)return r;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:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 as(e,r,l){var s=e.pendingLanes;if(s===0)return 0;var d=0,g=e.suspendedLanes,A=e.pingedLanes;e=e.warmLanes;var w=s&134217727;return w!==0?(s=w&~g,s!==0?d=or(s):(A&=w,A!==0?d=or(A):l||(l=w&~e,l!==0&&(d=or(l))))):(w=s&~g,w!==0?d=or(w):A!==0?d=or(A):l||(l=s&~e,l!==0&&(d=or(l)))),d===0?0:r!==0&&r!==d&&(r&g)===0&&(g=d&-d,l=r&-r,g>=l||g===32&&(l&4194048)!==0)?r:d}function pl(e,r){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&r)===0}function R2(e,r){switch(e){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+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 T0(){var e=qe;return qe<<=1,(qe&4194048)===0&&(qe=256),e}function C0(){var e=Ue;return Ue<<=1,(Ue&62914560)===0&&(Ue=4194304),e}function Yc(e){for(var r=[],l=0;31>l;l++)r.push(e);return r}function yl(e,r){e.pendingLanes|=r,r!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _2(e,r,l,s,d,g){var A=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 w=e.entanglements,U=e.expirationTimes,V=e.hiddenUpdates;for(l=A&~l;0<l;){var J=31-Te(l),et=1<<J;w[J]=0,U[J]=-1;var Z=V[J];if(Z!==null)for(V[J]=null,J=0;J<Z.length;J++){var Q=Z[J];Q!==null&&(Q.lane&=-536870913)}l&=~et}s!==0&&w0(e,s,0),g!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=g&~(A&~r))}function w0(e,r,l){e.pendingLanes|=r,e.suspendedLanes&=~r;var s=31-Te(r);e.entangledLanes|=r,e.entanglements[s]=e.entanglements[s]|1073741824|l&4194090}function M0(e,r){var l=e.entangledLanes|=r;for(e=e.entanglements;l;){var s=31-Te(l),d=1<<s;d&r|e[s]&r&&(e[s]|=r),l&=~d}}function Gc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function qc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function E0(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:l1(e.type))}function k2(e,r){var l=P.p;try{return P.p=e,r()}finally{P.p=l}}var Br=Math.random().toString(36).slice(2),je="__reactFiber$"+Br,Pe="__reactProps$"+Br,Zi="__reactContainer$"+Br,Ic="__reactEvents$"+Br,D2="__reactListeners$"+Br,z2="__reactHandles$"+Br,O0="__reactResources$"+Br,vl="__reactMarker$"+Br;function Vc(e){delete e[je],delete e[Pe],delete e[Ic],delete e[D2],delete e[z2]}function Qi(e){var r=e[je];if(r)return r;for(var l=e.parentNode;l;){if(r=l[Zi]||l[je]){if(l=r.alternate,r.child!==null||l!==null&&l.child!==null)for(e=Vy(e);e!==null;){if(l=e[je])return l;e=Vy(e)}return r}e=l,l=e.parentNode}return null}function Ki(e){if(e=e[je]||e[Zi]){var r=e.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return e}return null}function bl(e){var r=e.tag;if(r===5||r===26||r===27||r===6)return e.stateNode;throw Error(a(33))}function Fi(e){var r=e[O0];return r||(r=e[O0]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Ce(e){e[vl]=!0}var R0=new Set,_0={};function di(e,r){Wi(e,r),Wi(e+"Capture",r)}function Wi(e,r){for(_0[e]=r,e=0;e<r.length;e++)R0.add(r[e])}var N2=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]*$"),k0={},D0={};function U2(e){return rt.call(D0,e)?!0:rt.call(k0,e)?!1:N2.test(e)?D0[e]=!0:(k0[e]=!0,!1)}function ls(e,r,l){if(U2(r))if(l===null)e.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(r);return;case"boolean":var s=r.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(r);return}}e.setAttribute(r,""+l)}}function os(e,r,l){if(l===null)e.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttribute(r,""+l)}}function sr(e,r,l,s){if(s===null)e.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(r,l,""+s)}}var Xc,z0;function Ji(e){if(Xc===void 0)try{throw Error()}catch(l){var r=l.stack.trim().match(/\n( *(at )?)/);Xc=r&&r[1]||"",z0=-1<l.stack.indexOf(` 42 42 at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return` 43 - `+Xc+e+z0}var Pc=!1;function Zc(e,r){if(!e||Pc)return"";Pc=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(r){var et=function(){throw Error()};if(Object.defineProperty(et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(et,[])}catch(Q){var Z=Q}Reflect.construct(e,[],et)}else{try{et.call()}catch(Q){Z=Q}e.call(et.prototype)}}else{try{throw Error()}catch(Q){Z=Q}(et=e())&&typeof et.catch=="function"&&et.catch(function(){})}}catch(Q){if(Q&&Z&&typeof Q.stack=="string")return[Q.stack,Z.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=u.DetermineComponentFrameRoot(),A=g[0],w=g[1];if(A&&w){var U=A.split(` 43 + `+Xc+e+z0}var Pc=!1;function Zc(e,r){if(!e||Pc)return"";Pc=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(r){var et=function(){throw Error()};if(Object.defineProperty(et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(et,[])}catch(Q){var Z=Q}Reflect.construct(e,[],et)}else{try{et.call()}catch(Q){Z=Q}e.call(et.prototype)}}else{try{throw Error()}catch(Q){Z=Q}(et=e())&&typeof et.catch=="function"&&et.catch(function(){})}}catch(Q){if(Q&&Z&&typeof Q.stack=="string")return[Q.stack,Z.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=s.DetermineComponentFrameRoot(),A=g[0],w=g[1];if(A&&w){var U=A.split(` 44 44 `),V=w.split(` 45 - `);for(d=u=0;u<U.length&&!U[u].includes("DetermineComponentFrameRoot");)u++;for(;d<V.length&&!V[d].includes("DetermineComponentFrameRoot");)d++;if(u===U.length||d===V.length)for(u=U.length-1,d=V.length-1;1<=u&&0<=d&&U[u]!==V[d];)d--;for(;1<=u&&0<=d;u--,d--)if(U[u]!==V[d]){if(u!==1||d!==1)do if(u--,d--,0>d||U[u]!==V[d]){var J=` 46 - `+U[u].replace(" at new "," at ");return e.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",e.displayName)),J}while(1<=u&&0<=d);break}}}finally{Pc=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ji(l):""}function j2(e){switch(e.tag){case 26:case 27:case 5:return Ji(e.type);case 16:return Ji("Lazy");case 13:return Ji("Suspense");case 19:return Ji("SuspenseList");case 0:case 15:return Zc(e.type,!1);case 11:return Zc(e.type.render,!1);case 1:return Zc(e.type,!0);case 31:return Ji("Activity");default:return""}}function N0(e){try{var r="";do r+=j2(e),e=e.return;while(e);return r}catch(l){return` 45 + `);for(d=s=0;s<U.length&&!U[s].includes("DetermineComponentFrameRoot");)s++;for(;d<V.length&&!V[d].includes("DetermineComponentFrameRoot");)d++;if(s===U.length||d===V.length)for(s=U.length-1,d=V.length-1;1<=s&&0<=d&&U[s]!==V[d];)d--;for(;1<=s&&0<=d;s--,d--)if(U[s]!==V[d]){if(s!==1||d!==1)do if(s--,d--,0>d||U[s]!==V[d]){var J=` 46 + `+U[s].replace(" at new "," at ");return e.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",e.displayName)),J}while(1<=s&&0<=d);break}}}finally{Pc=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ji(l):""}function j2(e){switch(e.tag){case 26:case 27:case 5:return Ji(e.type);case 16:return Ji("Lazy");case 13:return Ji("Suspense");case 19:return Ji("SuspenseList");case 0:case 15:return Zc(e.type,!1);case 11:return Zc(e.type.render,!1);case 1:return Zc(e.type,!0);case 31:return Ji("Activity");default:return""}}function N0(e){try{var r="";do r+=j2(e),e=e.return;while(e);return r}catch(l){return` 47 47 Error generating stack: `+l.message+` 48 - `+l.stack}}function pn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function U0(e){var r=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function $2(e){var r=U0(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),u=""+e[r];if(!e.hasOwnProperty(r)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,g=l.set;return Object.defineProperty(e,r,{configurable:!0,get:function(){return d.call(this)},set:function(A){u=""+A,g.call(this,A)}}),Object.defineProperty(e,r,{enumerable:l.enumerable}),{getValue:function(){return u},setValue:function(A){u=""+A},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}function uu(e){e._valueTracker||(e._valueTracker=$2(e))}function j0(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var l=r.getValue(),u="";return e&&(u=U0(e)?e.checked?"true":"false":e.value),e=u,e!==l?(r.setValue(e),!0):!1}function su(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 B2=/[\n"\\]/g;function yn(e){return e.replace(B2,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Qc(e,r,l,u,d,g,A,w){e.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.type=A:e.removeAttribute("type"),r!=null?A==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+pn(r)):e.value!==""+pn(r)&&(e.value=""+pn(r)):A!=="submit"&&A!=="reset"||e.removeAttribute("value"),r!=null?Kc(e,A,pn(r)):l!=null?Kc(e,A,pn(l)):u!=null&&e.removeAttribute("value"),d==null&&g!=null&&(e.defaultChecked=!!g),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+pn(w):e.removeAttribute("name")}function $0(e,r,l,u,d,g,A,w){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.type=g),r!=null||l!=null){if(!(g!=="submit"&&g!=="reset"||r!=null))return;l=l!=null?""+pn(l):"",r=r!=null?""+pn(r):l,w||r===e.value||(e.value=r),e.defaultValue=r}u=u??d,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=w?e.checked:!!u,e.defaultChecked=!!u,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(e.name=A)}function Kc(e,r,l){r==="number"&&su(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ta(e,r,l,u){if(e=e.options,r){r={};for(var d=0;d<l.length;d++)r["$"+l[d]]=!0;for(l=0;l<e.length;l++)d=r.hasOwnProperty("$"+e[l].value),e[l].selected!==d&&(e[l].selected=d),d&&u&&(e[l].defaultSelected=!0)}else{for(l=""+pn(l),r=null,d=0;d<e.length;d++){if(e[d].value===l){e[d].selected=!0,u&&(e[d].defaultSelected=!0);return}r!==null||e[d].disabled||(r=e[d])}r!==null&&(r.selected=!0)}}function B0(e,r,l){if(r!=null&&(r=""+pn(r),r!==e.value&&(e.value=r),l==null)){e.defaultValue!==r&&(e.defaultValue=r);return}e.defaultValue=l!=null?""+pn(l):""}function L0(e,r,l,u){if(r==null){if(u!=null){if(l!=null)throw Error(a(92));if(ot(u)){if(1<u.length)throw Error(a(93));u=u[0]}l=u}l==null&&(l=""),r=l}l=pn(r),e.defaultValue=l,u=e.textContent,u===l&&u!==""&&u!==null&&(e.value=u)}function ea(e,r){if(r){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=r;return}}e.textContent=r}var L2=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function H0(e,r,l){var u=r.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="":u?e.setProperty(r,l):typeof l!="number"||l===0||L2.has(r)?r==="float"?e.cssFloat=l:e[r]=(""+l).trim():e[r]=l+"px"}function Y0(e,r,l){if(r!=null&&typeof r!="object")throw Error(a(62));if(e=e.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||r!=null&&r.hasOwnProperty(u)||(u.indexOf("--")===0?e.setProperty(u,""):u==="float"?e.cssFloat="":e[u]="");for(var d in r)u=r[d],r.hasOwnProperty(d)&&l[d]!==u&&H0(e,d,u)}else for(var g in r)r.hasOwnProperty(g)&&H0(e,g,r[g])}function Fc(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 H2=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"]]),Y2=/^[\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 cu(e){return Y2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Wc=null;function Jc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var na=null,ra=null;function G0(e){var r=Ki(e);if(r&&(e=r.stateNode)){var l=e[Pe]||null;t:switch(e=r.stateNode,r.type){case"input":if(Qc(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),r=l.name,l.type==="radio"&&r!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+yn(""+r)+'"][type="radio"]'),r=0;r<l.length;r++){var u=l[r];if(u!==e&&u.form===e.form){var d=u[Pe]||null;if(!d)throw Error(a(90));Qc(u,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(r=0;r<l.length;r++)u=l[r],u.form===e.form&&j0(u)}break t;case"textarea":B0(e,l.value,l.defaultValue);break t;case"select":r=l.value,r!=null&&ta(e,!!l.multiple,r,!1)}}}var tf=!1;function q0(e,r,l){if(tf)return e(r,l);tf=!0;try{var u=e(r);return u}finally{if(tf=!1,(na!==null||ra!==null)&&(Qu(),na&&(r=na,e=ra,ra=na=null,G0(r),e)))for(r=0;r<e.length;r++)G0(e[r])}}function xl(e,r){var l=e.stateNode;if(l===null)return null;var u=l[Pe]||null;if(u===null)return null;l=u[r];t:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break t;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(a(231,r,typeof l));return l}var sr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ef=!1;if(sr)try{var Sl={};Object.defineProperty(Sl,"passive",{get:function(){ef=!0}}),window.addEventListener("test",Sl,Sl),window.removeEventListener("test",Sl,Sl)}catch{ef=!1}var Lr=null,nf=null,fu=null;function I0(){if(fu)return fu;var e,r=nf,l=r.length,u,d="value"in Lr?Lr.value:Lr.textContent,g=d.length;for(e=0;e<l&&r[e]===d[e];e++);var A=l-e;for(u=1;u<=A&&r[l-u]===d[g-u];u++);return fu=d.slice(e,1<u?1-u:void 0)}function du(e){var r=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&r===13&&(e=13)):e=r,e===10&&(e=13),32<=e||e===13?e:0}function hu(){return!0}function V0(){return!1}function Ze(e){function r(l,u,d,g,A){this._reactName=l,this._targetInst=d,this.type=u,this.nativeEvent=g,this.target=A,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(l=e[w],this[w]=l?l(g):g[w]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?hu:V0,this.isPropagationStopped=V0,this}return p(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=hu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=hu)},persist:function(){},isPersistent:hu}),r}var hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mu=Ze(hi),Al=p({},hi,{view:0,detail:0}),G2=Ze(Al),rf,af,Tl,gu=p({},Al,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:of,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!==Tl&&(Tl&&e.type==="mousemove"?(rf=e.screenX-Tl.screenX,af=e.screenY-Tl.screenY):af=rf=0,Tl=e),rf)},movementY:function(e){return"movementY"in e?e.movementY:af}}),X0=Ze(gu),q2=p({},gu,{dataTransfer:0}),I2=Ze(q2),V2=p({},Al,{relatedTarget:0}),lf=Ze(V2),X2=p({},hi,{animationName:0,elapsedTime:0,pseudoElement:0}),P2=Ze(X2),Z2=p({},hi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Q2=Ze(Z2),K2=p({},hi,{data:0}),P0=Ze(K2),F2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},W2={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"},J2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tA(e){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(e):(e=J2[e])?!!r[e]:!1}function of(){return tA}var eA=p({},Al,{key:function(e){if(e.key){var r=F2[e.key]||e.key;if(r!=="Unidentified")return r}return e.type==="keypress"?(e=du(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?W2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:of,charCode:function(e){return e.type==="keypress"?du(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?du(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nA=Ze(eA),rA=p({},gu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Z0=Ze(rA),iA=p({},Al,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:of}),aA=Ze(iA),lA=p({},hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),oA=Ze(lA),uA=p({},gu,{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}),sA=Ze(uA),cA=p({},hi,{newState:0,oldState:0}),fA=Ze(cA),dA=[9,13,27,32],uf=sr&&"CompositionEvent"in window,Cl=null;sr&&"documentMode"in document&&(Cl=document.documentMode);var hA=sr&&"TextEvent"in window&&!Cl,Q0=sr&&(!uf||Cl&&8<Cl&&11>=Cl),K0=" ",F0=!1;function W0(e,r){switch(e){case"keyup":return dA.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function J0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ia=!1;function mA(e,r){switch(e){case"compositionend":return J0(r);case"keypress":return r.which!==32?null:(F0=!0,K0);case"textInput":return e=r.data,e===K0&&F0?null:e;default:return null}}function gA(e,r){if(ia)return e==="compositionend"||!uf&&W0(e,r)?(e=I0(),fu=nf=Lr=null,ia=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Q0&&r.locale!=="ko"?null:r.data;default:return null}}var pA={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 tg(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r==="input"?!!pA[e.type]:r==="textarea"}function eg(e,r,l,u){na?ra?ra.push(u):ra=[u]:na=u,r=es(r,"onChange"),0<r.length&&(l=new mu("onChange","change",null,l,u),e.push({event:l,listeners:r}))}var wl=null,Ml=null;function yA(e){Uy(e,0)}function pu(e){var r=bl(e);if(j0(r))return e}function ng(e,r){if(e==="change")return r}var rg=!1;if(sr){var sf;if(sr){var cf="oninput"in document;if(!cf){var ig=document.createElement("div");ig.setAttribute("oninput","return;"),cf=typeof ig.oninput=="function"}sf=cf}else sf=!1;rg=sf&&(!document.documentMode||9<document.documentMode)}function ag(){wl&&(wl.detachEvent("onpropertychange",lg),Ml=wl=null)}function lg(e){if(e.propertyName==="value"&&pu(Ml)){var r=[];eg(r,Ml,e,Jc(e)),q0(yA,r)}}function vA(e,r,l){e==="focusin"?(ag(),wl=r,Ml=l,wl.attachEvent("onpropertychange",lg)):e==="focusout"&&ag()}function bA(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pu(Ml)}function xA(e,r){if(e==="click")return pu(r)}function SA(e,r){if(e==="input"||e==="change")return pu(r)}function AA(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var nn=typeof Object.is=="function"?Object.is:AA;function El(e,r){if(nn(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;var l=Object.keys(e),u=Object.keys(r);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var d=l[u];if(!rt.call(r,d)||!nn(e[d],r[d]))return!1}return!0}function og(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ug(e,r){var l=og(e);e=0;for(var u;l;){if(l.nodeType===3){if(u=e+l.textContent.length,e<=r&&u>=r)return{node:l,offset:r-e};e=u}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=og(l)}}function sg(e,r){return e&&r?e===r?!0:e&&e.nodeType===3?!1:r&&r.nodeType===3?sg(e,r.parentNode):"contains"in e?e.contains(r):e.compareDocumentPosition?!!(e.compareDocumentPosition(r)&16):!1:!1}function cg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var r=su(e.document);r instanceof e.HTMLIFrameElement;){try{var l=typeof r.contentWindow.location.href=="string"}catch{l=!1}if(l)e=r.contentWindow;else break;r=su(e.document)}return r}function ff(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&(r==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||r==="textarea"||e.contentEditable==="true")}var TA=sr&&"documentMode"in document&&11>=document.documentMode,aa=null,df=null,Ol=null,hf=!1;function fg(e,r,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;hf||aa==null||aa!==su(u)||(u=aa,"selectionStart"in u&&ff(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Ol&&El(Ol,u)||(Ol=u,u=es(df,"onSelect"),0<u.length&&(r=new mu("onSelect","select",null,r,l),e.push({event:r,listeners:u}),r.target=aa)))}function mi(e,r){var l={};return l[e.toLowerCase()]=r.toLowerCase(),l["Webkit"+e]="webkit"+r,l["Moz"+e]="moz"+r,l}var la={animationend:mi("Animation","AnimationEnd"),animationiteration:mi("Animation","AnimationIteration"),animationstart:mi("Animation","AnimationStart"),transitionrun:mi("Transition","TransitionRun"),transitionstart:mi("Transition","TransitionStart"),transitioncancel:mi("Transition","TransitionCancel"),transitionend:mi("Transition","TransitionEnd")},mf={},dg={};sr&&(dg=document.createElement("div").style,"AnimationEvent"in window||(delete la.animationend.animation,delete la.animationiteration.animation,delete la.animationstart.animation),"TransitionEvent"in window||delete la.transitionend.transition);function gi(e){if(mf[e])return mf[e];if(!la[e])return e;var r=la[e],l;for(l in r)if(r.hasOwnProperty(l)&&l in dg)return mf[e]=r[l];return e}var hg=gi("animationend"),mg=gi("animationiteration"),gg=gi("animationstart"),CA=gi("transitionrun"),wA=gi("transitionstart"),MA=gi("transitioncancel"),pg=gi("transitionend"),yg=new Map,gf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");gf.push("scrollEnd");function jn(e,r){yg.set(e,r),di(r,[e])}var vg=new WeakMap;function vn(e,r){if(typeof e=="object"&&e!==null){var l=vg.get(e);return l!==void 0?l:(r={value:e,source:r,stack:N0(r)},vg.set(e,r),r)}return{value:e,source:r,stack:N0(r)}}var bn=[],oa=0,pf=0;function yu(){for(var e=oa,r=pf=oa=0;r<e;){var l=bn[r];bn[r++]=null;var u=bn[r];bn[r++]=null;var d=bn[r];bn[r++]=null;var g=bn[r];if(bn[r++]=null,u!==null&&d!==null){var A=u.pending;A===null?d.next=d:(d.next=A.next,A.next=d),u.pending=d}g!==0&&bg(l,d,g)}}function vu(e,r,l,u){bn[oa++]=e,bn[oa++]=r,bn[oa++]=l,bn[oa++]=u,pf|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function yf(e,r,l,u){return vu(e,r,l,u),bu(e)}function ua(e,r){return vu(e,null,null,r),bu(e)}function bg(e,r,l){e.lanes|=l;var u=e.alternate;u!==null&&(u.lanes|=l);for(var d=!1,g=e.return;g!==null;)g.childLanes|=l,u=g.alternate,u!==null&&(u.childLanes|=l),g.tag===22&&(e=g.stateNode,e===null||e._visibility&1||(d=!0)),e=g,g=g.return;return e.tag===3?(g=e.stateNode,d&&r!==null&&(d=31-Te(l),e=g.hiddenUpdates,u=e[d],u===null?e[d]=[r]:u.push(r),r.lane=l|536870912),g):null}function bu(e){if(50<Jl)throw Jl=0,Td=null,Error(a(185));for(var r=e.return;r!==null;)e=r,r=e.return;return e.tag===3?e.stateNode:null}var sa={};function EA(e,r,l,u){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=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(e,r,l,u){return new EA(e,r,l,u)}function vf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cr(e,r){var l=e.alternate;return l===null?(l=rn(e.tag,r,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=r,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,r=e.dependencies,l.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function xg(e,r){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=r,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,r=l.dependencies,e.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),e}function xu(e,r,l,u,d,g){var A=0;if(u=e,typeof e=="function")vf(e)&&(A=1);else if(typeof e=="string")A=_T(e,l,ct.current)?26:e==="html"||e==="head"||e==="body"?27:5;else t:switch(e){case $:return e=rn(31,l,r,d),e.elementType=$,e.lanes=g,e;case x:return pi(l.children,d,g,r);case S:A=8,d|=24;break;case C:return e=rn(12,l,r,d|2),e.elementType=C,e.lanes=g,e;case M:return e=rn(13,l,r,d),e.elementType=M,e.lanes=g,e;case _:return e=rn(19,l,r,d),e.elementType=_,e.lanes=g,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case E:case O:A=10;break t;case R:A=9;break t;case k:A=11;break t;case D:A=14;break t;case L:A=16,u=null;break t}A=29,l=Error(a(130,e===null?"null":typeof e,"")),u=null}return r=rn(A,l,r,d),r.elementType=e,r.type=u,r.lanes=g,r}function pi(e,r,l,u){return e=rn(7,e,u,r),e.lanes=l,e}function bf(e,r,l){return e=rn(6,e,null,r),e.lanes=l,e}function xf(e,r,l){return r=rn(4,e.children!==null?e.children:[],e.key,r),r.lanes=l,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}var ca=[],fa=0,Su=null,Au=0,xn=[],Sn=0,yi=null,fr=1,dr="";function vi(e,r){ca[fa++]=Au,ca[fa++]=Su,Su=e,Au=r}function Sg(e,r,l){xn[Sn++]=fr,xn[Sn++]=dr,xn[Sn++]=yi,yi=e;var u=fr;e=dr;var d=32-Te(u)-1;u&=~(1<<d),l+=1;var g=32-Te(r)+d;if(30<g){var A=d-d%5;g=(u&(1<<A)-1).toString(32),u>>=A,d-=A,fr=1<<32-Te(r)+d|l<<d|u,dr=g+e}else fr=1<<g|l<<d|u,dr=e}function Sf(e){e.return!==null&&(vi(e,1),Sg(e,1,0))}function Af(e){for(;e===Su;)Su=ca[--fa],ca[fa]=null,Au=ca[--fa],ca[fa]=null;for(;e===yi;)yi=xn[--Sn],xn[Sn]=null,dr=xn[--Sn],xn[Sn]=null,fr=xn[--Sn],xn[Sn]=null}var Ie=null,ae=null,Nt=!1,bi=null,Vn=!1,Tf=Error(a(519));function xi(e){var r=Error(a(418,""));throw kl(vn(r,e)),Tf}function Ag(e){var r=e.stateNode,l=e.type,u=e.memoizedProps;switch(r[je]=e,r[Pe]=u,l){case"dialog":_t("cancel",r),_t("close",r);break;case"iframe":case"object":case"embed":_t("load",r);break;case"video":case"audio":for(l=0;l<eo.length;l++)_t(eo[l],r);break;case"source":_t("error",r);break;case"img":case"image":case"link":_t("error",r),_t("load",r);break;case"details":_t("toggle",r);break;case"input":_t("invalid",r),$0(r,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),uu(r);break;case"select":_t("invalid",r);break;case"textarea":_t("invalid",r),L0(r,u.value,u.defaultValue,u.children),uu(r)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||r.textContent===""+l||u.suppressHydrationWarning===!0||Ly(r.textContent,l)?(u.popover!=null&&(_t("beforetoggle",r),_t("toggle",r)),u.onScroll!=null&&_t("scroll",r),u.onScrollEnd!=null&&_t("scrollend",r),u.onClick!=null&&(r.onclick=ns),r=!0):r=!1,r||xi(e)}function Tg(e){for(Ie=e.return;Ie;)switch(Ie.tag){case 5:case 13:Vn=!1;return;case 27:case 3:Vn=!0;return;default:Ie=Ie.return}}function _l(e){if(e!==Ie)return!1;if(!Nt)return Tg(e),Nt=!0,!1;var r=e.tag,l;if((l=r!==3&&r!==27)&&((l=r===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Ld(e.type,e.memoizedProps)),l=!l),l&&ae&&xi(e),Tg(e),r===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));t:{for(e=e.nextSibling,r=0;e;){if(e.nodeType===8)if(l=e.data,l==="/$"){if(r===0){ae=Bn(e.nextSibling);break t}r--}else l!=="$"&&l!=="$!"&&l!=="$?"||r++;e=e.nextSibling}ae=null}}else r===27?(r=ae,ei(e.type)?(e=qd,qd=null,ae=e):ae=r):ae=Ie?Bn(e.stateNode.nextSibling):null;return!0}function Rl(){ae=Ie=null,Nt=!1}function Cg(){var e=bi;return e!==null&&(Fe===null?Fe=e:Fe.push.apply(Fe,e),bi=null),e}function kl(e){bi===null?bi=[e]:bi.push(e)}var Cf=F(null),Si=null,hr=null;function Hr(e,r,l){lt(Cf,r._currentValue),r._currentValue=l}function mr(e){e._currentValue=Cf.current,at(Cf)}function wf(e,r,l){for(;e!==null;){var u=e.alternate;if((e.childLanes&r)!==r?(e.childLanes|=r,u!==null&&(u.childLanes|=r)):u!==null&&(u.childLanes&r)!==r&&(u.childLanes|=r),e===l)break;e=e.return}}function Mf(e,r,l,u){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var g=d.dependencies;if(g!==null){var A=d.child;g=g.firstContext;t:for(;g!==null;){var w=g;g=d;for(var U=0;U<r.length;U++)if(w.context===r[U]){g.lanes|=l,w=g.alternate,w!==null&&(w.lanes|=l),wf(g.return,l,e),u||(A=null);break t}g=w.next}}else if(d.tag===18){if(A=d.return,A===null)throw Error(a(341));A.lanes|=l,g=A.alternate,g!==null&&(g.lanes|=l),wf(A,l,e),A=null}else A=d.child;if(A!==null)A.return=d;else for(A=d;A!==null;){if(A===e){A=null;break}if(d=A.sibling,d!==null){d.return=A.return,A=d;break}A=A.return}d=A}}function Dl(e,r,l,u){e=null;for(var d=r,g=!1;d!==null;){if(!g){if((d.flags&524288)!==0)g=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var A=d.alternate;if(A===null)throw Error(a(387));if(A=A.memoizedProps,A!==null){var w=d.type;nn(d.pendingProps.value,A.value)||(e!==null?e.push(w):e=[w])}}else if(d===gt.current){if(A=d.alternate,A===null)throw Error(a(387));A.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(oo):e=[oo])}d=d.return}e!==null&&Mf(r,e,l,u),r.flags|=262144}function Tu(e){for(e=e.firstContext;e!==null;){if(!nn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ai(e){Si=e,hr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $e(e){return wg(Si,e)}function Cu(e,r){return Si===null&&Ai(e),wg(e,r)}function wg(e,r){var l=r._currentValue;if(r={context:r,memoizedValue:l,next:null},hr===null){if(e===null)throw Error(a(308));hr=r,e.dependencies={lanes:0,firstContext:r},e.flags|=524288}else hr=hr.next=r;return l}var OA=typeof AbortController<"u"?AbortController:function(){var e=[],r=this.signal={aborted:!1,addEventListener:function(l,u){e.push(u)}};this.abort=function(){r.aborted=!0,e.forEach(function(l){return l()})}},_A=t.unstable_scheduleCallback,RA=t.unstable_NormalPriority,ve={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ef(){return{controller:new OA,data:new Map,refCount:0}}function zl(e){e.refCount--,e.refCount===0&&_A(RA,function(){e.controller.abort()})}var Nl=null,Of=0,da=0,ha=null;function kA(e,r){if(Nl===null){var l=Nl=[];Of=0,da=Rd(),ha={status:"pending",value:void 0,then:function(u){l.push(u)}}}return Of++,r.then(Mg,Mg),r}function Mg(){if(--Of===0&&Nl!==null){ha!==null&&(ha.status="fulfilled");var e=Nl;Nl=null,da=0,ha=null;for(var r=0;r<e.length;r++)(0,e[r])()}}function DA(e,r){var l=[],u={status:"pending",value:null,reason:null,then:function(d){l.push(d)}};return e.then(function(){u.status="fulfilled",u.value=r;for(var d=0;d<l.length;d++)(0,l[d])(r)},function(d){for(u.status="rejected",u.reason=d,d=0;d<l.length;d++)(0,l[d])(void 0)}),u}var Eg=j.S;j.S=function(e,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&kA(e,r),Eg!==null&&Eg(e,r)};var Ti=F(null);function _f(){var e=Ti.current;return e!==null?e:Ft.pooledCache}function wu(e,r){r===null?lt(Ti,Ti.current):lt(Ti,r.pool)}function Og(){var e=_f();return e===null?null:{parent:ve._currentValue,pool:e}}var Ul=Error(a(460)),_g=Error(a(474)),Mu=Error(a(542)),Rf={then:function(){}};function Rg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Eu(){}function kg(e,r,l){switch(l=e[l],l===void 0?e.push(r):l!==r&&(r.then(Eu,Eu),r=l),r.status){case"fulfilled":return r.value;case"rejected":throw e=r.reason,zg(e),e;default:if(typeof r.status=="string")r.then(Eu,Eu);else{if(e=Ft,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=r,e.status="pending",e.then(function(u){if(r.status==="pending"){var d=r;d.status="fulfilled",d.value=u}},function(u){if(r.status==="pending"){var d=r;d.status="rejected",d.reason=u}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw e=r.reason,zg(e),e}throw jl=r,Ul}}var jl=null;function Dg(){if(jl===null)throw Error(a(459));var e=jl;return jl=null,e}function zg(e){if(e===Ul||e===Mu)throw Error(a(483))}var Yr=!1;function kf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Df(e,r){e=e.updateQueue,r.updateQueue===e&&(r.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Gr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function qr(e,r,l){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(Lt&2)!==0){var d=u.pending;return d===null?r.next=r:(r.next=d.next,d.next=r),u.pending=r,r=bu(e),bg(e,null,l),r}return vu(e,u,r,l),bu(e)}function $l(e,r,l){if(r=r.updateQueue,r!==null&&(r=r.shared,(l&4194048)!==0)){var u=r.lanes;u&=e.pendingLanes,l|=u,r.lanes=l,M0(e,l)}}function zf(e,r){var l=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var d=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var A={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};g===null?d=g=A:g=g.next=A,l=l.next}while(l!==null);g===null?d=g=r:g=g.next=r}else d=g=r;l={baseState:u.baseState,firstBaseUpdate:d,lastBaseUpdate:g,shared:u.shared,callbacks:u.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=r:e.next=r,l.lastBaseUpdate=r}var Nf=!1;function Bl(){if(Nf){var e=ha;if(e!==null)throw e}}function Ll(e,r,l,u){Nf=!1;var d=e.updateQueue;Yr=!1;var g=d.firstBaseUpdate,A=d.lastBaseUpdate,w=d.shared.pending;if(w!==null){d.shared.pending=null;var U=w,V=U.next;U.next=null,A===null?g=V:A.next=V,A=U;var J=e.alternate;J!==null&&(J=J.updateQueue,w=J.lastBaseUpdate,w!==A&&(w===null?J.firstBaseUpdate=V:w.next=V,J.lastBaseUpdate=U))}if(g!==null){var et=d.baseState;A=0,J=V=U=null,w=g;do{var Z=w.lane&-536870913,Q=Z!==w.lane;if(Q?(kt&Z)===Z:(u&Z)===Z){Z!==0&&Z===da&&(Nf=!0),J!==null&&(J=J.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});t:{var Tt=e,St=w;Z=r;var It=l;switch(St.tag){case 1:if(Tt=St.payload,typeof Tt=="function"){et=Tt.call(It,et,Z);break t}et=Tt;break t;case 3:Tt.flags=Tt.flags&-65537|128;case 0:if(Tt=St.payload,Z=typeof Tt=="function"?Tt.call(It,et,Z):Tt,Z==null)break t;et=p({},et,Z);break t;case 2:Yr=!0}}Z=w.callback,Z!==null&&(e.flags|=64,Q&&(e.flags|=8192),Q=d.callbacks,Q===null?d.callbacks=[Z]:Q.push(Z))}else Q={lane:Z,tag:w.tag,payload:w.payload,callback:w.callback,next:null},J===null?(V=J=Q,U=et):J=J.next=Q,A|=Z;if(w=w.next,w===null){if(w=d.shared.pending,w===null)break;Q=w,w=Q.next,Q.next=null,d.lastBaseUpdate=Q,d.shared.pending=null}}while(!0);J===null&&(U=et),d.baseState=U,d.firstBaseUpdate=V,d.lastBaseUpdate=J,g===null&&(d.shared.lanes=0),Fr|=A,e.lanes=A,e.memoizedState=et}}function Ng(e,r){if(typeof e!="function")throw Error(a(191,e));e.call(r)}function Ug(e,r){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Ng(l[e],r)}var ma=F(null),Ou=F(0);function jg(e,r){e=Sr,lt(Ou,e),lt(ma,r),Sr=e|r.baseLanes}function Uf(){lt(Ou,Sr),lt(ma,ma.current)}function jf(){Sr=Ou.current,at(ma),at(Ou)}var Ir=0,Mt=null,Gt=null,ge=null,_u=!1,ga=!1,Ci=!1,Ru=0,Hl=0,pa=null,zA=0;function ce(){throw Error(a(321))}function $f(e,r){if(r===null)return!1;for(var l=0;l<r.length&&l<e.length;l++)if(!nn(e[l],r[l]))return!1;return!0}function Bf(e,r,l,u,d,g){return Ir=g,Mt=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,j.H=e===null||e.memoizedState===null?bp:xp,Ci=!1,g=l(u,d),Ci=!1,ga&&(g=Bg(r,l,u,d)),$g(e),g}function $g(e){j.H=ju;var r=Gt!==null&&Gt.next!==null;if(Ir=0,ge=Gt=Mt=null,_u=!1,Hl=0,pa=null,r)throw Error(a(300));e===null||we||(e=e.dependencies,e!==null&&Tu(e)&&(we=!0))}function Bg(e,r,l,u){Mt=e;var d=0;do{if(ga&&(pa=null),Hl=0,ga=!1,25<=d)throw Error(a(301));if(d+=1,ge=Gt=null,e.updateQueue!=null){var g=e.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}j.H=HA,g=r(l,u)}while(ga);return g}function NA(){var e=j.H,r=e.useState()[0];return r=typeof r.then=="function"?Yl(r):r,e=e.useState()[0],(Gt!==null?Gt.memoizedState:null)!==e&&(Mt.flags|=1024),r}function Lf(){var e=Ru!==0;return Ru=0,e}function Hf(e,r,l){r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~l}function Yf(e){if(_u){for(e=e.memoizedState;e!==null;){var r=e.queue;r!==null&&(r.pending=null),e=e.next}_u=!1}Ir=0,ge=Gt=Mt=null,ga=!1,Hl=Ru=0,pa=null}function Qe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ge===null?Mt.memoizedState=ge=e:ge=ge.next=e,ge}function pe(){if(Gt===null){var e=Mt.alternate;e=e!==null?e.memoizedState:null}else e=Gt.next;var r=ge===null?Mt.memoizedState:ge.next;if(r!==null)ge=r,Gt=e;else{if(e===null)throw Mt.alternate===null?Error(a(467)):Error(a(310));Gt=e,e={memoizedState:Gt.memoizedState,baseState:Gt.baseState,baseQueue:Gt.baseQueue,queue:Gt.queue,next:null},ge===null?Mt.memoizedState=ge=e:ge=ge.next=e}return ge}function Gf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yl(e){var r=Hl;return Hl+=1,pa===null&&(pa=[]),e=kg(pa,e,r),r=Mt,(ge===null?r.memoizedState:ge.next)===null&&(r=r.alternate,j.H=r===null||r.memoizedState===null?bp:xp),e}function ku(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Yl(e);if(e.$$typeof===O)return $e(e)}throw Error(a(438,String(e)))}function qf(e){var r=null,l=Mt.updateQueue;if(l!==null&&(r=l.memoCache),r==null){var u=Mt.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(r={data:u.data.map(function(d){return d.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),l===null&&(l=Gf(),Mt.updateQueue=l),l.memoCache=r,l=r.data[r.index],l===void 0)for(l=r.data[r.index]=Array(e),u=0;u<e;u++)l[u]=T;return r.index++,l}function gr(e,r){return typeof r=="function"?r(e):r}function Du(e){var r=pe();return If(r,Gt,e)}function If(e,r,l){var u=e.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=l;var d=e.baseQueue,g=u.pending;if(g!==null){if(d!==null){var A=d.next;d.next=g.next,g.next=A}r.baseQueue=d=g,u.pending=null}if(g=e.baseState,d===null)e.memoizedState=g;else{r=d.next;var w=A=null,U=null,V=r,J=!1;do{var et=V.lane&-536870913;if(et!==V.lane?(kt&et)===et:(Ir&et)===et){var Z=V.revertLane;if(Z===0)U!==null&&(U=U.next={lane:0,revertLane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),et===da&&(J=!0);else if((Ir&Z)===Z){V=V.next,Z===da&&(J=!0);continue}else et={lane:0,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},U===null?(w=U=et,A=g):U=U.next=et,Mt.lanes|=Z,Fr|=Z;et=V.action,Ci&&l(g,et),g=V.hasEagerState?V.eagerState:l(g,et)}else Z={lane:et,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},U===null?(w=U=Z,A=g):U=U.next=Z,Mt.lanes|=et,Fr|=et;V=V.next}while(V!==null&&V!==r);if(U===null?A=g:U.next=w,!nn(g,e.memoizedState)&&(we=!0,J&&(l=ha,l!==null)))throw l;e.memoizedState=g,e.baseState=A,e.baseQueue=U,u.lastRenderedState=g}return d===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function Vf(e){var r=pe(),l=r.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=e;var u=l.dispatch,d=l.pending,g=r.memoizedState;if(d!==null){l.pending=null;var A=d=d.next;do g=e(g,A.action),A=A.next;while(A!==d);nn(g,r.memoizedState)||(we=!0),r.memoizedState=g,r.baseQueue===null&&(r.baseState=g),l.lastRenderedState=g}return[g,u]}function Lg(e,r,l){var u=Mt,d=pe(),g=Nt;if(g){if(l===void 0)throw Error(a(407));l=l()}else l=r();var A=!nn((Gt||d).memoizedState,l);A&&(d.memoizedState=l,we=!0),d=d.queue;var w=Gg.bind(null,u,d,e);if(Gl(2048,8,w,[e]),d.getSnapshot!==r||A||ge!==null&&ge.memoizedState.tag&1){if(u.flags|=2048,ya(9,zu(),Yg.bind(null,u,d,l,r),null),Ft===null)throw Error(a(349));g||(Ir&124)!==0||Hg(u,r,l)}return l}function Hg(e,r,l){e.flags|=16384,e={getSnapshot:r,value:l},r=Mt.updateQueue,r===null?(r=Gf(),Mt.updateQueue=r,r.stores=[e]):(l=r.stores,l===null?r.stores=[e]:l.push(e))}function Yg(e,r,l,u){r.value=l,r.getSnapshot=u,qg(r)&&Ig(e)}function Gg(e,r,l){return l(function(){qg(r)&&Ig(e)})}function qg(e){var r=e.getSnapshot;e=e.value;try{var l=r();return!nn(e,l)}catch{return!0}}function Ig(e){var r=ua(e,2);r!==null&&sn(r,e,2)}function Xf(e){var r=Qe();if(typeof e=="function"){var l=e;if(e=l(),Ci){_e(!0);try{l()}finally{_e(!1)}}}return r.memoizedState=r.baseState=e,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:e},r}function Vg(e,r,l,u){return e.baseState=l,If(e,Gt,typeof u=="function"?u:gr)}function UA(e,r,l,u,d){if(Uu(e))throw Error(a(485));if(e=r.action,e!==null){var g={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){g.listeners.push(A)}};j.T!==null?l(!0):g.isTransition=!1,u(g),l=r.pending,l===null?(g.next=r.pending=g,Xg(r,g)):(g.next=l.next,r.pending=l.next=g)}}function Xg(e,r){var l=r.action,u=r.payload,d=e.state;if(r.isTransition){var g=j.T,A={};j.T=A;try{var w=l(d,u),U=j.S;U!==null&&U(A,w),Pg(e,r,w)}catch(V){Pf(e,r,V)}finally{j.T=g}}else try{g=l(d,u),Pg(e,r,g)}catch(V){Pf(e,r,V)}}function Pg(e,r,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){Zg(e,r,u)},function(u){return Pf(e,r,u)}):Zg(e,r,l)}function Zg(e,r,l){r.status="fulfilled",r.value=l,Qg(r),e.state=l,r=e.pending,r!==null&&(l=r.next,l===r?e.pending=null:(l=l.next,r.next=l,Xg(e,l)))}function Pf(e,r,l){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do r.status="rejected",r.reason=l,Qg(r),r=r.next;while(r!==u)}e.action=null}function Qg(e){e=e.listeners;for(var r=0;r<e.length;r++)(0,e[r])()}function Kg(e,r){return r}function Fg(e,r){if(Nt){var l=Ft.formState;if(l!==null){t:{var u=Mt;if(Nt){if(ae){e:{for(var d=ae,g=Vn;d.nodeType!==8;){if(!g){d=null;break e}if(d=Bn(d.nextSibling),d===null){d=null;break e}}g=d.data,d=g==="F!"||g==="F"?d:null}if(d){ae=Bn(d.nextSibling),u=d.data==="F!";break t}}xi(u)}u=!1}u&&(r=l[0])}}return l=Qe(),l.memoizedState=l.baseState=r,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kg,lastRenderedState:r},l.queue=u,l=pp.bind(null,Mt,u),u.dispatch=l,u=Xf(!1),g=Wf.bind(null,Mt,!1,u.queue),u=Qe(),d={state:r,dispatch:null,action:e,pending:null},u.queue=d,l=UA.bind(null,Mt,d,g,l),d.dispatch=l,u.memoizedState=e,[r,l,!1]}function Wg(e){var r=pe();return Jg(r,Gt,e)}function Jg(e,r,l){if(r=If(e,r,Kg)[0],e=Du(gr)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var u=Yl(r)}catch(A){throw A===Ul?Mu:A}else u=r;r=pe();var d=r.queue,g=d.dispatch;return l!==r.memoizedState&&(Mt.flags|=2048,ya(9,zu(),jA.bind(null,d,l),null)),[u,g,e]}function jA(e,r){e.action=r}function tp(e){var r=pe(),l=Gt;if(l!==null)return Jg(r,l,e);pe(),r=r.memoizedState,l=pe();var u=l.queue.dispatch;return l.memoizedState=e,[r,u,!1]}function ya(e,r,l,u){return e={tag:e,create:l,deps:u,inst:r,next:null},r=Mt.updateQueue,r===null&&(r=Gf(),Mt.updateQueue=r),l=r.lastEffect,l===null?r.lastEffect=e.next=e:(u=l.next,l.next=e,e.next=u,r.lastEffect=e),e}function zu(){return{destroy:void 0,resource:void 0}}function ep(){return pe().memoizedState}function Nu(e,r,l,u){var d=Qe();u=u===void 0?null:u,Mt.flags|=e,d.memoizedState=ya(1|r,zu(),l,u)}function Gl(e,r,l,u){var d=pe();u=u===void 0?null:u;var g=d.memoizedState.inst;Gt!==null&&u!==null&&$f(u,Gt.memoizedState.deps)?d.memoizedState=ya(r,g,l,u):(Mt.flags|=e,d.memoizedState=ya(1|r,g,l,u))}function np(e,r){Nu(8390656,8,e,r)}function rp(e,r){Gl(2048,8,e,r)}function ip(e,r){return Gl(4,2,e,r)}function ap(e,r){return Gl(4,4,e,r)}function lp(e,r){if(typeof r=="function"){e=e();var l=r(e);return function(){typeof l=="function"?l():r(null)}}if(r!=null)return e=e(),r.current=e,function(){r.current=null}}function op(e,r,l){l=l!=null?l.concat([e]):null,Gl(4,4,lp.bind(null,r,e),l)}function Zf(){}function up(e,r){var l=pe();r=r===void 0?null:r;var u=l.memoizedState;return r!==null&&$f(r,u[1])?u[0]:(l.memoizedState=[e,r],e)}function sp(e,r){var l=pe();r=r===void 0?null:r;var u=l.memoizedState;if(r!==null&&$f(r,u[1]))return u[0];if(u=e(),Ci){_e(!0);try{e()}finally{_e(!1)}}return l.memoizedState=[u,r],u}function Qf(e,r,l){return l===void 0||(Ir&1073741824)!==0?e.memoizedState=r:(e.memoizedState=l,e=dy(),Mt.lanes|=e,Fr|=e,l)}function cp(e,r,l,u){return nn(l,r)?l:ma.current!==null?(e=Qf(e,l,u),nn(e,r)||(we=!0),e):(Ir&42)===0?(we=!0,e.memoizedState=l):(e=dy(),Mt.lanes|=e,Fr|=e,r)}function fp(e,r,l,u,d){var g=P.p;P.p=g!==0&&8>g?g:8;var A=j.T,w={};j.T=w,Wf(e,!1,r,l);try{var U=d(),V=j.S;if(V!==null&&V(w,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var J=DA(U,u);ql(e,r,J,un(e))}else ql(e,r,u,un(e))}catch(et){ql(e,r,{then:function(){},status:"rejected",reason:et},un())}finally{P.p=g,j.T=A}}function $A(){}function Kf(e,r,l,u){if(e.tag!==5)throw Error(a(476));var d=dp(e).queue;fp(e,d,r,nt,l===null?$A:function(){return hp(e),l(u)})}function dp(e){var r=e.memoizedState;if(r!==null)return r;r={memoizedState:nt,baseState:nt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:nt},next:null};var l={};return r.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:l},next:null},e.memoizedState=r,e=e.alternate,e!==null&&(e.memoizedState=r),r}function hp(e){var r=dp(e).next.queue;ql(e,r,{},un())}function Ff(){return $e(oo)}function mp(){return pe().memoizedState}function gp(){return pe().memoizedState}function BA(e){for(var r=e.return;r!==null;){switch(r.tag){case 24:case 3:var l=un();e=Gr(l);var u=qr(r,e,l);u!==null&&(sn(u,r,l),$l(u,r,l)),r={cache:Ef()},e.payload=r;return}r=r.return}}function LA(e,r,l){var u=un();l={lane:u,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Uu(e)?yp(r,l):(l=yf(e,r,l,u),l!==null&&(sn(l,e,u),vp(l,r,u)))}function pp(e,r,l){var u=un();ql(e,r,l,u)}function ql(e,r,l,u){var d={lane:u,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Uu(e))yp(r,d);else{var g=e.alternate;if(e.lanes===0&&(g===null||g.lanes===0)&&(g=r.lastRenderedReducer,g!==null))try{var A=r.lastRenderedState,w=g(A,l);if(d.hasEagerState=!0,d.eagerState=w,nn(w,A))return vu(e,r,d,0),Ft===null&&yu(),!1}catch{}finally{}if(l=yf(e,r,d,u),l!==null)return sn(l,e,u),vp(l,r,u),!0}return!1}function Wf(e,r,l,u){if(u={lane:2,revertLane:Rd(),action:u,hasEagerState:!1,eagerState:null,next:null},Uu(e)){if(r)throw Error(a(479))}else r=yf(e,l,u,2),r!==null&&sn(r,e,2)}function Uu(e){var r=e.alternate;return e===Mt||r!==null&&r===Mt}function yp(e,r){ga=_u=!0;var l=e.pending;l===null?r.next=r:(r.next=l.next,l.next=r),e.pending=r}function vp(e,r,l){if((l&4194048)!==0){var u=r.lanes;u&=e.pendingLanes,l|=u,r.lanes=l,M0(e,l)}}var ju={readContext:$e,use:ku,useCallback:ce,useContext:ce,useEffect:ce,useImperativeHandle:ce,useLayoutEffect:ce,useInsertionEffect:ce,useMemo:ce,useReducer:ce,useRef:ce,useState:ce,useDebugValue:ce,useDeferredValue:ce,useTransition:ce,useSyncExternalStore:ce,useId:ce,useHostTransitionStatus:ce,useFormState:ce,useActionState:ce,useOptimistic:ce,useMemoCache:ce,useCacheRefresh:ce},bp={readContext:$e,use:ku,useCallback:function(e,r){return Qe().memoizedState=[e,r===void 0?null:r],e},useContext:$e,useEffect:np,useImperativeHandle:function(e,r,l){l=l!=null?l.concat([e]):null,Nu(4194308,4,lp.bind(null,r,e),l)},useLayoutEffect:function(e,r){return Nu(4194308,4,e,r)},useInsertionEffect:function(e,r){Nu(4,2,e,r)},useMemo:function(e,r){var l=Qe();r=r===void 0?null:r;var u=e();if(Ci){_e(!0);try{e()}finally{_e(!1)}}return l.memoizedState=[u,r],u},useReducer:function(e,r,l){var u=Qe();if(l!==void 0){var d=l(r);if(Ci){_e(!0);try{l(r)}finally{_e(!1)}}}else d=r;return u.memoizedState=u.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},u.queue=e,e=e.dispatch=LA.bind(null,Mt,e),[u.memoizedState,e]},useRef:function(e){var r=Qe();return e={current:e},r.memoizedState=e},useState:function(e){e=Xf(e);var r=e.queue,l=pp.bind(null,Mt,r);return r.dispatch=l,[e.memoizedState,l]},useDebugValue:Zf,useDeferredValue:function(e,r){var l=Qe();return Qf(l,e,r)},useTransition:function(){var e=Xf(!1);return e=fp.bind(null,Mt,e.queue,!0,!1),Qe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,r,l){var u=Mt,d=Qe();if(Nt){if(l===void 0)throw Error(a(407));l=l()}else{if(l=r(),Ft===null)throw Error(a(349));(kt&124)!==0||Hg(u,r,l)}d.memoizedState=l;var g={value:l,getSnapshot:r};return d.queue=g,np(Gg.bind(null,u,g,e),[e]),u.flags|=2048,ya(9,zu(),Yg.bind(null,u,g,l,r),null),l},useId:function(){var e=Qe(),r=Ft.identifierPrefix;if(Nt){var l=dr,u=fr;l=(u&~(1<<32-Te(u)-1)).toString(32)+l,r="«"+r+"R"+l,l=Ru++,0<l&&(r+="H"+l.toString(32)),r+="»"}else l=zA++,r="«"+r+"r"+l.toString(32)+"»";return e.memoizedState=r},useHostTransitionStatus:Ff,useFormState:Fg,useActionState:Fg,useOptimistic:function(e){var r=Qe();r.memoizedState=r.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=l,r=Wf.bind(null,Mt,!0,l),l.dispatch=r,[e,r]},useMemoCache:qf,useCacheRefresh:function(){return Qe().memoizedState=BA.bind(null,Mt)}},xp={readContext:$e,use:ku,useCallback:up,useContext:$e,useEffect:rp,useImperativeHandle:op,useInsertionEffect:ip,useLayoutEffect:ap,useMemo:sp,useReducer:Du,useRef:ep,useState:function(){return Du(gr)},useDebugValue:Zf,useDeferredValue:function(e,r){var l=pe();return cp(l,Gt.memoizedState,e,r)},useTransition:function(){var e=Du(gr)[0],r=pe().memoizedState;return[typeof e=="boolean"?e:Yl(e),r]},useSyncExternalStore:Lg,useId:mp,useHostTransitionStatus:Ff,useFormState:Wg,useActionState:Wg,useOptimistic:function(e,r){var l=pe();return Vg(l,Gt,e,r)},useMemoCache:qf,useCacheRefresh:gp},HA={readContext:$e,use:ku,useCallback:up,useContext:$e,useEffect:rp,useImperativeHandle:op,useInsertionEffect:ip,useLayoutEffect:ap,useMemo:sp,useReducer:Vf,useRef:ep,useState:function(){return Vf(gr)},useDebugValue:Zf,useDeferredValue:function(e,r){var l=pe();return Gt===null?Qf(l,e,r):cp(l,Gt.memoizedState,e,r)},useTransition:function(){var e=Vf(gr)[0],r=pe().memoizedState;return[typeof e=="boolean"?e:Yl(e),r]},useSyncExternalStore:Lg,useId:mp,useHostTransitionStatus:Ff,useFormState:tp,useActionState:tp,useOptimistic:function(e,r){var l=pe();return Gt!==null?Vg(l,Gt,e,r):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:qf,useCacheRefresh:gp},va=null,Il=0;function $u(e){var r=Il;return Il+=1,va===null&&(va=[]),kg(va,e,r)}function Vl(e,r){r=r.props.ref,e.ref=r!==void 0?r:null}function Bu(e,r){throw r.$$typeof===y?Error(a(525)):(e=Object.prototype.toString.call(r),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e)))}function Sp(e){var r=e._init;return r(e._payload)}function Ap(e){function r(G,B){if(e){var q=G.deletions;q===null?(G.deletions=[B],G.flags|=16):q.push(B)}}function l(G,B){if(!e)return null;for(;B!==null;)r(G,B),B=B.sibling;return null}function u(G){for(var B=new Map;G!==null;)G.key!==null?B.set(G.key,G):B.set(G.index,G),G=G.sibling;return B}function d(G,B){return G=cr(G,B),G.index=0,G.sibling=null,G}function g(G,B,q){return G.index=q,e?(q=G.alternate,q!==null?(q=q.index,q<B?(G.flags|=67108866,B):q):(G.flags|=67108866,B)):(G.flags|=1048576,B)}function A(G){return e&&G.alternate===null&&(G.flags|=67108866),G}function w(G,B,q,tt){return B===null||B.tag!==6?(B=bf(q,G.mode,tt),B.return=G,B):(B=d(B,q),B.return=G,B)}function U(G,B,q,tt){var ht=q.type;return ht===x?J(G,B,q.props.children,tt,q.key):B!==null&&(B.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===L&&Sp(ht)===B.type)?(B=d(B,q.props),Vl(B,q),B.return=G,B):(B=xu(q.type,q.key,q.props,null,G.mode,tt),Vl(B,q),B.return=G,B)}function V(G,B,q,tt){return B===null||B.tag!==4||B.stateNode.containerInfo!==q.containerInfo||B.stateNode.implementation!==q.implementation?(B=xf(q,G.mode,tt),B.return=G,B):(B=d(B,q.children||[]),B.return=G,B)}function J(G,B,q,tt,ht){return B===null||B.tag!==7?(B=pi(q,G.mode,tt,ht),B.return=G,B):(B=d(B,q),B.return=G,B)}function et(G,B,q){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=bf(""+B,G.mode,q),B.return=G,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case v:return q=xu(B.type,B.key,B.props,null,G.mode,q),Vl(q,B),q.return=G,q;case b:return B=xf(B,G.mode,q),B.return=G,B;case L:var tt=B._init;return B=tt(B._payload),et(G,B,q)}if(ot(B)||X(B))return B=pi(B,G.mode,q,null),B.return=G,B;if(typeof B.then=="function")return et(G,$u(B),q);if(B.$$typeof===O)return et(G,Cu(G,B),q);Bu(G,B)}return null}function Z(G,B,q,tt){var ht=B!==null?B.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return ht!==null?null:w(G,B,""+q,tt);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case v:return q.key===ht?U(G,B,q,tt):null;case b:return q.key===ht?V(G,B,q,tt):null;case L:return ht=q._init,q=ht(q._payload),Z(G,B,q,tt)}if(ot(q)||X(q))return ht!==null?null:J(G,B,q,tt,null);if(typeof q.then=="function")return Z(G,B,$u(q),tt);if(q.$$typeof===O)return Z(G,B,Cu(G,q),tt);Bu(G,q)}return null}function Q(G,B,q,tt,ht){if(typeof tt=="string"&&tt!==""||typeof tt=="number"||typeof tt=="bigint")return G=G.get(q)||null,w(B,G,""+tt,ht);if(typeof tt=="object"&&tt!==null){switch(tt.$$typeof){case v:return G=G.get(tt.key===null?q:tt.key)||null,U(B,G,tt,ht);case b:return G=G.get(tt.key===null?q:tt.key)||null,V(B,G,tt,ht);case L:var Et=tt._init;return tt=Et(tt._payload),Q(G,B,q,tt,ht)}if(ot(tt)||X(tt))return G=G.get(q)||null,J(B,G,tt,ht,null);if(typeof tt.then=="function")return Q(G,B,q,$u(tt),ht);if(tt.$$typeof===O)return Q(G,B,q,Cu(B,tt),ht);Bu(B,tt)}return null}function Tt(G,B,q,tt){for(var ht=null,Et=null,pt=B,At=B=0,Ee=null;pt!==null&&At<q.length;At++){pt.index>At?(Ee=pt,pt=null):Ee=pt.sibling;var Dt=Z(G,pt,q[At],tt);if(Dt===null){pt===null&&(pt=Ee);break}e&&pt&&Dt.alternate===null&&r(G,pt),B=g(Dt,B,At),Et===null?ht=Dt:Et.sibling=Dt,Et=Dt,pt=Ee}if(At===q.length)return l(G,pt),Nt&&vi(G,At),ht;if(pt===null){for(;At<q.length;At++)pt=et(G,q[At],tt),pt!==null&&(B=g(pt,B,At),Et===null?ht=pt:Et.sibling=pt,Et=pt);return Nt&&vi(G,At),ht}for(pt=u(pt);At<q.length;At++)Ee=Q(pt,G,At,q[At],tt),Ee!==null&&(e&&Ee.alternate!==null&&pt.delete(Ee.key===null?At:Ee.key),B=g(Ee,B,At),Et===null?ht=Ee:Et.sibling=Ee,Et=Ee);return e&&pt.forEach(function(li){return r(G,li)}),Nt&&vi(G,At),ht}function St(G,B,q,tt){if(q==null)throw Error(a(151));for(var ht=null,Et=null,pt=B,At=B=0,Ee=null,Dt=q.next();pt!==null&&!Dt.done;At++,Dt=q.next()){pt.index>At?(Ee=pt,pt=null):Ee=pt.sibling;var li=Z(G,pt,Dt.value,tt);if(li===null){pt===null&&(pt=Ee);break}e&&pt&&li.alternate===null&&r(G,pt),B=g(li,B,At),Et===null?ht=li:Et.sibling=li,Et=li,pt=Ee}if(Dt.done)return l(G,pt),Nt&&vi(G,At),ht;if(pt===null){for(;!Dt.done;At++,Dt=q.next())Dt=et(G,Dt.value,tt),Dt!==null&&(B=g(Dt,B,At),Et===null?ht=Dt:Et.sibling=Dt,Et=Dt);return Nt&&vi(G,At),ht}for(pt=u(pt);!Dt.done;At++,Dt=q.next())Dt=Q(pt,G,At,Dt.value,tt),Dt!==null&&(e&&Dt.alternate!==null&&pt.delete(Dt.key===null?At:Dt.key),B=g(Dt,B,At),Et===null?ht=Dt:Et.sibling=Dt,Et=Dt);return e&&pt.forEach(function(YT){return r(G,YT)}),Nt&&vi(G,At),ht}function It(G,B,q,tt){if(typeof q=="object"&&q!==null&&q.type===x&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case v:t:{for(var ht=q.key;B!==null;){if(B.key===ht){if(ht=q.type,ht===x){if(B.tag===7){l(G,B.sibling),tt=d(B,q.props.children),tt.return=G,G=tt;break t}}else if(B.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===L&&Sp(ht)===B.type){l(G,B.sibling),tt=d(B,q.props),Vl(tt,q),tt.return=G,G=tt;break t}l(G,B);break}else r(G,B);B=B.sibling}q.type===x?(tt=pi(q.props.children,G.mode,tt,q.key),tt.return=G,G=tt):(tt=xu(q.type,q.key,q.props,null,G.mode,tt),Vl(tt,q),tt.return=G,G=tt)}return A(G);case b:t:{for(ht=q.key;B!==null;){if(B.key===ht)if(B.tag===4&&B.stateNode.containerInfo===q.containerInfo&&B.stateNode.implementation===q.implementation){l(G,B.sibling),tt=d(B,q.children||[]),tt.return=G,G=tt;break t}else{l(G,B);break}else r(G,B);B=B.sibling}tt=xf(q,G.mode,tt),tt.return=G,G=tt}return A(G);case L:return ht=q._init,q=ht(q._payload),It(G,B,q,tt)}if(ot(q))return Tt(G,B,q,tt);if(X(q)){if(ht=X(q),typeof ht!="function")throw Error(a(150));return q=ht.call(q),St(G,B,q,tt)}if(typeof q.then=="function")return It(G,B,$u(q),tt);if(q.$$typeof===O)return It(G,B,Cu(G,q),tt);Bu(G,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,B!==null&&B.tag===6?(l(G,B.sibling),tt=d(B,q),tt.return=G,G=tt):(l(G,B),tt=bf(q,G.mode,tt),tt.return=G,G=tt),A(G)):l(G,B)}return function(G,B,q,tt){try{Il=0;var ht=It(G,B,q,tt);return va=null,ht}catch(pt){if(pt===Ul||pt===Mu)throw pt;var Et=rn(29,pt,null,G.mode);return Et.lanes=tt,Et.return=G,Et}finally{}}}var ba=Ap(!0),Tp=Ap(!1),An=F(null),Xn=null;function Vr(e){var r=e.alternate;lt(be,be.current&1),lt(An,e),Xn===null&&(r===null||ma.current!==null||r.memoizedState!==null)&&(Xn=e)}function Cp(e){if(e.tag===22){if(lt(be,be.current),lt(An,e),Xn===null){var r=e.alternate;r!==null&&r.memoizedState!==null&&(Xn=e)}}else Xr()}function Xr(){lt(be,be.current),lt(An,An.current)}function pr(e){at(An),Xn===e&&(Xn=null),at(be)}var be=F(0);function Lu(e){for(var r=e;r!==null;){if(r.tag===13){var l=r.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||Gd(l)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function Jf(e,r,l,u){r=e.memoizedState,l=l(u,r),l=l==null?r:p({},r,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var td={enqueueSetState:function(e,r,l){e=e._reactInternals;var u=un(),d=Gr(u);d.payload=r,l!=null&&(d.callback=l),r=qr(e,d,u),r!==null&&(sn(r,e,u),$l(r,e,u))},enqueueReplaceState:function(e,r,l){e=e._reactInternals;var u=un(),d=Gr(u);d.tag=1,d.payload=r,l!=null&&(d.callback=l),r=qr(e,d,u),r!==null&&(sn(r,e,u),$l(r,e,u))},enqueueForceUpdate:function(e,r){e=e._reactInternals;var l=un(),u=Gr(l);u.tag=2,r!=null&&(u.callback=r),r=qr(e,u,l),r!==null&&(sn(r,e,l),$l(r,e,l))}};function wp(e,r,l,u,d,g,A){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,g,A):r.prototype&&r.prototype.isPureReactComponent?!El(l,u)||!El(d,g):!0}function Mp(e,r,l,u){e=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(l,u),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(l,u),r.state!==e&&td.enqueueReplaceState(r,r.state,null)}function wi(e,r){var l=r;if("ref"in r){l={};for(var u in r)u!=="ref"&&(l[u]=r[u])}if(e=e.defaultProps){l===r&&(l=p({},l));for(var d in e)l[d]===void 0&&(l[d]=e[d])}return l}var Hu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=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(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Ep(e){Hu(e)}function Op(e){console.error(e)}function _p(e){Hu(e)}function Yu(e,r){try{var l=e.onUncaughtError;l(r.value,{componentStack:r.stack})}catch(u){setTimeout(function(){throw u})}}function Rp(e,r,l){try{var u=e.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function ed(e,r,l){return l=Gr(l),l.tag=3,l.payload={element:null},l.callback=function(){Yu(e,r)},l}function kp(e){return e=Gr(e),e.tag=3,e}function Dp(e,r,l,u){var d=l.type.getDerivedStateFromError;if(typeof d=="function"){var g=u.value;e.payload=function(){return d(g)},e.callback=function(){Rp(r,l,u)}}var A=l.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(e.callback=function(){Rp(r,l,u),typeof d!="function"&&(Wr===null?Wr=new Set([this]):Wr.add(this));var w=u.stack;this.componentDidCatch(u.value,{componentStack:w!==null?w:""})})}function YA(e,r,l,u,d){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(r=l.alternate,r!==null&&Dl(r,l,d,!0),l=An.current,l!==null){switch(l.tag){case 13:return Xn===null?wd():l.alternate===null&&le===0&&(le=3),l.flags&=-257,l.flags|=65536,l.lanes=d,u===Rf?l.flags|=16384:(r=l.updateQueue,r===null?l.updateQueue=new Set([u]):r.add(u),Ed(e,u,d)),!1;case 22:return l.flags|=65536,u===Rf?l.flags|=16384:(r=l.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=r):(l=r.retryQueue,l===null?r.retryQueue=new Set([u]):l.add(u)),Ed(e,u,d)),!1}throw Error(a(435,l.tag))}return Ed(e,u,d),wd(),!1}if(Nt)return r=An.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=d,u!==Tf&&(e=Error(a(422),{cause:u}),kl(vn(e,l)))):(u!==Tf&&(r=Error(a(423),{cause:u}),kl(vn(r,l))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,u=vn(u,l),d=ed(e.stateNode,u,d),zf(e,d),le!==4&&(le=2)),!1;var g=Error(a(520),{cause:u});if(g=vn(g,l),Wl===null?Wl=[g]:Wl.push(g),le!==4&&(le=2),r===null)return!0;u=vn(u,l),l=r;do{switch(l.tag){case 3:return l.flags|=65536,e=d&-d,l.lanes|=e,e=ed(l.stateNode,u,e),zf(l,e),!1;case 1:if(r=l.type,g=l.stateNode,(l.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Wr===null||!Wr.has(g))))return l.flags|=65536,d&=-d,l.lanes|=d,d=kp(d),Dp(d,e,l,u),zf(l,d),!1}l=l.return}while(l!==null);return!1}var zp=Error(a(461)),we=!1;function Re(e,r,l,u){r.child=e===null?Tp(r,null,l,u):ba(r,e.child,l,u)}function Np(e,r,l,u,d){l=l.render;var g=r.ref;if("ref"in u){var A={};for(var w in u)w!=="ref"&&(A[w]=u[w])}else A=u;return Ai(r),u=Bf(e,r,l,A,g,d),w=Lf(),e!==null&&!we?(Hf(e,r,d),yr(e,r,d)):(Nt&&w&&Sf(r),r.flags|=1,Re(e,r,u,d),r.child)}function Up(e,r,l,u,d){if(e===null){var g=l.type;return typeof g=="function"&&!vf(g)&&g.defaultProps===void 0&&l.compare===null?(r.tag=15,r.type=g,jp(e,r,g,u,d)):(e=xu(l.type,null,u,r,r.mode,d),e.ref=r.ref,e.return=r,r.child=e)}if(g=e.child,!sd(e,d)){var A=g.memoizedProps;if(l=l.compare,l=l!==null?l:El,l(A,u)&&e.ref===r.ref)return yr(e,r,d)}return r.flags|=1,e=cr(g,u),e.ref=r.ref,e.return=r,r.child=e}function jp(e,r,l,u,d){if(e!==null){var g=e.memoizedProps;if(El(g,u)&&e.ref===r.ref)if(we=!1,r.pendingProps=u=g,sd(e,d))(e.flags&131072)!==0&&(we=!0);else return r.lanes=e.lanes,yr(e,r,d)}return nd(e,r,l,u,d)}function $p(e,r,l){var u=r.pendingProps,d=u.children,g=e!==null?e.memoizedState:null;if(u.mode==="hidden"){if((r.flags&128)!==0){if(u=g!==null?g.baseLanes|l:l,e!==null){for(d=r.child=e.child,g=0;d!==null;)g=g|d.lanes|d.childLanes,d=d.sibling;r.childLanes=g&~u}else r.childLanes=0,r.child=null;return Bp(e,r,u,l)}if((l&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},e!==null&&wu(r,g!==null?g.cachePool:null),g!==null?jg(r,g):Uf(),Cp(r);else return r.lanes=r.childLanes=536870912,Bp(e,r,g!==null?g.baseLanes|l:l,l)}else g!==null?(wu(r,g.cachePool),jg(r,g),Xr(),r.memoizedState=null):(e!==null&&wu(r,null),Uf(),Xr());return Re(e,r,d,l),r.child}function Bp(e,r,l,u){var d=_f();return d=d===null?null:{parent:ve._currentValue,pool:d},r.memoizedState={baseLanes:l,cachePool:d},e!==null&&wu(r,null),Uf(),Cp(r),e!==null&&Dl(e,r,u,!0),null}function Gu(e,r){var l=r.ref;if(l===null)e!==null&&e.ref!==null&&(r.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(e===null||e.ref!==l)&&(r.flags|=4194816)}}function nd(e,r,l,u,d){return Ai(r),l=Bf(e,r,l,u,void 0,d),u=Lf(),e!==null&&!we?(Hf(e,r,d),yr(e,r,d)):(Nt&&u&&Sf(r),r.flags|=1,Re(e,r,l,d),r.child)}function Lp(e,r,l,u,d,g){return Ai(r),r.updateQueue=null,l=Bg(r,u,l,d),$g(e),u=Lf(),e!==null&&!we?(Hf(e,r,g),yr(e,r,g)):(Nt&&u&&Sf(r),r.flags|=1,Re(e,r,l,g),r.child)}function Hp(e,r,l,u,d){if(Ai(r),r.stateNode===null){var g=sa,A=l.contextType;typeof A=="object"&&A!==null&&(g=$e(A)),g=new l(u,g),r.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=td,r.stateNode=g,g._reactInternals=r,g=r.stateNode,g.props=u,g.state=r.memoizedState,g.refs={},kf(r),A=l.contextType,g.context=typeof A=="object"&&A!==null?$e(A):sa,g.state=r.memoizedState,A=l.getDerivedStateFromProps,typeof A=="function"&&(Jf(r,l,A,u),g.state=r.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(A=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),A!==g.state&&td.enqueueReplaceState(g,g.state,null),Ll(r,u,g,d),Bl(),g.state=r.memoizedState),typeof g.componentDidMount=="function"&&(r.flags|=4194308),u=!0}else if(e===null){g=r.stateNode;var w=r.memoizedProps,U=wi(l,w);g.props=U;var V=g.context,J=l.contextType;A=sa,typeof J=="object"&&J!==null&&(A=$e(J));var et=l.getDerivedStateFromProps;J=typeof et=="function"||typeof g.getSnapshotBeforeUpdate=="function",w=r.pendingProps!==w,J||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(w||V!==A)&&Mp(r,g,u,A),Yr=!1;var Z=r.memoizedState;g.state=Z,Ll(r,u,g,d),Bl(),V=r.memoizedState,w||Z!==V||Yr?(typeof et=="function"&&(Jf(r,l,et,u),V=r.memoizedState),(U=Yr||wp(r,l,U,u,Z,V,A))?(J||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(r.flags|=4194308)):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=u,r.memoizedState=V),g.props=u,g.state=V,g.context=A,u=U):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),u=!1)}else{g=r.stateNode,Df(e,r),A=r.memoizedProps,J=wi(l,A),g.props=J,et=r.pendingProps,Z=g.context,V=l.contextType,U=sa,typeof V=="object"&&V!==null&&(U=$e(V)),w=l.getDerivedStateFromProps,(V=typeof w=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(A!==et||Z!==U)&&Mp(r,g,u,U),Yr=!1,Z=r.memoizedState,g.state=Z,Ll(r,u,g,d),Bl();var Q=r.memoizedState;A!==et||Z!==Q||Yr||e!==null&&e.dependencies!==null&&Tu(e.dependencies)?(typeof w=="function"&&(Jf(r,l,w,u),Q=r.memoizedState),(J=Yr||wp(r,l,J,u,Z,Q,U)||e!==null&&e.dependencies!==null&&Tu(e.dependencies))?(V||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(u,Q,U),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(u,Q,U)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||A===e.memoizedProps&&Z===e.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||A===e.memoizedProps&&Z===e.memoizedState||(r.flags|=1024),r.memoizedProps=u,r.memoizedState=Q),g.props=u,g.state=Q,g.context=U,u=J):(typeof g.componentDidUpdate!="function"||A===e.memoizedProps&&Z===e.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||A===e.memoizedProps&&Z===e.memoizedState||(r.flags|=1024),u=!1)}return g=u,Gu(e,r),u=(r.flags&128)!==0,g||u?(g=r.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:g.render(),r.flags|=1,e!==null&&u?(r.child=ba(r,e.child,null,d),r.child=ba(r,null,l,d)):Re(e,r,l,d),r.memoizedState=g.state,e=r.child):e=yr(e,r,d),e}function Yp(e,r,l,u){return Rl(),r.flags|=256,Re(e,r,l,u),r.child}var rd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function id(e){return{baseLanes:e,cachePool:Og()}}function ad(e,r,l){return e=e!==null?e.childLanes&~l:0,r&&(e|=Tn),e}function Gp(e,r,l){var u=r.pendingProps,d=!1,g=(r.flags&128)!==0,A;if((A=g)||(A=e!==null&&e.memoizedState===null?!1:(be.current&2)!==0),A&&(d=!0,r.flags&=-129),A=(r.flags&32)!==0,r.flags&=-33,e===null){if(Nt){if(d?Vr(r):Xr(),Nt){var w=ae,U;if(U=w){t:{for(U=w,w=Vn;U.nodeType!==8;){if(!w){w=null;break t}if(U=Bn(U.nextSibling),U===null){w=null;break t}}w=U}w!==null?(r.memoizedState={dehydrated:w,treeContext:yi!==null?{id:fr,overflow:dr}:null,retryLane:536870912,hydrationErrors:null},U=rn(18,null,null,0),U.stateNode=w,U.return=r,r.child=U,Ie=r,ae=null,U=!0):U=!1}U||xi(r)}if(w=r.memoizedState,w!==null&&(w=w.dehydrated,w!==null))return Gd(w)?r.lanes=32:r.lanes=536870912,null;pr(r)}return w=u.children,u=u.fallback,d?(Xr(),d=r.mode,w=qu({mode:"hidden",children:w},d),u=pi(u,d,l,null),w.return=r,u.return=r,w.sibling=u,r.child=w,d=r.child,d.memoizedState=id(l),d.childLanes=ad(e,A,l),r.memoizedState=rd,u):(Vr(r),ld(r,w))}if(U=e.memoizedState,U!==null&&(w=U.dehydrated,w!==null)){if(g)r.flags&256?(Vr(r),r.flags&=-257,r=od(e,r,l)):r.memoizedState!==null?(Xr(),r.child=e.child,r.flags|=128,r=null):(Xr(),d=u.fallback,w=r.mode,u=qu({mode:"visible",children:u.children},w),d=pi(d,w,l,null),d.flags|=2,u.return=r,d.return=r,u.sibling=d,r.child=u,ba(r,e.child,null,l),u=r.child,u.memoizedState=id(l),u.childLanes=ad(e,A,l),r.memoizedState=rd,r=d);else if(Vr(r),Gd(w)){if(A=w.nextSibling&&w.nextSibling.dataset,A)var V=A.dgst;A=V,u=Error(a(419)),u.stack="",u.digest=A,kl({value:u,source:null,stack:null}),r=od(e,r,l)}else if(we||Dl(e,r,l,!1),A=(l&e.childLanes)!==0,we||A){if(A=Ft,A!==null&&(u=l&-l,u=(u&42)!==0?1:Gc(u),u=(u&(A.suspendedLanes|l))!==0?0:u,u!==0&&u!==U.retryLane))throw U.retryLane=u,ua(e,u),sn(A,e,u),zp;w.data==="$?"||wd(),r=od(e,r,l)}else w.data==="$?"?(r.flags|=192,r.child=e.child,r=null):(e=U.treeContext,ae=Bn(w.nextSibling),Ie=r,Nt=!0,bi=null,Vn=!1,e!==null&&(xn[Sn++]=fr,xn[Sn++]=dr,xn[Sn++]=yi,fr=e.id,dr=e.overflow,yi=r),r=ld(r,u.children),r.flags|=4096);return r}return d?(Xr(),d=u.fallback,w=r.mode,U=e.child,V=U.sibling,u=cr(U,{mode:"hidden",children:u.children}),u.subtreeFlags=U.subtreeFlags&65011712,V!==null?d=cr(V,d):(d=pi(d,w,l,null),d.flags|=2),d.return=r,u.return=r,u.sibling=d,r.child=u,u=d,d=r.child,w=e.child.memoizedState,w===null?w=id(l):(U=w.cachePool,U!==null?(V=ve._currentValue,U=U.parent!==V?{parent:V,pool:V}:U):U=Og(),w={baseLanes:w.baseLanes|l,cachePool:U}),d.memoizedState=w,d.childLanes=ad(e,A,l),r.memoizedState=rd,u):(Vr(r),l=e.child,e=l.sibling,l=cr(l,{mode:"visible",children:u.children}),l.return=r,l.sibling=null,e!==null&&(A=r.deletions,A===null?(r.deletions=[e],r.flags|=16):A.push(e)),r.child=l,r.memoizedState=null,l)}function ld(e,r){return r=qu({mode:"visible",children:r},e.mode),r.return=e,e.child=r}function qu(e,r){return e=rn(22,e,null,r),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function od(e,r,l){return ba(r,e.child,null,l),e=ld(r,r.pendingProps.children),e.flags|=2,r.memoizedState=null,e}function qp(e,r,l){e.lanes|=r;var u=e.alternate;u!==null&&(u.lanes|=r),wf(e.return,r,l)}function ud(e,r,l,u,d){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:d}:(g.isBackwards=r,g.rendering=null,g.renderingStartTime=0,g.last=u,g.tail=l,g.tailMode=d)}function Ip(e,r,l){var u=r.pendingProps,d=u.revealOrder,g=u.tail;if(Re(e,r,u.children,l),u=be.current,(u&2)!==0)u=u&1|2,r.flags|=128;else{if(e!==null&&(e.flags&128)!==0)t:for(e=r.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qp(e,l,r);else if(e.tag===19)qp(e,l,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===r)break t;for(;e.sibling===null;){if(e.return===null||e.return===r)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}u&=1}switch(lt(be,u),d){case"forwards":for(l=r.child,d=null;l!==null;)e=l.alternate,e!==null&&Lu(e)===null&&(d=l),l=l.sibling;l=d,l===null?(d=r.child,r.child=null):(d=l.sibling,l.sibling=null),ud(r,!1,d,l,g);break;case"backwards":for(l=null,d=r.child,r.child=null;d!==null;){if(e=d.alternate,e!==null&&Lu(e)===null){r.child=d;break}e=d.sibling,d.sibling=l,l=d,d=e}ud(r,!0,l,null,g);break;case"together":ud(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function yr(e,r,l){if(e!==null&&(r.dependencies=e.dependencies),Fr|=r.lanes,(l&r.childLanes)===0)if(e!==null){if(Dl(e,r,l,!1),(l&r.childLanes)===0)return null}else return null;if(e!==null&&r.child!==e.child)throw Error(a(153));if(r.child!==null){for(e=r.child,l=cr(e,e.pendingProps),r.child=l,l.return=r;e.sibling!==null;)e=e.sibling,l=l.sibling=cr(e,e.pendingProps),l.return=r;l.sibling=null}return r.child}function sd(e,r){return(e.lanes&r)!==0?!0:(e=e.dependencies,!!(e!==null&&Tu(e)))}function GA(e,r,l){switch(r.tag){case 3:mt(r,r.stateNode.containerInfo),Hr(r,ve,e.memoizedState.cache),Rl();break;case 27:case 5:xt(r);break;case 4:mt(r,r.stateNode.containerInfo);break;case 10:Hr(r,r.type,r.memoizedProps.value);break;case 13:var u=r.memoizedState;if(u!==null)return u.dehydrated!==null?(Vr(r),r.flags|=128,null):(l&r.child.childLanes)!==0?Gp(e,r,l):(Vr(r),e=yr(e,r,l),e!==null?e.sibling:null);Vr(r);break;case 19:var d=(e.flags&128)!==0;if(u=(l&r.childLanes)!==0,u||(Dl(e,r,l,!1),u=(l&r.childLanes)!==0),d){if(u)return Ip(e,r,l);r.flags|=128}if(d=r.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),lt(be,be.current),u)break;return null;case 22:case 23:return r.lanes=0,$p(e,r,l);case 24:Hr(r,ve,e.memoizedState.cache)}return yr(e,r,l)}function Vp(e,r,l){if(e!==null)if(e.memoizedProps!==r.pendingProps)we=!0;else{if(!sd(e,l)&&(r.flags&128)===0)return we=!1,GA(e,r,l);we=(e.flags&131072)!==0}else we=!1,Nt&&(r.flags&1048576)!==0&&Sg(r,Au,r.index);switch(r.lanes=0,r.tag){case 16:t:{e=r.pendingProps;var u=r.elementType,d=u._init;if(u=d(u._payload),r.type=u,typeof u=="function")vf(u)?(e=wi(u,e),r.tag=1,r=Hp(null,r,u,e,l)):(r.tag=0,r=nd(null,r,u,e,l));else{if(u!=null){if(d=u.$$typeof,d===k){r.tag=11,r=Np(null,r,u,e,l);break t}else if(d===D){r.tag=14,r=Up(null,r,u,e,l);break t}}throw r=it(u)||u,Error(a(306,r,""))}}return r;case 0:return nd(e,r,r.type,r.pendingProps,l);case 1:return u=r.type,d=wi(u,r.pendingProps),Hp(e,r,u,d,l);case 3:t:{if(mt(r,r.stateNode.containerInfo),e===null)throw Error(a(387));u=r.pendingProps;var g=r.memoizedState;d=g.element,Df(e,r),Ll(r,u,null,l);var A=r.memoizedState;if(u=A.cache,Hr(r,ve,u),u!==g.cache&&Mf(r,[ve],l,!0),Bl(),u=A.element,g.isDehydrated)if(g={element:u,isDehydrated:!1,cache:A.cache},r.updateQueue.baseState=g,r.memoizedState=g,r.flags&256){r=Yp(e,r,u,l);break t}else if(u!==d){d=vn(Error(a(424)),r),kl(d),r=Yp(e,r,u,l);break t}else{switch(e=r.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ae=Bn(e.firstChild),Ie=r,Nt=!0,bi=null,Vn=!0,l=Tp(r,null,u,l),r.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Rl(),u===d){r=yr(e,r,l);break t}Re(e,r,u,l)}r=r.child}return r;case 26:return Gu(e,r),e===null?(l=Qy(r.type,null,r.pendingProps,null))?r.memoizedState=l:Nt||(l=r.type,e=r.pendingProps,u=rs(dt.current).createElement(l),u[je]=r,u[Pe]=e,De(u,l,e),Ce(u),r.stateNode=u):r.memoizedState=Qy(r.type,e.memoizedProps,r.pendingProps,e.memoizedState),null;case 27:return xt(r),e===null&&Nt&&(u=r.stateNode=Xy(r.type,r.pendingProps,dt.current),Ie=r,Vn=!0,d=ae,ei(r.type)?(qd=d,ae=Bn(u.firstChild)):ae=d),Re(e,r,r.pendingProps.children,l),Gu(e,r),e===null&&(r.flags|=4194304),r.child;case 5:return e===null&&Nt&&((d=u=ae)&&(u=pT(u,r.type,r.pendingProps,Vn),u!==null?(r.stateNode=u,Ie=r,ae=Bn(u.firstChild),Vn=!1,d=!0):d=!1),d||xi(r)),xt(r),d=r.type,g=r.pendingProps,A=e!==null?e.memoizedProps:null,u=g.children,Ld(d,g)?u=null:A!==null&&Ld(d,A)&&(r.flags|=32),r.memoizedState!==null&&(d=Bf(e,r,NA,null,null,l),oo._currentValue=d),Gu(e,r),Re(e,r,u,l),r.child;case 6:return e===null&&Nt&&((e=l=ae)&&(l=yT(l,r.pendingProps,Vn),l!==null?(r.stateNode=l,Ie=r,ae=null,e=!0):e=!1),e||xi(r)),null;case 13:return Gp(e,r,l);case 4:return mt(r,r.stateNode.containerInfo),u=r.pendingProps,e===null?r.child=ba(r,null,u,l):Re(e,r,u,l),r.child;case 11:return Np(e,r,r.type,r.pendingProps,l);case 7:return Re(e,r,r.pendingProps,l),r.child;case 8:return Re(e,r,r.pendingProps.children,l),r.child;case 12:return Re(e,r,r.pendingProps.children,l),r.child;case 10:return u=r.pendingProps,Hr(r,r.type,u.value),Re(e,r,u.children,l),r.child;case 9:return d=r.type._context,u=r.pendingProps.children,Ai(r),d=$e(d),u=u(d),r.flags|=1,Re(e,r,u,l),r.child;case 14:return Up(e,r,r.type,r.pendingProps,l);case 15:return jp(e,r,r.type,r.pendingProps,l);case 19:return Ip(e,r,l);case 31:return u=r.pendingProps,l=r.mode,u={mode:u.mode,children:u.children},e===null?(l=qu(u,l),l.ref=r.ref,r.child=l,l.return=r,r=l):(l=cr(e.child,u),l.ref=r.ref,r.child=l,l.return=r,r=l),r;case 22:return $p(e,r,l);case 24:return Ai(r),u=$e(ve),e===null?(d=_f(),d===null&&(d=Ft,g=Ef(),d.pooledCache=g,g.refCount++,g!==null&&(d.pooledCacheLanes|=l),d=g),r.memoizedState={parent:u,cache:d},kf(r),Hr(r,ve,d)):((e.lanes&l)!==0&&(Df(e,r),Ll(r,null,null,l),Bl()),d=e.memoizedState,g=r.memoizedState,d.parent!==u?(d={parent:u,cache:u},r.memoizedState=d,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=d),Hr(r,ve,u)):(u=g.cache,Hr(r,ve,u),u!==d.cache&&Mf(r,[ve],l,!0))),Re(e,r,r.pendingProps.children,l),r.child;case 29:throw r.pendingProps}throw Error(a(156,r.tag))}function vr(e){e.flags|=4}function Xp(e,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!t1(r)){if(r=An.current,r!==null&&((kt&4194048)===kt?Xn!==null:(kt&62914560)!==kt&&(kt&536870912)===0||r!==Xn))throw jl=Rf,_g;e.flags|=8192}}function Iu(e,r){r!==null&&(e.flags|=4),e.flags&16384&&(r=e.tag!==22?C0():536870912,e.lanes|=r,Ta|=r)}function Xl(e,r){if(!Nt)switch(e.tailMode){case"hidden":r=e.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?r||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function ie(e){var r=e.alternate!==null&&e.alternate.child===e.child,l=0,u=0;if(r)for(var d=e.child;d!==null;)l|=d.lanes|d.childLanes,u|=d.subtreeFlags&65011712,u|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)l|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=u,e.childLanes=l,r}function qA(e,r,l){var u=r.pendingProps;switch(Af(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ie(r),null;case 1:return ie(r),null;case 3:return l=r.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),r.memoizedState.cache!==u&&(r.flags|=2048),mr(ve),st(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(_l(r)?vr(r):e===null||e.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Cg())),ie(r),null;case 26:return l=r.memoizedState,e===null?(vr(r),l!==null?(ie(r),Xp(r,l)):(ie(r),r.flags&=-16777217)):l?l!==e.memoizedState?(vr(r),ie(r),Xp(r,l)):(ie(r),r.flags&=-16777217):(e.memoizedProps!==u&&vr(r),ie(r),r.flags&=-16777217),null;case 27:bt(r),l=dt.current;var d=r.type;if(e!==null&&r.stateNode!=null)e.memoizedProps!==u&&vr(r);else{if(!u){if(r.stateNode===null)throw Error(a(166));return ie(r),null}e=ct.current,_l(r)?Ag(r):(e=Xy(d,u,l),r.stateNode=e,vr(r))}return ie(r),null;case 5:if(bt(r),l=r.type,e!==null&&r.stateNode!=null)e.memoizedProps!==u&&vr(r);else{if(!u){if(r.stateNode===null)throw Error(a(166));return ie(r),null}if(e=ct.current,_l(r))Ag(r);else{switch(d=rs(dt.current),e){case 1:e=d.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:e=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":e=d.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":e=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":e=d.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof u.is=="string"?d.createElement("select",{is:u.is}):d.createElement("select"),u.multiple?e.multiple=!0:u.size&&(e.size=u.size);break;default:e=typeof u.is=="string"?d.createElement(l,{is:u.is}):d.createElement(l)}}e[je]=r,e[Pe]=u;t:for(d=r.child;d!==null;){if(d.tag===5||d.tag===6)e.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===r)break t;for(;d.sibling===null;){if(d.return===null||d.return===r)break t;d=d.return}d.sibling.return=d.return,d=d.sibling}r.stateNode=e;t:switch(De(e,l,u),l){case"button":case"input":case"select":case"textarea":e=!!u.autoFocus;break t;case"img":e=!0;break t;default:e=!1}e&&vr(r)}}return ie(r),r.flags&=-16777217,null;case 6:if(e&&r.stateNode!=null)e.memoizedProps!==u&&vr(r);else{if(typeof u!="string"&&r.stateNode===null)throw Error(a(166));if(e=dt.current,_l(r)){if(e=r.stateNode,l=r.memoizedProps,u=null,d=Ie,d!==null)switch(d.tag){case 27:case 5:u=d.memoizedProps}e[je]=r,e=!!(e.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||Ly(e.nodeValue,l)),e||xi(r)}else e=rs(e).createTextNode(u),e[je]=r,r.stateNode=e}return ie(r),null;case 13:if(u=r.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=_l(r),u!==null&&u.dehydrated!==null){if(e===null){if(!d)throw Error(a(318));if(d=r.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(a(317));d[je]=r}else Rl(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ie(r),d=!1}else d=Cg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return r.flags&256?(pr(r),r):(pr(r),null)}if(pr(r),(r.flags&128)!==0)return r.lanes=l,r;if(l=u!==null,e=e!==null&&e.memoizedState!==null,l){u=r.child,d=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(d=u.alternate.memoizedState.cachePool.pool);var g=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),g!==d&&(u.flags|=2048)}return l!==e&&l&&(r.child.flags|=8192),Iu(r,r.updateQueue),ie(r),null;case 4:return st(),e===null&&Nd(r.stateNode.containerInfo),ie(r),null;case 10:return mr(r.type),ie(r),null;case 19:if(at(be),d=r.memoizedState,d===null)return ie(r),null;if(u=(r.flags&128)!==0,g=d.rendering,g===null)if(u)Xl(d,!1);else{if(le!==0||e!==null&&(e.flags&128)!==0)for(e=r.child;e!==null;){if(g=Lu(e),g!==null){for(r.flags|=128,Xl(d,!1),e=g.updateQueue,r.updateQueue=e,Iu(r,e),r.subtreeFlags=0,e=l,l=r.child;l!==null;)xg(l,e),l=l.sibling;return lt(be,be.current&1|2),r.child}e=e.sibling}d.tail!==null&&Yt()>Pu&&(r.flags|=128,u=!0,Xl(d,!1),r.lanes=4194304)}else{if(!u)if(e=Lu(g),e!==null){if(r.flags|=128,u=!0,e=e.updateQueue,r.updateQueue=e,Iu(r,e),Xl(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!Nt)return ie(r),null}else 2*Yt()-d.renderingStartTime>Pu&&l!==536870912&&(r.flags|=128,u=!0,Xl(d,!1),r.lanes=4194304);d.isBackwards?(g.sibling=r.child,r.child=g):(e=d.last,e!==null?e.sibling=g:r.child=g,d.last=g)}return d.tail!==null?(r=d.tail,d.rendering=r,d.tail=r.sibling,d.renderingStartTime=Yt(),r.sibling=null,e=be.current,lt(be,u?e&1|2:e&1),r):(ie(r),null);case 22:case 23:return pr(r),jf(),u=r.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(r.flags|=8192):u&&(r.flags|=8192),u?(l&536870912)!==0&&(r.flags&128)===0&&(ie(r),r.subtreeFlags&6&&(r.flags|=8192)):ie(r),l=r.updateQueue,l!==null&&Iu(r,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==l&&(r.flags|=2048),e!==null&&at(Ti),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),mr(ve),ie(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function IA(e,r){switch(Af(r),r.tag){case 1:return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 3:return mr(ve),st(),e=r.flags,(e&65536)!==0&&(e&128)===0?(r.flags=e&-65537|128,r):null;case 26:case 27:case 5:return bt(r),null;case 13:if(pr(r),e=r.memoizedState,e!==null&&e.dehydrated!==null){if(r.alternate===null)throw Error(a(340));Rl()}return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 19:return at(be),null;case 4:return st(),null;case 10:return mr(r.type),null;case 22:case 23:return pr(r),jf(),e!==null&&at(Ti),e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 24:return mr(ve),null;case 25:return null;default:return null}}function Pp(e,r){switch(Af(r),r.tag){case 3:mr(ve),st();break;case 26:case 27:case 5:bt(r);break;case 4:st();break;case 13:pr(r);break;case 19:at(be);break;case 10:mr(r.type);break;case 22:case 23:pr(r),jf(),e!==null&&at(Ti);break;case 24:mr(ve)}}function Pl(e,r){try{var l=r.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var d=u.next;l=d;do{if((l.tag&e)===e){u=void 0;var g=l.create,A=l.inst;u=g(),A.destroy=u}l=l.next}while(l!==d)}}catch(w){Xt(r,r.return,w)}}function Pr(e,r,l){try{var u=r.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var g=d.next;u=g;do{if((u.tag&e)===e){var A=u.inst,w=A.destroy;if(w!==void 0){A.destroy=void 0,d=r;var U=l,V=w;try{V()}catch(J){Xt(d,U,J)}}}u=u.next}while(u!==g)}}catch(J){Xt(r,r.return,J)}}function Zp(e){var r=e.updateQueue;if(r!==null){var l=e.stateNode;try{Ug(r,l)}catch(u){Xt(e,e.return,u)}}}function Qp(e,r,l){l.props=wi(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(u){Xt(e,r,u)}}function Zl(e,r){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var u=e.stateNode;break;case 30:u=e.stateNode;break;default:u=e.stateNode}typeof l=="function"?e.refCleanup=l(u):l.current=u}}catch(d){Xt(e,r,d)}}function Pn(e,r){var l=e.ref,u=e.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(d){Xt(e,r,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(d){Xt(e,r,d)}else l.current=null}function Kp(e){var r=e.type,l=e.memoizedProps,u=e.stateNode;try{t:switch(r){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break t;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(d){Xt(e,e.return,d)}}function cd(e,r,l){try{var u=e.stateNode;fT(u,e.type,l,r),u[Pe]=r}catch(d){Xt(e,e.return,d)}}function Fp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ei(e.type)||e.tag===4}function fd(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||Fp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ei(e.type)||e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function dd(e,r,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,r?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,r):(r=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,r.appendChild(e),l=l._reactRootContainer,l!=null||r.onclick!==null||(r.onclick=ns));else if(u!==4&&(u===27&&ei(e.type)&&(l=e.stateNode,r=null),e=e.child,e!==null))for(dd(e,r,l),e=e.sibling;e!==null;)dd(e,r,l),e=e.sibling}function Vu(e,r,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,r?l.insertBefore(e,r):l.appendChild(e);else if(u!==4&&(u===27&&ei(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Vu(e,r,l),e=e.sibling;e!==null;)Vu(e,r,l),e=e.sibling}function Wp(e){var r=e.stateNode,l=e.memoizedProps;try{for(var u=e.type,d=r.attributes;d.length;)r.removeAttributeNode(d[0]);De(r,u,l),r[je]=e,r[Pe]=l}catch(g){Xt(e,e.return,g)}}var br=!1,fe=!1,hd=!1,Jp=typeof WeakSet=="function"?WeakSet:Set,Me=null;function VA(e,r){if(e=e.containerInfo,$d=ss,e=cg(e),ff(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else t:{l=(l=e.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var d=u.anchorOffset,g=u.focusNode;u=u.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break t}var A=0,w=-1,U=-1,V=0,J=0,et=e,Z=null;e:for(;;){for(var Q;et!==l||d!==0&&et.nodeType!==3||(w=A+d),et!==g||u!==0&&et.nodeType!==3||(U=A+u),et.nodeType===3&&(A+=et.nodeValue.length),(Q=et.firstChild)!==null;)Z=et,et=Q;for(;;){if(et===e)break e;if(Z===l&&++V===d&&(w=A),Z===g&&++J===u&&(U=A),(Q=et.nextSibling)!==null)break;et=Z,Z=et.parentNode}et=Q}l=w===-1||U===-1?null:{start:w,end:U}}else l=null}l=l||{start:0,end:0}}else l=null;for(Bd={focusedElem:e,selectionRange:l},ss=!1,Me=r;Me!==null;)if(r=Me,e=r.child,(r.subtreeFlags&1024)!==0&&e!==null)e.return=r,Me=e;else for(;Me!==null;){switch(r=Me,g=r.alternate,e=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&g!==null){e=void 0,l=r,d=g.memoizedProps,g=g.memoizedState,u=l.stateNode;try{var Tt=wi(l.type,d,l.elementType===l.type);e=u.getSnapshotBeforeUpdate(Tt,g),u.__reactInternalSnapshotBeforeUpdate=e}catch(St){Xt(l,l.return,St)}}break;case 3:if((e&1024)!==0){if(e=r.stateNode.containerInfo,l=e.nodeType,l===9)Yd(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Yd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(a(163))}if(e=r.sibling,e!==null){e.return=r.return,Me=e;break}Me=r.return}}function ty(e,r,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:Zr(e,l),u&4&&Pl(5,l);break;case 1:if(Zr(e,l),u&4)if(e=l.stateNode,r===null)try{e.componentDidMount()}catch(A){Xt(l,l.return,A)}else{var d=wi(l.type,r.memoizedProps);r=r.memoizedState;try{e.componentDidUpdate(d,r,e.__reactInternalSnapshotBeforeUpdate)}catch(A){Xt(l,l.return,A)}}u&64&&Zp(l),u&512&&Zl(l,l.return);break;case 3:if(Zr(e,l),u&64&&(e=l.updateQueue,e!==null)){if(r=null,l.child!==null)switch(l.child.tag){case 27:case 5:r=l.child.stateNode;break;case 1:r=l.child.stateNode}try{Ug(e,r)}catch(A){Xt(l,l.return,A)}}break;case 27:r===null&&u&4&&Wp(l);case 26:case 5:Zr(e,l),r===null&&u&4&&Kp(l),u&512&&Zl(l,l.return);break;case 12:Zr(e,l);break;case 13:Zr(e,l),u&4&&ry(e,l),u&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=tT.bind(null,l),vT(e,l))));break;case 22:if(u=l.memoizedState!==null||br,!u){r=r!==null&&r.memoizedState!==null||fe,d=br;var g=fe;br=u,(fe=r)&&!g?Qr(e,l,(l.subtreeFlags&8772)!==0):Zr(e,l),br=d,fe=g}break;case 30:break;default:Zr(e,l)}}function ey(e){var r=e.alternate;r!==null&&(e.alternate=null,ey(r)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(r=e.stateNode,r!==null&&Vc(r)),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 ee=null,Ke=!1;function xr(e,r,l){for(l=l.child;l!==null;)ny(e,r,l),l=l.sibling}function ny(e,r,l){if(te&&typeof te.onCommitFiberUnmount=="function")try{te.onCommitFiberUnmount(Ge,l)}catch{}switch(l.tag){case 26:fe||Pn(l,r),xr(e,r,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:fe||Pn(l,r);var u=ee,d=Ke;ei(l.type)&&(ee=l.stateNode,Ke=!1),xr(e,r,l),ro(l.stateNode),ee=u,Ke=d;break;case 5:fe||Pn(l,r);case 6:if(u=ee,d=Ke,ee=null,xr(e,r,l),ee=u,Ke=d,ee!==null)if(Ke)try{(ee.nodeType===9?ee.body:ee.nodeName==="HTML"?ee.ownerDocument.body:ee).removeChild(l.stateNode)}catch(g){Xt(l,r,g)}else try{ee.removeChild(l.stateNode)}catch(g){Xt(l,r,g)}break;case 18:ee!==null&&(Ke?(e=ee,Iy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),fo(e)):Iy(ee,l.stateNode));break;case 4:u=ee,d=Ke,ee=l.stateNode.containerInfo,Ke=!0,xr(e,r,l),ee=u,Ke=d;break;case 0:case 11:case 14:case 15:fe||Pr(2,l,r),fe||Pr(4,l,r),xr(e,r,l);break;case 1:fe||(Pn(l,r),u=l.stateNode,typeof u.componentWillUnmount=="function"&&Qp(l,r,u)),xr(e,r,l);break;case 21:xr(e,r,l);break;case 22:fe=(u=fe)||l.memoizedState!==null,xr(e,r,l),fe=u;break;default:xr(e,r,l)}}function ry(e,r){if(r.memoizedState===null&&(e=r.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{fo(e)}catch(l){Xt(r,r.return,l)}}function XA(e){switch(e.tag){case 13:case 19:var r=e.stateNode;return r===null&&(r=e.stateNode=new Jp),r;case 22:return e=e.stateNode,r=e._retryCache,r===null&&(r=e._retryCache=new Jp),r;default:throw Error(a(435,e.tag))}}function md(e,r){var l=XA(e);r.forEach(function(u){var d=eT.bind(null,e,u);l.has(u)||(l.add(u),u.then(d,d))})}function an(e,r){var l=r.deletions;if(l!==null)for(var u=0;u<l.length;u++){var d=l[u],g=e,A=r,w=A;t:for(;w!==null;){switch(w.tag){case 27:if(ei(w.type)){ee=w.stateNode,Ke=!1;break t}break;case 5:ee=w.stateNode,Ke=!1;break t;case 3:case 4:ee=w.stateNode.containerInfo,Ke=!0;break t}w=w.return}if(ee===null)throw Error(a(160));ny(g,A,d),ee=null,Ke=!1,g=d.alternate,g!==null&&(g.return=null),d.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)iy(r,e),r=r.sibling}var $n=null;function iy(e,r){var l=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:an(r,e),ln(e),u&4&&(Pr(3,e,e.return),Pl(3,e),Pr(5,e,e.return));break;case 1:an(r,e),ln(e),u&512&&(fe||l===null||Pn(l,l.return)),u&64&&br&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var d=$n;if(an(r,e),ln(e),u&512&&(fe||l===null||Pn(l,l.return)),u&4){var g=l!==null?l.memoizedState:null;if(u=e.memoizedState,l===null)if(u===null)if(e.stateNode===null){t:{u=e.type,l=e.memoizedProps,d=d.ownerDocument||d;e:switch(u){case"title":g=d.getElementsByTagName("title")[0],(!g||g[vl]||g[je]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=d.createElement(u),d.head.insertBefore(g,d.querySelector("head > title"))),De(g,u,l),g[je]=e,Ce(g),u=g;break t;case"link":var A=Wy("link","href",d).get(u+(l.href||""));if(A){for(var w=0;w<A.length;w++)if(g=A[w],g.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&g.getAttribute("rel")===(l.rel==null?null:l.rel)&&g.getAttribute("title")===(l.title==null?null:l.title)&&g.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){A.splice(w,1);break e}}g=d.createElement(u),De(g,u,l),d.head.appendChild(g);break;case"meta":if(A=Wy("meta","content",d).get(u+(l.content||""))){for(w=0;w<A.length;w++)if(g=A[w],g.getAttribute("content")===(l.content==null?null:""+l.content)&&g.getAttribute("name")===(l.name==null?null:l.name)&&g.getAttribute("property")===(l.property==null?null:l.property)&&g.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&g.getAttribute("charset")===(l.charSet==null?null:l.charSet)){A.splice(w,1);break e}}g=d.createElement(u),De(g,u,l),d.head.appendChild(g);break;default:throw Error(a(468,u))}g[je]=e,Ce(g),u=g}e.stateNode=u}else Jy(d,e.type,e.stateNode);else e.stateNode=Fy(d,u,e.memoizedProps);else g!==u?(g===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):g.count--,u===null?Jy(d,e.type,e.stateNode):Fy(d,u,e.memoizedProps)):u===null&&e.stateNode!==null&&cd(e,e.memoizedProps,l.memoizedProps)}break;case 27:an(r,e),ln(e),u&512&&(fe||l===null||Pn(l,l.return)),l!==null&&u&4&&cd(e,e.memoizedProps,l.memoizedProps);break;case 5:if(an(r,e),ln(e),u&512&&(fe||l===null||Pn(l,l.return)),e.flags&32){d=e.stateNode;try{ea(d,"")}catch(Q){Xt(e,e.return,Q)}}u&4&&e.stateNode!=null&&(d=e.memoizedProps,cd(e,d,l!==null?l.memoizedProps:d)),u&1024&&(hd=!0);break;case 6:if(an(r,e),ln(e),u&4){if(e.stateNode===null)throw Error(a(162));u=e.memoizedProps,l=e.stateNode;try{l.nodeValue=u}catch(Q){Xt(e,e.return,Q)}}break;case 3:if(ls=null,d=$n,$n=is(r.containerInfo),an(r,e),$n=d,ln(e),u&4&&l!==null&&l.memoizedState.isDehydrated)try{fo(r.containerInfo)}catch(Q){Xt(e,e.return,Q)}hd&&(hd=!1,ay(e));break;case 4:u=$n,$n=is(e.stateNode.containerInfo),an(r,e),ln(e),$n=u;break;case 12:an(r,e),ln(e);break;case 13:an(r,e),ln(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(xd=Yt()),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,md(e,u)));break;case 22:d=e.memoizedState!==null;var U=l!==null&&l.memoizedState!==null,V=br,J=fe;if(br=V||d,fe=J||U,an(r,e),fe=J,br=V,ln(e),u&8192)t:for(r=e.stateNode,r._visibility=d?r._visibility&-2:r._visibility|1,d&&(l===null||U||br||fe||Mi(e)),l=null,r=e;;){if(r.tag===5||r.tag===26){if(l===null){U=l=r;try{if(g=U.stateNode,d)A=g.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{w=U.stateNode;var et=U.memoizedProps.style,Z=et!=null&&et.hasOwnProperty("display")?et.display:null;w.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(Q){Xt(U,U.return,Q)}}}else if(r.tag===6){if(l===null){U=r;try{U.stateNode.nodeValue=d?"":U.memoizedProps}catch(Q){Xt(U,U.return,Q)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break t;for(;r.sibling===null;){if(r.return===null||r.return===e)break t;l===r&&(l=null),r=r.return}l===r&&(l=null),r.sibling.return=r.return,r=r.sibling}u&4&&(u=e.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,md(e,l))));break;case 19:an(r,e),ln(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,md(e,u)));break;case 30:break;case 21:break;default:an(r,e),ln(e)}}function ln(e){var r=e.flags;if(r&2){try{for(var l,u=e.return;u!==null;){if(Fp(u)){l=u;break}u=u.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var d=l.stateNode,g=fd(e);Vu(e,g,d);break;case 5:var A=l.stateNode;l.flags&32&&(ea(A,""),l.flags&=-33);var w=fd(e);Vu(e,w,A);break;case 3:case 4:var U=l.stateNode.containerInfo,V=fd(e);dd(e,V,U);break;default:throw Error(a(161))}}catch(J){Xt(e,e.return,J)}e.flags&=-3}r&4096&&(e.flags&=-4097)}function ay(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var r=e;ay(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),e=e.sibling}}function Zr(e,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)ty(e,r.alternate,r),r=r.sibling}function Mi(e){for(e=e.child;e!==null;){var r=e;switch(r.tag){case 0:case 11:case 14:case 15:Pr(4,r,r.return),Mi(r);break;case 1:Pn(r,r.return);var l=r.stateNode;typeof l.componentWillUnmount=="function"&&Qp(r,r.return,l),Mi(r);break;case 27:ro(r.stateNode);case 26:case 5:Pn(r,r.return),Mi(r);break;case 22:r.memoizedState===null&&Mi(r);break;case 30:Mi(r);break;default:Mi(r)}e=e.sibling}}function Qr(e,r,l){for(l=l&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var u=r.alternate,d=e,g=r,A=g.flags;switch(g.tag){case 0:case 11:case 15:Qr(d,g,l),Pl(4,g);break;case 1:if(Qr(d,g,l),u=g,d=u.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(V){Xt(u,u.return,V)}if(u=g,d=u.updateQueue,d!==null){var w=u.stateNode;try{var U=d.shared.hiddenCallbacks;if(U!==null)for(d.shared.hiddenCallbacks=null,d=0;d<U.length;d++)Ng(U[d],w)}catch(V){Xt(u,u.return,V)}}l&&A&64&&Zp(g),Zl(g,g.return);break;case 27:Wp(g);case 26:case 5:Qr(d,g,l),l&&u===null&&A&4&&Kp(g),Zl(g,g.return);break;case 12:Qr(d,g,l);break;case 13:Qr(d,g,l),l&&A&4&&ry(d,g);break;case 22:g.memoizedState===null&&Qr(d,g,l),Zl(g,g.return);break;case 30:break;default:Qr(d,g,l)}r=r.sibling}}function gd(e,r){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(e=r.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&zl(l))}function pd(e,r){e=null,r.alternate!==null&&(e=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==e&&(r.refCount++,e!=null&&zl(e))}function Zn(e,r,l,u){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)ly(e,r,l,u),r=r.sibling}function ly(e,r,l,u){var d=r.flags;switch(r.tag){case 0:case 11:case 15:Zn(e,r,l,u),d&2048&&Pl(9,r);break;case 1:Zn(e,r,l,u);break;case 3:Zn(e,r,l,u),d&2048&&(e=null,r.alternate!==null&&(e=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==e&&(r.refCount++,e!=null&&zl(e)));break;case 12:if(d&2048){Zn(e,r,l,u),e=r.stateNode;try{var g=r.memoizedProps,A=g.id,w=g.onPostCommit;typeof w=="function"&&w(A,r.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(U){Xt(r,r.return,U)}}else Zn(e,r,l,u);break;case 13:Zn(e,r,l,u);break;case 23:break;case 22:g=r.stateNode,A=r.alternate,r.memoizedState!==null?g._visibility&2?Zn(e,r,l,u):Ql(e,r):g._visibility&2?Zn(e,r,l,u):(g._visibility|=2,xa(e,r,l,u,(r.subtreeFlags&10256)!==0)),d&2048&&gd(A,r);break;case 24:Zn(e,r,l,u),d&2048&&pd(r.alternate,r);break;default:Zn(e,r,l,u)}}function xa(e,r,l,u,d){for(d=d&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var g=e,A=r,w=l,U=u,V=A.flags;switch(A.tag){case 0:case 11:case 15:xa(g,A,w,U,d),Pl(8,A);break;case 23:break;case 22:var J=A.stateNode;A.memoizedState!==null?J._visibility&2?xa(g,A,w,U,d):Ql(g,A):(J._visibility|=2,xa(g,A,w,U,d)),d&&V&2048&&gd(A.alternate,A);break;case 24:xa(g,A,w,U,d),d&&V&2048&&pd(A.alternate,A);break;default:xa(g,A,w,U,d)}r=r.sibling}}function Ql(e,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var l=e,u=r,d=u.flags;switch(u.tag){case 22:Ql(l,u),d&2048&&gd(u.alternate,u);break;case 24:Ql(l,u),d&2048&&pd(u.alternate,u);break;default:Ql(l,u)}r=r.sibling}}var Kl=8192;function Sa(e){if(e.subtreeFlags&Kl)for(e=e.child;e!==null;)oy(e),e=e.sibling}function oy(e){switch(e.tag){case 26:Sa(e),e.flags&Kl&&e.memoizedState!==null&&kT($n,e.memoizedState,e.memoizedProps);break;case 5:Sa(e);break;case 3:case 4:var r=$n;$n=is(e.stateNode.containerInfo),Sa(e),$n=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Kl,Kl=16777216,Sa(e),Kl=r):Sa(e));break;default:Sa(e)}}function uy(e){var r=e.alternate;if(r!==null&&(e=r.child,e!==null)){r.child=null;do r=e.sibling,e.sibling=null,e=r;while(e!==null)}}function Fl(e){var r=e.deletions;if((e.flags&16)!==0){if(r!==null)for(var l=0;l<r.length;l++){var u=r[l];Me=u,cy(u,e)}uy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)sy(e),e=e.sibling}function sy(e){switch(e.tag){case 0:case 11:case 15:Fl(e),e.flags&2048&&Pr(9,e,e.return);break;case 3:Fl(e);break;case 12:Fl(e);break;case 22:var r=e.stateNode;e.memoizedState!==null&&r._visibility&2&&(e.return===null||e.return.tag!==13)?(r._visibility&=-3,Xu(e)):Fl(e);break;default:Fl(e)}}function Xu(e){var r=e.deletions;if((e.flags&16)!==0){if(r!==null)for(var l=0;l<r.length;l++){var u=r[l];Me=u,cy(u,e)}uy(e)}for(e=e.child;e!==null;){switch(r=e,r.tag){case 0:case 11:case 15:Pr(8,r,r.return),Xu(r);break;case 22:l=r.stateNode,l._visibility&2&&(l._visibility&=-3,Xu(r));break;default:Xu(r)}e=e.sibling}}function cy(e,r){for(;Me!==null;){var l=Me;switch(l.tag){case 0:case 11:case 15:Pr(8,l,r);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:zl(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,Me=u;else t:for(l=e;Me!==null;){u=Me;var d=u.sibling,g=u.return;if(ey(u),u===l){Me=null;break t}if(d!==null){d.return=g,Me=d;break t}Me=g}}}var PA={getCacheForType:function(e){var r=$e(ve),l=r.data.get(e);return l===void 0&&(l=e(),r.data.set(e,l)),l}},ZA=typeof WeakMap=="function"?WeakMap:Map,Lt=0,Ft=null,Ot=null,kt=0,Ht=0,on=null,Kr=!1,Aa=!1,yd=!1,Sr=0,le=0,Fr=0,Ei=0,vd=0,Tn=0,Ta=0,Wl=null,Fe=null,bd=!1,xd=0,Pu=1/0,Zu=null,Wr=null,ke=0,Jr=null,Ca=null,wa=0,Sd=0,Ad=null,fy=null,Jl=0,Td=null;function un(){if((Lt&2)!==0&&kt!==0)return kt&-kt;if(j.T!==null){var e=da;return e!==0?e:Rd()}return E0()}function dy(){Tn===0&&(Tn=(kt&536870912)===0||Nt?T0():536870912);var e=An.current;return e!==null&&(e.flags|=32),Tn}function sn(e,r,l){(e===Ft&&(Ht===2||Ht===9)||e.cancelPendingCommit!==null)&&(Ma(e,0),ti(e,kt,Tn,!1)),yl(e,l),((Lt&2)===0||e!==Ft)&&(e===Ft&&((Lt&2)===0&&(Ei|=l),le===4&&ti(e,kt,Tn,!1)),Qn(e))}function hy(e,r,l){if((Lt&6)!==0)throw Error(a(327));var u=!l&&(r&124)===0&&(r&e.expiredLanes)===0||pl(e,r),d=u?FA(e,r):Md(e,r,!0),g=u;do{if(d===0){Aa&&!u&&ti(e,r,0,!1);break}else{if(l=e.current.alternate,g&&!QA(l)){d=Md(e,r,!1),g=!1;continue}if(d===2){if(g=r,e.errorRecoveryDisabledLanes&g)var A=0;else A=e.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){r=A;t:{var w=e;d=Wl;var U=w.current.memoizedState.isDehydrated;if(U&&(Ma(w,A).flags|=256),A=Md(w,A,!1),A!==2){if(yd&&!U){w.errorRecoveryDisabledLanes|=g,Ei|=g,d=4;break t}g=Fe,Fe=d,g!==null&&(Fe===null?Fe=g:Fe.push.apply(Fe,g))}d=A}if(g=!1,d!==2)continue}}if(d===1){Ma(e,0),ti(e,r,0,!0);break}t:{switch(u=e,g=d,g){case 0:case 1:throw Error(a(345));case 4:if((r&4194048)!==r)break;case 6:ti(u,r,Tn,!Kr);break t;case 2:Fe=null;break;case 3:case 5:break;default:throw Error(a(329))}if((r&62914560)===r&&(d=xd+300-Yt(),10<d)){if(ti(u,r,Tn,!Kr),au(u,0,!0)!==0)break t;u.timeoutHandle=Gy(my.bind(null,u,l,Fe,Zu,bd,r,Tn,Ei,Ta,Kr,g,2,-0,0),d);break t}my(u,l,Fe,Zu,bd,r,Tn,Ei,Ta,Kr,g,0,-0,0)}}break}while(!0);Qn(e)}function my(e,r,l,u,d,g,A,w,U,V,J,et,Z,Q){if(e.timeoutHandle=-1,et=r.subtreeFlags,(et&8192||(et&16785408)===16785408)&&(lo={stylesheets:null,count:0,unsuspend:RT},oy(r),et=DT(),et!==null)){e.cancelPendingCommit=et(Sy.bind(null,e,r,g,l,u,d,A,w,U,J,1,Z,Q)),ti(e,g,A,!V);return}Sy(e,r,g,l,u,d,A,w,U)}function QA(e){for(var r=e;;){var l=r.tag;if((l===0||l===11||l===15)&&r.flags&16384&&(l=r.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var d=l[u],g=d.getSnapshot;d=d.value;try{if(!nn(g(),d))return!1}catch{return!1}}if(l=r.child,r.subtreeFlags&16384&&l!==null)l.return=r,r=l;else{if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function ti(e,r,l,u){r&=~vd,r&=~Ei,e.suspendedLanes|=r,e.pingedLanes&=~r,u&&(e.warmLanes|=r),u=e.expirationTimes;for(var d=r;0<d;){var g=31-Te(d),A=1<<g;u[g]=-1,d&=~A}l!==0&&w0(e,l,r)}function Qu(){return(Lt&6)===0?(to(0),!1):!0}function Cd(){if(Ot!==null){if(Ht===0)var e=Ot.return;else e=Ot,hr=Si=null,Yf(e),va=null,Il=0,e=Ot;for(;e!==null;)Pp(e.alternate,e),e=e.return;Ot=null}}function Ma(e,r){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,hT(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Cd(),Ft=e,Ot=l=cr(e.current,null),kt=r,Ht=0,on=null,Kr=!1,Aa=pl(e,r),yd=!1,Ta=Tn=vd=Ei=Fr=le=0,Fe=Wl=null,bd=!1,(r&8)!==0&&(r|=r&32);var u=e.entangledLanes;if(u!==0)for(e=e.entanglements,u&=r;0<u;){var d=31-Te(u),g=1<<d;r|=e[d],u&=~g}return Sr=r,yu(),l}function gy(e,r){Mt=null,j.H=ju,r===Ul||r===Mu?(r=Dg(),Ht=3):r===_g?(r=Dg(),Ht=4):Ht=r===zp?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,on=r,Ot===null&&(le=1,Yu(e,vn(r,e.current)))}function py(){var e=j.H;return j.H=ju,e===null?ju:e}function yy(){var e=j.A;return j.A=PA,e}function wd(){le=4,Kr||(kt&4194048)!==kt&&An.current!==null||(Aa=!0),(Fr&134217727)===0&&(Ei&134217727)===0||Ft===null||ti(Ft,kt,Tn,!1)}function Md(e,r,l){var u=Lt;Lt|=2;var d=py(),g=yy();(Ft!==e||kt!==r)&&(Zu=null,Ma(e,r)),r=!1;var A=le;t:do try{if(Ht!==0&&Ot!==null){var w=Ot,U=on;switch(Ht){case 8:Cd(),A=6;break t;case 3:case 2:case 9:case 6:An.current===null&&(r=!0);var V=Ht;if(Ht=0,on=null,Ea(e,w,U,V),l&&Aa){A=0;break t}break;default:V=Ht,Ht=0,on=null,Ea(e,w,U,V)}}KA(),A=le;break}catch(J){gy(e,J)}while(!0);return r&&e.shellSuspendCounter++,hr=Si=null,Lt=u,j.H=d,j.A=g,Ot===null&&(Ft=null,kt=0,yu()),A}function KA(){for(;Ot!==null;)vy(Ot)}function FA(e,r){var l=Lt;Lt|=2;var u=py(),d=yy();Ft!==e||kt!==r?(Zu=null,Pu=Yt()+500,Ma(e,r)):Aa=pl(e,r);t:do try{if(Ht!==0&&Ot!==null){r=Ot;var g=on;e:switch(Ht){case 1:Ht=0,on=null,Ea(e,r,g,1);break;case 2:case 9:if(Rg(g)){Ht=0,on=null,by(r);break}r=function(){Ht!==2&&Ht!==9||Ft!==e||(Ht=7),Qn(e)},g.then(r,r);break t;case 3:Ht=7;break t;case 4:Ht=5;break t;case 7:Rg(g)?(Ht=0,on=null,by(r)):(Ht=0,on=null,Ea(e,r,g,7));break;case 5:var A=null;switch(Ot.tag){case 26:A=Ot.memoizedState;case 5:case 27:var w=Ot;if(!A||t1(A)){Ht=0,on=null;var U=w.sibling;if(U!==null)Ot=U;else{var V=w.return;V!==null?(Ot=V,Ku(V)):Ot=null}break e}}Ht=0,on=null,Ea(e,r,g,5);break;case 6:Ht=0,on=null,Ea(e,r,g,6);break;case 8:Cd(),le=6;break t;default:throw Error(a(462))}}WA();break}catch(J){gy(e,J)}while(!0);return hr=Si=null,j.H=u,j.A=d,Lt=l,Ot!==null?0:(Ft=null,kt=0,yu(),le)}function WA(){for(;Ot!==null&&!Bt();)vy(Ot)}function vy(e){var r=Vp(e.alternate,e,Sr);e.memoizedProps=e.pendingProps,r===null?Ku(e):Ot=r}function by(e){var r=e,l=r.alternate;switch(r.tag){case 15:case 0:r=Lp(l,r,r.pendingProps,r.type,void 0,kt);break;case 11:r=Lp(l,r,r.pendingProps,r.type.render,r.ref,kt);break;case 5:Yf(r);default:Pp(l,r),r=Ot=xg(r,Sr),r=Vp(l,r,Sr)}e.memoizedProps=e.pendingProps,r===null?Ku(e):Ot=r}function Ea(e,r,l,u){hr=Si=null,Yf(r),va=null,Il=0;var d=r.return;try{if(YA(e,d,r,l,kt)){le=1,Yu(e,vn(l,e.current)),Ot=null;return}}catch(g){if(d!==null)throw Ot=d,g;le=1,Yu(e,vn(l,e.current)),Ot=null;return}r.flags&32768?(Nt||u===1?e=!0:Aa||(kt&536870912)!==0?e=!1:(Kr=e=!0,(u===2||u===9||u===3||u===6)&&(u=An.current,u!==null&&u.tag===13&&(u.flags|=16384))),xy(r,e)):Ku(r)}function Ku(e){var r=e;do{if((r.flags&32768)!==0){xy(r,Kr);return}e=r.return;var l=qA(r.alternate,r,Sr);if(l!==null){Ot=l;return}if(r=r.sibling,r!==null){Ot=r;return}Ot=r=e}while(r!==null);le===0&&(le=5)}function xy(e,r){do{var l=IA(e.alternate,e);if(l!==null){l.flags&=32767,Ot=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!r&&(e=e.sibling,e!==null)){Ot=e;return}Ot=e=l}while(e!==null);le=6,Ot=null}function Sy(e,r,l,u,d,g,A,w,U){e.cancelPendingCommit=null;do Fu();while(ke!==0);if((Lt&6)!==0)throw Error(a(327));if(r!==null){if(r===e.current)throw Error(a(177));if(g=r.lanes|r.childLanes,g|=pf,R2(e,l,g,A,w,U),e===Ft&&(Ot=Ft=null,kt=0),Ca=r,Jr=e,wa=l,Sd=g,Ad=d,fy=u,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,nT(Kt,function(){return My(),null})):(e.callbackNode=null,e.callbackPriority=0),u=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||u){u=j.T,j.T=null,d=P.p,P.p=2,A=Lt,Lt|=4;try{VA(e,r,l)}finally{Lt=A,P.p=d,j.T=u}}ke=1,Ay(),Ty(),Cy()}}function Ay(){if(ke===1){ke=0;var e=Jr,r=Ca,l=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||l){l=j.T,j.T=null;var u=P.p;P.p=2;var d=Lt;Lt|=4;try{iy(r,e);var g=Bd,A=cg(e.containerInfo),w=g.focusedElem,U=g.selectionRange;if(A!==w&&w&&w.ownerDocument&&sg(w.ownerDocument.documentElement,w)){if(U!==null&&ff(w)){var V=U.start,J=U.end;if(J===void 0&&(J=V),"selectionStart"in w)w.selectionStart=V,w.selectionEnd=Math.min(J,w.value.length);else{var et=w.ownerDocument||document,Z=et&&et.defaultView||window;if(Z.getSelection){var Q=Z.getSelection(),Tt=w.textContent.length,St=Math.min(U.start,Tt),It=U.end===void 0?St:Math.min(U.end,Tt);!Q.extend&&St>It&&(A=It,It=St,St=A);var G=ug(w,St),B=ug(w,It);if(G&&B&&(Q.rangeCount!==1||Q.anchorNode!==G.node||Q.anchorOffset!==G.offset||Q.focusNode!==B.node||Q.focusOffset!==B.offset)){var q=et.createRange();q.setStart(G.node,G.offset),Q.removeAllRanges(),St>It?(Q.addRange(q),Q.extend(B.node,B.offset)):(q.setEnd(B.node,B.offset),Q.addRange(q))}}}}for(et=[],Q=w;Q=Q.parentNode;)Q.nodeType===1&&et.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<et.length;w++){var tt=et[w];tt.element.scrollLeft=tt.left,tt.element.scrollTop=tt.top}}ss=!!$d,Bd=$d=null}finally{Lt=d,P.p=u,j.T=l}}e.current=r,ke=2}}function Ty(){if(ke===2){ke=0;var e=Jr,r=Ca,l=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||l){l=j.T,j.T=null;var u=P.p;P.p=2;var d=Lt;Lt|=4;try{ty(e,r.alternate,r)}finally{Lt=d,P.p=u,j.T=l}}ke=3}}function Cy(){if(ke===4||ke===3){ke=0,Wt();var e=Jr,r=Ca,l=wa,u=fy;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?ke=5:(ke=0,Ca=Jr=null,wy(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(Wr=null),qc(l),r=r.stateNode,te&&typeof te.onCommitFiberRoot=="function")try{te.onCommitFiberRoot(Ge,r,void 0,(r.current.flags&128)===128)}catch{}if(u!==null){r=j.T,d=P.p,P.p=2,j.T=null;try{for(var g=e.onRecoverableError,A=0;A<u.length;A++){var w=u[A];g(w.value,{componentStack:w.stack})}}finally{j.T=r,P.p=d}}(wa&3)!==0&&Fu(),Qn(e),d=e.pendingLanes,(l&4194090)!==0&&(d&42)!==0?e===Td?Jl++:(Jl=0,Td=e):Jl=0,to(0)}}function wy(e,r){(e.pooledCacheLanes&=r)===0&&(r=e.pooledCache,r!=null&&(e.pooledCache=null,zl(r)))}function Fu(e){return Ay(),Ty(),Cy(),My()}function My(){if(ke!==5)return!1;var e=Jr,r=Sd;Sd=0;var l=qc(wa),u=j.T,d=P.p;try{P.p=32>l?32:l,j.T=null,l=Ad,Ad=null;var g=Jr,A=wa;if(ke=0,Ca=Jr=null,wa=0,(Lt&6)!==0)throw Error(a(331));var w=Lt;if(Lt|=4,sy(g.current),ly(g,g.current,A,l),Lt=w,to(0,!1),te&&typeof te.onPostCommitFiberRoot=="function")try{te.onPostCommitFiberRoot(Ge,g)}catch{}return!0}finally{P.p=d,j.T=u,wy(e,r)}}function Ey(e,r,l){r=vn(l,r),r=ed(e.stateNode,r,2),e=qr(e,r,2),e!==null&&(yl(e,2),Qn(e))}function Xt(e,r,l){if(e.tag===3)Ey(e,e,l);else for(;r!==null;){if(r.tag===3){Ey(r,e,l);break}else if(r.tag===1){var u=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Wr===null||!Wr.has(u))){e=vn(l,e),l=kp(2),u=qr(r,l,2),u!==null&&(Dp(l,u,r,e),yl(u,2),Qn(u));break}}r=r.return}}function Ed(e,r,l){var u=e.pingCache;if(u===null){u=e.pingCache=new ZA;var d=new Set;u.set(r,d)}else d=u.get(r),d===void 0&&(d=new Set,u.set(r,d));d.has(l)||(yd=!0,d.add(l),e=JA.bind(null,e,r,l),r.then(e,e))}function JA(e,r,l){var u=e.pingCache;u!==null&&u.delete(r),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ft===e&&(kt&l)===l&&(le===4||le===3&&(kt&62914560)===kt&&300>Yt()-xd?(Lt&2)===0&&Ma(e,0):vd|=l,Ta===kt&&(Ta=0)),Qn(e)}function Oy(e,r){r===0&&(r=C0()),e=ua(e,r),e!==null&&(yl(e,r),Qn(e))}function tT(e){var r=e.memoizedState,l=0;r!==null&&(l=r.retryLane),Oy(e,l)}function eT(e,r){var l=0;switch(e.tag){case 13:var u=e.stateNode,d=e.memoizedState;d!==null&&(l=d.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(r),Oy(e,l)}function nT(e,r){return Rt(e,r)}var Wu=null,Oa=null,Od=!1,Ju=!1,_d=!1,Oi=0;function Qn(e){e!==Oa&&e.next===null&&(Oa===null?Wu=Oa=e:Oa=Oa.next=e),Ju=!0,Od||(Od=!0,iT())}function to(e,r){if(!_d&&Ju){_d=!0;do for(var l=!1,u=Wu;u!==null;){if(e!==0){var d=u.pendingLanes;if(d===0)var g=0;else{var A=u.suspendedLanes,w=u.pingedLanes;g=(1<<31-Te(42|e)+1)-1,g&=d&~(A&~w),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(l=!0,Dy(u,g))}else g=kt,g=au(u,u===Ft?g:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(g&3)===0||pl(u,g)||(l=!0,Dy(u,g));u=u.next}while(l);_d=!1}}function rT(){_y()}function _y(){Ju=Od=!1;var e=0;Oi!==0&&(dT()&&(e=Oi),Oi=0);for(var r=Yt(),l=null,u=Wu;u!==null;){var d=u.next,g=Ry(u,r);g===0?(u.next=null,l===null?Wu=d:l.next=d,d===null&&(Oa=l)):(l=u,(e!==0||(g&3)!==0)&&(Ju=!0)),u=d}to(e)}function Ry(e,r){for(var l=e.suspendedLanes,u=e.pingedLanes,d=e.expirationTimes,g=e.pendingLanes&-62914561;0<g;){var A=31-Te(g),w=1<<A,U=d[A];U===-1?((w&l)===0||(w&u)!==0)&&(d[A]=_2(w,r)):U<=r&&(e.expiredLanes|=w),g&=~w}if(r=Ft,l=kt,l=au(e,e===r?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u=e.callbackNode,l===0||e===r&&(Ht===2||Ht===9)||e.cancelPendingCommit!==null)return u!==null&&u!==null&&vt(u),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||pl(e,l)){if(r=l&-l,r===e.callbackPriority)return r;switch(u!==null&&vt(u),qc(l)){case 2:case 8:l=me;break;case 32:l=Kt;break;case 268435456:l=mn;break;default:l=Kt}return u=ky.bind(null,e),l=Rt(l,u),e.callbackPriority=r,e.callbackNode=l,r}return u!==null&&u!==null&&vt(u),e.callbackPriority=2,e.callbackNode=null,2}function ky(e,r){if(ke!==0&&ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Fu()&&e.callbackNode!==l)return null;var u=kt;return u=au(e,e===Ft?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u===0?null:(hy(e,u,r),Ry(e,Yt()),e.callbackNode!=null&&e.callbackNode===l?ky.bind(null,e):null)}function Dy(e,r){if(Fu())return null;hy(e,r,!0)}function iT(){mT(function(){(Lt&6)!==0?Rt(se,rT):_y()})}function Rd(){return Oi===0&&(Oi=T0()),Oi}function zy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:cu(""+e)}function Ny(e,r){var l=r.ownerDocument.createElement("input");return l.name=r.name,l.value=r.value,e.id&&l.setAttribute("form",e.id),r.parentNode.insertBefore(l,r),e=new FormData(e),l.parentNode.removeChild(l),e}function aT(e,r,l,u,d){if(r==="submit"&&l&&l.stateNode===d){var g=zy((d[Pe]||null).action),A=u.submitter;A&&(r=(r=A[Pe]||null)?zy(r.formAction):A.getAttribute("formAction"),r!==null&&(g=r,A=null));var w=new mu("action","action",null,u,d);e.push({event:w,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Oi!==0){var U=A?Ny(d,A):new FormData(d);Kf(l,{pending:!0,data:U,method:d.method,action:g},null,U)}}else typeof g=="function"&&(w.preventDefault(),U=A?Ny(d,A):new FormData(d),Kf(l,{pending:!0,data:U,method:d.method,action:g},g,U))},currentTarget:d}]})}}for(var kd=0;kd<gf.length;kd++){var Dd=gf[kd],lT=Dd.toLowerCase(),oT=Dd[0].toUpperCase()+Dd.slice(1);jn(lT,"on"+oT)}jn(hg,"onAnimationEnd"),jn(mg,"onAnimationIteration"),jn(gg,"onAnimationStart"),jn("dblclick","onDoubleClick"),jn("focusin","onFocus"),jn("focusout","onBlur"),jn(CA,"onTransitionRun"),jn(wA,"onTransitionStart"),jn(MA,"onTransitionCancel"),jn(pg,"onTransitionEnd"),Wi("onMouseEnter",["mouseout","mouseover"]),Wi("onMouseLeave",["mouseout","mouseover"]),Wi("onPointerEnter",["pointerout","pointerover"]),Wi("onPointerLeave",["pointerout","pointerover"]),di("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),di("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),di("onBeforeInput",["compositionend","keypress","textInput","paste"]),di("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),di("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),di("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var eo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),uT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(eo));function Uy(e,r){r=(r&4)!==0;for(var l=0;l<e.length;l++){var u=e[l],d=u.event;u=u.listeners;t:{var g=void 0;if(r)for(var A=u.length-1;0<=A;A--){var w=u[A],U=w.instance,V=w.currentTarget;if(w=w.listener,U!==g&&d.isPropagationStopped())break t;g=w,d.currentTarget=V;try{g(d)}catch(J){Hu(J)}d.currentTarget=null,g=U}else for(A=0;A<u.length;A++){if(w=u[A],U=w.instance,V=w.currentTarget,w=w.listener,U!==g&&d.isPropagationStopped())break t;g=w,d.currentTarget=V;try{g(d)}catch(J){Hu(J)}d.currentTarget=null,g=U}}}}function _t(e,r){var l=r[Ic];l===void 0&&(l=r[Ic]=new Set);var u=e+"__bubble";l.has(u)||(jy(r,e,2,!1),l.add(u))}function zd(e,r,l){var u=0;r&&(u|=4),jy(l,e,u,r)}var ts="_reactListening"+Math.random().toString(36).slice(2);function Nd(e){if(!e[ts]){e[ts]=!0,_0.forEach(function(l){l!=="selectionchange"&&(uT.has(l)||zd(l,!1,e),zd(l,!0,e))});var r=e.nodeType===9?e:e.ownerDocument;r===null||r[ts]||(r[ts]=!0,zd("selectionchange",!1,r))}}function jy(e,r,l,u){switch(l1(r)){case 2:var d=UT;break;case 8:d=jT;break;default:d=Zd}l=d.bind(null,r,l,e),d=void 0,!ef||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(d=!0),u?d!==void 0?e.addEventListener(r,l,{capture:!0,passive:d}):e.addEventListener(r,l,!0):d!==void 0?e.addEventListener(r,l,{passive:d}):e.addEventListener(r,l,!1)}function Ud(e,r,l,u,d){var g=u;if((r&1)===0&&(r&2)===0&&u!==null)t:for(;;){if(u===null)return;var A=u.tag;if(A===3||A===4){var w=u.stateNode.containerInfo;if(w===d)break;if(A===4)for(A=u.return;A!==null;){var U=A.tag;if((U===3||U===4)&&A.stateNode.containerInfo===d)return;A=A.return}for(;w!==null;){if(A=Qi(w),A===null)return;if(U=A.tag,U===5||U===6||U===26||U===27){u=g=A;continue t}w=w.parentNode}}u=u.return}q0(function(){var V=g,J=Jc(l),et=[];t:{var Z=yg.get(e);if(Z!==void 0){var Q=mu,Tt=e;switch(e){case"keypress":if(du(l)===0)break t;case"keydown":case"keyup":Q=nA;break;case"focusin":Tt="focus",Q=lf;break;case"focusout":Tt="blur",Q=lf;break;case"beforeblur":case"afterblur":Q=lf;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=X0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=I2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=aA;break;case hg:case mg:case gg:Q=P2;break;case pg:Q=oA;break;case"scroll":case"scrollend":Q=G2;break;case"wheel":Q=sA;break;case"copy":case"cut":case"paste":Q=Q2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=Z0;break;case"toggle":case"beforetoggle":Q=fA}var St=(r&4)!==0,It=!St&&(e==="scroll"||e==="scrollend"),G=St?Z!==null?Z+"Capture":null:Z;St=[];for(var B=V,q;B!==null;){var tt=B;if(q=tt.stateNode,tt=tt.tag,tt!==5&&tt!==26&&tt!==27||q===null||G===null||(tt=xl(B,G),tt!=null&&St.push(no(B,tt,q))),It)break;B=B.return}0<St.length&&(Z=new Q(Z,Tt,null,l,J),et.push({event:Z,listeners:St}))}}if((r&7)===0){t:{if(Z=e==="mouseover"||e==="pointerover",Q=e==="mouseout"||e==="pointerout",Z&&l!==Wc&&(Tt=l.relatedTarget||l.fromElement)&&(Qi(Tt)||Tt[Zi]))break t;if((Q||Z)&&(Z=J.window===J?J:(Z=J.ownerDocument)?Z.defaultView||Z.parentWindow:window,Q?(Tt=l.relatedTarget||l.toElement,Q=V,Tt=Tt?Qi(Tt):null,Tt!==null&&(It=s(Tt),St=Tt.tag,Tt!==It||St!==5&&St!==27&&St!==6)&&(Tt=null)):(Q=null,Tt=V),Q!==Tt)){if(St=X0,tt="onMouseLeave",G="onMouseEnter",B="mouse",(e==="pointerout"||e==="pointerover")&&(St=Z0,tt="onPointerLeave",G="onPointerEnter",B="pointer"),It=Q==null?Z:bl(Q),q=Tt==null?Z:bl(Tt),Z=new St(tt,B+"leave",Q,l,J),Z.target=It,Z.relatedTarget=q,tt=null,Qi(J)===V&&(St=new St(G,B+"enter",Tt,l,J),St.target=q,St.relatedTarget=It,tt=St),It=tt,Q&&Tt)e:{for(St=Q,G=Tt,B=0,q=St;q;q=_a(q))B++;for(q=0,tt=G;tt;tt=_a(tt))q++;for(;0<B-q;)St=_a(St),B--;for(;0<q-B;)G=_a(G),q--;for(;B--;){if(St===G||G!==null&&St===G.alternate)break e;St=_a(St),G=_a(G)}St=null}else St=null;Q!==null&&$y(et,Z,Q,St,!1),Tt!==null&&It!==null&&$y(et,It,Tt,St,!0)}}t:{if(Z=V?bl(V):window,Q=Z.nodeName&&Z.nodeName.toLowerCase(),Q==="select"||Q==="input"&&Z.type==="file")var ht=ng;else if(tg(Z))if(rg)ht=SA;else{ht=bA;var Et=vA}else Q=Z.nodeName,!Q||Q.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?V&&Fc(V.elementType)&&(ht=ng):ht=xA;if(ht&&(ht=ht(e,V))){eg(et,ht,l,J);break t}Et&&Et(e,Z,V),e==="focusout"&&V&&Z.type==="number"&&V.memoizedProps.value!=null&&Kc(Z,"number",Z.value)}switch(Et=V?bl(V):window,e){case"focusin":(tg(Et)||Et.contentEditable==="true")&&(aa=Et,df=V,Ol=null);break;case"focusout":Ol=df=aa=null;break;case"mousedown":hf=!0;break;case"contextmenu":case"mouseup":case"dragend":hf=!1,fg(et,l,J);break;case"selectionchange":if(TA)break;case"keydown":case"keyup":fg(et,l,J)}var pt;if(uf)t:{switch(e){case"compositionstart":var At="onCompositionStart";break t;case"compositionend":At="onCompositionEnd";break t;case"compositionupdate":At="onCompositionUpdate";break t}At=void 0}else ia?W0(e,l)&&(At="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(At="onCompositionStart");At&&(Q0&&l.locale!=="ko"&&(ia||At!=="onCompositionStart"?At==="onCompositionEnd"&&ia&&(pt=I0()):(Lr=J,nf="value"in Lr?Lr.value:Lr.textContent,ia=!0)),Et=es(V,At),0<Et.length&&(At=new P0(At,e,null,l,J),et.push({event:At,listeners:Et}),pt?At.data=pt:(pt=J0(l),pt!==null&&(At.data=pt)))),(pt=hA?mA(e,l):gA(e,l))&&(At=es(V,"onBeforeInput"),0<At.length&&(Et=new P0("onBeforeInput","beforeinput",null,l,J),et.push({event:Et,listeners:At}),Et.data=pt)),aT(et,e,V,l,J)}Uy(et,r)})}function no(e,r,l){return{instance:e,listener:r,currentTarget:l}}function es(e,r){for(var l=r+"Capture",u=[];e!==null;){var d=e,g=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||g===null||(d=xl(e,l),d!=null&&u.unshift(no(e,d,g)),d=xl(e,r),d!=null&&u.push(no(e,d,g))),e.tag===3)return u;e=e.return}return[]}function _a(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function $y(e,r,l,u,d){for(var g=r._reactName,A=[];l!==null&&l!==u;){var w=l,U=w.alternate,V=w.stateNode;if(w=w.tag,U!==null&&U===u)break;w!==5&&w!==26&&w!==27||V===null||(U=V,d?(V=xl(l,g),V!=null&&A.unshift(no(l,V,U))):d||(V=xl(l,g),V!=null&&A.push(no(l,V,U)))),l=l.return}A.length!==0&&e.push({event:r,listeners:A})}var sT=/\r\n?/g,cT=/\u0000|\uFFFD/g;function By(e){return(typeof e=="string"?e:""+e).replace(sT,` 49 - `).replace(cT,"")}function Ly(e,r){return r=By(r),By(e)===r}function ns(){}function qt(e,r,l,u,d,g){switch(l){case"children":typeof u=="string"?r==="body"||r==="textarea"&&u===""||ea(e,u):(typeof u=="number"||typeof u=="bigint")&&r!=="body"&&ea(e,""+u);break;case"className":ou(e,"class",u);break;case"tabIndex":ou(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":ou(e,l,u);break;case"style":Y0(e,u,g);break;case"data":if(r!=="object"){ou(e,"data",u);break}case"src":case"href":if(u===""&&(r!=="a"||l!=="href")){e.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(l);break}u=cu(""+u),e.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="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 g=="function"&&(l==="formAction"?(r!=="input"&&qt(e,r,"name",d.name,d,null),qt(e,r,"formEncType",d.formEncType,d,null),qt(e,r,"formMethod",d.formMethod,d,null),qt(e,r,"formTarget",d.formTarget,d,null)):(qt(e,r,"encType",d.encType,d,null),qt(e,r,"method",d.method,d,null),qt(e,r,"target",d.target,d,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(l);break}u=cu(""+u),e.setAttribute(l,u);break;case"onClick":u!=null&&(e.onclick=ns);break;case"onScroll":u!=null&&_t("scroll",e);break;case"onScrollEnd":u!=null&&_t("scrollend",e);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(l=u.__html,l!=null){if(d.children!=null)throw Error(a(60));e.innerHTML=l}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}l=cu(""+u),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":u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(l,""+u):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":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":u===!0?e.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(l,u):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?e.setAttribute(l,u):e.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(l):e.setAttribute(l,u);break;case"popover":_t("beforetoggle",e),_t("toggle",e),lu(e,"popover",u);break;case"xlinkActuate":ur(e,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":ur(e,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":ur(e,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":ur(e,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":ur(e,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":ur(e,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":ur(e,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":ur(e,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":ur(e,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":lu(e,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=H2.get(l)||l,lu(e,l,u))}}function jd(e,r,l,u,d,g){switch(l){case"style":Y0(e,u,g);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(l=u.__html,l!=null){if(d.children!=null)throw Error(a(60));e.innerHTML=l}}break;case"children":typeof u=="string"?ea(e,u):(typeof u=="number"||typeof u=="bigint")&&ea(e,""+u);break;case"onScroll":u!=null&&_t("scroll",e);break;case"onScrollEnd":u!=null&&_t("scrollend",e);break;case"onClick":u!=null&&(e.onclick=ns);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!R0.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(d=l.endsWith("Capture"),r=l.slice(2,d?l.length-7:void 0),g=e[Pe]||null,g=g!=null?g[l]:null,typeof g=="function"&&e.removeEventListener(r,g,d),typeof u=="function")){typeof g!="function"&&g!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(r,u,d);break t}l in e?e[l]=u:u===!0?e.setAttribute(l,""):lu(e,l,u)}}}function De(e,r,l){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_t("error",e),_t("load",e);var u=!1,d=!1,g;for(g in l)if(l.hasOwnProperty(g)){var A=l[g];if(A!=null)switch(g){case"src":u=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:qt(e,r,g,A,l,null)}}d&&qt(e,r,"srcSet",l.srcSet,l,null),u&&qt(e,r,"src",l.src,l,null);return;case"input":_t("invalid",e);var w=g=A=d=null,U=null,V=null;for(u in l)if(l.hasOwnProperty(u)){var J=l[u];if(J!=null)switch(u){case"name":d=J;break;case"type":A=J;break;case"checked":U=J;break;case"defaultChecked":V=J;break;case"value":g=J;break;case"defaultValue":w=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(a(137,r));break;default:qt(e,r,u,J,l,null)}}$0(e,g,w,U,V,A,d,!1),uu(e);return;case"select":_t("invalid",e),u=A=g=null;for(d in l)if(l.hasOwnProperty(d)&&(w=l[d],w!=null))switch(d){case"value":g=w;break;case"defaultValue":A=w;break;case"multiple":u=w;default:qt(e,r,d,w,l,null)}r=g,l=A,e.multiple=!!u,r!=null?ta(e,!!u,r,!1):l!=null&&ta(e,!!u,l,!0);return;case"textarea":_t("invalid",e),g=d=u=null;for(A in l)if(l.hasOwnProperty(A)&&(w=l[A],w!=null))switch(A){case"value":u=w;break;case"defaultValue":d=w;break;case"children":g=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(a(91));break;default:qt(e,r,A,w,l,null)}L0(e,u,d,g),uu(e);return;case"option":for(U in l)if(l.hasOwnProperty(U)&&(u=l[U],u!=null))switch(U){case"selected":e.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:qt(e,r,U,u,l,null)}return;case"dialog":_t("beforetoggle",e),_t("toggle",e),_t("cancel",e),_t("close",e);break;case"iframe":case"object":_t("load",e);break;case"video":case"audio":for(u=0;u<eo.length;u++)_t(eo[u],e);break;case"image":_t("error",e),_t("load",e);break;case"details":_t("toggle",e);break;case"embed":case"source":case"link":_t("error",e),_t("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(V in l)if(l.hasOwnProperty(V)&&(u=l[V],u!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:qt(e,r,V,u,l,null)}return;default:if(Fc(r)){for(J in l)l.hasOwnProperty(J)&&(u=l[J],u!==void 0&&jd(e,r,J,u,l,void 0));return}}for(w in l)l.hasOwnProperty(w)&&(u=l[w],u!=null&&qt(e,r,w,u,l,null))}function fT(e,r,l,u){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,g=null,A=null,w=null,U=null,V=null,J=null;for(Q in l){var et=l[Q];if(l.hasOwnProperty(Q)&&et!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":U=et;default:u.hasOwnProperty(Q)||qt(e,r,Q,null,u,et)}}for(var Z in u){var Q=u[Z];if(et=l[Z],u.hasOwnProperty(Z)&&(Q!=null||et!=null))switch(Z){case"type":g=Q;break;case"name":d=Q;break;case"checked":V=Q;break;case"defaultChecked":J=Q;break;case"value":A=Q;break;case"defaultValue":w=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(a(137,r));break;default:Q!==et&&qt(e,r,Z,Q,u,et)}}Qc(e,A,w,U,V,J,g,d);return;case"select":Q=A=w=Z=null;for(g in l)if(U=l[g],l.hasOwnProperty(g)&&U!=null)switch(g){case"value":break;case"multiple":Q=U;default:u.hasOwnProperty(g)||qt(e,r,g,null,u,U)}for(d in u)if(g=u[d],U=l[d],u.hasOwnProperty(d)&&(g!=null||U!=null))switch(d){case"value":Z=g;break;case"defaultValue":w=g;break;case"multiple":A=g;default:g!==U&&qt(e,r,d,g,u,U)}r=w,l=A,u=Q,Z!=null?ta(e,!!l,Z,!1):!!u!=!!l&&(r!=null?ta(e,!!l,r,!0):ta(e,!!l,l?[]:"",!1));return;case"textarea":Q=Z=null;for(w in l)if(d=l[w],l.hasOwnProperty(w)&&d!=null&&!u.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:qt(e,r,w,null,u,d)}for(A in u)if(d=u[A],g=l[A],u.hasOwnProperty(A)&&(d!=null||g!=null))switch(A){case"value":Z=d;break;case"defaultValue":Q=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(a(91));break;default:d!==g&&qt(e,r,A,d,u,g)}B0(e,Z,Q);return;case"option":for(var Tt in l)if(Z=l[Tt],l.hasOwnProperty(Tt)&&Z!=null&&!u.hasOwnProperty(Tt))switch(Tt){case"selected":e.selected=!1;break;default:qt(e,r,Tt,null,u,Z)}for(U in u)if(Z=u[U],Q=l[U],u.hasOwnProperty(U)&&Z!==Q&&(Z!=null||Q!=null))switch(U){case"selected":e.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:qt(e,r,U,Z,u,Q)}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 St in l)Z=l[St],l.hasOwnProperty(St)&&Z!=null&&!u.hasOwnProperty(St)&&qt(e,r,St,null,u,Z);for(V in u)if(Z=u[V],Q=l[V],u.hasOwnProperty(V)&&Z!==Q&&(Z!=null||Q!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(a(137,r));break;default:qt(e,r,V,Z,u,Q)}return;default:if(Fc(r)){for(var It in l)Z=l[It],l.hasOwnProperty(It)&&Z!==void 0&&!u.hasOwnProperty(It)&&jd(e,r,It,void 0,u,Z);for(J in u)Z=u[J],Q=l[J],!u.hasOwnProperty(J)||Z===Q||Z===void 0&&Q===void 0||jd(e,r,J,Z,u,Q);return}}for(var G in l)Z=l[G],l.hasOwnProperty(G)&&Z!=null&&!u.hasOwnProperty(G)&&qt(e,r,G,null,u,Z);for(et in u)Z=u[et],Q=l[et],!u.hasOwnProperty(et)||Z===Q||Z==null&&Q==null||qt(e,r,et,Z,u,Q)}var $d=null,Bd=null;function rs(e){return e.nodeType===9?e:e.ownerDocument}function Hy(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 Yy(e,r){if(e===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&r==="foreignObject"?0:e}function Ld(e,r){return e==="textarea"||e==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Hd=null;function dT(){var e=window.event;return e&&e.type==="popstate"?e===Hd?!1:(Hd=e,!0):(Hd=null,!1)}var Gy=typeof setTimeout=="function"?setTimeout:void 0,hT=typeof clearTimeout=="function"?clearTimeout:void 0,qy=typeof Promise=="function"?Promise:void 0,mT=typeof queueMicrotask=="function"?queueMicrotask:typeof qy<"u"?function(e){return qy.resolve(null).then(e).catch(gT)}:Gy;function gT(e){setTimeout(function(){throw e})}function ei(e){return e==="head"}function Iy(e,r){var l=r,u=0,d=0;do{var g=l.nextSibling;if(e.removeChild(l),g&&g.nodeType===8)if(l=g.data,l==="/$"){if(0<u&&8>u){l=u;var A=e.ownerDocument;if(l&1&&ro(A.documentElement),l&2&&ro(A.body),l&4)for(l=A.head,ro(l),A=l.firstChild;A;){var w=A.nextSibling,U=A.nodeName;A[vl]||U==="SCRIPT"||U==="STYLE"||U==="LINK"&&A.rel.toLowerCase()==="stylesheet"||l.removeChild(A),A=w}}if(d===0){e.removeChild(g),fo(r);return}d--}else l==="$"||l==="$?"||l==="$!"?d++:u=l.charCodeAt(0)-48;else u=0;l=g}while(l);fo(r)}function Yd(e){var r=e.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var l=r;switch(r=r.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Yd(l),Vc(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function pT(e,r,l,u){for(;e.nodeType===1;){var d=l;if(e.nodeName.toLowerCase()!==r.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[vl])switch(r){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(g=e.getAttribute("rel"),g==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(g!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(g=e.getAttribute("src"),(g!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&g&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(r==="input"&&e.type==="hidden"){var g=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===g)return e}else return e;if(e=Bn(e.nextSibling),e===null)break}return null}function yT(e,r,l){if(r==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Bn(e.nextSibling),e===null))return null;return e}function Gd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function vT(e,r){var l=e.ownerDocument;if(e.data!=="$?"||l.readyState==="complete")r();else{var u=function(){r(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function Bn(e){for(;e!=null;e=e.nextSibling){var r=e.nodeType;if(r===1||r===3)break;if(r===8){if(r=e.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return e}var qd=null;function Vy(e){e=e.previousSibling;for(var r=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(r===0)return e;r--}else l==="/$"&&r++}e=e.previousSibling}return null}function Xy(e,r,l){switch(r=rs(l),e){case"html":if(e=r.documentElement,!e)throw Error(a(452));return e;case"head":if(e=r.head,!e)throw Error(a(453));return e;case"body":if(e=r.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function ro(e){for(var r=e.attributes;r.length;)e.removeAttributeNode(r[0]);Vc(e)}var Cn=new Map,Py=new Set;function is(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ar=P.d;P.d={f:bT,r:xT,D:ST,C:AT,L:TT,m:CT,X:MT,S:wT,M:ET};function bT(){var e=Ar.f(),r=Qu();return e||r}function xT(e){var r=Ki(e);r!==null&&r.tag===5&&r.type==="form"?hp(r):Ar.r(e)}var Ra=typeof document>"u"?null:document;function Zy(e,r,l){var u=Ra;if(u&&typeof r=="string"&&r){var d=yn(r);d='link[rel="'+e+'"][href="'+d+'"]',typeof l=="string"&&(d+='[crossorigin="'+l+'"]'),Py.has(d)||(Py.add(d),e={rel:e,crossOrigin:l,href:r},u.querySelector(d)===null&&(r=u.createElement("link"),De(r,"link",e),Ce(r),u.head.appendChild(r)))}}function ST(e){Ar.D(e),Zy("dns-prefetch",e,null)}function AT(e,r){Ar.C(e,r),Zy("preconnect",e,r)}function TT(e,r,l){Ar.L(e,r,l);var u=Ra;if(u&&e&&r){var d='link[rel="preload"][as="'+yn(r)+'"]';r==="image"&&l&&l.imageSrcSet?(d+='[imagesrcset="'+yn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(d+='[imagesizes="'+yn(l.imageSizes)+'"]')):d+='[href="'+yn(e)+'"]';var g=d;switch(r){case"style":g=ka(e);break;case"script":g=Da(e)}Cn.has(g)||(e=p({rel:"preload",href:r==="image"&&l&&l.imageSrcSet?void 0:e,as:r},l),Cn.set(g,e),u.querySelector(d)!==null||r==="style"&&u.querySelector(io(g))||r==="script"&&u.querySelector(ao(g))||(r=u.createElement("link"),De(r,"link",e),Ce(r),u.head.appendChild(r)))}}function CT(e,r){Ar.m(e,r);var l=Ra;if(l&&e){var u=r&&typeof r.as=="string"?r.as:"script",d='link[rel="modulepreload"][as="'+yn(u)+'"][href="'+yn(e)+'"]',g=d;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Da(e)}if(!Cn.has(g)&&(e=p({rel:"modulepreload",href:e},r),Cn.set(g,e),l.querySelector(d)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ao(g)))return}u=l.createElement("link"),De(u,"link",e),Ce(u),l.head.appendChild(u)}}}function wT(e,r,l){Ar.S(e,r,l);var u=Ra;if(u&&e){var d=Fi(u).hoistableStyles,g=ka(e);r=r||"default";var A=d.get(g);if(!A){var w={loading:0,preload:null};if(A=u.querySelector(io(g)))w.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":r},l),(l=Cn.get(g))&&Id(e,l);var U=A=u.createElement("link");Ce(U),De(U,"link",e),U._p=new Promise(function(V,J){U.onload=V,U.onerror=J}),U.addEventListener("load",function(){w.loading|=1}),U.addEventListener("error",function(){w.loading|=2}),w.loading|=4,as(A,r,u)}A={type:"stylesheet",instance:A,count:1,state:w},d.set(g,A)}}}function MT(e,r){Ar.X(e,r);var l=Ra;if(l&&e){var u=Fi(l).hoistableScripts,d=Da(e),g=u.get(d);g||(g=l.querySelector(ao(d)),g||(e=p({src:e,async:!0},r),(r=Cn.get(d))&&Vd(e,r),g=l.createElement("script"),Ce(g),De(g,"link",e),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},u.set(d,g))}}function ET(e,r){Ar.M(e,r);var l=Ra;if(l&&e){var u=Fi(l).hoistableScripts,d=Da(e),g=u.get(d);g||(g=l.querySelector(ao(d)),g||(e=p({src:e,async:!0,type:"module"},r),(r=Cn.get(d))&&Vd(e,r),g=l.createElement("script"),Ce(g),De(g,"link",e),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},u.set(d,g))}}function Qy(e,r,l,u){var d=(d=dt.current)?is(d):null;if(!d)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(r=ka(l.href),l=Fi(d).hoistableStyles,u=l.get(r),u||(u={type:"style",instance:null,count:0,state:null},l.set(r,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ka(l.href);var g=Fi(d).hoistableStyles,A=g.get(e);if(A||(d=d.ownerDocument||d,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(e,A),(g=d.querySelector(io(e)))&&!g._p&&(A.instance=g,A.state.loading=5),Cn.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},Cn.set(e,l),g||OT(d,e,l,A.state))),r&&u===null)throw Error(a(528,""));return A}if(r&&u!==null)throw Error(a(529,""));return null;case"script":return r=l.async,l=l.src,typeof l=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Da(l),l=Fi(d).hoistableScripts,u=l.get(r),u||(u={type:"script",instance:null,count:0,state:null},l.set(r,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function ka(e){return'href="'+yn(e)+'"'}function io(e){return'link[rel="stylesheet"]['+e+"]"}function Ky(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function OT(e,r,l,u){e.querySelector('link[rel="preload"][as="style"]['+r+"]")?u.loading=1:(r=e.createElement("link"),u.preload=r,r.addEventListener("load",function(){return u.loading|=1}),r.addEventListener("error",function(){return u.loading|=2}),De(r,"link",l),Ce(r),e.head.appendChild(r))}function Da(e){return'[src="'+yn(e)+'"]'}function ao(e){return"script[async]"+e}function Fy(e,r,l){if(r.count++,r.instance===null)switch(r.type){case"style":var u=e.querySelector('style[data-href~="'+yn(l.href)+'"]');if(u)return r.instance=u,Ce(u),u;var d=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),Ce(u),De(u,"style",d),as(u,l.precedence,e),r.instance=u;case"stylesheet":d=ka(l.href);var g=e.querySelector(io(d));if(g)return r.state.loading|=4,r.instance=g,Ce(g),g;u=Ky(l),(d=Cn.get(d))&&Id(u,d),g=(e.ownerDocument||e).createElement("link"),Ce(g);var A=g;return A._p=new Promise(function(w,U){A.onload=w,A.onerror=U}),De(g,"link",u),r.state.loading|=4,as(g,l.precedence,e),r.instance=g;case"script":return g=Da(l.src),(d=e.querySelector(ao(g)))?(r.instance=d,Ce(d),d):(u=l,(d=Cn.get(g))&&(u=p({},l),Vd(u,d)),e=e.ownerDocument||e,d=e.createElement("script"),Ce(d),De(d,"link",u),e.head.appendChild(d),r.instance=d);case"void":return null;default:throw Error(a(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(u=r.instance,r.state.loading|=4,as(u,l.precedence,e));return r.instance}function as(e,r,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=u.length?u[u.length-1]:null,g=d,A=0;A<u.length;A++){var w=u[A];if(w.dataset.precedence===r)g=w;else if(g!==d)break}g?g.parentNode.insertBefore(e,g.nextSibling):(r=l.nodeType===9?l.head:l,r.insertBefore(e,r.firstChild))}function Id(e,r){e.crossOrigin==null&&(e.crossOrigin=r.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=r.referrerPolicy),e.title==null&&(e.title=r.title)}function Vd(e,r){e.crossOrigin==null&&(e.crossOrigin=r.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=r.referrerPolicy),e.integrity==null&&(e.integrity=r.integrity)}var ls=null;function Wy(e,r,l){if(ls===null){var u=new Map,d=ls=new Map;d.set(l,u)}else d=ls,u=d.get(l),u||(u=new Map,d.set(l,u));if(u.has(e))return u;for(u.set(e,null),l=l.getElementsByTagName(e),d=0;d<l.length;d++){var g=l[d];if(!(g[vl]||g[je]||e==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var A=g.getAttribute(r)||"";A=e+A;var w=u.get(A);w?w.push(g):u.set(A,[g])}}return u}function Jy(e,r,l){e=e.ownerDocument||e,e.head.insertBefore(l,r==="title"?e.querySelector("head > title"):null)}function _T(e,r,l){if(l===1||r.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return e=r.disabled,typeof r.precedence=="string"&&e==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function t1(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var lo=null;function RT(){}function kT(e,r,l){if(lo===null)throw Error(a(475));var u=lo;if(r.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var d=ka(l.href),g=e.querySelector(io(d));if(g){e=g._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(u.count++,u=os.bind(u),e.then(u,u)),r.state.loading|=4,r.instance=g,Ce(g);return}g=e.ownerDocument||e,l=Ky(l),(d=Cn.get(d))&&Id(l,d),g=g.createElement("link"),Ce(g);var A=g;A._p=new Promise(function(w,U){A.onload=w,A.onerror=U}),De(g,"link",l),r.instance=g}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(r,e),(e=r.state.preload)&&(r.state.loading&3)===0&&(u.count++,r=os.bind(u),e.addEventListener("load",r),e.addEventListener("error",r))}}function DT(){if(lo===null)throw Error(a(475));var e=lo;return e.stylesheets&&e.count===0&&Xd(e,e.stylesheets),0<e.count?function(r){var l=setTimeout(function(){if(e.stylesheets&&Xd(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(l)}}:null}function os(){if(this.count--,this.count===0){if(this.stylesheets)Xd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var us=null;function Xd(e,r){e.stylesheets=null,e.unsuspend!==null&&(e.count++,us=new Map,r.forEach(zT,e),us=null,os.call(e))}function zT(e,r){if(!(r.state.loading&4)){var l=us.get(e);if(l)var u=l.get(null);else{l=new Map,us.set(e,l);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<d.length;g++){var A=d[g];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(l.set(A.dataset.precedence,A),u=A)}u&&l.set(null,u)}d=r.instance,A=d.getAttribute("data-precedence"),g=l.get(A)||u,g===u&&l.set(null,d),l.set(A,d),this.count++,u=os.bind(this),d.addEventListener("load",u),d.addEventListener("error",u),g?g.parentNode.insertBefore(d,g.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),r.state.loading|=4}}var oo={$$typeof:O,Provider:null,Consumer:null,_currentValue:nt,_currentValue2:nt,_threadCount:0};function NT(e,r,l,u,d,g,A,w){this.tag=1,this.containerInfo=e,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=Yc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yc(0),this.hiddenUpdates=Yc(null),this.identifierPrefix=u,this.onUncaughtError=d,this.onCaughtError=g,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function e1(e,r,l,u,d,g,A,w,U,V,J,et){return e=new NT(e,r,l,A,w,U,V,et),r=1,g===!0&&(r|=24),g=rn(3,null,null,r),e.current=g,g.stateNode=e,r=Ef(),r.refCount++,e.pooledCache=r,r.refCount++,g.memoizedState={element:u,isDehydrated:l,cache:r},kf(g),e}function n1(e){return e?(e=sa,e):sa}function r1(e,r,l,u,d,g){d=n1(d),u.context===null?u.context=d:u.pendingContext=d,u=Gr(r),u.payload={element:l},g=g===void 0?null:g,g!==null&&(u.callback=g),l=qr(e,u,r),l!==null&&(sn(l,e,r),$l(l,e,r))}function i1(e,r){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<r?l:r}}function Pd(e,r){i1(e,r),(e=e.alternate)&&i1(e,r)}function a1(e){if(e.tag===13){var r=ua(e,67108864);r!==null&&sn(r,e,67108864),Pd(e,67108864)}}var ss=!0;function UT(e,r,l,u){var d=j.T;j.T=null;var g=P.p;try{P.p=2,Zd(e,r,l,u)}finally{P.p=g,j.T=d}}function jT(e,r,l,u){var d=j.T;j.T=null;var g=P.p;try{P.p=8,Zd(e,r,l,u)}finally{P.p=g,j.T=d}}function Zd(e,r,l,u){if(ss){var d=Qd(u);if(d===null)Ud(e,r,u,cs,l),o1(e,u);else if(BT(d,e,r,l,u))u.stopPropagation();else if(o1(e,u),r&4&&-1<$T.indexOf(e)){for(;d!==null;){var g=Ki(d);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var A=or(g.pendingLanes);if(A!==0){var w=g;for(w.pendingLanes|=2,w.entangledLanes|=2;A;){var U=1<<31-Te(A);w.entanglements[1]|=U,A&=~U}Qn(g),(Lt&6)===0&&(Pu=Yt()+500,to(0))}}break;case 13:w=ua(g,2),w!==null&&sn(w,g,2),Qu(),Pd(g,2)}if(g=Qd(u),g===null&&Ud(e,r,u,cs,l),g===d)break;d=g}d!==null&&u.stopPropagation()}else Ud(e,r,u,null,l)}}function Qd(e){return e=Jc(e),Kd(e)}var cs=null;function Kd(e){if(cs=null,e=Qi(e),e!==null){var r=s(e);if(r===null)e=null;else{var l=r.tag;if(l===13){if(e=c(r),e!==null)return e;e=null}else if(l===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;e=null}else r!==e&&(e=null)}}return cs=e,null}function l1(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(Ae()){case se:return 2;case me:return 8;case Kt:case Xe:return 32;case mn:return 268435456;default:return 32}default:return 32}}var Fd=!1,ni=null,ri=null,ii=null,uo=new Map,so=new Map,ai=[],$T="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 o1(e,r){switch(e){case"focusin":case"focusout":ni=null;break;case"dragenter":case"dragleave":ri=null;break;case"mouseover":case"mouseout":ii=null;break;case"pointerover":case"pointerout":uo.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":so.delete(r.pointerId)}}function co(e,r,l,u,d,g){return e===null||e.nativeEvent!==g?(e={blockedOn:r,domEventName:l,eventSystemFlags:u,nativeEvent:g,targetContainers:[d]},r!==null&&(r=Ki(r),r!==null&&a1(r)),e):(e.eventSystemFlags|=u,r=e.targetContainers,d!==null&&r.indexOf(d)===-1&&r.push(d),e)}function BT(e,r,l,u,d){switch(r){case"focusin":return ni=co(ni,e,r,l,u,d),!0;case"dragenter":return ri=co(ri,e,r,l,u,d),!0;case"mouseover":return ii=co(ii,e,r,l,u,d),!0;case"pointerover":var g=d.pointerId;return uo.set(g,co(uo.get(g)||null,e,r,l,u,d)),!0;case"gotpointercapture":return g=d.pointerId,so.set(g,co(so.get(g)||null,e,r,l,u,d)),!0}return!1}function u1(e){var r=Qi(e.target);if(r!==null){var l=s(r);if(l!==null){if(r=l.tag,r===13){if(r=c(l),r!==null){e.blockedOn=r,k2(e.priority,function(){if(l.tag===13){var u=un();u=Gc(u);var d=ua(l,u);d!==null&&sn(d,l,u),Pd(l,u)}});return}}else if(r===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fs(e){if(e.blockedOn!==null)return!1;for(var r=e.targetContainers;0<r.length;){var l=Qd(e.nativeEvent);if(l===null){l=e.nativeEvent;var u=new l.constructor(l.type,l);Wc=u,l.target.dispatchEvent(u),Wc=null}else return r=Ki(l),r!==null&&a1(r),e.blockedOn=l,!1;r.shift()}return!0}function s1(e,r,l){fs(e)&&l.delete(r)}function LT(){Fd=!1,ni!==null&&fs(ni)&&(ni=null),ri!==null&&fs(ri)&&(ri=null),ii!==null&&fs(ii)&&(ii=null),uo.forEach(s1),so.forEach(s1)}function ds(e,r){e.blockedOn===r&&(e.blockedOn=null,Fd||(Fd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,LT)))}var hs=null;function c1(e){hs!==e&&(hs=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){hs===e&&(hs=null);for(var r=0;r<e.length;r+=3){var l=e[r],u=e[r+1],d=e[r+2];if(typeof u!="function"){if(Kd(u||l)===null)continue;break}var g=Ki(l);g!==null&&(e.splice(r,3),r-=3,Kf(g,{pending:!0,data:d,method:l.method,action:u},u,d))}}))}function fo(e){function r(U){return ds(U,e)}ni!==null&&ds(ni,e),ri!==null&&ds(ri,e),ii!==null&&ds(ii,e),uo.forEach(r),so.forEach(r);for(var l=0;l<ai.length;l++){var u=ai[l];u.blockedOn===e&&(u.blockedOn=null)}for(;0<ai.length&&(l=ai[0],l.blockedOn===null);)u1(l),l.blockedOn===null&&ai.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var d=l[u],g=l[u+1],A=d[Pe]||null;if(typeof g=="function")A||c1(l);else if(A){var w=null;if(g&&g.hasAttribute("formAction")){if(d=g,A=g[Pe]||null)w=A.formAction;else if(Kd(d)!==null)continue}else w=A.action;typeof w=="function"?l[u+1]=w:(l.splice(u,3),u-=3),c1(l)}}}function Wd(e){this._internalRoot=e}ms.prototype.render=Wd.prototype.render=function(e){var r=this._internalRoot;if(r===null)throw Error(a(409));var l=r.current,u=un();r1(l,u,e,r,null,null)},ms.prototype.unmount=Wd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var r=e.containerInfo;r1(e.current,2,null,e,null,null),Qu(),r[Zi]=null}};function ms(e){this._internalRoot=e}ms.prototype.unstable_scheduleHydration=function(e){if(e){var r=E0();e={blockedOn:null,target:e,priority:r};for(var l=0;l<ai.length&&r!==0&&r<ai[l].priority;l++);ai.splice(l,0,e),l===0&&u1(e)}};var f1=n.version;if(f1!=="19.1.0")throw Error(a(527,f1,"19.1.0"));P.findDOMNode=function(e){var r=e._reactInternals;if(r===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=m(r),e=e!==null?h(e):null,e=e===null?null:e.stateNode,e};var HT={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gs.isDisabled&&gs.supportsFiber)try{Ge=gs.inject(HT),te=gs}catch{}}return mo.createRoot=function(e,r){if(!o(e))throw Error(a(299));var l=!1,u="",d=Ep,g=Op,A=_p,w=null;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(u=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(g=r.onCaughtError),r.onRecoverableError!==void 0&&(A=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(w=r.unstable_transitionCallbacks)),r=e1(e,1,!1,null,null,l,u,d,g,A,w,null),e[Zi]=r.current,Nd(e),new Wd(r)},mo.hydrateRoot=function(e,r,l){if(!o(e))throw Error(a(299));var u=!1,d="",g=Ep,A=Op,w=_p,U=null,V=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(g=l.onUncaughtError),l.onCaughtError!==void 0&&(A=l.onCaughtError),l.onRecoverableError!==void 0&&(w=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(U=l.unstable_transitionCallbacks),l.formState!==void 0&&(V=l.formState)),r=e1(e,1,!0,r,l??null,u,d,g,A,w,U,V),r.context=n1(null),l=r.current,u=un(),u=Gc(u),d=Gr(u),d.callback=null,qr(l,d,u),l=u,r.current.lanes=l,yl(r,l),Qn(r),e[Zi]=r.current,Nd(e),new ms(r)},mo.version="19.1.0",mo}var S1;function WT(){if(S1)return th.exports;S1=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(n){console.error(n)}}return t(),th.exports=FT(),th.exports}var JT=WT();function ji(t,...n){const i=new URL(`https://mui.com/production-error/?code=${t}`);return n.forEach(a=>i.searchParams.append("args[]",a)),`Minified MUI error #${t}; visit ${i} for the full message.`}const Er="$$material";function I(){return I=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)({}).hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},I.apply(null,arguments)}var Y=ic();const tC=jb(Y),Bh=IT({__proto__:null,default:tC},[Y]);function eC(t){if(t.sheet)return t.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===t)return document.styleSheets[n]}function nC(t){var n=document.createElement("style");return n.setAttribute("data-emotion",t.key),t.nonce!==void 0&&n.setAttribute("nonce",t.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var Bb=function(){function t(i){var a=this;this._insertTag=function(o){var s;a.tags.length===0?a.insertionPoint?s=a.insertionPoint.nextSibling:a.prepend?s=a.container.firstChild:s=a.before:s=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(o,s),a.tags.push(o)},this.isSpeedy=i.speedy===void 0?!0:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var n=t.prototype;return n.hydrate=function(a){a.forEach(this._insertTag)},n.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(nC(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=eC(o);try{s.insertRule(a,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(a));this.ctr++},n.flush=function(){this.tags.forEach(function(a){var o;return(o=a.parentNode)==null?void 0:o.removeChild(a)}),this.tags=[],this.ctr=0},t}(),He="-ms-",Us="-moz-",Ut="-webkit-",Lb="comm",cm="rule",fm="decl",rC="@import",Hb="@keyframes",iC="@layer",aC=Math.abs,ac=String.fromCharCode,lC=Object.assign;function oC(t,n){return ze(t,0)^45?(((n<<2^ze(t,0))<<2^ze(t,1))<<2^ze(t,2))<<2^ze(t,3):0}function Yb(t){return t.trim()}function uC(t,n){return(t=n.exec(t))?t[0]:t}function jt(t,n,i){return t.replace(n,i)}function Lh(t,n){return t.indexOf(n)}function ze(t,n){return t.charCodeAt(n)|0}function ko(t,n,i){return t.slice(n,i)}function Fn(t){return t.length}function dm(t){return t.length}function ps(t,n){return n.push(t),t}function sC(t,n){return t.map(n).join("")}var lc=1,Ka=1,Gb=0,en=0,ye=0,fl="";function oc(t,n,i,a,o,s,c){return{value:t,root:n,parent:i,type:a,props:o,children:s,line:lc,column:Ka,length:c,return:""}}function go(t,n){return lC(oc("",null,null,"",null,null,0),t,{length:-t.length},n)}function cC(){return ye}function fC(){return ye=en>0?ze(fl,--en):0,Ka--,ye===10&&(Ka=1,lc--),ye}function fn(){return ye=en<Gb?ze(fl,en++):0,Ka++,ye===10&&(Ka=1,lc++),ye}function tr(){return ze(fl,en)}function _s(){return en}function qo(t,n){return ko(fl,t,n)}function Do(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 qb(t){return lc=Ka=1,Gb=Fn(fl=t),en=0,[]}function Ib(t){return fl="",t}function Rs(t){return Yb(qo(en-1,Hh(t===91?t+2:t===40?t+1:t)))}function dC(t){for(;(ye=tr())&&ye<33;)fn();return Do(t)>2||Do(ye)>3?"":" "}function hC(t,n){for(;--n&&fn()&&!(ye<48||ye>102||ye>57&&ye<65||ye>70&&ye<97););return qo(t,_s()+(n<6&&tr()==32&&fn()==32))}function Hh(t){for(;fn();)switch(ye){case t:return en;case 34:case 39:t!==34&&t!==39&&Hh(ye);break;case 40:t===41&&Hh(t);break;case 92:fn();break}return en}function mC(t,n){for(;fn()&&t+ye!==57;)if(t+ye===84&&tr()===47)break;return"/*"+qo(n,en-1)+"*"+ac(t===47?t:fn())}function gC(t){for(;!Do(tr());)fn();return qo(t,en)}function pC(t){return Ib(ks("",null,null,null,[""],t=qb(t),0,[0],t))}function ks(t,n,i,a,o,s,c,f,m){for(var h=0,p=0,y=c,v=0,b=0,x=0,S=1,C=1,E=1,R=0,O="",k=o,M=s,_=a,D=O;C;)switch(x=R,R=fn()){case 40:if(x!=108&&ze(D,y-1)==58){Lh(D+=jt(Rs(R),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:D+=Rs(R);break;case 9:case 10:case 13:case 32:D+=dC(x);break;case 92:D+=hC(_s()-1,7);continue;case 47:switch(tr()){case 42:case 47:ps(yC(mC(fn(),_s()),n,i),m);break;default:D+="/"}break;case 123*S:f[h++]=Fn(D)*E;case 125*S:case 59:case 0:switch(R){case 0:case 125:C=0;case 59+p:E==-1&&(D=jt(D,/\f/g,"")),b>0&&Fn(D)-y&&ps(b>32?T1(D+";",a,i,y-1):T1(jt(D," ","")+";",a,i,y-2),m);break;case 59:D+=";";default:if(ps(_=A1(D,n,i,h,p,o,f,O,k=[],M=[],y),s),R===123)if(p===0)ks(D,n,_,_,k,s,y,f,M);else switch(v===99&&ze(D,3)===110?100:v){case 100:case 108:case 109:case 115:ks(t,_,_,a&&ps(A1(t,_,_,0,0,o,f,O,o,k=[],y),M),o,M,y,f,a?k:M);break;default:ks(D,_,_,_,[""],M,0,f,M)}}h=p=b=0,S=E=1,O=D="",y=c;break;case 58:y=1+Fn(D),b=x;default:if(S<1){if(R==123)--S;else if(R==125&&S++==0&&fC()==125)continue}switch(D+=ac(R),R*S){case 38:E=p>0?1:(D+="\f",-1);break;case 44:f[h++]=(Fn(D)-1)*E,E=1;break;case 64:tr()===45&&(D+=Rs(fn())),v=tr(),p=y=Fn(O=D+=gC(_s())),R++;break;case 45:x===45&&Fn(D)==2&&(S=0)}}return s}function A1(t,n,i,a,o,s,c,f,m,h,p){for(var y=o-1,v=o===0?s:[""],b=dm(v),x=0,S=0,C=0;x<a;++x)for(var E=0,R=ko(t,y+1,y=aC(S=c[x])),O=t;E<b;++E)(O=Yb(S>0?v[E]+" "+R:jt(R,/&\f/g,v[E])))&&(m[C++]=O);return oc(t,n,i,o===0?cm:f,m,h,p)}function yC(t,n,i){return oc(t,n,i,Lb,ac(cC()),ko(t,2,-2),0)}function T1(t,n,i,a){return oc(t,n,i,fm,ko(t,0,a),ko(t,a+1,-1),a)}function Xa(t,n){for(var i="",a=dm(t),o=0;o<a;o++)i+=n(t[o],o,t,n)||"";return i}function vC(t,n,i,a){switch(t.type){case iC:if(t.children.length)break;case rC:case fm:return t.return=t.return||t.value;case Lb:return"";case Hb:return t.return=t.value+"{"+Xa(t.children,a)+"}";case cm:t.value=t.props.join(",")}return Fn(i=Xa(t.children,a))?t.return=t.value+"{"+i+"}":""}function bC(t){var n=dm(t);return function(i,a,o,s){for(var c="",f=0;f<n;f++)c+=t[f](i,a,o,s)||"";return c}}function xC(t){return function(n){n.root||(n=n.return)&&t(n)}}function Vb(t){var n=Object.create(null);return function(i){return n[i]===void 0&&(n[i]=t(i)),n[i]}}var SC=function(n,i,a){for(var o=0,s=0;o=s,s=tr(),o===38&&s===12&&(i[a]=1),!Do(s);)fn();return qo(n,en)},AC=function(n,i){var a=-1,o=44;do switch(Do(o)){case 0:o===38&&tr()===12&&(i[a]=1),n[a]+=SC(en-1,i,a);break;case 2:n[a]+=Rs(o);break;case 4:if(o===44){n[++a]=tr()===58?"&\f":"",i[a]=n[a].length;break}default:n[a]+=ac(o)}while(o=fn());return n},TC=function(n,i){return Ib(AC(qb(n),i))},C1=new WeakMap,CC=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var i=n.value,a=n.parent,o=n.column===a.column&&n.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(n.props.length===1&&i.charCodeAt(0)!==58&&!C1.get(a))&&!o){C1.set(n,!0);for(var s=[],c=TC(i,s),f=a.props,m=0,h=0;m<c.length;m++)for(var p=0;p<f.length;p++,h++)n.props[h]=s[m]?c[m].replace(/&\f/g,f[p]):f[p]+" "+c[m]}}},wC=function(n){if(n.type==="decl"){var i=n.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(n.return="",n.value="")}};function Xb(t,n){switch(oC(t,n)){case 5103:return Ut+"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 Ut+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Ut+t+Us+t+He+t+t;case 6828:case 4268:return Ut+t+He+t+t;case 6165:return Ut+t+He+"flex-"+t+t;case 5187:return Ut+t+jt(t,/(\w+).+(:[^]+)/,Ut+"box-$1$2"+He+"flex-$1$2")+t;case 5443:return Ut+t+He+"flex-item-"+jt(t,/flex-|-self/,"")+t;case 4675:return Ut+t+He+"flex-line-pack"+jt(t,/align-content|flex-|-self/,"")+t;case 5548:return Ut+t+He+jt(t,"shrink","negative")+t;case 5292:return Ut+t+He+jt(t,"basis","preferred-size")+t;case 6060:return Ut+"box-"+jt(t,"-grow","")+Ut+t+He+jt(t,"grow","positive")+t;case 4554:return Ut+jt(t,/([^-])(transform)/g,"$1"+Ut+"$2")+t;case 6187:return jt(jt(jt(t,/(zoom-|grab)/,Ut+"$1"),/(image-set)/,Ut+"$1"),t,"")+t;case 5495:case 3959:return jt(t,/(image-set\([^]*)/,Ut+"$1$`$1");case 4968:return jt(jt(t,/(.+:)(flex-)?(.*)/,Ut+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ut+t+t;case 4095:case 3583:case 4068:case 2532:return jt(t,/(.+)-inline(.+)/,Ut+"$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(Fn(t)-1-n>6)switch(ze(t,n+1)){case 109:if(ze(t,n+4)!==45)break;case 102:return jt(t,/(.+:)(.+)-([^]+)/,"$1"+Ut+"$2-$3$1"+Us+(ze(t,n+3)==108?"$3":"$2-$3"))+t;case 115:return~Lh(t,"stretch")?Xb(jt(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(ze(t,n+1)!==115)break;case 6444:switch(ze(t,Fn(t)-3-(~Lh(t,"!important")&&10))){case 107:return jt(t,":",":"+Ut)+t;case 101:return jt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ut+(ze(t,14)===45?"inline-":"")+"box$3$1"+Ut+"$2$3$1"+He+"$2box$3")+t}break;case 5936:switch(ze(t,n+11)){case 114:return Ut+t+He+jt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ut+t+He+jt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ut+t+He+jt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ut+t+He+t+t}return t}var MC=function(n,i,a,o){if(n.length>-1&&!n.return)switch(n.type){case fm:n.return=Xb(n.value,n.length);break;case Hb:return Xa([go(n,{value:jt(n.value,"@","@"+Ut)})],o);case cm:if(n.length)return sC(n.props,function(s){switch(uC(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xa([go(n,{props:[jt(s,/:(read-\w+)/,":"+Us+"$1")]})],o);case"::placeholder":return Xa([go(n,{props:[jt(s,/:(plac\w+)/,":"+Ut+"input-$1")]}),go(n,{props:[jt(s,/:(plac\w+)/,":"+Us+"$1")]}),go(n,{props:[jt(s,/:(plac\w+)/,He+"input-$1")]})],o)}return""})}},EC=[MC],Pb=function(n){var i=n.key;if(i==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(S){var C=S.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=n.stylisPlugins||EC,s={},c,f=[];c=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(S){for(var C=S.getAttribute("data-emotion").split(" "),E=1;E<C.length;E++)s[C[E]]=!0;f.push(S)});var m,h=[CC,wC];{var p,y=[vC,xC(function(S){p.insert(S)})],v=bC(h.concat(o,y)),b=function(C){return Xa(pC(C),v)};m=function(C,E,R,O){p=R,b(C?C+"{"+E.styles+"}":E.styles),O&&(x.inserted[E.name]=!0)}}var x={key:i,sheet:new Bb({key:i,container:c,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:s,registered:{},insert:m};return x.sheet.hydrate(f),x},ah={exports:{}},$t={};/** @license React v16.13.1 48 + `+l.stack}}function pn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function U0(e){var r=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function $2(e){var r=U0(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),s=""+e[r];if(!e.hasOwnProperty(r)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var d=l.get,g=l.set;return Object.defineProperty(e,r,{configurable:!0,get:function(){return d.call(this)},set:function(A){s=""+A,g.call(this,A)}}),Object.defineProperty(e,r,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(A){s=""+A},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}function ss(e){e._valueTracker||(e._valueTracker=$2(e))}function j0(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var l=r.getValue(),s="";return e&&(s=U0(e)?e.checked?"true":"false":e.value),e=s,e!==l?(r.setValue(e),!0):!1}function us(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 B2=/[\n"\\]/g;function yn(e){return e.replace(B2,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Qc(e,r,l,s,d,g,A,w){e.name="",A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.type=A:e.removeAttribute("type"),r!=null?A==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+pn(r)):e.value!==""+pn(r)&&(e.value=""+pn(r)):A!=="submit"&&A!=="reset"||e.removeAttribute("value"),r!=null?Kc(e,A,pn(r)):l!=null?Kc(e,A,pn(l)):s!=null&&e.removeAttribute("value"),d==null&&g!=null&&(e.defaultChecked=!!g),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+pn(w):e.removeAttribute("name")}function $0(e,r,l,s,d,g,A,w){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.type=g),r!=null||l!=null){if(!(g!=="submit"&&g!=="reset"||r!=null))return;l=l!=null?""+pn(l):"",r=r!=null?""+pn(r):l,w||r===e.value||(e.value=r),e.defaultValue=r}s=s??d,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=w?e.checked:!!s,e.defaultChecked=!!s,A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(e.name=A)}function Kc(e,r,l){r==="number"&&us(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ta(e,r,l,s){if(e=e.options,r){r={};for(var d=0;d<l.length;d++)r["$"+l[d]]=!0;for(l=0;l<e.length;l++)d=r.hasOwnProperty("$"+e[l].value),e[l].selected!==d&&(e[l].selected=d),d&&s&&(e[l].defaultSelected=!0)}else{for(l=""+pn(l),r=null,d=0;d<e.length;d++){if(e[d].value===l){e[d].selected=!0,s&&(e[d].defaultSelected=!0);return}r!==null||e[d].disabled||(r=e[d])}r!==null&&(r.selected=!0)}}function B0(e,r,l){if(r!=null&&(r=""+pn(r),r!==e.value&&(e.value=r),l==null)){e.defaultValue!==r&&(e.defaultValue=r);return}e.defaultValue=l!=null?""+pn(l):""}function L0(e,r,l,s){if(r==null){if(s!=null){if(l!=null)throw Error(a(92));if(ot(s)){if(1<s.length)throw Error(a(93));s=s[0]}l=s}l==null&&(l=""),r=l}l=pn(r),e.defaultValue=l,s=e.textContent,s===l&&s!==""&&s!==null&&(e.value=s)}function ea(e,r){if(r){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=r;return}}e.textContent=r}var L2=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function H0(e,r,l){var s=r.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?s?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="":s?e.setProperty(r,l):typeof l!="number"||l===0||L2.has(r)?r==="float"?e.cssFloat=l:e[r]=(""+l).trim():e[r]=l+"px"}function Y0(e,r,l){if(r!=null&&typeof r!="object")throw Error(a(62));if(e=e.style,l!=null){for(var s in l)!l.hasOwnProperty(s)||r!=null&&r.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var d in r)s=r[d],r.hasOwnProperty(d)&&l[d]!==s&&H0(e,d,s)}else for(var g in r)r.hasOwnProperty(g)&&H0(e,g,r[g])}function Fc(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 H2=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"]]),Y2=/^[\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 cs(e){return Y2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Wc=null;function Jc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var na=null,ra=null;function G0(e){var r=Ki(e);if(r&&(e=r.stateNode)){var l=e[Pe]||null;t:switch(e=r.stateNode,r.type){case"input":if(Qc(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),r=l.name,l.type==="radio"&&r!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+yn(""+r)+'"][type="radio"]'),r=0;r<l.length;r++){var s=l[r];if(s!==e&&s.form===e.form){var d=s[Pe]||null;if(!d)throw Error(a(90));Qc(s,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(r=0;r<l.length;r++)s=l[r],s.form===e.form&&j0(s)}break t;case"textarea":B0(e,l.value,l.defaultValue);break t;case"select":r=l.value,r!=null&&ta(e,!!l.multiple,r,!1)}}}var tf=!1;function q0(e,r,l){if(tf)return e(r,l);tf=!0;try{var s=e(r);return s}finally{if(tf=!1,(na!==null||ra!==null)&&(Qs(),na&&(r=na,e=ra,ra=na=null,G0(r),e)))for(r=0;r<e.length;r++)G0(e[r])}}function xl(e,r){var l=e.stateNode;if(l===null)return null;var s=l[Pe]||null;if(s===null)return null;l=s[r];t:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break t;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(a(231,r,typeof l));return l}var ur=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ef=!1;if(ur)try{var Sl={};Object.defineProperty(Sl,"passive",{get:function(){ef=!0}}),window.addEventListener("test",Sl,Sl),window.removeEventListener("test",Sl,Sl)}catch{ef=!1}var Lr=null,nf=null,fs=null;function I0(){if(fs)return fs;var e,r=nf,l=r.length,s,d="value"in Lr?Lr.value:Lr.textContent,g=d.length;for(e=0;e<l&&r[e]===d[e];e++);var A=l-e;for(s=1;s<=A&&r[l-s]===d[g-s];s++);return fs=d.slice(e,1<s?1-s:void 0)}function ds(e){var r=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&r===13&&(e=13)):e=r,e===10&&(e=13),32<=e||e===13?e:0}function hs(){return!0}function V0(){return!1}function Ze(e){function r(l,s,d,g,A){this._reactName=l,this._targetInst=d,this.type=s,this.nativeEvent=g,this.target=A,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(l=e[w],this[w]=l?l(g):g[w]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?hs:V0,this.isPropagationStopped=V0,this}return p(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=hs)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=hs)},persist:function(){},isPersistent:hs}),r}var hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ms=Ze(hi),Al=p({},hi,{view:0,detail:0}),G2=Ze(Al),rf,af,Tl,gs=p({},Al,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:of,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!==Tl&&(Tl&&e.type==="mousemove"?(rf=e.screenX-Tl.screenX,af=e.screenY-Tl.screenY):af=rf=0,Tl=e),rf)},movementY:function(e){return"movementY"in e?e.movementY:af}}),X0=Ze(gs),q2=p({},gs,{dataTransfer:0}),I2=Ze(q2),V2=p({},Al,{relatedTarget:0}),lf=Ze(V2),X2=p({},hi,{animationName:0,elapsedTime:0,pseudoElement:0}),P2=Ze(X2),Z2=p({},hi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Q2=Ze(Z2),K2=p({},hi,{data:0}),P0=Ze(K2),F2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},W2={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"},J2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tA(e){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(e):(e=J2[e])?!!r[e]:!1}function of(){return tA}var eA=p({},Al,{key:function(e){if(e.key){var r=F2[e.key]||e.key;if(r!=="Unidentified")return r}return e.type==="keypress"?(e=ds(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?W2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:of,charCode:function(e){return e.type==="keypress"?ds(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ds(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nA=Ze(eA),rA=p({},gs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Z0=Ze(rA),iA=p({},Al,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:of}),aA=Ze(iA),lA=p({},hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),oA=Ze(lA),sA=p({},gs,{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}),uA=Ze(sA),cA=p({},hi,{newState:0,oldState:0}),fA=Ze(cA),dA=[9,13,27,32],sf=ur&&"CompositionEvent"in window,Cl=null;ur&&"documentMode"in document&&(Cl=document.documentMode);var hA=ur&&"TextEvent"in window&&!Cl,Q0=ur&&(!sf||Cl&&8<Cl&&11>=Cl),K0=" ",F0=!1;function W0(e,r){switch(e){case"keyup":return dA.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function J0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ia=!1;function mA(e,r){switch(e){case"compositionend":return J0(r);case"keypress":return r.which!==32?null:(F0=!0,K0);case"textInput":return e=r.data,e===K0&&F0?null:e;default:return null}}function gA(e,r){if(ia)return e==="compositionend"||!sf&&W0(e,r)?(e=I0(),fs=nf=Lr=null,ia=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Q0&&r.locale!=="ko"?null:r.data;default:return null}}var pA={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 tg(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r==="input"?!!pA[e.type]:r==="textarea"}function eg(e,r,l,s){na?ra?ra.push(s):ra=[s]:na=s,r=eu(r,"onChange"),0<r.length&&(l=new ms("onChange","change",null,l,s),e.push({event:l,listeners:r}))}var wl=null,Ml=null;function yA(e){Uy(e,0)}function ps(e){var r=bl(e);if(j0(r))return e}function ng(e,r){if(e==="change")return r}var rg=!1;if(ur){var uf;if(ur){var cf="oninput"in document;if(!cf){var ig=document.createElement("div");ig.setAttribute("oninput","return;"),cf=typeof ig.oninput=="function"}uf=cf}else uf=!1;rg=uf&&(!document.documentMode||9<document.documentMode)}function ag(){wl&&(wl.detachEvent("onpropertychange",lg),Ml=wl=null)}function lg(e){if(e.propertyName==="value"&&ps(Ml)){var r=[];eg(r,Ml,e,Jc(e)),q0(yA,r)}}function vA(e,r,l){e==="focusin"?(ag(),wl=r,Ml=l,wl.attachEvent("onpropertychange",lg)):e==="focusout"&&ag()}function bA(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ps(Ml)}function xA(e,r){if(e==="click")return ps(r)}function SA(e,r){if(e==="input"||e==="change")return ps(r)}function AA(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var nn=typeof Object.is=="function"?Object.is:AA;function El(e,r){if(nn(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;var l=Object.keys(e),s=Object.keys(r);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var d=l[s];if(!rt.call(r,d)||!nn(e[d],r[d]))return!1}return!0}function og(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sg(e,r){var l=og(e);e=0;for(var s;l;){if(l.nodeType===3){if(s=e+l.textContent.length,e<=r&&s>=r)return{node:l,offset:r-e};e=s}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=og(l)}}function ug(e,r){return e&&r?e===r?!0:e&&e.nodeType===3?!1:r&&r.nodeType===3?ug(e,r.parentNode):"contains"in e?e.contains(r):e.compareDocumentPosition?!!(e.compareDocumentPosition(r)&16):!1:!1}function cg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var r=us(e.document);r instanceof e.HTMLIFrameElement;){try{var l=typeof r.contentWindow.location.href=="string"}catch{l=!1}if(l)e=r.contentWindow;else break;r=us(e.document)}return r}function ff(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&(r==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||r==="textarea"||e.contentEditable==="true")}var TA=ur&&"documentMode"in document&&11>=document.documentMode,aa=null,df=null,Ol=null,hf=!1;function fg(e,r,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;hf||aa==null||aa!==us(s)||(s=aa,"selectionStart"in s&&ff(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Ol&&El(Ol,s)||(Ol=s,s=eu(df,"onSelect"),0<s.length&&(r=new ms("onSelect","select",null,r,l),e.push({event:r,listeners:s}),r.target=aa)))}function mi(e,r){var l={};return l[e.toLowerCase()]=r.toLowerCase(),l["Webkit"+e]="webkit"+r,l["Moz"+e]="moz"+r,l}var la={animationend:mi("Animation","AnimationEnd"),animationiteration:mi("Animation","AnimationIteration"),animationstart:mi("Animation","AnimationStart"),transitionrun:mi("Transition","TransitionRun"),transitionstart:mi("Transition","TransitionStart"),transitioncancel:mi("Transition","TransitionCancel"),transitionend:mi("Transition","TransitionEnd")},mf={},dg={};ur&&(dg=document.createElement("div").style,"AnimationEvent"in window||(delete la.animationend.animation,delete la.animationiteration.animation,delete la.animationstart.animation),"TransitionEvent"in window||delete la.transitionend.transition);function gi(e){if(mf[e])return mf[e];if(!la[e])return e;var r=la[e],l;for(l in r)if(r.hasOwnProperty(l)&&l in dg)return mf[e]=r[l];return e}var hg=gi("animationend"),mg=gi("animationiteration"),gg=gi("animationstart"),CA=gi("transitionrun"),wA=gi("transitionstart"),MA=gi("transitioncancel"),pg=gi("transitionend"),yg=new Map,gf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");gf.push("scrollEnd");function jn(e,r){yg.set(e,r),di(r,[e])}var vg=new WeakMap;function vn(e,r){if(typeof e=="object"&&e!==null){var l=vg.get(e);return l!==void 0?l:(r={value:e,source:r,stack:N0(r)},vg.set(e,r),r)}return{value:e,source:r,stack:N0(r)}}var bn=[],oa=0,pf=0;function ys(){for(var e=oa,r=pf=oa=0;r<e;){var l=bn[r];bn[r++]=null;var s=bn[r];bn[r++]=null;var d=bn[r];bn[r++]=null;var g=bn[r];if(bn[r++]=null,s!==null&&d!==null){var A=s.pending;A===null?d.next=d:(d.next=A.next,A.next=d),s.pending=d}g!==0&&bg(l,d,g)}}function vs(e,r,l,s){bn[oa++]=e,bn[oa++]=r,bn[oa++]=l,bn[oa++]=s,pf|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function yf(e,r,l,s){return vs(e,r,l,s),bs(e)}function sa(e,r){return vs(e,null,null,r),bs(e)}function bg(e,r,l){e.lanes|=l;var s=e.alternate;s!==null&&(s.lanes|=l);for(var d=!1,g=e.return;g!==null;)g.childLanes|=l,s=g.alternate,s!==null&&(s.childLanes|=l),g.tag===22&&(e=g.stateNode,e===null||e._visibility&1||(d=!0)),e=g,g=g.return;return e.tag===3?(g=e.stateNode,d&&r!==null&&(d=31-Te(l),e=g.hiddenUpdates,s=e[d],s===null?e[d]=[r]:s.push(r),r.lane=l|536870912),g):null}function bs(e){if(50<Jl)throw Jl=0,Td=null,Error(a(185));for(var r=e.return;r!==null;)e=r,r=e.return;return e.tag===3?e.stateNode:null}var ua={};function EA(e,r,l,s){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=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(e,r,l,s){return new EA(e,r,l,s)}function vf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cr(e,r){var l=e.alternate;return l===null?(l=rn(e.tag,r,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=r,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,r=e.dependencies,l.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function xg(e,r){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=r,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,r=l.dependencies,e.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),e}function xs(e,r,l,s,d,g){var A=0;if(s=e,typeof e=="function")vf(e)&&(A=1);else if(typeof e=="string")A=RT(e,l,ct.current)?26:e==="html"||e==="head"||e==="body"?27:5;else t:switch(e){case $:return e=rn(31,l,r,d),e.elementType=$,e.lanes=g,e;case x:return pi(l.children,d,g,r);case S:A=8,d|=24;break;case C:return e=rn(12,l,r,d|2),e.elementType=C,e.lanes=g,e;case M:return e=rn(13,l,r,d),e.elementType=M,e.lanes=g,e;case R:return e=rn(19,l,r,d),e.elementType=R,e.lanes=g,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case E:case O:A=10;break t;case _:A=9;break t;case k:A=11;break t;case D:A=14;break t;case L:A=16,s=null;break t}A=29,l=Error(a(130,e===null?"null":typeof e,"")),s=null}return r=rn(A,l,r,d),r.elementType=e,r.type=s,r.lanes=g,r}function pi(e,r,l,s){return e=rn(7,e,s,r),e.lanes=l,e}function bf(e,r,l){return e=rn(6,e,null,r),e.lanes=l,e}function xf(e,r,l){return r=rn(4,e.children!==null?e.children:[],e.key,r),r.lanes=l,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}var ca=[],fa=0,Ss=null,As=0,xn=[],Sn=0,yi=null,fr=1,dr="";function vi(e,r){ca[fa++]=As,ca[fa++]=Ss,Ss=e,As=r}function Sg(e,r,l){xn[Sn++]=fr,xn[Sn++]=dr,xn[Sn++]=yi,yi=e;var s=fr;e=dr;var d=32-Te(s)-1;s&=~(1<<d),l+=1;var g=32-Te(r)+d;if(30<g){var A=d-d%5;g=(s&(1<<A)-1).toString(32),s>>=A,d-=A,fr=1<<32-Te(r)+d|l<<d|s,dr=g+e}else fr=1<<g|l<<d|s,dr=e}function Sf(e){e.return!==null&&(vi(e,1),Sg(e,1,0))}function Af(e){for(;e===Ss;)Ss=ca[--fa],ca[fa]=null,As=ca[--fa],ca[fa]=null;for(;e===yi;)yi=xn[--Sn],xn[Sn]=null,dr=xn[--Sn],xn[Sn]=null,fr=xn[--Sn],xn[Sn]=null}var Ie=null,ae=null,Nt=!1,bi=null,Vn=!1,Tf=Error(a(519));function xi(e){var r=Error(a(418,""));throw kl(vn(r,e)),Tf}function Ag(e){var r=e.stateNode,l=e.type,s=e.memoizedProps;switch(r[je]=e,r[Pe]=s,l){case"dialog":Rt("cancel",r),Rt("close",r);break;case"iframe":case"object":case"embed":Rt("load",r);break;case"video":case"audio":for(l=0;l<eo.length;l++)Rt(eo[l],r);break;case"source":Rt("error",r);break;case"img":case"image":case"link":Rt("error",r),Rt("load",r);break;case"details":Rt("toggle",r);break;case"input":Rt("invalid",r),$0(r,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),ss(r);break;case"select":Rt("invalid",r);break;case"textarea":Rt("invalid",r),L0(r,s.value,s.defaultValue,s.children),ss(r)}l=s.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||r.textContent===""+l||s.suppressHydrationWarning===!0||Ly(r.textContent,l)?(s.popover!=null&&(Rt("beforetoggle",r),Rt("toggle",r)),s.onScroll!=null&&Rt("scroll",r),s.onScrollEnd!=null&&Rt("scrollend",r),s.onClick!=null&&(r.onclick=nu),r=!0):r=!1,r||xi(e)}function Tg(e){for(Ie=e.return;Ie;)switch(Ie.tag){case 5:case 13:Vn=!1;return;case 27:case 3:Vn=!0;return;default:Ie=Ie.return}}function Rl(e){if(e!==Ie)return!1;if(!Nt)return Tg(e),Nt=!0,!1;var r=e.tag,l;if((l=r!==3&&r!==27)&&((l=r===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Ld(e.type,e.memoizedProps)),l=!l),l&&ae&&xi(e),Tg(e),r===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));t:{for(e=e.nextSibling,r=0;e;){if(e.nodeType===8)if(l=e.data,l==="/$"){if(r===0){ae=Bn(e.nextSibling);break t}r--}else l!=="$"&&l!=="$!"&&l!=="$?"||r++;e=e.nextSibling}ae=null}}else r===27?(r=ae,ei(e.type)?(e=qd,qd=null,ae=e):ae=r):ae=Ie?Bn(e.stateNode.nextSibling):null;return!0}function _l(){ae=Ie=null,Nt=!1}function Cg(){var e=bi;return e!==null&&(Fe===null?Fe=e:Fe.push.apply(Fe,e),bi=null),e}function kl(e){bi===null?bi=[e]:bi.push(e)}var Cf=F(null),Si=null,hr=null;function Hr(e,r,l){lt(Cf,r._currentValue),r._currentValue=l}function mr(e){e._currentValue=Cf.current,at(Cf)}function wf(e,r,l){for(;e!==null;){var s=e.alternate;if((e.childLanes&r)!==r?(e.childLanes|=r,s!==null&&(s.childLanes|=r)):s!==null&&(s.childLanes&r)!==r&&(s.childLanes|=r),e===l)break;e=e.return}}function Mf(e,r,l,s){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var g=d.dependencies;if(g!==null){var A=d.child;g=g.firstContext;t:for(;g!==null;){var w=g;g=d;for(var U=0;U<r.length;U++)if(w.context===r[U]){g.lanes|=l,w=g.alternate,w!==null&&(w.lanes|=l),wf(g.return,l,e),s||(A=null);break t}g=w.next}}else if(d.tag===18){if(A=d.return,A===null)throw Error(a(341));A.lanes|=l,g=A.alternate,g!==null&&(g.lanes|=l),wf(A,l,e),A=null}else A=d.child;if(A!==null)A.return=d;else for(A=d;A!==null;){if(A===e){A=null;break}if(d=A.sibling,d!==null){d.return=A.return,A=d;break}A=A.return}d=A}}function Dl(e,r,l,s){e=null;for(var d=r,g=!1;d!==null;){if(!g){if((d.flags&524288)!==0)g=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var A=d.alternate;if(A===null)throw Error(a(387));if(A=A.memoizedProps,A!==null){var w=d.type;nn(d.pendingProps.value,A.value)||(e!==null?e.push(w):e=[w])}}else if(d===gt.current){if(A=d.alternate,A===null)throw Error(a(387));A.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(oo):e=[oo])}d=d.return}e!==null&&Mf(r,e,l,s),r.flags|=262144}function Ts(e){for(e=e.firstContext;e!==null;){if(!nn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ai(e){Si=e,hr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $e(e){return wg(Si,e)}function Cs(e,r){return Si===null&&Ai(e),wg(e,r)}function wg(e,r){var l=r._currentValue;if(r={context:r,memoizedValue:l,next:null},hr===null){if(e===null)throw Error(a(308));hr=r,e.dependencies={lanes:0,firstContext:r},e.flags|=524288}else hr=hr.next=r;return l}var OA=typeof AbortController<"u"?AbortController:function(){var e=[],r=this.signal={aborted:!1,addEventListener:function(l,s){e.push(s)}};this.abort=function(){r.aborted=!0,e.forEach(function(l){return l()})}},RA=t.unstable_scheduleCallback,_A=t.unstable_NormalPriority,ve={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ef(){return{controller:new OA,data:new Map,refCount:0}}function zl(e){e.refCount--,e.refCount===0&&RA(_A,function(){e.controller.abort()})}var Nl=null,Of=0,da=0,ha=null;function kA(e,r){if(Nl===null){var l=Nl=[];Of=0,da=_d(),ha={status:"pending",value:void 0,then:function(s){l.push(s)}}}return Of++,r.then(Mg,Mg),r}function Mg(){if(--Of===0&&Nl!==null){ha!==null&&(ha.status="fulfilled");var e=Nl;Nl=null,da=0,ha=null;for(var r=0;r<e.length;r++)(0,e[r])()}}function DA(e,r){var l=[],s={status:"pending",value:null,reason:null,then:function(d){l.push(d)}};return e.then(function(){s.status="fulfilled",s.value=r;for(var d=0;d<l.length;d++)(0,l[d])(r)},function(d){for(s.status="rejected",s.reason=d,d=0;d<l.length;d++)(0,l[d])(void 0)}),s}var Eg=j.S;j.S=function(e,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&kA(e,r),Eg!==null&&Eg(e,r)};var Ti=F(null);function Rf(){var e=Ti.current;return e!==null?e:Ft.pooledCache}function ws(e,r){r===null?lt(Ti,Ti.current):lt(Ti,r.pool)}function Og(){var e=Rf();return e===null?null:{parent:ve._currentValue,pool:e}}var Ul=Error(a(460)),Rg=Error(a(474)),Ms=Error(a(542)),_f={then:function(){}};function _g(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Es(){}function kg(e,r,l){switch(l=e[l],l===void 0?e.push(r):l!==r&&(r.then(Es,Es),r=l),r.status){case"fulfilled":return r.value;case"rejected":throw e=r.reason,zg(e),e;default:if(typeof r.status=="string")r.then(Es,Es);else{if(e=Ft,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=r,e.status="pending",e.then(function(s){if(r.status==="pending"){var d=r;d.status="fulfilled",d.value=s}},function(s){if(r.status==="pending"){var d=r;d.status="rejected",d.reason=s}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw e=r.reason,zg(e),e}throw jl=r,Ul}}var jl=null;function Dg(){if(jl===null)throw Error(a(459));var e=jl;return jl=null,e}function zg(e){if(e===Ul||e===Ms)throw Error(a(483))}var Yr=!1;function kf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Df(e,r){e=e.updateQueue,r.updateQueue===e&&(r.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Gr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function qr(e,r,l){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Lt&2)!==0){var d=s.pending;return d===null?r.next=r:(r.next=d.next,d.next=r),s.pending=r,r=bs(e),bg(e,null,l),r}return vs(e,s,r,l),bs(e)}function $l(e,r,l){if(r=r.updateQueue,r!==null&&(r=r.shared,(l&4194048)!==0)){var s=r.lanes;s&=e.pendingLanes,l|=s,r.lanes=l,M0(e,l)}}function zf(e,r){var l=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var d=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var A={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};g===null?d=g=A:g=g.next=A,l=l.next}while(l!==null);g===null?d=g=r:g=g.next=r}else d=g=r;l={baseState:s.baseState,firstBaseUpdate:d,lastBaseUpdate:g,shared:s.shared,callbacks:s.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=r:e.next=r,l.lastBaseUpdate=r}var Nf=!1;function Bl(){if(Nf){var e=ha;if(e!==null)throw e}}function Ll(e,r,l,s){Nf=!1;var d=e.updateQueue;Yr=!1;var g=d.firstBaseUpdate,A=d.lastBaseUpdate,w=d.shared.pending;if(w!==null){d.shared.pending=null;var U=w,V=U.next;U.next=null,A===null?g=V:A.next=V,A=U;var J=e.alternate;J!==null&&(J=J.updateQueue,w=J.lastBaseUpdate,w!==A&&(w===null?J.firstBaseUpdate=V:w.next=V,J.lastBaseUpdate=U))}if(g!==null){var et=d.baseState;A=0,J=V=U=null,w=g;do{var Z=w.lane&-536870913,Q=Z!==w.lane;if(Q?(kt&Z)===Z:(s&Z)===Z){Z!==0&&Z===da&&(Nf=!0),J!==null&&(J=J.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});t:{var Tt=e,St=w;Z=r;var It=l;switch(St.tag){case 1:if(Tt=St.payload,typeof Tt=="function"){et=Tt.call(It,et,Z);break t}et=Tt;break t;case 3:Tt.flags=Tt.flags&-65537|128;case 0:if(Tt=St.payload,Z=typeof Tt=="function"?Tt.call(It,et,Z):Tt,Z==null)break t;et=p({},et,Z);break t;case 2:Yr=!0}}Z=w.callback,Z!==null&&(e.flags|=64,Q&&(e.flags|=8192),Q=d.callbacks,Q===null?d.callbacks=[Z]:Q.push(Z))}else Q={lane:Z,tag:w.tag,payload:w.payload,callback:w.callback,next:null},J===null?(V=J=Q,U=et):J=J.next=Q,A|=Z;if(w=w.next,w===null){if(w=d.shared.pending,w===null)break;Q=w,w=Q.next,Q.next=null,d.lastBaseUpdate=Q,d.shared.pending=null}}while(!0);J===null&&(U=et),d.baseState=U,d.firstBaseUpdate=V,d.lastBaseUpdate=J,g===null&&(d.shared.lanes=0),Fr|=A,e.lanes=A,e.memoizedState=et}}function Ng(e,r){if(typeof e!="function")throw Error(a(191,e));e.call(r)}function Ug(e,r){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Ng(l[e],r)}var ma=F(null),Os=F(0);function jg(e,r){e=Sr,lt(Os,e),lt(ma,r),Sr=e|r.baseLanes}function Uf(){lt(Os,Sr),lt(ma,ma.current)}function jf(){Sr=Os.current,at(ma),at(Os)}var Ir=0,Mt=null,Gt=null,ge=null,Rs=!1,ga=!1,Ci=!1,_s=0,Hl=0,pa=null,zA=0;function ce(){throw Error(a(321))}function $f(e,r){if(r===null)return!1;for(var l=0;l<r.length&&l<e.length;l++)if(!nn(e[l],r[l]))return!1;return!0}function Bf(e,r,l,s,d,g){return Ir=g,Mt=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,j.H=e===null||e.memoizedState===null?bp:xp,Ci=!1,g=l(s,d),Ci=!1,ga&&(g=Bg(r,l,s,d)),$g(e),g}function $g(e){j.H=js;var r=Gt!==null&&Gt.next!==null;if(Ir=0,ge=Gt=Mt=null,Rs=!1,Hl=0,pa=null,r)throw Error(a(300));e===null||we||(e=e.dependencies,e!==null&&Ts(e)&&(we=!0))}function Bg(e,r,l,s){Mt=e;var d=0;do{if(ga&&(pa=null),Hl=0,ga=!1,25<=d)throw Error(a(301));if(d+=1,ge=Gt=null,e.updateQueue!=null){var g=e.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}j.H=HA,g=r(l,s)}while(ga);return g}function NA(){var e=j.H,r=e.useState()[0];return r=typeof r.then=="function"?Yl(r):r,e=e.useState()[0],(Gt!==null?Gt.memoizedState:null)!==e&&(Mt.flags|=1024),r}function Lf(){var e=_s!==0;return _s=0,e}function Hf(e,r,l){r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~l}function Yf(e){if(Rs){for(e=e.memoizedState;e!==null;){var r=e.queue;r!==null&&(r.pending=null),e=e.next}Rs=!1}Ir=0,ge=Gt=Mt=null,ga=!1,Hl=_s=0,pa=null}function Qe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ge===null?Mt.memoizedState=ge=e:ge=ge.next=e,ge}function pe(){if(Gt===null){var e=Mt.alternate;e=e!==null?e.memoizedState:null}else e=Gt.next;var r=ge===null?Mt.memoizedState:ge.next;if(r!==null)ge=r,Gt=e;else{if(e===null)throw Mt.alternate===null?Error(a(467)):Error(a(310));Gt=e,e={memoizedState:Gt.memoizedState,baseState:Gt.baseState,baseQueue:Gt.baseQueue,queue:Gt.queue,next:null},ge===null?Mt.memoizedState=ge=e:ge=ge.next=e}return ge}function Gf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yl(e){var r=Hl;return Hl+=1,pa===null&&(pa=[]),e=kg(pa,e,r),r=Mt,(ge===null?r.memoizedState:ge.next)===null&&(r=r.alternate,j.H=r===null||r.memoizedState===null?bp:xp),e}function ks(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Yl(e);if(e.$$typeof===O)return $e(e)}throw Error(a(438,String(e)))}function qf(e){var r=null,l=Mt.updateQueue;if(l!==null&&(r=l.memoCache),r==null){var s=Mt.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(r={data:s.data.map(function(d){return d.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),l===null&&(l=Gf(),Mt.updateQueue=l),l.memoCache=r,l=r.data[r.index],l===void 0)for(l=r.data[r.index]=Array(e),s=0;s<e;s++)l[s]=T;return r.index++,l}function gr(e,r){return typeof r=="function"?r(e):r}function Ds(e){var r=pe();return If(r,Gt,e)}function If(e,r,l){var s=e.queue;if(s===null)throw Error(a(311));s.lastRenderedReducer=l;var d=e.baseQueue,g=s.pending;if(g!==null){if(d!==null){var A=d.next;d.next=g.next,g.next=A}r.baseQueue=d=g,s.pending=null}if(g=e.baseState,d===null)e.memoizedState=g;else{r=d.next;var w=A=null,U=null,V=r,J=!1;do{var et=V.lane&-536870913;if(et!==V.lane?(kt&et)===et:(Ir&et)===et){var Z=V.revertLane;if(Z===0)U!==null&&(U=U.next={lane:0,revertLane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),et===da&&(J=!0);else if((Ir&Z)===Z){V=V.next,Z===da&&(J=!0);continue}else et={lane:0,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},U===null?(w=U=et,A=g):U=U.next=et,Mt.lanes|=Z,Fr|=Z;et=V.action,Ci&&l(g,et),g=V.hasEagerState?V.eagerState:l(g,et)}else Z={lane:et,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},U===null?(w=U=Z,A=g):U=U.next=Z,Mt.lanes|=et,Fr|=et;V=V.next}while(V!==null&&V!==r);if(U===null?A=g:U.next=w,!nn(g,e.memoizedState)&&(we=!0,J&&(l=ha,l!==null)))throw l;e.memoizedState=g,e.baseState=A,e.baseQueue=U,s.lastRenderedState=g}return d===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Vf(e){var r=pe(),l=r.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=e;var s=l.dispatch,d=l.pending,g=r.memoizedState;if(d!==null){l.pending=null;var A=d=d.next;do g=e(g,A.action),A=A.next;while(A!==d);nn(g,r.memoizedState)||(we=!0),r.memoizedState=g,r.baseQueue===null&&(r.baseState=g),l.lastRenderedState=g}return[g,s]}function Lg(e,r,l){var s=Mt,d=pe(),g=Nt;if(g){if(l===void 0)throw Error(a(407));l=l()}else l=r();var A=!nn((Gt||d).memoizedState,l);A&&(d.memoizedState=l,we=!0),d=d.queue;var w=Gg.bind(null,s,d,e);if(Gl(2048,8,w,[e]),d.getSnapshot!==r||A||ge!==null&&ge.memoizedState.tag&1){if(s.flags|=2048,ya(9,zs(),Yg.bind(null,s,d,l,r),null),Ft===null)throw Error(a(349));g||(Ir&124)!==0||Hg(s,r,l)}return l}function Hg(e,r,l){e.flags|=16384,e={getSnapshot:r,value:l},r=Mt.updateQueue,r===null?(r=Gf(),Mt.updateQueue=r,r.stores=[e]):(l=r.stores,l===null?r.stores=[e]:l.push(e))}function Yg(e,r,l,s){r.value=l,r.getSnapshot=s,qg(r)&&Ig(e)}function Gg(e,r,l){return l(function(){qg(r)&&Ig(e)})}function qg(e){var r=e.getSnapshot;e=e.value;try{var l=r();return!nn(e,l)}catch{return!0}}function Ig(e){var r=sa(e,2);r!==null&&un(r,e,2)}function Xf(e){var r=Qe();if(typeof e=="function"){var l=e;if(e=l(),Ci){Re(!0);try{l()}finally{Re(!1)}}}return r.memoizedState=r.baseState=e,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:e},r}function Vg(e,r,l,s){return e.baseState=l,If(e,Gt,typeof s=="function"?s:gr)}function UA(e,r,l,s,d){if(Us(e))throw Error(a(485));if(e=r.action,e!==null){var g={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(A){g.listeners.push(A)}};j.T!==null?l(!0):g.isTransition=!1,s(g),l=r.pending,l===null?(g.next=r.pending=g,Xg(r,g)):(g.next=l.next,r.pending=l.next=g)}}function Xg(e,r){var l=r.action,s=r.payload,d=e.state;if(r.isTransition){var g=j.T,A={};j.T=A;try{var w=l(d,s),U=j.S;U!==null&&U(A,w),Pg(e,r,w)}catch(V){Pf(e,r,V)}finally{j.T=g}}else try{g=l(d,s),Pg(e,r,g)}catch(V){Pf(e,r,V)}}function Pg(e,r,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(s){Zg(e,r,s)},function(s){return Pf(e,r,s)}):Zg(e,r,l)}function Zg(e,r,l){r.status="fulfilled",r.value=l,Qg(r),e.state=l,r=e.pending,r!==null&&(l=r.next,l===r?e.pending=null:(l=l.next,r.next=l,Xg(e,l)))}function Pf(e,r,l){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do r.status="rejected",r.reason=l,Qg(r),r=r.next;while(r!==s)}e.action=null}function Qg(e){e=e.listeners;for(var r=0;r<e.length;r++)(0,e[r])()}function Kg(e,r){return r}function Fg(e,r){if(Nt){var l=Ft.formState;if(l!==null){t:{var s=Mt;if(Nt){if(ae){e:{for(var d=ae,g=Vn;d.nodeType!==8;){if(!g){d=null;break e}if(d=Bn(d.nextSibling),d===null){d=null;break e}}g=d.data,d=g==="F!"||g==="F"?d:null}if(d){ae=Bn(d.nextSibling),s=d.data==="F!";break t}}xi(s)}s=!1}s&&(r=l[0])}}return l=Qe(),l.memoizedState=l.baseState=r,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kg,lastRenderedState:r},l.queue=s,l=pp.bind(null,Mt,s),s.dispatch=l,s=Xf(!1),g=Wf.bind(null,Mt,!1,s.queue),s=Qe(),d={state:r,dispatch:null,action:e,pending:null},s.queue=d,l=UA.bind(null,Mt,d,g,l),d.dispatch=l,s.memoizedState=e,[r,l,!1]}function Wg(e){var r=pe();return Jg(r,Gt,e)}function Jg(e,r,l){if(r=If(e,r,Kg)[0],e=Ds(gr)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var s=Yl(r)}catch(A){throw A===Ul?Ms:A}else s=r;r=pe();var d=r.queue,g=d.dispatch;return l!==r.memoizedState&&(Mt.flags|=2048,ya(9,zs(),jA.bind(null,d,l),null)),[s,g,e]}function jA(e,r){e.action=r}function tp(e){var r=pe(),l=Gt;if(l!==null)return Jg(r,l,e);pe(),r=r.memoizedState,l=pe();var s=l.queue.dispatch;return l.memoizedState=e,[r,s,!1]}function ya(e,r,l,s){return e={tag:e,create:l,deps:s,inst:r,next:null},r=Mt.updateQueue,r===null&&(r=Gf(),Mt.updateQueue=r),l=r.lastEffect,l===null?r.lastEffect=e.next=e:(s=l.next,l.next=e,e.next=s,r.lastEffect=e),e}function zs(){return{destroy:void 0,resource:void 0}}function ep(){return pe().memoizedState}function Ns(e,r,l,s){var d=Qe();s=s===void 0?null:s,Mt.flags|=e,d.memoizedState=ya(1|r,zs(),l,s)}function Gl(e,r,l,s){var d=pe();s=s===void 0?null:s;var g=d.memoizedState.inst;Gt!==null&&s!==null&&$f(s,Gt.memoizedState.deps)?d.memoizedState=ya(r,g,l,s):(Mt.flags|=e,d.memoizedState=ya(1|r,g,l,s))}function np(e,r){Ns(8390656,8,e,r)}function rp(e,r){Gl(2048,8,e,r)}function ip(e,r){return Gl(4,2,e,r)}function ap(e,r){return Gl(4,4,e,r)}function lp(e,r){if(typeof r=="function"){e=e();var l=r(e);return function(){typeof l=="function"?l():r(null)}}if(r!=null)return e=e(),r.current=e,function(){r.current=null}}function op(e,r,l){l=l!=null?l.concat([e]):null,Gl(4,4,lp.bind(null,r,e),l)}function Zf(){}function sp(e,r){var l=pe();r=r===void 0?null:r;var s=l.memoizedState;return r!==null&&$f(r,s[1])?s[0]:(l.memoizedState=[e,r],e)}function up(e,r){var l=pe();r=r===void 0?null:r;var s=l.memoizedState;if(r!==null&&$f(r,s[1]))return s[0];if(s=e(),Ci){Re(!0);try{e()}finally{Re(!1)}}return l.memoizedState=[s,r],s}function Qf(e,r,l){return l===void 0||(Ir&1073741824)!==0?e.memoizedState=r:(e.memoizedState=l,e=dy(),Mt.lanes|=e,Fr|=e,l)}function cp(e,r,l,s){return nn(l,r)?l:ma.current!==null?(e=Qf(e,l,s),nn(e,r)||(we=!0),e):(Ir&42)===0?(we=!0,e.memoizedState=l):(e=dy(),Mt.lanes|=e,Fr|=e,r)}function fp(e,r,l,s,d){var g=P.p;P.p=g!==0&&8>g?g:8;var A=j.T,w={};j.T=w,Wf(e,!1,r,l);try{var U=d(),V=j.S;if(V!==null&&V(w,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var J=DA(U,s);ql(e,r,J,sn(e))}else ql(e,r,s,sn(e))}catch(et){ql(e,r,{then:function(){},status:"rejected",reason:et},sn())}finally{P.p=g,j.T=A}}function $A(){}function Kf(e,r,l,s){if(e.tag!==5)throw Error(a(476));var d=dp(e).queue;fp(e,d,r,nt,l===null?$A:function(){return hp(e),l(s)})}function dp(e){var r=e.memoizedState;if(r!==null)return r;r={memoizedState:nt,baseState:nt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:nt},next:null};var l={};return r.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:l},next:null},e.memoizedState=r,e=e.alternate,e!==null&&(e.memoizedState=r),r}function hp(e){var r=dp(e).next.queue;ql(e,r,{},sn())}function Ff(){return $e(oo)}function mp(){return pe().memoizedState}function gp(){return pe().memoizedState}function BA(e){for(var r=e.return;r!==null;){switch(r.tag){case 24:case 3:var l=sn();e=Gr(l);var s=qr(r,e,l);s!==null&&(un(s,r,l),$l(s,r,l)),r={cache:Ef()},e.payload=r;return}r=r.return}}function LA(e,r,l){var s=sn();l={lane:s,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Us(e)?yp(r,l):(l=yf(e,r,l,s),l!==null&&(un(l,e,s),vp(l,r,s)))}function pp(e,r,l){var s=sn();ql(e,r,l,s)}function ql(e,r,l,s){var d={lane:s,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Us(e))yp(r,d);else{var g=e.alternate;if(e.lanes===0&&(g===null||g.lanes===0)&&(g=r.lastRenderedReducer,g!==null))try{var A=r.lastRenderedState,w=g(A,l);if(d.hasEagerState=!0,d.eagerState=w,nn(w,A))return vs(e,r,d,0),Ft===null&&ys(),!1}catch{}finally{}if(l=yf(e,r,d,s),l!==null)return un(l,e,s),vp(l,r,s),!0}return!1}function Wf(e,r,l,s){if(s={lane:2,revertLane:_d(),action:s,hasEagerState:!1,eagerState:null,next:null},Us(e)){if(r)throw Error(a(479))}else r=yf(e,l,s,2),r!==null&&un(r,e,2)}function Us(e){var r=e.alternate;return e===Mt||r!==null&&r===Mt}function yp(e,r){ga=Rs=!0;var l=e.pending;l===null?r.next=r:(r.next=l.next,l.next=r),e.pending=r}function vp(e,r,l){if((l&4194048)!==0){var s=r.lanes;s&=e.pendingLanes,l|=s,r.lanes=l,M0(e,l)}}var js={readContext:$e,use:ks,useCallback:ce,useContext:ce,useEffect:ce,useImperativeHandle:ce,useLayoutEffect:ce,useInsertionEffect:ce,useMemo:ce,useReducer:ce,useRef:ce,useState:ce,useDebugValue:ce,useDeferredValue:ce,useTransition:ce,useSyncExternalStore:ce,useId:ce,useHostTransitionStatus:ce,useFormState:ce,useActionState:ce,useOptimistic:ce,useMemoCache:ce,useCacheRefresh:ce},bp={readContext:$e,use:ks,useCallback:function(e,r){return Qe().memoizedState=[e,r===void 0?null:r],e},useContext:$e,useEffect:np,useImperativeHandle:function(e,r,l){l=l!=null?l.concat([e]):null,Ns(4194308,4,lp.bind(null,r,e),l)},useLayoutEffect:function(e,r){return Ns(4194308,4,e,r)},useInsertionEffect:function(e,r){Ns(4,2,e,r)},useMemo:function(e,r){var l=Qe();r=r===void 0?null:r;var s=e();if(Ci){Re(!0);try{e()}finally{Re(!1)}}return l.memoizedState=[s,r],s},useReducer:function(e,r,l){var s=Qe();if(l!==void 0){var d=l(r);if(Ci){Re(!0);try{l(r)}finally{Re(!1)}}}else d=r;return s.memoizedState=s.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},s.queue=e,e=e.dispatch=LA.bind(null,Mt,e),[s.memoizedState,e]},useRef:function(e){var r=Qe();return e={current:e},r.memoizedState=e},useState:function(e){e=Xf(e);var r=e.queue,l=pp.bind(null,Mt,r);return r.dispatch=l,[e.memoizedState,l]},useDebugValue:Zf,useDeferredValue:function(e,r){var l=Qe();return Qf(l,e,r)},useTransition:function(){var e=Xf(!1);return e=fp.bind(null,Mt,e.queue,!0,!1),Qe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,r,l){var s=Mt,d=Qe();if(Nt){if(l===void 0)throw Error(a(407));l=l()}else{if(l=r(),Ft===null)throw Error(a(349));(kt&124)!==0||Hg(s,r,l)}d.memoizedState=l;var g={value:l,getSnapshot:r};return d.queue=g,np(Gg.bind(null,s,g,e),[e]),s.flags|=2048,ya(9,zs(),Yg.bind(null,s,g,l,r),null),l},useId:function(){var e=Qe(),r=Ft.identifierPrefix;if(Nt){var l=dr,s=fr;l=(s&~(1<<32-Te(s)-1)).toString(32)+l,r="«"+r+"R"+l,l=_s++,0<l&&(r+="H"+l.toString(32)),r+="»"}else l=zA++,r="«"+r+"r"+l.toString(32)+"»";return e.memoizedState=r},useHostTransitionStatus:Ff,useFormState:Fg,useActionState:Fg,useOptimistic:function(e){var r=Qe();r.memoizedState=r.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=l,r=Wf.bind(null,Mt,!0,l),l.dispatch=r,[e,r]},useMemoCache:qf,useCacheRefresh:function(){return Qe().memoizedState=BA.bind(null,Mt)}},xp={readContext:$e,use:ks,useCallback:sp,useContext:$e,useEffect:rp,useImperativeHandle:op,useInsertionEffect:ip,useLayoutEffect:ap,useMemo:up,useReducer:Ds,useRef:ep,useState:function(){return Ds(gr)},useDebugValue:Zf,useDeferredValue:function(e,r){var l=pe();return cp(l,Gt.memoizedState,e,r)},useTransition:function(){var e=Ds(gr)[0],r=pe().memoizedState;return[typeof e=="boolean"?e:Yl(e),r]},useSyncExternalStore:Lg,useId:mp,useHostTransitionStatus:Ff,useFormState:Wg,useActionState:Wg,useOptimistic:function(e,r){var l=pe();return Vg(l,Gt,e,r)},useMemoCache:qf,useCacheRefresh:gp},HA={readContext:$e,use:ks,useCallback:sp,useContext:$e,useEffect:rp,useImperativeHandle:op,useInsertionEffect:ip,useLayoutEffect:ap,useMemo:up,useReducer:Vf,useRef:ep,useState:function(){return Vf(gr)},useDebugValue:Zf,useDeferredValue:function(e,r){var l=pe();return Gt===null?Qf(l,e,r):cp(l,Gt.memoizedState,e,r)},useTransition:function(){var e=Vf(gr)[0],r=pe().memoizedState;return[typeof e=="boolean"?e:Yl(e),r]},useSyncExternalStore:Lg,useId:mp,useHostTransitionStatus:Ff,useFormState:tp,useActionState:tp,useOptimistic:function(e,r){var l=pe();return Gt!==null?Vg(l,Gt,e,r):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:qf,useCacheRefresh:gp},va=null,Il=0;function $s(e){var r=Il;return Il+=1,va===null&&(va=[]),kg(va,e,r)}function Vl(e,r){r=r.props.ref,e.ref=r!==void 0?r:null}function Bs(e,r){throw r.$$typeof===y?Error(a(525)):(e=Object.prototype.toString.call(r),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e)))}function Sp(e){var r=e._init;return r(e._payload)}function Ap(e){function r(G,B){if(e){var q=G.deletions;q===null?(G.deletions=[B],G.flags|=16):q.push(B)}}function l(G,B){if(!e)return null;for(;B!==null;)r(G,B),B=B.sibling;return null}function s(G){for(var B=new Map;G!==null;)G.key!==null?B.set(G.key,G):B.set(G.index,G),G=G.sibling;return B}function d(G,B){return G=cr(G,B),G.index=0,G.sibling=null,G}function g(G,B,q){return G.index=q,e?(q=G.alternate,q!==null?(q=q.index,q<B?(G.flags|=67108866,B):q):(G.flags|=67108866,B)):(G.flags|=1048576,B)}function A(G){return e&&G.alternate===null&&(G.flags|=67108866),G}function w(G,B,q,tt){return B===null||B.tag!==6?(B=bf(q,G.mode,tt),B.return=G,B):(B=d(B,q),B.return=G,B)}function U(G,B,q,tt){var ht=q.type;return ht===x?J(G,B,q.props.children,tt,q.key):B!==null&&(B.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===L&&Sp(ht)===B.type)?(B=d(B,q.props),Vl(B,q),B.return=G,B):(B=xs(q.type,q.key,q.props,null,G.mode,tt),Vl(B,q),B.return=G,B)}function V(G,B,q,tt){return B===null||B.tag!==4||B.stateNode.containerInfo!==q.containerInfo||B.stateNode.implementation!==q.implementation?(B=xf(q,G.mode,tt),B.return=G,B):(B=d(B,q.children||[]),B.return=G,B)}function J(G,B,q,tt,ht){return B===null||B.tag!==7?(B=pi(q,G.mode,tt,ht),B.return=G,B):(B=d(B,q),B.return=G,B)}function et(G,B,q){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=bf(""+B,G.mode,q),B.return=G,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case v:return q=xs(B.type,B.key,B.props,null,G.mode,q),Vl(q,B),q.return=G,q;case b:return B=xf(B,G.mode,q),B.return=G,B;case L:var tt=B._init;return B=tt(B._payload),et(G,B,q)}if(ot(B)||X(B))return B=pi(B,G.mode,q,null),B.return=G,B;if(typeof B.then=="function")return et(G,$s(B),q);if(B.$$typeof===O)return et(G,Cs(G,B),q);Bs(G,B)}return null}function Z(G,B,q,tt){var ht=B!==null?B.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return ht!==null?null:w(G,B,""+q,tt);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case v:return q.key===ht?U(G,B,q,tt):null;case b:return q.key===ht?V(G,B,q,tt):null;case L:return ht=q._init,q=ht(q._payload),Z(G,B,q,tt)}if(ot(q)||X(q))return ht!==null?null:J(G,B,q,tt,null);if(typeof q.then=="function")return Z(G,B,$s(q),tt);if(q.$$typeof===O)return Z(G,B,Cs(G,q),tt);Bs(G,q)}return null}function Q(G,B,q,tt,ht){if(typeof tt=="string"&&tt!==""||typeof tt=="number"||typeof tt=="bigint")return G=G.get(q)||null,w(B,G,""+tt,ht);if(typeof tt=="object"&&tt!==null){switch(tt.$$typeof){case v:return G=G.get(tt.key===null?q:tt.key)||null,U(B,G,tt,ht);case b:return G=G.get(tt.key===null?q:tt.key)||null,V(B,G,tt,ht);case L:var Et=tt._init;return tt=Et(tt._payload),Q(G,B,q,tt,ht)}if(ot(tt)||X(tt))return G=G.get(q)||null,J(B,G,tt,ht,null);if(typeof tt.then=="function")return Q(G,B,q,$s(tt),ht);if(tt.$$typeof===O)return Q(G,B,q,Cs(B,tt),ht);Bs(B,tt)}return null}function Tt(G,B,q,tt){for(var ht=null,Et=null,pt=B,At=B=0,Ee=null;pt!==null&&At<q.length;At++){pt.index>At?(Ee=pt,pt=null):Ee=pt.sibling;var Dt=Z(G,pt,q[At],tt);if(Dt===null){pt===null&&(pt=Ee);break}e&&pt&&Dt.alternate===null&&r(G,pt),B=g(Dt,B,At),Et===null?ht=Dt:Et.sibling=Dt,Et=Dt,pt=Ee}if(At===q.length)return l(G,pt),Nt&&vi(G,At),ht;if(pt===null){for(;At<q.length;At++)pt=et(G,q[At],tt),pt!==null&&(B=g(pt,B,At),Et===null?ht=pt:Et.sibling=pt,Et=pt);return Nt&&vi(G,At),ht}for(pt=s(pt);At<q.length;At++)Ee=Q(pt,G,At,q[At],tt),Ee!==null&&(e&&Ee.alternate!==null&&pt.delete(Ee.key===null?At:Ee.key),B=g(Ee,B,At),Et===null?ht=Ee:Et.sibling=Ee,Et=Ee);return e&&pt.forEach(function(li){return r(G,li)}),Nt&&vi(G,At),ht}function St(G,B,q,tt){if(q==null)throw Error(a(151));for(var ht=null,Et=null,pt=B,At=B=0,Ee=null,Dt=q.next();pt!==null&&!Dt.done;At++,Dt=q.next()){pt.index>At?(Ee=pt,pt=null):Ee=pt.sibling;var li=Z(G,pt,Dt.value,tt);if(li===null){pt===null&&(pt=Ee);break}e&&pt&&li.alternate===null&&r(G,pt),B=g(li,B,At),Et===null?ht=li:Et.sibling=li,Et=li,pt=Ee}if(Dt.done)return l(G,pt),Nt&&vi(G,At),ht;if(pt===null){for(;!Dt.done;At++,Dt=q.next())Dt=et(G,Dt.value,tt),Dt!==null&&(B=g(Dt,B,At),Et===null?ht=Dt:Et.sibling=Dt,Et=Dt);return Nt&&vi(G,At),ht}for(pt=s(pt);!Dt.done;At++,Dt=q.next())Dt=Q(pt,G,At,Dt.value,tt),Dt!==null&&(e&&Dt.alternate!==null&&pt.delete(Dt.key===null?At:Dt.key),B=g(Dt,B,At),Et===null?ht=Dt:Et.sibling=Dt,Et=Dt);return e&&pt.forEach(function(YT){return r(G,YT)}),Nt&&vi(G,At),ht}function It(G,B,q,tt){if(typeof q=="object"&&q!==null&&q.type===x&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case v:t:{for(var ht=q.key;B!==null;){if(B.key===ht){if(ht=q.type,ht===x){if(B.tag===7){l(G,B.sibling),tt=d(B,q.props.children),tt.return=G,G=tt;break t}}else if(B.elementType===ht||typeof ht=="object"&&ht!==null&&ht.$$typeof===L&&Sp(ht)===B.type){l(G,B.sibling),tt=d(B,q.props),Vl(tt,q),tt.return=G,G=tt;break t}l(G,B);break}else r(G,B);B=B.sibling}q.type===x?(tt=pi(q.props.children,G.mode,tt,q.key),tt.return=G,G=tt):(tt=xs(q.type,q.key,q.props,null,G.mode,tt),Vl(tt,q),tt.return=G,G=tt)}return A(G);case b:t:{for(ht=q.key;B!==null;){if(B.key===ht)if(B.tag===4&&B.stateNode.containerInfo===q.containerInfo&&B.stateNode.implementation===q.implementation){l(G,B.sibling),tt=d(B,q.children||[]),tt.return=G,G=tt;break t}else{l(G,B);break}else r(G,B);B=B.sibling}tt=xf(q,G.mode,tt),tt.return=G,G=tt}return A(G);case L:return ht=q._init,q=ht(q._payload),It(G,B,q,tt)}if(ot(q))return Tt(G,B,q,tt);if(X(q)){if(ht=X(q),typeof ht!="function")throw Error(a(150));return q=ht.call(q),St(G,B,q,tt)}if(typeof q.then=="function")return It(G,B,$s(q),tt);if(q.$$typeof===O)return It(G,B,Cs(G,q),tt);Bs(G,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,B!==null&&B.tag===6?(l(G,B.sibling),tt=d(B,q),tt.return=G,G=tt):(l(G,B),tt=bf(q,G.mode,tt),tt.return=G,G=tt),A(G)):l(G,B)}return function(G,B,q,tt){try{Il=0;var ht=It(G,B,q,tt);return va=null,ht}catch(pt){if(pt===Ul||pt===Ms)throw pt;var Et=rn(29,pt,null,G.mode);return Et.lanes=tt,Et.return=G,Et}finally{}}}var ba=Ap(!0),Tp=Ap(!1),An=F(null),Xn=null;function Vr(e){var r=e.alternate;lt(be,be.current&1),lt(An,e),Xn===null&&(r===null||ma.current!==null||r.memoizedState!==null)&&(Xn=e)}function Cp(e){if(e.tag===22){if(lt(be,be.current),lt(An,e),Xn===null){var r=e.alternate;r!==null&&r.memoizedState!==null&&(Xn=e)}}else Xr()}function Xr(){lt(be,be.current),lt(An,An.current)}function pr(e){at(An),Xn===e&&(Xn=null),at(be)}var be=F(0);function Ls(e){for(var r=e;r!==null;){if(r.tag===13){var l=r.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||Gd(l)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function Jf(e,r,l,s){r=e.memoizedState,l=l(s,r),l=l==null?r:p({},r,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var td={enqueueSetState:function(e,r,l){e=e._reactInternals;var s=sn(),d=Gr(s);d.payload=r,l!=null&&(d.callback=l),r=qr(e,d,s),r!==null&&(un(r,e,s),$l(r,e,s))},enqueueReplaceState:function(e,r,l){e=e._reactInternals;var s=sn(),d=Gr(s);d.tag=1,d.payload=r,l!=null&&(d.callback=l),r=qr(e,d,s),r!==null&&(un(r,e,s),$l(r,e,s))},enqueueForceUpdate:function(e,r){e=e._reactInternals;var l=sn(),s=Gr(l);s.tag=2,r!=null&&(s.callback=r),r=qr(e,s,l),r!==null&&(un(r,e,l),$l(r,e,l))}};function wp(e,r,l,s,d,g,A){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,g,A):r.prototype&&r.prototype.isPureReactComponent?!El(l,s)||!El(d,g):!0}function Mp(e,r,l,s){e=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(l,s),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(l,s),r.state!==e&&td.enqueueReplaceState(r,r.state,null)}function wi(e,r){var l=r;if("ref"in r){l={};for(var s in r)s!=="ref"&&(l[s]=r[s])}if(e=e.defaultProps){l===r&&(l=p({},l));for(var d in e)l[d]===void 0&&(l[d]=e[d])}return l}var Hs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=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(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Ep(e){Hs(e)}function Op(e){console.error(e)}function Rp(e){Hs(e)}function Ys(e,r){try{var l=e.onUncaughtError;l(r.value,{componentStack:r.stack})}catch(s){setTimeout(function(){throw s})}}function _p(e,r,l){try{var s=e.onCaughtError;s(l.value,{componentStack:l.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function ed(e,r,l){return l=Gr(l),l.tag=3,l.payload={element:null},l.callback=function(){Ys(e,r)},l}function kp(e){return e=Gr(e),e.tag=3,e}function Dp(e,r,l,s){var d=l.type.getDerivedStateFromError;if(typeof d=="function"){var g=s.value;e.payload=function(){return d(g)},e.callback=function(){_p(r,l,s)}}var A=l.stateNode;A!==null&&typeof A.componentDidCatch=="function"&&(e.callback=function(){_p(r,l,s),typeof d!="function"&&(Wr===null?Wr=new Set([this]):Wr.add(this));var w=s.stack;this.componentDidCatch(s.value,{componentStack:w!==null?w:""})})}function YA(e,r,l,s,d){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(r=l.alternate,r!==null&&Dl(r,l,d,!0),l=An.current,l!==null){switch(l.tag){case 13:return Xn===null?wd():l.alternate===null&&le===0&&(le=3),l.flags&=-257,l.flags|=65536,l.lanes=d,s===_f?l.flags|=16384:(r=l.updateQueue,r===null?l.updateQueue=new Set([s]):r.add(s),Ed(e,s,d)),!1;case 22:return l.flags|=65536,s===_f?l.flags|=16384:(r=l.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([s])},l.updateQueue=r):(l=r.retryQueue,l===null?r.retryQueue=new Set([s]):l.add(s)),Ed(e,s,d)),!1}throw Error(a(435,l.tag))}return Ed(e,s,d),wd(),!1}if(Nt)return r=An.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=d,s!==Tf&&(e=Error(a(422),{cause:s}),kl(vn(e,l)))):(s!==Tf&&(r=Error(a(423),{cause:s}),kl(vn(r,l))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,s=vn(s,l),d=ed(e.stateNode,s,d),zf(e,d),le!==4&&(le=2)),!1;var g=Error(a(520),{cause:s});if(g=vn(g,l),Wl===null?Wl=[g]:Wl.push(g),le!==4&&(le=2),r===null)return!0;s=vn(s,l),l=r;do{switch(l.tag){case 3:return l.flags|=65536,e=d&-d,l.lanes|=e,e=ed(l.stateNode,s,e),zf(l,e),!1;case 1:if(r=l.type,g=l.stateNode,(l.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Wr===null||!Wr.has(g))))return l.flags|=65536,d&=-d,l.lanes|=d,d=kp(d),Dp(d,e,l,s),zf(l,d),!1}l=l.return}while(l!==null);return!1}var zp=Error(a(461)),we=!1;function _e(e,r,l,s){r.child=e===null?Tp(r,null,l,s):ba(r,e.child,l,s)}function Np(e,r,l,s,d){l=l.render;var g=r.ref;if("ref"in s){var A={};for(var w in s)w!=="ref"&&(A[w]=s[w])}else A=s;return Ai(r),s=Bf(e,r,l,A,g,d),w=Lf(),e!==null&&!we?(Hf(e,r,d),yr(e,r,d)):(Nt&&w&&Sf(r),r.flags|=1,_e(e,r,s,d),r.child)}function Up(e,r,l,s,d){if(e===null){var g=l.type;return typeof g=="function"&&!vf(g)&&g.defaultProps===void 0&&l.compare===null?(r.tag=15,r.type=g,jp(e,r,g,s,d)):(e=xs(l.type,null,s,r,r.mode,d),e.ref=r.ref,e.return=r,r.child=e)}if(g=e.child,!ud(e,d)){var A=g.memoizedProps;if(l=l.compare,l=l!==null?l:El,l(A,s)&&e.ref===r.ref)return yr(e,r,d)}return r.flags|=1,e=cr(g,s),e.ref=r.ref,e.return=r,r.child=e}function jp(e,r,l,s,d){if(e!==null){var g=e.memoizedProps;if(El(g,s)&&e.ref===r.ref)if(we=!1,r.pendingProps=s=g,ud(e,d))(e.flags&131072)!==0&&(we=!0);else return r.lanes=e.lanes,yr(e,r,d)}return nd(e,r,l,s,d)}function $p(e,r,l){var s=r.pendingProps,d=s.children,g=e!==null?e.memoizedState:null;if(s.mode==="hidden"){if((r.flags&128)!==0){if(s=g!==null?g.baseLanes|l:l,e!==null){for(d=r.child=e.child,g=0;d!==null;)g=g|d.lanes|d.childLanes,d=d.sibling;r.childLanes=g&~s}else r.childLanes=0,r.child=null;return Bp(e,r,s,l)}if((l&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},e!==null&&ws(r,g!==null?g.cachePool:null),g!==null?jg(r,g):Uf(),Cp(r);else return r.lanes=r.childLanes=536870912,Bp(e,r,g!==null?g.baseLanes|l:l,l)}else g!==null?(ws(r,g.cachePool),jg(r,g),Xr(),r.memoizedState=null):(e!==null&&ws(r,null),Uf(),Xr());return _e(e,r,d,l),r.child}function Bp(e,r,l,s){var d=Rf();return d=d===null?null:{parent:ve._currentValue,pool:d},r.memoizedState={baseLanes:l,cachePool:d},e!==null&&ws(r,null),Uf(),Cp(r),e!==null&&Dl(e,r,s,!0),null}function Gs(e,r){var l=r.ref;if(l===null)e!==null&&e.ref!==null&&(r.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(e===null||e.ref!==l)&&(r.flags|=4194816)}}function nd(e,r,l,s,d){return Ai(r),l=Bf(e,r,l,s,void 0,d),s=Lf(),e!==null&&!we?(Hf(e,r,d),yr(e,r,d)):(Nt&&s&&Sf(r),r.flags|=1,_e(e,r,l,d),r.child)}function Lp(e,r,l,s,d,g){return Ai(r),r.updateQueue=null,l=Bg(r,s,l,d),$g(e),s=Lf(),e!==null&&!we?(Hf(e,r,g),yr(e,r,g)):(Nt&&s&&Sf(r),r.flags|=1,_e(e,r,l,g),r.child)}function Hp(e,r,l,s,d){if(Ai(r),r.stateNode===null){var g=ua,A=l.contextType;typeof A=="object"&&A!==null&&(g=$e(A)),g=new l(s,g),r.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=td,r.stateNode=g,g._reactInternals=r,g=r.stateNode,g.props=s,g.state=r.memoizedState,g.refs={},kf(r),A=l.contextType,g.context=typeof A=="object"&&A!==null?$e(A):ua,g.state=r.memoizedState,A=l.getDerivedStateFromProps,typeof A=="function"&&(Jf(r,l,A,s),g.state=r.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(A=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),A!==g.state&&td.enqueueReplaceState(g,g.state,null),Ll(r,s,g,d),Bl(),g.state=r.memoizedState),typeof g.componentDidMount=="function"&&(r.flags|=4194308),s=!0}else if(e===null){g=r.stateNode;var w=r.memoizedProps,U=wi(l,w);g.props=U;var V=g.context,J=l.contextType;A=ua,typeof J=="object"&&J!==null&&(A=$e(J));var et=l.getDerivedStateFromProps;J=typeof et=="function"||typeof g.getSnapshotBeforeUpdate=="function",w=r.pendingProps!==w,J||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(w||V!==A)&&Mp(r,g,s,A),Yr=!1;var Z=r.memoizedState;g.state=Z,Ll(r,s,g,d),Bl(),V=r.memoizedState,w||Z!==V||Yr?(typeof et=="function"&&(Jf(r,l,et,s),V=r.memoizedState),(U=Yr||wp(r,l,U,s,Z,V,A))?(J||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(r.flags|=4194308)):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=s,r.memoizedState=V),g.props=s,g.state=V,g.context=A,s=U):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),s=!1)}else{g=r.stateNode,Df(e,r),A=r.memoizedProps,J=wi(l,A),g.props=J,et=r.pendingProps,Z=g.context,V=l.contextType,U=ua,typeof V=="object"&&V!==null&&(U=$e(V)),w=l.getDerivedStateFromProps,(V=typeof w=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(A!==et||Z!==U)&&Mp(r,g,s,U),Yr=!1,Z=r.memoizedState,g.state=Z,Ll(r,s,g,d),Bl();var Q=r.memoizedState;A!==et||Z!==Q||Yr||e!==null&&e.dependencies!==null&&Ts(e.dependencies)?(typeof w=="function"&&(Jf(r,l,w,s),Q=r.memoizedState),(J=Yr||wp(r,l,J,s,Z,Q,U)||e!==null&&e.dependencies!==null&&Ts(e.dependencies))?(V||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(s,Q,U),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(s,Q,U)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||A===e.memoizedProps&&Z===e.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||A===e.memoizedProps&&Z===e.memoizedState||(r.flags|=1024),r.memoizedProps=s,r.memoizedState=Q),g.props=s,g.state=Q,g.context=U,s=J):(typeof g.componentDidUpdate!="function"||A===e.memoizedProps&&Z===e.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||A===e.memoizedProps&&Z===e.memoizedState||(r.flags|=1024),s=!1)}return g=s,Gs(e,r),s=(r.flags&128)!==0,g||s?(g=r.stateNode,l=s&&typeof l.getDerivedStateFromError!="function"?null:g.render(),r.flags|=1,e!==null&&s?(r.child=ba(r,e.child,null,d),r.child=ba(r,null,l,d)):_e(e,r,l,d),r.memoizedState=g.state,e=r.child):e=yr(e,r,d),e}function Yp(e,r,l,s){return _l(),r.flags|=256,_e(e,r,l,s),r.child}var rd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function id(e){return{baseLanes:e,cachePool:Og()}}function ad(e,r,l){return e=e!==null?e.childLanes&~l:0,r&&(e|=Tn),e}function Gp(e,r,l){var s=r.pendingProps,d=!1,g=(r.flags&128)!==0,A;if((A=g)||(A=e!==null&&e.memoizedState===null?!1:(be.current&2)!==0),A&&(d=!0,r.flags&=-129),A=(r.flags&32)!==0,r.flags&=-33,e===null){if(Nt){if(d?Vr(r):Xr(),Nt){var w=ae,U;if(U=w){t:{for(U=w,w=Vn;U.nodeType!==8;){if(!w){w=null;break t}if(U=Bn(U.nextSibling),U===null){w=null;break t}}w=U}w!==null?(r.memoizedState={dehydrated:w,treeContext:yi!==null?{id:fr,overflow:dr}:null,retryLane:536870912,hydrationErrors:null},U=rn(18,null,null,0),U.stateNode=w,U.return=r,r.child=U,Ie=r,ae=null,U=!0):U=!1}U||xi(r)}if(w=r.memoizedState,w!==null&&(w=w.dehydrated,w!==null))return Gd(w)?r.lanes=32:r.lanes=536870912,null;pr(r)}return w=s.children,s=s.fallback,d?(Xr(),d=r.mode,w=qs({mode:"hidden",children:w},d),s=pi(s,d,l,null),w.return=r,s.return=r,w.sibling=s,r.child=w,d=r.child,d.memoizedState=id(l),d.childLanes=ad(e,A,l),r.memoizedState=rd,s):(Vr(r),ld(r,w))}if(U=e.memoizedState,U!==null&&(w=U.dehydrated,w!==null)){if(g)r.flags&256?(Vr(r),r.flags&=-257,r=od(e,r,l)):r.memoizedState!==null?(Xr(),r.child=e.child,r.flags|=128,r=null):(Xr(),d=s.fallback,w=r.mode,s=qs({mode:"visible",children:s.children},w),d=pi(d,w,l,null),d.flags|=2,s.return=r,d.return=r,s.sibling=d,r.child=s,ba(r,e.child,null,l),s=r.child,s.memoizedState=id(l),s.childLanes=ad(e,A,l),r.memoizedState=rd,r=d);else if(Vr(r),Gd(w)){if(A=w.nextSibling&&w.nextSibling.dataset,A)var V=A.dgst;A=V,s=Error(a(419)),s.stack="",s.digest=A,kl({value:s,source:null,stack:null}),r=od(e,r,l)}else if(we||Dl(e,r,l,!1),A=(l&e.childLanes)!==0,we||A){if(A=Ft,A!==null&&(s=l&-l,s=(s&42)!==0?1:Gc(s),s=(s&(A.suspendedLanes|l))!==0?0:s,s!==0&&s!==U.retryLane))throw U.retryLane=s,sa(e,s),un(A,e,s),zp;w.data==="$?"||wd(),r=od(e,r,l)}else w.data==="$?"?(r.flags|=192,r.child=e.child,r=null):(e=U.treeContext,ae=Bn(w.nextSibling),Ie=r,Nt=!0,bi=null,Vn=!1,e!==null&&(xn[Sn++]=fr,xn[Sn++]=dr,xn[Sn++]=yi,fr=e.id,dr=e.overflow,yi=r),r=ld(r,s.children),r.flags|=4096);return r}return d?(Xr(),d=s.fallback,w=r.mode,U=e.child,V=U.sibling,s=cr(U,{mode:"hidden",children:s.children}),s.subtreeFlags=U.subtreeFlags&65011712,V!==null?d=cr(V,d):(d=pi(d,w,l,null),d.flags|=2),d.return=r,s.return=r,s.sibling=d,r.child=s,s=d,d=r.child,w=e.child.memoizedState,w===null?w=id(l):(U=w.cachePool,U!==null?(V=ve._currentValue,U=U.parent!==V?{parent:V,pool:V}:U):U=Og(),w={baseLanes:w.baseLanes|l,cachePool:U}),d.memoizedState=w,d.childLanes=ad(e,A,l),r.memoizedState=rd,s):(Vr(r),l=e.child,e=l.sibling,l=cr(l,{mode:"visible",children:s.children}),l.return=r,l.sibling=null,e!==null&&(A=r.deletions,A===null?(r.deletions=[e],r.flags|=16):A.push(e)),r.child=l,r.memoizedState=null,l)}function ld(e,r){return r=qs({mode:"visible",children:r},e.mode),r.return=e,e.child=r}function qs(e,r){return e=rn(22,e,null,r),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function od(e,r,l){return ba(r,e.child,null,l),e=ld(r,r.pendingProps.children),e.flags|=2,r.memoizedState=null,e}function qp(e,r,l){e.lanes|=r;var s=e.alternate;s!==null&&(s.lanes|=r),wf(e.return,r,l)}function sd(e,r,l,s,d){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:d}:(g.isBackwards=r,g.rendering=null,g.renderingStartTime=0,g.last=s,g.tail=l,g.tailMode=d)}function Ip(e,r,l){var s=r.pendingProps,d=s.revealOrder,g=s.tail;if(_e(e,r,s.children,l),s=be.current,(s&2)!==0)s=s&1|2,r.flags|=128;else{if(e!==null&&(e.flags&128)!==0)t:for(e=r.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qp(e,l,r);else if(e.tag===19)qp(e,l,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===r)break t;for(;e.sibling===null;){if(e.return===null||e.return===r)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}switch(lt(be,s),d){case"forwards":for(l=r.child,d=null;l!==null;)e=l.alternate,e!==null&&Ls(e)===null&&(d=l),l=l.sibling;l=d,l===null?(d=r.child,r.child=null):(d=l.sibling,l.sibling=null),sd(r,!1,d,l,g);break;case"backwards":for(l=null,d=r.child,r.child=null;d!==null;){if(e=d.alternate,e!==null&&Ls(e)===null){r.child=d;break}e=d.sibling,d.sibling=l,l=d,d=e}sd(r,!0,l,null,g);break;case"together":sd(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function yr(e,r,l){if(e!==null&&(r.dependencies=e.dependencies),Fr|=r.lanes,(l&r.childLanes)===0)if(e!==null){if(Dl(e,r,l,!1),(l&r.childLanes)===0)return null}else return null;if(e!==null&&r.child!==e.child)throw Error(a(153));if(r.child!==null){for(e=r.child,l=cr(e,e.pendingProps),r.child=l,l.return=r;e.sibling!==null;)e=e.sibling,l=l.sibling=cr(e,e.pendingProps),l.return=r;l.sibling=null}return r.child}function ud(e,r){return(e.lanes&r)!==0?!0:(e=e.dependencies,!!(e!==null&&Ts(e)))}function GA(e,r,l){switch(r.tag){case 3:mt(r,r.stateNode.containerInfo),Hr(r,ve,e.memoizedState.cache),_l();break;case 27:case 5:xt(r);break;case 4:mt(r,r.stateNode.containerInfo);break;case 10:Hr(r,r.type,r.memoizedProps.value);break;case 13:var s=r.memoizedState;if(s!==null)return s.dehydrated!==null?(Vr(r),r.flags|=128,null):(l&r.child.childLanes)!==0?Gp(e,r,l):(Vr(r),e=yr(e,r,l),e!==null?e.sibling:null);Vr(r);break;case 19:var d=(e.flags&128)!==0;if(s=(l&r.childLanes)!==0,s||(Dl(e,r,l,!1),s=(l&r.childLanes)!==0),d){if(s)return Ip(e,r,l);r.flags|=128}if(d=r.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),lt(be,be.current),s)break;return null;case 22:case 23:return r.lanes=0,$p(e,r,l);case 24:Hr(r,ve,e.memoizedState.cache)}return yr(e,r,l)}function Vp(e,r,l){if(e!==null)if(e.memoizedProps!==r.pendingProps)we=!0;else{if(!ud(e,l)&&(r.flags&128)===0)return we=!1,GA(e,r,l);we=(e.flags&131072)!==0}else we=!1,Nt&&(r.flags&1048576)!==0&&Sg(r,As,r.index);switch(r.lanes=0,r.tag){case 16:t:{e=r.pendingProps;var s=r.elementType,d=s._init;if(s=d(s._payload),r.type=s,typeof s=="function")vf(s)?(e=wi(s,e),r.tag=1,r=Hp(null,r,s,e,l)):(r.tag=0,r=nd(null,r,s,e,l));else{if(s!=null){if(d=s.$$typeof,d===k){r.tag=11,r=Np(null,r,s,e,l);break t}else if(d===D){r.tag=14,r=Up(null,r,s,e,l);break t}}throw r=it(s)||s,Error(a(306,r,""))}}return r;case 0:return nd(e,r,r.type,r.pendingProps,l);case 1:return s=r.type,d=wi(s,r.pendingProps),Hp(e,r,s,d,l);case 3:t:{if(mt(r,r.stateNode.containerInfo),e===null)throw Error(a(387));s=r.pendingProps;var g=r.memoizedState;d=g.element,Df(e,r),Ll(r,s,null,l);var A=r.memoizedState;if(s=A.cache,Hr(r,ve,s),s!==g.cache&&Mf(r,[ve],l,!0),Bl(),s=A.element,g.isDehydrated)if(g={element:s,isDehydrated:!1,cache:A.cache},r.updateQueue.baseState=g,r.memoizedState=g,r.flags&256){r=Yp(e,r,s,l);break t}else if(s!==d){d=vn(Error(a(424)),r),kl(d),r=Yp(e,r,s,l);break t}else{switch(e=r.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ae=Bn(e.firstChild),Ie=r,Nt=!0,bi=null,Vn=!0,l=Tp(r,null,s,l),r.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(_l(),s===d){r=yr(e,r,l);break t}_e(e,r,s,l)}r=r.child}return r;case 26:return Gs(e,r),e===null?(l=Qy(r.type,null,r.pendingProps,null))?r.memoizedState=l:Nt||(l=r.type,e=r.pendingProps,s=ru(dt.current).createElement(l),s[je]=r,s[Pe]=e,De(s,l,e),Ce(s),r.stateNode=s):r.memoizedState=Qy(r.type,e.memoizedProps,r.pendingProps,e.memoizedState),null;case 27:return xt(r),e===null&&Nt&&(s=r.stateNode=Xy(r.type,r.pendingProps,dt.current),Ie=r,Vn=!0,d=ae,ei(r.type)?(qd=d,ae=Bn(s.firstChild)):ae=d),_e(e,r,r.pendingProps.children,l),Gs(e,r),e===null&&(r.flags|=4194304),r.child;case 5:return e===null&&Nt&&((d=s=ae)&&(s=pT(s,r.type,r.pendingProps,Vn),s!==null?(r.stateNode=s,Ie=r,ae=Bn(s.firstChild),Vn=!1,d=!0):d=!1),d||xi(r)),xt(r),d=r.type,g=r.pendingProps,A=e!==null?e.memoizedProps:null,s=g.children,Ld(d,g)?s=null:A!==null&&Ld(d,A)&&(r.flags|=32),r.memoizedState!==null&&(d=Bf(e,r,NA,null,null,l),oo._currentValue=d),Gs(e,r),_e(e,r,s,l),r.child;case 6:return e===null&&Nt&&((e=l=ae)&&(l=yT(l,r.pendingProps,Vn),l!==null?(r.stateNode=l,Ie=r,ae=null,e=!0):e=!1),e||xi(r)),null;case 13:return Gp(e,r,l);case 4:return mt(r,r.stateNode.containerInfo),s=r.pendingProps,e===null?r.child=ba(r,null,s,l):_e(e,r,s,l),r.child;case 11:return Np(e,r,r.type,r.pendingProps,l);case 7:return _e(e,r,r.pendingProps,l),r.child;case 8:return _e(e,r,r.pendingProps.children,l),r.child;case 12:return _e(e,r,r.pendingProps.children,l),r.child;case 10:return s=r.pendingProps,Hr(r,r.type,s.value),_e(e,r,s.children,l),r.child;case 9:return d=r.type._context,s=r.pendingProps.children,Ai(r),d=$e(d),s=s(d),r.flags|=1,_e(e,r,s,l),r.child;case 14:return Up(e,r,r.type,r.pendingProps,l);case 15:return jp(e,r,r.type,r.pendingProps,l);case 19:return Ip(e,r,l);case 31:return s=r.pendingProps,l=r.mode,s={mode:s.mode,children:s.children},e===null?(l=qs(s,l),l.ref=r.ref,r.child=l,l.return=r,r=l):(l=cr(e.child,s),l.ref=r.ref,r.child=l,l.return=r,r=l),r;case 22:return $p(e,r,l);case 24:return Ai(r),s=$e(ve),e===null?(d=Rf(),d===null&&(d=Ft,g=Ef(),d.pooledCache=g,g.refCount++,g!==null&&(d.pooledCacheLanes|=l),d=g),r.memoizedState={parent:s,cache:d},kf(r),Hr(r,ve,d)):((e.lanes&l)!==0&&(Df(e,r),Ll(r,null,null,l),Bl()),d=e.memoizedState,g=r.memoizedState,d.parent!==s?(d={parent:s,cache:s},r.memoizedState=d,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=d),Hr(r,ve,s)):(s=g.cache,Hr(r,ve,s),s!==d.cache&&Mf(r,[ve],l,!0))),_e(e,r,r.pendingProps.children,l),r.child;case 29:throw r.pendingProps}throw Error(a(156,r.tag))}function vr(e){e.flags|=4}function Xp(e,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!t1(r)){if(r=An.current,r!==null&&((kt&4194048)===kt?Xn!==null:(kt&62914560)!==kt&&(kt&536870912)===0||r!==Xn))throw jl=_f,Rg;e.flags|=8192}}function Is(e,r){r!==null&&(e.flags|=4),e.flags&16384&&(r=e.tag!==22?C0():536870912,e.lanes|=r,Ta|=r)}function Xl(e,r){if(!Nt)switch(e.tailMode){case"hidden":r=e.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?r||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function ie(e){var r=e.alternate!==null&&e.alternate.child===e.child,l=0,s=0;if(r)for(var d=e.child;d!==null;)l|=d.lanes|d.childLanes,s|=d.subtreeFlags&65011712,s|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)l|=d.lanes|d.childLanes,s|=d.subtreeFlags,s|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=s,e.childLanes=l,r}function qA(e,r,l){var s=r.pendingProps;switch(Af(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ie(r),null;case 1:return ie(r),null;case 3:return l=r.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),r.memoizedState.cache!==s&&(r.flags|=2048),mr(ve),ut(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Rl(r)?vr(r):e===null||e.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Cg())),ie(r),null;case 26:return l=r.memoizedState,e===null?(vr(r),l!==null?(ie(r),Xp(r,l)):(ie(r),r.flags&=-16777217)):l?l!==e.memoizedState?(vr(r),ie(r),Xp(r,l)):(ie(r),r.flags&=-16777217):(e.memoizedProps!==s&&vr(r),ie(r),r.flags&=-16777217),null;case 27:bt(r),l=dt.current;var d=r.type;if(e!==null&&r.stateNode!=null)e.memoizedProps!==s&&vr(r);else{if(!s){if(r.stateNode===null)throw Error(a(166));return ie(r),null}e=ct.current,Rl(r)?Ag(r):(e=Xy(d,s,l),r.stateNode=e,vr(r))}return ie(r),null;case 5:if(bt(r),l=r.type,e!==null&&r.stateNode!=null)e.memoizedProps!==s&&vr(r);else{if(!s){if(r.stateNode===null)throw Error(a(166));return ie(r),null}if(e=ct.current,Rl(r))Ag(r);else{switch(d=ru(dt.current),e){case 1:e=d.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:e=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":e=d.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":e=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":e=d.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof s.is=="string"?d.createElement("select",{is:s.is}):d.createElement("select"),s.multiple?e.multiple=!0:s.size&&(e.size=s.size);break;default:e=typeof s.is=="string"?d.createElement(l,{is:s.is}):d.createElement(l)}}e[je]=r,e[Pe]=s;t:for(d=r.child;d!==null;){if(d.tag===5||d.tag===6)e.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===r)break t;for(;d.sibling===null;){if(d.return===null||d.return===r)break t;d=d.return}d.sibling.return=d.return,d=d.sibling}r.stateNode=e;t:switch(De(e,l,s),l){case"button":case"input":case"select":case"textarea":e=!!s.autoFocus;break t;case"img":e=!0;break t;default:e=!1}e&&vr(r)}}return ie(r),r.flags&=-16777217,null;case 6:if(e&&r.stateNode!=null)e.memoizedProps!==s&&vr(r);else{if(typeof s!="string"&&r.stateNode===null)throw Error(a(166));if(e=dt.current,Rl(r)){if(e=r.stateNode,l=r.memoizedProps,s=null,d=Ie,d!==null)switch(d.tag){case 27:case 5:s=d.memoizedProps}e[je]=r,e=!!(e.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||Ly(e.nodeValue,l)),e||xi(r)}else e=ru(e).createTextNode(s),e[je]=r,r.stateNode=e}return ie(r),null;case 13:if(s=r.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=Rl(r),s!==null&&s.dehydrated!==null){if(e===null){if(!d)throw Error(a(318));if(d=r.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(a(317));d[je]=r}else _l(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ie(r),d=!1}else d=Cg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return r.flags&256?(pr(r),r):(pr(r),null)}if(pr(r),(r.flags&128)!==0)return r.lanes=l,r;if(l=s!==null,e=e!==null&&e.memoizedState!==null,l){s=r.child,d=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(d=s.alternate.memoizedState.cachePool.pool);var g=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(g=s.memoizedState.cachePool.pool),g!==d&&(s.flags|=2048)}return l!==e&&l&&(r.child.flags|=8192),Is(r,r.updateQueue),ie(r),null;case 4:return ut(),e===null&&Nd(r.stateNode.containerInfo),ie(r),null;case 10:return mr(r.type),ie(r),null;case 19:if(at(be),d=r.memoizedState,d===null)return ie(r),null;if(s=(r.flags&128)!==0,g=d.rendering,g===null)if(s)Xl(d,!1);else{if(le!==0||e!==null&&(e.flags&128)!==0)for(e=r.child;e!==null;){if(g=Ls(e),g!==null){for(r.flags|=128,Xl(d,!1),e=g.updateQueue,r.updateQueue=e,Is(r,e),r.subtreeFlags=0,e=l,l=r.child;l!==null;)xg(l,e),l=l.sibling;return lt(be,be.current&1|2),r.child}e=e.sibling}d.tail!==null&&Yt()>Ps&&(r.flags|=128,s=!0,Xl(d,!1),r.lanes=4194304)}else{if(!s)if(e=Ls(g),e!==null){if(r.flags|=128,s=!0,e=e.updateQueue,r.updateQueue=e,Is(r,e),Xl(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!Nt)return ie(r),null}else 2*Yt()-d.renderingStartTime>Ps&&l!==536870912&&(r.flags|=128,s=!0,Xl(d,!1),r.lanes=4194304);d.isBackwards?(g.sibling=r.child,r.child=g):(e=d.last,e!==null?e.sibling=g:r.child=g,d.last=g)}return d.tail!==null?(r=d.tail,d.rendering=r,d.tail=r.sibling,d.renderingStartTime=Yt(),r.sibling=null,e=be.current,lt(be,s?e&1|2:e&1),r):(ie(r),null);case 22:case 23:return pr(r),jf(),s=r.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(r.flags|=8192):s&&(r.flags|=8192),s?(l&536870912)!==0&&(r.flags&128)===0&&(ie(r),r.subtreeFlags&6&&(r.flags|=8192)):ie(r),l=r.updateQueue,l!==null&&Is(r,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),s=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),s!==l&&(r.flags|=2048),e!==null&&at(Ti),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),mr(ve),ie(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function IA(e,r){switch(Af(r),r.tag){case 1:return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 3:return mr(ve),ut(),e=r.flags,(e&65536)!==0&&(e&128)===0?(r.flags=e&-65537|128,r):null;case 26:case 27:case 5:return bt(r),null;case 13:if(pr(r),e=r.memoizedState,e!==null&&e.dehydrated!==null){if(r.alternate===null)throw Error(a(340));_l()}return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 19:return at(be),null;case 4:return ut(),null;case 10:return mr(r.type),null;case 22:case 23:return pr(r),jf(),e!==null&&at(Ti),e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 24:return mr(ve),null;case 25:return null;default:return null}}function Pp(e,r){switch(Af(r),r.tag){case 3:mr(ve),ut();break;case 26:case 27:case 5:bt(r);break;case 4:ut();break;case 13:pr(r);break;case 19:at(be);break;case 10:mr(r.type);break;case 22:case 23:pr(r),jf(),e!==null&&at(Ti);break;case 24:mr(ve)}}function Pl(e,r){try{var l=r.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var d=s.next;l=d;do{if((l.tag&e)===e){s=void 0;var g=l.create,A=l.inst;s=g(),A.destroy=s}l=l.next}while(l!==d)}}catch(w){Xt(r,r.return,w)}}function Pr(e,r,l){try{var s=r.updateQueue,d=s!==null?s.lastEffect:null;if(d!==null){var g=d.next;s=g;do{if((s.tag&e)===e){var A=s.inst,w=A.destroy;if(w!==void 0){A.destroy=void 0,d=r;var U=l,V=w;try{V()}catch(J){Xt(d,U,J)}}}s=s.next}while(s!==g)}}catch(J){Xt(r,r.return,J)}}function Zp(e){var r=e.updateQueue;if(r!==null){var l=e.stateNode;try{Ug(r,l)}catch(s){Xt(e,e.return,s)}}}function Qp(e,r,l){l.props=wi(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(s){Xt(e,r,s)}}function Zl(e,r){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof l=="function"?e.refCleanup=l(s):l.current=s}}catch(d){Xt(e,r,d)}}function Pn(e,r){var l=e.ref,s=e.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(d){Xt(e,r,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(d){Xt(e,r,d)}else l.current=null}function Kp(e){var r=e.type,l=e.memoizedProps,s=e.stateNode;try{t:switch(r){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break t;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(d){Xt(e,e.return,d)}}function cd(e,r,l){try{var s=e.stateNode;fT(s,e.type,l,r),s[Pe]=r}catch(d){Xt(e,e.return,d)}}function Fp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ei(e.type)||e.tag===4}function fd(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||Fp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ei(e.type)||e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function dd(e,r,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,r?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,r):(r=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,r.appendChild(e),l=l._reactRootContainer,l!=null||r.onclick!==null||(r.onclick=nu));else if(s!==4&&(s===27&&ei(e.type)&&(l=e.stateNode,r=null),e=e.child,e!==null))for(dd(e,r,l),e=e.sibling;e!==null;)dd(e,r,l),e=e.sibling}function Vs(e,r,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,r?l.insertBefore(e,r):l.appendChild(e);else if(s!==4&&(s===27&&ei(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Vs(e,r,l),e=e.sibling;e!==null;)Vs(e,r,l),e=e.sibling}function Wp(e){var r=e.stateNode,l=e.memoizedProps;try{for(var s=e.type,d=r.attributes;d.length;)r.removeAttributeNode(d[0]);De(r,s,l),r[je]=e,r[Pe]=l}catch(g){Xt(e,e.return,g)}}var br=!1,fe=!1,hd=!1,Jp=typeof WeakSet=="function"?WeakSet:Set,Me=null;function VA(e,r){if(e=e.containerInfo,$d=uu,e=cg(e),ff(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else t:{l=(l=e.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var d=s.anchorOffset,g=s.focusNode;s=s.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break t}var A=0,w=-1,U=-1,V=0,J=0,et=e,Z=null;e:for(;;){for(var Q;et!==l||d!==0&&et.nodeType!==3||(w=A+d),et!==g||s!==0&&et.nodeType!==3||(U=A+s),et.nodeType===3&&(A+=et.nodeValue.length),(Q=et.firstChild)!==null;)Z=et,et=Q;for(;;){if(et===e)break e;if(Z===l&&++V===d&&(w=A),Z===g&&++J===s&&(U=A),(Q=et.nextSibling)!==null)break;et=Z,Z=et.parentNode}et=Q}l=w===-1||U===-1?null:{start:w,end:U}}else l=null}l=l||{start:0,end:0}}else l=null;for(Bd={focusedElem:e,selectionRange:l},uu=!1,Me=r;Me!==null;)if(r=Me,e=r.child,(r.subtreeFlags&1024)!==0&&e!==null)e.return=r,Me=e;else for(;Me!==null;){switch(r=Me,g=r.alternate,e=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&g!==null){e=void 0,l=r,d=g.memoizedProps,g=g.memoizedState,s=l.stateNode;try{var Tt=wi(l.type,d,l.elementType===l.type);e=s.getSnapshotBeforeUpdate(Tt,g),s.__reactInternalSnapshotBeforeUpdate=e}catch(St){Xt(l,l.return,St)}}break;case 3:if((e&1024)!==0){if(e=r.stateNode.containerInfo,l=e.nodeType,l===9)Yd(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Yd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(a(163))}if(e=r.sibling,e!==null){e.return=r.return,Me=e;break}Me=r.return}}function ty(e,r,l){var s=l.flags;switch(l.tag){case 0:case 11:case 15:Zr(e,l),s&4&&Pl(5,l);break;case 1:if(Zr(e,l),s&4)if(e=l.stateNode,r===null)try{e.componentDidMount()}catch(A){Xt(l,l.return,A)}else{var d=wi(l.type,r.memoizedProps);r=r.memoizedState;try{e.componentDidUpdate(d,r,e.__reactInternalSnapshotBeforeUpdate)}catch(A){Xt(l,l.return,A)}}s&64&&Zp(l),s&512&&Zl(l,l.return);break;case 3:if(Zr(e,l),s&64&&(e=l.updateQueue,e!==null)){if(r=null,l.child!==null)switch(l.child.tag){case 27:case 5:r=l.child.stateNode;break;case 1:r=l.child.stateNode}try{Ug(e,r)}catch(A){Xt(l,l.return,A)}}break;case 27:r===null&&s&4&&Wp(l);case 26:case 5:Zr(e,l),r===null&&s&4&&Kp(l),s&512&&Zl(l,l.return);break;case 12:Zr(e,l);break;case 13:Zr(e,l),s&4&&ry(e,l),s&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=tT.bind(null,l),vT(e,l))));break;case 22:if(s=l.memoizedState!==null||br,!s){r=r!==null&&r.memoizedState!==null||fe,d=br;var g=fe;br=s,(fe=r)&&!g?Qr(e,l,(l.subtreeFlags&8772)!==0):Zr(e,l),br=d,fe=g}break;case 30:break;default:Zr(e,l)}}function ey(e){var r=e.alternate;r!==null&&(e.alternate=null,ey(r)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(r=e.stateNode,r!==null&&Vc(r)),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 ee=null,Ke=!1;function xr(e,r,l){for(l=l.child;l!==null;)ny(e,r,l),l=l.sibling}function ny(e,r,l){if(te&&typeof te.onCommitFiberUnmount=="function")try{te.onCommitFiberUnmount(Ge,l)}catch{}switch(l.tag){case 26:fe||Pn(l,r),xr(e,r,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:fe||Pn(l,r);var s=ee,d=Ke;ei(l.type)&&(ee=l.stateNode,Ke=!1),xr(e,r,l),ro(l.stateNode),ee=s,Ke=d;break;case 5:fe||Pn(l,r);case 6:if(s=ee,d=Ke,ee=null,xr(e,r,l),ee=s,Ke=d,ee!==null)if(Ke)try{(ee.nodeType===9?ee.body:ee.nodeName==="HTML"?ee.ownerDocument.body:ee).removeChild(l.stateNode)}catch(g){Xt(l,r,g)}else try{ee.removeChild(l.stateNode)}catch(g){Xt(l,r,g)}break;case 18:ee!==null&&(Ke?(e=ee,Iy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),fo(e)):Iy(ee,l.stateNode));break;case 4:s=ee,d=Ke,ee=l.stateNode.containerInfo,Ke=!0,xr(e,r,l),ee=s,Ke=d;break;case 0:case 11:case 14:case 15:fe||Pr(2,l,r),fe||Pr(4,l,r),xr(e,r,l);break;case 1:fe||(Pn(l,r),s=l.stateNode,typeof s.componentWillUnmount=="function"&&Qp(l,r,s)),xr(e,r,l);break;case 21:xr(e,r,l);break;case 22:fe=(s=fe)||l.memoizedState!==null,xr(e,r,l),fe=s;break;default:xr(e,r,l)}}function ry(e,r){if(r.memoizedState===null&&(e=r.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{fo(e)}catch(l){Xt(r,r.return,l)}}function XA(e){switch(e.tag){case 13:case 19:var r=e.stateNode;return r===null&&(r=e.stateNode=new Jp),r;case 22:return e=e.stateNode,r=e._retryCache,r===null&&(r=e._retryCache=new Jp),r;default:throw Error(a(435,e.tag))}}function md(e,r){var l=XA(e);r.forEach(function(s){var d=eT.bind(null,e,s);l.has(s)||(l.add(s),s.then(d,d))})}function an(e,r){var l=r.deletions;if(l!==null)for(var s=0;s<l.length;s++){var d=l[s],g=e,A=r,w=A;t:for(;w!==null;){switch(w.tag){case 27:if(ei(w.type)){ee=w.stateNode,Ke=!1;break t}break;case 5:ee=w.stateNode,Ke=!1;break t;case 3:case 4:ee=w.stateNode.containerInfo,Ke=!0;break t}w=w.return}if(ee===null)throw Error(a(160));ny(g,A,d),ee=null,Ke=!1,g=d.alternate,g!==null&&(g.return=null),d.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)iy(r,e),r=r.sibling}var $n=null;function iy(e,r){var l=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:an(r,e),ln(e),s&4&&(Pr(3,e,e.return),Pl(3,e),Pr(5,e,e.return));break;case 1:an(r,e),ln(e),s&512&&(fe||l===null||Pn(l,l.return)),s&64&&br&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?s:l.concat(s))));break;case 26:var d=$n;if(an(r,e),ln(e),s&512&&(fe||l===null||Pn(l,l.return)),s&4){var g=l!==null?l.memoizedState:null;if(s=e.memoizedState,l===null)if(s===null)if(e.stateNode===null){t:{s=e.type,l=e.memoizedProps,d=d.ownerDocument||d;e:switch(s){case"title":g=d.getElementsByTagName("title")[0],(!g||g[vl]||g[je]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=d.createElement(s),d.head.insertBefore(g,d.querySelector("head > title"))),De(g,s,l),g[je]=e,Ce(g),s=g;break t;case"link":var A=Wy("link","href",d).get(s+(l.href||""));if(A){for(var w=0;w<A.length;w++)if(g=A[w],g.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&g.getAttribute("rel")===(l.rel==null?null:l.rel)&&g.getAttribute("title")===(l.title==null?null:l.title)&&g.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){A.splice(w,1);break e}}g=d.createElement(s),De(g,s,l),d.head.appendChild(g);break;case"meta":if(A=Wy("meta","content",d).get(s+(l.content||""))){for(w=0;w<A.length;w++)if(g=A[w],g.getAttribute("content")===(l.content==null?null:""+l.content)&&g.getAttribute("name")===(l.name==null?null:l.name)&&g.getAttribute("property")===(l.property==null?null:l.property)&&g.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&g.getAttribute("charset")===(l.charSet==null?null:l.charSet)){A.splice(w,1);break e}}g=d.createElement(s),De(g,s,l),d.head.appendChild(g);break;default:throw Error(a(468,s))}g[je]=e,Ce(g),s=g}e.stateNode=s}else Jy(d,e.type,e.stateNode);else e.stateNode=Fy(d,s,e.memoizedProps);else g!==s?(g===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):g.count--,s===null?Jy(d,e.type,e.stateNode):Fy(d,s,e.memoizedProps)):s===null&&e.stateNode!==null&&cd(e,e.memoizedProps,l.memoizedProps)}break;case 27:an(r,e),ln(e),s&512&&(fe||l===null||Pn(l,l.return)),l!==null&&s&4&&cd(e,e.memoizedProps,l.memoizedProps);break;case 5:if(an(r,e),ln(e),s&512&&(fe||l===null||Pn(l,l.return)),e.flags&32){d=e.stateNode;try{ea(d,"")}catch(Q){Xt(e,e.return,Q)}}s&4&&e.stateNode!=null&&(d=e.memoizedProps,cd(e,d,l!==null?l.memoizedProps:d)),s&1024&&(hd=!0);break;case 6:if(an(r,e),ln(e),s&4){if(e.stateNode===null)throw Error(a(162));s=e.memoizedProps,l=e.stateNode;try{l.nodeValue=s}catch(Q){Xt(e,e.return,Q)}}break;case 3:if(lu=null,d=$n,$n=iu(r.containerInfo),an(r,e),$n=d,ln(e),s&4&&l!==null&&l.memoizedState.isDehydrated)try{fo(r.containerInfo)}catch(Q){Xt(e,e.return,Q)}hd&&(hd=!1,ay(e));break;case 4:s=$n,$n=iu(e.stateNode.containerInfo),an(r,e),ln(e),$n=s;break;case 12:an(r,e),ln(e);break;case 13:an(r,e),ln(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(xd=Yt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,md(e,s)));break;case 22:d=e.memoizedState!==null;var U=l!==null&&l.memoizedState!==null,V=br,J=fe;if(br=V||d,fe=J||U,an(r,e),fe=J,br=V,ln(e),s&8192)t:for(r=e.stateNode,r._visibility=d?r._visibility&-2:r._visibility|1,d&&(l===null||U||br||fe||Mi(e)),l=null,r=e;;){if(r.tag===5||r.tag===26){if(l===null){U=l=r;try{if(g=U.stateNode,d)A=g.style,typeof A.setProperty=="function"?A.setProperty("display","none","important"):A.display="none";else{w=U.stateNode;var et=U.memoizedProps.style,Z=et!=null&&et.hasOwnProperty("display")?et.display:null;w.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(Q){Xt(U,U.return,Q)}}}else if(r.tag===6){if(l===null){U=r;try{U.stateNode.nodeValue=d?"":U.memoizedProps}catch(Q){Xt(U,U.return,Q)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break t;for(;r.sibling===null;){if(r.return===null||r.return===e)break t;l===r&&(l=null),r=r.return}l===r&&(l=null),r.sibling.return=r.return,r=r.sibling}s&4&&(s=e.updateQueue,s!==null&&(l=s.retryQueue,l!==null&&(s.retryQueue=null,md(e,l))));break;case 19:an(r,e),ln(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,md(e,s)));break;case 30:break;case 21:break;default:an(r,e),ln(e)}}function ln(e){var r=e.flags;if(r&2){try{for(var l,s=e.return;s!==null;){if(Fp(s)){l=s;break}s=s.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var d=l.stateNode,g=fd(e);Vs(e,g,d);break;case 5:var A=l.stateNode;l.flags&32&&(ea(A,""),l.flags&=-33);var w=fd(e);Vs(e,w,A);break;case 3:case 4:var U=l.stateNode.containerInfo,V=fd(e);dd(e,V,U);break;default:throw Error(a(161))}}catch(J){Xt(e,e.return,J)}e.flags&=-3}r&4096&&(e.flags&=-4097)}function ay(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var r=e;ay(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),e=e.sibling}}function Zr(e,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)ty(e,r.alternate,r),r=r.sibling}function Mi(e){for(e=e.child;e!==null;){var r=e;switch(r.tag){case 0:case 11:case 14:case 15:Pr(4,r,r.return),Mi(r);break;case 1:Pn(r,r.return);var l=r.stateNode;typeof l.componentWillUnmount=="function"&&Qp(r,r.return,l),Mi(r);break;case 27:ro(r.stateNode);case 26:case 5:Pn(r,r.return),Mi(r);break;case 22:r.memoizedState===null&&Mi(r);break;case 30:Mi(r);break;default:Mi(r)}e=e.sibling}}function Qr(e,r,l){for(l=l&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var s=r.alternate,d=e,g=r,A=g.flags;switch(g.tag){case 0:case 11:case 15:Qr(d,g,l),Pl(4,g);break;case 1:if(Qr(d,g,l),s=g,d=s.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(V){Xt(s,s.return,V)}if(s=g,d=s.updateQueue,d!==null){var w=s.stateNode;try{var U=d.shared.hiddenCallbacks;if(U!==null)for(d.shared.hiddenCallbacks=null,d=0;d<U.length;d++)Ng(U[d],w)}catch(V){Xt(s,s.return,V)}}l&&A&64&&Zp(g),Zl(g,g.return);break;case 27:Wp(g);case 26:case 5:Qr(d,g,l),l&&s===null&&A&4&&Kp(g),Zl(g,g.return);break;case 12:Qr(d,g,l);break;case 13:Qr(d,g,l),l&&A&4&&ry(d,g);break;case 22:g.memoizedState===null&&Qr(d,g,l),Zl(g,g.return);break;case 30:break;default:Qr(d,g,l)}r=r.sibling}}function gd(e,r){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(e=r.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&zl(l))}function pd(e,r){e=null,r.alternate!==null&&(e=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==e&&(r.refCount++,e!=null&&zl(e))}function Zn(e,r,l,s){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)ly(e,r,l,s),r=r.sibling}function ly(e,r,l,s){var d=r.flags;switch(r.tag){case 0:case 11:case 15:Zn(e,r,l,s),d&2048&&Pl(9,r);break;case 1:Zn(e,r,l,s);break;case 3:Zn(e,r,l,s),d&2048&&(e=null,r.alternate!==null&&(e=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==e&&(r.refCount++,e!=null&&zl(e)));break;case 12:if(d&2048){Zn(e,r,l,s),e=r.stateNode;try{var g=r.memoizedProps,A=g.id,w=g.onPostCommit;typeof w=="function"&&w(A,r.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(U){Xt(r,r.return,U)}}else Zn(e,r,l,s);break;case 13:Zn(e,r,l,s);break;case 23:break;case 22:g=r.stateNode,A=r.alternate,r.memoizedState!==null?g._visibility&2?Zn(e,r,l,s):Ql(e,r):g._visibility&2?Zn(e,r,l,s):(g._visibility|=2,xa(e,r,l,s,(r.subtreeFlags&10256)!==0)),d&2048&&gd(A,r);break;case 24:Zn(e,r,l,s),d&2048&&pd(r.alternate,r);break;default:Zn(e,r,l,s)}}function xa(e,r,l,s,d){for(d=d&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var g=e,A=r,w=l,U=s,V=A.flags;switch(A.tag){case 0:case 11:case 15:xa(g,A,w,U,d),Pl(8,A);break;case 23:break;case 22:var J=A.stateNode;A.memoizedState!==null?J._visibility&2?xa(g,A,w,U,d):Ql(g,A):(J._visibility|=2,xa(g,A,w,U,d)),d&&V&2048&&gd(A.alternate,A);break;case 24:xa(g,A,w,U,d),d&&V&2048&&pd(A.alternate,A);break;default:xa(g,A,w,U,d)}r=r.sibling}}function Ql(e,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var l=e,s=r,d=s.flags;switch(s.tag){case 22:Ql(l,s),d&2048&&gd(s.alternate,s);break;case 24:Ql(l,s),d&2048&&pd(s.alternate,s);break;default:Ql(l,s)}r=r.sibling}}var Kl=8192;function Sa(e){if(e.subtreeFlags&Kl)for(e=e.child;e!==null;)oy(e),e=e.sibling}function oy(e){switch(e.tag){case 26:Sa(e),e.flags&Kl&&e.memoizedState!==null&&kT($n,e.memoizedState,e.memoizedProps);break;case 5:Sa(e);break;case 3:case 4:var r=$n;$n=iu(e.stateNode.containerInfo),Sa(e),$n=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Kl,Kl=16777216,Sa(e),Kl=r):Sa(e));break;default:Sa(e)}}function sy(e){var r=e.alternate;if(r!==null&&(e=r.child,e!==null)){r.child=null;do r=e.sibling,e.sibling=null,e=r;while(e!==null)}}function Fl(e){var r=e.deletions;if((e.flags&16)!==0){if(r!==null)for(var l=0;l<r.length;l++){var s=r[l];Me=s,cy(s,e)}sy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)uy(e),e=e.sibling}function uy(e){switch(e.tag){case 0:case 11:case 15:Fl(e),e.flags&2048&&Pr(9,e,e.return);break;case 3:Fl(e);break;case 12:Fl(e);break;case 22:var r=e.stateNode;e.memoizedState!==null&&r._visibility&2&&(e.return===null||e.return.tag!==13)?(r._visibility&=-3,Xs(e)):Fl(e);break;default:Fl(e)}}function Xs(e){var r=e.deletions;if((e.flags&16)!==0){if(r!==null)for(var l=0;l<r.length;l++){var s=r[l];Me=s,cy(s,e)}sy(e)}for(e=e.child;e!==null;){switch(r=e,r.tag){case 0:case 11:case 15:Pr(8,r,r.return),Xs(r);break;case 22:l=r.stateNode,l._visibility&2&&(l._visibility&=-3,Xs(r));break;default:Xs(r)}e=e.sibling}}function cy(e,r){for(;Me!==null;){var l=Me;switch(l.tag){case 0:case 11:case 15:Pr(8,l,r);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var s=l.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:zl(l.memoizedState.cache)}if(s=l.child,s!==null)s.return=l,Me=s;else t:for(l=e;Me!==null;){s=Me;var d=s.sibling,g=s.return;if(ey(s),s===l){Me=null;break t}if(d!==null){d.return=g,Me=d;break t}Me=g}}}var PA={getCacheForType:function(e){var r=$e(ve),l=r.data.get(e);return l===void 0&&(l=e(),r.data.set(e,l)),l}},ZA=typeof WeakMap=="function"?WeakMap:Map,Lt=0,Ft=null,Ot=null,kt=0,Ht=0,on=null,Kr=!1,Aa=!1,yd=!1,Sr=0,le=0,Fr=0,Ei=0,vd=0,Tn=0,Ta=0,Wl=null,Fe=null,bd=!1,xd=0,Ps=1/0,Zs=null,Wr=null,ke=0,Jr=null,Ca=null,wa=0,Sd=0,Ad=null,fy=null,Jl=0,Td=null;function sn(){if((Lt&2)!==0&&kt!==0)return kt&-kt;if(j.T!==null){var e=da;return e!==0?e:_d()}return E0()}function dy(){Tn===0&&(Tn=(kt&536870912)===0||Nt?T0():536870912);var e=An.current;return e!==null&&(e.flags|=32),Tn}function un(e,r,l){(e===Ft&&(Ht===2||Ht===9)||e.cancelPendingCommit!==null)&&(Ma(e,0),ti(e,kt,Tn,!1)),yl(e,l),((Lt&2)===0||e!==Ft)&&(e===Ft&&((Lt&2)===0&&(Ei|=l),le===4&&ti(e,kt,Tn,!1)),Qn(e))}function hy(e,r,l){if((Lt&6)!==0)throw Error(a(327));var s=!l&&(r&124)===0&&(r&e.expiredLanes)===0||pl(e,r),d=s?FA(e,r):Md(e,r,!0),g=s;do{if(d===0){Aa&&!s&&ti(e,r,0,!1);break}else{if(l=e.current.alternate,g&&!QA(l)){d=Md(e,r,!1),g=!1;continue}if(d===2){if(g=r,e.errorRecoveryDisabledLanes&g)var A=0;else A=e.pendingLanes&-536870913,A=A!==0?A:A&536870912?536870912:0;if(A!==0){r=A;t:{var w=e;d=Wl;var U=w.current.memoizedState.isDehydrated;if(U&&(Ma(w,A).flags|=256),A=Md(w,A,!1),A!==2){if(yd&&!U){w.errorRecoveryDisabledLanes|=g,Ei|=g,d=4;break t}g=Fe,Fe=d,g!==null&&(Fe===null?Fe=g:Fe.push.apply(Fe,g))}d=A}if(g=!1,d!==2)continue}}if(d===1){Ma(e,0),ti(e,r,0,!0);break}t:{switch(s=e,g=d,g){case 0:case 1:throw Error(a(345));case 4:if((r&4194048)!==r)break;case 6:ti(s,r,Tn,!Kr);break t;case 2:Fe=null;break;case 3:case 5:break;default:throw Error(a(329))}if((r&62914560)===r&&(d=xd+300-Yt(),10<d)){if(ti(s,r,Tn,!Kr),as(s,0,!0)!==0)break t;s.timeoutHandle=Gy(my.bind(null,s,l,Fe,Zs,bd,r,Tn,Ei,Ta,Kr,g,2,-0,0),d);break t}my(s,l,Fe,Zs,bd,r,Tn,Ei,Ta,Kr,g,0,-0,0)}}break}while(!0);Qn(e)}function my(e,r,l,s,d,g,A,w,U,V,J,et,Z,Q){if(e.timeoutHandle=-1,et=r.subtreeFlags,(et&8192||(et&16785408)===16785408)&&(lo={stylesheets:null,count:0,unsuspend:_T},oy(r),et=DT(),et!==null)){e.cancelPendingCommit=et(Sy.bind(null,e,r,g,l,s,d,A,w,U,J,1,Z,Q)),ti(e,g,A,!V);return}Sy(e,r,g,l,s,d,A,w,U)}function QA(e){for(var r=e;;){var l=r.tag;if((l===0||l===11||l===15)&&r.flags&16384&&(l=r.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var s=0;s<l.length;s++){var d=l[s],g=d.getSnapshot;d=d.value;try{if(!nn(g(),d))return!1}catch{return!1}}if(l=r.child,r.subtreeFlags&16384&&l!==null)l.return=r,r=l;else{if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function ti(e,r,l,s){r&=~vd,r&=~Ei,e.suspendedLanes|=r,e.pingedLanes&=~r,s&&(e.warmLanes|=r),s=e.expirationTimes;for(var d=r;0<d;){var g=31-Te(d),A=1<<g;s[g]=-1,d&=~A}l!==0&&w0(e,l,r)}function Qs(){return(Lt&6)===0?(to(0),!1):!0}function Cd(){if(Ot!==null){if(Ht===0)var e=Ot.return;else e=Ot,hr=Si=null,Yf(e),va=null,Il=0,e=Ot;for(;e!==null;)Pp(e.alternate,e),e=e.return;Ot=null}}function Ma(e,r){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,hT(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Cd(),Ft=e,Ot=l=cr(e.current,null),kt=r,Ht=0,on=null,Kr=!1,Aa=pl(e,r),yd=!1,Ta=Tn=vd=Ei=Fr=le=0,Fe=Wl=null,bd=!1,(r&8)!==0&&(r|=r&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=r;0<s;){var d=31-Te(s),g=1<<d;r|=e[d],s&=~g}return Sr=r,ys(),l}function gy(e,r){Mt=null,j.H=js,r===Ul||r===Ms?(r=Dg(),Ht=3):r===Rg?(r=Dg(),Ht=4):Ht=r===zp?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,on=r,Ot===null&&(le=1,Ys(e,vn(r,e.current)))}function py(){var e=j.H;return j.H=js,e===null?js:e}function yy(){var e=j.A;return j.A=PA,e}function wd(){le=4,Kr||(kt&4194048)!==kt&&An.current!==null||(Aa=!0),(Fr&134217727)===0&&(Ei&134217727)===0||Ft===null||ti(Ft,kt,Tn,!1)}function Md(e,r,l){var s=Lt;Lt|=2;var d=py(),g=yy();(Ft!==e||kt!==r)&&(Zs=null,Ma(e,r)),r=!1;var A=le;t:do try{if(Ht!==0&&Ot!==null){var w=Ot,U=on;switch(Ht){case 8:Cd(),A=6;break t;case 3:case 2:case 9:case 6:An.current===null&&(r=!0);var V=Ht;if(Ht=0,on=null,Ea(e,w,U,V),l&&Aa){A=0;break t}break;default:V=Ht,Ht=0,on=null,Ea(e,w,U,V)}}KA(),A=le;break}catch(J){gy(e,J)}while(!0);return r&&e.shellSuspendCounter++,hr=Si=null,Lt=s,j.H=d,j.A=g,Ot===null&&(Ft=null,kt=0,ys()),A}function KA(){for(;Ot!==null;)vy(Ot)}function FA(e,r){var l=Lt;Lt|=2;var s=py(),d=yy();Ft!==e||kt!==r?(Zs=null,Ps=Yt()+500,Ma(e,r)):Aa=pl(e,r);t:do try{if(Ht!==0&&Ot!==null){r=Ot;var g=on;e:switch(Ht){case 1:Ht=0,on=null,Ea(e,r,g,1);break;case 2:case 9:if(_g(g)){Ht=0,on=null,by(r);break}r=function(){Ht!==2&&Ht!==9||Ft!==e||(Ht=7),Qn(e)},g.then(r,r);break t;case 3:Ht=7;break t;case 4:Ht=5;break t;case 7:_g(g)?(Ht=0,on=null,by(r)):(Ht=0,on=null,Ea(e,r,g,7));break;case 5:var A=null;switch(Ot.tag){case 26:A=Ot.memoizedState;case 5:case 27:var w=Ot;if(!A||t1(A)){Ht=0,on=null;var U=w.sibling;if(U!==null)Ot=U;else{var V=w.return;V!==null?(Ot=V,Ks(V)):Ot=null}break e}}Ht=0,on=null,Ea(e,r,g,5);break;case 6:Ht=0,on=null,Ea(e,r,g,6);break;case 8:Cd(),le=6;break t;default:throw Error(a(462))}}WA();break}catch(J){gy(e,J)}while(!0);return hr=Si=null,j.H=s,j.A=d,Lt=l,Ot!==null?0:(Ft=null,kt=0,ys(),le)}function WA(){for(;Ot!==null&&!Bt();)vy(Ot)}function vy(e){var r=Vp(e.alternate,e,Sr);e.memoizedProps=e.pendingProps,r===null?Ks(e):Ot=r}function by(e){var r=e,l=r.alternate;switch(r.tag){case 15:case 0:r=Lp(l,r,r.pendingProps,r.type,void 0,kt);break;case 11:r=Lp(l,r,r.pendingProps,r.type.render,r.ref,kt);break;case 5:Yf(r);default:Pp(l,r),r=Ot=xg(r,Sr),r=Vp(l,r,Sr)}e.memoizedProps=e.pendingProps,r===null?Ks(e):Ot=r}function Ea(e,r,l,s){hr=Si=null,Yf(r),va=null,Il=0;var d=r.return;try{if(YA(e,d,r,l,kt)){le=1,Ys(e,vn(l,e.current)),Ot=null;return}}catch(g){if(d!==null)throw Ot=d,g;le=1,Ys(e,vn(l,e.current)),Ot=null;return}r.flags&32768?(Nt||s===1?e=!0:Aa||(kt&536870912)!==0?e=!1:(Kr=e=!0,(s===2||s===9||s===3||s===6)&&(s=An.current,s!==null&&s.tag===13&&(s.flags|=16384))),xy(r,e)):Ks(r)}function Ks(e){var r=e;do{if((r.flags&32768)!==0){xy(r,Kr);return}e=r.return;var l=qA(r.alternate,r,Sr);if(l!==null){Ot=l;return}if(r=r.sibling,r!==null){Ot=r;return}Ot=r=e}while(r!==null);le===0&&(le=5)}function xy(e,r){do{var l=IA(e.alternate,e);if(l!==null){l.flags&=32767,Ot=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!r&&(e=e.sibling,e!==null)){Ot=e;return}Ot=e=l}while(e!==null);le=6,Ot=null}function Sy(e,r,l,s,d,g,A,w,U){e.cancelPendingCommit=null;do Fs();while(ke!==0);if((Lt&6)!==0)throw Error(a(327));if(r!==null){if(r===e.current)throw Error(a(177));if(g=r.lanes|r.childLanes,g|=pf,_2(e,l,g,A,w,U),e===Ft&&(Ot=Ft=null,kt=0),Ca=r,Jr=e,wa=l,Sd=g,Ad=d,fy=s,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,nT(Kt,function(){return My(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||s){s=j.T,j.T=null,d=P.p,P.p=2,A=Lt,Lt|=4;try{VA(e,r,l)}finally{Lt=A,P.p=d,j.T=s}}ke=1,Ay(),Ty(),Cy()}}function Ay(){if(ke===1){ke=0;var e=Jr,r=Ca,l=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||l){l=j.T,j.T=null;var s=P.p;P.p=2;var d=Lt;Lt|=4;try{iy(r,e);var g=Bd,A=cg(e.containerInfo),w=g.focusedElem,U=g.selectionRange;if(A!==w&&w&&w.ownerDocument&&ug(w.ownerDocument.documentElement,w)){if(U!==null&&ff(w)){var V=U.start,J=U.end;if(J===void 0&&(J=V),"selectionStart"in w)w.selectionStart=V,w.selectionEnd=Math.min(J,w.value.length);else{var et=w.ownerDocument||document,Z=et&&et.defaultView||window;if(Z.getSelection){var Q=Z.getSelection(),Tt=w.textContent.length,St=Math.min(U.start,Tt),It=U.end===void 0?St:Math.min(U.end,Tt);!Q.extend&&St>It&&(A=It,It=St,St=A);var G=sg(w,St),B=sg(w,It);if(G&&B&&(Q.rangeCount!==1||Q.anchorNode!==G.node||Q.anchorOffset!==G.offset||Q.focusNode!==B.node||Q.focusOffset!==B.offset)){var q=et.createRange();q.setStart(G.node,G.offset),Q.removeAllRanges(),St>It?(Q.addRange(q),Q.extend(B.node,B.offset)):(q.setEnd(B.node,B.offset),Q.addRange(q))}}}}for(et=[],Q=w;Q=Q.parentNode;)Q.nodeType===1&&et.push({element:Q,left:Q.scrollLeft,top:Q.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<et.length;w++){var tt=et[w];tt.element.scrollLeft=tt.left,tt.element.scrollTop=tt.top}}uu=!!$d,Bd=$d=null}finally{Lt=d,P.p=s,j.T=l}}e.current=r,ke=2}}function Ty(){if(ke===2){ke=0;var e=Jr,r=Ca,l=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||l){l=j.T,j.T=null;var s=P.p;P.p=2;var d=Lt;Lt|=4;try{ty(e,r.alternate,r)}finally{Lt=d,P.p=s,j.T=l}}ke=3}}function Cy(){if(ke===4||ke===3){ke=0,Wt();var e=Jr,r=Ca,l=wa,s=fy;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?ke=5:(ke=0,Ca=Jr=null,wy(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(Wr=null),qc(l),r=r.stateNode,te&&typeof te.onCommitFiberRoot=="function")try{te.onCommitFiberRoot(Ge,r,void 0,(r.current.flags&128)===128)}catch{}if(s!==null){r=j.T,d=P.p,P.p=2,j.T=null;try{for(var g=e.onRecoverableError,A=0;A<s.length;A++){var w=s[A];g(w.value,{componentStack:w.stack})}}finally{j.T=r,P.p=d}}(wa&3)!==0&&Fs(),Qn(e),d=e.pendingLanes,(l&4194090)!==0&&(d&42)!==0?e===Td?Jl++:(Jl=0,Td=e):Jl=0,to(0)}}function wy(e,r){(e.pooledCacheLanes&=r)===0&&(r=e.pooledCache,r!=null&&(e.pooledCache=null,zl(r)))}function Fs(e){return Ay(),Ty(),Cy(),My()}function My(){if(ke!==5)return!1;var e=Jr,r=Sd;Sd=0;var l=qc(wa),s=j.T,d=P.p;try{P.p=32>l?32:l,j.T=null,l=Ad,Ad=null;var g=Jr,A=wa;if(ke=0,Ca=Jr=null,wa=0,(Lt&6)!==0)throw Error(a(331));var w=Lt;if(Lt|=4,uy(g.current),ly(g,g.current,A,l),Lt=w,to(0,!1),te&&typeof te.onPostCommitFiberRoot=="function")try{te.onPostCommitFiberRoot(Ge,g)}catch{}return!0}finally{P.p=d,j.T=s,wy(e,r)}}function Ey(e,r,l){r=vn(l,r),r=ed(e.stateNode,r,2),e=qr(e,r,2),e!==null&&(yl(e,2),Qn(e))}function Xt(e,r,l){if(e.tag===3)Ey(e,e,l);else for(;r!==null;){if(r.tag===3){Ey(r,e,l);break}else if(r.tag===1){var s=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Wr===null||!Wr.has(s))){e=vn(l,e),l=kp(2),s=qr(r,l,2),s!==null&&(Dp(l,s,r,e),yl(s,2),Qn(s));break}}r=r.return}}function Ed(e,r,l){var s=e.pingCache;if(s===null){s=e.pingCache=new ZA;var d=new Set;s.set(r,d)}else d=s.get(r),d===void 0&&(d=new Set,s.set(r,d));d.has(l)||(yd=!0,d.add(l),e=JA.bind(null,e,r,l),r.then(e,e))}function JA(e,r,l){var s=e.pingCache;s!==null&&s.delete(r),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ft===e&&(kt&l)===l&&(le===4||le===3&&(kt&62914560)===kt&&300>Yt()-xd?(Lt&2)===0&&Ma(e,0):vd|=l,Ta===kt&&(Ta=0)),Qn(e)}function Oy(e,r){r===0&&(r=C0()),e=sa(e,r),e!==null&&(yl(e,r),Qn(e))}function tT(e){var r=e.memoizedState,l=0;r!==null&&(l=r.retryLane),Oy(e,l)}function eT(e,r){var l=0;switch(e.tag){case 13:var s=e.stateNode,d=e.memoizedState;d!==null&&(l=d.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(a(314))}s!==null&&s.delete(r),Oy(e,l)}function nT(e,r){return _t(e,r)}var Ws=null,Oa=null,Od=!1,Js=!1,Rd=!1,Oi=0;function Qn(e){e!==Oa&&e.next===null&&(Oa===null?Ws=Oa=e:Oa=Oa.next=e),Js=!0,Od||(Od=!0,iT())}function to(e,r){if(!Rd&&Js){Rd=!0;do for(var l=!1,s=Ws;s!==null;){if(e!==0){var d=s.pendingLanes;if(d===0)var g=0;else{var A=s.suspendedLanes,w=s.pingedLanes;g=(1<<31-Te(42|e)+1)-1,g&=d&~(A&~w),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(l=!0,Dy(s,g))}else g=kt,g=as(s,s===Ft?g:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(g&3)===0||pl(s,g)||(l=!0,Dy(s,g));s=s.next}while(l);Rd=!1}}function rT(){Ry()}function Ry(){Js=Od=!1;var e=0;Oi!==0&&(dT()&&(e=Oi),Oi=0);for(var r=Yt(),l=null,s=Ws;s!==null;){var d=s.next,g=_y(s,r);g===0?(s.next=null,l===null?Ws=d:l.next=d,d===null&&(Oa=l)):(l=s,(e!==0||(g&3)!==0)&&(Js=!0)),s=d}to(e)}function _y(e,r){for(var l=e.suspendedLanes,s=e.pingedLanes,d=e.expirationTimes,g=e.pendingLanes&-62914561;0<g;){var A=31-Te(g),w=1<<A,U=d[A];U===-1?((w&l)===0||(w&s)!==0)&&(d[A]=R2(w,r)):U<=r&&(e.expiredLanes|=w),g&=~w}if(r=Ft,l=kt,l=as(e,e===r?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,l===0||e===r&&(Ht===2||Ht===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&vt(s),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||pl(e,l)){if(r=l&-l,r===e.callbackPriority)return r;switch(s!==null&&vt(s),qc(l)){case 2:case 8:l=me;break;case 32:l=Kt;break;case 268435456:l=mn;break;default:l=Kt}return s=ky.bind(null,e),l=_t(l,s),e.callbackPriority=r,e.callbackNode=l,r}return s!==null&&s!==null&&vt(s),e.callbackPriority=2,e.callbackNode=null,2}function ky(e,r){if(ke!==0&&ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Fs()&&e.callbackNode!==l)return null;var s=kt;return s=as(e,e===Ft?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(hy(e,s,r),_y(e,Yt()),e.callbackNode!=null&&e.callbackNode===l?ky.bind(null,e):null)}function Dy(e,r){if(Fs())return null;hy(e,r,!0)}function iT(){mT(function(){(Lt&6)!==0?_t(ue,rT):Ry()})}function _d(){return Oi===0&&(Oi=T0()),Oi}function zy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:cs(""+e)}function Ny(e,r){var l=r.ownerDocument.createElement("input");return l.name=r.name,l.value=r.value,e.id&&l.setAttribute("form",e.id),r.parentNode.insertBefore(l,r),e=new FormData(e),l.parentNode.removeChild(l),e}function aT(e,r,l,s,d){if(r==="submit"&&l&&l.stateNode===d){var g=zy((d[Pe]||null).action),A=s.submitter;A&&(r=(r=A[Pe]||null)?zy(r.formAction):A.getAttribute("formAction"),r!==null&&(g=r,A=null));var w=new ms("action","action",null,s,d);e.push({event:w,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Oi!==0){var U=A?Ny(d,A):new FormData(d);Kf(l,{pending:!0,data:U,method:d.method,action:g},null,U)}}else typeof g=="function"&&(w.preventDefault(),U=A?Ny(d,A):new FormData(d),Kf(l,{pending:!0,data:U,method:d.method,action:g},g,U))},currentTarget:d}]})}}for(var kd=0;kd<gf.length;kd++){var Dd=gf[kd],lT=Dd.toLowerCase(),oT=Dd[0].toUpperCase()+Dd.slice(1);jn(lT,"on"+oT)}jn(hg,"onAnimationEnd"),jn(mg,"onAnimationIteration"),jn(gg,"onAnimationStart"),jn("dblclick","onDoubleClick"),jn("focusin","onFocus"),jn("focusout","onBlur"),jn(CA,"onTransitionRun"),jn(wA,"onTransitionStart"),jn(MA,"onTransitionCancel"),jn(pg,"onTransitionEnd"),Wi("onMouseEnter",["mouseout","mouseover"]),Wi("onMouseLeave",["mouseout","mouseover"]),Wi("onPointerEnter",["pointerout","pointerover"]),Wi("onPointerLeave",["pointerout","pointerover"]),di("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),di("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),di("onBeforeInput",["compositionend","keypress","textInput","paste"]),di("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),di("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),di("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var eo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),sT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(eo));function Uy(e,r){r=(r&4)!==0;for(var l=0;l<e.length;l++){var s=e[l],d=s.event;s=s.listeners;t:{var g=void 0;if(r)for(var A=s.length-1;0<=A;A--){var w=s[A],U=w.instance,V=w.currentTarget;if(w=w.listener,U!==g&&d.isPropagationStopped())break t;g=w,d.currentTarget=V;try{g(d)}catch(J){Hs(J)}d.currentTarget=null,g=U}else for(A=0;A<s.length;A++){if(w=s[A],U=w.instance,V=w.currentTarget,w=w.listener,U!==g&&d.isPropagationStopped())break t;g=w,d.currentTarget=V;try{g(d)}catch(J){Hs(J)}d.currentTarget=null,g=U}}}}function Rt(e,r){var l=r[Ic];l===void 0&&(l=r[Ic]=new Set);var s=e+"__bubble";l.has(s)||(jy(r,e,2,!1),l.add(s))}function zd(e,r,l){var s=0;r&&(s|=4),jy(l,e,s,r)}var tu="_reactListening"+Math.random().toString(36).slice(2);function Nd(e){if(!e[tu]){e[tu]=!0,R0.forEach(function(l){l!=="selectionchange"&&(sT.has(l)||zd(l,!1,e),zd(l,!0,e))});var r=e.nodeType===9?e:e.ownerDocument;r===null||r[tu]||(r[tu]=!0,zd("selectionchange",!1,r))}}function jy(e,r,l,s){switch(l1(r)){case 2:var d=UT;break;case 8:d=jT;break;default:d=Zd}l=d.bind(null,r,l,e),d=void 0,!ef||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(d=!0),s?d!==void 0?e.addEventListener(r,l,{capture:!0,passive:d}):e.addEventListener(r,l,!0):d!==void 0?e.addEventListener(r,l,{passive:d}):e.addEventListener(r,l,!1)}function Ud(e,r,l,s,d){var g=s;if((r&1)===0&&(r&2)===0&&s!==null)t:for(;;){if(s===null)return;var A=s.tag;if(A===3||A===4){var w=s.stateNode.containerInfo;if(w===d)break;if(A===4)for(A=s.return;A!==null;){var U=A.tag;if((U===3||U===4)&&A.stateNode.containerInfo===d)return;A=A.return}for(;w!==null;){if(A=Qi(w),A===null)return;if(U=A.tag,U===5||U===6||U===26||U===27){s=g=A;continue t}w=w.parentNode}}s=s.return}q0(function(){var V=g,J=Jc(l),et=[];t:{var Z=yg.get(e);if(Z!==void 0){var Q=ms,Tt=e;switch(e){case"keypress":if(ds(l)===0)break t;case"keydown":case"keyup":Q=nA;break;case"focusin":Tt="focus",Q=lf;break;case"focusout":Tt="blur",Q=lf;break;case"beforeblur":case"afterblur":Q=lf;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=X0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=I2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=aA;break;case hg:case mg:case gg:Q=P2;break;case pg:Q=oA;break;case"scroll":case"scrollend":Q=G2;break;case"wheel":Q=uA;break;case"copy":case"cut":case"paste":Q=Q2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=Z0;break;case"toggle":case"beforetoggle":Q=fA}var St=(r&4)!==0,It=!St&&(e==="scroll"||e==="scrollend"),G=St?Z!==null?Z+"Capture":null:Z;St=[];for(var B=V,q;B!==null;){var tt=B;if(q=tt.stateNode,tt=tt.tag,tt!==5&&tt!==26&&tt!==27||q===null||G===null||(tt=xl(B,G),tt!=null&&St.push(no(B,tt,q))),It)break;B=B.return}0<St.length&&(Z=new Q(Z,Tt,null,l,J),et.push({event:Z,listeners:St}))}}if((r&7)===0){t:{if(Z=e==="mouseover"||e==="pointerover",Q=e==="mouseout"||e==="pointerout",Z&&l!==Wc&&(Tt=l.relatedTarget||l.fromElement)&&(Qi(Tt)||Tt[Zi]))break t;if((Q||Z)&&(Z=J.window===J?J:(Z=J.ownerDocument)?Z.defaultView||Z.parentWindow:window,Q?(Tt=l.relatedTarget||l.toElement,Q=V,Tt=Tt?Qi(Tt):null,Tt!==null&&(It=u(Tt),St=Tt.tag,Tt!==It||St!==5&&St!==27&&St!==6)&&(Tt=null)):(Q=null,Tt=V),Q!==Tt)){if(St=X0,tt="onMouseLeave",G="onMouseEnter",B="mouse",(e==="pointerout"||e==="pointerover")&&(St=Z0,tt="onPointerLeave",G="onPointerEnter",B="pointer"),It=Q==null?Z:bl(Q),q=Tt==null?Z:bl(Tt),Z=new St(tt,B+"leave",Q,l,J),Z.target=It,Z.relatedTarget=q,tt=null,Qi(J)===V&&(St=new St(G,B+"enter",Tt,l,J),St.target=q,St.relatedTarget=It,tt=St),It=tt,Q&&Tt)e:{for(St=Q,G=Tt,B=0,q=St;q;q=Ra(q))B++;for(q=0,tt=G;tt;tt=Ra(tt))q++;for(;0<B-q;)St=Ra(St),B--;for(;0<q-B;)G=Ra(G),q--;for(;B--;){if(St===G||G!==null&&St===G.alternate)break e;St=Ra(St),G=Ra(G)}St=null}else St=null;Q!==null&&$y(et,Z,Q,St,!1),Tt!==null&&It!==null&&$y(et,It,Tt,St,!0)}}t:{if(Z=V?bl(V):window,Q=Z.nodeName&&Z.nodeName.toLowerCase(),Q==="select"||Q==="input"&&Z.type==="file")var ht=ng;else if(tg(Z))if(rg)ht=SA;else{ht=bA;var Et=vA}else Q=Z.nodeName,!Q||Q.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?V&&Fc(V.elementType)&&(ht=ng):ht=xA;if(ht&&(ht=ht(e,V))){eg(et,ht,l,J);break t}Et&&Et(e,Z,V),e==="focusout"&&V&&Z.type==="number"&&V.memoizedProps.value!=null&&Kc(Z,"number",Z.value)}switch(Et=V?bl(V):window,e){case"focusin":(tg(Et)||Et.contentEditable==="true")&&(aa=Et,df=V,Ol=null);break;case"focusout":Ol=df=aa=null;break;case"mousedown":hf=!0;break;case"contextmenu":case"mouseup":case"dragend":hf=!1,fg(et,l,J);break;case"selectionchange":if(TA)break;case"keydown":case"keyup":fg(et,l,J)}var pt;if(sf)t:{switch(e){case"compositionstart":var At="onCompositionStart";break t;case"compositionend":At="onCompositionEnd";break t;case"compositionupdate":At="onCompositionUpdate";break t}At=void 0}else ia?W0(e,l)&&(At="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(At="onCompositionStart");At&&(Q0&&l.locale!=="ko"&&(ia||At!=="onCompositionStart"?At==="onCompositionEnd"&&ia&&(pt=I0()):(Lr=J,nf="value"in Lr?Lr.value:Lr.textContent,ia=!0)),Et=eu(V,At),0<Et.length&&(At=new P0(At,e,null,l,J),et.push({event:At,listeners:Et}),pt?At.data=pt:(pt=J0(l),pt!==null&&(At.data=pt)))),(pt=hA?mA(e,l):gA(e,l))&&(At=eu(V,"onBeforeInput"),0<At.length&&(Et=new P0("onBeforeInput","beforeinput",null,l,J),et.push({event:Et,listeners:At}),Et.data=pt)),aT(et,e,V,l,J)}Uy(et,r)})}function no(e,r,l){return{instance:e,listener:r,currentTarget:l}}function eu(e,r){for(var l=r+"Capture",s=[];e!==null;){var d=e,g=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||g===null||(d=xl(e,l),d!=null&&s.unshift(no(e,d,g)),d=xl(e,r),d!=null&&s.push(no(e,d,g))),e.tag===3)return s;e=e.return}return[]}function Ra(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function $y(e,r,l,s,d){for(var g=r._reactName,A=[];l!==null&&l!==s;){var w=l,U=w.alternate,V=w.stateNode;if(w=w.tag,U!==null&&U===s)break;w!==5&&w!==26&&w!==27||V===null||(U=V,d?(V=xl(l,g),V!=null&&A.unshift(no(l,V,U))):d||(V=xl(l,g),V!=null&&A.push(no(l,V,U)))),l=l.return}A.length!==0&&e.push({event:r,listeners:A})}var uT=/\r\n?/g,cT=/\u0000|\uFFFD/g;function By(e){return(typeof e=="string"?e:""+e).replace(uT,` 49 + `).replace(cT,"")}function Ly(e,r){return r=By(r),By(e)===r}function nu(){}function qt(e,r,l,s,d,g){switch(l){case"children":typeof s=="string"?r==="body"||r==="textarea"&&s===""||ea(e,s):(typeof s=="number"||typeof s=="bigint")&&r!=="body"&&ea(e,""+s);break;case"className":os(e,"class",s);break;case"tabIndex":os(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":os(e,l,s);break;case"style":Y0(e,s,g);break;case"data":if(r!=="object"){os(e,"data",s);break}case"src":case"href":if(s===""&&(r!=="a"||l!=="href")){e.removeAttribute(l);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=cs(""+s),e.setAttribute(l,s);break;case"action":case"formAction":if(typeof s=="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 g=="function"&&(l==="formAction"?(r!=="input"&&qt(e,r,"name",d.name,d,null),qt(e,r,"formEncType",d.formEncType,d,null),qt(e,r,"formMethod",d.formMethod,d,null),qt(e,r,"formTarget",d.formTarget,d,null)):(qt(e,r,"encType",d.encType,d,null),qt(e,r,"method",d.method,d,null),qt(e,r,"target",d.target,d,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=cs(""+s),e.setAttribute(l,s);break;case"onClick":s!=null&&(e.onclick=nu);break;case"onScroll":s!=null&&Rt("scroll",e);break;case"onScrollEnd":s!=null&&Rt("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(a(61));if(l=s.__html,l!=null){if(d.children!=null)throw Error(a(60));e.innerHTML=l}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}l=cs(""+s),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":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""+s):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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":s===!0?e.setAttribute(l,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,s):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(l,s):e.removeAttribute(l);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(l):e.setAttribute(l,s);break;case"popover":Rt("beforetoggle",e),Rt("toggle",e),ls(e,"popover",s);break;case"xlinkActuate":sr(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":sr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":sr(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":sr(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":sr(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":sr(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":sr(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":sr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":sr(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ls(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=H2.get(l)||l,ls(e,l,s))}}function jd(e,r,l,s,d,g){switch(l){case"style":Y0(e,s,g);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(a(61));if(l=s.__html,l!=null){if(d.children!=null)throw Error(a(60));e.innerHTML=l}}break;case"children":typeof s=="string"?ea(e,s):(typeof s=="number"||typeof s=="bigint")&&ea(e,""+s);break;case"onScroll":s!=null&&Rt("scroll",e);break;case"onScrollEnd":s!=null&&Rt("scrollend",e);break;case"onClick":s!=null&&(e.onclick=nu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_0.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(d=l.endsWith("Capture"),r=l.slice(2,d?l.length-7:void 0),g=e[Pe]||null,g=g!=null?g[l]:null,typeof g=="function"&&e.removeEventListener(r,g,d),typeof s=="function")){typeof g!="function"&&g!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(r,s,d);break t}l in e?e[l]=s:s===!0?e.setAttribute(l,""):ls(e,l,s)}}}function De(e,r,l){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Rt("error",e),Rt("load",e);var s=!1,d=!1,g;for(g in l)if(l.hasOwnProperty(g)){var A=l[g];if(A!=null)switch(g){case"src":s=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:qt(e,r,g,A,l,null)}}d&&qt(e,r,"srcSet",l.srcSet,l,null),s&&qt(e,r,"src",l.src,l,null);return;case"input":Rt("invalid",e);var w=g=A=d=null,U=null,V=null;for(s in l)if(l.hasOwnProperty(s)){var J=l[s];if(J!=null)switch(s){case"name":d=J;break;case"type":A=J;break;case"checked":U=J;break;case"defaultChecked":V=J;break;case"value":g=J;break;case"defaultValue":w=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(a(137,r));break;default:qt(e,r,s,J,l,null)}}$0(e,g,w,U,V,A,d,!1),ss(e);return;case"select":Rt("invalid",e),s=A=g=null;for(d in l)if(l.hasOwnProperty(d)&&(w=l[d],w!=null))switch(d){case"value":g=w;break;case"defaultValue":A=w;break;case"multiple":s=w;default:qt(e,r,d,w,l,null)}r=g,l=A,e.multiple=!!s,r!=null?ta(e,!!s,r,!1):l!=null&&ta(e,!!s,l,!0);return;case"textarea":Rt("invalid",e),g=d=s=null;for(A in l)if(l.hasOwnProperty(A)&&(w=l[A],w!=null))switch(A){case"value":s=w;break;case"defaultValue":d=w;break;case"children":g=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(a(91));break;default:qt(e,r,A,w,l,null)}L0(e,s,d,g),ss(e);return;case"option":for(U in l)if(l.hasOwnProperty(U)&&(s=l[U],s!=null))switch(U){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:qt(e,r,U,s,l,null)}return;case"dialog":Rt("beforetoggle",e),Rt("toggle",e),Rt("cancel",e),Rt("close",e);break;case"iframe":case"object":Rt("load",e);break;case"video":case"audio":for(s=0;s<eo.length;s++)Rt(eo[s],e);break;case"image":Rt("error",e),Rt("load",e);break;case"details":Rt("toggle",e);break;case"embed":case"source":case"link":Rt("error",e),Rt("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(V in l)if(l.hasOwnProperty(V)&&(s=l[V],s!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:qt(e,r,V,s,l,null)}return;default:if(Fc(r)){for(J in l)l.hasOwnProperty(J)&&(s=l[J],s!==void 0&&jd(e,r,J,s,l,void 0));return}}for(w in l)l.hasOwnProperty(w)&&(s=l[w],s!=null&&qt(e,r,w,s,l,null))}function fT(e,r,l,s){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,g=null,A=null,w=null,U=null,V=null,J=null;for(Q in l){var et=l[Q];if(l.hasOwnProperty(Q)&&et!=null)switch(Q){case"checked":break;case"value":break;case"defaultValue":U=et;default:s.hasOwnProperty(Q)||qt(e,r,Q,null,s,et)}}for(var Z in s){var Q=s[Z];if(et=l[Z],s.hasOwnProperty(Z)&&(Q!=null||et!=null))switch(Z){case"type":g=Q;break;case"name":d=Q;break;case"checked":V=Q;break;case"defaultChecked":J=Q;break;case"value":A=Q;break;case"defaultValue":w=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(a(137,r));break;default:Q!==et&&qt(e,r,Z,Q,s,et)}}Qc(e,A,w,U,V,J,g,d);return;case"select":Q=A=w=Z=null;for(g in l)if(U=l[g],l.hasOwnProperty(g)&&U!=null)switch(g){case"value":break;case"multiple":Q=U;default:s.hasOwnProperty(g)||qt(e,r,g,null,s,U)}for(d in s)if(g=s[d],U=l[d],s.hasOwnProperty(d)&&(g!=null||U!=null))switch(d){case"value":Z=g;break;case"defaultValue":w=g;break;case"multiple":A=g;default:g!==U&&qt(e,r,d,g,s,U)}r=w,l=A,s=Q,Z!=null?ta(e,!!l,Z,!1):!!s!=!!l&&(r!=null?ta(e,!!l,r,!0):ta(e,!!l,l?[]:"",!1));return;case"textarea":Q=Z=null;for(w in l)if(d=l[w],l.hasOwnProperty(w)&&d!=null&&!s.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:qt(e,r,w,null,s,d)}for(A in s)if(d=s[A],g=l[A],s.hasOwnProperty(A)&&(d!=null||g!=null))switch(A){case"value":Z=d;break;case"defaultValue":Q=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(a(91));break;default:d!==g&&qt(e,r,A,d,s,g)}B0(e,Z,Q);return;case"option":for(var Tt in l)if(Z=l[Tt],l.hasOwnProperty(Tt)&&Z!=null&&!s.hasOwnProperty(Tt))switch(Tt){case"selected":e.selected=!1;break;default:qt(e,r,Tt,null,s,Z)}for(U in s)if(Z=s[U],Q=l[U],s.hasOwnProperty(U)&&Z!==Q&&(Z!=null||Q!=null))switch(U){case"selected":e.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:qt(e,r,U,Z,s,Q)}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 St in l)Z=l[St],l.hasOwnProperty(St)&&Z!=null&&!s.hasOwnProperty(St)&&qt(e,r,St,null,s,Z);for(V in s)if(Z=s[V],Q=l[V],s.hasOwnProperty(V)&&Z!==Q&&(Z!=null||Q!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(a(137,r));break;default:qt(e,r,V,Z,s,Q)}return;default:if(Fc(r)){for(var It in l)Z=l[It],l.hasOwnProperty(It)&&Z!==void 0&&!s.hasOwnProperty(It)&&jd(e,r,It,void 0,s,Z);for(J in s)Z=s[J],Q=l[J],!s.hasOwnProperty(J)||Z===Q||Z===void 0&&Q===void 0||jd(e,r,J,Z,s,Q);return}}for(var G in l)Z=l[G],l.hasOwnProperty(G)&&Z!=null&&!s.hasOwnProperty(G)&&qt(e,r,G,null,s,Z);for(et in s)Z=s[et],Q=l[et],!s.hasOwnProperty(et)||Z===Q||Z==null&&Q==null||qt(e,r,et,Z,s,Q)}var $d=null,Bd=null;function ru(e){return e.nodeType===9?e:e.ownerDocument}function Hy(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 Yy(e,r){if(e===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&r==="foreignObject"?0:e}function Ld(e,r){return e==="textarea"||e==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Hd=null;function dT(){var e=window.event;return e&&e.type==="popstate"?e===Hd?!1:(Hd=e,!0):(Hd=null,!1)}var Gy=typeof setTimeout=="function"?setTimeout:void 0,hT=typeof clearTimeout=="function"?clearTimeout:void 0,qy=typeof Promise=="function"?Promise:void 0,mT=typeof queueMicrotask=="function"?queueMicrotask:typeof qy<"u"?function(e){return qy.resolve(null).then(e).catch(gT)}:Gy;function gT(e){setTimeout(function(){throw e})}function ei(e){return e==="head"}function Iy(e,r){var l=r,s=0,d=0;do{var g=l.nextSibling;if(e.removeChild(l),g&&g.nodeType===8)if(l=g.data,l==="/$"){if(0<s&&8>s){l=s;var A=e.ownerDocument;if(l&1&&ro(A.documentElement),l&2&&ro(A.body),l&4)for(l=A.head,ro(l),A=l.firstChild;A;){var w=A.nextSibling,U=A.nodeName;A[vl]||U==="SCRIPT"||U==="STYLE"||U==="LINK"&&A.rel.toLowerCase()==="stylesheet"||l.removeChild(A),A=w}}if(d===0){e.removeChild(g),fo(r);return}d--}else l==="$"||l==="$?"||l==="$!"?d++:s=l.charCodeAt(0)-48;else s=0;l=g}while(l);fo(r)}function Yd(e){var r=e.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var l=r;switch(r=r.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Yd(l),Vc(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function pT(e,r,l,s){for(;e.nodeType===1;){var d=l;if(e.nodeName.toLowerCase()!==r.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[vl])switch(r){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(g=e.getAttribute("rel"),g==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(g!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(g=e.getAttribute("src"),(g!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&g&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(r==="input"&&e.type==="hidden"){var g=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===g)return e}else return e;if(e=Bn(e.nextSibling),e===null)break}return null}function yT(e,r,l){if(r==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Bn(e.nextSibling),e===null))return null;return e}function Gd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function vT(e,r){var l=e.ownerDocument;if(e.data!=="$?"||l.readyState==="complete")r();else{var s=function(){r(),l.removeEventListener("DOMContentLoaded",s)};l.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Bn(e){for(;e!=null;e=e.nextSibling){var r=e.nodeType;if(r===1||r===3)break;if(r===8){if(r=e.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return e}var qd=null;function Vy(e){e=e.previousSibling;for(var r=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(r===0)return e;r--}else l==="/$"&&r++}e=e.previousSibling}return null}function Xy(e,r,l){switch(r=ru(l),e){case"html":if(e=r.documentElement,!e)throw Error(a(452));return e;case"head":if(e=r.head,!e)throw Error(a(453));return e;case"body":if(e=r.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function ro(e){for(var r=e.attributes;r.length;)e.removeAttributeNode(r[0]);Vc(e)}var Cn=new Map,Py=new Set;function iu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ar=P.d;P.d={f:bT,r:xT,D:ST,C:AT,L:TT,m:CT,X:MT,S:wT,M:ET};function bT(){var e=Ar.f(),r=Qs();return e||r}function xT(e){var r=Ki(e);r!==null&&r.tag===5&&r.type==="form"?hp(r):Ar.r(e)}var _a=typeof document>"u"?null:document;function Zy(e,r,l){var s=_a;if(s&&typeof r=="string"&&r){var d=yn(r);d='link[rel="'+e+'"][href="'+d+'"]',typeof l=="string"&&(d+='[crossorigin="'+l+'"]'),Py.has(d)||(Py.add(d),e={rel:e,crossOrigin:l,href:r},s.querySelector(d)===null&&(r=s.createElement("link"),De(r,"link",e),Ce(r),s.head.appendChild(r)))}}function ST(e){Ar.D(e),Zy("dns-prefetch",e,null)}function AT(e,r){Ar.C(e,r),Zy("preconnect",e,r)}function TT(e,r,l){Ar.L(e,r,l);var s=_a;if(s&&e&&r){var d='link[rel="preload"][as="'+yn(r)+'"]';r==="image"&&l&&l.imageSrcSet?(d+='[imagesrcset="'+yn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(d+='[imagesizes="'+yn(l.imageSizes)+'"]')):d+='[href="'+yn(e)+'"]';var g=d;switch(r){case"style":g=ka(e);break;case"script":g=Da(e)}Cn.has(g)||(e=p({rel:"preload",href:r==="image"&&l&&l.imageSrcSet?void 0:e,as:r},l),Cn.set(g,e),s.querySelector(d)!==null||r==="style"&&s.querySelector(io(g))||r==="script"&&s.querySelector(ao(g))||(r=s.createElement("link"),De(r,"link",e),Ce(r),s.head.appendChild(r)))}}function CT(e,r){Ar.m(e,r);var l=_a;if(l&&e){var s=r&&typeof r.as=="string"?r.as:"script",d='link[rel="modulepreload"][as="'+yn(s)+'"][href="'+yn(e)+'"]',g=d;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Da(e)}if(!Cn.has(g)&&(e=p({rel:"modulepreload",href:e},r),Cn.set(g,e),l.querySelector(d)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ao(g)))return}s=l.createElement("link"),De(s,"link",e),Ce(s),l.head.appendChild(s)}}}function wT(e,r,l){Ar.S(e,r,l);var s=_a;if(s&&e){var d=Fi(s).hoistableStyles,g=ka(e);r=r||"default";var A=d.get(g);if(!A){var w={loading:0,preload:null};if(A=s.querySelector(io(g)))w.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":r},l),(l=Cn.get(g))&&Id(e,l);var U=A=s.createElement("link");Ce(U),De(U,"link",e),U._p=new Promise(function(V,J){U.onload=V,U.onerror=J}),U.addEventListener("load",function(){w.loading|=1}),U.addEventListener("error",function(){w.loading|=2}),w.loading|=4,au(A,r,s)}A={type:"stylesheet",instance:A,count:1,state:w},d.set(g,A)}}}function MT(e,r){Ar.X(e,r);var l=_a;if(l&&e){var s=Fi(l).hoistableScripts,d=Da(e),g=s.get(d);g||(g=l.querySelector(ao(d)),g||(e=p({src:e,async:!0},r),(r=Cn.get(d))&&Vd(e,r),g=l.createElement("script"),Ce(g),De(g,"link",e),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(d,g))}}function ET(e,r){Ar.M(e,r);var l=_a;if(l&&e){var s=Fi(l).hoistableScripts,d=Da(e),g=s.get(d);g||(g=l.querySelector(ao(d)),g||(e=p({src:e,async:!0,type:"module"},r),(r=Cn.get(d))&&Vd(e,r),g=l.createElement("script"),Ce(g),De(g,"link",e),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(d,g))}}function Qy(e,r,l,s){var d=(d=dt.current)?iu(d):null;if(!d)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(r=ka(l.href),l=Fi(d).hoistableStyles,s=l.get(r),s||(s={type:"style",instance:null,count:0,state:null},l.set(r,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ka(l.href);var g=Fi(d).hoistableStyles,A=g.get(e);if(A||(d=d.ownerDocument||d,A={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(e,A),(g=d.querySelector(io(e)))&&!g._p&&(A.instance=g,A.state.loading=5),Cn.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},Cn.set(e,l),g||OT(d,e,l,A.state))),r&&s===null)throw Error(a(528,""));return A}if(r&&s!==null)throw Error(a(529,""));return null;case"script":return r=l.async,l=l.src,typeof l=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Da(l),l=Fi(d).hoistableScripts,s=l.get(r),s||(s={type:"script",instance:null,count:0,state:null},l.set(r,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function ka(e){return'href="'+yn(e)+'"'}function io(e){return'link[rel="stylesheet"]['+e+"]"}function Ky(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function OT(e,r,l,s){e.querySelector('link[rel="preload"][as="style"]['+r+"]")?s.loading=1:(r=e.createElement("link"),s.preload=r,r.addEventListener("load",function(){return s.loading|=1}),r.addEventListener("error",function(){return s.loading|=2}),De(r,"link",l),Ce(r),e.head.appendChild(r))}function Da(e){return'[src="'+yn(e)+'"]'}function ao(e){return"script[async]"+e}function Fy(e,r,l){if(r.count++,r.instance===null)switch(r.type){case"style":var s=e.querySelector('style[data-href~="'+yn(l.href)+'"]');if(s)return r.instance=s,Ce(s),s;var d=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Ce(s),De(s,"style",d),au(s,l.precedence,e),r.instance=s;case"stylesheet":d=ka(l.href);var g=e.querySelector(io(d));if(g)return r.state.loading|=4,r.instance=g,Ce(g),g;s=Ky(l),(d=Cn.get(d))&&Id(s,d),g=(e.ownerDocument||e).createElement("link"),Ce(g);var A=g;return A._p=new Promise(function(w,U){A.onload=w,A.onerror=U}),De(g,"link",s),r.state.loading|=4,au(g,l.precedence,e),r.instance=g;case"script":return g=Da(l.src),(d=e.querySelector(ao(g)))?(r.instance=d,Ce(d),d):(s=l,(d=Cn.get(g))&&(s=p({},l),Vd(s,d)),e=e.ownerDocument||e,d=e.createElement("script"),Ce(d),De(d,"link",s),e.head.appendChild(d),r.instance=d);case"void":return null;default:throw Error(a(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(s=r.instance,r.state.loading|=4,au(s,l.precedence,e));return r.instance}function au(e,r,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=s.length?s[s.length-1]:null,g=d,A=0;A<s.length;A++){var w=s[A];if(w.dataset.precedence===r)g=w;else if(g!==d)break}g?g.parentNode.insertBefore(e,g.nextSibling):(r=l.nodeType===9?l.head:l,r.insertBefore(e,r.firstChild))}function Id(e,r){e.crossOrigin==null&&(e.crossOrigin=r.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=r.referrerPolicy),e.title==null&&(e.title=r.title)}function Vd(e,r){e.crossOrigin==null&&(e.crossOrigin=r.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=r.referrerPolicy),e.integrity==null&&(e.integrity=r.integrity)}var lu=null;function Wy(e,r,l){if(lu===null){var s=new Map,d=lu=new Map;d.set(l,s)}else d=lu,s=d.get(l),s||(s=new Map,d.set(l,s));if(s.has(e))return s;for(s.set(e,null),l=l.getElementsByTagName(e),d=0;d<l.length;d++){var g=l[d];if(!(g[vl]||g[je]||e==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var A=g.getAttribute(r)||"";A=e+A;var w=s.get(A);w?w.push(g):s.set(A,[g])}}return s}function Jy(e,r,l){e=e.ownerDocument||e,e.head.insertBefore(l,r==="title"?e.querySelector("head > title"):null)}function RT(e,r,l){if(l===1||r.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return e=r.disabled,typeof r.precedence=="string"&&e==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function t1(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var lo=null;function _T(){}function kT(e,r,l){if(lo===null)throw Error(a(475));var s=lo;if(r.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var d=ka(l.href),g=e.querySelector(io(d));if(g){e=g._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(s.count++,s=ou.bind(s),e.then(s,s)),r.state.loading|=4,r.instance=g,Ce(g);return}g=e.ownerDocument||e,l=Ky(l),(d=Cn.get(d))&&Id(l,d),g=g.createElement("link"),Ce(g);var A=g;A._p=new Promise(function(w,U){A.onload=w,A.onerror=U}),De(g,"link",l),r.instance=g}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(r,e),(e=r.state.preload)&&(r.state.loading&3)===0&&(s.count++,r=ou.bind(s),e.addEventListener("load",r),e.addEventListener("error",r))}}function DT(){if(lo===null)throw Error(a(475));var e=lo;return e.stylesheets&&e.count===0&&Xd(e,e.stylesheets),0<e.count?function(r){var l=setTimeout(function(){if(e.stylesheets&&Xd(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(l)}}:null}function ou(){if(this.count--,this.count===0){if(this.stylesheets)Xd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var su=null;function Xd(e,r){e.stylesheets=null,e.unsuspend!==null&&(e.count++,su=new Map,r.forEach(zT,e),su=null,ou.call(e))}function zT(e,r){if(!(r.state.loading&4)){var l=su.get(e);if(l)var s=l.get(null);else{l=new Map,su.set(e,l);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<d.length;g++){var A=d[g];(A.nodeName==="LINK"||A.getAttribute("media")!=="not all")&&(l.set(A.dataset.precedence,A),s=A)}s&&l.set(null,s)}d=r.instance,A=d.getAttribute("data-precedence"),g=l.get(A)||s,g===s&&l.set(null,d),l.set(A,d),this.count++,s=ou.bind(this),d.addEventListener("load",s),d.addEventListener("error",s),g?g.parentNode.insertBefore(d,g.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),r.state.loading|=4}}var oo={$$typeof:O,Provider:null,Consumer:null,_currentValue:nt,_currentValue2:nt,_threadCount:0};function NT(e,r,l,s,d,g,A,w){this.tag=1,this.containerInfo=e,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=Yc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yc(0),this.hiddenUpdates=Yc(null),this.identifierPrefix=s,this.onUncaughtError=d,this.onCaughtError=g,this.onRecoverableError=A,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function e1(e,r,l,s,d,g,A,w,U,V,J,et){return e=new NT(e,r,l,A,w,U,V,et),r=1,g===!0&&(r|=24),g=rn(3,null,null,r),e.current=g,g.stateNode=e,r=Ef(),r.refCount++,e.pooledCache=r,r.refCount++,g.memoizedState={element:s,isDehydrated:l,cache:r},kf(g),e}function n1(e){return e?(e=ua,e):ua}function r1(e,r,l,s,d,g){d=n1(d),s.context===null?s.context=d:s.pendingContext=d,s=Gr(r),s.payload={element:l},g=g===void 0?null:g,g!==null&&(s.callback=g),l=qr(e,s,r),l!==null&&(un(l,e,r),$l(l,e,r))}function i1(e,r){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<r?l:r}}function Pd(e,r){i1(e,r),(e=e.alternate)&&i1(e,r)}function a1(e){if(e.tag===13){var r=sa(e,67108864);r!==null&&un(r,e,67108864),Pd(e,67108864)}}var uu=!0;function UT(e,r,l,s){var d=j.T;j.T=null;var g=P.p;try{P.p=2,Zd(e,r,l,s)}finally{P.p=g,j.T=d}}function jT(e,r,l,s){var d=j.T;j.T=null;var g=P.p;try{P.p=8,Zd(e,r,l,s)}finally{P.p=g,j.T=d}}function Zd(e,r,l,s){if(uu){var d=Qd(s);if(d===null)Ud(e,r,s,cu,l),o1(e,s);else if(BT(d,e,r,l,s))s.stopPropagation();else if(o1(e,s),r&4&&-1<$T.indexOf(e)){for(;d!==null;){var g=Ki(d);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var A=or(g.pendingLanes);if(A!==0){var w=g;for(w.pendingLanes|=2,w.entangledLanes|=2;A;){var U=1<<31-Te(A);w.entanglements[1]|=U,A&=~U}Qn(g),(Lt&6)===0&&(Ps=Yt()+500,to(0))}}break;case 13:w=sa(g,2),w!==null&&un(w,g,2),Qs(),Pd(g,2)}if(g=Qd(s),g===null&&Ud(e,r,s,cu,l),g===d)break;d=g}d!==null&&s.stopPropagation()}else Ud(e,r,s,null,l)}}function Qd(e){return e=Jc(e),Kd(e)}var cu=null;function Kd(e){if(cu=null,e=Qi(e),e!==null){var r=u(e);if(r===null)e=null;else{var l=r.tag;if(l===13){if(e=c(r),e!==null)return e;e=null}else if(l===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;e=null}else r!==e&&(e=null)}}return cu=e,null}function l1(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(Ae()){case ue:return 2;case me:return 8;case Kt:case Xe:return 32;case mn:return 268435456;default:return 32}default:return 32}}var Fd=!1,ni=null,ri=null,ii=null,so=new Map,uo=new Map,ai=[],$T="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 o1(e,r){switch(e){case"focusin":case"focusout":ni=null;break;case"dragenter":case"dragleave":ri=null;break;case"mouseover":case"mouseout":ii=null;break;case"pointerover":case"pointerout":so.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":uo.delete(r.pointerId)}}function co(e,r,l,s,d,g){return e===null||e.nativeEvent!==g?(e={blockedOn:r,domEventName:l,eventSystemFlags:s,nativeEvent:g,targetContainers:[d]},r!==null&&(r=Ki(r),r!==null&&a1(r)),e):(e.eventSystemFlags|=s,r=e.targetContainers,d!==null&&r.indexOf(d)===-1&&r.push(d),e)}function BT(e,r,l,s,d){switch(r){case"focusin":return ni=co(ni,e,r,l,s,d),!0;case"dragenter":return ri=co(ri,e,r,l,s,d),!0;case"mouseover":return ii=co(ii,e,r,l,s,d),!0;case"pointerover":var g=d.pointerId;return so.set(g,co(so.get(g)||null,e,r,l,s,d)),!0;case"gotpointercapture":return g=d.pointerId,uo.set(g,co(uo.get(g)||null,e,r,l,s,d)),!0}return!1}function s1(e){var r=Qi(e.target);if(r!==null){var l=u(r);if(l!==null){if(r=l.tag,r===13){if(r=c(l),r!==null){e.blockedOn=r,k2(e.priority,function(){if(l.tag===13){var s=sn();s=Gc(s);var d=sa(l,s);d!==null&&un(d,l,s),Pd(l,s)}});return}}else if(r===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fu(e){if(e.blockedOn!==null)return!1;for(var r=e.targetContainers;0<r.length;){var l=Qd(e.nativeEvent);if(l===null){l=e.nativeEvent;var s=new l.constructor(l.type,l);Wc=s,l.target.dispatchEvent(s),Wc=null}else return r=Ki(l),r!==null&&a1(r),e.blockedOn=l,!1;r.shift()}return!0}function u1(e,r,l){fu(e)&&l.delete(r)}function LT(){Fd=!1,ni!==null&&fu(ni)&&(ni=null),ri!==null&&fu(ri)&&(ri=null),ii!==null&&fu(ii)&&(ii=null),so.forEach(u1),uo.forEach(u1)}function du(e,r){e.blockedOn===r&&(e.blockedOn=null,Fd||(Fd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,LT)))}var hu=null;function c1(e){hu!==e&&(hu=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){hu===e&&(hu=null);for(var r=0;r<e.length;r+=3){var l=e[r],s=e[r+1],d=e[r+2];if(typeof s!="function"){if(Kd(s||l)===null)continue;break}var g=Ki(l);g!==null&&(e.splice(r,3),r-=3,Kf(g,{pending:!0,data:d,method:l.method,action:s},s,d))}}))}function fo(e){function r(U){return du(U,e)}ni!==null&&du(ni,e),ri!==null&&du(ri,e),ii!==null&&du(ii,e),so.forEach(r),uo.forEach(r);for(var l=0;l<ai.length;l++){var s=ai[l];s.blockedOn===e&&(s.blockedOn=null)}for(;0<ai.length&&(l=ai[0],l.blockedOn===null);)s1(l),l.blockedOn===null&&ai.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(s=0;s<l.length;s+=3){var d=l[s],g=l[s+1],A=d[Pe]||null;if(typeof g=="function")A||c1(l);else if(A){var w=null;if(g&&g.hasAttribute("formAction")){if(d=g,A=g[Pe]||null)w=A.formAction;else if(Kd(d)!==null)continue}else w=A.action;typeof w=="function"?l[s+1]=w:(l.splice(s,3),s-=3),c1(l)}}}function Wd(e){this._internalRoot=e}mu.prototype.render=Wd.prototype.render=function(e){var r=this._internalRoot;if(r===null)throw Error(a(409));var l=r.current,s=sn();r1(l,s,e,r,null,null)},mu.prototype.unmount=Wd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var r=e.containerInfo;r1(e.current,2,null,e,null,null),Qs(),r[Zi]=null}};function mu(e){this._internalRoot=e}mu.prototype.unstable_scheduleHydration=function(e){if(e){var r=E0();e={blockedOn:null,target:e,priority:r};for(var l=0;l<ai.length&&r!==0&&r<ai[l].priority;l++);ai.splice(l,0,e),l===0&&s1(e)}};var f1=n.version;if(f1!=="19.1.0")throw Error(a(527,f1,"19.1.0"));P.findDOMNode=function(e){var r=e._reactInternals;if(r===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=m(r),e=e!==null?h(e):null,e=e===null?null:e.stateNode,e};var HT={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gu.isDisabled&&gu.supportsFiber)try{Ge=gu.inject(HT),te=gu}catch{}}return mo.createRoot=function(e,r){if(!o(e))throw Error(a(299));var l=!1,s="",d=Ep,g=Op,A=Rp,w=null;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(g=r.onCaughtError),r.onRecoverableError!==void 0&&(A=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(w=r.unstable_transitionCallbacks)),r=e1(e,1,!1,null,null,l,s,d,g,A,w,null),e[Zi]=r.current,Nd(e),new Wd(r)},mo.hydrateRoot=function(e,r,l){if(!o(e))throw Error(a(299));var s=!1,d="",g=Ep,A=Op,w=Rp,U=null,V=null;return l!=null&&(l.unstable_strictMode===!0&&(s=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(g=l.onUncaughtError),l.onCaughtError!==void 0&&(A=l.onCaughtError),l.onRecoverableError!==void 0&&(w=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(U=l.unstable_transitionCallbacks),l.formState!==void 0&&(V=l.formState)),r=e1(e,1,!0,r,l??null,s,d,g,A,w,U,V),r.context=n1(null),l=r.current,s=sn(),s=Gc(s),d=Gr(s),d.callback=null,qr(l,d,s),l=s,r.current.lanes=l,yl(r,l),Qn(r),e[Zi]=r.current,Nd(e),new mu(r)},mo.version="19.1.0",mo}var S1;function WT(){if(S1)return th.exports;S1=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(n){console.error(n)}}return t(),th.exports=FT(),th.exports}var JT=WT();function ji(t,...n){const i=new URL(`https://mui.com/production-error/?code=${t}`);return n.forEach(a=>i.searchParams.append("args[]",a)),`Minified MUI error #${t}; visit ${i} for the full message.`}const Er="$$material";function I(){return I=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)({}).hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},I.apply(null,arguments)}var Y=ic();const tC=jb(Y),Bh=IT({__proto__:null,default:tC},[Y]);function eC(t){if(t.sheet)return t.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===t)return document.styleSheets[n]}function nC(t){var n=document.createElement("style");return n.setAttribute("data-emotion",t.key),t.nonce!==void 0&&n.setAttribute("nonce",t.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var Bb=function(){function t(i){var a=this;this._insertTag=function(o){var u;a.tags.length===0?a.insertionPoint?u=a.insertionPoint.nextSibling:a.prepend?u=a.container.firstChild:u=a.before:u=a.tags[a.tags.length-1].nextSibling,a.container.insertBefore(o,u),a.tags.push(o)},this.isSpeedy=i.speedy===void 0?!0:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var n=t.prototype;return n.hydrate=function(a){a.forEach(this._insertTag)},n.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(nC(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var u=eC(o);try{u.insertRule(a,u.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(a));this.ctr++},n.flush=function(){this.tags.forEach(function(a){var o;return(o=a.parentNode)==null?void 0:o.removeChild(a)}),this.tags=[],this.ctr=0},t}(),He="-ms-",Uu="-moz-",Ut="-webkit-",Lb="comm",cm="rule",fm="decl",rC="@import",Hb="@keyframes",iC="@layer",aC=Math.abs,ac=String.fromCharCode,lC=Object.assign;function oC(t,n){return ze(t,0)^45?(((n<<2^ze(t,0))<<2^ze(t,1))<<2^ze(t,2))<<2^ze(t,3):0}function Yb(t){return t.trim()}function sC(t,n){return(t=n.exec(t))?t[0]:t}function jt(t,n,i){return t.replace(n,i)}function Lh(t,n){return t.indexOf(n)}function ze(t,n){return t.charCodeAt(n)|0}function ko(t,n,i){return t.slice(n,i)}function Fn(t){return t.length}function dm(t){return t.length}function pu(t,n){return n.push(t),t}function uC(t,n){return t.map(n).join("")}var lc=1,Ka=1,Gb=0,en=0,ye=0,fl="";function oc(t,n,i,a,o,u,c){return{value:t,root:n,parent:i,type:a,props:o,children:u,line:lc,column:Ka,length:c,return:""}}function go(t,n){return lC(oc("",null,null,"",null,null,0),t,{length:-t.length},n)}function cC(){return ye}function fC(){return ye=en>0?ze(fl,--en):0,Ka--,ye===10&&(Ka=1,lc--),ye}function fn(){return ye=en<Gb?ze(fl,en++):0,Ka++,ye===10&&(Ka=1,lc++),ye}function tr(){return ze(fl,en)}function Ru(){return en}function qo(t,n){return ko(fl,t,n)}function Do(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 qb(t){return lc=Ka=1,Gb=Fn(fl=t),en=0,[]}function Ib(t){return fl="",t}function _u(t){return Yb(qo(en-1,Hh(t===91?t+2:t===40?t+1:t)))}function dC(t){for(;(ye=tr())&&ye<33;)fn();return Do(t)>2||Do(ye)>3?"":" "}function hC(t,n){for(;--n&&fn()&&!(ye<48||ye>102||ye>57&&ye<65||ye>70&&ye<97););return qo(t,Ru()+(n<6&&tr()==32&&fn()==32))}function Hh(t){for(;fn();)switch(ye){case t:return en;case 34:case 39:t!==34&&t!==39&&Hh(ye);break;case 40:t===41&&Hh(t);break;case 92:fn();break}return en}function mC(t,n){for(;fn()&&t+ye!==57;)if(t+ye===84&&tr()===47)break;return"/*"+qo(n,en-1)+"*"+ac(t===47?t:fn())}function gC(t){for(;!Do(tr());)fn();return qo(t,en)}function pC(t){return Ib(ku("",null,null,null,[""],t=qb(t),0,[0],t))}function ku(t,n,i,a,o,u,c,f,m){for(var h=0,p=0,y=c,v=0,b=0,x=0,S=1,C=1,E=1,_=0,O="",k=o,M=u,R=a,D=O;C;)switch(x=_,_=fn()){case 40:if(x!=108&&ze(D,y-1)==58){Lh(D+=jt(_u(_),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:D+=_u(_);break;case 9:case 10:case 13:case 32:D+=dC(x);break;case 92:D+=hC(Ru()-1,7);continue;case 47:switch(tr()){case 42:case 47:pu(yC(mC(fn(),Ru()),n,i),m);break;default:D+="/"}break;case 123*S:f[h++]=Fn(D)*E;case 125*S:case 59:case 0:switch(_){case 0:case 125:C=0;case 59+p:E==-1&&(D=jt(D,/\f/g,"")),b>0&&Fn(D)-y&&pu(b>32?T1(D+";",a,i,y-1):T1(jt(D," ","")+";",a,i,y-2),m);break;case 59:D+=";";default:if(pu(R=A1(D,n,i,h,p,o,f,O,k=[],M=[],y),u),_===123)if(p===0)ku(D,n,R,R,k,u,y,f,M);else switch(v===99&&ze(D,3)===110?100:v){case 100:case 108:case 109:case 115:ku(t,R,R,a&&pu(A1(t,R,R,0,0,o,f,O,o,k=[],y),M),o,M,y,f,a?k:M);break;default:ku(D,R,R,R,[""],M,0,f,M)}}h=p=b=0,S=E=1,O=D="",y=c;break;case 58:y=1+Fn(D),b=x;default:if(S<1){if(_==123)--S;else if(_==125&&S++==0&&fC()==125)continue}switch(D+=ac(_),_*S){case 38:E=p>0?1:(D+="\f",-1);break;case 44:f[h++]=(Fn(D)-1)*E,E=1;break;case 64:tr()===45&&(D+=_u(fn())),v=tr(),p=y=Fn(O=D+=gC(Ru())),_++;break;case 45:x===45&&Fn(D)==2&&(S=0)}}return u}function A1(t,n,i,a,o,u,c,f,m,h,p){for(var y=o-1,v=o===0?u:[""],b=dm(v),x=0,S=0,C=0;x<a;++x)for(var E=0,_=ko(t,y+1,y=aC(S=c[x])),O=t;E<b;++E)(O=Yb(S>0?v[E]+" "+_:jt(_,/&\f/g,v[E])))&&(m[C++]=O);return oc(t,n,i,o===0?cm:f,m,h,p)}function yC(t,n,i){return oc(t,n,i,Lb,ac(cC()),ko(t,2,-2),0)}function T1(t,n,i,a){return oc(t,n,i,fm,ko(t,0,a),ko(t,a+1,-1),a)}function Xa(t,n){for(var i="",a=dm(t),o=0;o<a;o++)i+=n(t[o],o,t,n)||"";return i}function vC(t,n,i,a){switch(t.type){case iC:if(t.children.length)break;case rC:case fm:return t.return=t.return||t.value;case Lb:return"";case Hb:return t.return=t.value+"{"+Xa(t.children,a)+"}";case cm:t.value=t.props.join(",")}return Fn(i=Xa(t.children,a))?t.return=t.value+"{"+i+"}":""}function bC(t){var n=dm(t);return function(i,a,o,u){for(var c="",f=0;f<n;f++)c+=t[f](i,a,o,u)||"";return c}}function xC(t){return function(n){n.root||(n=n.return)&&t(n)}}function Vb(t){var n=Object.create(null);return function(i){return n[i]===void 0&&(n[i]=t(i)),n[i]}}var SC=function(n,i,a){for(var o=0,u=0;o=u,u=tr(),o===38&&u===12&&(i[a]=1),!Do(u);)fn();return qo(n,en)},AC=function(n,i){var a=-1,o=44;do switch(Do(o)){case 0:o===38&&tr()===12&&(i[a]=1),n[a]+=SC(en-1,i,a);break;case 2:n[a]+=_u(o);break;case 4:if(o===44){n[++a]=tr()===58?"&\f":"",i[a]=n[a].length;break}default:n[a]+=ac(o)}while(o=fn());return n},TC=function(n,i){return Ib(AC(qb(n),i))},C1=new WeakMap,CC=function(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var i=n.value,a=n.parent,o=n.column===a.column&&n.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(n.props.length===1&&i.charCodeAt(0)!==58&&!C1.get(a))&&!o){C1.set(n,!0);for(var u=[],c=TC(i,u),f=a.props,m=0,h=0;m<c.length;m++)for(var p=0;p<f.length;p++,h++)n.props[h]=u[m]?c[m].replace(/&\f/g,f[p]):f[p]+" "+c[m]}}},wC=function(n){if(n.type==="decl"){var i=n.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(n.return="",n.value="")}};function Xb(t,n){switch(oC(t,n)){case 5103:return Ut+"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 Ut+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Ut+t+Uu+t+He+t+t;case 6828:case 4268:return Ut+t+He+t+t;case 6165:return Ut+t+He+"flex-"+t+t;case 5187:return Ut+t+jt(t,/(\w+).+(:[^]+)/,Ut+"box-$1$2"+He+"flex-$1$2")+t;case 5443:return Ut+t+He+"flex-item-"+jt(t,/flex-|-self/,"")+t;case 4675:return Ut+t+He+"flex-line-pack"+jt(t,/align-content|flex-|-self/,"")+t;case 5548:return Ut+t+He+jt(t,"shrink","negative")+t;case 5292:return Ut+t+He+jt(t,"basis","preferred-size")+t;case 6060:return Ut+"box-"+jt(t,"-grow","")+Ut+t+He+jt(t,"grow","positive")+t;case 4554:return Ut+jt(t,/([^-])(transform)/g,"$1"+Ut+"$2")+t;case 6187:return jt(jt(jt(t,/(zoom-|grab)/,Ut+"$1"),/(image-set)/,Ut+"$1"),t,"")+t;case 5495:case 3959:return jt(t,/(image-set\([^]*)/,Ut+"$1$`$1");case 4968:return jt(jt(t,/(.+:)(flex-)?(.*)/,Ut+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ut+t+t;case 4095:case 3583:case 4068:case 2532:return jt(t,/(.+)-inline(.+)/,Ut+"$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(Fn(t)-1-n>6)switch(ze(t,n+1)){case 109:if(ze(t,n+4)!==45)break;case 102:return jt(t,/(.+:)(.+)-([^]+)/,"$1"+Ut+"$2-$3$1"+Uu+(ze(t,n+3)==108?"$3":"$2-$3"))+t;case 115:return~Lh(t,"stretch")?Xb(jt(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(ze(t,n+1)!==115)break;case 6444:switch(ze(t,Fn(t)-3-(~Lh(t,"!important")&&10))){case 107:return jt(t,":",":"+Ut)+t;case 101:return jt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ut+(ze(t,14)===45?"inline-":"")+"box$3$1"+Ut+"$2$3$1"+He+"$2box$3")+t}break;case 5936:switch(ze(t,n+11)){case 114:return Ut+t+He+jt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ut+t+He+jt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ut+t+He+jt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ut+t+He+t+t}return t}var MC=function(n,i,a,o){if(n.length>-1&&!n.return)switch(n.type){case fm:n.return=Xb(n.value,n.length);break;case Hb:return Xa([go(n,{value:jt(n.value,"@","@"+Ut)})],o);case cm:if(n.length)return uC(n.props,function(u){switch(sC(u,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xa([go(n,{props:[jt(u,/:(read-\w+)/,":"+Uu+"$1")]})],o);case"::placeholder":return Xa([go(n,{props:[jt(u,/:(plac\w+)/,":"+Ut+"input-$1")]}),go(n,{props:[jt(u,/:(plac\w+)/,":"+Uu+"$1")]}),go(n,{props:[jt(u,/:(plac\w+)/,He+"input-$1")]})],o)}return""})}},EC=[MC],Pb=function(n){var i=n.key;if(i==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(S){var C=S.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=n.stylisPlugins||EC,u={},c,f=[];c=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(S){for(var C=S.getAttribute("data-emotion").split(" "),E=1;E<C.length;E++)u[C[E]]=!0;f.push(S)});var m,h=[CC,wC];{var p,y=[vC,xC(function(S){p.insert(S)})],v=bC(h.concat(o,y)),b=function(C){return Xa(pC(C),v)};m=function(C,E,_,O){p=_,b(C?C+"{"+E.styles+"}":E.styles),O&&(x.inserted[E.name]=!0)}}var x={key:i,sheet:new Bb({key:i,container:c,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:u,registered:{},insert:m};return x.sheet.hydrate(f),x},ah={exports:{}},$t={};/** @license React v16.13.1 50 50 * react-is.production.min.js 51 51 * 52 52 * Copyright (c) Facebook, Inc. and its affiliates. 53 53 * 54 54 * This source code is licensed under the MIT license found in the 55 55 * LICENSE file in the root directory of this source tree. 56 - */var w1;function OC(){if(w1)return $t;w1=1;var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,f=t?Symbol.for("react.context"):60110,m=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,y=t?Symbol.for("react.suspense"):60113,v=t?Symbol.for("react.suspense_list"):60120,b=t?Symbol.for("react.memo"):60115,x=t?Symbol.for("react.lazy"):60116,S=t?Symbol.for("react.block"):60121,C=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,R=t?Symbol.for("react.scope"):60119;function O(M){if(typeof M=="object"&&M!==null){var _=M.$$typeof;switch(_){case n:switch(M=M.type,M){case m:case h:case a:case s:case o:case y:return M;default:switch(M=M&&M.$$typeof,M){case f:case p:case x:case b:case c:return M;default:return _}}case i:return _}}}function k(M){return O(M)===h}return $t.AsyncMode=m,$t.ConcurrentMode=h,$t.ContextConsumer=f,$t.ContextProvider=c,$t.Element=n,$t.ForwardRef=p,$t.Fragment=a,$t.Lazy=x,$t.Memo=b,$t.Portal=i,$t.Profiler=s,$t.StrictMode=o,$t.Suspense=y,$t.isAsyncMode=function(M){return k(M)||O(M)===m},$t.isConcurrentMode=k,$t.isContextConsumer=function(M){return O(M)===f},$t.isContextProvider=function(M){return O(M)===c},$t.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===n},$t.isForwardRef=function(M){return O(M)===p},$t.isFragment=function(M){return O(M)===a},$t.isLazy=function(M){return O(M)===x},$t.isMemo=function(M){return O(M)===b},$t.isPortal=function(M){return O(M)===i},$t.isProfiler=function(M){return O(M)===s},$t.isStrictMode=function(M){return O(M)===o},$t.isSuspense=function(M){return O(M)===y},$t.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===a||M===h||M===s||M===o||M===y||M===v||typeof M=="object"&&M!==null&&(M.$$typeof===x||M.$$typeof===b||M.$$typeof===c||M.$$typeof===f||M.$$typeof===p||M.$$typeof===C||M.$$typeof===E||M.$$typeof===R||M.$$typeof===S)},$t.typeOf=O,$t}var M1;function _C(){return M1||(M1=1,ah.exports=OC()),ah.exports}var lh,E1;function RC(){if(E1)return lh;E1=1;var t=_C(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[t.ForwardRef]=a,s[t.Memo]=o;function c(x){return t.isMemo(x)?o:s[x.$$typeof]||n}var f=Object.defineProperty,m=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,v=Object.prototype;function b(x,S,C){if(typeof S!="string"){if(v){var E=y(S);E&&E!==v&&b(x,E,C)}var R=m(S);h&&(R=R.concat(h(S)));for(var O=c(x),k=c(S),M=0;M<R.length;++M){var _=R[M];if(!i[_]&&!(C&&C[_])&&!(k&&k[_])&&!(O&&O[_])){var D=p(S,_);try{f(x,_,D)}catch{}}}}return x}return lh=b,lh}RC();var kC=!0;function Zb(t,n,i){var a="";return i.split(" ").forEach(function(o){t[o]!==void 0?n.push(t[o]+";"):o&&(a+=o+" ")}),a}var hm=function(n,i,a){var o=n.key+"-"+i.name;(a===!1||kC===!1)&&n.registered[o]===void 0&&(n.registered[o]=i.styles)},mm=function(n,i,a){hm(n,i,a);var o=n.key+"-"+i.name;if(n.inserted[i.name]===void 0){var s=i;do n.insert(i===s?"."+o:"",s,n.sheet,!0),s=s.next;while(s!==void 0)}};function DC(t){for(var n=0,i,a=0,o=t.length;o>=4;++a,o-=4)i=t.charCodeAt(a)&255|(t.charCodeAt(++a)&255)<<8|(t.charCodeAt(++a)&255)<<16|(t.charCodeAt(++a)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,n=(i&65535)*1540483477+((i>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(t.charCodeAt(a+2)&255)<<16;case 2:n^=(t.charCodeAt(a+1)&255)<<8;case 1:n^=t.charCodeAt(a)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var zC={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},NC=/[A-Z]|^ms/g,UC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qb=function(n){return n.charCodeAt(1)===45},O1=function(n){return n!=null&&typeof n!="boolean"},oh=Vb(function(t){return Qb(t)?t:t.replace(NC,"-$&").toLowerCase()}),_1=function(n,i){switch(n){case"animation":case"animationName":if(typeof i=="string")return i.replace(UC,function(a,o,s){return Wn={name:o,styles:s,next:Wn},o})}return zC[n]!==1&&!Qb(n)&&typeof i=="number"&&i!==0?i+"px":i};function zo(t,n,i){if(i==null)return"";var a=i;if(a.__emotion_styles!==void 0)return a;switch(typeof i){case"boolean":return"";case"object":{var o=i;if(o.anim===1)return Wn={name:o.name,styles:o.styles,next:Wn},o.name;var s=i;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)Wn={name:c.name,styles:c.styles,next:Wn},c=c.next;var f=s.styles+";";return f}return jC(t,n,i)}case"function":{if(t!==void 0){var m=Wn,h=i(t);return Wn=m,zo(t,n,h)}break}}var p=i;if(n==null)return p;var y=n[p];return y!==void 0?y:p}function jC(t,n,i){var a="";if(Array.isArray(i))for(var o=0;o<i.length;o++)a+=zo(t,n,i[o])+";";else for(var s in i){var c=i[s];if(typeof c!="object"){var f=c;n!=null&&n[f]!==void 0?a+=s+"{"+n[f]+"}":O1(f)&&(a+=oh(s)+":"+_1(s,f)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(n==null||n[c[0]]===void 0))for(var m=0;m<c.length;m++)O1(c[m])&&(a+=oh(s)+":"+_1(s,c[m])+";");else{var h=zo(t,n,c);switch(s){case"animation":case"animationName":{a+=oh(s)+":"+h+";";break}default:a+=s+"{"+h+"}"}}}return a}var R1=/label:\s*([^\s;{]+)\s*(;|$)/g,Wn;function uc(t,n,i){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var a=!0,o="";Wn=void 0;var s=t[0];if(s==null||s.raw===void 0)a=!1,o+=zo(i,n,s);else{var c=s;o+=c[0]}for(var f=1;f<t.length;f++)if(o+=zo(i,n,t[f]),a){var m=s;o+=m[f]}R1.lastIndex=0;for(var h="",p;(p=R1.exec(o))!==null;)h+="-"+p[1];var y=DC(o)+h;return{name:y,styles:o,next:Wn}}var $C=function(n){return n()},Kb=Bh.useInsertionEffect?Bh.useInsertionEffect:!1,Fb=Kb||$C,k1=Kb||Y.useLayoutEffect,Wb=Y.createContext(typeof HTMLElement<"u"?Pb({key:"css"}):null),BC=Wb.Provider,gm=function(n){return Y.forwardRef(function(i,a){var o=Y.useContext(Wb);return n(i,o,a)})},Io=Y.createContext({}),pm={}.hasOwnProperty,Yh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",LC=function(n,i){var a={};for(var o in i)pm.call(i,o)&&(a[o]=i[o]);return a[Yh]=n,a},HC=function(n){var i=n.cache,a=n.serialized,o=n.isStringTag;return hm(i,a,o),Fb(function(){return mm(i,a,o)}),null},YC=gm(function(t,n,i){var a=t.css;typeof a=="string"&&n.registered[a]!==void 0&&(a=n.registered[a]);var o=t[Yh],s=[a],c="";typeof t.className=="string"?c=Zb(n.registered,s,t.className):t.className!=null&&(c=t.className+" ");var f=uc(s,void 0,Y.useContext(Io));c+=n.key+"-"+f.name;var m={};for(var h in t)pm.call(t,h)&&h!=="css"&&h!==Yh&&(m[h]=t[h]);return m.className=c,i&&(m.ref=i),Y.createElement(Y.Fragment,null,Y.createElement(HC,{cache:n,serialized:f,isStringTag:typeof o=="string"}),Y.createElement(o,m))}),GC=YC,D1=function(n,i){var a=arguments;if(i==null||!pm.call(i,"css"))return Y.createElement.apply(void 0,a);var o=a.length,s=new Array(o);s[0]=GC,s[1]=LC(n,i);for(var c=2;c<o;c++)s[c]=a[c];return Y.createElement.apply(null,s)};(function(t){var n;n||(n=t.JSX||(t.JSX={}))})(D1||(D1={}));var qC=gm(function(t,n){var i=t.styles,a=uc([i],void 0,Y.useContext(Io)),o=Y.useRef();return k1(function(){var s=n.key+"-global",c=new n.sheet.constructor({key:s,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),f=!1,m=document.querySelector('style[data-emotion="'+s+" "+a.name+'"]');return n.sheet.tags.length&&(c.before=n.sheet.tags[0]),m!==null&&(f=!0,m.setAttribute("data-emotion",s),c.hydrate([m])),o.current=[c,f],function(){c.flush()}},[n]),k1(function(){var s=o.current,c=s[0],f=s[1];if(f){s[1]=!1;return}if(a.next!==void 0&&mm(n,a.next,!0),c.tags.length){var m=c.tags[c.tags.length-1].nextElementSibling;c.before=m,c.flush()}n.insert("",a,c,!1)},[n,a.name]),null}),IC=/^((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)-.*))$/,VC=Vb(function(t){return IC.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),XC=VC,PC=function(n){return n!=="theme"},z1=function(n){return typeof n=="string"&&n.charCodeAt(0)>96?XC:PC},N1=function(n,i,a){var o;if(i){var s=i.shouldForwardProp;o=n.__emotion_forwardProp&&s?function(c){return n.__emotion_forwardProp(c)&&s(c)}:s}return typeof o!="function"&&a&&(o=n.__emotion_forwardProp),o},ZC=function(n){var i=n.cache,a=n.serialized,o=n.isStringTag;return hm(i,a,o),Fb(function(){return mm(i,a,o)}),null},QC=function t(n,i){var a=n.__emotion_real===n,o=a&&n.__emotion_base||n,s,c;i!==void 0&&(s=i.label,c=i.target);var f=N1(n,i,a),m=f||z1(o),h=!m("as");return function(){var p=arguments,y=a&&n.__emotion_styles!==void 0?n.__emotion_styles.slice(0):[];if(s!==void 0&&y.push("label:"+s+";"),p[0]==null||p[0].raw===void 0)y.push.apply(y,p);else{var v=p[0];y.push(v[0]);for(var b=p.length,x=1;x<b;x++)y.push(p[x],v[x])}var S=gm(function(C,E,R){var O=h&&C.as||o,k="",M=[],_=C;if(C.theme==null){_={};for(var D in C)_[D]=C[D];_.theme=Y.useContext(Io)}typeof C.className=="string"?k=Zb(E.registered,M,C.className):C.className!=null&&(k=C.className+" ");var L=uc(y.concat(M),E.registered,_);k+=E.key+"-"+L.name,c!==void 0&&(k+=" "+c);var $=h&&f===void 0?z1(O):m,T={};for(var z in C)h&&z==="as"||$(z)&&(T[z]=C[z]);return T.className=k,R&&(T.ref=R),Y.createElement(Y.Fragment,null,Y.createElement(ZC,{cache:E,serialized:L,isStringTag:typeof O=="string"}),Y.createElement(O,T))});return S.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",S.defaultProps=n.defaultProps,S.__emotion_real=S,S.__emotion_base=o,S.__emotion_styles=y,S.__emotion_forwardProp=f,Object.defineProperty(S,"toString",{value:function(){return"."+c}}),S.withComponent=function(C,E){var R=t(C,I({},i,E,{shouldForwardProp:N1(S,E,!0)}));return R.apply(void 0,y)},S}},KC=["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"],Gh=QC.bind(null);KC.forEach(function(t){Gh[t]=Gh(t)});const uh=new Map,FC=(t,n)=>{const i=Pb(t);return i.sheet=new n({key:i.key,nonce:i.sheet.nonce,container:i.sheet.container,speedy:i.sheet.isSpeedy,prepend:i.sheet.prepend,insertionPoint:i.sheet.insertionPoint}),i};let oi;if(typeof document=="object"&&(oi=document.querySelector('[name="emotion-insertion-point"]'),!oi)){oi=document.createElement("meta"),oi.setAttribute("name","emotion-insertion-point"),oi.setAttribute("content","");const t=document.querySelector("head");t&&t.prepend(oi)}function WC(t,n){if(t||n){class i extends Bb{insert(s,c){return this.key&&this.key.endsWith("global")&&(this.before=oi),super.insert(s,c)}}const a=FC({key:"css",insertionPoint:t?oi:void 0},i);if(n){const o=a.insert;a.insert=(...s)=>(s[1].styles.startsWith("@layer")||(s[1].styles=`@layer mui {${s[1].styles}}`),o(...s))}return a}}function JC(t){const{injectFirst:n,enableCssLayer:i,children:a}=t,o=Y.useMemo(()=>{const s=`${n}-${i}`;if(uh.has(s))return uh.get(s);const c=WC(n,i);return uh.set(s,c),c},[n,i]);return o?H.jsx(BC,{value:o,children:a}):a}function tw(t){return t==null||Object.keys(t).length===0}function ew(t){const{styles:n,defaultTheme:i={}}=t,a=typeof n=="function"?o=>n(tw(o)?i:o):n;return H.jsx(qC,{styles:a})}function nw(t,n){return Gh(t,n)}function rw(t,n){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=n(t.__emotion_styles))}const U1=[];function j1(t){return U1[0]=t,uc(U1)}var sh={exports:{}},Vt={};/** 56 + */var w1;function OC(){if(w1)return $t;w1=1;var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,u=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,f=t?Symbol.for("react.context"):60110,m=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,y=t?Symbol.for("react.suspense"):60113,v=t?Symbol.for("react.suspense_list"):60120,b=t?Symbol.for("react.memo"):60115,x=t?Symbol.for("react.lazy"):60116,S=t?Symbol.for("react.block"):60121,C=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,_=t?Symbol.for("react.scope"):60119;function O(M){if(typeof M=="object"&&M!==null){var R=M.$$typeof;switch(R){case n:switch(M=M.type,M){case m:case h:case a:case u:case o:case y:return M;default:switch(M=M&&M.$$typeof,M){case f:case p:case x:case b:case c:return M;default:return R}}case i:return R}}}function k(M){return O(M)===h}return $t.AsyncMode=m,$t.ConcurrentMode=h,$t.ContextConsumer=f,$t.ContextProvider=c,$t.Element=n,$t.ForwardRef=p,$t.Fragment=a,$t.Lazy=x,$t.Memo=b,$t.Portal=i,$t.Profiler=u,$t.StrictMode=o,$t.Suspense=y,$t.isAsyncMode=function(M){return k(M)||O(M)===m},$t.isConcurrentMode=k,$t.isContextConsumer=function(M){return O(M)===f},$t.isContextProvider=function(M){return O(M)===c},$t.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===n},$t.isForwardRef=function(M){return O(M)===p},$t.isFragment=function(M){return O(M)===a},$t.isLazy=function(M){return O(M)===x},$t.isMemo=function(M){return O(M)===b},$t.isPortal=function(M){return O(M)===i},$t.isProfiler=function(M){return O(M)===u},$t.isStrictMode=function(M){return O(M)===o},$t.isSuspense=function(M){return O(M)===y},$t.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===a||M===h||M===u||M===o||M===y||M===v||typeof M=="object"&&M!==null&&(M.$$typeof===x||M.$$typeof===b||M.$$typeof===c||M.$$typeof===f||M.$$typeof===p||M.$$typeof===C||M.$$typeof===E||M.$$typeof===_||M.$$typeof===S)},$t.typeOf=O,$t}var M1;function RC(){return M1||(M1=1,ah.exports=OC()),ah.exports}var lh,E1;function _C(){if(E1)return lh;E1=1;var t=RC(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[t.ForwardRef]=a,u[t.Memo]=o;function c(x){return t.isMemo(x)?o:u[x.$$typeof]||n}var f=Object.defineProperty,m=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,y=Object.getPrototypeOf,v=Object.prototype;function b(x,S,C){if(typeof S!="string"){if(v){var E=y(S);E&&E!==v&&b(x,E,C)}var _=m(S);h&&(_=_.concat(h(S)));for(var O=c(x),k=c(S),M=0;M<_.length;++M){var R=_[M];if(!i[R]&&!(C&&C[R])&&!(k&&k[R])&&!(O&&O[R])){var D=p(S,R);try{f(x,R,D)}catch{}}}}return x}return lh=b,lh}_C();var kC=!0;function Zb(t,n,i){var a="";return i.split(" ").forEach(function(o){t[o]!==void 0?n.push(t[o]+";"):o&&(a+=o+" ")}),a}var hm=function(n,i,a){var o=n.key+"-"+i.name;(a===!1||kC===!1)&&n.registered[o]===void 0&&(n.registered[o]=i.styles)},mm=function(n,i,a){hm(n,i,a);var o=n.key+"-"+i.name;if(n.inserted[i.name]===void 0){var u=i;do n.insert(i===u?"."+o:"",u,n.sheet,!0),u=u.next;while(u!==void 0)}};function DC(t){for(var n=0,i,a=0,o=t.length;o>=4;++a,o-=4)i=t.charCodeAt(a)&255|(t.charCodeAt(++a)&255)<<8|(t.charCodeAt(++a)&255)<<16|(t.charCodeAt(++a)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,n=(i&65535)*1540483477+((i>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(o){case 3:n^=(t.charCodeAt(a+2)&255)<<16;case 2:n^=(t.charCodeAt(a+1)&255)<<8;case 1:n^=t.charCodeAt(a)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var zC={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},NC=/[A-Z]|^ms/g,UC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qb=function(n){return n.charCodeAt(1)===45},O1=function(n){return n!=null&&typeof n!="boolean"},oh=Vb(function(t){return Qb(t)?t:t.replace(NC,"-$&").toLowerCase()}),R1=function(n,i){switch(n){case"animation":case"animationName":if(typeof i=="string")return i.replace(UC,function(a,o,u){return Wn={name:o,styles:u,next:Wn},o})}return zC[n]!==1&&!Qb(n)&&typeof i=="number"&&i!==0?i+"px":i};function zo(t,n,i){if(i==null)return"";var a=i;if(a.__emotion_styles!==void 0)return a;switch(typeof i){case"boolean":return"";case"object":{var o=i;if(o.anim===1)return Wn={name:o.name,styles:o.styles,next:Wn},o.name;var u=i;if(u.styles!==void 0){var c=u.next;if(c!==void 0)for(;c!==void 0;)Wn={name:c.name,styles:c.styles,next:Wn},c=c.next;var f=u.styles+";";return f}return jC(t,n,i)}case"function":{if(t!==void 0){var m=Wn,h=i(t);return Wn=m,zo(t,n,h)}break}}var p=i;if(n==null)return p;var y=n[p];return y!==void 0?y:p}function jC(t,n,i){var a="";if(Array.isArray(i))for(var o=0;o<i.length;o++)a+=zo(t,n,i[o])+";";else for(var u in i){var c=i[u];if(typeof c!="object"){var f=c;n!=null&&n[f]!==void 0?a+=u+"{"+n[f]+"}":O1(f)&&(a+=oh(u)+":"+R1(u,f)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(n==null||n[c[0]]===void 0))for(var m=0;m<c.length;m++)O1(c[m])&&(a+=oh(u)+":"+R1(u,c[m])+";");else{var h=zo(t,n,c);switch(u){case"animation":case"animationName":{a+=oh(u)+":"+h+";";break}default:a+=u+"{"+h+"}"}}}return a}var _1=/label:\s*([^\s;{]+)\s*(;|$)/g,Wn;function sc(t,n,i){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var a=!0,o="";Wn=void 0;var u=t[0];if(u==null||u.raw===void 0)a=!1,o+=zo(i,n,u);else{var c=u;o+=c[0]}for(var f=1;f<t.length;f++)if(o+=zo(i,n,t[f]),a){var m=u;o+=m[f]}_1.lastIndex=0;for(var h="",p;(p=_1.exec(o))!==null;)h+="-"+p[1];var y=DC(o)+h;return{name:y,styles:o,next:Wn}}var $C=function(n){return n()},Kb=Bh.useInsertionEffect?Bh.useInsertionEffect:!1,Fb=Kb||$C,k1=Kb||Y.useLayoutEffect,Wb=Y.createContext(typeof HTMLElement<"u"?Pb({key:"css"}):null),BC=Wb.Provider,gm=function(n){return Y.forwardRef(function(i,a){var o=Y.useContext(Wb);return n(i,o,a)})},Io=Y.createContext({}),pm={}.hasOwnProperty,Yh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",LC=function(n,i){var a={};for(var o in i)pm.call(i,o)&&(a[o]=i[o]);return a[Yh]=n,a},HC=function(n){var i=n.cache,a=n.serialized,o=n.isStringTag;return hm(i,a,o),Fb(function(){return mm(i,a,o)}),null},YC=gm(function(t,n,i){var a=t.css;typeof a=="string"&&n.registered[a]!==void 0&&(a=n.registered[a]);var o=t[Yh],u=[a],c="";typeof t.className=="string"?c=Zb(n.registered,u,t.className):t.className!=null&&(c=t.className+" ");var f=sc(u,void 0,Y.useContext(Io));c+=n.key+"-"+f.name;var m={};for(var h in t)pm.call(t,h)&&h!=="css"&&h!==Yh&&(m[h]=t[h]);return m.className=c,i&&(m.ref=i),Y.createElement(Y.Fragment,null,Y.createElement(HC,{cache:n,serialized:f,isStringTag:typeof o=="string"}),Y.createElement(o,m))}),GC=YC,D1=function(n,i){var a=arguments;if(i==null||!pm.call(i,"css"))return Y.createElement.apply(void 0,a);var o=a.length,u=new Array(o);u[0]=GC,u[1]=LC(n,i);for(var c=2;c<o;c++)u[c]=a[c];return Y.createElement.apply(null,u)};(function(t){var n;n||(n=t.JSX||(t.JSX={}))})(D1||(D1={}));var qC=gm(function(t,n){var i=t.styles,a=sc([i],void 0,Y.useContext(Io)),o=Y.useRef();return k1(function(){var u=n.key+"-global",c=new n.sheet.constructor({key:u,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),f=!1,m=document.querySelector('style[data-emotion="'+u+" "+a.name+'"]');return n.sheet.tags.length&&(c.before=n.sheet.tags[0]),m!==null&&(f=!0,m.setAttribute("data-emotion",u),c.hydrate([m])),o.current=[c,f],function(){c.flush()}},[n]),k1(function(){var u=o.current,c=u[0],f=u[1];if(f){u[1]=!1;return}if(a.next!==void 0&&mm(n,a.next,!0),c.tags.length){var m=c.tags[c.tags.length-1].nextElementSibling;c.before=m,c.flush()}n.insert("",a,c,!1)},[n,a.name]),null}),IC=/^((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)-.*))$/,VC=Vb(function(t){return IC.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),XC=VC,PC=function(n){return n!=="theme"},z1=function(n){return typeof n=="string"&&n.charCodeAt(0)>96?XC:PC},N1=function(n,i,a){var o;if(i){var u=i.shouldForwardProp;o=n.__emotion_forwardProp&&u?function(c){return n.__emotion_forwardProp(c)&&u(c)}:u}return typeof o!="function"&&a&&(o=n.__emotion_forwardProp),o},ZC=function(n){var i=n.cache,a=n.serialized,o=n.isStringTag;return hm(i,a,o),Fb(function(){return mm(i,a,o)}),null},QC=function t(n,i){var a=n.__emotion_real===n,o=a&&n.__emotion_base||n,u,c;i!==void 0&&(u=i.label,c=i.target);var f=N1(n,i,a),m=f||z1(o),h=!m("as");return function(){var p=arguments,y=a&&n.__emotion_styles!==void 0?n.__emotion_styles.slice(0):[];if(u!==void 0&&y.push("label:"+u+";"),p[0]==null||p[0].raw===void 0)y.push.apply(y,p);else{var v=p[0];y.push(v[0]);for(var b=p.length,x=1;x<b;x++)y.push(p[x],v[x])}var S=gm(function(C,E,_){var O=h&&C.as||o,k="",M=[],R=C;if(C.theme==null){R={};for(var D in C)R[D]=C[D];R.theme=Y.useContext(Io)}typeof C.className=="string"?k=Zb(E.registered,M,C.className):C.className!=null&&(k=C.className+" ");var L=sc(y.concat(M),E.registered,R);k+=E.key+"-"+L.name,c!==void 0&&(k+=" "+c);var $=h&&f===void 0?z1(O):m,T={};for(var z in C)h&&z==="as"||$(z)&&(T[z]=C[z]);return T.className=k,_&&(T.ref=_),Y.createElement(Y.Fragment,null,Y.createElement(ZC,{cache:E,serialized:L,isStringTag:typeof O=="string"}),Y.createElement(O,T))});return S.displayName=u!==void 0?u:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",S.defaultProps=n.defaultProps,S.__emotion_real=S,S.__emotion_base=o,S.__emotion_styles=y,S.__emotion_forwardProp=f,Object.defineProperty(S,"toString",{value:function(){return"."+c}}),S.withComponent=function(C,E){var _=t(C,I({},i,E,{shouldForwardProp:N1(S,E,!0)}));return _.apply(void 0,y)},S}},KC=["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"],Gh=QC.bind(null);KC.forEach(function(t){Gh[t]=Gh(t)});const sh=new Map,FC=(t,n)=>{const i=Pb(t);return i.sheet=new n({key:i.key,nonce:i.sheet.nonce,container:i.sheet.container,speedy:i.sheet.isSpeedy,prepend:i.sheet.prepend,insertionPoint:i.sheet.insertionPoint}),i};let oi;if(typeof document=="object"&&(oi=document.querySelector('[name="emotion-insertion-point"]'),!oi)){oi=document.createElement("meta"),oi.setAttribute("name","emotion-insertion-point"),oi.setAttribute("content","");const t=document.querySelector("head");t&&t.prepend(oi)}function WC(t,n){if(t||n){class i extends Bb{insert(u,c){return this.key&&this.key.endsWith("global")&&(this.before=oi),super.insert(u,c)}}const a=FC({key:"css",insertionPoint:t?oi:void 0},i);if(n){const o=a.insert;a.insert=(...u)=>(u[1].styles.startsWith("@layer")||(u[1].styles=`@layer mui {${u[1].styles}}`),o(...u))}return a}}function JC(t){const{injectFirst:n,enableCssLayer:i,children:a}=t,o=Y.useMemo(()=>{const u=`${n}-${i}`;if(sh.has(u))return sh.get(u);const c=WC(n,i);return sh.set(u,c),c},[n,i]);return o?H.jsx(BC,{value:o,children:a}):a}function tw(t){return t==null||Object.keys(t).length===0}function ew(t){const{styles:n,defaultTheme:i={}}=t,a=typeof n=="function"?o=>n(tw(o)?i:o):n;return H.jsx(qC,{styles:a})}function nw(t,n){return Gh(t,n)}function rw(t,n){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=n(t.__emotion_styles))}const U1=[];function j1(t){return U1[0]=t,sc(U1)}var uh={exports:{}},Vt={};/** 57 57 * @license React 58 58 * react-is.production.js 59 59 * ··· 61 61 * 62 62 * This source code is licensed under the MIT license found in the 63 63 * LICENSE file in the root directory of this source tree. 64 - */var $1;function iw(){if($1)return Vt;$1=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function x(S){if(typeof S=="object"&&S!==null){var C=S.$$typeof;switch(C){case t:switch(S=S.type,S){case i:case o:case a:case m:case h:case v:return S;default:switch(S=S&&S.$$typeof,S){case c:case f:case y:case p:return S;case s:return S;default:return C}}case n:return C}}}return Vt.ContextConsumer=s,Vt.ContextProvider=c,Vt.Element=t,Vt.ForwardRef=f,Vt.Fragment=i,Vt.Lazy=y,Vt.Memo=p,Vt.Portal=n,Vt.Profiler=o,Vt.StrictMode=a,Vt.Suspense=m,Vt.SuspenseList=h,Vt.isContextConsumer=function(S){return x(S)===s},Vt.isContextProvider=function(S){return x(S)===c},Vt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Vt.isForwardRef=function(S){return x(S)===f},Vt.isFragment=function(S){return x(S)===i},Vt.isLazy=function(S){return x(S)===y},Vt.isMemo=function(S){return x(S)===p},Vt.isPortal=function(S){return x(S)===n},Vt.isProfiler=function(S){return x(S)===o},Vt.isStrictMode=function(S){return x(S)===a},Vt.isSuspense=function(S){return x(S)===m},Vt.isSuspenseList=function(S){return x(S)===h},Vt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===i||S===o||S===a||S===m||S===h||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===p||S.$$typeof===c||S.$$typeof===s||S.$$typeof===f||S.$$typeof===b||S.getModuleId!==void 0)},Vt.typeOf=x,Vt}var B1;function aw(){return B1||(B1=1,sh.exports=iw()),sh.exports}var Jb=aw();function Jn(t){if(typeof t!="object"||t===null)return!1;const n=Object.getPrototypeOf(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function tx(t){if(Y.isValidElement(t)||Jb.isValidElementType(t)||!Jn(t))return t;const n={};return Object.keys(t).forEach(i=>{n[i]=tx(t[i])}),n}function dn(t,n,i={clone:!0}){const a=i.clone?{...t}:t;return Jn(t)&&Jn(n)&&Object.keys(n).forEach(o=>{Y.isValidElement(n[o])||Jb.isValidElementType(n[o])?a[o]=n[o]:Jn(n[o])&&Object.prototype.hasOwnProperty.call(t,o)&&Jn(t[o])?a[o]=dn(t[o],n[o],i):i.clone?a[o]=Jn(n[o])?tx(n[o]):n[o]:a[o]=n[o]}),a}const lw=t=>{const n=Object.keys(t).map(i=>({key:i,val:t[i]}))||[];return n.sort((i,a)=>i.val-a.val),n.reduce((i,a)=>({...i,[a.key]:a.val}),{})};function ow(t){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:a=5,...o}=t,s=lw(n),c=Object.keys(s);function f(v){return`@media (min-width:${typeof n[v]=="number"?n[v]:v}${i})`}function m(v){return`@media (max-width:${(typeof n[v]=="number"?n[v]:v)-a/100}${i})`}function h(v,b){const x=c.indexOf(b);return`@media (min-width:${typeof n[v]=="number"?n[v]:v}${i}) and (max-width:${(x!==-1&&typeof n[c[x]]=="number"?n[c[x]]:b)-a/100}${i})`}function p(v){return c.indexOf(v)+1<c.length?h(v,c[c.indexOf(v)+1]):f(v)}function y(v){const b=c.indexOf(v);return b===0?f(c[1]):b===c.length-1?m(c[b]):h(v,c[c.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:c,values:s,up:f,down:m,between:h,only:p,not:y,unit:i,...o}}function uw(t,n){if(!t.containerQueries)return n;const i=Object.keys(n).filter(a=>a.startsWith("@container")).sort((a,o)=>{var c,f;const s=/min-width:\s*([0-9.]+)/;return+(((c=a.match(s))==null?void 0:c[1])||0)-+(((f=o.match(s))==null?void 0:f[1])||0)});return i.length?i.reduce((a,o)=>{const s=n[o];return delete a[o],a[o]=s,a},{...n}):n}function sw(t,n){return n==="@"||n.startsWith("@")&&(t.some(i=>n.startsWith(`@${i}`))||!!n.match(/^@\d/))}function cw(t,n){const i=n.match(/^@([^/]+)?\/?(.+)?$/);if(!i)return null;const[,a,o]=i,s=Number.isNaN(+a)?a||0:+a;return t.containerQueries(o).up(s)}function fw(t){const n=(s,c)=>s.replace("@media",c?`@container ${c}`:"@container");function i(s,c){s.up=(...f)=>n(t.breakpoints.up(...f),c),s.down=(...f)=>n(t.breakpoints.down(...f),c),s.between=(...f)=>n(t.breakpoints.between(...f),c),s.only=(...f)=>n(t.breakpoints.only(...f),c),s.not=(...f)=>{const m=n(t.breakpoints.not(...f),c);return m.includes("not all and")?m.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):m}}const a={},o=s=>(i(a,s),a);return i(o),{...t,containerQueries:o}}const dw={borderRadius:4};function Oo(t,n){return n?dn(t,n,{clone:!1}):t}const sc={xs:0,sm:600,md:900,lg:1200,xl:1536},L1={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${sc[t]}px)`},hw={containerQueries:t=>({up:n=>{let i=typeof n=="number"?n:sc[n]||n;return typeof i=="number"&&(i=`${i}px`),t?`@container ${t} (min-width:${i})`:`@container (min-width:${i})`}})};function Rr(t,n,i){const a=t.theme||{};if(Array.isArray(n)){const s=a.breakpoints||L1;return n.reduce((c,f,m)=>(c[s.up(s.keys[m])]=i(n[m]),c),{})}if(typeof n=="object"){const s=a.breakpoints||L1;return Object.keys(n).reduce((c,f)=>{if(sw(s.keys,f)){const m=cw(a.containerQueries?a:hw,f);m&&(c[m]=i(n[f],f))}else if(Object.keys(s.values||sc).includes(f)){const m=s.up(f);c[m]=i(n[f],f)}else{const m=f;c[m]=n[m]}return c},{})}return i(n)}function mw(t={}){var i;return((i=t.keys)==null?void 0:i.reduce((a,o)=>{const s=t.up(o);return a[s]={},a},{}))||{}}function gw(t,n){return t.reduce((i,a)=>{const o=i[a];return(!o||Object.keys(o).length===0)&&delete i[a],i},n)}function No(t){if(typeof t!="string")throw new Error(ji(7));return t.charAt(0).toUpperCase()+t.slice(1)}function cc(t,n,i=!0){if(!n||typeof n!="string")return null;if(t&&t.vars&&i){const a=`vars.${n}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,t);if(a!=null)return a}return n.split(".").reduce((a,o)=>a&&a[o]!=null?a[o]:null,t)}function js(t,n,i,a=i){let o;return typeof t=="function"?o=t(i):Array.isArray(t)?o=t[i]||a:o=cc(t,i)||a,n&&(o=n(o,a,t)),o}function de(t){const{prop:n,cssProperty:i=t.prop,themeKey:a,transform:o}=t,s=c=>{if(c[n]==null)return null;const f=c[n],m=c.theme,h=cc(m,a)||{};return Rr(c,f,y=>{let v=js(h,o,y);return y===v&&typeof y=="string"&&(v=js(h,o,`${n}${y==="default"?"":No(y)}`,y)),i===!1?v:{[i]:v}})};return s.propTypes={},s.filterProps=[n],s}function pw(t){const n={};return i=>(n[i]===void 0&&(n[i]=t(i)),n[i])}const yw={m:"margin",p:"padding"},vw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},H1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bw=pw(t=>{if(t.length>2)if(H1[t])t=H1[t];else return[t];const[n,i]=t.split(""),a=yw[n],o=vw[i]||"";return Array.isArray(o)?o.map(s=>a+s):[a+o]}),ym=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],vm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...ym,...vm];function Vo(t,n,i,a){const o=cc(t,n,!0)??i;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:typeof o=="string"?o.startsWith("var(")&&s===0?0:o.startsWith("var(")&&s===1?o:`calc(${s} * ${o})`:o*s:Array.isArray(o)?s=>{if(typeof s=="string")return s;const c=Math.abs(s),f=o[c];return s>=0?f:typeof f=="number"?-f:typeof f=="string"&&f.startsWith("var(")?`calc(-1 * ${f})`:`-${f}`}:typeof o=="function"?o:()=>{}}function bm(t){return Vo(t,"spacing",8)}function Xo(t,n){return typeof n=="string"||n==null?n:t(n)}function xw(t,n){return i=>t.reduce((a,o)=>(a[o]=Xo(n,i),a),{})}function Sw(t,n,i,a){if(!n.includes(i))return null;const o=bw(i),s=xw(o,a),c=t[i];return Rr(t,c,s)}function ex(t,n){const i=bm(t.theme);return Object.keys(t).map(a=>Sw(t,n,a,i)).reduce(Oo,{})}function oe(t){return ex(t,ym)}oe.propTypes={};oe.filterProps=ym;function ue(t){return ex(t,vm)}ue.propTypes={};ue.filterProps=vm;function nx(t=8,n=bm({spacing:t})){if(t.mui)return t;const i=(...a)=>(a.length===0?[1]:a).map(s=>{const c=n(s);return typeof c=="number"?`${c}px`:c}).join(" ");return i.mui=!0,i}function fc(...t){const n=t.reduce((a,o)=>(o.filterProps.forEach(s=>{a[s]=o}),a),{}),i=a=>Object.keys(a).reduce((o,s)=>n[s]?Oo(o,n[s](a)):o,{});return i.propTypes={},i.filterProps=t.reduce((a,o)=>a.concat(o.filterProps),[]),i}function wn(t){return typeof t!="number"?t:`${t}px solid`}function Dn(t,n){return de({prop:t,themeKey:"borders",transform:n})}const Aw=Dn("border",wn),Tw=Dn("borderTop",wn),Cw=Dn("borderRight",wn),ww=Dn("borderBottom",wn),Mw=Dn("borderLeft",wn),Ew=Dn("borderColor"),Ow=Dn("borderTopColor"),_w=Dn("borderRightColor"),Rw=Dn("borderBottomColor"),kw=Dn("borderLeftColor"),Dw=Dn("outline",wn),zw=Dn("outlineColor"),dc=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const n=Vo(t.theme,"shape.borderRadius",4),i=a=>({borderRadius:Xo(n,a)});return Rr(t,t.borderRadius,i)}return null};dc.propTypes={};dc.filterProps=["borderRadius"];fc(Aw,Tw,Cw,ww,Mw,Ew,Ow,_w,Rw,kw,dc,Dw,zw);const hc=t=>{if(t.gap!==void 0&&t.gap!==null){const n=Vo(t.theme,"spacing",8),i=a=>({gap:Xo(n,a)});return Rr(t,t.gap,i)}return null};hc.propTypes={};hc.filterProps=["gap"];const mc=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const n=Vo(t.theme,"spacing",8),i=a=>({columnGap:Xo(n,a)});return Rr(t,t.columnGap,i)}return null};mc.propTypes={};mc.filterProps=["columnGap"];const gc=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const n=Vo(t.theme,"spacing",8),i=a=>({rowGap:Xo(n,a)});return Rr(t,t.rowGap,i)}return null};gc.propTypes={};gc.filterProps=["rowGap"];const Nw=de({prop:"gridColumn"}),Uw=de({prop:"gridRow"}),jw=de({prop:"gridAutoFlow"}),$w=de({prop:"gridAutoColumns"}),Bw=de({prop:"gridAutoRows"}),Lw=de({prop:"gridTemplateColumns"}),Hw=de({prop:"gridTemplateRows"}),Yw=de({prop:"gridTemplateAreas"}),Gw=de({prop:"gridArea"});fc(hc,mc,gc,Nw,Uw,jw,$w,Bw,Lw,Hw,Yw,Gw);function Pa(t,n){return n==="grey"?n:t}const qw=de({prop:"color",themeKey:"palette",transform:Pa}),Iw=de({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Pa}),Vw=de({prop:"backgroundColor",themeKey:"palette",transform:Pa});fc(qw,Iw,Vw);function cn(t){return t<=1&&t!==0?`${t*100}%`:t}const Xw=de({prop:"width",transform:cn}),xm=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const n=i=>{var o,s,c,f,m;const a=((c=(s=(o=t.theme)==null?void 0:o.breakpoints)==null?void 0:s.values)==null?void 0:c[i])||sc[i];return a?((m=(f=t.theme)==null?void 0:f.breakpoints)==null?void 0:m.unit)!=="px"?{maxWidth:`${a}${t.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:cn(i)}};return Rr(t,t.maxWidth,n)}return null};xm.filterProps=["maxWidth"];const Pw=de({prop:"minWidth",transform:cn}),Zw=de({prop:"height",transform:cn}),Qw=de({prop:"maxHeight",transform:cn}),Kw=de({prop:"minHeight",transform:cn});de({prop:"size",cssProperty:"width",transform:cn});de({prop:"size",cssProperty:"height",transform:cn});const Fw=de({prop:"boxSizing"});fc(Xw,xm,Pw,Zw,Qw,Kw,Fw);const Po={border:{themeKey:"borders",transform:wn},borderTop:{themeKey:"borders",transform:wn},borderRight:{themeKey:"borders",transform:wn},borderBottom:{themeKey:"borders",transform:wn},borderLeft:{themeKey:"borders",transform:wn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:dc},color:{themeKey:"palette",transform:Pa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Pa},backgroundColor:{themeKey:"palette",transform:Pa},p:{style:ue},pt:{style:ue},pr:{style:ue},pb:{style:ue},pl:{style:ue},px:{style:ue},py:{style:ue},padding:{style:ue},paddingTop:{style:ue},paddingRight:{style:ue},paddingBottom:{style:ue},paddingLeft:{style:ue},paddingX:{style:ue},paddingY:{style:ue},paddingInline:{style:ue},paddingInlineStart:{style:ue},paddingInlineEnd:{style:ue},paddingBlock:{style:ue},paddingBlockStart:{style:ue},paddingBlockEnd:{style:ue},m:{style:oe},mt:{style:oe},mr:{style:oe},mb:{style:oe},ml:{style:oe},mx:{style:oe},my:{style:oe},margin:{style:oe},marginTop:{style:oe},marginRight:{style:oe},marginBottom:{style:oe},marginLeft:{style:oe},marginX:{style:oe},marginY:{style:oe},marginInline:{style:oe},marginInlineStart:{style:oe},marginInlineEnd:{style:oe},marginBlock:{style:oe},marginBlockStart:{style:oe},marginBlockEnd:{style:oe},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:hc},rowGap:{style:gc},columnGap:{style:mc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:cn},maxWidth:{style:xm},minWidth:{transform:cn},height:{transform:cn},maxHeight:{transform:cn},minHeight:{transform:cn},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 Ww(...t){const n=t.reduce((a,o)=>a.concat(Object.keys(o)),[]),i=new Set(n);return t.every(a=>i.size===Object.keys(a).length)}function Jw(t,n){return typeof t=="function"?t(n):t}function tM(){function t(i,a,o,s){const c={[i]:a,theme:o},f=s[i];if(!f)return{[i]:a};const{cssProperty:m=i,themeKey:h,transform:p,style:y}=f;if(a==null)return null;if(h==="typography"&&a==="inherit")return{[i]:a};const v=cc(o,h)||{};return y?y(c):Rr(c,a,x=>{let S=js(v,p,x);return x===S&&typeof x=="string"&&(S=js(v,p,`${i}${x==="default"?"":No(x)}`,x)),m===!1?S:{[m]:S}})}function n(i){const{sx:a,theme:o={}}=i||{};if(!a)return null;const s=o.unstable_sxConfig??Po;function c(f){let m=f;if(typeof f=="function")m=f(o);else if(typeof f!="object")return f;if(!m)return null;const h=mw(o.breakpoints),p=Object.keys(h);let y=h;return Object.keys(m).forEach(v=>{const b=Jw(m[v],o);if(b!=null)if(typeof b=="object")if(s[v])y=Oo(y,t(v,b,o,s));else{const x=Rr({theme:o},b,S=>({[v]:S}));Ww(x,b)?y[v]=n({sx:b,theme:o}):y=Oo(y,x)}else y=Oo(y,t(v,b,o,s))}),uw(o,gw(p,y))}return Array.isArray(a)?a.map(c):c(a)}return n}const $i=tM();$i.filterProps=["sx"];function eM(t,n){var a;const i=this;if(i.vars){if(!((a=i.colorSchemes)!=null&&a[t])||typeof i.getColorSchemeSelector!="function")return{};let o=i.getColorSchemeSelector(t);return o==="&"?n:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:n})}return i.palette.mode===t?n:{}}function Sm(t={},...n){const{breakpoints:i={},palette:a={},spacing:o,shape:s={},...c}=t,f=ow(i),m=nx(o);let h=dn({breakpoints:f,direction:"ltr",components:{},palette:{mode:"light",...a},spacing:m,shape:{...dw,...s}},c);return h=fw(h),h.applyStyles=eM,h=n.reduce((p,y)=>dn(p,y),h),h.unstable_sxConfig={...Po,...c==null?void 0:c.unstable_sxConfig},h.unstable_sx=function(y){return $i({sx:y,theme:this})},h}function nM(t){return Object.keys(t).length===0}function rx(t=null){const n=Y.useContext(Io);return!n||nM(n)?t:n}const rM=Sm();function ix(t=rM){return rx(t)}const iM=t=>{var a;const n={systemProps:{},otherProps:{}},i=((a=t==null?void 0:t.theme)==null?void 0:a.unstable_sxConfig)??Po;return Object.keys(t).forEach(o=>{i[o]?n.systemProps[o]=t[o]:n.otherProps[o]=t[o]}),n};function aM(t){const{sx:n,...i}=t,{systemProps:a,otherProps:o}=iM(i);let s;return Array.isArray(n)?s=[a,...n]:typeof n=="function"?s=(...c)=>{const f=n(...c);return Jn(f)?{...a,...f}:a}:s={...a,...n},{...o,sx:s}}const Y1=t=>t,lM=()=>{let t=Y1;return{configure(n){t=n},generate(n){return t(n)},reset(){t=Y1}}},oM=lM();function ax(t){var n,i,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(i=ax(t[n]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function Mn(){for(var t,n,i=0,a="",o=arguments.length;i<o;i++)(t=arguments[i])&&(n=ax(t))&&(a&&(a+=" "),a+=n);return a}const uM={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 zn(t,n,i="Mui"){const a=uM[n];return a?`${i}-${a}`:`${oM.generate(t)}-${n}`}function qn(t,n,i="Mui"){const a={};return n.forEach(o=>{a[o]=zn(t,o,i)}),a}function lx(t){const{variants:n,...i}=t,a={variants:n,style:j1(i),isProcessed:!0};return a.style===i||n&&n.forEach(o=>{typeof o.style!="function"&&(o.style=j1(o.style))}),a}const sM=Sm();function ch(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function cM(t){return t?(n,i)=>i[t]:null}function fM(t,n,i){t.theme=mM(t.theme)?i:t.theme[n]||t.theme}function Ds(t,n){const i=typeof n=="function"?n(t):n;if(Array.isArray(i))return i.flatMap(a=>Ds(t,a));if(Array.isArray(i==null?void 0:i.variants)){let a;if(i.isProcessed)a=i.style;else{const{variants:o,...s}=i;a=s}return ox(t,i.variants,[a])}return i!=null&&i.isProcessed?i.style:i}function ox(t,n,i=[]){var o;let a;t:for(let s=0;s<n.length;s+=1){const c=n[s];if(typeof c.props=="function"){if(a??(a={...t,...t.ownerState,ownerState:t.ownerState}),!c.props(a))continue}else for(const f in c.props)if(t[f]!==c.props[f]&&((o=t.ownerState)==null?void 0:o[f])!==c.props[f])continue t;typeof c.style=="function"?(a??(a={...t,...t.ownerState,ownerState:t.ownerState}),i.push(c.style(a))):i.push(c.style)}return i}function dM(t={}){const{themeId:n,defaultTheme:i=sM,rootShouldForwardProp:a=ch,slotShouldForwardProp:o=ch}=t;function s(f){fM(f,n,i)}return(f,m={})=>{rw(f,M=>M.filter(_=>_!==$i));const{name:h,slot:p,skipVariantsResolver:y,skipSx:v,overridesResolver:b=cM(pM(p)),...x}=m,S=y!==void 0?y:p&&p!=="Root"&&p!=="root"||!1,C=v||!1;let E=ch;p==="Root"||p==="root"?E=a:p?E=o:gM(f)&&(E=void 0);const R=nw(f,{shouldForwardProp:E,label:hM(),...x}),O=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function(D){return Ds(D,M)};if(Jn(M)){const _=lx(M);return _.variants?function(L){return Ds(L,_)}:_.style}return M},k=(...M)=>{const _=[],D=M.map(O),L=[];if(_.push(s),h&&b&&L.push(function(X){var j,P;const it=(P=(j=X.theme.components)==null?void 0:j[h])==null?void 0:P.styleOverrides;if(!it)return null;const ot={};for(const nt in it)ot[nt]=Ds(X,it[nt]);return b(X,ot)}),h&&!S&&L.push(function(X){var ot,j;const K=X.theme,it=(j=(ot=K==null?void 0:K.components)==null?void 0:ot[h])==null?void 0:j.variants;return it?ox(X,it):null}),C||L.push($i),Array.isArray(D[0])){const z=D.shift(),X=new Array(_.length).fill(""),K=new Array(L.length).fill("");let it;it=[...X,...z,...K],it.raw=[...X,...z.raw,...K],_.unshift(it)}const $=[..._,...D,...L],T=R(...$);return f.muiName&&(T.muiName=f.muiName),T};return R.withConfig&&(k.withConfig=R.withConfig),k}}function hM(t,n){return void 0}function mM(t){for(const n in t)return!1;return!0}function gM(t){return typeof t=="string"&&t.charCodeAt(0)>96}function pM(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function Fa(t,n){const i={...n};for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)){const o=a;if(o==="components"||o==="slots")i[o]={...t[o],...i[o]};else if(o==="componentsProps"||o==="slotProps"){const s=t[o],c=n[o];if(!c)i[o]=s||{};else if(!s)i[o]=c;else{i[o]={...c};for(const f in s)if(Object.prototype.hasOwnProperty.call(s,f)){const m=f;i[o][m]=Fa(s[m],c[m])}}}else i[o]===void 0&&(i[o]=t[o])}return i}function yM(t){const{theme:n,name:i,props:a}=t;return!n||!n.components||!n.components[i]||!n.components[i].defaultProps?a:Fa(n.components[i].defaultProps,a)}function vM({props:t,name:n,defaultTheme:i,themeId:a}){let o=ix(i);return o=o[a]||o,yM({theme:o,name:n,props:t})}const Ye=typeof window<"u"?Y.useLayoutEffect:Y.useEffect;function bM(t,n=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(t,i))}function Am(t,n=0,i=1){return bM(t,n,i)}function xM(t){t=t.slice(1);const n=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let i=t.match(n);return i&&i[0].length===1&&(i=i.map(a=>a+a)),i?`rgb${i.length===4?"a":""}(${i.map((a,o)=>o<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function si(t){if(t.type)return t;if(t.charAt(0)==="#")return si(xM(t));const n=t.indexOf("("),i=t.substring(0,n);if(!["rgb","rgba","hsl","hsla","color"].includes(i))throw new Error(ji(9,t));let a=t.substring(n+1,t.length-1),o;if(i==="color"){if(a=a.split(" "),o=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(ji(10,o))}else a=a.split(",");return a=a.map(s=>parseFloat(s)),{type:i,values:a,colorSpace:o}}const SM=t=>{const n=si(t);return n.values.slice(0,3).map((i,a)=>n.type.includes("hsl")&&a!==0?`${i}%`:i).join(" ")},To=(t,n)=>{try{return SM(t)}catch{return t}};function pc(t){const{type:n,colorSpace:i}=t;let{values:a}=t;return n.includes("rgb")?a=a.map((o,s)=>s<3?parseInt(o,10):o):n.includes("hsl")&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),n.includes("color")?a=`${i} ${a.join(" ")}`:a=`${a.join(", ")}`,`${n}(${a})`}function ux(t){t=si(t);const{values:n}=t,i=n[0],a=n[1]/100,o=n[2]/100,s=a*Math.min(o,1-o),c=(h,p=(h+i/30)%12)=>o-s*Math.max(Math.min(p-3,9-p,1),-1);let f="rgb";const m=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return t.type==="hsla"&&(f+="a",m.push(n[3])),pc({type:f,values:m})}function qh(t){t=si(t);let n=t.type==="hsl"||t.type==="hsla"?si(ux(t)).values:t.values;return n=n.map(i=>(t.type!=="color"&&(i/=255),i<=.03928?i/12.92:((i+.055)/1.055)**2.4)),Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function AM(t,n){const i=qh(t),a=qh(n);return(Math.max(i,a)+.05)/(Math.min(i,a)+.05)}function TM(t,n){return t=si(t),n=Am(n),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${n}`:t.values[3]=n,pc(t)}function ys(t,n,i){try{return TM(t,n)}catch{return t}}function Tm(t,n){if(t=si(t),n=Am(n),t.type.includes("hsl"))t.values[2]*=1-n;else if(t.type.includes("rgb")||t.type.includes("color"))for(let i=0;i<3;i+=1)t.values[i]*=1-n;return pc(t)}function Pt(t,n,i){try{return Tm(t,n)}catch{return t}}function Cm(t,n){if(t=si(t),n=Am(n),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*n;else if(t.type.includes("rgb"))for(let i=0;i<3;i+=1)t.values[i]+=(255-t.values[i])*n;else if(t.type.includes("color"))for(let i=0;i<3;i+=1)t.values[i]+=(1-t.values[i])*n;return pc(t)}function Zt(t,n,i){try{return Cm(t,n)}catch{return t}}function CM(t,n=.15){return qh(t)>.5?Tm(t,n):Cm(t,n)}function vs(t,n,i){try{return CM(t,n)}catch{return t}}const sx=Y.createContext(null);function wm(){return Y.useContext(sx)}const wM=typeof Symbol=="function"&&Symbol.for,MM=wM?Symbol.for("mui.nested"):"__THEME_NESTED__";function EM(t,n){return typeof n=="function"?n(t):{...t,...n}}function OM(t){const{children:n,theme:i}=t,a=wm(),o=Y.useMemo(()=>{const s=a===null?{...i}:EM(a,i);return s!=null&&(s[MM]=a!==null),s},[i,a]);return H.jsx(sx.Provider,{value:o,children:n})}const cx=Y.createContext();function _M({value:t,...n}){return H.jsx(cx.Provider,{value:t??!0,...n})}const Mm=()=>Y.useContext(cx)??!1,fx=Y.createContext(void 0);function RM({value:t,children:n}){return H.jsx(fx.Provider,{value:t,children:n})}function kM(t){const{theme:n,name:i,props:a}=t;if(!n||!n.components||!n.components[i])return a;const o=n.components[i];return o.defaultProps?Fa(o.defaultProps,a):!o.styleOverrides&&!o.variants?Fa(o,a):a}function DM({props:t,name:n}){const i=Y.useContext(fx);return kM({props:t,name:n,theme:{components:i}})}const G1={};function q1(t,n,i,a=!1){return Y.useMemo(()=>{const o=t&&n[t]||n;if(typeof i=="function"){const s=i(o),c=t?{...n,[t]:s}:s;return a?()=>c:c}return t?{...n,[t]:i}:{...n,...i}},[t,n,i,a])}function dx(t){const{children:n,theme:i,themeId:a}=t,o=rx(G1),s=wm()||G1,c=q1(a,o,i),f=q1(a,s,i,!0),m=(a?c[a]:c).direction==="rtl";return H.jsx(OM,{theme:f,children:H.jsx(Io.Provider,{value:c,children:H.jsx(_M,{value:m,children:H.jsx(RM,{value:a?c[a].components:c.components,children:n})})})})}const I1={theme:void 0};function zM(t){let n,i;return function(o){let s=n;return(s===void 0||o.theme!==i)&&(I1.theme=o.theme,s=lx(t(I1)),n=s,i=o.theme),s}}const Em="mode",Om="color-scheme",NM="data-color-scheme";function UM(t){const{defaultMode:n="system",defaultLightColorScheme:i="light",defaultDarkColorScheme:a="dark",modeStorageKey:o=Em,colorSchemeStorageKey:s=Om,attribute:c=NM,colorSchemeNode:f="document.documentElement",nonce:m}=t||{};let h="",p=c;if(c==="class"&&(p=".%s"),c==="data"&&(p="[data-%s]"),p.startsWith(".")){const v=p.substring(1);h+=`${f}.classList.remove('${v}'.replace('%s', light), '${v}'.replace('%s', dark)); 64 + */var $1;function iw(){if($1)return Vt;$1=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function x(S){if(typeof S=="object"&&S!==null){var C=S.$$typeof;switch(C){case t:switch(S=S.type,S){case i:case o:case a:case m:case h:case v:return S;default:switch(S=S&&S.$$typeof,S){case c:case f:case y:case p:return S;case u:return S;default:return C}}case n:return C}}}return Vt.ContextConsumer=u,Vt.ContextProvider=c,Vt.Element=t,Vt.ForwardRef=f,Vt.Fragment=i,Vt.Lazy=y,Vt.Memo=p,Vt.Portal=n,Vt.Profiler=o,Vt.StrictMode=a,Vt.Suspense=m,Vt.SuspenseList=h,Vt.isContextConsumer=function(S){return x(S)===u},Vt.isContextProvider=function(S){return x(S)===c},Vt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Vt.isForwardRef=function(S){return x(S)===f},Vt.isFragment=function(S){return x(S)===i},Vt.isLazy=function(S){return x(S)===y},Vt.isMemo=function(S){return x(S)===p},Vt.isPortal=function(S){return x(S)===n},Vt.isProfiler=function(S){return x(S)===o},Vt.isStrictMode=function(S){return x(S)===a},Vt.isSuspense=function(S){return x(S)===m},Vt.isSuspenseList=function(S){return x(S)===h},Vt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===i||S===o||S===a||S===m||S===h||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===p||S.$$typeof===c||S.$$typeof===u||S.$$typeof===f||S.$$typeof===b||S.getModuleId!==void 0)},Vt.typeOf=x,Vt}var B1;function aw(){return B1||(B1=1,uh.exports=iw()),uh.exports}var Jb=aw();function Jn(t){if(typeof t!="object"||t===null)return!1;const n=Object.getPrototypeOf(t);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function tx(t){if(Y.isValidElement(t)||Jb.isValidElementType(t)||!Jn(t))return t;const n={};return Object.keys(t).forEach(i=>{n[i]=tx(t[i])}),n}function dn(t,n,i={clone:!0}){const a=i.clone?{...t}:t;return Jn(t)&&Jn(n)&&Object.keys(n).forEach(o=>{Y.isValidElement(n[o])||Jb.isValidElementType(n[o])?a[o]=n[o]:Jn(n[o])&&Object.prototype.hasOwnProperty.call(t,o)&&Jn(t[o])?a[o]=dn(t[o],n[o],i):i.clone?a[o]=Jn(n[o])?tx(n[o]):n[o]:a[o]=n[o]}),a}const lw=t=>{const n=Object.keys(t).map(i=>({key:i,val:t[i]}))||[];return n.sort((i,a)=>i.val-a.val),n.reduce((i,a)=>({...i,[a.key]:a.val}),{})};function ow(t){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:a=5,...o}=t,u=lw(n),c=Object.keys(u);function f(v){return`@media (min-width:${typeof n[v]=="number"?n[v]:v}${i})`}function m(v){return`@media (max-width:${(typeof n[v]=="number"?n[v]:v)-a/100}${i})`}function h(v,b){const x=c.indexOf(b);return`@media (min-width:${typeof n[v]=="number"?n[v]:v}${i}) and (max-width:${(x!==-1&&typeof n[c[x]]=="number"?n[c[x]]:b)-a/100}${i})`}function p(v){return c.indexOf(v)+1<c.length?h(v,c[c.indexOf(v)+1]):f(v)}function y(v){const b=c.indexOf(v);return b===0?f(c[1]):b===c.length-1?m(c[b]):h(v,c[c.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:c,values:u,up:f,down:m,between:h,only:p,not:y,unit:i,...o}}function sw(t,n){if(!t.containerQueries)return n;const i=Object.keys(n).filter(a=>a.startsWith("@container")).sort((a,o)=>{var c,f;const u=/min-width:\s*([0-9.]+)/;return+(((c=a.match(u))==null?void 0:c[1])||0)-+(((f=o.match(u))==null?void 0:f[1])||0)});return i.length?i.reduce((a,o)=>{const u=n[o];return delete a[o],a[o]=u,a},{...n}):n}function uw(t,n){return n==="@"||n.startsWith("@")&&(t.some(i=>n.startsWith(`@${i}`))||!!n.match(/^@\d/))}function cw(t,n){const i=n.match(/^@([^/]+)?\/?(.+)?$/);if(!i)return null;const[,a,o]=i,u=Number.isNaN(+a)?a||0:+a;return t.containerQueries(o).up(u)}function fw(t){const n=(u,c)=>u.replace("@media",c?`@container ${c}`:"@container");function i(u,c){u.up=(...f)=>n(t.breakpoints.up(...f),c),u.down=(...f)=>n(t.breakpoints.down(...f),c),u.between=(...f)=>n(t.breakpoints.between(...f),c),u.only=(...f)=>n(t.breakpoints.only(...f),c),u.not=(...f)=>{const m=n(t.breakpoints.not(...f),c);return m.includes("not all and")?m.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):m}}const a={},o=u=>(i(a,u),a);return i(o),{...t,containerQueries:o}}const dw={borderRadius:4};function Oo(t,n){return n?dn(t,n,{clone:!1}):t}const uc={xs:0,sm:600,md:900,lg:1200,xl:1536},L1={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${uc[t]}px)`},hw={containerQueries:t=>({up:n=>{let i=typeof n=="number"?n:uc[n]||n;return typeof i=="number"&&(i=`${i}px`),t?`@container ${t} (min-width:${i})`:`@container (min-width:${i})`}})};function _r(t,n,i){const a=t.theme||{};if(Array.isArray(n)){const u=a.breakpoints||L1;return n.reduce((c,f,m)=>(c[u.up(u.keys[m])]=i(n[m]),c),{})}if(typeof n=="object"){const u=a.breakpoints||L1;return Object.keys(n).reduce((c,f)=>{if(uw(u.keys,f)){const m=cw(a.containerQueries?a:hw,f);m&&(c[m]=i(n[f],f))}else if(Object.keys(u.values||uc).includes(f)){const m=u.up(f);c[m]=i(n[f],f)}else{const m=f;c[m]=n[m]}return c},{})}return i(n)}function mw(t={}){var i;return((i=t.keys)==null?void 0:i.reduce((a,o)=>{const u=t.up(o);return a[u]={},a},{}))||{}}function gw(t,n){return t.reduce((i,a)=>{const o=i[a];return(!o||Object.keys(o).length===0)&&delete i[a],i},n)}function No(t){if(typeof t!="string")throw new Error(ji(7));return t.charAt(0).toUpperCase()+t.slice(1)}function cc(t,n,i=!0){if(!n||typeof n!="string")return null;if(t&&t.vars&&i){const a=`vars.${n}`.split(".").reduce((o,u)=>o&&o[u]?o[u]:null,t);if(a!=null)return a}return n.split(".").reduce((a,o)=>a&&a[o]!=null?a[o]:null,t)}function ju(t,n,i,a=i){let o;return typeof t=="function"?o=t(i):Array.isArray(t)?o=t[i]||a:o=cc(t,i)||a,n&&(o=n(o,a,t)),o}function de(t){const{prop:n,cssProperty:i=t.prop,themeKey:a,transform:o}=t,u=c=>{if(c[n]==null)return null;const f=c[n],m=c.theme,h=cc(m,a)||{};return _r(c,f,y=>{let v=ju(h,o,y);return y===v&&typeof y=="string"&&(v=ju(h,o,`${n}${y==="default"?"":No(y)}`,y)),i===!1?v:{[i]:v}})};return u.propTypes={},u.filterProps=[n],u}function pw(t){const n={};return i=>(n[i]===void 0&&(n[i]=t(i)),n[i])}const yw={m:"margin",p:"padding"},vw={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},H1={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bw=pw(t=>{if(t.length>2)if(H1[t])t=H1[t];else return[t];const[n,i]=t.split(""),a=yw[n],o=vw[i]||"";return Array.isArray(o)?o.map(u=>a+u):[a+o]}),ym=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],vm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...ym,...vm];function Vo(t,n,i,a){const o=cc(t,n,!0)??i;return typeof o=="number"||typeof o=="string"?u=>typeof u=="string"?u:typeof o=="string"?o.startsWith("var(")&&u===0?0:o.startsWith("var(")&&u===1?o:`calc(${u} * ${o})`:o*u:Array.isArray(o)?u=>{if(typeof u=="string")return u;const c=Math.abs(u),f=o[c];return u>=0?f:typeof f=="number"?-f:typeof f=="string"&&f.startsWith("var(")?`calc(-1 * ${f})`:`-${f}`}:typeof o=="function"?o:()=>{}}function bm(t){return Vo(t,"spacing",8)}function Xo(t,n){return typeof n=="string"||n==null?n:t(n)}function xw(t,n){return i=>t.reduce((a,o)=>(a[o]=Xo(n,i),a),{})}function Sw(t,n,i,a){if(!n.includes(i))return null;const o=bw(i),u=xw(o,a),c=t[i];return _r(t,c,u)}function ex(t,n){const i=bm(t.theme);return Object.keys(t).map(a=>Sw(t,n,a,i)).reduce(Oo,{})}function oe(t){return ex(t,ym)}oe.propTypes={};oe.filterProps=ym;function se(t){return ex(t,vm)}se.propTypes={};se.filterProps=vm;function nx(t=8,n=bm({spacing:t})){if(t.mui)return t;const i=(...a)=>(a.length===0?[1]:a).map(u=>{const c=n(u);return typeof c=="number"?`${c}px`:c}).join(" ");return i.mui=!0,i}function fc(...t){const n=t.reduce((a,o)=>(o.filterProps.forEach(u=>{a[u]=o}),a),{}),i=a=>Object.keys(a).reduce((o,u)=>n[u]?Oo(o,n[u](a)):o,{});return i.propTypes={},i.filterProps=t.reduce((a,o)=>a.concat(o.filterProps),[]),i}function wn(t){return typeof t!="number"?t:`${t}px solid`}function Dn(t,n){return de({prop:t,themeKey:"borders",transform:n})}const Aw=Dn("border",wn),Tw=Dn("borderTop",wn),Cw=Dn("borderRight",wn),ww=Dn("borderBottom",wn),Mw=Dn("borderLeft",wn),Ew=Dn("borderColor"),Ow=Dn("borderTopColor"),Rw=Dn("borderRightColor"),_w=Dn("borderBottomColor"),kw=Dn("borderLeftColor"),Dw=Dn("outline",wn),zw=Dn("outlineColor"),dc=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const n=Vo(t.theme,"shape.borderRadius",4),i=a=>({borderRadius:Xo(n,a)});return _r(t,t.borderRadius,i)}return null};dc.propTypes={};dc.filterProps=["borderRadius"];fc(Aw,Tw,Cw,ww,Mw,Ew,Ow,Rw,_w,kw,dc,Dw,zw);const hc=t=>{if(t.gap!==void 0&&t.gap!==null){const n=Vo(t.theme,"spacing",8),i=a=>({gap:Xo(n,a)});return _r(t,t.gap,i)}return null};hc.propTypes={};hc.filterProps=["gap"];const mc=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const n=Vo(t.theme,"spacing",8),i=a=>({columnGap:Xo(n,a)});return _r(t,t.columnGap,i)}return null};mc.propTypes={};mc.filterProps=["columnGap"];const gc=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const n=Vo(t.theme,"spacing",8),i=a=>({rowGap:Xo(n,a)});return _r(t,t.rowGap,i)}return null};gc.propTypes={};gc.filterProps=["rowGap"];const Nw=de({prop:"gridColumn"}),Uw=de({prop:"gridRow"}),jw=de({prop:"gridAutoFlow"}),$w=de({prop:"gridAutoColumns"}),Bw=de({prop:"gridAutoRows"}),Lw=de({prop:"gridTemplateColumns"}),Hw=de({prop:"gridTemplateRows"}),Yw=de({prop:"gridTemplateAreas"}),Gw=de({prop:"gridArea"});fc(hc,mc,gc,Nw,Uw,jw,$w,Bw,Lw,Hw,Yw,Gw);function Pa(t,n){return n==="grey"?n:t}const qw=de({prop:"color",themeKey:"palette",transform:Pa}),Iw=de({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Pa}),Vw=de({prop:"backgroundColor",themeKey:"palette",transform:Pa});fc(qw,Iw,Vw);function cn(t){return t<=1&&t!==0?`${t*100}%`:t}const Xw=de({prop:"width",transform:cn}),xm=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const n=i=>{var o,u,c,f,m;const a=((c=(u=(o=t.theme)==null?void 0:o.breakpoints)==null?void 0:u.values)==null?void 0:c[i])||uc[i];return a?((m=(f=t.theme)==null?void 0:f.breakpoints)==null?void 0:m.unit)!=="px"?{maxWidth:`${a}${t.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:cn(i)}};return _r(t,t.maxWidth,n)}return null};xm.filterProps=["maxWidth"];const Pw=de({prop:"minWidth",transform:cn}),Zw=de({prop:"height",transform:cn}),Qw=de({prop:"maxHeight",transform:cn}),Kw=de({prop:"minHeight",transform:cn});de({prop:"size",cssProperty:"width",transform:cn});de({prop:"size",cssProperty:"height",transform:cn});const Fw=de({prop:"boxSizing"});fc(Xw,xm,Pw,Zw,Qw,Kw,Fw);const Po={border:{themeKey:"borders",transform:wn},borderTop:{themeKey:"borders",transform:wn},borderRight:{themeKey:"borders",transform:wn},borderBottom:{themeKey:"borders",transform:wn},borderLeft:{themeKey:"borders",transform:wn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:dc},color:{themeKey:"palette",transform:Pa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Pa},backgroundColor:{themeKey:"palette",transform:Pa},p:{style:se},pt:{style:se},pr:{style:se},pb:{style:se},pl:{style:se},px:{style:se},py:{style:se},padding:{style:se},paddingTop:{style:se},paddingRight:{style:se},paddingBottom:{style:se},paddingLeft:{style:se},paddingX:{style:se},paddingY:{style:se},paddingInline:{style:se},paddingInlineStart:{style:se},paddingInlineEnd:{style:se},paddingBlock:{style:se},paddingBlockStart:{style:se},paddingBlockEnd:{style:se},m:{style:oe},mt:{style:oe},mr:{style:oe},mb:{style:oe},ml:{style:oe},mx:{style:oe},my:{style:oe},margin:{style:oe},marginTop:{style:oe},marginRight:{style:oe},marginBottom:{style:oe},marginLeft:{style:oe},marginX:{style:oe},marginY:{style:oe},marginInline:{style:oe},marginInlineStart:{style:oe},marginInlineEnd:{style:oe},marginBlock:{style:oe},marginBlockStart:{style:oe},marginBlockEnd:{style:oe},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:hc},rowGap:{style:gc},columnGap:{style:mc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:cn},maxWidth:{style:xm},minWidth:{transform:cn},height:{transform:cn},maxHeight:{transform:cn},minHeight:{transform:cn},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 Ww(...t){const n=t.reduce((a,o)=>a.concat(Object.keys(o)),[]),i=new Set(n);return t.every(a=>i.size===Object.keys(a).length)}function Jw(t,n){return typeof t=="function"?t(n):t}function tM(){function t(i,a,o,u){const c={[i]:a,theme:o},f=u[i];if(!f)return{[i]:a};const{cssProperty:m=i,themeKey:h,transform:p,style:y}=f;if(a==null)return null;if(h==="typography"&&a==="inherit")return{[i]:a};const v=cc(o,h)||{};return y?y(c):_r(c,a,x=>{let S=ju(v,p,x);return x===S&&typeof x=="string"&&(S=ju(v,p,`${i}${x==="default"?"":No(x)}`,x)),m===!1?S:{[m]:S}})}function n(i){const{sx:a,theme:o={}}=i||{};if(!a)return null;const u=o.unstable_sxConfig??Po;function c(f){let m=f;if(typeof f=="function")m=f(o);else if(typeof f!="object")return f;if(!m)return null;const h=mw(o.breakpoints),p=Object.keys(h);let y=h;return Object.keys(m).forEach(v=>{const b=Jw(m[v],o);if(b!=null)if(typeof b=="object")if(u[v])y=Oo(y,t(v,b,o,u));else{const x=_r({theme:o},b,S=>({[v]:S}));Ww(x,b)?y[v]=n({sx:b,theme:o}):y=Oo(y,x)}else y=Oo(y,t(v,b,o,u))}),sw(o,gw(p,y))}return Array.isArray(a)?a.map(c):c(a)}return n}const $i=tM();$i.filterProps=["sx"];function eM(t,n){var a;const i=this;if(i.vars){if(!((a=i.colorSchemes)!=null&&a[t])||typeof i.getColorSchemeSelector!="function")return{};let o=i.getColorSchemeSelector(t);return o==="&"?n:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:n})}return i.palette.mode===t?n:{}}function Sm(t={},...n){const{breakpoints:i={},palette:a={},spacing:o,shape:u={},...c}=t,f=ow(i),m=nx(o);let h=dn({breakpoints:f,direction:"ltr",components:{},palette:{mode:"light",...a},spacing:m,shape:{...dw,...u}},c);return h=fw(h),h.applyStyles=eM,h=n.reduce((p,y)=>dn(p,y),h),h.unstable_sxConfig={...Po,...c==null?void 0:c.unstable_sxConfig},h.unstable_sx=function(y){return $i({sx:y,theme:this})},h}function nM(t){return Object.keys(t).length===0}function rx(t=null){const n=Y.useContext(Io);return!n||nM(n)?t:n}const rM=Sm();function ix(t=rM){return rx(t)}const iM=t=>{var a;const n={systemProps:{},otherProps:{}},i=((a=t==null?void 0:t.theme)==null?void 0:a.unstable_sxConfig)??Po;return Object.keys(t).forEach(o=>{i[o]?n.systemProps[o]=t[o]:n.otherProps[o]=t[o]}),n};function aM(t){const{sx:n,...i}=t,{systemProps:a,otherProps:o}=iM(i);let u;return Array.isArray(n)?u=[a,...n]:typeof n=="function"?u=(...c)=>{const f=n(...c);return Jn(f)?{...a,...f}:a}:u={...a,...n},{...o,sx:u}}const Y1=t=>t,lM=()=>{let t=Y1;return{configure(n){t=n},generate(n){return t(n)},reset(){t=Y1}}},oM=lM();function ax(t){var n,i,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(i=ax(t[n]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function Mn(){for(var t,n,i=0,a="",o=arguments.length;i<o;i++)(t=arguments[i])&&(n=ax(t))&&(a&&(a+=" "),a+=n);return a}const sM={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 zn(t,n,i="Mui"){const a=sM[n];return a?`${i}-${a}`:`${oM.generate(t)}-${n}`}function qn(t,n,i="Mui"){const a={};return n.forEach(o=>{a[o]=zn(t,o,i)}),a}function lx(t){const{variants:n,...i}=t,a={variants:n,style:j1(i),isProcessed:!0};return a.style===i||n&&n.forEach(o=>{typeof o.style!="function"&&(o.style=j1(o.style))}),a}const uM=Sm();function ch(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function cM(t){return t?(n,i)=>i[t]:null}function fM(t,n,i){t.theme=mM(t.theme)?i:t.theme[n]||t.theme}function Du(t,n){const i=typeof n=="function"?n(t):n;if(Array.isArray(i))return i.flatMap(a=>Du(t,a));if(Array.isArray(i==null?void 0:i.variants)){let a;if(i.isProcessed)a=i.style;else{const{variants:o,...u}=i;a=u}return ox(t,i.variants,[a])}return i!=null&&i.isProcessed?i.style:i}function ox(t,n,i=[]){var o;let a;t:for(let u=0;u<n.length;u+=1){const c=n[u];if(typeof c.props=="function"){if(a??(a={...t,...t.ownerState,ownerState:t.ownerState}),!c.props(a))continue}else for(const f in c.props)if(t[f]!==c.props[f]&&((o=t.ownerState)==null?void 0:o[f])!==c.props[f])continue t;typeof c.style=="function"?(a??(a={...t,...t.ownerState,ownerState:t.ownerState}),i.push(c.style(a))):i.push(c.style)}return i}function dM(t={}){const{themeId:n,defaultTheme:i=uM,rootShouldForwardProp:a=ch,slotShouldForwardProp:o=ch}=t;function u(f){fM(f,n,i)}return(f,m={})=>{rw(f,M=>M.filter(R=>R!==$i));const{name:h,slot:p,skipVariantsResolver:y,skipSx:v,overridesResolver:b=cM(pM(p)),...x}=m,S=y!==void 0?y:p&&p!=="Root"&&p!=="root"||!1,C=v||!1;let E=ch;p==="Root"||p==="root"?E=a:p?E=o:gM(f)&&(E=void 0);const _=nw(f,{shouldForwardProp:E,label:hM(),...x}),O=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function(D){return Du(D,M)};if(Jn(M)){const R=lx(M);return R.variants?function(L){return Du(L,R)}:R.style}return M},k=(...M)=>{const R=[],D=M.map(O),L=[];if(R.push(u),h&&b&&L.push(function(X){var j,P;const it=(P=(j=X.theme.components)==null?void 0:j[h])==null?void 0:P.styleOverrides;if(!it)return null;const ot={};for(const nt in it)ot[nt]=Du(X,it[nt]);return b(X,ot)}),h&&!S&&L.push(function(X){var ot,j;const K=X.theme,it=(j=(ot=K==null?void 0:K.components)==null?void 0:ot[h])==null?void 0:j.variants;return it?ox(X,it):null}),C||L.push($i),Array.isArray(D[0])){const z=D.shift(),X=new Array(R.length).fill(""),K=new Array(L.length).fill("");let it;it=[...X,...z,...K],it.raw=[...X,...z.raw,...K],R.unshift(it)}const $=[...R,...D,...L],T=_(...$);return f.muiName&&(T.muiName=f.muiName),T};return _.withConfig&&(k.withConfig=_.withConfig),k}}function hM(t,n){return void 0}function mM(t){for(const n in t)return!1;return!0}function gM(t){return typeof t=="string"&&t.charCodeAt(0)>96}function pM(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function Fa(t,n){const i={...n};for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)){const o=a;if(o==="components"||o==="slots")i[o]={...t[o],...i[o]};else if(o==="componentsProps"||o==="slotProps"){const u=t[o],c=n[o];if(!c)i[o]=u||{};else if(!u)i[o]=c;else{i[o]={...c};for(const f in u)if(Object.prototype.hasOwnProperty.call(u,f)){const m=f;i[o][m]=Fa(u[m],c[m])}}}else i[o]===void 0&&(i[o]=t[o])}return i}function yM(t){const{theme:n,name:i,props:a}=t;return!n||!n.components||!n.components[i]||!n.components[i].defaultProps?a:Fa(n.components[i].defaultProps,a)}function vM({props:t,name:n,defaultTheme:i,themeId:a}){let o=ix(i);return o=o[a]||o,yM({theme:o,name:n,props:t})}const Ye=typeof window<"u"?Y.useLayoutEffect:Y.useEffect;function bM(t,n=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(t,i))}function Am(t,n=0,i=1){return bM(t,n,i)}function xM(t){t=t.slice(1);const n=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let i=t.match(n);return i&&i[0].length===1&&(i=i.map(a=>a+a)),i?`rgb${i.length===4?"a":""}(${i.map((a,o)=>o<3?parseInt(a,16):Math.round(parseInt(a,16)/255*1e3)/1e3).join(", ")})`:""}function ui(t){if(t.type)return t;if(t.charAt(0)==="#")return ui(xM(t));const n=t.indexOf("("),i=t.substring(0,n);if(!["rgb","rgba","hsl","hsla","color"].includes(i))throw new Error(ji(9,t));let a=t.substring(n+1,t.length-1),o;if(i==="color"){if(a=a.split(" "),o=a.shift(),a.length===4&&a[3].charAt(0)==="/"&&(a[3]=a[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(ji(10,o))}else a=a.split(",");return a=a.map(u=>parseFloat(u)),{type:i,values:a,colorSpace:o}}const SM=t=>{const n=ui(t);return n.values.slice(0,3).map((i,a)=>n.type.includes("hsl")&&a!==0?`${i}%`:i).join(" ")},To=(t,n)=>{try{return SM(t)}catch{return t}};function pc(t){const{type:n,colorSpace:i}=t;let{values:a}=t;return n.includes("rgb")?a=a.map((o,u)=>u<3?parseInt(o,10):o):n.includes("hsl")&&(a[1]=`${a[1]}%`,a[2]=`${a[2]}%`),n.includes("color")?a=`${i} ${a.join(" ")}`:a=`${a.join(", ")}`,`${n}(${a})`}function sx(t){t=ui(t);const{values:n}=t,i=n[0],a=n[1]/100,o=n[2]/100,u=a*Math.min(o,1-o),c=(h,p=(h+i/30)%12)=>o-u*Math.max(Math.min(p-3,9-p,1),-1);let f="rgb";const m=[Math.round(c(0)*255),Math.round(c(8)*255),Math.round(c(4)*255)];return t.type==="hsla"&&(f+="a",m.push(n[3])),pc({type:f,values:m})}function qh(t){t=ui(t);let n=t.type==="hsl"||t.type==="hsla"?ui(sx(t)).values:t.values;return n=n.map(i=>(t.type!=="color"&&(i/=255),i<=.03928?i/12.92:((i+.055)/1.055)**2.4)),Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function AM(t,n){const i=qh(t),a=qh(n);return(Math.max(i,a)+.05)/(Math.min(i,a)+.05)}function TM(t,n){return t=ui(t),n=Am(n),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${n}`:t.values[3]=n,pc(t)}function yu(t,n,i){try{return TM(t,n)}catch{return t}}function Tm(t,n){if(t=ui(t),n=Am(n),t.type.includes("hsl"))t.values[2]*=1-n;else if(t.type.includes("rgb")||t.type.includes("color"))for(let i=0;i<3;i+=1)t.values[i]*=1-n;return pc(t)}function Pt(t,n,i){try{return Tm(t,n)}catch{return t}}function Cm(t,n){if(t=ui(t),n=Am(n),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*n;else if(t.type.includes("rgb"))for(let i=0;i<3;i+=1)t.values[i]+=(255-t.values[i])*n;else if(t.type.includes("color"))for(let i=0;i<3;i+=1)t.values[i]+=(1-t.values[i])*n;return pc(t)}function Zt(t,n,i){try{return Cm(t,n)}catch{return t}}function CM(t,n=.15){return qh(t)>.5?Tm(t,n):Cm(t,n)}function vu(t,n,i){try{return CM(t,n)}catch{return t}}const ux=Y.createContext(null);function wm(){return Y.useContext(ux)}const wM=typeof Symbol=="function"&&Symbol.for,MM=wM?Symbol.for("mui.nested"):"__THEME_NESTED__";function EM(t,n){return typeof n=="function"?n(t):{...t,...n}}function OM(t){const{children:n,theme:i}=t,a=wm(),o=Y.useMemo(()=>{const u=a===null?{...i}:EM(a,i);return u!=null&&(u[MM]=a!==null),u},[i,a]);return H.jsx(ux.Provider,{value:o,children:n})}const cx=Y.createContext();function RM({value:t,...n}){return H.jsx(cx.Provider,{value:t??!0,...n})}const Mm=()=>Y.useContext(cx)??!1,fx=Y.createContext(void 0);function _M({value:t,children:n}){return H.jsx(fx.Provider,{value:t,children:n})}function kM(t){const{theme:n,name:i,props:a}=t;if(!n||!n.components||!n.components[i])return a;const o=n.components[i];return o.defaultProps?Fa(o.defaultProps,a):!o.styleOverrides&&!o.variants?Fa(o,a):a}function DM({props:t,name:n}){const i=Y.useContext(fx);return kM({props:t,name:n,theme:{components:i}})}const G1={};function q1(t,n,i,a=!1){return Y.useMemo(()=>{const o=t&&n[t]||n;if(typeof i=="function"){const u=i(o),c=t?{...n,[t]:u}:u;return a?()=>c:c}return t?{...n,[t]:i}:{...n,...i}},[t,n,i,a])}function dx(t){const{children:n,theme:i,themeId:a}=t,o=rx(G1),u=wm()||G1,c=q1(a,o,i),f=q1(a,u,i,!0),m=(a?c[a]:c).direction==="rtl";return H.jsx(OM,{theme:f,children:H.jsx(Io.Provider,{value:c,children:H.jsx(RM,{value:m,children:H.jsx(_M,{value:a?c[a].components:c.components,children:n})})})})}const I1={theme:void 0};function zM(t){let n,i;return function(o){let u=n;return(u===void 0||o.theme!==i)&&(I1.theme=o.theme,u=lx(t(I1)),n=u,i=o.theme),u}}const Em="mode",Om="color-scheme",NM="data-color-scheme";function UM(t){const{defaultMode:n="system",defaultLightColorScheme:i="light",defaultDarkColorScheme:a="dark",modeStorageKey:o=Em,colorSchemeStorageKey:u=Om,attribute:c=NM,colorSchemeNode:f="document.documentElement",nonce:m}=t||{};let h="",p=c;if(c==="class"&&(p=".%s"),c==="data"&&(p="[data-%s]"),p.startsWith(".")){const v=p.substring(1);h+=`${f}.classList.remove('${v}'.replace('%s', light), '${v}'.replace('%s', dark)); 65 65 ${f}.classList.add('${v}'.replace('%s', colorScheme));`}const y=p.match(/\[([^\]]+)\]/);if(y){const[v,b]=y[1].split("=");b||(h+=`${f}.removeAttribute('${v}'.replace('%s', light)); 66 66 ${f}.removeAttribute('${v}'.replace('%s', dark));`),h+=` 67 67 ${f}.setAttribute('${v}'.replace('%s', colorScheme), ${b?`${b}.replace('%s', colorScheme)`:'""'});`}else h+=`${f}.setAttribute('${p}', colorScheme);`;return H.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(function() { 68 68 try { 69 69 let colorScheme = ''; 70 70 const mode = localStorage.getItem('${o}') || '${n}'; 71 - const dark = localStorage.getItem('${s}-dark') || '${a}'; 72 - const light = localStorage.getItem('${s}-light') || '${i}'; 71 + const dark = localStorage.getItem('${u}-dark') || '${a}'; 72 + const light = localStorage.getItem('${u}-light') || '${i}'; 73 73 if (mode === 'system') { 74 74 // handle system mode 75 75 const mql = window.matchMedia('(prefers-color-scheme: dark)'); ··· 88 88 if (colorScheme) { 89 89 ${h} 90 90 } 91 - } catch(e){}})();`}},"mui-color-scheme-init")}function jM(){}const $M=({key:t,storageWindow:n})=>(!n&&typeof window<"u"&&(n=window),{get(i){if(typeof window>"u")return;if(!n)return i;let a;try{a=n.localStorage.getItem(t)}catch{}return a||i},set:i=>{if(n)try{n.localStorage.setItem(t,i)}catch{}},subscribe:i=>{if(!n)return jM;const a=o=>{const s=o.newValue;o.key===t&&i(s)};return n.addEventListener("storage",a),()=>{n.removeEventListener("storage",a)}}});function fh(){}function V1(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function hx(t,n){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return n("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return n("dark")}function BM(t){return hx(t,n=>{if(n==="light")return t.lightColorScheme;if(n==="dark")return t.darkColorScheme})}function LM(t){const{defaultMode:n="light",defaultLightColorScheme:i,defaultDarkColorScheme:a,supportedColorSchemes:o=[],modeStorageKey:s=Em,colorSchemeStorageKey:c=Om,storageWindow:f=typeof window>"u"?void 0:window,storageManager:m=$M,noSsr:h=!1}=t,p=o.join(","),y=o.length>1,v=Y.useMemo(()=>m==null?void 0:m({key:s,storageWindow:f}),[m,s,f]),b=Y.useMemo(()=>m==null?void 0:m({key:`${c}-light`,storageWindow:f}),[m,c,f]),x=Y.useMemo(()=>m==null?void 0:m({key:`${c}-dark`,storageWindow:f}),[m,c,f]),[S,C]=Y.useState(()=>{const L=(v==null?void 0:v.get(n))||n,$=(b==null?void 0:b.get(i))||i,T=(x==null?void 0:x.get(a))||a;return{mode:L,systemMode:V1(L),lightColorScheme:$,darkColorScheme:T}}),[E,R]=Y.useState(h||!y);Y.useEffect(()=>{R(!0)},[]);const O=BM(S),k=Y.useCallback(L=>{C($=>{if(L===$.mode)return $;const T=L??n;return v==null||v.set(T),{...$,mode:T,systemMode:V1(T)}})},[v,n]),M=Y.useCallback(L=>{L?typeof L=="string"?L&&!p.includes(L)?console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`):C($=>{const T={...$};return hx($,z=>{z==="light"&&(b==null||b.set(L),T.lightColorScheme=L),z==="dark"&&(x==null||x.set(L),T.darkColorScheme=L)}),T}):C($=>{const T={...$},z=L.light===null?i:L.light,X=L.dark===null?a:L.dark;return z&&(p.includes(z)?(T.lightColorScheme=z,b==null||b.set(z)):console.error(`\`${z}\` does not exist in \`theme.colorSchemes\`.`)),X&&(p.includes(X)?(T.darkColorScheme=X,x==null||x.set(X)):console.error(`\`${X}\` does not exist in \`theme.colorSchemes\`.`)),T}):C($=>(b==null||b.set(i),x==null||x.set(a),{...$,lightColorScheme:i,darkColorScheme:a}))},[p,b,x,i,a]),_=Y.useCallback(L=>{S.mode==="system"&&C($=>{const T=L!=null&&L.matches?"dark":"light";return $.systemMode===T?$:{...$,systemMode:T}})},[S.mode]),D=Y.useRef(_);return D.current=_,Y.useEffect(()=>{if(typeof window.matchMedia!="function"||!y)return;const L=(...T)=>D.current(...T),$=window.matchMedia("(prefers-color-scheme: dark)");return $.addListener(L),L($),()=>{$.removeListener(L)}},[y]),Y.useEffect(()=>{if(y){const L=(v==null?void 0:v.subscribe(z=>{(!z||["light","dark","system"].includes(z))&&k(z||n)}))||fh,$=(b==null?void 0:b.subscribe(z=>{(!z||p.match(z))&&M({light:z})}))||fh,T=(x==null?void 0:x.subscribe(z=>{(!z||p.match(z))&&M({dark:z})}))||fh;return()=>{L(),$(),T()}}},[M,k,p,n,f,y,v,b,x]),{...S,mode:E?S.mode:void 0,systemMode:E?S.systemMode:void 0,colorScheme:E?O:void 0,setMode:k,setColorScheme:M}}const HM="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function YM(t){const{themeId:n,theme:i={},modeStorageKey:a=Em,colorSchemeStorageKey:o=Om,disableTransitionOnChange:s=!1,defaultColorScheme:c,resolveTheme:f}=t,m={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},h=Y.createContext(void 0),p=()=>Y.useContext(h)||m,y={},v={};function b(E){var Ge,te,_e,Te;const{children:R,theme:O,modeStorageKey:k=a,colorSchemeStorageKey:M=o,disableTransitionOnChange:_=s,storageManager:D,storageWindow:L=typeof window>"u"?void 0:window,documentNode:$=typeof document>"u"?void 0:document,colorSchemeNode:T=typeof document>"u"?void 0:document.documentElement,disableNestedContext:z=!1,disableStyleSheetGeneration:X=!1,defaultMode:K="system",forceThemeRerender:it=!1,noSsr:ot}=E,j=Y.useRef(!1),P=wm(),nt=Y.useContext(h),ut=!!nt&&!z,N=Y.useMemo(()=>O||(typeof i=="function"?i():i),[O]),F=N[n],at=F||N,{colorSchemes:lt=y,components:ct=v,cssVarPrefix:yt}=at,dt=Object.keys(lt).filter(Ne=>!!lt[Ne]).join(","),gt=Y.useMemo(()=>dt.split(","),[dt]),mt=typeof c=="string"?c:c.light,st=typeof c=="string"?c:c.dark,xt=lt[mt]&&lt[st]?K:((te=(Ge=lt[at.defaultColorScheme])==null?void 0:Ge.palette)==null?void 0:te.mode)||((_e=at.palette)==null?void 0:_e.mode),{mode:bt,setMode:rt,systemMode:Rt,lightColorScheme:vt,darkColorScheme:Bt,colorScheme:Wt,setColorScheme:Yt}=LM({supportedColorSchemes:gt,defaultLightColorScheme:mt,defaultDarkColorScheme:st,modeStorageKey:k,colorSchemeStorageKey:M,defaultMode:xt,storageManager:D,storageWindow:L,noSsr:ot});let Ae=bt,se=Wt;ut&&(Ae=nt.mode,se=nt.colorScheme);let me=se||at.defaultColorScheme;at.vars&&!it&&(me=at.defaultColorScheme);const Kt=Y.useMemo(()=>{var lr;const Ne=((lr=at.generateThemeVars)==null?void 0:lr.call(at))||at.vars,re={...at,components:ct,colorSchemes:lt,cssVarPrefix:yt,vars:Ne};if(typeof re.generateSpacing=="function"&&(re.spacing=re.generateSpacing()),me){const qe=lt[me];qe&&typeof qe=="object"&&Object.keys(qe).forEach(Ue=>{qe[Ue]&&typeof qe[Ue]=="object"?re[Ue]={...re[Ue],...qe[Ue]}:re[Ue]=qe[Ue]})}return f?f(re):re},[at,me,ct,lt,yt]),Xe=at.colorSchemeSelector;Ye(()=>{if(se&&T&&Xe&&Xe!=="media"){const Ne=Xe;let re=Xe;if(Ne==="class"&&(re=".%s"),Ne==="data"&&(re="[data-%s]"),Ne!=null&&Ne.startsWith("data-")&&!Ne.includes("%s")&&(re=`[${Ne}="%s"]`),re.startsWith("."))T.classList.remove(...gt.map(lr=>re.substring(1).replace("%s",lr))),T.classList.add(re.substring(1).replace("%s",se));else{const lr=re.replace("%s",se).match(/\[([^\]]+)\]/);if(lr){const[qe,Ue]=lr[1].split("=");Ue||gt.forEach(or=>{T.removeAttribute(qe.replace(se,or))}),T.setAttribute(qe,Ue?Ue.replace(/"|'/g,""):"")}else T.setAttribute(re,se)}}},[se,Xe,T,gt]),Y.useEffect(()=>{let Ne;if(_&&j.current&&$){const re=$.createElement("style");re.appendChild($.createTextNode(HM)),$.head.appendChild(re),window.getComputedStyle($.body),Ne=setTimeout(()=>{$.head.removeChild(re)},1)}return()=>{clearTimeout(Ne)}},[se,_,$]),Y.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);const mn=Y.useMemo(()=>({allColorSchemes:gt,colorScheme:se,darkColorScheme:Bt,lightColorScheme:vt,mode:Ae,setColorScheme:Yt,setMode:rt,systemMode:Rt}),[gt,se,Bt,vt,Ae,Yt,rt,Rt,Kt.colorSchemeSelector]);let gn=!0;(X||at.cssVariables===!1||ut&&(P==null?void 0:P.cssVarPrefix)===yt)&&(gn=!1);const Un=H.jsxs(Y.Fragment,{children:[H.jsx(dx,{themeId:F?n:void 0,theme:Kt,children:R}),gn&&H.jsx(ew,{styles:((Te=Kt.generateStyleSheets)==null?void 0:Te.call(Kt))||[]})]});return ut?Un:H.jsx(h.Provider,{value:mn,children:Un})}const x=typeof c=="string"?c:c.light,S=typeof c=="string"?c:c.dark;return{CssVarsProvider:b,useColorScheme:p,getInitColorSchemeScript:E=>UM({colorSchemeStorageKey:o,defaultLightColorScheme:x,defaultDarkColorScheme:S,modeStorageKey:a,...E})}}function GM(t=""){function n(...a){if(!a.length)return"";const o=a[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${n(...a.slice(1))})`:`, ${o}`}return(a,...o)=>`var(--${t?`${t}-`:""}${a}${n(...o)})`}const X1=(t,n,i,a=[])=>{let o=t;n.forEach((s,c)=>{c===n.length-1?Array.isArray(o)?o[Number(s)]=i:o&&typeof o=="object"&&(o[s]=i):o&&typeof o=="object"&&(o[s]||(o[s]=a.includes(s)?[]:{}),o=o[s])})},qM=(t,n,i)=>{function a(o,s=[],c=[]){Object.entries(o).forEach(([f,m])=>{(!i||i&&!i([...s,f]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?a(m,[...s,f],Array.isArray(m)?[...c,f]:c):n([...s,f],m,c))})}a(t)},IM=(t,n)=>typeof n=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(a=>t.includes(a))||t[t.length-1].toLowerCase().includes("opacity")?n:`${n}px`:n;function dh(t,n){const{prefix:i,shouldSkipGeneratingVar:a}=n||{},o={},s={},c={};return qM(t,(f,m,h)=>{if((typeof m=="string"||typeof m=="number")&&(!a||!a(f,m))){const p=`--${i?`${i}-`:""}${f.join("-")}`,y=IM(f,m);Object.assign(o,{[p]:y}),X1(s,f,`var(${p})`,h),X1(c,f,`var(${p}, ${y})`,h)}},f=>f[0]==="vars"),{css:o,vars:s,varsWithDefaults:c}}function VM(t,n={}){const{getSelector:i=C,disableCssColorScheme:a,colorSchemeSelector:o}=n,{colorSchemes:s={},components:c,defaultColorScheme:f="light",...m}=t,{vars:h,css:p,varsWithDefaults:y}=dh(m,n);let v=y;const b={},{[f]:x,...S}=s;if(Object.entries(S||{}).forEach(([O,k])=>{const{vars:M,css:_,varsWithDefaults:D}=dh(k,n);v=dn(v,D),b[O]={css:_,vars:M}}),x){const{css:O,vars:k,varsWithDefaults:M}=dh(x,n);v=dn(v,M),b[f]={css:O,vars:k}}function C(O,k){var _,D;let M=o;if(o==="class"&&(M=".%s"),o==="data"&&(M="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(M=`[${o}="%s"]`),O){if(M==="media")return t.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${((D=(_=s[O])==null?void 0:_.palette)==null?void 0:D.mode)||O})`]:{":root":k}};if(M)return t.defaultColorScheme===O?`:root, ${M.replace("%s",String(O))}`:M.replace("%s",String(O))}return":root"}return{vars:v,generateThemeVars:()=>{let O={...h};return Object.entries(b).forEach(([,{vars:k}])=>{O=dn(O,k)}),O},generateStyleSheets:()=>{var L,$;const O=[],k=t.defaultColorScheme||"light";function M(T,z){Object.keys(z).length&&O.push(typeof T=="string"?{[T]:{...z}}:T)}M(i(void 0,{...p}),p);const{[k]:_,...D}=b;if(_){const{css:T}=_,z=($=(L=s[k])==null?void 0:L.palette)==null?void 0:$.mode,X=!a&&z?{colorScheme:z,...T}:{...T};M(i(k,{...X}),X)}return Object.entries(D).forEach(([T,{css:z}])=>{var it,ot;const X=(ot=(it=s[T])==null?void 0:it.palette)==null?void 0:ot.mode,K=!a&&X?{colorScheme:X,...z}:{...z};M(i(T,{...K}),K)}),O}}}function XM(t){return function(i){return t==="media"?`@media (prefers-color-scheme: ${i})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${i}"] &`:t==="class"?`.${i} &`:t==="data"?`[data-${i}] &`:`${t.replace("%s",i)} &`:"&"}}function Nn(t,n,i=void 0){const a={};for(const o in t){const s=t[o];let c="",f=!0;for(let m=0;m<s.length;m+=1){const h=s[m];h&&(c+=(f===!0?"":" ")+n(h),f=!1,i&&i[h]&&(c+=" "+i[h]))}a[o]=c}return a}const Uo={black:"#000",white:"#fff"},PM={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"},za={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Na={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},po={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ua={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ja={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},$a={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function mx(){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:Uo.white,default:Uo.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 ZM=mx();function gx(){return{text:{primary:Uo.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:Uo.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 P1=gx();function Z1(t,n,i,a){const o=a.light||a,s=a.dark||a*1.5;t[n]||(t.hasOwnProperty(i)?t[n]=t[i]:n==="light"?t.light=Cm(t.main,o):n==="dark"&&(t.dark=Tm(t.main,s)))}function QM(t="light"){return t==="dark"?{main:Ua[200],light:Ua[50],dark:Ua[400]}:{main:Ua[700],light:Ua[400],dark:Ua[800]}}function KM(t="light"){return t==="dark"?{main:za[200],light:za[50],dark:za[400]}:{main:za[500],light:za[300],dark:za[700]}}function FM(t="light"){return t==="dark"?{main:Na[500],light:Na[300],dark:Na[700]}:{main:Na[700],light:Na[400],dark:Na[800]}}function WM(t="light"){return t==="dark"?{main:ja[400],light:ja[300],dark:ja[700]}:{main:ja[700],light:ja[500],dark:ja[900]}}function JM(t="light"){return t==="dark"?{main:$a[400],light:$a[300],dark:$a[700]}:{main:$a[800],light:$a[500],dark:$a[900]}}function tE(t="light"){return t==="dark"?{main:po[400],light:po[300],dark:po[700]}:{main:"#ed6c02",light:po[500],dark:po[900]}}function _m(t){const{mode:n="light",contrastThreshold:i=3,tonalOffset:a=.2,...o}=t,s=t.primary||QM(n),c=t.secondary||KM(n),f=t.error||FM(n),m=t.info||WM(n),h=t.success||JM(n),p=t.warning||tE(n);function y(S){return AM(S,P1.text.primary)>=i?P1.text.primary:ZM.text.primary}const v=({color:S,name:C,mainShade:E=500,lightShade:R=300,darkShade:O=700})=>{if(S={...S},!S.main&&S[E]&&(S.main=S[E]),!S.hasOwnProperty("main"))throw new Error(ji(11,C?` (${C})`:"",E));if(typeof S.main!="string")throw new Error(ji(12,C?` (${C})`:"",JSON.stringify(S.main)));return Z1(S,"light",R,a),Z1(S,"dark",O,a),S.contrastText||(S.contrastText=y(S.main)),S};let b;return n==="light"?b=mx():n==="dark"&&(b=gx()),dn({common:{...Uo},mode:n,primary:v({color:s,name:"primary"}),secondary:v({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:f,name:"error"}),warning:v({color:p,name:"warning"}),info:v({color:m,name:"info"}),success:v({color:h,name:"success"}),grey:PM,contrastThreshold:i,getContrastText:y,augmentColor:v,tonalOffset:a,...b},o)}function eE(t){const n={};return Object.entries(t).forEach(a=>{const[o,s]=a;typeof s=="object"&&(n[o]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),n}function nE(t,n){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...n}}function rE(t){return Math.round(t*1e5)/1e5}const Q1={textTransform:"uppercase"},K1='"Roboto", "Helvetica", "Arial", sans-serif';function px(t,n){const{fontFamily:i=K1,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:f=700,htmlFontSize:m=16,allVariants:h,pxToRem:p,...y}=typeof n=="function"?n(t):n,v=a/14,b=p||(C=>`${C/m*v}rem`),x=(C,E,R,O,k)=>({fontFamily:i,fontWeight:C,fontSize:b(E),lineHeight:R,...i===K1?{letterSpacing:`${rE(O/E)}em`}:{},...k,...h}),S={h1:x(o,96,1.167,-1.5),h2:x(o,60,1.2,-.5),h3:x(s,48,1.167,0),h4:x(s,34,1.235,.25),h5:x(s,24,1.334,0),h6:x(c,20,1.6,.15),subtitle1:x(s,16,1.75,.15),subtitle2:x(c,14,1.57,.1),body1:x(s,16,1.5,.15),body2:x(s,14,1.43,.15),button:x(c,14,1.75,.4,Q1),caption:x(s,12,1.66,.4),overline:x(s,12,2.66,1,Q1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return dn({htmlFontSize:m,pxToRem:b,fontFamily:i,fontSize:a,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:f,...S},y,{clone:!1})}const iE=.2,aE=.14,lE=.12;function ne(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${iE})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${aE})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${lE})`].join(",")}const oE=["none",ne(0,2,1,-1,0,1,1,0,0,1,3,0),ne(0,3,1,-2,0,2,2,0,0,1,5,0),ne(0,3,3,-2,0,3,4,0,0,1,8,0),ne(0,2,4,-1,0,4,5,0,0,1,10,0),ne(0,3,5,-1,0,5,8,0,0,1,14,0),ne(0,3,5,-1,0,6,10,0,0,1,18,0),ne(0,4,5,-2,0,7,10,1,0,2,16,1),ne(0,5,5,-3,0,8,10,1,0,3,14,2),ne(0,5,6,-3,0,9,12,1,0,3,16,2),ne(0,6,6,-3,0,10,14,1,0,4,18,3),ne(0,6,7,-4,0,11,15,1,0,4,20,3),ne(0,7,8,-4,0,12,17,2,0,5,22,4),ne(0,7,8,-4,0,13,19,2,0,5,24,4),ne(0,7,9,-4,0,14,21,2,0,5,26,4),ne(0,8,9,-5,0,15,22,2,0,6,28,5),ne(0,8,10,-5,0,16,24,2,0,6,30,5),ne(0,8,11,-5,0,17,26,2,0,6,32,5),ne(0,9,11,-5,0,18,28,2,0,7,34,6),ne(0,9,12,-6,0,19,29,2,0,7,36,6),ne(0,10,13,-6,0,20,31,3,0,8,38,7),ne(0,10,13,-6,0,21,33,3,0,8,40,7),ne(0,10,14,-6,0,22,35,3,0,8,42,7),ne(0,11,14,-7,0,23,36,3,0,9,44,8),ne(0,11,15,-7,0,24,38,3,0,9,46,8)],uE={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)"},sE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function F1(t){return`${Math.round(t)}ms`}function cE(t){if(!t)return 0;const n=t/36;return Math.min(Math.round((4+15*n**.25+n/5)*10),3e3)}function fE(t){const n={...uE,...t.easing},i={...sE,...t.duration};return{getAutoHeightDuration:cE,create:(o=["all"],s={})=>{const{duration:c=i.standard,easing:f=n.easeInOut,delay:m=0,...h}=s;return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof c=="string"?c:F1(c)} ${f} ${typeof m=="string"?m:F1(m)}`).join(",")},...t,easing:n,duration:i}}const dE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function hE(t){return Jn(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function yx(t={}){const n={...t};function i(a){const o=Object.entries(a);for(let s=0;s<o.length;s++){const[c,f]=o[s];!hE(f)||c.startsWith("unstable_")?delete a[c]:Jn(f)&&(a[c]={...f},i(a[c]))}}return i(n),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles'; 91 + } catch(e){}})();`}},"mui-color-scheme-init")}function jM(){}const $M=({key:t,storageWindow:n})=>(!n&&typeof window<"u"&&(n=window),{get(i){if(typeof window>"u")return;if(!n)return i;let a;try{a=n.localStorage.getItem(t)}catch{}return a||i},set:i=>{if(n)try{n.localStorage.setItem(t,i)}catch{}},subscribe:i=>{if(!n)return jM;const a=o=>{const u=o.newValue;o.key===t&&i(u)};return n.addEventListener("storage",a),()=>{n.removeEventListener("storage",a)}}});function fh(){}function V1(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function hx(t,n){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return n("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return n("dark")}function BM(t){return hx(t,n=>{if(n==="light")return t.lightColorScheme;if(n==="dark")return t.darkColorScheme})}function LM(t){const{defaultMode:n="light",defaultLightColorScheme:i,defaultDarkColorScheme:a,supportedColorSchemes:o=[],modeStorageKey:u=Em,colorSchemeStorageKey:c=Om,storageWindow:f=typeof window>"u"?void 0:window,storageManager:m=$M,noSsr:h=!1}=t,p=o.join(","),y=o.length>1,v=Y.useMemo(()=>m==null?void 0:m({key:u,storageWindow:f}),[m,u,f]),b=Y.useMemo(()=>m==null?void 0:m({key:`${c}-light`,storageWindow:f}),[m,c,f]),x=Y.useMemo(()=>m==null?void 0:m({key:`${c}-dark`,storageWindow:f}),[m,c,f]),[S,C]=Y.useState(()=>{const L=(v==null?void 0:v.get(n))||n,$=(b==null?void 0:b.get(i))||i,T=(x==null?void 0:x.get(a))||a;return{mode:L,systemMode:V1(L),lightColorScheme:$,darkColorScheme:T}}),[E,_]=Y.useState(h||!y);Y.useEffect(()=>{_(!0)},[]);const O=BM(S),k=Y.useCallback(L=>{C($=>{if(L===$.mode)return $;const T=L??n;return v==null||v.set(T),{...$,mode:T,systemMode:V1(T)}})},[v,n]),M=Y.useCallback(L=>{L?typeof L=="string"?L&&!p.includes(L)?console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`):C($=>{const T={...$};return hx($,z=>{z==="light"&&(b==null||b.set(L),T.lightColorScheme=L),z==="dark"&&(x==null||x.set(L),T.darkColorScheme=L)}),T}):C($=>{const T={...$},z=L.light===null?i:L.light,X=L.dark===null?a:L.dark;return z&&(p.includes(z)?(T.lightColorScheme=z,b==null||b.set(z)):console.error(`\`${z}\` does not exist in \`theme.colorSchemes\`.`)),X&&(p.includes(X)?(T.darkColorScheme=X,x==null||x.set(X)):console.error(`\`${X}\` does not exist in \`theme.colorSchemes\`.`)),T}):C($=>(b==null||b.set(i),x==null||x.set(a),{...$,lightColorScheme:i,darkColorScheme:a}))},[p,b,x,i,a]),R=Y.useCallback(L=>{S.mode==="system"&&C($=>{const T=L!=null&&L.matches?"dark":"light";return $.systemMode===T?$:{...$,systemMode:T}})},[S.mode]),D=Y.useRef(R);return D.current=R,Y.useEffect(()=>{if(typeof window.matchMedia!="function"||!y)return;const L=(...T)=>D.current(...T),$=window.matchMedia("(prefers-color-scheme: dark)");return $.addListener(L),L($),()=>{$.removeListener(L)}},[y]),Y.useEffect(()=>{if(y){const L=(v==null?void 0:v.subscribe(z=>{(!z||["light","dark","system"].includes(z))&&k(z||n)}))||fh,$=(b==null?void 0:b.subscribe(z=>{(!z||p.match(z))&&M({light:z})}))||fh,T=(x==null?void 0:x.subscribe(z=>{(!z||p.match(z))&&M({dark:z})}))||fh;return()=>{L(),$(),T()}}},[M,k,p,n,f,y,v,b,x]),{...S,mode:E?S.mode:void 0,systemMode:E?S.systemMode:void 0,colorScheme:E?O:void 0,setMode:k,setColorScheme:M}}const HM="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function YM(t){const{themeId:n,theme:i={},modeStorageKey:a=Em,colorSchemeStorageKey:o=Om,disableTransitionOnChange:u=!1,defaultColorScheme:c,resolveTheme:f}=t,m={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},h=Y.createContext(void 0),p=()=>Y.useContext(h)||m,y={},v={};function b(E){var Ge,te,Re,Te;const{children:_,theme:O,modeStorageKey:k=a,colorSchemeStorageKey:M=o,disableTransitionOnChange:R=u,storageManager:D,storageWindow:L=typeof window>"u"?void 0:window,documentNode:$=typeof document>"u"?void 0:document,colorSchemeNode:T=typeof document>"u"?void 0:document.documentElement,disableNestedContext:z=!1,disableStyleSheetGeneration:X=!1,defaultMode:K="system",forceThemeRerender:it=!1,noSsr:ot}=E,j=Y.useRef(!1),P=wm(),nt=Y.useContext(h),st=!!nt&&!z,N=Y.useMemo(()=>O||(typeof i=="function"?i():i),[O]),F=N[n],at=F||N,{colorSchemes:lt=y,components:ct=v,cssVarPrefix:yt}=at,dt=Object.keys(lt).filter(Ne=>!!lt[Ne]).join(","),gt=Y.useMemo(()=>dt.split(","),[dt]),mt=typeof c=="string"?c:c.light,ut=typeof c=="string"?c:c.dark,xt=lt[mt]&&lt[ut]?K:((te=(Ge=lt[at.defaultColorScheme])==null?void 0:Ge.palette)==null?void 0:te.mode)||((Re=at.palette)==null?void 0:Re.mode),{mode:bt,setMode:rt,systemMode:_t,lightColorScheme:vt,darkColorScheme:Bt,colorScheme:Wt,setColorScheme:Yt}=LM({supportedColorSchemes:gt,defaultLightColorScheme:mt,defaultDarkColorScheme:ut,modeStorageKey:k,colorSchemeStorageKey:M,defaultMode:xt,storageManager:D,storageWindow:L,noSsr:ot});let Ae=bt,ue=Wt;st&&(Ae=nt.mode,ue=nt.colorScheme);let me=ue||at.defaultColorScheme;at.vars&&!it&&(me=at.defaultColorScheme);const Kt=Y.useMemo(()=>{var lr;const Ne=((lr=at.generateThemeVars)==null?void 0:lr.call(at))||at.vars,re={...at,components:ct,colorSchemes:lt,cssVarPrefix:yt,vars:Ne};if(typeof re.generateSpacing=="function"&&(re.spacing=re.generateSpacing()),me){const qe=lt[me];qe&&typeof qe=="object"&&Object.keys(qe).forEach(Ue=>{qe[Ue]&&typeof qe[Ue]=="object"?re[Ue]={...re[Ue],...qe[Ue]}:re[Ue]=qe[Ue]})}return f?f(re):re},[at,me,ct,lt,yt]),Xe=at.colorSchemeSelector;Ye(()=>{if(ue&&T&&Xe&&Xe!=="media"){const Ne=Xe;let re=Xe;if(Ne==="class"&&(re=".%s"),Ne==="data"&&(re="[data-%s]"),Ne!=null&&Ne.startsWith("data-")&&!Ne.includes("%s")&&(re=`[${Ne}="%s"]`),re.startsWith("."))T.classList.remove(...gt.map(lr=>re.substring(1).replace("%s",lr))),T.classList.add(re.substring(1).replace("%s",ue));else{const lr=re.replace("%s",ue).match(/\[([^\]]+)\]/);if(lr){const[qe,Ue]=lr[1].split("=");Ue||gt.forEach(or=>{T.removeAttribute(qe.replace(ue,or))}),T.setAttribute(qe,Ue?Ue.replace(/"|'/g,""):"")}else T.setAttribute(re,ue)}}},[ue,Xe,T,gt]),Y.useEffect(()=>{let Ne;if(R&&j.current&&$){const re=$.createElement("style");re.appendChild($.createTextNode(HM)),$.head.appendChild(re),window.getComputedStyle($.body),Ne=setTimeout(()=>{$.head.removeChild(re)},1)}return()=>{clearTimeout(Ne)}},[ue,R,$]),Y.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);const mn=Y.useMemo(()=>({allColorSchemes:gt,colorScheme:ue,darkColorScheme:Bt,lightColorScheme:vt,mode:Ae,setColorScheme:Yt,setMode:rt,systemMode:_t}),[gt,ue,Bt,vt,Ae,Yt,rt,_t,Kt.colorSchemeSelector]);let gn=!0;(X||at.cssVariables===!1||st&&(P==null?void 0:P.cssVarPrefix)===yt)&&(gn=!1);const Un=H.jsxs(Y.Fragment,{children:[H.jsx(dx,{themeId:F?n:void 0,theme:Kt,children:_}),gn&&H.jsx(ew,{styles:((Te=Kt.generateStyleSheets)==null?void 0:Te.call(Kt))||[]})]});return st?Un:H.jsx(h.Provider,{value:mn,children:Un})}const x=typeof c=="string"?c:c.light,S=typeof c=="string"?c:c.dark;return{CssVarsProvider:b,useColorScheme:p,getInitColorSchemeScript:E=>UM({colorSchemeStorageKey:o,defaultLightColorScheme:x,defaultDarkColorScheme:S,modeStorageKey:a,...E})}}function GM(t=""){function n(...a){if(!a.length)return"";const o=a[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${o}${n(...a.slice(1))})`:`, ${o}`}return(a,...o)=>`var(--${t?`${t}-`:""}${a}${n(...o)})`}const X1=(t,n,i,a=[])=>{let o=t;n.forEach((u,c)=>{c===n.length-1?Array.isArray(o)?o[Number(u)]=i:o&&typeof o=="object"&&(o[u]=i):o&&typeof o=="object"&&(o[u]||(o[u]=a.includes(u)?[]:{}),o=o[u])})},qM=(t,n,i)=>{function a(o,u=[],c=[]){Object.entries(o).forEach(([f,m])=>{(!i||i&&!i([...u,f]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?a(m,[...u,f],Array.isArray(m)?[...c,f]:c):n([...u,f],m,c))})}a(t)},IM=(t,n)=>typeof n=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(a=>t.includes(a))||t[t.length-1].toLowerCase().includes("opacity")?n:`${n}px`:n;function dh(t,n){const{prefix:i,shouldSkipGeneratingVar:a}=n||{},o={},u={},c={};return qM(t,(f,m,h)=>{if((typeof m=="string"||typeof m=="number")&&(!a||!a(f,m))){const p=`--${i?`${i}-`:""}${f.join("-")}`,y=IM(f,m);Object.assign(o,{[p]:y}),X1(u,f,`var(${p})`,h),X1(c,f,`var(${p}, ${y})`,h)}},f=>f[0]==="vars"),{css:o,vars:u,varsWithDefaults:c}}function VM(t,n={}){const{getSelector:i=C,disableCssColorScheme:a,colorSchemeSelector:o}=n,{colorSchemes:u={},components:c,defaultColorScheme:f="light",...m}=t,{vars:h,css:p,varsWithDefaults:y}=dh(m,n);let v=y;const b={},{[f]:x,...S}=u;if(Object.entries(S||{}).forEach(([O,k])=>{const{vars:M,css:R,varsWithDefaults:D}=dh(k,n);v=dn(v,D),b[O]={css:R,vars:M}}),x){const{css:O,vars:k,varsWithDefaults:M}=dh(x,n);v=dn(v,M),b[f]={css:O,vars:k}}function C(O,k){var R,D;let M=o;if(o==="class"&&(M=".%s"),o==="data"&&(M="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(M=`[${o}="%s"]`),O){if(M==="media")return t.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${((D=(R=u[O])==null?void 0:R.palette)==null?void 0:D.mode)||O})`]:{":root":k}};if(M)return t.defaultColorScheme===O?`:root, ${M.replace("%s",String(O))}`:M.replace("%s",String(O))}return":root"}return{vars:v,generateThemeVars:()=>{let O={...h};return Object.entries(b).forEach(([,{vars:k}])=>{O=dn(O,k)}),O},generateStyleSheets:()=>{var L,$;const O=[],k=t.defaultColorScheme||"light";function M(T,z){Object.keys(z).length&&O.push(typeof T=="string"?{[T]:{...z}}:T)}M(i(void 0,{...p}),p);const{[k]:R,...D}=b;if(R){const{css:T}=R,z=($=(L=u[k])==null?void 0:L.palette)==null?void 0:$.mode,X=!a&&z?{colorScheme:z,...T}:{...T};M(i(k,{...X}),X)}return Object.entries(D).forEach(([T,{css:z}])=>{var it,ot;const X=(ot=(it=u[T])==null?void 0:it.palette)==null?void 0:ot.mode,K=!a&&X?{colorScheme:X,...z}:{...z};M(i(T,{...K}),K)}),O}}}function XM(t){return function(i){return t==="media"?`@media (prefers-color-scheme: ${i})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${i}"] &`:t==="class"?`.${i} &`:t==="data"?`[data-${i}] &`:`${t.replace("%s",i)} &`:"&"}}function Nn(t,n,i=void 0){const a={};for(const o in t){const u=t[o];let c="",f=!0;for(let m=0;m<u.length;m+=1){const h=u[m];h&&(c+=(f===!0?"":" ")+n(h),f=!1,i&&i[h]&&(c+=" "+i[h]))}a[o]=c}return a}const Uo={black:"#000",white:"#fff"},PM={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"},za={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Na={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},po={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ua={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},ja={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},$a={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function mx(){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:Uo.white,default:Uo.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 ZM=mx();function gx(){return{text:{primary:Uo.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:Uo.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 P1=gx();function Z1(t,n,i,a){const o=a.light||a,u=a.dark||a*1.5;t[n]||(t.hasOwnProperty(i)?t[n]=t[i]:n==="light"?t.light=Cm(t.main,o):n==="dark"&&(t.dark=Tm(t.main,u)))}function QM(t="light"){return t==="dark"?{main:Ua[200],light:Ua[50],dark:Ua[400]}:{main:Ua[700],light:Ua[400],dark:Ua[800]}}function KM(t="light"){return t==="dark"?{main:za[200],light:za[50],dark:za[400]}:{main:za[500],light:za[300],dark:za[700]}}function FM(t="light"){return t==="dark"?{main:Na[500],light:Na[300],dark:Na[700]}:{main:Na[700],light:Na[400],dark:Na[800]}}function WM(t="light"){return t==="dark"?{main:ja[400],light:ja[300],dark:ja[700]}:{main:ja[700],light:ja[500],dark:ja[900]}}function JM(t="light"){return t==="dark"?{main:$a[400],light:$a[300],dark:$a[700]}:{main:$a[800],light:$a[500],dark:$a[900]}}function tE(t="light"){return t==="dark"?{main:po[400],light:po[300],dark:po[700]}:{main:"#ed6c02",light:po[500],dark:po[900]}}function Rm(t){const{mode:n="light",contrastThreshold:i=3,tonalOffset:a=.2,...o}=t,u=t.primary||QM(n),c=t.secondary||KM(n),f=t.error||FM(n),m=t.info||WM(n),h=t.success||JM(n),p=t.warning||tE(n);function y(S){return AM(S,P1.text.primary)>=i?P1.text.primary:ZM.text.primary}const v=({color:S,name:C,mainShade:E=500,lightShade:_=300,darkShade:O=700})=>{if(S={...S},!S.main&&S[E]&&(S.main=S[E]),!S.hasOwnProperty("main"))throw new Error(ji(11,C?` (${C})`:"",E));if(typeof S.main!="string")throw new Error(ji(12,C?` (${C})`:"",JSON.stringify(S.main)));return Z1(S,"light",_,a),Z1(S,"dark",O,a),S.contrastText||(S.contrastText=y(S.main)),S};let b;return n==="light"?b=mx():n==="dark"&&(b=gx()),dn({common:{...Uo},mode:n,primary:v({color:u,name:"primary"}),secondary:v({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:f,name:"error"}),warning:v({color:p,name:"warning"}),info:v({color:m,name:"info"}),success:v({color:h,name:"success"}),grey:PM,contrastThreshold:i,getContrastText:y,augmentColor:v,tonalOffset:a,...b},o)}function eE(t){const n={};return Object.entries(t).forEach(a=>{const[o,u]=a;typeof u=="object"&&(n[o]=`${u.fontStyle?`${u.fontStyle} `:""}${u.fontVariant?`${u.fontVariant} `:""}${u.fontWeight?`${u.fontWeight} `:""}${u.fontStretch?`${u.fontStretch} `:""}${u.fontSize||""}${u.lineHeight?`/${u.lineHeight} `:""}${u.fontFamily||""}`)}),n}function nE(t,n){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...n}}function rE(t){return Math.round(t*1e5)/1e5}const Q1={textTransform:"uppercase"},K1='"Roboto", "Helvetica", "Arial", sans-serif';function px(t,n){const{fontFamily:i=K1,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:u=400,fontWeightMedium:c=500,fontWeightBold:f=700,htmlFontSize:m=16,allVariants:h,pxToRem:p,...y}=typeof n=="function"?n(t):n,v=a/14,b=p||(C=>`${C/m*v}rem`),x=(C,E,_,O,k)=>({fontFamily:i,fontWeight:C,fontSize:b(E),lineHeight:_,...i===K1?{letterSpacing:`${rE(O/E)}em`}:{},...k,...h}),S={h1:x(o,96,1.167,-1.5),h2:x(o,60,1.2,-.5),h3:x(u,48,1.167,0),h4:x(u,34,1.235,.25),h5:x(u,24,1.334,0),h6:x(c,20,1.6,.15),subtitle1:x(u,16,1.75,.15),subtitle2:x(c,14,1.57,.1),body1:x(u,16,1.5,.15),body2:x(u,14,1.43,.15),button:x(c,14,1.75,.4,Q1),caption:x(u,12,1.66,.4),overline:x(u,12,2.66,1,Q1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return dn({htmlFontSize:m,pxToRem:b,fontFamily:i,fontSize:a,fontWeightLight:o,fontWeightRegular:u,fontWeightMedium:c,fontWeightBold:f,...S},y,{clone:!1})}const iE=.2,aE=.14,lE=.12;function ne(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${iE})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${aE})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${lE})`].join(",")}const oE=["none",ne(0,2,1,-1,0,1,1,0,0,1,3,0),ne(0,3,1,-2,0,2,2,0,0,1,5,0),ne(0,3,3,-2,0,3,4,0,0,1,8,0),ne(0,2,4,-1,0,4,5,0,0,1,10,0),ne(0,3,5,-1,0,5,8,0,0,1,14,0),ne(0,3,5,-1,0,6,10,0,0,1,18,0),ne(0,4,5,-2,0,7,10,1,0,2,16,1),ne(0,5,5,-3,0,8,10,1,0,3,14,2),ne(0,5,6,-3,0,9,12,1,0,3,16,2),ne(0,6,6,-3,0,10,14,1,0,4,18,3),ne(0,6,7,-4,0,11,15,1,0,4,20,3),ne(0,7,8,-4,0,12,17,2,0,5,22,4),ne(0,7,8,-4,0,13,19,2,0,5,24,4),ne(0,7,9,-4,0,14,21,2,0,5,26,4),ne(0,8,9,-5,0,15,22,2,0,6,28,5),ne(0,8,10,-5,0,16,24,2,0,6,30,5),ne(0,8,11,-5,0,17,26,2,0,6,32,5),ne(0,9,11,-5,0,18,28,2,0,7,34,6),ne(0,9,12,-6,0,19,29,2,0,7,36,6),ne(0,10,13,-6,0,20,31,3,0,8,38,7),ne(0,10,13,-6,0,21,33,3,0,8,40,7),ne(0,10,14,-6,0,22,35,3,0,8,42,7),ne(0,11,14,-7,0,23,36,3,0,9,44,8),ne(0,11,15,-7,0,24,38,3,0,9,46,8)],sE={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)"},uE={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function F1(t){return`${Math.round(t)}ms`}function cE(t){if(!t)return 0;const n=t/36;return Math.min(Math.round((4+15*n**.25+n/5)*10),3e3)}function fE(t){const n={...sE,...t.easing},i={...uE,...t.duration};return{getAutoHeightDuration:cE,create:(o=["all"],u={})=>{const{duration:c=i.standard,easing:f=n.easeInOut,delay:m=0,...h}=u;return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof c=="string"?c:F1(c)} ${f} ${typeof m=="string"?m:F1(m)}`).join(",")},...t,easing:n,duration:i}}const dE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function hE(t){return Jn(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function yx(t={}){const n={...t};function i(a){const o=Object.entries(a);for(let u=0;u<o.length;u++){const[c,f]=o[u];!hE(f)||c.startsWith("unstable_")?delete a[c]:Jn(f)&&(a[c]={...f},i(a[c]))}}return i(n),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles'; 92 92 93 93 const theme = ${JSON.stringify(n,null,2)}; 94 94 95 95 theme.breakpoints = createBreakpoints(theme.breakpoints || {}); 96 96 theme.transitions = createTransitions(theme.transitions || {}); 97 97 98 - export default theme;`}function Ih(t={},...n){const{breakpoints:i,mixins:a={},spacing:o,palette:s={},transitions:c={},typography:f={},shape:m,...h}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(ji(20));const p=_m(s),y=Sm(t);let v=dn(y,{mixins:nE(y.breakpoints,a),palette:p,shadows:oE.slice(),typography:px(p,f),transitions:fE(c),zIndex:{...dE}});return v=dn(v,h),v=n.reduce((b,x)=>dn(b,x),v),v.unstable_sxConfig={...Po,...h==null?void 0:h.unstable_sxConfig},v.unstable_sx=function(x){return $i({sx:x,theme:this})},v.toRuntimeSource=yx,v}function mE(t){let n;return t<1?n=5.11916*t**2:n=4.5*Math.log(t+1)+2,Math.round(n*10)/1e3}const gE=[...Array(25)].map((t,n)=>{if(n===0)return"none";const i=mE(n);return`linear-gradient(rgba(255 255 255 / ${i}), rgba(255 255 255 / ${i}))`});function vx(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function bx(t){return t==="dark"?gE:[]}function pE(t){const{palette:n={mode:"light"},opacity:i,overlays:a,...o}=t,s=_m(n);return{palette:s,opacity:{...vx(s.mode),...i},overlays:a||bx(s.mode),...o}}function yE(t){var n;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((n=t[1])!=null&&n.match(/(mode|contrastThreshold|tonalOffset)/))}const vE=t=>[...[...Array(25)].map((n,i)=>`--${t?`${t}-`:""}overlays-${i}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],bE=t=>(n,i)=>{const a=t.rootSelector||":root",o=t.colorSchemeSelector;let s=o;if(o==="class"&&(s=".%s"),o==="data"&&(s="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(s=`[${o}="%s"]`),t.defaultColorScheme===n){if(n==="dark"){const c={};return vE(t.cssVarPrefix).forEach(f=>{c[f]=i[f],delete i[f]}),s==="media"?{[a]:i,"@media (prefers-color-scheme: dark)":{[a]:c}}:s?{[s.replace("%s",n)]:c,[`${a}, ${s.replace("%s",n)}`]:i}:{[a]:{...i,...c}}}if(s&&s!=="media")return`${a}, ${s.replace("%s",String(n))}`}else if(n){if(s==="media")return{[`@media (prefers-color-scheme: ${String(n)})`]:{[a]:i}};if(s)return s.replace("%s",String(n))}return a};function xE(t,n){n.forEach(i=>{t[i]||(t[i]={})})}function W(t,n,i){!t[n]&&i&&(t[n]=i)}function Co(t){return typeof t!="string"||!t.startsWith("hsl")?t:ux(t)}function Tr(t,n){`${n}Channel`in t||(t[`${n}Channel`]=To(Co(t[n])))}function SE(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Kn=t=>{try{return t()}catch{}},AE=(t="mui")=>GM(t);function hh(t,n,i,a){if(!n)return;n=n===!0?{}:n;const o=a==="dark"?"dark":"light";if(!i){t[a]=pE({...n,palette:{mode:o,...n==null?void 0:n.palette}});return}const{palette:s,...c}=Ih({...i,palette:{mode:o,...n==null?void 0:n.palette}});return t[a]={...n,palette:s,opacity:{...vx(o),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||bx(o)},c}function TE(t={},...n){const{colorSchemes:i={light:!0},defaultColorScheme:a,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:c=yE,colorSchemeSelector:f=i.light&&i.dark?"media":void 0,rootSelector:m=":root",...h}=t,p=Object.keys(i)[0],y=a||(i.light&&p!=="light"?"light":p),v=AE(s),{[y]:b,light:x,dark:S,...C}=i,E={...C};let R=b;if((y==="dark"&&!("dark"in i)||y==="light"&&!("light"in i))&&(R=!0),!R)throw new Error(ji(21,y));const O=hh(E,R,h,y);x&&!E.light&&hh(E,x,void 0,"light"),S&&!E.dark&&hh(E,S,void 0,"dark");let k={defaultColorScheme:y,...O,cssVarPrefix:s,colorSchemeSelector:f,rootSelector:m,getCssVar:v,colorSchemes:E,font:{...eE(O.typography),...O.font},spacing:SE(h.spacing)};Object.keys(k.colorSchemes).forEach($=>{const T=k.colorSchemes[$].palette,z=X=>{const K=X.split("-"),it=K[1],ot=K[2];return v(X,T[it][ot])};if(T.mode==="light"&&(W(T.common,"background","#fff"),W(T.common,"onBackground","#000")),T.mode==="dark"&&(W(T.common,"background","#000"),W(T.common,"onBackground","#fff")),xE(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){W(T.Alert,"errorColor",Pt(T.error.light,.6)),W(T.Alert,"infoColor",Pt(T.info.light,.6)),W(T.Alert,"successColor",Pt(T.success.light,.6)),W(T.Alert,"warningColor",Pt(T.warning.light,.6)),W(T.Alert,"errorFilledBg",z("palette-error-main")),W(T.Alert,"infoFilledBg",z("palette-info-main")),W(T.Alert,"successFilledBg",z("palette-success-main")),W(T.Alert,"warningFilledBg",z("palette-warning-main")),W(T.Alert,"errorFilledColor",Kn(()=>T.getContrastText(T.error.main))),W(T.Alert,"infoFilledColor",Kn(()=>T.getContrastText(T.info.main))),W(T.Alert,"successFilledColor",Kn(()=>T.getContrastText(T.success.main))),W(T.Alert,"warningFilledColor",Kn(()=>T.getContrastText(T.warning.main))),W(T.Alert,"errorStandardBg",Zt(T.error.light,.9)),W(T.Alert,"infoStandardBg",Zt(T.info.light,.9)),W(T.Alert,"successStandardBg",Zt(T.success.light,.9)),W(T.Alert,"warningStandardBg",Zt(T.warning.light,.9)),W(T.Alert,"errorIconColor",z("palette-error-main")),W(T.Alert,"infoIconColor",z("palette-info-main")),W(T.Alert,"successIconColor",z("palette-success-main")),W(T.Alert,"warningIconColor",z("palette-warning-main")),W(T.AppBar,"defaultBg",z("palette-grey-100")),W(T.Avatar,"defaultBg",z("palette-grey-400")),W(T.Button,"inheritContainedBg",z("palette-grey-300")),W(T.Button,"inheritContainedHoverBg",z("palette-grey-A100")),W(T.Chip,"defaultBorder",z("palette-grey-400")),W(T.Chip,"defaultAvatarColor",z("palette-grey-700")),W(T.Chip,"defaultIconColor",z("palette-grey-700")),W(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),W(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),W(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),W(T.LinearProgress,"primaryBg",Zt(T.primary.main,.62)),W(T.LinearProgress,"secondaryBg",Zt(T.secondary.main,.62)),W(T.LinearProgress,"errorBg",Zt(T.error.main,.62)),W(T.LinearProgress,"infoBg",Zt(T.info.main,.62)),W(T.LinearProgress,"successBg",Zt(T.success.main,.62)),W(T.LinearProgress,"warningBg",Zt(T.warning.main,.62)),W(T.Skeleton,"bg",`rgba(${z("palette-text-primaryChannel")} / 0.11)`),W(T.Slider,"primaryTrack",Zt(T.primary.main,.62)),W(T.Slider,"secondaryTrack",Zt(T.secondary.main,.62)),W(T.Slider,"errorTrack",Zt(T.error.main,.62)),W(T.Slider,"infoTrack",Zt(T.info.main,.62)),W(T.Slider,"successTrack",Zt(T.success.main,.62)),W(T.Slider,"warningTrack",Zt(T.warning.main,.62));const X=vs(T.background.default,.8);W(T.SnackbarContent,"bg",X),W(T.SnackbarContent,"color",Kn(()=>T.getContrastText(X))),W(T.SpeedDialAction,"fabHoverBg",vs(T.background.paper,.15)),W(T.StepConnector,"border",z("palette-grey-400")),W(T.StepContent,"border",z("palette-grey-400")),W(T.Switch,"defaultColor",z("palette-common-white")),W(T.Switch,"defaultDisabledColor",z("palette-grey-100")),W(T.Switch,"primaryDisabledColor",Zt(T.primary.main,.62)),W(T.Switch,"secondaryDisabledColor",Zt(T.secondary.main,.62)),W(T.Switch,"errorDisabledColor",Zt(T.error.main,.62)),W(T.Switch,"infoDisabledColor",Zt(T.info.main,.62)),W(T.Switch,"successDisabledColor",Zt(T.success.main,.62)),W(T.Switch,"warningDisabledColor",Zt(T.warning.main,.62)),W(T.TableCell,"border",Zt(ys(T.divider,1),.88)),W(T.Tooltip,"bg",ys(T.grey[700],.92))}if(T.mode==="dark"){W(T.Alert,"errorColor",Zt(T.error.light,.6)),W(T.Alert,"infoColor",Zt(T.info.light,.6)),W(T.Alert,"successColor",Zt(T.success.light,.6)),W(T.Alert,"warningColor",Zt(T.warning.light,.6)),W(T.Alert,"errorFilledBg",z("palette-error-dark")),W(T.Alert,"infoFilledBg",z("palette-info-dark")),W(T.Alert,"successFilledBg",z("palette-success-dark")),W(T.Alert,"warningFilledBg",z("palette-warning-dark")),W(T.Alert,"errorFilledColor",Kn(()=>T.getContrastText(T.error.dark))),W(T.Alert,"infoFilledColor",Kn(()=>T.getContrastText(T.info.dark))),W(T.Alert,"successFilledColor",Kn(()=>T.getContrastText(T.success.dark))),W(T.Alert,"warningFilledColor",Kn(()=>T.getContrastText(T.warning.dark))),W(T.Alert,"errorStandardBg",Pt(T.error.light,.9)),W(T.Alert,"infoStandardBg",Pt(T.info.light,.9)),W(T.Alert,"successStandardBg",Pt(T.success.light,.9)),W(T.Alert,"warningStandardBg",Pt(T.warning.light,.9)),W(T.Alert,"errorIconColor",z("palette-error-main")),W(T.Alert,"infoIconColor",z("palette-info-main")),W(T.Alert,"successIconColor",z("palette-success-main")),W(T.Alert,"warningIconColor",z("palette-warning-main")),W(T.AppBar,"defaultBg",z("palette-grey-900")),W(T.AppBar,"darkBg",z("palette-background-paper")),W(T.AppBar,"darkColor",z("palette-text-primary")),W(T.Avatar,"defaultBg",z("palette-grey-600")),W(T.Button,"inheritContainedBg",z("palette-grey-800")),W(T.Button,"inheritContainedHoverBg",z("palette-grey-700")),W(T.Chip,"defaultBorder",z("palette-grey-700")),W(T.Chip,"defaultAvatarColor",z("palette-grey-300")),W(T.Chip,"defaultIconColor",z("palette-grey-300")),W(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),W(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),W(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),W(T.LinearProgress,"primaryBg",Pt(T.primary.main,.5)),W(T.LinearProgress,"secondaryBg",Pt(T.secondary.main,.5)),W(T.LinearProgress,"errorBg",Pt(T.error.main,.5)),W(T.LinearProgress,"infoBg",Pt(T.info.main,.5)),W(T.LinearProgress,"successBg",Pt(T.success.main,.5)),W(T.LinearProgress,"warningBg",Pt(T.warning.main,.5)),W(T.Skeleton,"bg",`rgba(${z("palette-text-primaryChannel")} / 0.13)`),W(T.Slider,"primaryTrack",Pt(T.primary.main,.5)),W(T.Slider,"secondaryTrack",Pt(T.secondary.main,.5)),W(T.Slider,"errorTrack",Pt(T.error.main,.5)),W(T.Slider,"infoTrack",Pt(T.info.main,.5)),W(T.Slider,"successTrack",Pt(T.success.main,.5)),W(T.Slider,"warningTrack",Pt(T.warning.main,.5));const X=vs(T.background.default,.98);W(T.SnackbarContent,"bg",X),W(T.SnackbarContent,"color",Kn(()=>T.getContrastText(X))),W(T.SpeedDialAction,"fabHoverBg",vs(T.background.paper,.15)),W(T.StepConnector,"border",z("palette-grey-600")),W(T.StepContent,"border",z("palette-grey-600")),W(T.Switch,"defaultColor",z("palette-grey-300")),W(T.Switch,"defaultDisabledColor",z("palette-grey-600")),W(T.Switch,"primaryDisabledColor",Pt(T.primary.main,.55)),W(T.Switch,"secondaryDisabledColor",Pt(T.secondary.main,.55)),W(T.Switch,"errorDisabledColor",Pt(T.error.main,.55)),W(T.Switch,"infoDisabledColor",Pt(T.info.main,.55)),W(T.Switch,"successDisabledColor",Pt(T.success.main,.55)),W(T.Switch,"warningDisabledColor",Pt(T.warning.main,.55)),W(T.TableCell,"border",Pt(ys(T.divider,1),.68)),W(T.Tooltip,"bg",ys(T.grey[700],.92))}Tr(T.background,"default"),Tr(T.background,"paper"),Tr(T.common,"background"),Tr(T.common,"onBackground"),Tr(T,"divider"),Object.keys(T).forEach(X=>{const K=T[X];X!=="tonalOffset"&&K&&typeof K=="object"&&(K.main&&W(T[X],"mainChannel",To(Co(K.main))),K.light&&W(T[X],"lightChannel",To(Co(K.light))),K.dark&&W(T[X],"darkChannel",To(Co(K.dark))),K.contrastText&&W(T[X],"contrastTextChannel",To(Co(K.contrastText))),X==="text"&&(Tr(T[X],"primary"),Tr(T[X],"secondary")),X==="action"&&(K.active&&Tr(T[X],"active"),K.selected&&Tr(T[X],"selected")))})}),k=n.reduce(($,T)=>dn($,T),k);const M={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:bE(k)},{vars:_,generateThemeVars:D,generateStyleSheets:L}=VM(k,M);return k.vars=_,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([$,T])=>{k[$]=T}),k.generateThemeVars=D,k.generateStyleSheets=L,k.generateSpacing=function(){return nx(h.spacing,bm(this))},k.getColorSchemeSelector=XM(f),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=c,k.unstable_sxConfig={...Po,...h==null?void 0:h.unstable_sxConfig},k.unstable_sx=function(T){return $i({sx:T,theme:this})},k.toRuntimeSource=yx,k}function W1(t,n,i){t.colorSchemes&&i&&(t.colorSchemes[n]={...i!==!0&&i,palette:_m({...i===!0?{}:i.palette,mode:n})})}function Rm(t={},...n){const{palette:i,cssVariables:a=!1,colorSchemes:o=i?void 0:{light:!0},defaultColorScheme:s=i==null?void 0:i.mode,...c}=t,f=s||"light",m=o==null?void 0:o[f],h={...o,...i?{[f]:{...typeof m!="boolean"&&m,palette:i}}:void 0};if(a===!1){if(!("colorSchemes"in t))return Ih(t,...n);let p=i;"palette"in t||h[f]&&(h[f]!==!0?p=h[f].palette:f==="dark"&&(p={mode:"dark"}));const y=Ih({...t,palette:p},...n);return y.defaultColorScheme=f,y.colorSchemes=h,y.palette.mode==="light"&&(y.colorSchemes.light={...h.light!==!0&&h.light,palette:y.palette},W1(y,"dark",h.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:y.palette},W1(y,"light",h.light)),y}return!i&&!("light"in h)&&f==="light"&&(h.light=!0),TE({...c,colorSchemes:h,defaultColorScheme:f,...typeof a!="boolean"&&a},...n)}const km=Rm();function Zo(){const t=ix(km);return t[Er]||t}function ir({props:t,name:n}){return vM({props:t,name:n,defaultTheme:km,themeId:Er})}function CE(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const wE=t=>CE(t)&&t!=="classes",he=dM({themeId:Er,defaultTheme:km,rootShouldForwardProp:wE});function ME({theme:t,...n}){const i=Er in t?t[Er]:void 0;return H.jsx(dx,{...n,themeId:i?Er:void 0,theme:i||t})}const bs={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:EE}=YM({themeId:Er,theme:()=>Rm({cssVariables:!0}),colorSchemeStorageKey:bs.colorSchemeStorageKey,modeStorageKey:bs.modeStorageKey,defaultColorScheme:{light:bs.defaultLightColorScheme,dark:bs.defaultDarkColorScheme},resolveTheme:t=>{const n={...t,typography:px(t.palette,t.typography)};return n.unstable_sx=function(a){return $i({sx:a,theme:this})},n}}),OE=EE;function _E({theme:t,...n}){const i=Y.useMemo(()=>{if(typeof t=="function")return t;const a=Er in t?t[Er]:t;return"colorSchemes"in a?null:"vars"in a?t:{...t,vars:null}},[t]);return i?H.jsx(ME,{theme:i,...n}):H.jsx(OE,{theme:t,...n})}function Qt(t,n){if(t==null)return{};var i={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(n.indexOf(a)!==-1)continue;i[a]=t[a]}return i}function RE(t){return zn("MuiBarElement",t)}const kE=qn("MuiBarElement",["root","highlighted","faded","series"]),DE=t=>{const{classes:n,id:i,isHighlighted:a,isFaded:o}=t,s={root:["root",`series-${i}`,a&&"highlighted",o&&"faded"]};return Nn(s,RE,n)};function Wa(...t){const n=Y.useRef(void 0),i=Y.useCallback(a=>{const o=t.map(s=>{if(s==null)return null;if(typeof s=="function"){const c=s,f=c(a);return typeof f=="function"?f:()=>{c(null)}}return s.current=a,()=>{s.current=null}});return()=>{o.forEach(s=>s==null?void 0:s())}},t);return Y.useMemo(()=>t.every(a=>a==null)?null:a=>{n.current&&(n.current(),n.current=void 0),a!=null&&(n.current=i(a))},t)}function zE(t){return typeof t=="string"}function NE(t,n,i){return t===void 0||zE(t)?n:{...n,ownerState:{...n.ownerState,...i}}}function UE(t,n=[]){if(t===void 0)return{};const i={};return Object.keys(t).filter(a=>a.match(/^on[A-Z]/)&&typeof t[a]=="function"&&!n.includes(a)).forEach(a=>{i[a]=t[a]}),i}function J1(t){if(t===void 0)return{};const n={};return Object.keys(t).filter(i=>!(i.match(/^on[A-Z]/)&&typeof t[i]=="function")).forEach(i=>{n[i]=t[i]}),n}function jE(t){const{getSlotProps:n,additionalProps:i,externalSlotProps:a,externalForwardedProps:o,className:s}=t;if(!n){const b=Mn(i==null?void 0:i.className,s,o==null?void 0:o.className,a==null?void 0:a.className),x={...i==null?void 0:i.style,...o==null?void 0:o.style,...a==null?void 0:a.style},S={...i,...o,...a};return b.length>0&&(S.className=b),Object.keys(x).length>0&&(S.style=x),{props:S,internalRef:void 0}}const c=UE({...o,...a}),f=J1(a),m=J1(o),h=n(c),p=Mn(h==null?void 0:h.className,i==null?void 0:i.className,s,o==null?void 0:o.className,a==null?void 0:a.className),y={...h==null?void 0:h.style,...i==null?void 0:i.style,...o==null?void 0:o.style,...a==null?void 0:a.style},v={...h,...i,...m,...f};return p.length>0&&(v.className=p),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:h.ref}}function $E(t,n,i){return typeof t=="function"?t(n,i):t}function Or(t){var y;const{elementType:n,externalSlotProps:i,ownerState:a,skipResolvingSlotProps:o=!1,...s}=t,c=o?{}:$E(i,a),{props:f,internalRef:m}=jE({...s,externalSlotProps:c}),h=Wa(m,c==null?void 0:c.ref,(y=t.additionalProps)==null?void 0:y.ref);return NE(n,{...f,ref:h},a)}let tv=0;function BE(t){const[n,i]=Y.useState(t),a=n;return Y.useEffect(()=>{n==null&&(tv+=1,i(`mui-${tv}`))},[n]),a}const LE={...Bh},ev=LE.useId;function xx(t){return ev!==void 0?ev():BE(t)}class HE{constructor(n){this.value=void 0,this.listeners=void 0,this.subscribe=i=>(this.listeners.add(i),()=>{this.listeners.delete(i)}),this.getSnapshot=()=>this.value,this.update=i=>{const a=i(this.value);a!==this.value&&(this.value=a,this.listeners.forEach(o=>o(a)))},this.value=n,this.listeners=new Set}}const yc=({params:t,store:n})=>{Y.useEffect(()=>{n.update(a=>I({},a,{animation:I({},a.animation,{skip:t.skipAnimation})}))},[n,t.skipAnimation]);const i=Y.useCallback(()=>{let a=!1;return n.update(o=>I({},o,{animation:I({},o.animation,{skipAnimationRequests:o.animation.skipAnimationRequests+1})})),()=>{a||(a=!0,n.update(o=>I({},o,{animation:I({},o.animation,{skipAnimationRequests:o.animation.skipAnimationRequests-1})})))}},[n]);return Ye(()=>{if(typeof window>"u"||!(window!=null&&window.matchMedia))return;let o;const s=f=>{f.matches?o=i():o==null||o()},c=window.matchMedia("(prefers-reduced-motion)");return s(c),c.addEventListener("change",s),()=>{c.removeEventListener("change",s)}},[i,n]),{instance:{disableAnimation:i}}};yc.params={skipAnimation:!0};yc.getDefaultizedParams=({params:t})=>I({},t,{skipAnimation:t.skipAnimation??!1});yc.getInitialState=({skipAnimation:t})=>({animation:{skip:t,skipAnimationRequests:0}});var $s=Symbol("NOT_FOUND");function YE(t,n=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(n)}function GE(t,n=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(n)}function qE(t,n="expected all items to be functions, instead received the following types: "){if(!t.every(i=>typeof i=="function")){const i=t.map(a=>typeof a=="function"?`function ${a.name||"unnamed"}()`:typeof a).join(", ");throw new TypeError(`${n}[${i}]`)}}var nv=t=>Array.isArray(t)?t:[t];function IE(t){const n=Array.isArray(t[0])?t[0]:t;return qE(n,"createSelector expects all input-selectors to be functions, but received the following types: "),n}function VE(t,n){const i=[],{length:a}=t;for(let o=0;o<a;o++)i.push(t[o].apply(null,n));return i}function XE(t){let n;return{get(i){return n&&t(n.key,i)?n.value:$s},put(i,a){n={key:i,value:a}},getEntries(){return n?[n]:[]},clear(){n=void 0}}}function PE(t,n){let i=[];function a(f){const m=i.findIndex(h=>n(f,h.key));if(m>-1){const h=i[m];return m>0&&(i.splice(m,1),i.unshift(h)),h.value}return $s}function o(f,m){a(f)===$s&&(i.unshift({key:f,value:m}),i.length>t&&i.pop())}function s(){return i}function c(){i=[]}return{get:a,put:o,getEntries:s,clear:c}}var ZE=(t,n)=>t===n;function QE(t){return function(i,a){if(i===null||a===null||i.length!==a.length)return!1;const{length:o}=i;for(let s=0;s<o;s++)if(!t(i[s],a[s]))return!1;return!0}}function KE(t,n){const i=typeof n=="object"?n:{equalityCheck:n},{equalityCheck:a=ZE,maxSize:o=1,resultEqualityCheck:s}=i,c=QE(a);let f=0;const m=o<=1?XE(c):PE(o,c);function h(){let p=m.get(arguments);if(p===$s){if(p=t.apply(null,arguments),f++,s){const v=m.getEntries().find(b=>s(b.value,p));v&&(p=v.value,f!==0&&f--)}m.put(arguments,p)}return p}return h.clearCache=()=>{m.clear(),h.resetResultsCount()},h.resultsCount=()=>f,h.resetResultsCount=()=>{f=0},h}var FE=class{constructor(t){this.value=t}deref(){return this.value}},WE=typeof WeakRef<"u"?WeakRef:FE,JE=0,rv=1;function xs(){return{s:JE,v:void 0,o:null,p:null}}function Sx(t,n={}){let i=xs();const{resultEqualityCheck:a}=n;let o,s=0;function c(){var y;let f=i;const{length:m}=arguments;for(let v=0,b=m;v<b;v++){const x=arguments[v];if(typeof x=="function"||typeof x=="object"&&x!==null){let S=f.o;S===null&&(f.o=S=new WeakMap);const C=S.get(x);C===void 0?(f=xs(),S.set(x,f)):f=C}else{let S=f.p;S===null&&(f.p=S=new Map);const C=S.get(x);C===void 0?(f=xs(),S.set(x,f)):f=C}}const h=f;let p;if(f.s===rv)p=f.v;else if(p=t.apply(null,arguments),s++,a){const v=((y=o==null?void 0:o.deref)==null?void 0:y.call(o))??o;v!=null&&a(v,p)&&(p=v,s!==0&&s--),o=typeof p=="object"&&p!==null||typeof p=="function"?new WE(p):p}return h.s=rv,h.v=p,p}return c.clearCache=()=>{i=xs(),c.resetResultsCount()},c.resultsCount=()=>s,c.resetResultsCount=()=>{s=0},c}function Ax(t,...n){const i=typeof t=="function"?{memoize:t,memoizeOptions:n}:t,a=(...o)=>{let s=0,c=0,f,m={},h=o.pop();typeof h=="object"&&(m=h,h=o.pop()),YE(h,`createSelector expects an output function after the inputs, but received: [${typeof h}]`);const p={...i,...m},{memoize:y,memoizeOptions:v=[],argsMemoize:b=Sx,argsMemoizeOptions:x=[]}=p,S=nv(v),C=nv(x),E=IE(o),R=y(function(){return s++,h.apply(null,arguments)},...S),O=b(function(){c++;const M=VE(E,arguments);return f=R.apply(null,M),f},...C);return Object.assign(O,{resultFunc:h,memoizedResultFunc:R,dependencies:E,dependencyRecomputations:()=>c,resetDependencyRecomputations:()=>{c=0},lastResult:()=>f,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:y,argsMemoize:b})};return Object.assign(a,{withTypes:()=>a}),a}var tO=Ax(Sx),eO=Object.assign((t,n=tO)=>{GE(t,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof t}`);const i=Object.keys(t),a=i.map(s=>t[s]);return n(a,(...s)=>s.reduce((c,f,m)=>(c[i[m]]=f,c),{}))},{withTypes:()=>eO});const nO=Ax({memoize:KE,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),iv=new WeakMap,ft=(...t)=>(i,a)=>{const o=i.cacheKey;let s=iv.get(o);s||(s=new Map,iv.set(o,s));const c=s.get(t);if(c)return c(i,a);const f=nO(...t);return s.set(t,f),f(i,a)},rO=t=>t.animation,iO=ft(rO,t=>t.skip||t.skipAnimationRequests>0);function Vh(t){return t&&t.ownerDocument||document}function aO(t){return Vh(t).defaultView||window}const Dm="DEFAULT_X_AXIS_KEY",zm="DEFAULT_Y_AXIS_KEY",lO={top:20,bottom:20,left:20,right:20},oO=45,uO=25,Tx=20,sO=4,dl=20+2*sO,Cx=t=>t.cartesianAxis,hl=ft(Cx,t=>t==null?void 0:t.x),Qo=ft(Cx,t=>t==null?void 0:t.y),cO=ft([Qo],t=>(t??[]).reduce((n,i)=>{var a;return i.position==="left"?n+(i.width||0)+((a=i.zoom)!=null&&a.slider.enabled?dl:0):n},0)),fO=ft([Qo],t=>(t??[]).reduce((n,i)=>{var a;return i.position==="right"?n+(i.width||0)+((a=i.zoom)!=null&&a.slider.enabled?dl:0):n},0)),dO=ft([hl],t=>(t??[]).reduce((n,i)=>{var a;return i.position==="top"?n+(i.height||0)+((a=i.zoom)!=null&&a.slider.enabled?dl:0):n},0)),hO=ft([hl],t=>(t??[]).reduce((n,i)=>{var a;return i.position==="bottom"?n+(i.height||0)+((a=i.zoom)!=null&&a.slider.enabled?dl:0):n},0)),vc=t=>t.dimensions,bc=ft(vc,t=>t.margin),wx=ft(vc,t=>t.width),Mx=ft(vc,t=>t.height),mO=ft(bc,t=>t.top),gO=ft(bc,t=>t.right),pO=ft(bc,t=>t.bottom),yO=ft(bc,t=>t.left),Ur=ft(wx,Mx,mO,gO,pO,yO,dO,fO,hO,cO,(t,n,i,a,o,s,c,f,m,h)=>({width:t-s-a-h-f,left:s+h,right:a+f,height:n-i-o-c-m,top:i+c,bottom:o+m})),vO=ft(vc,t=>({width:t.propsWidth,height:t.propsHeight})),bO=ft(wx,Mx,(t,n)=>({width:t,height:n}));function xO(t,n){return typeof t=="number"?{top:t,bottom:t,left:t,right:t}:n?I({},n,t):t}const SO=10,xc=({params:t,store:n,svgRef:i})=>{const a=t.width!==void 0&&t.height!==void 0,o=Y.useRef({displayError:!1,initialCompute:!0,computeRun:0}),[s,c]=Y.useState(0),[f,m]=Y.useState(0),h=Y.useCallback(()=>{const y=i==null?void 0:i.current;if(!y)return{};const b=aO(y).getComputedStyle(y),x=Math.floor(parseFloat(b.height))||0,S=Math.floor(parseFloat(b.width))||0;return n.update(C=>C.dimensions.width===S&&C.dimensions.height===x?C:I({},C,{dimensions:{margin:{top:t.margin.top,right:t.margin.right,bottom:t.margin.bottom,left:t.margin.left},width:t.width??S,height:t.height??x,propsWidth:t.width,propsHeight:t.height}})),{height:x,width:S}},[n,i,t.height,t.width,t.margin.left,t.margin.right,t.margin.top,t.margin.bottom]);return Y.useEffect(()=>{n.update(y=>{const v=t.width??y.dimensions.width,b=t.height??y.dimensions.height;return I({},y,{dimensions:{margin:{top:t.margin.top,right:t.margin.right,bottom:t.margin.bottom,left:t.margin.left},width:v,height:b,propsHeight:t.height,propsWidth:t.width}})})},[n,t.height,t.width,t.margin.left,t.margin.right,t.margin.top,t.margin.bottom]),Y.useEffect(()=>{o.current.displayError=!0},[]),Ye(()=>{if(a||!o.current.initialCompute||o.current.computeRun>SO)return;const y=h();y.width!==s||y.height!==f?(o.current.computeRun+=1,y.width!==void 0&&c(y.width),y.height!==void 0&&m(y.height)):o.current.initialCompute&&(o.current.initialCompute=!1)},[f,s,h,a]),Ye(()=>{if(a)return()=>{};h();const y=i.current;if(typeof ResizeObserver>"u")return()=>{};let v;const b=new ResizeObserver(()=>{v=requestAnimationFrame(()=>{h()})});return y&&b.observe(y),()=>{v&&cancelAnimationFrame(v),y&&b.unobserve(y)}},[h,a,i]),{instance:{isPointInside:Y.useCallback(({x:y,y:v},b)=>{if(b!=null&&b.targetElement&&(b!=null&&b.targetElement.closest("[data-drawing-container]")))return!0;const x=Ur(n.value),S=y>=x.left-1&&y<=x.left+x.width,C=v>=x.top-1&&v<=x.top+x.height;return(b==null?void 0:b.direction)==="x"?S:((b==null?void 0:b.direction)==="y"||S)&&C},[n.value])}}};xc.params={width:!0,height:!0,margin:!0};xc.getDefaultizedParams=({params:t})=>I({},t,{margin:xO(t.margin,lO)});xc.getInitialState=({width:t,height:n,margin:i})=>({dimensions:{margin:i,width:t??0,height:n??0,propsWidth:t,propsHeight:n}});let av=0;const AO=()=>(av+=1,`mui-chart-${av}`),Nm=({params:t,store:n})=>(Y.useEffect(()=>{n.update(i=>t.id===void 0||t.id===i.id.providedChartId&&i.id.chartId!==void 0?i:I({},i,{id:I({},i.id,{chartId:t.id??AO()})}))},[n,t.id]),{});Nm.params={id:!0};Nm.getInitialState=({id:t})=>({id:{chartId:t,providedChartId:t}});const TO=t=>t.id,CO=ft(TO,t=>t.chartId),wO=["#4254FB","#FFB422","#FA4F58","#0DBEFF","#22BF75","#FA83B4","#FF7511"],MO=["#495AFB","#FFC758","#F35865","#30C8FF","#44CE8D","#F286B3","#FF8C39"],Ex=t=>t==="dark"?MO:wO,Ox=({series:t,colors:n,seriesConfig:i,dataset:a})=>{const o={};t.forEach((c,f)=>{var p;const m=i[c.type].getSeriesWithDefaultValues(c,f,n),h=m.id;if(o[c.type]===void 0&&(o[c.type]={series:{},seriesOrder:[]}),((p=o[c.type])==null?void 0:p.series[h])!==void 0)throw new Error(`MUI X Charts: series' id "${h}" is not unique.`);o[c.type].series[h]=m,o[c.type].seriesOrder.push(h)});const s={};return Object.keys(i).forEach(c=>{var m,h;const f=o[c];f!==void 0&&(s[c]=((h=(m=i[c])==null?void 0:m.seriesProcessor)==null?void 0:h.call(m,f,a))??o[c])}),s},Sc=({params:t,store:n,seriesConfig:i})=>{const{series:a,dataset:o,theme:s,colors:c}=t,f=Y.useRef(!0);return Y.useEffect(()=>{if(f.current){f.current=!1;return}n.update(m=>I({},m,{series:I({},m.series,{processedSeries:Ox({series:a,colors:typeof c=="function"?c(s):c,seriesConfig:i,dataset:o})})}))},[c,o,a,s,i,n]),{}};Sc.params={dataset:!0,series:!0,colors:!0,theme:!0};const EO=[];Sc.getDefaultizedParams=({params:t})=>{var n;return I({},t,{series:(n=t.series)!=null&&n.length?t.series:EO,colors:t.colors??Ex,theme:t.theme??"light"})};Sc.getInitialState=({series:t=[],colors:n,theme:i,dataset:a},o,s)=>({series:{seriesConfig:s,processedSeries:Ox({series:t,colors:typeof n=="function"?n(i):n,seriesConfig:s,dataset:a})}});const _x=t=>t.series,In=ft(_x,t=>t.processedSeries),jr=ft(_x,t=>t.seriesConfig),OO=[Nm,xc,Sc,yc],_O=["apiRef"],RO=t=>{let{plugins:n}=t,i=Qt(t.props,_O);const a={};n.forEach(c=>{Object.assign(a,c.params)});const o={};return Object.keys(i).forEach(c=>{const f=i[c];a[c]&&(o[c]=f)}),n.reduce((c,f)=>f.getDefaultizedParams?f.getDefaultizedParams({params:c}):c,o)};let lv=0;function kO(t,n,i){const a=xx(),o=Y.useMemo(()=>[...OO,...t],[t]),s=RO({plugins:o,props:n});s.id=s.id??a;const f=Y.useRef({}).current,m=zO(n.apiRef),h=Y.useRef(null),p=Y.useRef(null),y=Y.useRef(null);if(y.current==null){lv+=1;const x={cacheKey:{id:lv}};o.forEach(S=>{S.getInitialState&&Object.assign(x,S.getInitialState(s,x,i))}),y.current=new HE(x)}const v=x=>{const S=x({instance:f,params:s,plugins:o,store:y.current,svgRef:p,chartRootRef:h,seriesConfig:i});S.publicAPI&&Object.assign(m.current,S.publicAPI),S.instance&&Object.assign(f,S.instance)};return o.forEach(v),{contextValue:Y.useMemo(()=>({store:y.current,publicAPI:m.current,instance:f,svgRef:p,chartRootRef:h}),[f,m])}}function DO(t){return t.current==null&&(t.current={}),t}function zO(t){const n=Y.useRef({});return t?DO(t):n}const Rx=Y.createContext(null);var mh={exports:{}},gh={};/** 98 + export default theme;`}function Ih(t={},...n){const{breakpoints:i,mixins:a={},spacing:o,palette:u={},transitions:c={},typography:f={},shape:m,...h}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(ji(20));const p=Rm(u),y=Sm(t);let v=dn(y,{mixins:nE(y.breakpoints,a),palette:p,shadows:oE.slice(),typography:px(p,f),transitions:fE(c),zIndex:{...dE}});return v=dn(v,h),v=n.reduce((b,x)=>dn(b,x),v),v.unstable_sxConfig={...Po,...h==null?void 0:h.unstable_sxConfig},v.unstable_sx=function(x){return $i({sx:x,theme:this})},v.toRuntimeSource=yx,v}function mE(t){let n;return t<1?n=5.11916*t**2:n=4.5*Math.log(t+1)+2,Math.round(n*10)/1e3}const gE=[...Array(25)].map((t,n)=>{if(n===0)return"none";const i=mE(n);return`linear-gradient(rgba(255 255 255 / ${i}), rgba(255 255 255 / ${i}))`});function vx(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function bx(t){return t==="dark"?gE:[]}function pE(t){const{palette:n={mode:"light"},opacity:i,overlays:a,...o}=t,u=Rm(n);return{palette:u,opacity:{...vx(u.mode),...i},overlays:a||bx(u.mode),...o}}function yE(t){var n;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((n=t[1])!=null&&n.match(/(mode|contrastThreshold|tonalOffset)/))}const vE=t=>[...[...Array(25)].map((n,i)=>`--${t?`${t}-`:""}overlays-${i}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],bE=t=>(n,i)=>{const a=t.rootSelector||":root",o=t.colorSchemeSelector;let u=o;if(o==="class"&&(u=".%s"),o==="data"&&(u="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(u=`[${o}="%s"]`),t.defaultColorScheme===n){if(n==="dark"){const c={};return vE(t.cssVarPrefix).forEach(f=>{c[f]=i[f],delete i[f]}),u==="media"?{[a]:i,"@media (prefers-color-scheme: dark)":{[a]:c}}:u?{[u.replace("%s",n)]:c,[`${a}, ${u.replace("%s",n)}`]:i}:{[a]:{...i,...c}}}if(u&&u!=="media")return`${a}, ${u.replace("%s",String(n))}`}else if(n){if(u==="media")return{[`@media (prefers-color-scheme: ${String(n)})`]:{[a]:i}};if(u)return u.replace("%s",String(n))}return a};function xE(t,n){n.forEach(i=>{t[i]||(t[i]={})})}function W(t,n,i){!t[n]&&i&&(t[n]=i)}function Co(t){return typeof t!="string"||!t.startsWith("hsl")?t:sx(t)}function Tr(t,n){`${n}Channel`in t||(t[`${n}Channel`]=To(Co(t[n])))}function SE(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Kn=t=>{try{return t()}catch{}},AE=(t="mui")=>GM(t);function hh(t,n,i,a){if(!n)return;n=n===!0?{}:n;const o=a==="dark"?"dark":"light";if(!i){t[a]=pE({...n,palette:{mode:o,...n==null?void 0:n.palette}});return}const{palette:u,...c}=Ih({...i,palette:{mode:o,...n==null?void 0:n.palette}});return t[a]={...n,palette:u,opacity:{...vx(o),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||bx(o)},c}function TE(t={},...n){const{colorSchemes:i={light:!0},defaultColorScheme:a,disableCssColorScheme:o=!1,cssVarPrefix:u="mui",shouldSkipGeneratingVar:c=yE,colorSchemeSelector:f=i.light&&i.dark?"media":void 0,rootSelector:m=":root",...h}=t,p=Object.keys(i)[0],y=a||(i.light&&p!=="light"?"light":p),v=AE(u),{[y]:b,light:x,dark:S,...C}=i,E={...C};let _=b;if((y==="dark"&&!("dark"in i)||y==="light"&&!("light"in i))&&(_=!0),!_)throw new Error(ji(21,y));const O=hh(E,_,h,y);x&&!E.light&&hh(E,x,void 0,"light"),S&&!E.dark&&hh(E,S,void 0,"dark");let k={defaultColorScheme:y,...O,cssVarPrefix:u,colorSchemeSelector:f,rootSelector:m,getCssVar:v,colorSchemes:E,font:{...eE(O.typography),...O.font},spacing:SE(h.spacing)};Object.keys(k.colorSchemes).forEach($=>{const T=k.colorSchemes[$].palette,z=X=>{const K=X.split("-"),it=K[1],ot=K[2];return v(X,T[it][ot])};if(T.mode==="light"&&(W(T.common,"background","#fff"),W(T.common,"onBackground","#000")),T.mode==="dark"&&(W(T.common,"background","#000"),W(T.common,"onBackground","#fff")),xE(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){W(T.Alert,"errorColor",Pt(T.error.light,.6)),W(T.Alert,"infoColor",Pt(T.info.light,.6)),W(T.Alert,"successColor",Pt(T.success.light,.6)),W(T.Alert,"warningColor",Pt(T.warning.light,.6)),W(T.Alert,"errorFilledBg",z("palette-error-main")),W(T.Alert,"infoFilledBg",z("palette-info-main")),W(T.Alert,"successFilledBg",z("palette-success-main")),W(T.Alert,"warningFilledBg",z("palette-warning-main")),W(T.Alert,"errorFilledColor",Kn(()=>T.getContrastText(T.error.main))),W(T.Alert,"infoFilledColor",Kn(()=>T.getContrastText(T.info.main))),W(T.Alert,"successFilledColor",Kn(()=>T.getContrastText(T.success.main))),W(T.Alert,"warningFilledColor",Kn(()=>T.getContrastText(T.warning.main))),W(T.Alert,"errorStandardBg",Zt(T.error.light,.9)),W(T.Alert,"infoStandardBg",Zt(T.info.light,.9)),W(T.Alert,"successStandardBg",Zt(T.success.light,.9)),W(T.Alert,"warningStandardBg",Zt(T.warning.light,.9)),W(T.Alert,"errorIconColor",z("palette-error-main")),W(T.Alert,"infoIconColor",z("palette-info-main")),W(T.Alert,"successIconColor",z("palette-success-main")),W(T.Alert,"warningIconColor",z("palette-warning-main")),W(T.AppBar,"defaultBg",z("palette-grey-100")),W(T.Avatar,"defaultBg",z("palette-grey-400")),W(T.Button,"inheritContainedBg",z("palette-grey-300")),W(T.Button,"inheritContainedHoverBg",z("palette-grey-A100")),W(T.Chip,"defaultBorder",z("palette-grey-400")),W(T.Chip,"defaultAvatarColor",z("palette-grey-700")),W(T.Chip,"defaultIconColor",z("palette-grey-700")),W(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),W(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),W(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),W(T.LinearProgress,"primaryBg",Zt(T.primary.main,.62)),W(T.LinearProgress,"secondaryBg",Zt(T.secondary.main,.62)),W(T.LinearProgress,"errorBg",Zt(T.error.main,.62)),W(T.LinearProgress,"infoBg",Zt(T.info.main,.62)),W(T.LinearProgress,"successBg",Zt(T.success.main,.62)),W(T.LinearProgress,"warningBg",Zt(T.warning.main,.62)),W(T.Skeleton,"bg",`rgba(${z("palette-text-primaryChannel")} / 0.11)`),W(T.Slider,"primaryTrack",Zt(T.primary.main,.62)),W(T.Slider,"secondaryTrack",Zt(T.secondary.main,.62)),W(T.Slider,"errorTrack",Zt(T.error.main,.62)),W(T.Slider,"infoTrack",Zt(T.info.main,.62)),W(T.Slider,"successTrack",Zt(T.success.main,.62)),W(T.Slider,"warningTrack",Zt(T.warning.main,.62));const X=vu(T.background.default,.8);W(T.SnackbarContent,"bg",X),W(T.SnackbarContent,"color",Kn(()=>T.getContrastText(X))),W(T.SpeedDialAction,"fabHoverBg",vu(T.background.paper,.15)),W(T.StepConnector,"border",z("palette-grey-400")),W(T.StepContent,"border",z("palette-grey-400")),W(T.Switch,"defaultColor",z("palette-common-white")),W(T.Switch,"defaultDisabledColor",z("palette-grey-100")),W(T.Switch,"primaryDisabledColor",Zt(T.primary.main,.62)),W(T.Switch,"secondaryDisabledColor",Zt(T.secondary.main,.62)),W(T.Switch,"errorDisabledColor",Zt(T.error.main,.62)),W(T.Switch,"infoDisabledColor",Zt(T.info.main,.62)),W(T.Switch,"successDisabledColor",Zt(T.success.main,.62)),W(T.Switch,"warningDisabledColor",Zt(T.warning.main,.62)),W(T.TableCell,"border",Zt(yu(T.divider,1),.88)),W(T.Tooltip,"bg",yu(T.grey[700],.92))}if(T.mode==="dark"){W(T.Alert,"errorColor",Zt(T.error.light,.6)),W(T.Alert,"infoColor",Zt(T.info.light,.6)),W(T.Alert,"successColor",Zt(T.success.light,.6)),W(T.Alert,"warningColor",Zt(T.warning.light,.6)),W(T.Alert,"errorFilledBg",z("palette-error-dark")),W(T.Alert,"infoFilledBg",z("palette-info-dark")),W(T.Alert,"successFilledBg",z("palette-success-dark")),W(T.Alert,"warningFilledBg",z("palette-warning-dark")),W(T.Alert,"errorFilledColor",Kn(()=>T.getContrastText(T.error.dark))),W(T.Alert,"infoFilledColor",Kn(()=>T.getContrastText(T.info.dark))),W(T.Alert,"successFilledColor",Kn(()=>T.getContrastText(T.success.dark))),W(T.Alert,"warningFilledColor",Kn(()=>T.getContrastText(T.warning.dark))),W(T.Alert,"errorStandardBg",Pt(T.error.light,.9)),W(T.Alert,"infoStandardBg",Pt(T.info.light,.9)),W(T.Alert,"successStandardBg",Pt(T.success.light,.9)),W(T.Alert,"warningStandardBg",Pt(T.warning.light,.9)),W(T.Alert,"errorIconColor",z("palette-error-main")),W(T.Alert,"infoIconColor",z("palette-info-main")),W(T.Alert,"successIconColor",z("palette-success-main")),W(T.Alert,"warningIconColor",z("palette-warning-main")),W(T.AppBar,"defaultBg",z("palette-grey-900")),W(T.AppBar,"darkBg",z("palette-background-paper")),W(T.AppBar,"darkColor",z("palette-text-primary")),W(T.Avatar,"defaultBg",z("palette-grey-600")),W(T.Button,"inheritContainedBg",z("palette-grey-800")),W(T.Button,"inheritContainedHoverBg",z("palette-grey-700")),W(T.Chip,"defaultBorder",z("palette-grey-700")),W(T.Chip,"defaultAvatarColor",z("palette-grey-300")),W(T.Chip,"defaultIconColor",z("palette-grey-300")),W(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),W(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),W(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),W(T.LinearProgress,"primaryBg",Pt(T.primary.main,.5)),W(T.LinearProgress,"secondaryBg",Pt(T.secondary.main,.5)),W(T.LinearProgress,"errorBg",Pt(T.error.main,.5)),W(T.LinearProgress,"infoBg",Pt(T.info.main,.5)),W(T.LinearProgress,"successBg",Pt(T.success.main,.5)),W(T.LinearProgress,"warningBg",Pt(T.warning.main,.5)),W(T.Skeleton,"bg",`rgba(${z("palette-text-primaryChannel")} / 0.13)`),W(T.Slider,"primaryTrack",Pt(T.primary.main,.5)),W(T.Slider,"secondaryTrack",Pt(T.secondary.main,.5)),W(T.Slider,"errorTrack",Pt(T.error.main,.5)),W(T.Slider,"infoTrack",Pt(T.info.main,.5)),W(T.Slider,"successTrack",Pt(T.success.main,.5)),W(T.Slider,"warningTrack",Pt(T.warning.main,.5));const X=vu(T.background.default,.98);W(T.SnackbarContent,"bg",X),W(T.SnackbarContent,"color",Kn(()=>T.getContrastText(X))),W(T.SpeedDialAction,"fabHoverBg",vu(T.background.paper,.15)),W(T.StepConnector,"border",z("palette-grey-600")),W(T.StepContent,"border",z("palette-grey-600")),W(T.Switch,"defaultColor",z("palette-grey-300")),W(T.Switch,"defaultDisabledColor",z("palette-grey-600")),W(T.Switch,"primaryDisabledColor",Pt(T.primary.main,.55)),W(T.Switch,"secondaryDisabledColor",Pt(T.secondary.main,.55)),W(T.Switch,"errorDisabledColor",Pt(T.error.main,.55)),W(T.Switch,"infoDisabledColor",Pt(T.info.main,.55)),W(T.Switch,"successDisabledColor",Pt(T.success.main,.55)),W(T.Switch,"warningDisabledColor",Pt(T.warning.main,.55)),W(T.TableCell,"border",Pt(yu(T.divider,1),.68)),W(T.Tooltip,"bg",yu(T.grey[700],.92))}Tr(T.background,"default"),Tr(T.background,"paper"),Tr(T.common,"background"),Tr(T.common,"onBackground"),Tr(T,"divider"),Object.keys(T).forEach(X=>{const K=T[X];X!=="tonalOffset"&&K&&typeof K=="object"&&(K.main&&W(T[X],"mainChannel",To(Co(K.main))),K.light&&W(T[X],"lightChannel",To(Co(K.light))),K.dark&&W(T[X],"darkChannel",To(Co(K.dark))),K.contrastText&&W(T[X],"contrastTextChannel",To(Co(K.contrastText))),X==="text"&&(Tr(T[X],"primary"),Tr(T[X],"secondary")),X==="action"&&(K.active&&Tr(T[X],"active"),K.selected&&Tr(T[X],"selected")))})}),k=n.reduce(($,T)=>dn($,T),k);const M={prefix:u,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:bE(k)},{vars:R,generateThemeVars:D,generateStyleSheets:L}=VM(k,M);return k.vars=R,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([$,T])=>{k[$]=T}),k.generateThemeVars=D,k.generateStyleSheets=L,k.generateSpacing=function(){return nx(h.spacing,bm(this))},k.getColorSchemeSelector=XM(f),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=c,k.unstable_sxConfig={...Po,...h==null?void 0:h.unstable_sxConfig},k.unstable_sx=function(T){return $i({sx:T,theme:this})},k.toRuntimeSource=yx,k}function W1(t,n,i){t.colorSchemes&&i&&(t.colorSchemes[n]={...i!==!0&&i,palette:Rm({...i===!0?{}:i.palette,mode:n})})}function _m(t={},...n){const{palette:i,cssVariables:a=!1,colorSchemes:o=i?void 0:{light:!0},defaultColorScheme:u=i==null?void 0:i.mode,...c}=t,f=u||"light",m=o==null?void 0:o[f],h={...o,...i?{[f]:{...typeof m!="boolean"&&m,palette:i}}:void 0};if(a===!1){if(!("colorSchemes"in t))return Ih(t,...n);let p=i;"palette"in t||h[f]&&(h[f]!==!0?p=h[f].palette:f==="dark"&&(p={mode:"dark"}));const y=Ih({...t,palette:p},...n);return y.defaultColorScheme=f,y.colorSchemes=h,y.palette.mode==="light"&&(y.colorSchemes.light={...h.light!==!0&&h.light,palette:y.palette},W1(y,"dark",h.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:y.palette},W1(y,"light",h.light)),y}return!i&&!("light"in h)&&f==="light"&&(h.light=!0),TE({...c,colorSchemes:h,defaultColorScheme:f,...typeof a!="boolean"&&a},...n)}const km=_m();function Zo(){const t=ix(km);return t[Er]||t}function ir({props:t,name:n}){return vM({props:t,name:n,defaultTheme:km,themeId:Er})}function CE(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const wE=t=>CE(t)&&t!=="classes",he=dM({themeId:Er,defaultTheme:km,rootShouldForwardProp:wE});function ME({theme:t,...n}){const i=Er in t?t[Er]:void 0;return H.jsx(dx,{...n,themeId:i?Er:void 0,theme:i||t})}const bu={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:EE}=YM({themeId:Er,theme:()=>_m({cssVariables:!0}),colorSchemeStorageKey:bu.colorSchemeStorageKey,modeStorageKey:bu.modeStorageKey,defaultColorScheme:{light:bu.defaultLightColorScheme,dark:bu.defaultDarkColorScheme},resolveTheme:t=>{const n={...t,typography:px(t.palette,t.typography)};return n.unstable_sx=function(a){return $i({sx:a,theme:this})},n}}),OE=EE;function RE({theme:t,...n}){const i=Y.useMemo(()=>{if(typeof t=="function")return t;const a=Er in t?t[Er]:t;return"colorSchemes"in a?null:"vars"in a?t:{...t,vars:null}},[t]);return i?H.jsx(ME,{theme:i,...n}):H.jsx(OE,{theme:t,...n})}function Qt(t,n){if(t==null)return{};var i={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(n.indexOf(a)!==-1)continue;i[a]=t[a]}return i}function _E(t){return zn("MuiBarElement",t)}const kE=qn("MuiBarElement",["root","highlighted","faded","series"]),DE=t=>{const{classes:n,id:i,isHighlighted:a,isFaded:o}=t,u={root:["root",`series-${i}`,a&&"highlighted",o&&"faded"]};return Nn(u,_E,n)};function Wa(...t){const n=Y.useRef(void 0),i=Y.useCallback(a=>{const o=t.map(u=>{if(u==null)return null;if(typeof u=="function"){const c=u,f=c(a);return typeof f=="function"?f:()=>{c(null)}}return u.current=a,()=>{u.current=null}});return()=>{o.forEach(u=>u==null?void 0:u())}},t);return Y.useMemo(()=>t.every(a=>a==null)?null:a=>{n.current&&(n.current(),n.current=void 0),a!=null&&(n.current=i(a))},t)}function zE(t){return typeof t=="string"}function NE(t,n,i){return t===void 0||zE(t)?n:{...n,ownerState:{...n.ownerState,...i}}}function UE(t,n=[]){if(t===void 0)return{};const i={};return Object.keys(t).filter(a=>a.match(/^on[A-Z]/)&&typeof t[a]=="function"&&!n.includes(a)).forEach(a=>{i[a]=t[a]}),i}function J1(t){if(t===void 0)return{};const n={};return Object.keys(t).filter(i=>!(i.match(/^on[A-Z]/)&&typeof t[i]=="function")).forEach(i=>{n[i]=t[i]}),n}function jE(t){const{getSlotProps:n,additionalProps:i,externalSlotProps:a,externalForwardedProps:o,className:u}=t;if(!n){const b=Mn(i==null?void 0:i.className,u,o==null?void 0:o.className,a==null?void 0:a.className),x={...i==null?void 0:i.style,...o==null?void 0:o.style,...a==null?void 0:a.style},S={...i,...o,...a};return b.length>0&&(S.className=b),Object.keys(x).length>0&&(S.style=x),{props:S,internalRef:void 0}}const c=UE({...o,...a}),f=J1(a),m=J1(o),h=n(c),p=Mn(h==null?void 0:h.className,i==null?void 0:i.className,u,o==null?void 0:o.className,a==null?void 0:a.className),y={...h==null?void 0:h.style,...i==null?void 0:i.style,...o==null?void 0:o.style,...a==null?void 0:a.style},v={...h,...i,...m,...f};return p.length>0&&(v.className=p),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:h.ref}}function $E(t,n,i){return typeof t=="function"?t(n,i):t}function Or(t){var y;const{elementType:n,externalSlotProps:i,ownerState:a,skipResolvingSlotProps:o=!1,...u}=t,c=o?{}:$E(i,a),{props:f,internalRef:m}=jE({...u,externalSlotProps:c}),h=Wa(m,c==null?void 0:c.ref,(y=t.additionalProps)==null?void 0:y.ref);return NE(n,{...f,ref:h},a)}let tv=0;function BE(t){const[n,i]=Y.useState(t),a=n;return Y.useEffect(()=>{n==null&&(tv+=1,i(`mui-${tv}`))},[n]),a}const LE={...Bh},ev=LE.useId;function xx(t){return ev!==void 0?ev():BE(t)}class HE{constructor(n){this.value=void 0,this.listeners=void 0,this.subscribe=i=>(this.listeners.add(i),()=>{this.listeners.delete(i)}),this.getSnapshot=()=>this.value,this.update=i=>{const a=i(this.value);a!==this.value&&(this.value=a,this.listeners.forEach(o=>o(a)))},this.value=n,this.listeners=new Set}}const yc=({params:t,store:n})=>{Y.useEffect(()=>{n.update(a=>I({},a,{animation:I({},a.animation,{skip:t.skipAnimation})}))},[n,t.skipAnimation]);const i=Y.useCallback(()=>{let a=!1;return n.update(o=>I({},o,{animation:I({},o.animation,{skipAnimationRequests:o.animation.skipAnimationRequests+1})})),()=>{a||(a=!0,n.update(o=>I({},o,{animation:I({},o.animation,{skipAnimationRequests:o.animation.skipAnimationRequests-1})})))}},[n]);return Ye(()=>{if(typeof window>"u"||!(window!=null&&window.matchMedia))return;let o;const u=f=>{f.matches?o=i():o==null||o()},c=window.matchMedia("(prefers-reduced-motion)");return u(c),c.addEventListener("change",u),()=>{c.removeEventListener("change",u)}},[i,n]),{instance:{disableAnimation:i}}};yc.params={skipAnimation:!0};yc.getDefaultizedParams=({params:t})=>I({},t,{skipAnimation:t.skipAnimation??!1});yc.getInitialState=({skipAnimation:t})=>({animation:{skip:t,skipAnimationRequests:0}});var $u=Symbol("NOT_FOUND");function YE(t,n=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(n)}function GE(t,n=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(n)}function qE(t,n="expected all items to be functions, instead received the following types: "){if(!t.every(i=>typeof i=="function")){const i=t.map(a=>typeof a=="function"?`function ${a.name||"unnamed"}()`:typeof a).join(", ");throw new TypeError(`${n}[${i}]`)}}var nv=t=>Array.isArray(t)?t:[t];function IE(t){const n=Array.isArray(t[0])?t[0]:t;return qE(n,"createSelector expects all input-selectors to be functions, but received the following types: "),n}function VE(t,n){const i=[],{length:a}=t;for(let o=0;o<a;o++)i.push(t[o].apply(null,n));return i}function XE(t){let n;return{get(i){return n&&t(n.key,i)?n.value:$u},put(i,a){n={key:i,value:a}},getEntries(){return n?[n]:[]},clear(){n=void 0}}}function PE(t,n){let i=[];function a(f){const m=i.findIndex(h=>n(f,h.key));if(m>-1){const h=i[m];return m>0&&(i.splice(m,1),i.unshift(h)),h.value}return $u}function o(f,m){a(f)===$u&&(i.unshift({key:f,value:m}),i.length>t&&i.pop())}function u(){return i}function c(){i=[]}return{get:a,put:o,getEntries:u,clear:c}}var ZE=(t,n)=>t===n;function QE(t){return function(i,a){if(i===null||a===null||i.length!==a.length)return!1;const{length:o}=i;for(let u=0;u<o;u++)if(!t(i[u],a[u]))return!1;return!0}}function KE(t,n){const i=typeof n=="object"?n:{equalityCheck:n},{equalityCheck:a=ZE,maxSize:o=1,resultEqualityCheck:u}=i,c=QE(a);let f=0;const m=o<=1?XE(c):PE(o,c);function h(){let p=m.get(arguments);if(p===$u){if(p=t.apply(null,arguments),f++,u){const v=m.getEntries().find(b=>u(b.value,p));v&&(p=v.value,f!==0&&f--)}m.put(arguments,p)}return p}return h.clearCache=()=>{m.clear(),h.resetResultsCount()},h.resultsCount=()=>f,h.resetResultsCount=()=>{f=0},h}var FE=class{constructor(t){this.value=t}deref(){return this.value}},WE=typeof WeakRef<"u"?WeakRef:FE,JE=0,rv=1;function xu(){return{s:JE,v:void 0,o:null,p:null}}function Sx(t,n={}){let i=xu();const{resultEqualityCheck:a}=n;let o,u=0;function c(){var y;let f=i;const{length:m}=arguments;for(let v=0,b=m;v<b;v++){const x=arguments[v];if(typeof x=="function"||typeof x=="object"&&x!==null){let S=f.o;S===null&&(f.o=S=new WeakMap);const C=S.get(x);C===void 0?(f=xu(),S.set(x,f)):f=C}else{let S=f.p;S===null&&(f.p=S=new Map);const C=S.get(x);C===void 0?(f=xu(),S.set(x,f)):f=C}}const h=f;let p;if(f.s===rv)p=f.v;else if(p=t.apply(null,arguments),u++,a){const v=((y=o==null?void 0:o.deref)==null?void 0:y.call(o))??o;v!=null&&a(v,p)&&(p=v,u!==0&&u--),o=typeof p=="object"&&p!==null||typeof p=="function"?new WE(p):p}return h.s=rv,h.v=p,p}return c.clearCache=()=>{i=xu(),c.resetResultsCount()},c.resultsCount=()=>u,c.resetResultsCount=()=>{u=0},c}function Ax(t,...n){const i=typeof t=="function"?{memoize:t,memoizeOptions:n}:t,a=(...o)=>{let u=0,c=0,f,m={},h=o.pop();typeof h=="object"&&(m=h,h=o.pop()),YE(h,`createSelector expects an output function after the inputs, but received: [${typeof h}]`);const p={...i,...m},{memoize:y,memoizeOptions:v=[],argsMemoize:b=Sx,argsMemoizeOptions:x=[]}=p,S=nv(v),C=nv(x),E=IE(o),_=y(function(){return u++,h.apply(null,arguments)},...S),O=b(function(){c++;const M=VE(E,arguments);return f=_.apply(null,M),f},...C);return Object.assign(O,{resultFunc:h,memoizedResultFunc:_,dependencies:E,dependencyRecomputations:()=>c,resetDependencyRecomputations:()=>{c=0},lastResult:()=>f,recomputations:()=>u,resetRecomputations:()=>{u=0},memoize:y,argsMemoize:b})};return Object.assign(a,{withTypes:()=>a}),a}var tO=Ax(Sx),eO=Object.assign((t,n=tO)=>{GE(t,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof t}`);const i=Object.keys(t),a=i.map(u=>t[u]);return n(a,(...u)=>u.reduce((c,f,m)=>(c[i[m]]=f,c),{}))},{withTypes:()=>eO});const nO=Ax({memoize:KE,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),iv=new WeakMap,ft=(...t)=>(i,a)=>{const o=i.cacheKey;let u=iv.get(o);u||(u=new Map,iv.set(o,u));const c=u.get(t);if(c)return c(i,a);const f=nO(...t);return u.set(t,f),f(i,a)},rO=t=>t.animation,iO=ft(rO,t=>t.skip||t.skipAnimationRequests>0);function Vh(t){return t&&t.ownerDocument||document}function aO(t){return Vh(t).defaultView||window}const Dm="DEFAULT_X_AXIS_KEY",zm="DEFAULT_Y_AXIS_KEY",lO={top:20,bottom:20,left:20,right:20},oO=45,sO=25,Tx=20,uO=4,dl=20+2*uO,Cx=t=>t.cartesianAxis,hl=ft(Cx,t=>t==null?void 0:t.x),Qo=ft(Cx,t=>t==null?void 0:t.y),cO=ft([Qo],t=>(t??[]).reduce((n,i)=>{var a;return i.position==="left"?n+(i.width||0)+((a=i.zoom)!=null&&a.slider.enabled?dl:0):n},0)),fO=ft([Qo],t=>(t??[]).reduce((n,i)=>{var a;return i.position==="right"?n+(i.width||0)+((a=i.zoom)!=null&&a.slider.enabled?dl:0):n},0)),dO=ft([hl],t=>(t??[]).reduce((n,i)=>{var a;return i.position==="top"?n+(i.height||0)+((a=i.zoom)!=null&&a.slider.enabled?dl:0):n},0)),hO=ft([hl],t=>(t??[]).reduce((n,i)=>{var a;return i.position==="bottom"?n+(i.height||0)+((a=i.zoom)!=null&&a.slider.enabled?dl:0):n},0)),vc=t=>t.dimensions,bc=ft(vc,t=>t.margin),wx=ft(vc,t=>t.width),Mx=ft(vc,t=>t.height),mO=ft(bc,t=>t.top),gO=ft(bc,t=>t.right),pO=ft(bc,t=>t.bottom),yO=ft(bc,t=>t.left),Ur=ft(wx,Mx,mO,gO,pO,yO,dO,fO,hO,cO,(t,n,i,a,o,u,c,f,m,h)=>({width:t-u-a-h-f,left:u+h,right:a+f,height:n-i-o-c-m,top:i+c,bottom:o+m})),vO=ft(vc,t=>({width:t.propsWidth,height:t.propsHeight})),bO=ft(wx,Mx,(t,n)=>({width:t,height:n}));function xO(t,n){return typeof t=="number"?{top:t,bottom:t,left:t,right:t}:n?I({},n,t):t}const SO=10,xc=({params:t,store:n,svgRef:i})=>{const a=t.width!==void 0&&t.height!==void 0,o=Y.useRef({displayError:!1,initialCompute:!0,computeRun:0}),[u,c]=Y.useState(0),[f,m]=Y.useState(0),h=Y.useCallback(()=>{const y=i==null?void 0:i.current;if(!y)return{};const b=aO(y).getComputedStyle(y),x=Math.floor(parseFloat(b.height))||0,S=Math.floor(parseFloat(b.width))||0;return n.update(C=>C.dimensions.width===S&&C.dimensions.height===x?C:I({},C,{dimensions:{margin:{top:t.margin.top,right:t.margin.right,bottom:t.margin.bottom,left:t.margin.left},width:t.width??S,height:t.height??x,propsWidth:t.width,propsHeight:t.height}})),{height:x,width:S}},[n,i,t.height,t.width,t.margin.left,t.margin.right,t.margin.top,t.margin.bottom]);return Y.useEffect(()=>{n.update(y=>{const v=t.width??y.dimensions.width,b=t.height??y.dimensions.height;return I({},y,{dimensions:{margin:{top:t.margin.top,right:t.margin.right,bottom:t.margin.bottom,left:t.margin.left},width:v,height:b,propsHeight:t.height,propsWidth:t.width}})})},[n,t.height,t.width,t.margin.left,t.margin.right,t.margin.top,t.margin.bottom]),Y.useEffect(()=>{o.current.displayError=!0},[]),Ye(()=>{if(a||!o.current.initialCompute||o.current.computeRun>SO)return;const y=h();y.width!==u||y.height!==f?(o.current.computeRun+=1,y.width!==void 0&&c(y.width),y.height!==void 0&&m(y.height)):o.current.initialCompute&&(o.current.initialCompute=!1)},[f,u,h,a]),Ye(()=>{if(a)return()=>{};h();const y=i.current;if(typeof ResizeObserver>"u")return()=>{};let v;const b=new ResizeObserver(()=>{v=requestAnimationFrame(()=>{h()})});return y&&b.observe(y),()=>{v&&cancelAnimationFrame(v),y&&b.unobserve(y)}},[h,a,i]),{instance:{isPointInside:Y.useCallback(({x:y,y:v},b)=>{if(b!=null&&b.targetElement&&(b!=null&&b.targetElement.closest("[data-drawing-container]")))return!0;const x=Ur(n.value),S=y>=x.left-1&&y<=x.left+x.width,C=v>=x.top-1&&v<=x.top+x.height;return(b==null?void 0:b.direction)==="x"?S:((b==null?void 0:b.direction)==="y"||S)&&C},[n.value])}}};xc.params={width:!0,height:!0,margin:!0};xc.getDefaultizedParams=({params:t})=>I({},t,{margin:xO(t.margin,lO)});xc.getInitialState=({width:t,height:n,margin:i})=>({dimensions:{margin:i,width:t??0,height:n??0,propsWidth:t,propsHeight:n}});let av=0;const AO=()=>(av+=1,`mui-chart-${av}`),Nm=({params:t,store:n})=>(Y.useEffect(()=>{n.update(i=>t.id===void 0||t.id===i.id.providedChartId&&i.id.chartId!==void 0?i:I({},i,{id:I({},i.id,{chartId:t.id??AO()})}))},[n,t.id]),{});Nm.params={id:!0};Nm.getInitialState=({id:t})=>({id:{chartId:t,providedChartId:t}});const TO=t=>t.id,CO=ft(TO,t=>t.chartId),wO=["#4254FB","#FFB422","#FA4F58","#0DBEFF","#22BF75","#FA83B4","#FF7511"],MO=["#495AFB","#FFC758","#F35865","#30C8FF","#44CE8D","#F286B3","#FF8C39"],Ex=t=>t==="dark"?MO:wO,Ox=({series:t,colors:n,seriesConfig:i,dataset:a})=>{const o={};t.forEach((c,f)=>{var p;const m=i[c.type].getSeriesWithDefaultValues(c,f,n),h=m.id;if(o[c.type]===void 0&&(o[c.type]={series:{},seriesOrder:[]}),((p=o[c.type])==null?void 0:p.series[h])!==void 0)throw new Error(`MUI X Charts: series' id "${h}" is not unique.`);o[c.type].series[h]=m,o[c.type].seriesOrder.push(h)});const u={};return Object.keys(i).forEach(c=>{var m,h;const f=o[c];f!==void 0&&(u[c]=((h=(m=i[c])==null?void 0:m.seriesProcessor)==null?void 0:h.call(m,f,a))??o[c])}),u},Sc=({params:t,store:n,seriesConfig:i})=>{const{series:a,dataset:o,theme:u,colors:c}=t,f=Y.useRef(!0);return Y.useEffect(()=>{if(f.current){f.current=!1;return}n.update(m=>I({},m,{series:I({},m.series,{processedSeries:Ox({series:a,colors:typeof c=="function"?c(u):c,seriesConfig:i,dataset:o})})}))},[c,o,a,u,i,n]),{}};Sc.params={dataset:!0,series:!0,colors:!0,theme:!0};const EO=[];Sc.getDefaultizedParams=({params:t})=>{var n;return I({},t,{series:(n=t.series)!=null&&n.length?t.series:EO,colors:t.colors??Ex,theme:t.theme??"light"})};Sc.getInitialState=({series:t=[],colors:n,theme:i,dataset:a},o,u)=>({series:{seriesConfig:u,processedSeries:Ox({series:t,colors:typeof n=="function"?n(i):n,seriesConfig:u,dataset:a})}});const Rx=t=>t.series,In=ft(Rx,t=>t.processedSeries),jr=ft(Rx,t=>t.seriesConfig),OO=[Nm,xc,Sc,yc],RO=["apiRef"],_O=t=>{let{plugins:n}=t,i=Qt(t.props,RO);const a={};n.forEach(c=>{Object.assign(a,c.params)});const o={};return Object.keys(i).forEach(c=>{const f=i[c];a[c]&&(o[c]=f)}),n.reduce((c,f)=>f.getDefaultizedParams?f.getDefaultizedParams({params:c}):c,o)};let lv=0;function kO(t,n,i){const a=xx(),o=Y.useMemo(()=>[...OO,...t],[t]),u=_O({plugins:o,props:n});u.id=u.id??a;const f=Y.useRef({}).current,m=zO(n.apiRef),h=Y.useRef(null),p=Y.useRef(null),y=Y.useRef(null);if(y.current==null){lv+=1;const x={cacheKey:{id:lv}};o.forEach(S=>{S.getInitialState&&Object.assign(x,S.getInitialState(u,x,i))}),y.current=new HE(x)}const v=x=>{const S=x({instance:f,params:u,plugins:o,store:y.current,svgRef:p,chartRootRef:h,seriesConfig:i});S.publicAPI&&Object.assign(m.current,S.publicAPI),S.instance&&Object.assign(f,S.instance)};return o.forEach(v),{contextValue:Y.useMemo(()=>({store:y.current,publicAPI:m.current,instance:f,svgRef:p,chartRootRef:h}),[f,m])}}function DO(t){return t.current==null&&(t.current={}),t}function zO(t){const n=Y.useRef({});return t?DO(t):n}const _x=Y.createContext(null);var mh={exports:{}},gh={};/** 99 99 * @license React 100 100 * use-sync-external-store-with-selector.production.js 101 101 * ··· 103 103 * 104 104 * This source code is licensed under the MIT license found in the 105 105 * LICENSE file in the root directory of this source tree. 106 - */var ov;function NO(){if(ov)return gh;ov=1;var t=ic();function n(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}var i=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,f=t.useDebugValue;return gh.useSyncExternalStoreWithSelector=function(m,h,p,y,v){var b=o(null);if(b.current===null){var x={hasValue:!1,value:null};b.current=x}else x=b.current;b=c(function(){function C(M){if(!E){if(E=!0,R=M,M=y(M),v!==void 0&&x.hasValue){var _=x.value;if(v(_,M))return O=_}return O=M}if(_=O,i(R,M))return _;var D=y(M);return v!==void 0&&v(_,D)?(R=M,_):(R=M,O=D)}var E=!1,R,O,k=p===void 0?null:p;return[function(){return C(h())},k===null?void 0:function(){return C(k())}]},[h,p,y,v]);var S=a(m,b[0],b[1]);return s(function(){x.hasValue=!0,x.value=S},[S]),f(S),S},gh}var uv;function UO(){return uv||(uv=1,mh.exports=NO()),mh.exports}var jO=UO();const $O=Object.is,wt=(t,n,i=void 0,a=$O)=>{const o=s=>n(s,i);return jO.useSyncExternalStoreWithSelector(t.subscribe,t.getSnapshot,t.getSnapshot,o,a)},ph={minStart:0,maxEnd:100,step:5,minSpan:10,maxSpan:100,panning:!0,filterMode:"keep",slider:{enabled:!1}},Um=(t,n,i)=>{if(t)return t===!0?I({axisId:n,axisDirection:i},ph):I({axisId:n,axisDirection:i},ph,t,{slider:I({},ph.slider,t.slider)})};function kx(t,n){const i={top:0,bottom:0,none:0};return(t&&t.length>0?t:[{id:Dm,scaleType:"linear"}]).map((s,c)=>{var b;const f=s.dataKey,m=c===0?"bottom":"none",h=s.position??m,p=uO+(s.label?Tx:0),y=s.id??`defaultized-x-axis-${c}`,v=I({offset:i[h]},s,{id:y,position:h,height:s.height??p,zoom:Um(s.zoom,y,"x")});if(h!=="none"&&(i[h]+=v.height,(b=v.zoom)!=null&&b.slider.enabled&&(i[h]+=dl)),f===void 0||s.data!==void 0)return v;if(n===void 0)throw new Error("MUI X Charts: x-axis uses `dataKey` but no `dataset` is provided.");return I({},v,{data:n.map(x=>x[f])})})}function Dx(t,n){const i={right:0,left:0,none:0};return(t&&t.length>0?t:[{id:zm,scaleType:"linear"}]).map((s,c)=>{var b;const f=s.dataKey,m=c===0?"left":"none",h=s.position??m,p=oO+(s.label?Tx:0),y=s.id??`defaultized-y-axis-${c}`,v=I({offset:i[h]},s,{id:y,position:h,width:s.width??p,zoom:Um(s.zoom,y,"y")});if(h!=="none"&&(i[h]+=v.width,(b=v.zoom)!=null&&b.slider.enabled&&(i[h]+=dl)),f===void 0||s.data!==void 0)return v;if(n===void 0)throw new Error("MUI X Charts: y-axis uses `dataKey` but no `dataset` is provided.");return I({},v,{data:n.map(x=>x[f])})})}function zs(t,n){return t==null||n==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function BO(t,n){return t==null||n==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function jm(t){let n,i,a;t.length!==2?(n=zs,i=(f,m)=>zs(t(f),m),a=(f,m)=>t(f)-m):(n=t===zs||t===BO?t:LO,i=t,a=t);function o(f,m,h=0,p=f.length){if(h<p){if(n(m,m)!==0)return p;do{const y=h+p>>>1;i(f[y],m)<0?h=y+1:p=y}while(h<p)}return h}function s(f,m,h=0,p=f.length){if(h<p){if(n(m,m)!==0)return p;do{const y=h+p>>>1;i(f[y],m)<=0?h=y+1:p=y}while(h<p)}return h}function c(f,m,h=0,p=f.length){const y=o(f,m,h,p-1);return y>h&&a(f[y-1],m)>-a(f[y],m)?y-1:y}return{left:o,center:c,right:s}}function LO(){return 0}function HO(t){return t===null?NaN:+t}const YO=jm(zs),zx=YO.right;jm(HO).center;class sv extends Map{constructor(n,i=IO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:i}}),n!=null)for(const[a,o]of n)this.set(a,o)}get(n){return super.get(cv(this,n))}has(n){return super.has(cv(this,n))}set(n,i){return super.set(GO(this,n),i)}delete(n){return super.delete(qO(this,n))}}function cv({_intern:t,_key:n},i){const a=n(i);return t.has(a)?t.get(a):i}function GO({_intern:t,_key:n},i){const a=n(i);return t.has(a)?t.get(a):(t.set(a,i),i)}function qO({_intern:t,_key:n},i){const a=n(i);return t.has(a)&&(i=t.get(a),t.delete(a)),i}function IO(t){return t!==null&&typeof t=="object"?t.valueOf():t}const VO=Math.sqrt(50),XO=Math.sqrt(10),PO=Math.sqrt(2);function Bs(t,n,i){const a=(n-t)/Math.max(0,i),o=Math.floor(Math.log10(a)),s=a/Math.pow(10,o),c=s>=VO?10:s>=XO?5:s>=PO?2:1;let f,m,h;return o<0?(h=Math.pow(10,-o)/c,f=Math.round(t*h),m=Math.round(n*h),f/h<t&&++f,m/h>n&&--m,h=-h):(h=Math.pow(10,o)*c,f=Math.round(t/h),m=Math.round(n/h),f*h<t&&++f,m*h>n&&--m),m<f&&.5<=i&&i<2?Bs(t,n,i*2):[f,m,h]}function Xh(t,n,i){if(n=+n,t=+t,i=+i,!(i>0))return[];if(t===n)return[t];const a=n<t,[o,s,c]=a?Bs(n,t,i):Bs(t,n,i);if(!(s>=o))return[];const f=s-o+1,m=new Array(f);if(a)if(c<0)for(let h=0;h<f;++h)m[h]=(s-h)/-c;else for(let h=0;h<f;++h)m[h]=(s-h)*c;else if(c<0)for(let h=0;h<f;++h)m[h]=(o+h)/-c;else for(let h=0;h<f;++h)m[h]=(o+h)*c;return m}function Ph(t,n,i){return n=+n,t=+t,i=+i,Bs(t,n,i)[2]}function Zh(t,n,i){n=+n,t=+t,i=+i;const a=n<t,o=a?Ph(n,t,i):Ph(t,n,i);return(a?-1:1)*(o<0?1/-o:o)}function ZO(t,n,i){t=+t,n=+n,i=(o=arguments.length)<2?(n=t,t=0,1):o<3?1:+i;for(var a=-1,o=Math.max(0,Math.ceil((n-t)/i))|0,s=new Array(o);++a<o;)s[a]=t+a*i;return s}function ci(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t);break}return this}function QO(t,n){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof n=="function"?this.interpolator(n):this.range(n);break}}return this}const fv=Symbol("implicit");function Ls(){var t=new sv,n=[],i=[],a=fv;function o(s){let c=t.get(s);if(c===void 0){if(a!==fv)return a;t.set(s,c=n.push(s)-1)}return i[c%i.length]}return o.domain=function(s){if(!arguments.length)return n.slice();n=[],t=new sv;for(const c of s)t.has(c)||t.set(c,n.push(c)-1);return o},o.range=function(s){return arguments.length?(i=Array.from(s),o):i.slice()},o.unknown=function(s){return arguments.length?(a=s,o):a},o.copy=function(){return Ls(n,i).unknown(a)},ci.apply(o,arguments),o}function Ac(){var t=Ls().unknown(void 0),n=t.domain,i=t.range,a=0,o=1,s,c,f=!1,m=0,h=0,p=.5;delete t.unknown;function y(){var v=n().length,b=o<a,x=b?o:a,S=b?a:o;s=(S-x)/Math.max(1,v-m+h*2),f&&(s=Math.floor(s)),x+=(S-x-s*(v-m))*p,c=s*(1-m),f&&(x=Math.round(x),c=Math.round(c));var C=ZO(v).map(function(E){return x+s*E});return i(b?C.reverse():C)}return t.domain=function(v){return arguments.length?(n(v),y()):n()},t.range=function(v){return arguments.length?([a,o]=v,a=+a,o=+o,y()):[a,o]},t.rangeRound=function(v){return[a,o]=v,a=+a,o=+o,f=!0,y()},t.bandwidth=function(){return c},t.step=function(){return s},t.round=function(v){return arguments.length?(f=!!v,y()):f},t.padding=function(v){return arguments.length?(m=Math.min(1,h=+v),y()):m},t.paddingInner=function(v){return arguments.length?(m=Math.min(1,v),y()):m},t.paddingOuter=function(v){return arguments.length?(h=+v,y()):h},t.align=function(v){return arguments.length?(p=Math.max(0,Math.min(1,v)),y()):p},t.copy=function(){return Ac(n(),[a,o]).round(f).paddingInner(m).paddingOuter(h).align(p)},ci.apply(y(),arguments)}function Nx(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Nx(n())},t}function Ux(){return Nx(Ac.apply(null,arguments).paddingInner(1))}function $m(t,n,i){t.prototype=n.prototype=i,i.constructor=t}function jx(t,n){var i=Object.create(t.prototype);for(var a in n)i[a]=n[a];return i}function Ko(){}var jo=.7,Hs=1/jo,Za="\\s*([+-]?\\d+)\\s*",$o="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",er="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",KO=/^#([0-9a-f]{3,8})$/,FO=new RegExp(`^rgb\\(${Za},${Za},${Za}\\)$`),WO=new RegExp(`^rgb\\(${er},${er},${er}\\)$`),JO=new RegExp(`^rgba\\(${Za},${Za},${Za},${$o}\\)$`),t3=new RegExp(`^rgba\\(${er},${er},${er},${$o}\\)$`),e3=new RegExp(`^hsl\\(${$o},${er},${er}\\)$`),n3=new RegExp(`^hsla\\(${$o},${er},${er},${$o}\\)$`),dv={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};$m(Ko,Bo,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:hv,formatHex:hv,formatHex8:r3,formatHsl:i3,formatRgb:mv,toString:mv});function hv(){return this.rgb().formatHex()}function r3(){return this.rgb().formatHex8()}function i3(){return $x(this).formatHsl()}function mv(){return this.rgb().formatRgb()}function Bo(t){var n,i;return t=(t+"").trim().toLowerCase(),(n=KO.exec(t))?(i=n[1].length,n=parseInt(n[1],16),i===6?gv(n):i===3?new We(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):i===8?Ss(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):i===4?Ss(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=FO.exec(t))?new We(n[1],n[2],n[3],1):(n=WO.exec(t))?new We(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=JO.exec(t))?Ss(n[1],n[2],n[3],n[4]):(n=t3.exec(t))?Ss(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=e3.exec(t))?vv(n[1],n[2]/100,n[3]/100,1):(n=n3.exec(t))?vv(n[1],n[2]/100,n[3]/100,n[4]):dv.hasOwnProperty(t)?gv(dv[t]):t==="transparent"?new We(NaN,NaN,NaN,0):null}function gv(t){return new We(t>>16&255,t>>8&255,t&255,1)}function Ss(t,n,i,a){return a<=0&&(t=n=i=NaN),new We(t,n,i,a)}function a3(t){return t instanceof Ko||(t=Bo(t)),t?(t=t.rgb(),new We(t.r,t.g,t.b,t.opacity)):new We}function Qh(t,n,i,a){return arguments.length===1?a3(t):new We(t,n,i,a??1)}function We(t,n,i,a){this.r=+t,this.g=+n,this.b=+i,this.opacity=+a}$m(We,Qh,jx(Ko,{brighter(t){return t=t==null?Hs:Math.pow(Hs,t),new We(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?jo:Math.pow(jo,t),new We(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new We(zi(this.r),zi(this.g),zi(this.b),Ys(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:pv,formatHex:pv,formatHex8:l3,formatRgb:yv,toString:yv}));function pv(){return`#${Ri(this.r)}${Ri(this.g)}${Ri(this.b)}`}function l3(){return`#${Ri(this.r)}${Ri(this.g)}${Ri(this.b)}${Ri((isNaN(this.opacity)?1:this.opacity)*255)}`}function yv(){const t=Ys(this.opacity);return`${t===1?"rgb(":"rgba("}${zi(this.r)}, ${zi(this.g)}, ${zi(this.b)}${t===1?")":`, ${t})`}`}function Ys(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function zi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ri(t){return t=zi(t),(t<16?"0":"")+t.toString(16)}function vv(t,n,i,a){return a<=0?t=n=i=NaN:i<=0||i>=1?t=n=NaN:n<=0&&(t=NaN),new Yn(t,n,i,a)}function $x(t){if(t instanceof Yn)return new Yn(t.h,t.s,t.l,t.opacity);if(t instanceof Ko||(t=Bo(t)),!t)return new Yn;if(t instanceof Yn)return t;t=t.rgb();var n=t.r/255,i=t.g/255,a=t.b/255,o=Math.min(n,i,a),s=Math.max(n,i,a),c=NaN,f=s-o,m=(s+o)/2;return f?(n===s?c=(i-a)/f+(i<a)*6:i===s?c=(a-n)/f+2:c=(n-i)/f+4,f/=m<.5?s+o:2-s-o,c*=60):f=m>0&&m<1?0:c,new Yn(c,f,m,t.opacity)}function o3(t,n,i,a){return arguments.length===1?$x(t):new Yn(t,n,i,a??1)}function Yn(t,n,i,a){this.h=+t,this.s=+n,this.l=+i,this.opacity=+a}$m(Yn,o3,jx(Ko,{brighter(t){return t=t==null?Hs:Math.pow(Hs,t),new Yn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?jo:Math.pow(jo,t),new Yn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,o=2*i-a;return new We(yh(t>=240?t-240:t+120,o,a),yh(t,o,a),yh(t<120?t+240:t-120,o,a),this.opacity)},clamp(){return new Yn(bv(this.h),As(this.s),As(this.l),Ys(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Ys(this.opacity);return`${t===1?"hsl(":"hsla("}${bv(this.h)}, ${As(this.s)*100}%, ${As(this.l)*100}%${t===1?")":`, ${t})`}`}}));function bv(t){return t=(t||0)%360,t<0?t+360:t}function As(t){return Math.max(0,Math.min(1,t||0))}function yh(t,n,i){return(t<60?n+(i-n)*t/60:t<180?i:t<240?n+(i-n)*(240-t)/60:n)*255}const Bm=t=>()=>t;function u3(t,n){return function(i){return t+i*n}}function s3(t,n,i){return t=Math.pow(t,i),n=Math.pow(n,i)-t,i=1/i,function(a){return Math.pow(t+a*n,i)}}function c3(t){return(t=+t)==1?Bx:function(n,i){return i-n?s3(n,i,t):Bm(isNaN(n)?i:n)}}function Bx(t,n){var i=n-t;return i?u3(t,i):Bm(isNaN(t)?n:t)}const xv=function t(n){var i=c3(n);function a(o,s){var c=i((o=Qh(o)).r,(s=Qh(s)).r),f=i(o.g,s.g),m=i(o.b,s.b),h=Bx(o.opacity,s.opacity);return function(p){return o.r=c(p),o.g=f(p),o.b=m(p),o.opacity=h(p),o+""}}return a.gamma=t,a}(1);function f3(t,n){n||(n=[]);var i=t?Math.min(n.length,t.length):0,a=n.slice(),o;return function(s){for(o=0;o<i;++o)a[o]=t[o]*(1-s)+n[o]*s;return a}}function d3(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function h3(t,n){var i=n?n.length:0,a=t?Math.min(i,t.length):0,o=new Array(a),s=new Array(i),c;for(c=0;c<a;++c)o[c]=Tc(t[c],n[c]);for(;c<i;++c)s[c]=n[c];return function(f){for(c=0;c<a;++c)s[c]=o[c](f);return s}}function Lm(t,n){var i=new Date;return t=+t,n=+n,function(a){return i.setTime(t*(1-a)+n*a),i}}function xe(t,n){return t=+t,n=+n,function(i){return t*(1-i)+n*i}}function m3(t,n){var i={},a={},o;(t===null||typeof t!="object")&&(t={}),(n===null||typeof n!="object")&&(n={});for(o in n)o in t?i[o]=Tc(t[o],n[o]):a[o]=n[o];return function(s){for(o in i)a[o]=i[o](s);return a}}var Kh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vh=new RegExp(Kh.source,"g");function g3(t){return function(){return t}}function p3(t){return function(n){return t(n)+""}}function y3(t,n){var i=Kh.lastIndex=vh.lastIndex=0,a,o,s,c=-1,f=[],m=[];for(t=t+"",n=n+"";(a=Kh.exec(t))&&(o=vh.exec(n));)(s=o.index)>i&&(s=n.slice(i,s),f[c]?f[c]+=s:f[++c]=s),(a=a[0])===(o=o[0])?f[c]?f[c]+=o:f[++c]=o:(f[++c]=null,m.push({i:c,x:xe(a,o)})),i=vh.lastIndex;return i<n.length&&(s=n.slice(i),f[c]?f[c]+=s:f[++c]=s),f.length<2?m[0]?p3(m[0].x):g3(n):(n=m.length,function(h){for(var p=0,y;p<n;++p)f[(y=m[p]).i]=y.x(h);return f.join("")})}function Tc(t,n){var i=typeof n,a;return n==null||i==="boolean"?Bm(n):(i==="number"?xe:i==="string"?(a=Bo(n))?(n=a,xv):y3:n instanceof Bo?xv:n instanceof Date?Lm:d3(n)?f3:Array.isArray(n)?h3:typeof n.valueOf!="function"&&typeof n.toString!="function"||isNaN(n)?m3:xe)(t,n)}function Lx(t,n){return t=+t,n=+n,function(i){return Math.round(t*(1-i)+n*i)}}function v3(t){return function(){return t}}function b3(t){return+t}var Sv=[0,1];function En(t){return t}function Fh(t,n){return(n-=t=+t)?function(i){return(i-t)/n}:v3(isNaN(n)?NaN:.5)}function x3(t,n){var i;return t>n&&(i=t,t=n,n=i),function(a){return Math.max(t,Math.min(n,a))}}function S3(t,n,i){var a=t[0],o=t[1],s=n[0],c=n[1];return o<a?(a=Fh(o,a),s=i(c,s)):(a=Fh(a,o),s=i(s,c)),function(f){return s(a(f))}}function A3(t,n,i){var a=Math.min(t.length,n.length)-1,o=new Array(a),s=new Array(a),c=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++c<a;)o[c]=Fh(t[c],t[c+1]),s[c]=i(n[c],n[c+1]);return function(f){var m=zx(t,f,1,a)-1;return s[m](o[m](f))}}function Cc(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Hm(){var t=Sv,n=Sv,i=Tc,a,o,s,c=En,f,m,h;function p(){var v=Math.min(t.length,n.length);return c!==En&&(c=x3(t[0],t[v-1])),f=v>2?A3:S3,m=h=null,y}function y(v){return v==null||isNaN(v=+v)?s:(m||(m=f(t.map(a),n,i)))(a(c(v)))}return y.invert=function(v){return c(o((h||(h=f(n,t.map(a),xe)))(v)))},y.domain=function(v){return arguments.length?(t=Array.from(v,b3),p()):t.slice()},y.range=function(v){return arguments.length?(n=Array.from(v),p()):n.slice()},y.rangeRound=function(v){return n=Array.from(v),i=Lx,p()},y.clamp=function(v){return arguments.length?(c=v?!0:En,p()):c!==En},y.interpolate=function(v){return arguments.length?(i=v,p()):i},y.unknown=function(v){return arguments.length?(s=v,y):s},function(v,b){return a=v,o=b,p()}}function Hx(){return Hm()(En,En)}function T3(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Gs(t,n){if((i=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var i,a=t.slice(0,i);return[a.length>1?a[0]+a.slice(2):a,+t.slice(i+1)]}function Ja(t){return t=Gs(Math.abs(t)),t?t[1]:NaN}function C3(t,n){return function(i,a){for(var o=i.length,s=[],c=0,f=t[0],m=0;o>0&&f>0&&(m+f+1>a&&(f=Math.max(1,a-m)),s.push(i.substring(o-=f,o+f)),!((m+=f+1)>a));)f=t[c=(c+1)%t.length];return s.reverse().join(n)}}function w3(t){return function(n){return n.replace(/[0-9]/g,function(i){return t[+i]})}}var M3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Lo(t){if(!(n=M3.exec(t)))throw new Error("invalid format: "+t);var n;return new Ym({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}Lo.prototype=Ym.prototype;function Ym(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Ym.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function E3(t){t:for(var n=t.length,i=1,a=-1,o;i<n;++i)switch(t[i]){case".":a=o=i;break;case"0":a===0&&(a=i),o=i;break;default:if(!+t[i])break t;a>0&&(a=0);break}return a>0?t.slice(0,a)+t.slice(o+1):t}var Yx;function O3(t,n){var i=Gs(t,n);if(!i)return t+"";var a=i[0],o=i[1],s=o-(Yx=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,c=a.length;return s===c?a:s>c?a+new Array(s-c+1).join("0"):s>0?a.slice(0,s)+"."+a.slice(s):"0."+new Array(1-s).join("0")+Gs(t,Math.max(0,n+s-1))[0]}function Av(t,n){var i=Gs(t,n);if(!i)return t+"";var a=i[0],o=i[1];return o<0?"0."+new Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+new Array(o-a.length+2).join("0")}const Tv={"%":(t,n)=>(t*100).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:T3,e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Av(t*100,n),r:Av,s:O3,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Cv(t){return t}var wv=Array.prototype.map,Mv=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _3(t){var n=t.grouping===void 0||t.thousands===void 0?Cv:C3(wv.call(t.grouping,Number),t.thousands+""),i=t.currency===void 0?"":t.currency[0]+"",a=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?Cv:w3(wv.call(t.numerals,String)),c=t.percent===void 0?"%":t.percent+"",f=t.minus===void 0?"−":t.minus+"",m=t.nan===void 0?"NaN":t.nan+"";function h(y){y=Lo(y);var v=y.fill,b=y.align,x=y.sign,S=y.symbol,C=y.zero,E=y.width,R=y.comma,O=y.precision,k=y.trim,M=y.type;M==="n"?(R=!0,M="g"):Tv[M]||(O===void 0&&(O=12),k=!0,M="g"),(C||v==="0"&&b==="=")&&(C=!0,v="0",b="=");var _=S==="$"?i:S==="#"&&/[boxX]/.test(M)?"0"+M.toLowerCase():"",D=S==="$"?a:/[%p]/.test(M)?c:"",L=Tv[M],$=/[defgprs%]/.test(M);O=O===void 0?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function T(z){var X=_,K=D,it,ot,j;if(M==="c")K=L(z)+K,z="";else{z=+z;var P=z<0||1/z<0;if(z=isNaN(z)?m:L(Math.abs(z),O),k&&(z=E3(z)),P&&+z==0&&x!=="+"&&(P=!1),X=(P?x==="("?x:f:x==="-"||x==="("?"":x)+X,K=(M==="s"?Mv[8+Yx/3]:"")+K+(P&&x==="("?")":""),$){for(it=-1,ot=z.length;++it<ot;)if(j=z.charCodeAt(it),48>j||j>57){K=(j===46?o+z.slice(it+1):z.slice(it))+K,z=z.slice(0,it);break}}}R&&!C&&(z=n(z,1/0));var nt=X.length+z.length+K.length,ut=nt<E?new Array(E-nt+1).join(v):"";switch(R&&C&&(z=n(ut+z,ut.length?E-K.length:1/0),ut=""),b){case"<":z=X+z+K+ut;break;case"=":z=X+ut+z+K;break;case"^":z=ut.slice(0,nt=ut.length>>1)+X+z+K+ut.slice(nt);break;default:z=ut+X+z+K;break}return s(z)}return T.toString=function(){return y+""},T}function p(y,v){var b=h((y=Lo(y),y.type="f",y)),x=Math.max(-8,Math.min(8,Math.floor(Ja(v)/3)))*3,S=Math.pow(10,-x),C=Mv[8+x/3];return function(E){return b(S*E)+C}}return{format:h,formatPrefix:p}}var Ts,Gm,Gx;R3({thousands:",",grouping:[3],currency:["$",""]});function R3(t){return Ts=_3(t),Gm=Ts.format,Gx=Ts.formatPrefix,Ts}function k3(t){return Math.max(0,-Ja(Math.abs(t)))}function D3(t,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ja(n)/3)))*3-Ja(Math.abs(t)))}function z3(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Ja(n)-Ja(t))+1}function N3(t,n,i,a){var o=Zh(t,n,i),s;switch(a=Lo(a??",f"),a.type){case"s":{var c=Math.max(Math.abs(t),Math.abs(n));return a.precision==null&&!isNaN(s=D3(o,c))&&(a.precision=s),Gx(a,c)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(s=z3(o,Math.max(Math.abs(t),Math.abs(n))))&&(a.precision=s-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(s=k3(o))&&(a.precision=s-(a.type==="%")*2);break}}return Gm(a)}function qm(t){var n=t.domain;return t.ticks=function(i){var a=n();return Xh(a[0],a[a.length-1],i??10)},t.tickFormat=function(i,a){var o=n();return N3(o[0],o[o.length-1],i??10,a)},t.nice=function(i){i==null&&(i=10);var a=n(),o=0,s=a.length-1,c=a[o],f=a[s],m,h,p=10;for(f<c&&(h=c,c=f,f=h,h=o,o=s,s=h);p-- >0;){if(h=Ph(c,f,i),h===m)return a[o]=c,a[s]=f,n(a);if(h>0)c=Math.floor(c/h)*h,f=Math.ceil(f/h)*h;else if(h<0)c=Math.ceil(c*h)/h,f=Math.floor(f*h)/h;else break;m=h}return t},t}function qx(){var t=Hx();return t.copy=function(){return Cc(t,qx())},ci.apply(t,arguments),qm(t)}function Ix(t,n){t=t.slice();var i=0,a=t.length-1,o=t[i],s=t[a],c;return s<o&&(c=i,i=a,a=c,c=o,o=s,s=c),t[i]=n.floor(o),t[a]=n.ceil(s),t}function Ev(t){return Math.log(t)}function Ov(t){return Math.exp(t)}function U3(t){return-Math.log(-t)}function j3(t){return-Math.exp(-t)}function $3(t){return isFinite(t)?+("1e"+t):t<0?0:t}function B3(t){return t===10?$3:t===Math.E?Math.exp:n=>Math.pow(t,n)}function L3(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),n=>Math.log(n)/t)}function _v(t){return(n,i)=>-t(-n,i)}function H3(t){const n=t(Ev,Ov),i=n.domain;let a=10,o,s;function c(){return o=L3(a),s=B3(a),i()[0]<0?(o=_v(o),s=_v(s),t(U3,j3)):t(Ev,Ov),n}return n.base=function(f){return arguments.length?(a=+f,c()):a},n.domain=function(f){return arguments.length?(i(f),c()):i()},n.ticks=f=>{const m=i();let h=m[0],p=m[m.length-1];const y=p<h;y&&([h,p]=[p,h]);let v=o(h),b=o(p),x,S;const C=f==null?10:+f;let E=[];if(!(a%1)&&b-v<C){if(v=Math.floor(v),b=Math.ceil(b),h>0){for(;v<=b;++v)for(x=1;x<a;++x)if(S=v<0?x/s(-v):x*s(v),!(S<h)){if(S>p)break;E.push(S)}}else for(;v<=b;++v)for(x=a-1;x>=1;--x)if(S=v>0?x/s(-v):x*s(v),!(S<h)){if(S>p)break;E.push(S)}E.length*2<C&&(E=Xh(h,p,C))}else E=Xh(v,b,Math.min(b-v,C)).map(s);return y?E.reverse():E},n.tickFormat=(f,m)=>{if(f==null&&(f=10),m==null&&(m=a===10?"s":","),typeof m!="function"&&(!(a%1)&&(m=Lo(m)).precision==null&&(m.trim=!0),m=Gm(m)),f===1/0)return m;const h=Math.max(1,a*f/n.ticks().length);return p=>{let y=p/s(Math.round(o(p)));return y*a<a-.5&&(y*=a),y<=h?m(p):""}},n.nice=()=>i(Ix(i(),{floor:f=>s(Math.floor(o(f))),ceil:f=>s(Math.ceil(o(f)))})),n}function Vx(){const t=H3(Hm()).domain([1,10]);return t.copy=()=>Cc(t,Vx()).base(t.base()),ci.apply(t,arguments),t}function Rv(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Y3(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function G3(t){return t<0?-t*t:t*t}function q3(t){var n=t(En,En),i=1;function a(){return i===1?t(En,En):i===.5?t(Y3,G3):t(Rv(i),Rv(1/i))}return n.exponent=function(o){return arguments.length?(i=+o,a()):i},qm(n)}function Im(){var t=q3(Hm());return t.copy=function(){return Cc(t,Im()).exponent(t.exponent())},ci.apply(t,arguments),t}function I3(){return Im.apply(null,arguments).exponent(.5)}function Xx(){var t=[.5],n=[0,1],i,a=1;function o(s){return s!=null&&s<=s?n[zx(t,s,0,a)]:i}return o.domain=function(s){return arguments.length?(t=Array.from(s),a=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(s){return arguments.length?(n=Array.from(s),a=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(s){var c=n.indexOf(s);return[t[c-1],t[c]]},o.unknown=function(s){return arguments.length?(i=s,o):i},o.copy=function(){return Xx().domain(t).range(n).unknown(i)},ci.apply(o,arguments)}const bh=new Date,xh=new Date;function Se(t,n,i,a){function o(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return o.floor=s=>(t(s=new Date(+s)),s),o.ceil=s=>(t(s=new Date(s-1)),n(s,1),t(s),s),o.round=s=>{const c=o(s),f=o.ceil(s);return s-c<f-s?c:f},o.offset=(s,c)=>(n(s=new Date(+s),c==null?1:Math.floor(c)),s),o.range=(s,c,f)=>{const m=[];if(s=o.ceil(s),f=f==null?1:Math.floor(f),!(s<c)||!(f>0))return m;let h;do m.push(h=new Date(+s)),n(s,f),t(s);while(h<s&&s<c);return m},o.filter=s=>Se(c=>{if(c>=c)for(;t(c),!s(c);)c.setTime(c-1)},(c,f)=>{if(c>=c)if(f<0)for(;++f<=0;)for(;n(c,-1),!s(c););else for(;--f>=0;)for(;n(c,1),!s(c););}),i&&(o.count=(s,c)=>(bh.setTime(+s),xh.setTime(+c),t(bh),t(xh),Math.floor(i(bh,xh))),o.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?o.filter(a?c=>a(c)%s===0:c=>o.count(0,c)%s===0):o)),o}const qs=Se(()=>{},(t,n)=>{t.setTime(+t+n)},(t,n)=>n-t);qs.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Se(n=>{n.setTime(Math.floor(n/t)*t)},(n,i)=>{n.setTime(+n+i*t)},(n,i)=>(i-n)/t):qs);qs.range;const wr=1e3,On=wr*60,Mr=On*60,kr=Mr*24,Vm=kr*7,kv=kr*30,Sh=kr*365,ki=Se(t=>{t.setTime(t-t.getMilliseconds())},(t,n)=>{t.setTime(+t+n*wr)},(t,n)=>(n-t)/wr,t=>t.getUTCSeconds());ki.range;const Xm=Se(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*wr)},(t,n)=>{t.setTime(+t+n*On)},(t,n)=>(n-t)/On,t=>t.getMinutes());Xm.range;const Pm=Se(t=>{t.setUTCSeconds(0,0)},(t,n)=>{t.setTime(+t+n*On)},(t,n)=>(n-t)/On,t=>t.getUTCMinutes());Pm.range;const Zm=Se(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*wr-t.getMinutes()*On)},(t,n)=>{t.setTime(+t+n*Mr)},(t,n)=>(n-t)/Mr,t=>t.getHours());Zm.range;const Qm=Se(t=>{t.setUTCMinutes(0,0,0)},(t,n)=>{t.setTime(+t+n*Mr)},(t,n)=>(n-t)/Mr,t=>t.getUTCHours());Qm.range;const Fo=Se(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*On)/kr,t=>t.getDate()-1);Fo.range;const wc=Se(t=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/kr,t=>t.getUTCDate()-1);wc.range;const Px=Se(t=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/kr,t=>Math.floor(t/kr));Px.range;function Hi(t){return Se(n=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},(n,i)=>{n.setDate(n.getDate()+i*7)},(n,i)=>(i-n-(i.getTimezoneOffset()-n.getTimezoneOffset())*On)/Vm)}const Mc=Hi(0),Is=Hi(1),V3=Hi(2),X3=Hi(3),tl=Hi(4),P3=Hi(5),Z3=Hi(6);Mc.range;Is.range;V3.range;X3.range;tl.range;P3.range;Z3.range;function Yi(t){return Se(n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},(n,i)=>{n.setUTCDate(n.getUTCDate()+i*7)},(n,i)=>(i-n)/Vm)}const Ec=Yi(0),Vs=Yi(1),Q3=Yi(2),K3=Yi(3),el=Yi(4),F3=Yi(5),W3=Yi(6);Ec.range;Vs.range;Q3.range;K3.range;el.range;F3.range;W3.range;const Km=Se(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,n)=>{t.setMonth(t.getMonth()+n)},(t,n)=>n.getMonth()-t.getMonth()+(n.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Km.range;const Fm=Se(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)},(t,n)=>n.getUTCMonth()-t.getUTCMonth()+(n.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Fm.range;const Dr=Se(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n)},(t,n)=>n.getFullYear()-t.getFullYear(),t=>t.getFullYear());Dr.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Se(n=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},(n,i)=>{n.setFullYear(n.getFullYear()+i*t)});Dr.range;const zr=Se(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)},(t,n)=>n.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());zr.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Se(n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,i)=>{n.setUTCFullYear(n.getUTCFullYear()+i*t)});zr.range;function Zx(t,n,i,a,o,s){const c=[[ki,1,wr],[ki,5,5*wr],[ki,15,15*wr],[ki,30,30*wr],[s,1,On],[s,5,5*On],[s,15,15*On],[s,30,30*On],[o,1,Mr],[o,3,3*Mr],[o,6,6*Mr],[o,12,12*Mr],[a,1,kr],[a,2,2*kr],[i,1,Vm],[n,1,kv],[n,3,3*kv],[t,1,Sh]];function f(h,p,y){const v=p<h;v&&([h,p]=[p,h]);const b=y&&typeof y.range=="function"?y:m(h,p,y),x=b?b.range(h,+p+1):[];return v?x.reverse():x}function m(h,p,y){const v=Math.abs(p-h)/y,b=jm(([,,C])=>C).right(c,v);if(b===c.length)return t.every(Zh(h/Sh,p/Sh,y));if(b===0)return qs.every(Math.max(Zh(h,p,y),1));const[x,S]=c[v/c[b-1][2]<c[b][2]/v?b-1:b];return x.every(S)}return[f,m]}const[J3,t_]=Zx(zr,Fm,Ec,Px,Qm,Pm),[e_,n_]=Zx(Dr,Km,Mc,Fo,Zm,Xm);function Ah(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Th(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function yo(t,n,i){return{y:t,m:n,d:i,H:0,M:0,S:0,L:0}}function r_(t){var n=t.dateTime,i=t.date,a=t.time,o=t.periods,s=t.days,c=t.shortDays,f=t.months,m=t.shortMonths,h=vo(o),p=bo(o),y=vo(s),v=bo(s),b=vo(c),x=bo(c),S=vo(f),C=bo(f),E=vo(m),R=bo(m),O={a:P,A:nt,b:ut,B:N,c:null,d:$v,e:$v,f:M_,g:j_,G:B_,H:T_,I:C_,j:w_,L:Qx,m:E_,M:O_,p:F,q:at,Q:Hv,s:Yv,S:__,u:R_,U:k_,V:D_,w:z_,W:N_,x:null,X:null,y:U_,Y:$_,Z:L_,"%":Lv},k={a:lt,A:ct,b:yt,B:dt,c:null,d:Bv,e:Bv,f:q_,g:J_,G:eR,H:H_,I:Y_,j:G_,L:Fx,m:I_,M:V_,p:gt,q:mt,Q:Hv,s:Yv,S:X_,u:P_,U:Z_,V:Q_,w:K_,W:F_,x:null,X:null,y:W_,Y:tR,Z:nR,"%":Lv},M={a:T,A:z,b:X,B:K,c:it,d:Uv,e:Uv,f:b_,g:Nv,G:zv,H:jv,I:jv,j:g_,L:v_,m:m_,M:p_,p:$,q:h_,Q:S_,s:A_,S:y_,u:u_,U:s_,V:c_,w:o_,W:f_,x:ot,X:j,y:Nv,Y:zv,Z:d_,"%":x_};O.x=_(i,O),O.X=_(a,O),O.c=_(n,O),k.x=_(i,k),k.X=_(a,k),k.c=_(n,k);function _(st,xt){return function(bt){var rt=[],Rt=-1,vt=0,Bt=st.length,Wt,Yt,Ae;for(bt instanceof Date||(bt=new Date(+bt));++Rt<Bt;)st.charCodeAt(Rt)===37&&(rt.push(st.slice(vt,Rt)),(Yt=Dv[Wt=st.charAt(++Rt)])!=null?Wt=st.charAt(++Rt):Yt=Wt==="e"?" ":"0",(Ae=xt[Wt])&&(Wt=Ae(bt,Yt)),rt.push(Wt),vt=Rt+1);return rt.push(st.slice(vt,Rt)),rt.join("")}}function D(st,xt){return function(bt){var rt=yo(1900,void 0,1),Rt=L(rt,st,bt+="",0),vt,Bt;if(Rt!=bt.length)return null;if("Q"in rt)return new Date(rt.Q);if("s"in rt)return new Date(rt.s*1e3+("L"in rt?rt.L:0));if(xt&&!("Z"in rt)&&(rt.Z=0),"p"in rt&&(rt.H=rt.H%12+rt.p*12),rt.m===void 0&&(rt.m="q"in rt?rt.q:0),"V"in rt){if(rt.V<1||rt.V>53)return null;"w"in rt||(rt.w=1),"Z"in rt?(vt=Th(yo(rt.y,0,1)),Bt=vt.getUTCDay(),vt=Bt>4||Bt===0?Vs.ceil(vt):Vs(vt),vt=wc.offset(vt,(rt.V-1)*7),rt.y=vt.getUTCFullYear(),rt.m=vt.getUTCMonth(),rt.d=vt.getUTCDate()+(rt.w+6)%7):(vt=Ah(yo(rt.y,0,1)),Bt=vt.getDay(),vt=Bt>4||Bt===0?Is.ceil(vt):Is(vt),vt=Fo.offset(vt,(rt.V-1)*7),rt.y=vt.getFullYear(),rt.m=vt.getMonth(),rt.d=vt.getDate()+(rt.w+6)%7)}else("W"in rt||"U"in rt)&&("w"in rt||(rt.w="u"in rt?rt.u%7:"W"in rt?1:0),Bt="Z"in rt?Th(yo(rt.y,0,1)).getUTCDay():Ah(yo(rt.y,0,1)).getDay(),rt.m=0,rt.d="W"in rt?(rt.w+6)%7+rt.W*7-(Bt+5)%7:rt.w+rt.U*7-(Bt+6)%7);return"Z"in rt?(rt.H+=rt.Z/100|0,rt.M+=rt.Z%100,Th(rt)):Ah(rt)}}function L(st,xt,bt,rt){for(var Rt=0,vt=xt.length,Bt=bt.length,Wt,Yt;Rt<vt;){if(rt>=Bt)return-1;if(Wt=xt.charCodeAt(Rt++),Wt===37){if(Wt=xt.charAt(Rt++),Yt=M[Wt in Dv?xt.charAt(Rt++):Wt],!Yt||(rt=Yt(st,bt,rt))<0)return-1}else if(Wt!=bt.charCodeAt(rt++))return-1}return rt}function $(st,xt,bt){var rt=h.exec(xt.slice(bt));return rt?(st.p=p.get(rt[0].toLowerCase()),bt+rt[0].length):-1}function T(st,xt,bt){var rt=b.exec(xt.slice(bt));return rt?(st.w=x.get(rt[0].toLowerCase()),bt+rt[0].length):-1}function z(st,xt,bt){var rt=y.exec(xt.slice(bt));return rt?(st.w=v.get(rt[0].toLowerCase()),bt+rt[0].length):-1}function X(st,xt,bt){var rt=E.exec(xt.slice(bt));return rt?(st.m=R.get(rt[0].toLowerCase()),bt+rt[0].length):-1}function K(st,xt,bt){var rt=S.exec(xt.slice(bt));return rt?(st.m=C.get(rt[0].toLowerCase()),bt+rt[0].length):-1}function it(st,xt,bt){return L(st,n,xt,bt)}function ot(st,xt,bt){return L(st,i,xt,bt)}function j(st,xt,bt){return L(st,a,xt,bt)}function P(st){return c[st.getDay()]}function nt(st){return s[st.getDay()]}function ut(st){return m[st.getMonth()]}function N(st){return f[st.getMonth()]}function F(st){return o[+(st.getHours()>=12)]}function at(st){return 1+~~(st.getMonth()/3)}function lt(st){return c[st.getUTCDay()]}function ct(st){return s[st.getUTCDay()]}function yt(st){return m[st.getUTCMonth()]}function dt(st){return f[st.getUTCMonth()]}function gt(st){return o[+(st.getUTCHours()>=12)]}function mt(st){return 1+~~(st.getUTCMonth()/3)}return{format:function(st){var xt=_(st+="",O);return xt.toString=function(){return st},xt},parse:function(st){var xt=D(st+="",!1);return xt.toString=function(){return st},xt},utcFormat:function(st){var xt=_(st+="",k);return xt.toString=function(){return st},xt},utcParse:function(st){var xt=D(st+="",!0);return xt.toString=function(){return st},xt}}}var Dv={"-":"",_:" ",0:"0"},Oe=/^\s*\d+/,i_=/^%/,a_=/[\\^$*+?|[\]().{}]/g;function zt(t,n,i){var a=t<0?"-":"",o=(a?-t:t)+"",s=o.length;return a+(s<i?new Array(i-s+1).join(n)+o:o)}function l_(t){return t.replace(a_,"\\$&")}function vo(t){return new RegExp("^(?:"+t.map(l_).join("|")+")","i")}function bo(t){return new Map(t.map((n,i)=>[n.toLowerCase(),i]))}function o_(t,n,i){var a=Oe.exec(n.slice(i,i+1));return a?(t.w=+a[0],i+a[0].length):-1}function u_(t,n,i){var a=Oe.exec(n.slice(i,i+1));return a?(t.u=+a[0],i+a[0].length):-1}function s_(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.U=+a[0],i+a[0].length):-1}function c_(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.V=+a[0],i+a[0].length):-1}function f_(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.W=+a[0],i+a[0].length):-1}function zv(t,n,i){var a=Oe.exec(n.slice(i,i+4));return a?(t.y=+a[0],i+a[0].length):-1}function Nv(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),i+a[0].length):-1}function d_(t,n,i){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(i,i+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),i+a[0].length):-1}function h_(t,n,i){var a=Oe.exec(n.slice(i,i+1));return a?(t.q=a[0]*3-3,i+a[0].length):-1}function m_(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.m=a[0]-1,i+a[0].length):-1}function Uv(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.d=+a[0],i+a[0].length):-1}function g_(t,n,i){var a=Oe.exec(n.slice(i,i+3));return a?(t.m=0,t.d=+a[0],i+a[0].length):-1}function jv(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.H=+a[0],i+a[0].length):-1}function p_(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.M=+a[0],i+a[0].length):-1}function y_(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.S=+a[0],i+a[0].length):-1}function v_(t,n,i){var a=Oe.exec(n.slice(i,i+3));return a?(t.L=+a[0],i+a[0].length):-1}function b_(t,n,i){var a=Oe.exec(n.slice(i,i+6));return a?(t.L=Math.floor(a[0]/1e3),i+a[0].length):-1}function x_(t,n,i){var a=i_.exec(n.slice(i,i+1));return a?i+a[0].length:-1}function S_(t,n,i){var a=Oe.exec(n.slice(i));return a?(t.Q=+a[0],i+a[0].length):-1}function A_(t,n,i){var a=Oe.exec(n.slice(i));return a?(t.s=+a[0],i+a[0].length):-1}function $v(t,n){return zt(t.getDate(),n,2)}function T_(t,n){return zt(t.getHours(),n,2)}function C_(t,n){return zt(t.getHours()%12||12,n,2)}function w_(t,n){return zt(1+Fo.count(Dr(t),t),n,3)}function Qx(t,n){return zt(t.getMilliseconds(),n,3)}function M_(t,n){return Qx(t,n)+"000"}function E_(t,n){return zt(t.getMonth()+1,n,2)}function O_(t,n){return zt(t.getMinutes(),n,2)}function __(t,n){return zt(t.getSeconds(),n,2)}function R_(t){var n=t.getDay();return n===0?7:n}function k_(t,n){return zt(Mc.count(Dr(t)-1,t),n,2)}function Kx(t){var n=t.getDay();return n>=4||n===0?tl(t):tl.ceil(t)}function D_(t,n){return t=Kx(t),zt(tl.count(Dr(t),t)+(Dr(t).getDay()===4),n,2)}function z_(t){return t.getDay()}function N_(t,n){return zt(Is.count(Dr(t)-1,t),n,2)}function U_(t,n){return zt(t.getFullYear()%100,n,2)}function j_(t,n){return t=Kx(t),zt(t.getFullYear()%100,n,2)}function $_(t,n){return zt(t.getFullYear()%1e4,n,4)}function B_(t,n){var i=t.getDay();return t=i>=4||i===0?tl(t):tl.ceil(t),zt(t.getFullYear()%1e4,n,4)}function L_(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+zt(n/60|0,"0",2)+zt(n%60,"0",2)}function Bv(t,n){return zt(t.getUTCDate(),n,2)}function H_(t,n){return zt(t.getUTCHours(),n,2)}function Y_(t,n){return zt(t.getUTCHours()%12||12,n,2)}function G_(t,n){return zt(1+wc.count(zr(t),t),n,3)}function Fx(t,n){return zt(t.getUTCMilliseconds(),n,3)}function q_(t,n){return Fx(t,n)+"000"}function I_(t,n){return zt(t.getUTCMonth()+1,n,2)}function V_(t,n){return zt(t.getUTCMinutes(),n,2)}function X_(t,n){return zt(t.getUTCSeconds(),n,2)}function P_(t){var n=t.getUTCDay();return n===0?7:n}function Z_(t,n){return zt(Ec.count(zr(t)-1,t),n,2)}function Wx(t){var n=t.getUTCDay();return n>=4||n===0?el(t):el.ceil(t)}function Q_(t,n){return t=Wx(t),zt(el.count(zr(t),t)+(zr(t).getUTCDay()===4),n,2)}function K_(t){return t.getUTCDay()}function F_(t,n){return zt(Vs.count(zr(t)-1,t),n,2)}function W_(t,n){return zt(t.getUTCFullYear()%100,n,2)}function J_(t,n){return t=Wx(t),zt(t.getUTCFullYear()%100,n,2)}function tR(t,n){return zt(t.getUTCFullYear()%1e4,n,4)}function eR(t,n){var i=t.getUTCDay();return t=i>=4||i===0?el(t):el.ceil(t),zt(t.getUTCFullYear()%1e4,n,4)}function nR(){return"+0000"}function Lv(){return"%"}function Hv(t){return+t}function Yv(t){return Math.floor(+t/1e3)}var Ba,Jx,tS;rR({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function rR(t){return Ba=r_(t),Jx=Ba.format,Ba.parse,tS=Ba.utcFormat,Ba.utcParse,Ba}function iR(t){return new Date(t)}function aR(t){return t instanceof Date?+t:+new Date(+t)}function Wm(t,n,i,a,o,s,c,f,m,h){var p=Hx(),y=p.invert,v=p.domain,b=h(".%L"),x=h(":%S"),S=h("%I:%M"),C=h("%I %p"),E=h("%a %d"),R=h("%b %d"),O=h("%B"),k=h("%Y");function M(_){return(m(_)<_?b:f(_)<_?x:c(_)<_?S:s(_)<_?C:a(_)<_?o(_)<_?E:R:i(_)<_?O:k)(_)}return p.invert=function(_){return new Date(y(_))},p.domain=function(_){return arguments.length?v(Array.from(_,aR)):v().map(iR)},p.ticks=function(_){var D=v();return t(D[0],D[D.length-1],_??10)},p.tickFormat=function(_,D){return D==null?M:h(D)},p.nice=function(_){var D=v();return(!_||typeof _.range!="function")&&(_=n(D[0],D[D.length-1],_??10)),_?v(Ix(D,_)):p},p.copy=function(){return Cc(p,Wm(t,n,i,a,o,s,c,f,m,h))},p}function Jm(){return ci.apply(Wm(e_,n_,Dr,Km,Mc,Fo,Zm,Xm,ki,Jx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function lR(){return ci.apply(Wm(J3,t_,zr,Fm,Ec,wc,Qm,Pm,ki,tS).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function oR(){var t=0,n=1,i,a,o,s,c=En,f=!1,m;function h(y){return y==null||isNaN(y=+y)?m:c(o===0?.5:(y=(s(y)-i)*o,f?Math.max(0,Math.min(1,y)):y))}h.domain=function(y){return arguments.length?([t,n]=y,i=s(t=+t),a=s(n=+n),o=i===a?0:1/(a-i),h):[t,n]},h.clamp=function(y){return arguments.length?(f=!!y,h):f},h.interpolator=function(y){return arguments.length?(c=y,h):c};function p(y){return function(v){var b,x;return arguments.length?([b,x]=v,c=y(b,x),h):[c(0),c(1)]}}return h.range=p(Tc),h.rangeRound=p(Lx),h.unknown=function(y){return arguments.length?(m=y,h):m},function(y){return s=y,i=y(t),a=y(n),o=i===a?0:1/(a-i),h}}function uR(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function eS(){var t=qm(oR()(En));return t.copy=function(){return uR(t,eS())},QO.apply(t,arguments)}function Xs(t){return t.scaleType==="band"}function t0(t){return t.scaleType==="point"}function sR(t){return t.type==="piecewise"?Xx(t.thresholds,t.colors):eS([t.min??0,t.max??100],t.color)}function nl(t){return t.values?Ls(t.values,t.colors).unknown(t.unknownColor??null):Ls(t.colors.map((n,i)=>i),t.colors).unknown(t.unknownColor??null)}function Ni(t){return t.type==="ordinal"?nl(t):sR(t)}function nS(t){const{tickMaxStep:n,tickMinStep:i,tickNumber:a,range:o,domain:s}=t,c=i===void 0?999:Math.floor(Math.abs(s[1]-s[0])/i),f=n===void 0?2:Math.ceil(Math.abs(s[1]-s[0])/n),m=a??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(c,Math.max(f,m))}function rS(t,n){return n[1]-n[0]===0?1:t/((n[1]-n[0])/100)}function e0(t,n,i){switch(t){case"log":return Vx(n,i);case"pow":return Im(n,i);case"sqrt":return I3(n,i);case"time":return Jm(n,i);case"utc":return lR(n,i);default:return qx(n,i)}}const Ch=(t,n)=>{const i=t[1]-t[0],a=n[1]-n[0],o=t[0]-n[0]*i/a,s=t[1]+(100-n[1])*i/a;return[o,s]};let Gv,qv;class cR{constructor(){if(this.types=new Set,Gv)throw new Error("You can only create one instance!");Gv=this.types}addType(n){this.types.add(n)}getTypes(){return this.types}}class fR{constructor(){if(this.types=new Set,qv)throw new Error("You can only create one instance!");qv=this.types}addType(n){this.types.add(n)}getTypes(){return this.types}}const Oc=new cR;Oc.addType("bar");Oc.addType("line");Oc.addType("scatter");const iS=new fR;iS.addType("radar");function n0(t){return Oc.getTypes().has(t)}const dR=(t,n,i,a,o,s,c,f)=>{var x;const m=a==="x"?o[n].xExtremumGetter:o[n].yExtremumGetter,h=((x=c[n])==null?void 0:x.series)??{},[p,y]=(m==null?void 0:m({series:h,axis:i,axisIndex:s,isDefaultAxis:s===0,getFilters:f}))??[1/0,-1/0],[v,b]=t;return[Math.min(p,v),Math.max(y,b)]},aS=(t,n,i,a,o,s)=>{const f=Object.keys(i).filter(n0).reduce((m,h)=>dR(m,h,t,n,i,a,o,s),[1/0,-1/0]);return Number.isNaN(f[0])||Number.isNaN(f[1])?[1/0,-1/0]:f},hR=(t,n,i,a)=>{const o=new Set;return Object.keys(n).filter(n0).forEach(c=>{var h,p,y;const f=((h=i[c])==null?void 0:h.series)??{},m=(y=(p=n[c]).axisTooltipGetter)==null?void 0:y.call(p,f);m!==void 0&&m.forEach(({axisId:v,direction:b})=>{b===t&&o.add(v??a)})}),o};function mR(t,n,i){const a=n==="x"?[t.left,t.left+t.width]:[t.top+t.height,t.top];return i.reverse?[a[1],a[0]]:a}const Iv=t=>(t==null?void 0:t[0])instanceof Date;function Vv(t,n){const i=Jm(t.data,n);return(a,{location:o})=>o==="tick"?i.tickFormat(t.tickNumber)(a):`${a.toLocaleString()}`}const gR=.2,pR=.1;function lS({drawingArea:t,formattedSeries:n,axis:i,seriesConfig:a,axisDirection:o,zoomMap:s,zoomOptions:c,getFilters:f}){if(i===void 0)return{axis:{},axisIds:[]};const m=hR(o,a,n,i[0].id),h={};return i.forEach((p,y)=>{const v=p,b=c==null?void 0:c[v.id],x=s==null?void 0:s.get(v.id),S=x?[x.start,x.end]:[0,100],C=mR(t,o,v),[E,R]=aS(v,o,a,y,n,x===void 0&&!b?f:void 0),O=!v.ignoreTooltip&&m.has(v.id),k=v.data??[];if(Xs(v)){const j=v.categoryGapRatio??gR,P=v.barGapRatio??pR,nt=o==="y"?[C[1],C[0]]:C,ut=Ch(nt,S);if(h[v.id]=I({offset:0,height:0,categoryGapRatio:j,barGapRatio:P,triggerTooltip:O},v,{data:k,scale:Ac(v.data,ut).paddingInner(j).paddingOuter(j/2),tickNumber:v.data.length,colorScale:v.colorMap&&(v.colorMap.type==="ordinal"?nl(I({values:v.data},v.colorMap)):Ni(v.colorMap))}),Iv(v.data)){const N=Vv(v,nt);h[v.id].valueFormatter=v.valueFormatter??N}}if(t0(v)){const j=o==="y"?[...C].reverse():C,P=Ch(j,S);if(h[v.id]=I({offset:0,height:0,triggerTooltip:O},v,{data:k,scale:Ux(v.data,P),tickNumber:v.data.length,colorScale:v.colorMap&&(v.colorMap.type==="ordinal"?nl(I({values:v.data},v.colorMap)):Ni(v.colorMap))}),Iv(v.data)){const nt=Vv(v,j);h[v.id].valueFormatter=v.valueFormatter??nt}}if(v.scaleType==="band"||v.scaleType==="point")return;const M=v.scaleType??"linear",_=v.domainLimit??"nice",D=[v.min??E,v.max??R];if(typeof _=="function"){const{min:j,max:P}=_(E,R);D[0]=j,D[1]=P}const L=nS(I({},v,{range:C,domain:D})),$=rS(L,S),T=Ch(C,S),z=e0(M,D,T),X=_==="nice"?z.nice(L):z,[K,it]=X.domain(),ot=[v.min??K,v.max??it];h[v.id]=I({offset:0,height:0,triggerTooltip:O},v,{data:k,scaleType:M,scale:X.domain(ot),tickNumber:$,colorScale:v.colorMap&&Ni(v.colorMap)})}),{axis:h,axisIds:i.map(({id:p})=>p)}}function yR(t){return t!=null}function oS({zoomMap:t,zoomOptions:n,seriesConfig:i,formattedSeries:a,direction:o}){return(s,c)=>{var C;const f=n[s.id];if(!f||f.filterMode!=="discard")return null;const m=t==null?void 0:t.get(s.id);if(m===void 0||m.start<=0&&m.end>=100)return null;let h=[];const p=s.scaleType;p==="point"||p==="band"?h=[0,(((C=s.data)==null?void 0:C.length)??1)-1]:h=aS(s,o,i,c,a);let y,v;[y,v]=e0(!p||p==="band"||p==="point"?"linear":p,h,[0,100]).nice().domain(),y=y instanceof Date?y.getTime():y,v=v instanceof Date?v.getTime():v;const x=y+m.start*(v-y)/100,S=y+m.end*(v-y)/100;return(E,R)=>{var k;const O=E[o]??((k=s.data)==null?void 0:k[R]);return O==null?!0:s.scaleType==="point"||s.scaleType==="band"||typeof O=="string"?R>=x&&R<=S:O>=x&&O<=S}}}const vR=t=>({currentAxisId:n,seriesXAxisId:i,seriesYAxisId:a,isDefaultAxis:o})=>(s,c)=>{var h,p;return!(n===i?a:i)||o?((p=(h=Object.values(t??{}))[0])==null?void 0:p.call(h,s,c))??!0:[a,i].filter(y=>y!==n).map(y=>t[y??""]).filter(yR).every(y=>y(s,c))},uS=t=>(n=[])=>n.reduce((i,a)=>{const{zoom:o,id:s}=a,c=Um(o,s,t);return c&&(i[s]=c),i},{}),bR=t=>{const n=new Map;return t.forEach(i=>{n.set(i.axisId,i)}),n},sS=t=>t.zoom,cS=ft(sS,t=>t==null?void 0:t.isInteracting),_c=ft(sS,t=>(t==null?void 0:t.zoomData)&&bR(t==null?void 0:t.zoomData)),fS=ft(hl,uS("x")),dS=ft(Qo,uS("y")),Rc=ft([fS,dS],(t,n)=>I({},t,n));ft([fS,dS,(t,n)=>n],(t,n,i)=>t[i]??n[i]);const xR=ft([_c,Rc,jr,In],(t,n,i,a)=>t&&n&&oS({zoomMap:t,zoomOptions:n,seriesConfig:i,formattedSeries:a,direction:"x"})),SR=ft([_c,Rc,jr,In],(t,n,i,a)=>t&&n&&oS({zoomMap:t,zoomOptions:n,seriesConfig:i,formattedSeries:a,direction:"y"})),hS=ft([xR,SR,hl,Qo],(t,n,i,a)=>{if(t===void 0||n===void 0)return;const o=i==null?void 0:i.reduce((c,f,m)=>{const h=t(f,m);return h!==null&&(c[f.id]=h),c},{}),s=a==null?void 0:a.reduce((c,f,m)=>{const h=n(f,m);return h!==null&&(c[f.id]=h),c},{});if(!(Object.keys(o??{}).length===0&&Object.keys(s??{}).length===0))return vR(I({},o,s))}),Gi=ft([hl,Ur,In,jr,_c,Rc,hS],(t,n,i,a,o,s,c)=>lS({drawingArea:n,formattedSeries:i,axis:t,seriesConfig:a,axisDirection:"x",zoomMap:o,zoomOptions:s,getFilters:c})),qi=ft([Qo,Ur,In,jr,_c,Rc,hS],(t,n,i,a,o,s,c)=>lS({drawingArea:n,formattedSeries:i,axis:t,seriesConfig:a,axisDirection:"y",zoomMap:o,zoomOptions:s,getFilters:c}));function $r(t){return t.bandwidth!==void 0}function La(t){return t instanceof Date?t.getTime():t}function rl(t,n){const{scale:i,data:a,reverse:o}=t;if(!$r(i)){const c=i.invert(n);if(a===void 0)return-1;const f=La(c);return a==null?void 0:a.findIndex((h,p)=>{const y=La(h);return y>f&&(p===0||Math.abs(f-y)<=Math.abs(f-La(a[p-1])))||y<=f&&(p===a.length-1||Math.abs(La(c)-y)<Math.abs(La(c)-La(a[p+1])))})}const s=i.bandwidth()===0?Math.floor((n-Math.min(...i.range())+i.step()/2)/i.step()):Math.floor((n-Math.min(...i.range()))/i.step());return s<0||s>=a.length?-1:o?a.length-1-s:s}function Xv(t,n,i){const{scale:a,data:o}=t;if(!$r(a)){const s=a.invert(n);return i<0?s:o[i]}return i<0||i>=o.length?null:o[i]}function Wh(t,n){const i=t.createSVGPoint();return i.x=n.clientX,i.y=n.clientY,i.matrixTransform(t.getScreenCTM().inverse())}function ui(t){const n=Y.useRef(t);return Ye(()=>{n.current=t}),Y.useRef((...i)=>(0,n.current)(...i)).current}const Wo=({store:t})=>{const n=ui(()=>{t.update(s=>I({},s,{interaction:{pointer:null,item:null}}))}),i=ui(s=>{t.update(c=>{const f=c.interaction.item;return s?f===null||Object.keys(s).some(m=>s[m]!==f[m])?c:I({},c,{interaction:I({},c.interaction,{item:null})}):f===null?c:I({},c,{interaction:I({},c.interaction,{item:null})})})}),a=ui(s=>{t.update(c=>I({},c,{interaction:I({},c.interaction,{item:s})}))}),o=ui(s=>{t.update(c=>I({},c,{interaction:I({},c.interaction,{pointer:s})}))});return{instance:{cleanInteraction:n,setItemInteraction:a,removeItemInteraction:i,setPointerCoordinate:o}}};Wo.getInitialState=()=>({interaction:{item:null,pointer:null}});Wo.params={};const r0=t=>t.interaction,AR=ft(r0,t=>t!==void 0),mS=ft(r0,t=>(t==null?void 0:t.item)??null),gS=ft(r0,t=>(t==null?void 0:t.pointer)??null),kc=ft(gS,t=>t&&t.x),Dc=ft(gS,t=>t&&t.y),TR=ft(mS,t=>t!==null),ml=({params:t,store:n,seriesConfig:i,svgRef:a,instance:o})=>{const{xAxis:s,yAxis:c,dataset:f}=t,m=wt(n,Ur),h=wt(n,In),p=wt(n,AR),{axis:y,axisIds:v}=wt(n,Gi),{axis:b,axisIds:x}=wt(n,qi),S=Y.useRef(!0);Y.useEffect(()=>{if(S.current){S.current=!1;return}n.update(R=>I({},R,{cartesianAxis:I({},R.cartesianAxis,{x:kx(s,f),y:Dx(c,f)})}))},[i,m,s,c,f,n]);const C=v[0],E=x[0];return Y.useEffect(()=>{const R=a.current;if(!p||R===null||t.disableAxisListener)return()=>{};const O=()=>{var _;(_=o.cleanInteraction)==null||_.call(o)},k=_=>{var $,T;const D="targetTouches"in _?_.targetTouches[0]:_,L=Wh(R,D);if(!o.isPointInside(L,{targetElement:_.target})){($=o.cleanInteraction)==null||$.call(o);return}(T=o.setPointerCoordinate)==null||T.call(o,L)},M=_=>{const D=_.currentTarget;D&&"hasPointerCapture"in D&&D.hasPointerCapture(_.pointerId)&&D.releasePointerCapture(_.pointerId)};return R.addEventListener("pointerdown",M),R.addEventListener("pointermove",k),R.addEventListener("pointercancel",O),R.addEventListener("pointerleave",O),()=>{R.removeEventListener("pointerdown",M),R.removeEventListener("pointermove",k),R.removeEventListener("pointercancel",O),R.removeEventListener("pointerleave",O)}},[a,n,y,C,b,E,o,t.disableAxisListener,p]),Y.useEffect(()=>{const R=a.current,O=t.onAxisClick;if(R===null||!O)return()=>{};const k=M=>{M.preventDefault();let _=null,D=!1;const L=Wh(R,M),$=rl(y[C],L.x);D=$!==-1,_=D?$:rl(b[E],L.y);const T=D?v[0]:x[0];if(_==null||_===-1)return;const z=(D?y:b)[T].data[_],X={};Object.keys(h).filter(K=>["bar","line"].includes(K)).forEach(K=>{var it;(it=h[K])==null||it.seriesOrder.forEach(ot=>{const j=h[K].series[ot],P=j.xAxisId,nt=j.yAxisId,ut=D?P:nt;(ut===void 0||ut===T)&&(X[ot]=j.data[_])})}),O(M,{dataIndex:_,axisValue:z,seriesValues:X})};return R.addEventListener("click",k),()=>{R.removeEventListener("click",k)}},[t.onAxisClick,h,a,y,v,b,x,C,E]),{}};ml.params={xAxis:!0,yAxis:!0,dataset:!0,onAxisClick:!0,disableAxisListener:!0};ml.getDefaultizedParams=({params:t})=>I({},t,{colors:t.colors??Ex,theme:t.theme??"light",defaultizedXAxis:kx(t.xAxis,t.dataset),defaultizedYAxis:Dx(t.yAxis,t.dataset)});ml.getInitialState=t=>({cartesianAxis:{x:t.defaultizedXAxis,y:t.defaultizedYAxis}});function Qa(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){const o=t.length;if(o!==n.length)return!1;for(let s=0;s<o;s+=1)if(!Qa(t[s],n[s]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;const o=Array.from(t.entries());for(let s=0;s<o.length;s+=1)if(!n.has(o[s][0]))return!1;for(let s=0;s<o.length;s+=1){const c=o[s];if(!Qa(c[1],n.get(c[0])))return!1}return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;const o=Array.from(t.entries());for(let s=0;s<o.length;s+=1)if(!n.has(o[s][0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){const o=t.length;if(o!==n.length)return!1;for(let s=0;s<o;s+=1)if(t[s]!==n[s])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();const i=Object.keys(t),a=i.length;if(a!==Object.keys(n).length)return!1;for(let o=0;o<a;o+=1)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(let o=0;o<a;o+=1){const s=i[o];if(!Qa(t[s],n[s]))return!1}return!0}return t!==t&&n!==n}const zc=(t,n)=>n;function pS(t,n,i=n.axisIds[0]){return Array.isArray(i)?i.map(a=>rl(n.axis[a],t)):rl(n.axis[i],t)}const CR=ft([kc,Gi,zc],(t,n,i)=>t===null?null:pS(t,n,i)),wR=ft([Dc,qi,zc],(t,n,i)=>t===null?null:pS(t,n,i));function yS(t,n,i,a=n.axisIds[0]){return Array.isArray(a)?a.map((o,s)=>Xv(n.axis[o],t,i[s])):Xv(n.axis[a],t,i)}const MR=ft([kc,Gi,CR,zc],(t,n,i,a)=>t===null||i===null||n.axisIds.length===0?null:yS(t,n,i,a)),ER=ft([Dc,qi,wR,zc],(t,n,i,a)=>t===null||i===null||n.axisIds.length===0?null:yS(t,n,i,a)),vS=ft([kc,Gi],(t,n)=>t===null?[]:n.axisIds.filter(i=>n.axis[i].triggerTooltip).map(i=>({axisId:i,dataIndex:rl(n.axis[i],t)})).filter(({dataIndex:i})=>i>=0),{memoizeOptions:{resultEqualityCheck:Qa}}),bS=ft([Dc,qi],(t,n)=>t===null?[]:n.axisIds.filter(i=>n.axis[i].triggerTooltip).map(i=>({axisId:i,dataIndex:rl(n.axis[i],t)})).filter(({dataIndex:i})=>i>=0),{memoizeOptions:{resultEqualityCheck:Qa}}),OR=ft([vS,bS],(t,n)=>t.length>0||n.length>0);function Pv(t,n){return t.id!==void 0?t:I({id:n},t)}function Zv(t){return t.colorMap?I({},t,{colorScale:t.colorMap.type==="ordinal"&&t.data?nl(I({values:t.data},t.colorMap)):Ni(t.colorMap.type==="continuous"?I({min:t.min,max:t.max},t.colorMap):t.colorMap)}):t}function xS(t,n){if(!t||t.length===0)return{axis:{},axisIds:[]};const i={},a=[];return t.forEach((o,s)=>{const c=o.dataKey,f=o.id??`defaultized-z-axis-${s}`;if(c===void 0||o.data!==void 0){i[f]=Zv(Pv(o,f)),a.push(f);return}if(n===void 0)throw new Error("MUI X Charts: z-axis uses `dataKey` but no `dataset` is provided.");i[f]=Zv(Pv(I({},o,{data:n.map(m=>m[c])}),f)),a.push(f)}),{axis:i,axisIds:a}}const Jo=({params:t,store:n})=>{const{zAxis:i,dataset:a}=t,o=Y.useRef(!0);return Y.useEffect(()=>{if(o.current){o.current=!1;return}n.update(s=>I({},s,{zAxis:xS(i,a)}))},[i,a,n]),{}};Jo.params={zAxis:!0,dataset:!0};Jo.getInitialState=t=>({zAxis:xS(t.zAxis,t.dataset)});const _R=t=>t,RR=ft([_R],t=>t.zAxis),kR=()=>{},gl=({store:t,params:n})=>{kR({controlled:n.highlightedItem}),Ye(()=>{t.update(o=>o.highlight.item===n.highlightedItem?o:I({},o,{highlight:I({},o.highlight,{item:n.highlightedItem})}))},[t,n.highlightedItem]);const i=ui(()=>{var o;(o=n.onHighlightChange)==null||o.call(n,null),t.update(s=>I({},s,{highlight:{item:null}}))}),a=ui(o=>{var s;(s=n.onHighlightChange)==null||s.call(n,o),t.update(c=>I({},c,{highlight:{item:o}}))});return{instance:{clearHighlight:i,setHighlight:a}}};gl.getDefaultizedParams=({params:t})=>I({},t,{highlightedItem:t.highlightedItem??null});gl.getInitialState=t=>({highlight:{item:t.highlightedItem}});gl.params={highlightedItem:!0,onHighlightChange:!0};const Qv=(t,n)=>n==="x"?{x:t,y:null}:{x:null,y:t},SS=t=>{var m;const{axis:n,getFilters:i,isDefaultAxis:a}=t,o=i==null?void 0:i({currentAxisId:n.id,isDefaultAxis:a}),s=o?(m=n.data)==null?void 0:m.filter((h,p)=>o({x:null,y:null},p)):n.data,c=Math.min(...s??[]),f=Math.max(...s??[]);return[c,f]},AS=t=>n=>{const{series:i,axis:a,getFilters:o,isDefaultAxis:s}=n;return Object.keys(i).filter(c=>{const f=t==="x"?i[c].xAxisId:i[c].yAxisId;return f===a.id||s&&f===void 0}).reduce((c,f)=>{const{stackedData:m}=i[f],h=o==null?void 0:o({currentAxisId:a.id,isDefaultAxis:s,seriesXAxisId:i[f].xAxisId,seriesYAxisId:i[f].yAxisId}),[p,y]=(m==null?void 0:m.reduce((v,b,x)=>h&&(!h(Qv(b[0],t),x)||!h(Qv(b[1],t),x))?v:[Math.min(...b,v[0]),Math.max(...b,v[1])],[1/0,-1/0]))??[1/0,-1/0];return[Math.min(p,c[0]),Math.max(y,c[1])]},[1/0,-1/0])},DR=t=>Object.keys(t.series).some(i=>t.series[i].layout==="horizontal")?AS("x")(t):SS(t),zR=t=>Object.keys(t.series).some(i=>t.series[i].layout==="horizontal")?SS(t):AS("y")(t);function Hn(t){return function(){return t}}const NR=Math.PI,wh=2*NR;function TS(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function UR(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function jR(t){return t}function $R(){var t=jR,n=UR,i=null,a=Hn(0),o=Hn(wh),s=Hn(0);function c(f){var m,h=(f=TS(f)).length,p,y,v=0,b=new Array(h),x=new Array(h),S=+a.apply(this,arguments),C=Math.min(wh,Math.max(-wh,o.apply(this,arguments)-S)),E,R=Math.min(Math.abs(C)/h,s.apply(this,arguments)),O=R*(C<0?-1:1),k;for(m=0;m<h;++m)(k=x[b[m]=m]=+t(f[m],m,f))>0&&(v+=k);for(n!=null?b.sort(function(M,_){return n(x[M],x[_])}):i!=null&&b.sort(function(M,_){return i(f[M],f[_])}),m=0,y=v?(C-h*O)/v:0;m<h;++m,S=E)p=b[m],k=x[p],E=S+(k>0?k*y:0)+O,x[p]={data:f[p],index:m,value:k,startAngle:S,endAngle:E,padAngle:R};return x}return c.value=function(f){return arguments.length?(t=typeof f=="function"?f:Hn(+f),c):t},c.sortValues=function(f){return arguments.length?(n=f,i=null,c):n},c.sort=function(f){return arguments.length?(i=f,n=null,c):i},c.startAngle=function(f){return arguments.length?(a=typeof f=="function"?f:Hn(+f),c):a},c.endAngle=function(f){return arguments.length?(o=typeof f=="function"?f:Hn(+f),c):o},c.padAngle=function(f){return arguments.length?(s=typeof f=="function"?f:Hn(+f),c):s},c}function il(t,n){if((c=t.length)>1)for(var i=1,a,o,s=t[n[0]],c,f=s.length;i<c;++i)for(o=s,s=t[n[i]],a=0;a<f;++a)s[a][1]+=s[a][0]=isNaN(o[a][1])?o[a][0]:o[a][1]}function al(t){for(var n=t.length,i=new Array(n);--n>=0;)i[n]=n;return i}function BR(t,n){return t[n]}function LR(t){const n=[];return n.key=t,n}function CS(){var t=Hn([]),n=al,i=il,a=BR;function o(s){var c=Array.from(t.apply(this,arguments),LR),f,m=c.length,h=-1,p;for(const y of s)for(f=0,++h;f<m;++f)(c[f][h]=[0,+a(y,c[f].key,h,s)]).data=y;for(f=0,p=TS(n(c));f<m;++f)c[p[f]].index=f;return i(c,p),c}return o.keys=function(s){return arguments.length?(t=typeof s=="function"?s:Hn(Array.from(s)),o):t},o.value=function(s){return arguments.length?(a=typeof s=="function"?s:Hn(+s),o):a},o.order=function(s){return arguments.length?(n=s==null?al:typeof s=="function"?s:Hn(Array.from(s)),o):n},o.offset=function(s){return arguments.length?(i=s??il,o):i},o}function HR(t,n){if((a=t.length)>0){for(var i,a,o=0,s=t[0].length,c;o<s;++o){for(c=i=0;i<a;++i)c+=t[i][o][1]||0;if(c)for(i=0;i<a;++i)t[i][o][1]/=c}il(t,n)}}function YR(t,n){if((m=t.length)>0)for(var i,a=0,o,s,c,f,m,h=t[n[0]].length;a<h;++a)for(c=f=0,i=0;i<m;++i)(s=(o=t[n[i]][a])[1]-o[0])>0?(o[0]=c,o[1]=c+=s):s<0?(o[1]=f,o[0]=f+=s):(o[0]=0,o[1]=s)}function GR(t,n){if((o=t.length)>0){for(var i=0,a=t[n[0]],o,s=a.length;i<s;++i){for(var c=0,f=0;c<o;++c)f+=t[c][i][1]||0;a[i][1]+=a[i][0]=-f/2}il(t,n)}}function qR(t,n){if(!(!((c=t.length)>0)||!((s=(o=t[n[0]]).length)>0))){for(var i=0,a=1,o,s,c;a<s;++a){for(var f=0,m=0,h=0;f<c;++f){for(var p=t[n[f]],y=p[a][1]||0,v=p[a-1][1]||0,b=(y-v)/2,x=0;x<f;++x){var S=t[n[x]],C=S[a][1]||0,E=S[a-1][1]||0;b+=C-E}m+=y,h+=b*y}o[a-1][1]+=o[a-1][0]=i,m&&(i-=h/m)}o[a-1][1]+=o[a-1][0]=i,il(t,n)}}function wS(t){var n=t.map(IR);return al(t).sort(function(i,a){return n[i]-n[a]})}function IR(t){for(var n=-1,i=0,a=t.length,o,s=-1/0;++n<a;)(o=+t[n][1])>s&&(s=o,i=n);return i}function MS(t){var n=t.map(ES);return al(t).sort(function(i,a){return n[i]-n[a]})}function ES(t){for(var n=0,i=-1,a=t.length,o;++i<a;)(o=+t[i][1])&&(n+=o);return n}function VR(t){return MS(t).reverse()}function XR(t){var n=t.length,i,a,o=t.map(ES),s=wS(t),c=0,f=0,m=[],h=[];for(i=0;i<n;++i)a=s[i],c<f?(c+=o[a],m.push(a)):(f+=o[a],h.push(a));return h.reverse().concat(m)}function PR(t){return al(t).reverse()}const Mh={appearance:wS,ascending:MS,descending:VR,insideOut:XR,none:al,reverse:PR},Eh={expand:HR,diverging:YR,none:il,silhouette:GR,wiggle:qR},OS=t=>{const{series:n,seriesOrder:i,defaultStrategy:a}=t,o=[],s={};return i.forEach(c=>{const{stack:f,stackOrder:m,stackOffset:h}=n[c];f===void 0?o.push({ids:[c],stackingOrder:Mh.none,stackingOffset:Eh.none}):s[f]===void 0?(s[f]=o.length,o.push({ids:[c],stackingOrder:Mh[m??(a==null?void 0:a.stackOrder)??"none"],stackingOffset:Eh[h??(a==null?void 0:a.stackOffset)??"diverging"]})):(o[s[f]].ids.push(c),m!==void 0&&(o[s[f]].stackingOrder=Mh[m]),h!==void 0&&(o[s[f]].stackingOffset=Eh[h]))}),o};function _S(t,n){const i={};return Object.keys(t).forEach(a=>{i[a]=I({},t[a],{valueFormatter:t[a].valueFormatter??n})}),i}const ZR=(t,n)=>{const{seriesOrder:i,series:a}=t,o=OS(t),s=n??[];i.forEach(f=>{const m=a[f].data;if(m!==void 0)m.forEach((h,p)=>{s.length<=p?s.push({[f]:h}):s[p][f]=h});else if(n===void 0)throw new Error([`MUI X Charts: bar series with id='${f}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` 107 - `))});const c={};return o.forEach(f=>{const{ids:m,stackingOffset:h,stackingOrder:p}=f,y=CS().keys(m.map(v=>{const b=a[v].dataKey;return a[v].data===void 0&&b!==void 0?b:v})).value((v,b)=>v[b]??0).order(p).offset(h)(s);m.forEach((v,b)=>{const x=a[v].dataKey;c[v]=I({layout:"vertical",labelMarkType:"square"},a[v],{data:x?n.map(S=>{const C=S[x];return typeof C!="number"?0:C}):a[v].data,stackedData:y[b].map(([S,C])=>[S,C])})})}),{seriesOrder:i,stackingGroups:o,series:_S(c,f=>f==null?"":f.toLocaleString())}};function Gn(t,n){return typeof t=="function"?t(n):t}const QR=t=>{const{seriesOrder:n,series:i}=t;return n.reduce((a,o)=>{const s=Gn(i[o].label,"legend");return s===void 0||a.push({markType:i[o].labelMarkType,id:o,seriesId:o,color:i[o].color,label:s}),a},[])},RS=(t,n,i)=>{const a=t.layout==="vertical",o=a?n==null?void 0:n.colorScale:i==null?void 0:i.colorScale,s=a?i==null?void 0:i.colorScale:n==null?void 0:n.colorScale,c=a?n==null?void 0:n.data:i==null?void 0:i.data;return s?f=>{if(f===void 0)return t.color;const m=t.data[f],h=m===null?t.color:s(m);return h===null?t.color:h}:o&&c?f=>{if(f===void 0)return t.color;const m=c[f],h=m===null?t.color:o(m);return h===null?t.color:h}:()=>t.color},KR=t=>{const{series:n,getColor:i,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const o=Gn(n.label,"tooltip"),s=n.data[a.dataIndex];if(s==null)return null;const c=n.valueFormatter(s,{dataIndex:a.dataIndex});return{identifier:a,color:i(a.dataIndex),label:o,value:s,formattedValue:c,markType:n.labelMarkType}},FR=t=>Object.values(t).map(n=>n.layout==="horizontal"?{direction:"y",axisId:n.yAxisId}:{direction:"x",axisId:n.xAxisId}),WR=(t,n,i)=>I({id:t.id??`auto-generated-id-${n}`,color:i[n%i.length]},t),JR={seriesProcessor:ZR,colorProcessor:RS,legendGetter:QR,tooltipGetter:KR,axisTooltipGetter:FR,xExtremumGetter:DR,yExtremumGetter:zR,getSeriesWithDefaultValues:WR},Ps=(t,n)=>[n[0]===null?t[0]:Math.min(t[0],n[0]),n[1]===null?t[1]:Math.max(t[1],n[1])],t4=t=>{const{series:n,axis:i,isDefaultAxis:a,getFilters:o}=t;return Object.keys(n).filter(s=>{const c=n[s].xAxisId;return c===i.id||c===void 0&&a}).reduce((s,c)=>{var h;const f=o==null?void 0:o({currentAxisId:i.id,isDefaultAxis:a,seriesXAxisId:n[c].xAxisId,seriesYAxisId:n[c].yAxisId}),m=(h=n[c].data)==null?void 0:h.reduce((p,y,v)=>f&&!f(y,v)?p:Ps(p,[y.x,y.x]),[1/0,-1/0]);return Ps(s,m??[1/0,-1/0])},[1/0,-1/0])},e4=t=>{const{series:n,axis:i,isDefaultAxis:a,getFilters:o}=t;return Object.keys(n).filter(s=>{const c=n[s].yAxisId;return c===i.id||c===void 0&&a}).reduce((s,c)=>{var h;const f=o==null?void 0:o({currentAxisId:i.id,isDefaultAxis:a,seriesXAxisId:n[c].xAxisId,seriesYAxisId:n[c].yAxisId}),m=(h=n[c].data)==null?void 0:h.reduce((p,y,v)=>f&&!f(y,v)?p:Ps(p,[y.y,y.y]),[1/0,-1/0]);return Ps(s,m??[1/0,-1/0])},[1/0,-1/0])},n4=({series:t,seriesOrder:n},i)=>({series:Object.fromEntries(Object.entries(t).map(([o,s])=>{const c=s==null?void 0:s.datasetKeys,f=["x","y","id"].filter(h=>typeof(c==null?void 0:c[h])!="string");if(s!=null&&s.datasetKeys&&f.length>0)throw new Error([`MUI X Charts: scatter series with id='${o}' has incomplete datasetKeys.`,`Properties ${f.map(h=>`"${h}"`).join(", ")} are missing.`].join(` 108 - `));const m=c?(i==null?void 0:i.map(h=>({x:h[c.x]??null,y:h[c.y]??null,z:c.z&&h[c.z],id:c.id&&h[c.id]})))??[]:s.data??[];return[o,I({labelMarkType:"circle",markerSize:4},s,{data:m,valueFormatter:s.valueFormatter??(h=>h&&`(${h.x}, ${h.y})`)})]})),seriesOrder:n}),r4=(t,n,i,a)=>{const o=a==null?void 0:a.colorScale,s=i==null?void 0:i.colorScale,c=n==null?void 0:n.colorScale;return o?f=>{var p,y;if(f===void 0)return t.color;if(((p=a==null?void 0:a.data)==null?void 0:p[f])!==void 0){const v=o((y=a==null?void 0:a.data)==null?void 0:y[f]);if(v!==null)return v}const m=t.data[f],h=m===null?t.color:o(m.z);return h===null?t.color:h}:s?f=>{if(f===void 0)return t.color;const m=t.data[f],h=m===null?t.color:s(m.y);return h===null?t.color:h}:c?f=>{if(f===void 0)return t.color;const m=t.data[f],h=m===null?t.color:c(m.x);return h===null?t.color:h}:()=>t.color},i4=t=>{const{seriesOrder:n,series:i}=t;return n.reduce((a,o)=>{const s=Gn(i[o].label,"legend");return s===void 0||a.push({markType:i[o].labelMarkType,id:o,seriesId:o,color:i[o].color,label:s}),a},[])},a4=t=>{const{series:n,getColor:i,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const o=Gn(n.label,"tooltip"),s=n.data[a.dataIndex],c=n.valueFormatter(s,{dataIndex:a.dataIndex});return{identifier:a,color:i(a.dataIndex),label:o,value:s,formattedValue:c,markType:n.labelMarkType}},l4=(t,n,i)=>I({id:t.id??`auto-generated-id-${n}`,color:i[n%i.length]},t),o4={seriesProcessor:n4,colorProcessor:r4,legendGetter:i4,tooltipGetter:a4,xExtremumGetter:t4,yExtremumGetter:e4,getSeriesWithDefaultValues:l4},u4=t=>{const{axis:n}=t,i=Math.min(...n.data??[]),a=Math.max(...n.data??[]);return[i,a]};function s4(t,n,i,a){return i.reduce((o,s,c)=>{if(n[c]===null)return o;const[f,m]=t(s);return a&&(!a({y:f,x:null},c)||!a({y:m,x:null},c))?o:[Math.min(f,m,o[0]),Math.max(f,m,o[1])]},[1/0,-1/0])}const c4=t=>{const{series:n,axis:i,isDefaultAxis:a,getFilters:o}=t;return Object.keys(n).filter(s=>{const c=n[s].yAxisId;return c===i.id||a&&c===void 0}).reduce((s,c)=>{const{area:f,stackedData:m,data:h}=n[c],p=f!==void 0,y=o==null?void 0:o({currentAxisId:i.id,isDefaultAxis:a,seriesXAxisId:n[c].xAxisId,seriesYAxisId:n[c].yAxisId}),v=p&&i.scaleType!=="log"&&typeof n[c].baseline!="string"?C=>C:C=>[C[1],C[1]],b=s4(v,h,m,y),[x,S]=b;return[Math.min(x,s[0]),Math.max(S,s[1])]},[1/0,-1/0])},f4=(t,n)=>{const{seriesOrder:i,series:a}=t,o=OS(I({},t,{defaultStrategy:{stackOffset:"none"}})),s=n??[];i.forEach(f=>{const m=a[f].data;m!==void 0&&m.forEach((h,p)=>{s.length<=p?s.push({[f]:h}):s[p][f]=h})});const c={};return o.forEach(f=>{const{ids:m,stackingOrder:h,stackingOffset:p}=f,y=CS().keys(m.map(v=>{const b=a[v].dataKey;return a[v].data===void 0&&b!==void 0?b:v})).value((v,b)=>v[b]??0).order(h).offset(p)(s);m.forEach((v,b)=>{const x=a[v].dataKey;c[v]=I({labelMarkType:"line"},a[v],{data:x?n.map(S=>{const C=S[x];return typeof C!="number"?null:C}):a[v].data,stackedData:y[b].map(([S,C])=>[S,C])})})}),{seriesOrder:i,stackingGroups:o,series:_S(c,f=>f==null?"":f.toLocaleString())}},d4=(t,n,i)=>{const a=i==null?void 0:i.colorScale,o=n==null?void 0:n.colorScale;return a?s=>{if(s===void 0)return t.color;const c=t.data[s],f=c===null?t.color:a(c);return f===null?t.color:f}:o?s=>{var m;if(s===void 0)return t.color;const c=(m=n.data)==null?void 0:m[s],f=c===null?t.color:o(c);return f===null?t.color:f}:()=>t.color},h4=t=>{const{seriesOrder:n,series:i}=t;return n.reduce((a,o)=>{const s=Gn(i[o].label,"legend");return s===void 0||a.push({markType:i[o].labelMarkType,id:o,seriesId:o,color:i[o].color,label:s}),a},[])},m4=t=>{const{series:n,getColor:i,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const o=Gn(n.label,"tooltip"),s=n.data[a.dataIndex],c=n.valueFormatter(s,{dataIndex:a.dataIndex});return{identifier:a,color:i(a.dataIndex),label:o,value:s,formattedValue:c,markType:n.labelMarkType}},g4=t=>Object.values(t).map(n=>({direction:"x",axisId:n.xAxisId})),p4=(t,n,i)=>I({id:t.id??`auto-generated-id-${n}`,color:i[n%i.length]},t),y4={colorProcessor:d4,seriesProcessor:f4,legendGetter:h4,tooltipGetter:m4,axisTooltipGetter:g4,xExtremumGetter:u4,yExtremumGetter:c4,getSeriesWithDefaultValues:p4},v4=(t="none")=>{if(typeof t=="function")return t;switch(t){case"none":return null;case"desc":return(n,i)=>i-n;case"asc":return(n,i)=>n-i;default:return null}},b4=t=>{const{seriesOrder:n,series:i}=t,a={};return n.forEach(o=>{const s=$R().startAngle(2*Math.PI*(i[o].startAngle??0)/360).endAngle(2*Math.PI*(i[o].endAngle??360)/360).padAngle(2*Math.PI*(i[o].paddingAngle??0)/360).sortValues(v4(i[o].sortingValues??"none"))(i[o].data.map(c=>c.value));a[o]=I({labelMarkType:"circle",valueFormatter:c=>c.value.toLocaleString()},i[o],{data:i[o].data.map((c,f)=>I({},c,{id:c.id??`auto-generated-pie-id-${o}-${f}`},s[f])).map((c,f)=>{var m,h;return I({labelMarkType:"circle"},c,{formattedValue:((h=(m=i[o]).valueFormatter)==null?void 0:h.call(m,I({},c,{label:Gn(c.label,"arc")}),{dataIndex:f}))??c.value.toLocaleString()})})})}),{seriesOrder:n,series:a}},x4=t=>n=>t.data[n].color,S4=t=>{const{seriesOrder:n,series:i}=t;return n.reduce((a,o)=>(i[o].data.forEach((s,c)=>{const f=Gn(s.label,"legend");f!==void 0&&a.push({markType:s.labelMarkType??i[o].labelMarkType,id:s.id??c,seriesId:o,color:s.color,label:f,itemId:s.id??c})}),a),[])},A4=t=>{const{series:n,getColor:i,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const o=n.data[a.dataIndex];if(o==null)return null;const s=Gn(o.label,"tooltip"),c=I({},o,{label:s}),f=n.valueFormatter(c,{dataIndex:a.dataIndex});return{identifier:a,color:i(a.dataIndex),label:s,value:c,formattedValue:f,markType:o.labelMarkType??n.labelMarkType}},T4=(t,n,i)=>I({id:t.id??`auto-generated-id-${n}`},t,{data:t.data.map((a,o)=>I({color:i[o%i.length]},a))}),C4={colorProcessor:x4,seriesProcessor:b4,legendGetter:S4,tooltipGetter:A4,getSeriesWithDefaultValues:T4},w4={bar:JR,scatter:o4,line:y4,pie:C4},M4=[Jo,ml,Wo,gl];function E4(t){const{children:n,plugins:i=M4,pluginParams:a={},seriesConfig:o=w4}=t,{contextValue:s}=kO(i,a,o);return H.jsx(Rx.Provider,{value:s,children:n})}const Ii=()=>{const t=Y.useContext(Rx);if(t==null)throw new Error(["MUI X Charts: Could not find the Chart context.","It looks like you rendered your component outside of a ChartDataProvider.","This can also happen if you are bundling multiple versions of the library."].join(` 109 - `));return t},O4=t=>{"hasPointerCapture"in t.currentTarget&&t.currentTarget.hasPointerCapture(t.pointerId)&&t.currentTarget.releasePointerCapture(t.pointerId)},_4=(t,n)=>{const{instance:i}=Ii(),a=Y.useRef(!1),o=Y.useCallback(()=>{a.current=!0,i.setItemInteraction({type:t.type,seriesId:t.seriesId,dataIndex:t.dataIndex}),i.setHighlight({seriesId:t.seriesId,dataIndex:t.dataIndex})},[i,t.type,t.seriesId,t.dataIndex]),s=Y.useCallback(()=>{a.current=!1,i.removeItemInteraction({type:t.type,seriesId:t.seriesId,dataIndex:t.dataIndex}),i.clearHighlight()},[i,t.type,t.seriesId,t.dataIndex]);return Y.useEffect(()=>()=>{a.current&&s()},[s]),{onPointerEnter:o,onPointerLeave:s,onPointerDown:O4}};function Jt(){const t=Ii();if(!t)throw new Error(["MUI X Charts: Could not find the charts context.","It looks like you rendered your component outside of a ChartContainer parent component."].join(` 110 - `));return t.store}const kS=(t,n)=>i=>!t||!n||!i?!1:t.highlight==="series"?i.seriesId===n.seriesId:t.highlight==="item"?i.dataIndex===n.dataIndex&&i.seriesId===n.seriesId:!1,DS=(t,n)=>i=>!t||!n||!i?!1:t.fade==="series"?i.seriesId===n.seriesId&&i.dataIndex!==n.dataIndex:t.fade==="global"?i.seriesId!==n.seriesId||i.dataIndex!==n.dataIndex:!1,R4=t=>t.highlight,k4=t=>t.series,D4=ft(k4,t=>{const n=new Map;return Object.keys(t.processedSeries).forEach(i=>{const a=t.processedSeries[i];Object.keys((a==null?void 0:a.series)??{}).forEach(o=>{const s=a==null?void 0:a.series[o];n.set(o,s==null?void 0:s.highlightScope)})}),n}),tu=ft(R4,t=>t.item),Nc=ft([D4,tu],(t,n)=>{if(!n)return null;const i=t.get(n.seriesId);return i===void 0?null:i});ft([Nc,tu],kS);ft([Nc,tu],DS);const z4=ft([Nc,tu,(t,n)=>n],(t,n,i)=>kS(t,n)(i)),N4=ft([Nc,tu,(t,n)=>n],(t,n,i)=>DS(t,n)(i));function zS(t){const n=Jt(),i=wt(n,z4,t),a=wt(n,N4,t);return{isHighlighted:i,isFaded:!i&&a}}var Oh,Kv;function U4(){if(Kv)return Oh;Kv=1;var t=4,n=.001,i=1e-7,a=10,o=11,s=1/(o-1),c=typeof Float32Array=="function";function f(S,C){return 1-3*C+3*S}function m(S,C){return 3*C-6*S}function h(S){return 3*S}function p(S,C,E){return((f(C,E)*S+m(C,E))*S+h(C))*S}function y(S,C,E){return 3*f(C,E)*S*S+2*m(C,E)*S+h(C)}function v(S,C,E,R,O){var k,M,_=0;do M=C+(E-C)/2,k=p(M,R,O)-S,k>0?E=M:C=M;while(Math.abs(k)>i&&++_<a);return M}function b(S,C,E,R){for(var O=0;O<t;++O){var k=y(C,E,R);if(k===0)return C;var M=p(C,E,R)-S;C-=M/k}return C}function x(S){return S}return Oh=function(C,E,R,O){if(!(0<=C&&C<=1&&0<=R&&R<=1))throw new Error("bezier x values must be in [0, 1] range");if(C===E&&R===O)return x;for(var k=c?new Float32Array(o):new Array(o),M=0;M<o;++M)k[M]=p(M*s,C,R);function _(D){for(var L=0,$=1,T=o-1;$!==T&&k[$]<=D;++$)L+=s;--$;var z=(D-k[$])/(k[$+1]-k[$]),X=L+z*s,K=y(X,C,R);return K>=n?b(D,X,C,R):K===0?X:v(D,L,L+s,C,R)}return function(L){return L===0?0:L===1?1:p(_(L),E,O)}},Oh}var j4=U4();const $4=jb(j4),B4=300,L4=$4(.66,0,.34,1);var ll=0,wo=0,xo=0,NS=1e3,Zs,Mo,Qs=0,Bi=0,Uc=0,Ho=typeof performance=="object"&&performance.now?performance:Date,US=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function i0(){return Bi||(US(H4),Bi=Ho.now()+Uc)}function H4(){Bi=0}function Ks(){this._call=this._time=this._next=null}Ks.prototype=jS.prototype={constructor:Ks,restart:function(t,n,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?i0():+i)+(n==null?0:+n),!this._next&&Mo!==this&&(Mo?Mo._next=this:Zs=this,Mo=this),this._call=t,this._time=i,tm()},stop:function(){this._call&&(this._call=null,this._time=1/0,tm())}};function jS(t,n,i){var a=new Ks;return a.restart(t,n,i),a}function Jh(){i0(),++ll;for(var t=Zs,n;t;)(n=Bi-t._time)>=0&&t._call.call(void 0,n),t=t._next;--ll}function Fv(){Bi=(Qs=Ho.now())+Uc,ll=wo=0;try{Jh()}finally{ll=0,G4(),Bi=0}}function Y4(){var t=Ho.now(),n=t-Qs;n>NS&&(Uc-=n,Qs=t)}function G4(){for(var t,n=Zs,i,a=1/0;n;)n._call?(a>n._time&&(a=n._time),t=n,n=n._next):(i=n._next,n._next=null,n=t?t._next=i:Zs=i);Mo=t,tm(a)}function tm(t){if(!ll){wo&&(wo=clearTimeout(wo));var n=t-Bi;n>24?(t<1/0&&(wo=setTimeout(Fv,t-Ho.now()-Uc)),xo&&(xo=clearInterval(xo))):(xo||(Qs=Ho.now(),xo=setInterval(Y4,NS)),ll=1,US(Fv))}}function q4(t,n,i){var a=new Ks;return n=n==null?0:+n,a.restart(o=>{a.stop(),t(o+n)},n,i),a}class I4{constructor(n,i,a){this.duration=void 0,this.elapsed=0,this.easingFn=void 0,this.timer=null,this.onTickCallback=void 0,this.duration=n,this.easingFn=i,this.onTickCallback=a,this.resume()}get running(){return this.timer!==null}timerCallback(n){this.elapsed=Math.min(n,this.duration);const i=this.duration===0?1:this.elapsed/this.duration,a=this.easingFn(i);this.onTickCallback(a),this.elapsed>=this.duration&&this.stop()}resume(){if(this.running||this.elapsed>=this.duration)return this;const n=i0()-this.elapsed;return this.timer=jS(i=>this.timerCallback(i),0,n),Jh(),this}stop(){return this.running?(this.timer&&(this.timer.stop(),this.timer=null),this):this}finish(){return this.stop(),q4(()=>this.timerCallback(this.duration)),Jh(),this}}function V4(t,n){if(Object.is(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;const i=Object.keys(t),a=Object.keys(n);if(i.length!==a.length)return!1;for(let o=0;o<i.length;o+=1){const s=i[o];if(!Object.prototype.hasOwnProperty.call(n,s)||!Object.is(t[s],n[s]))return!1}return!0}function X4(t,{createInterpolator:n,applyProps:i,skip:a,initialProps:o=t}){const s=Y.useRef(o),c=Y.useRef(null),f=Y.useRef(null),m=Y.useRef(t);Ye(()=>{m.current=t},[t]),Ye(()=>{var y;a&&((y=c.current)==null||y.finish(),c.current=null,f.current=null,s.current=t)},[t,a]);const h=Y.useCallback(y=>{const v=s.current,b=n(v,t);c.current=new I4(B4,L4,x=>{const S=b(x);s.current=S,i(y,S)})},[i,n,t]);return Y.useCallback(y=>{var b,x,S,C;if(y===null){(b=c.current)==null||b.stop();return}const v=f.current;if(v===y){if(V4(m.current,t)){(x=c.current)==null||x.resume();return}(S=c.current)==null||S.stop()}v&&((C=c.current)==null||C.stop()),f.current=y,(c.current||!a)&&h(y)},[h,t,a])}function a0(t,{createInterpolator:n,transformProps:i,applyProps:a,skip:o,initialProps:s=t,ref:c}){const f=i??(p=>p),m=X4(t,{initialProps:s,createInterpolator:n,applyProps:(p,y)=>a(p,f(y)),skip:o});return I({},i(o?t:s),{ref:Wa(m,c)})}function P4(t,n){const i=xe(t.x,n.x),a=xe(t.y,n.y),o=xe(t.width,n.width),s=xe(t.height,n.height);return c=>({x:i(c),y:a(c),width:o(c),height:s(c)})}function Z4(t){const n={x:t.layout==="vertical"?t.x:t.xOrigin,y:t.layout==="vertical"?t.yOrigin:t.y,width:t.layout==="vertical"?t.width:0,height:t.layout==="vertical"?0:t.height};return a0({x:t.x,y:t.y,width:t.width,height:t.height},{createInterpolator:P4,applyProps(i,a){i.setAttribute("x",a.x.toString()),i.setAttribute("y",a.y.toString()),i.setAttribute("width",a.width.toString()),i.setAttribute("height",a.height.toString())},transformProps:i=>i,initialProps:n,skip:t.skipAnimation,ref:t.ref})}const Q4=["ownerState","skipAnimation","id","dataIndex","xOrigin","yOrigin"];function K4(t){const{ownerState:n}=t,i=Qt(t,Q4),a=Z4(t);return H.jsx("rect",I({},i,{filter:n.isHighlighted?"brightness(120%)":void 0,opacity:n.isFaded?.3:1},a))}const F4=["id","dataIndex","classes","color","slots","slotProps","style","onClick","skipAnimation","layout","x","xOrigin","y","yOrigin","width","height"];function W4(t){const{id:n,dataIndex:i,classes:a,color:o,slots:s,slotProps:c,style:f,onClick:m,skipAnimation:h,layout:p,x:y,xOrigin:v,y:b,yOrigin:x,width:S,height:C}=t,E=Qt(t,F4),R=_4({type:"bar",seriesId:n,dataIndex:i}),{isFaded:O,isHighlighted:k}=zS({seriesId:n,dataIndex:i}),M={id:n,dataIndex:i,classes:a,color:o,isFaded:O,isHighlighted:k},_=DE(M),D=(s==null?void 0:s.bar)??K4,L=Or({elementType:D,externalSlotProps:c==null?void 0:c.bar,externalForwardedProps:E,additionalProps:I({},R,{id:n,dataIndex:i,color:o,x:y,xOrigin:v,y:b,yOrigin:x,width:S,height:C,style:f,onClick:m,cursor:m?"pointer":"unset",stroke:"none",fill:o,skipAnimation:h,layout:p}),className:_.root,ownerState:M});return H.jsx(D,I({},L))}function ar(){const t=Jt();return wt(t,Ur)}function l0(){const t=Jt();return wt(t,CO)}function o0(t){return iS.getTypes().has(t)}const J4=(t,n,i,a,o,s,c)=>{var b;const f=a==="rotation"?o[n].rotationExtremumGetter:o[n].radiusExtremumGetter,m=((b=c[n])==null?void 0:b.series)??{},[h,p]=(f==null?void 0:f({series:m,axis:i,axisIndex:s,isDefaultAxis:s===0}))??[1/0,-1/0],[y,v]=t;return[Math.min(h,y),Math.max(p,v)]},t5=(t,n,i,a,o)=>{const c=Object.keys(i).filter(o0).reduce((f,m)=>J4(f,m,t,n,i,a,o),[1/0,-1/0]);return Number.isNaN(c[0])||Number.isNaN(c[1])?[1/0,-1/0]:c},Eo=(t,n)=>t===void 0?n:Math.PI*t/180,e5=(t,n,i,a)=>{const o=new Set;return Object.keys(n).filter(o0).forEach(c=>{var h,p,y;const f=((h=i[c])==null?void 0:h.series)??{},m=(y=(p=n[c]).axisTooltipGetter)==null?void 0:y.call(p,f);m!==void 0&&m.forEach(({axisId:v,direction:b})=>{b===t&&o.add(v??a)})}),o};function n5(t,n,i){if(n==="rotation"){if(i.scaleType==="point"){const a=[Eo(i.startAngle,0),Eo(i.endAngle,2*Math.PI)],o=a[1]-a[0];return o>Math.PI*2-.1&&(a[1]-=o/i.data.length),a}return[Eo(i.startAngle,0),Eo(i.endAngle,2*Math.PI)]}return[0,Math.min(t.height,t.width)/2]}const Wv=t=>(t==null?void 0:t[0])instanceof Date;function Jv(t,n){const i=Jm(t.data,n);return(a,{location:o})=>o==="tick"?i.tickFormat(t.tickNumber)(a):`${a.toLocaleString()}`}const r5=.2,i5=.1;function $S({drawingArea:t,formattedSeries:n,axis:i,seriesConfig:a,axisDirection:o}){if(i===void 0)return{axis:{},axisIds:[]};const s=e5(o,a,n,i[0].id),c={};return i.forEach((f,m)=>{const h=f,p=n5(t,o,h),[y,v]=t5(h,o,a,m,n),b=!h.ignoreTooltip&&s.has(h.id),x=h.data??[];if(Xs(h)){const $=h.categoryGapRatio??r5,T=h.barGapRatio??i5;if(c[h.id]=I({offset:0,categoryGapRatio:$,barGapRatio:T,triggerTooltip:b},h,{data:x,scale:Ac(h.data,p).paddingInner($).paddingOuter($/2),tickNumber:h.data.length,colorScale:h.colorMap&&(h.colorMap.type==="ordinal"?nl(I({values:h.data},h.colorMap)):Ni(h.colorMap))}),Wv(h.data)){const z=Jv(h,p);c[h.id].valueFormatter=h.valueFormatter??z}}if(t0(h)&&(c[h.id]=I({offset:0,triggerTooltip:b},h,{data:x,scale:Ux(h.data,p),tickNumber:h.data.length,colorScale:h.colorMap&&(h.colorMap.type==="ordinal"?nl(I({values:h.data},h.colorMap)):Ni(h.colorMap))}),Wv(h.data))){const $=Jv(h,p);c[h.id].valueFormatter=h.valueFormatter??$}if(h.scaleType==="band"||h.scaleType==="point")return;const S=h.scaleType??"linear",C=h.domainLimit??"nice",E=[h.min??y,h.max??v];if(typeof C=="function"){const{min:$,max:T}=C(y,v);E[0]=$,E[1]=T}const R=nS(I({},h,{range:p,domain:E})),O=rS(R,p),k=e0(S,E,p),M=C==="nice"?k.nice(R):k,[_,D]=M.domain(),L=[h.min??_,h.max??D];c[h.id]=I({offset:0,triggerTooltip:b},h,{data:x,scaleType:S,scale:M.domain(L),tickNumber:O,colorScale:h.colorMap&&Ni(h.colorMap)})}),{axis:c,axisIds:i.map(({id:f})=>f)}}const BS=t=>t.polarAxis,LS=ft(BS,t=>t==null?void 0:t.rotation),a5=ft(BS,t=>t==null?void 0:t.radius),Vi=ft([LS,Ur,In,jr],(t,n,i,a)=>$S({drawingArea:n,formattedSeries:i,axis:t,seriesConfig:a,axisDirection:"rotation"})),l5=ft([a5,Ur,In,jr],(t,n,i,a)=>$S({drawingArea:n,formattedSeries:i,axis:t,seriesConfig:a,axisDirection:"radius"})),o5=ft([Ur],t=>({cx:t.left+t.width/2,cy:t.top+t.height/2})),u5=t=>(n,i)=>Math.atan2(n-t.cx,t.cy-i);function Xi(){const t=Jt(),{axis:n,axisIds:i}=wt(t,Gi);return{xAxis:n,xAxisIds:i}}function Pi(){const t=Jt(),{axis:n,axisIds:i}=wt(t,qi);return{yAxis:n,yAxisIds:i}}function HS(t){const n=Jt(),{axis:i,axisIds:a}=wt(n,Gi),o=a[0];return i[o]}function YS(t){const n=Jt(),{axis:i,axisIds:a}=wt(n,qi),o=a[0];return i[o]}function GS(){const t=Jt(),{axis:n,axisIds:i}=wt(t,Vi);return{rotationAxis:n,rotationAxisIds:i}}function s5(){const t=Jt(),{axis:n,axisIds:i}=wt(t,l5);return{radiusAxis:n,radiusAxisIds:i}}function c5(t){const n=Jt(),{axis:i,axisIds:a}=wt(n,Vi),o=a[0];return i[o]}function Fs(t){return $r(t)?n=>(t(n)??0)+t.bandwidth()/2:n=>t(n)}function f5(t){return HS().scale}function d5(t){return YS().scale}function u0(){const t=Jt(),{axis:n,axisIds:i}=wt(t,RR)??{axis:{},axisIds:[]};return{zAxis:n,zAxisIds:i}}function s0(){const t=Ii();if(!t)throw new Error(["MUI X Charts: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartContainer parent component."].join(` 111 - `));return t.svgRef}function jc(){const t=Jt();return wt(t,In)}function h5(t,n){if(t===n)return!0;if(!Array.isArray(t)||!Array.isArray(n))return!1;let i=t.length;if(i!==n.length)return!1;for(;i--;)if(t[i]!==n[i])return!1;return!0}function m5(t){const n=ft([In,(i,a)=>a],(i,a)=>{var s,c,f,m,h,p;if(!a||Array.isArray(a)&&a.length===0)return((c=(s=i[t])==null?void 0:s.seriesOrder)==null?void 0:c.map(y=>{var v;return(v=i[t])==null?void 0:v.series[y]}))??[];if(!Array.isArray(a))return(m=(f=i[t])==null?void 0:f.series)==null?void 0:m[a];const o=[];for(const y of a){const v=(p=(h=i[t])==null?void 0:h.series)==null?void 0:p[y];v&&o.push(v)}return o});return i=>{const a=Jt();return wt(a,n,i,h5)}}function g5(t){const n=ft(In,i=>i[t]);return()=>{const i=Jt();return wt(i,n)}}m5("bar");const p5=g5("bar");function y5(){return p5()}function v5(t,n){return Object.keys(t).flatMap(i=>{const a=n[i].legendGetter;return a===void 0?[]:a(t[i])})}function b5(){const t=jc(),n=Jt(),i=wt(n,jr);return{items:v5(t,i)}}function x5(){const t=l0();return Y.useCallback(n=>`${t}-gradient-${n}`,[t])}function S5(){const t=l0();return Y.useCallback(n=>`${t}-gradient-${n}-object-bound`,[t])}function A5(t,n){const i=xe(t.x,n.x),a=xe(t.y,n.y),o=xe(t.width,n.width),s=xe(t.height,n.height);return c=>({x:i(c),y:a(c),width:o(c),height:s(c)})}function T5(t){const n={x:t.layout==="vertical"?t.x+t.width/2:t.xOrigin,y:t.layout==="vertical"?t.yOrigin:t.y+t.height/2,width:t.width,height:t.height},i={x:t.x+t.width/2,y:t.y+t.height/2,width:t.width,height:t.height};return a0(i,{createInterpolator:A5,transformProps:a=>a,applyProps(a,o){a.setAttribute("x",o.x.toString()),a.setAttribute("y",o.y.toString()),a.setAttribute("width",o.width.toString()),a.setAttribute("height",o.height.toString())},initialProps:n,skip:t.skipAnimation,ref:t.ref})}function C5(){return Ii().chartRootRef}const w5=t=>({components:{MuiChartsLocalizationProvider:{defaultProps:{localeText:I({},t)}}}}),qS={loading:"Loading data…",noData:"No data to display",zoomIn:"Zoom in",zoomOut:"Zoom out"},M5=qS;w5(qS);const E5=["localeText"],em=Y.createContext(null);function O5(t){const{localeText:n}=t,i=Qt(t,E5),{localeText:a}=Y.useContext(em)??{localeText:void 0},o=ir({props:i,name:"MuiChartsLocalizationProvider"}),{children:s,localeText:c}=o,f=Y.useMemo(()=>I({},M5,c,a,n),[c,a,n]),m=Y.useMemo(()=>({localeText:f}),[f]);return H.jsx(em.Provider,{value:m,children:s})}const IS=()=>{const t=Y.useContext(em);if(t===null)throw new Error(["MUI X Charts: Can not find the charts localization context.","It looks like you forgot to wrap your component in ChartsLocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-charts` package"].join(` 112 - `));return t},Cs=(t,{hasNegative:n,hasPositive:i,borderRadius:a,layout:o})=>{if(!a)return 0;const s=o==="vertical";return t==="top-left"&&(s&&i||!s&&n)||t==="top-right"&&(s&&i||!s&&i)||t==="bottom-right"&&(s&&n||!s&&i)||t==="bottom-left"&&(s&&n||!s&&n)?a:0},_5=["maskId","x","y","width","height","skipAnimation"];function R5(t,n,i){const a=I({},i,{borderRadius:n}),o=Math.min(t,Cs("top-left",a)),s=Math.min(t,Cs("top-right",a)),c=Math.min(t,Cs("bottom-right",a)),f=Math.min(t,Cs("bottom-left",a));return`inset(0px round ${o}px ${s}px ${c}px ${f}px)`}function k5(t,n){const i=xe(t.x,n.x),a=xe(t.y,n.y),o=xe(t.width,n.width),s=xe(t.height,n.height),c=xe(t.borderRadius,n.borderRadius);return f=>({x:i(f),y:a(f),width:o(f),height:s(f),borderRadius:c(f)})}function D5(t){const n={x:t.x,y:t.y+(t.ownerState.layout==="vertical"?t.height:0),width:t.ownerState.layout==="vertical"?t.width:0,height:t.ownerState.layout==="vertical"?0:t.height,borderRadius:t.borderRadius};return a0({x:t.x,y:t.y,width:t.width,height:t.height,borderRadius:t.borderRadius},{createInterpolator:k5,transformProps:i=>({x:i.x,y:i.y,width:i.width,height:i.height,style:{clipPath:R5(t.ownerState.layout==="vertical"?i.height:i.width,i.borderRadius,t.ownerState)}}),applyProps(i,a){i.setAttribute("x",a.x.toString()),i.setAttribute("y",a.y.toString()),i.setAttribute("width",a.width.toString()),i.setAttribute("height",a.height.toString()),i.style.clipPath=a.style.clipPath},initialProps:n,skip:t.skipAnimation,ref:t.ref})}function z5(t){const n=D5(I({},t,{borderRadius:t.ownerState.borderRadius??0}));return H.jsx("rect",I({},n))}function N5(t){const{maskId:n,x:i,y:a,width:o,height:s,skipAnimation:c}=t,f=Qt(t,_5);return!t.borderRadius||t.borderRadius<=0?null:H.jsx("clipPath",{id:n,children:H.jsx(z5,{ownerState:f,x:i,y:a,width:o,height:s,skipAnimation:c})})}function U5(t){return zn("MuiBarLabel",t)}const _h=qn("MuiBarLabel",["root","highlighted","faded","animate"]),j5=t=>{const{classes:n,seriesId:i,isFaded:a,isHighlighted:o,skipAnimation:s}=t,c={root:["root",`series-${i}`,o&&"highlighted",a&&"faded",!s&&"animate"]};return Nn(c,U5,n)},$5=t=>{const{barLabel:n,value:i,dataIndex:a,seriesId:o,height:s,width:c}=t;return n==="value"?i?i==null?void 0:i.toString():null:n({seriesId:o,dataIndex:a,value:i},{bar:{height:s,width:c}})},B5=["seriesId","dataIndex","color","isFaded","isHighlighted","classes","skipAnimation","layout","xOrigin","yOrigin"],L5=he("text",{name:"MuiBarLabel",slot:"Root",overridesResolver:(t,n)=>[{[`&.${_h.faded}`]:n.faded},{[`&.${_h.highlighted}`]:n.highlighted},n.root]})(({theme:t})=>{var n,i,a,o;return I({},(n=t==null?void 0:t.typography)==null?void 0:n.body2,{stroke:"none",fill:(o=(a=(i=t.vars||t)==null?void 0:i.palette)==null?void 0:a.text)==null?void 0:o.primary,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",textAnchor:"middle",dominantBaseline:"central",pointerEvents:"none",opacity:1,[`&.${_h.faded}`]:{opacity:.3}})});function H5(t){const n=ir({props:t,name:"MuiBarLabel"}),i=Qt(n,B5),a=T5(n);return H.jsx(L5,I({},i,a))}const Y5=["seriesId","classes","color","dataIndex","barLabel","slots","slotProps","xOrigin","yOrigin","x","y","width","height","value","skipAnimation","layout"],G5=["ownerState"];function q5(t){const{seriesId:n,classes:i,color:a,dataIndex:o,barLabel:s,slots:c,slotProps:f,xOrigin:m,yOrigin:h,x:p,y,width:v,height:b,value:x,skipAnimation:S,layout:C}=t,E=Qt(t,Y5),{isFaded:R,isHighlighted:O}=zS({seriesId:n,dataIndex:o}),k={seriesId:n,classes:i,color:a,isFaded:R,isHighlighted:O,dataIndex:o,skipAnimation:S,layout:C},M=j5(k),_=(c==null?void 0:c.barLabel)??H5,D=Or({elementType:_,externalSlotProps:f==null?void 0:f.barLabel,additionalProps:I({},E,{xOrigin:m,yOrigin:h,x:p,y,width:v,height:b,className:M.root}),ownerState:k}),{ownerState:L}=D,$=Qt(D,G5);if(!s)return null;const T=$5({barLabel:s,value:x,dataIndex:o,seriesId:n,height:b,width:v});return T?H.jsx(_,I({},$,L,{children:T})):null}const I5=["bars","skipAnimation"];function V5(t){const{bars:n,skipAnimation:i}=t,a=Qt(t,I5);return H.jsx(Y.Fragment,{children:n.map(({xOrigin:o,yOrigin:s,x:c,y:f,seriesId:m,dataIndex:h,color:p,value:y,width:v,height:b,layout:x})=>H.jsx(q5,I({seriesId:m,dataIndex:h,value:y,color:p,xOrigin:o,yOrigin:s,x:c,y:f,width:v,height:b,skipAnimation:i??!1,layout:x??"vertical"},a),`${m}-${h}`))})}const Rh=(t,n)=>{const i=`${t}-axis`,a=`${t}Axis`;return n===(t==="x"?Dm:zm)?`The first \`${a}\``:`The ${i} with id "${n}"`};function X5(t,n,i,a,o,s,c){const f=o[a],m=c[s],h=t?f:m,p=t?m:f,y=t?a:s,v=t?s:a,b=t?"x":"y",x=t?"y":"x";if(!Xs(h))throw new Error(`MUI X Charts: ${Rh(b,y)} should be of type "band" to display the bar series of id "${n}".`);if(h.data===void 0)throw new Error(`MUI X Charts: ${Rh(b,y)} should have data property.`);if(Xs(p)||t0(p))throw new Error(`MUI X Charts: ${Rh(x,v)} should be a continuous type to display the bar series of id "${n}".`)}function P5(t){const n=Jt(),i=wt(n,iO);return t||i}function Z5(){const t=Jt();return wt(t,cS)}const Q5=["skipAnimation","onItemClick","borderRadius","barLabel"];function K5({bandWidth:t,numberOfGroups:n,gapRatio:i}){if(i===0)return{barWidth:t/n,offset:0};const a=t/(n+(n-1)*i),o=i*a;return{barWidth:a,offset:o}}const F5=()=>{const t=y5()??{series:{},stackingGroups:[]},n=ar(),i=l0(),{series:a,stackingGroups:o}=t,{xAxis:s,xAxisIds:c}=Xi(),{yAxis:f,yAxisIds:m}=Pi(),h=c[0],p=m[0],y={};return{completedData:o.flatMap(({ids:b},x)=>{const S=n.left,C=n.left+n.width,E=n.top,R=n.top+n.height;return b.flatMap(O=>{const k=a[O].xAxisId??h,M=a[O].yAxisId??p,_=s[k],D=f[M],L=a[O].layout==="vertical";X5(L,O,a[O],k,s,M,f);const $=L?_:D,T=_.scale,z=D.scale,X=RS(a[O],s[k],f[M]),K=$.scale.bandwidth(),{barWidth:it,offset:ot}=K5({bandWidth:K,numberOfGroups:o.length,gapRatio:$.barGapRatio}),j=x*(it+ot),{stackedData:P,data:nt,layout:ut}=a[O];return $.data.map((N,F)=>{if(nt[F]==null)return null;const lt=P[F].map(st=>L?z(st):T(st)),ct=Math.round(Math.min(...lt)),yt=Math.round(Math.max(...lt)),dt=a[O].stack,gt={seriesId:O,dataIndex:F,layout:ut,x:L?T(N)+j:ct,y:L?ct:z(N)+j,xOrigin:T(0)??0,yOrigin:z(0)??0,height:L?yt-ct:it,width:L?it:yt-ct,color:X(F),value:nt[F],maskId:`${i}_${dt||O}_${x}_${F}`};if(gt.x>C||gt.x+gt.width<S||gt.y>R||gt.y+gt.height<E)return null;y[gt.maskId]||(y[gt.maskId]={id:gt.maskId,width:0,height:0,hasNegative:!1,hasPositive:!1,layout:gt.layout,xOrigin:T(0),yOrigin:z(0),x:0,y:0});const mt=y[gt.maskId];return mt.width=gt.layout==="vertical"?gt.width:mt.width+gt.width,mt.height=gt.layout==="vertical"?mt.height+gt.height:gt.height,mt.x=Math.min(mt.x===0?1/0:mt.x,gt.x),mt.y=Math.min(mt.y===0?1/0:mt.y,gt.y),mt.hasNegative=mt.hasNegative||(gt.value??0)<0,mt.hasPositive=mt.hasPositive||(gt.value??0)>0,gt}).filter(N=>N!==null)})}),masksData:Object.values(y)}},W5=he("g",{name:"MuiBarPlot",slot:"Root"})({[`& .${kE.root}`]:{transition:"opacity 0.2s ease-in, fill 0.2s ease-in"}});function J5(t){const{completedData:n,masksData:i}=F5(),{skipAnimation:a,onItemClick:o,borderRadius:s,barLabel:c}=t,f=Qt(t,Q5),m=Z5(),h=P5(m||a),p=!s||s<=0;return H.jsxs(W5,{children:[!p&&i.map(({id:y,x:v,y:b,width:x,height:S,hasPositive:C,hasNegative:E,layout:R})=>H.jsx(N5,{maskId:y,borderRadius:s,hasNegative:E,hasPositive:C,layout:R,x:v,y:b,width:x,height:S,skipAnimation:h??!1},y)),n.map(({seriesId:y,dataIndex:v,color:b,maskId:x,layout:S,x:C,xOrigin:E,y:R,yOrigin:O,width:k,height:M})=>{const _=H.jsx(W4,I({id:y,dataIndex:v,color:b,skipAnimation:h??!1,layout:S??"vertical",x:C,xOrigin:E,y:R,yOrigin:O,width:k,height:M},f,{onClick:o&&(D=>{o(D,{type:"bar",seriesId:y,dataIndex:v})})}),`${y}-${v}`);return p?_:H.jsx("g",{clipPath:`url(#${x})`,children:_},`${y}-${v}`)}),c&&H.jsx(V5,I({bars:n,skipAnimation:h,barLabel:c},f))]})}function $c(t){return(t%360+360)%360}const kh=2*Math.PI;function tk(t){return(t%kh+kh)%kh}function c0(){const[t,n]=Y.useState(typeof window<"u"||!1);return Y.useEffect(()=>{n(!0)},[]),t}const VS=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function ek(t){return t.length}function nk(t){const n=VS.segment(t);let i=0;for(const a of n)i+=1;return i}const rk=VS?nk:ek;function ik(t){return t*(Math.PI/180)}const XS=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function ak(t,n){return t.slice(0,n)}function lk(t,n){const i=XS.segment(t);let a="",o=0;for(const s of i)if(a+=s.segment,o+=1,o>=n)break;return a}const ok=XS?lk:ak,tb="…";function PS(t,n){const{width:i,height:a,measureText:o}=n,s=ik(n.angle),c=o(t),f=Math.abs(c.width*Math.cos(s))+Math.abs(c.height*Math.sin(s)),m=Math.abs(c.width*Math.sin(s))+Math.abs(c.height*Math.cos(s));return f<=i&&m<=a}function ZS(t,n){if(n(t))return t;let i=t,a=1,o=1/2;const s=rk(t);let c=s,f=s,m=null;do{if(f=c,c=Math.floor(s*o),c===0)break;i=ok(t,c).trim();const h=n(i+tb);a+=1,h?(m=i,o+=1/2**a):o-=1/2**a}while(Math.abs(c-f)!==1);return m?m+tb:""}function uk(){return typeof window>"u"}const _i={widthCache:{},cacheCount:0},sk=2e3,ck={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},fk=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],eb="mui_measurement_span";function QS(t,n){return fk.indexOf(t)>=0&&n===+n?`${n}px`:n}function KS(t){return t.split("").reduce((a,o)=>o===o.toUpperCase()?[...a,"-",o.toLowerCase()]:[...a,o],[]).join("")}const dk=t=>Object.keys(t).sort().reduce((n,i)=>`${n}${KS(i)}:${QS(i,t[i])};`,"");let Dh;const eu=(t,n={})=>{if(t==null||uk())return{width:0,height:0};const i=`${t}`,a=dk(n),o=`${i}-${a}`;if(_i.widthCache[o])return _i.widthCache[o];try{let s=document.getElementById(eb);s===null&&(s=document.createElement("span"),s.setAttribute("id",eb),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));const c=I({},ck,n);Object.keys(c).map(h=>(s.style[KS(h)]=QS(h,c[h]),h)),s.textContent=i;const f=s.getBoundingClientRect(),m={width:f.width,height:f.height};return _i.widthCache[o]=m,_i.cacheCount+1>sk?(_i.cacheCount=0,_i.widthCache={}):_i.cacheCount+=1,Dh&&clearTimeout(Dh),Dh=setTimeout(()=>{s.textContent=""},0),m}catch{return{width:0,height:0}}};function f0(t){return typeof t=="number"&&!Number.isFinite(t)}const zh={start:0,extremities:0,end:1,middle:.5};function Bc(t){const{scale:n,tickNumber:i,valueFormatter:a,tickInterval:o,tickPlacement:s="extremities",tickLabelPlacement:c,direction:f}=t,{instance:m}=Ii();return Y.useMemo(()=>{if($r(n)){const b=n.domain(),x=c??"middle";return n.bandwidth()>0?[...(typeof o=="function"&&b.filter(o)||typeof o=="object"&&o||b).map(E=>({value:E,formattedValue:(a==null?void 0:a(E,{location:"tick",scale:n}))??`${E}`,offset:n(E)-(n.step()-n.bandwidth())/2+zh[s]*n.step(),labelOffset:x==="tick"?0:n.step()*(zh[x]-zh[s])})),...s==="extremities"?[{formattedValue:void 0,offset:n.range()[1],labelOffset:0}]:[]]:(typeof o=="function"&&b.filter(o)||typeof o=="object"&&o||b).map(C=>({value:C,formattedValue:(a==null?void 0:a(C,{location:"tick",scale:n}))??`${C}`,offset:n(C),labelOffset:0}))}if(n.domain().some(f0))return[];const p=c,y=typeof o=="object"?o:n.ticks(i),v=[];for(let b=0;b<y.length;b+=1){const x=y[b],S=n(x);m.isPointInside({x:S,y:S},{direction:f})&&v.push({value:x,formattedValue:(a==null?void 0:a(x,{location:"tick",scale:n}))??n.tickFormat(i)(x),offset:S,labelOffset:p==="middle"?n(y[b-1]??0)-(S+n(y[b-1]??0))/2:0})}return v},[n,c,o,i,s,a,f,m])}function FS(t){return zn("MuiChartsAxis",t)}const ws=qn("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),WS=he("g",{name:"MuiChartsAxis",slot:"Root"})(({theme:t})=>({[`& .${ws.tickLabel}`]:I({},t.typography.caption,{fill:(t.vars||t).palette.text.primary}),[`& .${ws.label}`]:{fill:(t.vars||t).palette.text.primary},[`& .${ws.line}`]:{stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${ws.tick}`]:{stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges"}}));function JS({style:t,needsComputation:n,text:i}){return i.split(` 113 - `).map(a=>I({text:a},n?eu(a,t):{width:0,height:0}))}const hk=["x","y","style","text","ownerState"],mk=["angle","textAnchor","dominantBaseline"];function Ws(t){const{x:n,y:i,style:a,text:o}=t,s=Qt(t,hk),c=a??{},{angle:f,textAnchor:m,dominantBaseline:h}=c,p=Qt(c,mk),y=c0(),v=Y.useMemo(()=>JS({style:p,needsComputation:y&&o.includes(` 114 - `),text:o}),[p,o,y]);let b;switch(h){case"hanging":case"text-before-edge":b=0;break;case"central":b=(v.length-1)/2*-v[0].height;break;default:b=(v.length-1)*-v[0].height;break}return H.jsx("text",I({},s,{transform:f?`rotate(${f}, ${n}, ${i})`:void 0,x:n,y:i,textAnchor:m,dominantBaseline:h,style:p,children:v.map((x,S)=>H.jsx("tspan",{x:n,dy:`${S===0?b:v[0].height}px`,dominantBaseline:h,children:x.text},S))}))}const nb=5;function gk(t,n,i=0){const a=Math.min(Math.abs(i)%180,Math.abs(Math.abs(i)%180-180)%180);if(a<nb)return t;if(a>90-nb)return n;const o=Eo(a),s=Math.atan2(n,t);return o<s?t/Math.cos(o):n/Math.sin(o)}function pk(t=!1){const[n,i]=Y.useState(!1);return Ye(()=>{t||i(!0)},[t]),Y.useEffect(()=>{t&&i(!0)},[t]),n}function t2(t){const n=$c(t);return n<=30||n>=330||n<=210&&n>=150?"middle":n<=180?"end":"start"}function e2(t){const n=$c(t);return n<=30||n>=330?"hanging":n<=210&&n>=150?"auto":"central"}function n2(t){switch(t){case"start":return"end";case"end":return"start";default:return t}}const yk=["scale","tickNumber","reverse"],vk=t=>{const{classes:n,position:i}=t;return Nn({root:["root","directionX",i],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},FS,n)},rb=3,bk=4;function xk(t,{tickLabelStyle:n,tickLabelInterval:i,tickLabelMinGap:a,reverse:o,isMounted:s,isPointInside:c}){const f=p=>{if(!s||p.formattedValue===void 0)return{width:0,height:0};const y=JS({style:n,needsComputation:!0,text:p.formattedValue});return{width:Math.max(...y.map(v=>v.width)),height:Math.max(y.length*y[0].height)}};if(typeof i=="function")return new Set(t.filter((p,y)=>i(p.value,y)));let m=0;const h=o?-1:1;return new Set(t.filter((p,y)=>{const{offset:v,labelOffset:b}=p,x=v+b;if(y>0&&h*x<h*(m+a)||!c(x))return!1;const{width:S,height:C}=f(p),E=gk(S,C,n==null?void 0:n.angle),R=x-h*E/2;return y>0&&h*R<h*(m+a)?!1:(m=x+h*E/2,!0)}))}function Sk(t,n,i,a,o){const s=new Map,c=$c((o==null?void 0:o.angle)??0);let f=1,m=1;(o==null?void 0:o.textAnchor)==="start"?(f=1/0,m=1):(o==null?void 0:o.textAnchor)==="end"?(f=1,m=1/0):(f=2,m=2),c>90&&c<270&&([f,m]=[m,f]),a&&([f,m]=[m,f]);for(const h of t)if(h.formattedValue){const p=Math.min((h.offset+h.labelOffset)*f,(n.left+n.width+n.right-h.offset-h.labelOffset)*m),y=v=>PS(v,{width:p,height:i,angle:c,measureText:b=>eu(b,o)});s.set(h,ZS(h.formattedValue.toString(),y))}return s}const Ak=he(WS,{name:"MuiChartsXAxis",slot:"Root"})({}),Tk={disableLine:!1,disableTicks:!1,tickSize:6,tickLabelMinGap:4};function Ck(t){const{xAxis:n,xAxisIds:i}=Xi(),a=n[t.axisId??i[0]],{scale:o,tickNumber:s,reverse:c}=a,f=Qt(a,yk),m=pk(),h=ir({props:I({},f,t),name:"MuiChartsXAxis"}),p=I({},Tk,h),{position:y,disableLine:v,disableTicks:b,tickLabelStyle:x,label:S,labelStyle:C,tickSize:E,valueFormatter:R,slots:O,slotProps:k,tickInterval:M,tickLabelInterval:_,tickPlacement:D,tickLabelPlacement:L,tickLabelMinGap:$,sx:T,offset:z,height:X}=p,K=Zo(),it=Mm(),ot=vk(p),j=ar(),{left:P,top:nt,width:ut,height:N}=j,{instance:F}=Ii(),at=c0(),lt=b?4:E,ct=y==="bottom"?1:-1,yt=(O==null?void 0:O.axisLine)??"line",dt=(O==null?void 0:O.axisTick)??"line",gt=(O==null?void 0:O.axisTickLabel)??Ws,mt=(O==null?void 0:O.axisLabel)??Ws,st=t2((y==="bottom"?0:180)-((x==null?void 0:x.angle)??0)),xt=e2((y==="bottom"?0:180)-((x==null?void 0:x.angle)??0)),bt=Or({elementType:gt,externalSlotProps:k==null?void 0:k.axisTickLabel,additionalProps:{style:I({},K.typography.caption,{fontSize:12,lineHeight:1.25,textAnchor:it?n2(st):st,dominantBaseline:xt},x)},className:ot.tickLabel,ownerState:{}}),rt=Bc({scale:o,tickNumber:s,valueFormatter:R,tickInterval:M,tickPlacement:D,tickLabelPlacement:L,direction:"x"}),Rt=xk(rt,{tickLabelStyle:bt.style,tickLabelInterval:_,tickLabelMinGap:$,reverse:c,isMounted:m,isPointInside:Kt=>F.isPointInside({x:Kt,y:-1},{direction:"x"})}),vt=Or({elementType:mt,externalSlotProps:k==null?void 0:k.axisLabel,additionalProps:{style:I({},K.typography.body1,{lineHeight:1,fontSize:14,textAnchor:"middle",dominantBaseline:y==="bottom"?"text-after-edge":"text-before-edge"},C)},ownerState:{}}),Bt=o.domain(),Wt=$r(o);if(Wt&&Bt.length===0||!Wt&&Bt.some(f0)||y==="none")return null;const Yt=S?eu(S,vt.style).height:0,Ae={x:P+ut/2,y:ct*X},se=Math.max(0,X-(S?Yt+bk:0)-lt-rb),me=at?Sk(Rt,j,se,it,bt.style):new Map(Array.from(Rt).map(Kt=>[Kt,Kt.formattedValue]));return H.jsxs(Ak,{transform:`translate(0, ${y==="bottom"?nt+N+z:nt-z})`,className:ot.root,sx:T,children:[!v&&H.jsx(yt,I({x1:P,x2:P+ut,className:ot.line},k==null?void 0:k.axisLine)),rt.map((Kt,Xe)=>{const{offset:mn,labelOffset:gn}=Kt,Un=gn??0,Ge=ct*(lt+rb),te=F.isPointInside({x:mn,y:-1},{direction:"x"}),_e=me.get(Kt),Te=Rt.has(Kt);return H.jsxs("g",{transform:`translate(${mn}, 0)`,className:ot.tickContainer,children:[!b&&te&&H.jsx(dt,I({y2:ct*lt,className:ot.tick},k==null?void 0:k.axisTick)),_e!==void 0&&Te&&H.jsx(gt,I({x:Un,y:Ge},bt,{text:_e}))]},Xe)}),S&&H.jsx("g",{className:ot.label,children:H.jsx(mt,I({},Ae,vt,{text:S}))})]})}const wk=["scale","tickNumber"],Mk=t=>{const{classes:n,position:i}=t;return Nn({root:["root","directionY",i],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},FS,n)},ib=2,Ek=2;function Ok(t,n,i,a,o){const s=new Map,c=$c((o==null?void 0:o.angle)??0);let f=1,m=1;(o==null?void 0:o.textAnchor)==="start"?(f=1/0,m=1):(o==null?void 0:o.textAnchor)==="end"?(f=1,m=1/0):(f=2,m=2),c>180&&([f,m]=[m,f]),a&&([f,m]=[m,f]);for(const h of t)if(h.formattedValue){const p=Math.min((h.offset+h.labelOffset)*f,(n.top+n.height+n.bottom-h.offset-h.labelOffset)*m),y=v=>PS(v,{width:i,height:p,angle:c,measureText:b=>eu(b,o)});s.set(h,ZS(h.formattedValue.toString(),y))}return s}const _k=he(WS,{name:"MuiChartsYAxis",slot:"Root"})({}),Rk={disableLine:!1,disableTicks:!1,tickSize:6};function kk(t){const{yAxisIds:n,yAxis:i}=Pi(),a=i[t.axisId??n[0]],{scale:o,tickNumber:s}=a,c=Qt(a,wk),f=ir({props:I({},c,t),name:"MuiChartsYAxis"}),m=I({},Rk,f),{position:h,disableLine:p,disableTicks:y,label:v,labelStyle:b,tickLabelStyle:x,tickSize:S,valueFormatter:C,slots:E,slotProps:R,tickPlacement:O,tickLabelPlacement:k,tickInterval:M,tickLabelInterval:_,sx:D,offset:L,width:$}=m,T=Zo(),z=Mm(),X=c0(),K=Mk(m),{instance:it}=Ii(),ot=ar(),{left:j,top:P,width:nt,height:ut}=ot,N=y?4:S,F=Bc({scale:o,tickNumber:s,valueFormatter:C,tickPlacement:O,tickLabelPlacement:k,tickInterval:M,direction:"y"}),at=h==="right"?1:-1,lt=typeof(x==null?void 0:x.fontSize)=="number"?x.fontSize:12,ct=(E==null?void 0:E.axisLine)??"line",yt=(E==null?void 0:E.axisTick)??"line",dt=(E==null?void 0:E.axisTickLabel)??Ws,gt=(E==null?void 0:E.axisLabel)??Ws,mt=t2((h==="right"?-90:90)-((x==null?void 0:x.angle)??0)),st=e2((h==="right"?-90:90)-((x==null?void 0:x.angle)??0)),xt=Or({elementType:dt,externalSlotProps:R==null?void 0:R.axisTickLabel,additionalProps:{style:I({},T.typography.caption,{fontSize:lt,textAnchor:z?n2(mt):mt,dominantBaseline:st},x)},className:K.tickLabel,ownerState:{}}),bt=Or({elementType:gt,externalSlotProps:R==null?void 0:R.axisLabel,additionalProps:{style:I({},T.typography.body1,{lineHeight:1,fontSize:14,angle:at*90,textAnchor:"middle",dominantBaseline:"text-before-edge"},b)},ownerState:{}}),rt=Or({elementType:ct,externalSlotProps:R==null?void 0:R.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),Rt=o.domain(),vt=$r(o);if(vt&&Rt.length===0||!vt&&Rt.some(f0)||h==="none")return null;const Bt={x:at*$,y:P+ut/2},Wt=Math.max(0,$-(v?eu(v,bt.style).height+Ek:0)-N-ib),Yt=X?Ok(F,ot,Wt,z,xt.style):new Map(Array.from(F).map(Ae=>[Ae,Ae.formattedValue]));return H.jsxs(_k,{transform:`translate(${h==="right"?j+nt+L:j-L}, 0)`,className:K.root,sx:D,children:[!p&&H.jsx(ct,I({y1:P,y2:P+ut,className:K.line},rt)),F.map((Ae,se)=>{const{offset:me,labelOffset:Kt,value:Xe}=Ae,mn=at*(N+ib),gn=Kt,Un=typeof _=="function"&&!(_!=null&&_(Xe,se)),Ge=it.isPointInside({x:-1,y:me},{direction:"y"}),te=Yt.get(Ae);return Ge?H.jsxs("g",{transform:`translate(0, ${me})`,className:K.tickContainer,children:[!y&&H.jsx(yt,I({x2:at*N,className:K.tick},R==null?void 0:R.axisTick)),te!==void 0&&!Un&&H.jsx(dt,I({x:mn,y:gn,text:te},xt))]},se):null}),v&&X&&H.jsx("g",{className:K.label,children:H.jsx(gt,I({},Bt,bt,{text:v}))})]})}function Dk(t){const{slots:n,slotProps:i}=t,{xAxisIds:a,xAxis:o}=Xi(),{yAxisIds:s,yAxis:c}=Pi();return H.jsxs(Y.Fragment,{children:[a.map(f=>!o[f].position||o[f].position==="none"?null:H.jsx(Ck,{slots:n,slotProps:i,axisId:f},f)),s.map(f=>!c[f].position||c[f].position==="none"?null:H.jsx(kk,{slots:n,slotProps:i,axisId:f},f))]})}function zk(){return aM}const Nk=zM;function r2(t){return DM(t)}function Uk(t){return typeof t.main=="string"}function jk(t,n=[]){if(!Uk(t))return!1;for(const i of n)if(!t.hasOwnProperty(i)||typeof t[i]!="string")return!1;return!0}function $k(t=[]){return([,n])=>n&&jk(n,t)}function Bk(t){return zn("MuiTypography",t)}qn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Lk={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Hk=zk(),Yk=t=>{const{align:n,gutterBottom:i,noWrap:a,paragraph:o,variant:s,classes:c}=t,f={root:["root",s,t.align!=="inherit"&&`align${No(n)}`,i&&"gutterBottom",a&&"noWrap",o&&"paragraph"]};return Nn(f,Bk,c)},Gk=he("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:i}=t;return[n.root,i.variant&&n[i.variant],i.align!=="inherit"&&n[`align${No(i.align)}`],i.noWrap&&n.noWrap,i.gutterBottom&&n.gutterBottom,i.paragraph&&n.paragraph]}})(Nk(({theme:t})=>{var n;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([i,a])=>i!=="inherit"&&a&&typeof a=="object").map(([i,a])=>({props:{variant:i},style:a})),...Object.entries(t.palette).filter($k()).map(([i])=>({props:{color:i},style:{color:(t.vars||t).palette[i].main}})),...Object.entries(((n=t.palette)==null?void 0:n.text)||{}).filter(([,i])=>typeof i=="string").map(([i])=>({props:{color:`text${No(i)}`},style:{color:(t.vars||t).palette.text[i]}})),{props:({ownerState:i})=>i.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:i})=>i.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:i})=>i.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:i})=>i.paragraph,style:{marginBottom:16}}]}})),ab={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},d0=Y.forwardRef(function(n,i){const{color:a,...o}=r2({props:n,name:"MuiTypography"}),s=!Lk[a],c=Hk({...o,...s&&{color:a}}),{align:f="inherit",className:m,component:h,gutterBottom:p=!1,noWrap:y=!1,paragraph:v=!1,variant:b="body1",variantMapping:x=ab,...S}=c,C={...c,align:f,color:a,className:m,component:h,gutterBottom:p,noWrap:y,paragraph:v,variant:b,variantMapping:x},E=h||(v?"p":x[b]||ab[b])||"span",R=Yk(C);return H.jsx(Gk,{as:E,ref:i,className:Mn(R.root,m),...S,ownerState:C,style:{...f!=="inherit"&&{"--Typography-textAlign":f},...S.style}})});function qk(t){return zn("MuiChartsTooltip",t)}const qa=qn("MuiChartsTooltip",["root","paper","table","row","cell","mark","markContainer","labelCell","valueCell","axisValueCell"]),h0=t=>Nn({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markContainer:["markContainer"],labelCell:["labelCell"],valueCell:["valueCell"],axisValueCell:["axisValueCell"]},qk,t);function Ik(){var _,D,L;const t=Jt(),n=wt(t,mS),i=wt(t,jr),a=jc(),{xAxis:o,xAxisIds:s}=Xi(),{yAxis:c,yAxisIds:f}=Pi(),{zAxis:m,zAxisIds:h}=u0(),{rotationAxis:p,rotationAxisIds:y}=GS(),{radiusAxis:v,radiusAxisIds:b}=s5(),x=a.xAxisId??s[0],S=a.yAxisId??f[0],C=a.zAxisId??h[0],E=a.rotationAxisId??y[0],R=a.radiusAxisId??b[0];if(!n)return null;const O=(_=a[n.type])==null?void 0:_.series[n.seriesId];if(!O)return null;const k=((L=(D=i[O.type]).colorProcessor)==null?void 0:L.call(D,O,x&&o[x],S&&c[S],C&&m[C]))??(()=>""),M={};return x!==void 0&&(M.x=o[x]),S!==void 0&&(M.y=c[S]),E!==void 0&&(M.rotation=p[E]),R!==void 0&&(M.radius=v[R]),i[O.type].tooltipGetter({series:O,axesConfig:M,getColor:k,identifier:n})}const nm=he("div",{name:"MuiChartsTooltip",slot:"Container",overridesResolver:(t,n)=>n.paper})(({theme:t})=>{var n;return{backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,borderRadius:(n=(t.vars||t).shape)==null?void 0:n.borderRadius,border:`solid ${(t.vars||t).palette.divider} 1px`}}),rm=he("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:t})=>({borderSpacing:0,[`& .${qa.markContainer}`]:{display:"inline-block",width:`calc(20px + ${t.spacing(1.5)})`,verticalAlign:"middle"},"& caption":{borderBottom:`solid ${(t.vars||t).palette.divider} 1px`,padding:t.spacing(.5,1.5),textAlign:"start",whiteSpace:"nowrap","& span":{marginRight:t.spacing(1.5)}}})),im=he("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:t})=>({"tr:first-of-type& td":{paddingTop:t.spacing(.5)},"tr:last-of-type& td":{paddingBottom:t.spacing(.5)}})),Ia=he(d0,{name:"MuiChartsTooltip",slot:"Cell"})(({theme:t})=>({verticalAlign:"middle",color:(t.vars||t).palette.text.secondary,textAlign:"start",[`&.${qa.cell}`]:{paddingLeft:t.spacing(1),paddingRight:t.spacing(1)},[`&.${qa.labelCell}`]:{fontWeight:t.typography.fontWeightRegular},[`&.${qa.valueCell}, &.${qa.axisValueCell}`]:{color:(t.vars||t).palette.text.primary,fontWeight:t.typography.fontWeightMedium},[`&.${qa.valueCell}`]:{paddingLeft:t.spacing(1.5),paddingRight:t.spacing(1.5)},"td:first-of-type&, th:first-of-type&":{paddingLeft:t.spacing(1.5)},"td:last-of-type&, th:last-of-type&":{paddingRight:t.spacing(1.5)}}));function Vk(t){return zn("MuiChartsLabelMark",t)}const Ha=qn("MuiChartsLabelMark",["root","line","square","circle","mask","fill"]),Xk=t=>{const{type:n}=t;return Nn({root:typeof n=="function"?["root"]:["root",n],mask:["mask"],fill:["fill"]},Vk,t.classes)},i2=(t,n,i)=>Y.forwardRef(function(o,s){var v;const c=ir({props:o,name:t}),f=typeof n.defaultProps=="function"?n.defaultProps(c):n.defaultProps??{},m=Fa(f,c),h=Zo(),p=(v=n.classesResolver)==null?void 0:v.call(n,m,h),y=Y.forwardRef(i);return H.jsx(y,I({},m,{classes:p,ref:s}))}),Pk=["type","color","className","classes"],Zk=he("div",{name:"MuiChartsLabelMark",slot:"Root"})(()=>({display:"flex",width:14,height:14,[`&.${Ha.line}`]:{width:16,height:"unset",alignItems:"center",[`.${Ha.mask}`]:{height:4,width:"100%",borderRadius:1,overflow:"hidden"}},[`&.${Ha.square}`]:{height:13,width:13,borderRadius:2,overflow:"hidden"},[`&.${Ha.circle}`]:{height:15,width:15},svg:{display:"block"},[`& .${Ha.mask} > *`]:{height:"100%",width:"100%"},[`& .${Ha.mask}`]:{height:"100%",width:"100%"}})),Js=i2("MuiChartsLabelMark",{defaultProps:{type:"square"},classesResolver:Xk},function(n,i){const{type:a,color:o,className:s,classes:c}=n,f=Qt(n,Pk),m=a;return H.jsx(Zk,I({className:Mn(c==null?void 0:c.root,s),ownerState:n,"aria-hidden":"true",ref:i},f,{children:H.jsx("div",{className:c==null?void 0:c.mask,children:typeof m=="function"?H.jsx(m,{className:c==null?void 0:c.fill,color:o}):H.jsx("svg",{viewBox:"0 0 24 24",preserveAspectRatio:a==="line"?"none":void 0,children:a==="circle"?H.jsx("circle",{className:c==null?void 0:c.fill,r:"12",cx:"12",cy:"12",fill:o}):H.jsx("rect",{className:c==null?void 0:c.fill,width:"24",height:"24",fill:o})})})}))});function Qk(t){const{classes:n,sx:i}=t,a=Ik(),o=h0(n);if(!a)return null;if("values"in a){const{label:h,color:p,markType:y}=a;return H.jsx(nm,{sx:i,className:o.paper,children:H.jsxs(rm,{className:o.table,children:[H.jsxs(d0,{component:"caption",children:[H.jsx("div",{className:o.markContainer,children:H.jsx(Js,{type:y,color:p,className:o.mark})}),h]}),H.jsx("tbody",{children:a.values.map(({formattedValue:v,label:b})=>H.jsxs(im,{className:o.row,children:[H.jsx(Ia,{className:Mn(o.labelCell,o.cell),component:"th",children:b}),H.jsx(Ia,{className:Mn(o.valueCell,o.cell),component:"td",children:v})]},b))})]})})}const{color:s,label:c,formattedValue:f,markType:m}=a;return H.jsx(nm,{sx:i,className:o.paper,children:H.jsx(rm,{className:o.table,children:H.jsx("tbody",{children:H.jsxs(im,{className:o.row,children:[H.jsxs(Ia,{className:Mn(o.labelCell,o.cell),component:"th",children:[H.jsx("div",{className:o.markContainer,children:H.jsx(Js,{type:m,color:s,className:o.mark})}),c]}),H.jsx(Ia,{className:Mn(o.valueCell,o.cell),component:"td",children:f})]})})})})}function Kk(t){const n=Jt(),i=wt(n,jr);return Y.useMemo(()=>{const o={};return Object.keys(i).forEach(s=>{o[s]=i[s].colorProcessor}),o},[i])}function Fk(){const t=s0(),[n,i]=Y.useState(null);return Y.useEffect(()=>{const a=t.current;if(a===null)return()=>{};const o=c=>{c.pointerType!=="mouse"&&i(null)},s=c=>{i({pointerType:c.pointerType})};return a.addEventListener("pointerenter",s),a.addEventListener("pointerup",o),()=>{a.removeEventListener("pointerenter",s),a.removeEventListener("pointerup",o)}},[t]),n}function Wk(t){return t instanceof Date?t.toUTCString():t.toLocaleString()}function lb(t,n){const{scale:i,data:a,reverse:o}=t;if(!$r(i))throw new Error("MUI X Charts: getAxisValue is not implemented for polare continuous axes.");if(!a)return-1;const s=tk(n-Math.min(...i.range())),c=i.bandwidth()===0?Math.floor((s+i.step()/2)/i.step())%a.length:Math.floor(s/i.step());return c<0||c>=a.length?-1:o?a.length-1-c:c}const a2=(t,n)=>n,l2=(t,n)=>n;function o2(t,n,i){return Array.isArray(i)?i.map(a=>lb(n.axis[a],t)):lb(n.axis[i],t)}const u2=ft([kc,Dc,o5],(t,n,i)=>t===null||n===null?null:u5(i)(t,n)),Jk=ft([u2,Vi,a2],(t,n,i=n.axisIds[0])=>t===null?null:o2(t,n,i)),s2=ft([u2,Vi,l2],(t,n,i=n.axisIds)=>t===null?null:o2(t,n,i));ft([Vi,Jk,a2],(t,n,i=t.axisIds[0])=>{var o;if(n===null||n===-1||t.axisIds.length===0)return null;const a=(o=t.axis[i])==null?void 0:o.data;return a?a[n]:null});ft([Vi,s2,l2],(t,n,i=t.axisIds)=>n===null?null:i.map((a,o)=>{var c;const s=n[o];return s===-1?null:(c=t.axis[a].data)==null?void 0:c[s]}));const c2=ft([s2,Vi],(t,n)=>t===null?[]:n.axisIds.map((i,a)=>({axisId:i,dataIndex:t[a]})).filter(({axisId:i,dataIndex:a})=>n.axis[i].triggerTooltip&&a>=0),{memoizeOptions:{resultEqualityCheck:Qa}});ft([],()=>[]);const t6=ft([c2],t=>t.length>0);function Nh(t,n,i){var c;const a=((c=t.data)==null?void 0:c[n])??null,s=(t.valueFormatter??(f=>t.scaleType==="utc"?Wk(f):f.toLocaleString()))(a,{location:"tooltip",scale:t.scale});return{axisDirection:i,axisId:t.id,mainAxis:t,dataIndex:n,axisValue:a,axisFormattedValue:s,seriesItems:[]}}function e6(t={}){const{multipleAxes:n,directions:i}=t,a=HS(),o=YS(),s=c5(),c=Jt(),f=wt(c,vS),m=wt(c,bS),h=wt(c,c2),p=jc(),{xAxis:y}=Xi(),{yAxis:v}=Pi(),{zAxis:b,zAxisIds:x}=u0(),{rotationAxis:S}=GS(),C=Kk();if(f.length===0&&m.length===0&&h.length===0)return null;const E=[];return(i===void 0||i.includes("x"))&&f.forEach(({axisId:R,dataIndex:O})=>{!n&&E.length>1||E.push(Nh(y[R],O,"x"))}),(i===void 0||i.includes("y"))&&m.forEach(({axisId:R,dataIndex:O})=>{!n&&E.length>1||E.push(Nh(v[R],O,"y"))}),(i===void 0||i.includes("rotation"))&&h.forEach(({axisId:R,dataIndex:O})=>{!n&&E.length>1||E.push(Nh(S[R],O,"rotation"))}),Object.keys(p).filter(n0).forEach(R=>{const O=p[R];return O?O.seriesOrder.forEach(k=>{var $;const M=O.series[k],_=M.xAxisId??a.id,D=M.yAxisId??o.id,L=E.findIndex(({axisDirection:T,axisId:z})=>T==="x"&&z===_||T==="y"&&z===D);if(L>=0){const T="zAxisId"in M?M.zAxisId:x[0],{dataIndex:z}=E[L],X=(($=C[R])==null?void 0:$.call(C,M,y[_],v[D],T?b[T]:void 0)(z))??"",K=M.data[z]??null,it=M.valueFormatter(K,{dataIndex:z}),ot=Gn(M.label,"tooltip")??null;E[L].seriesItems.push({seriesId:k,color:X,value:K,formattedValue:it,formattedLabel:ot,markType:M.labelMarkType})}}):[]}),Object.keys(p).filter(o0).forEach(R=>{const O=p[R];return O?O.seriesOrder.forEach(k=>{var L;const M=O.series[k],_=M.rotationAxisId??(s==null?void 0:s.id),D=E.findIndex(({axisDirection:$,axisId:T})=>$==="rotation"&&T===_);if(D>=0){const{dataIndex:$}=E[D],T=((L=C[R])==null?void 0:L.call(C,M)($))??"",z=M.data[$]??null,X=M.valueFormatter(z,{dataIndex:$}),K=Gn(M.label,"tooltip")??null;E[D].seriesItems.push({seriesId:k,color:T,value:z,formattedValue:X,formattedLabel:K,markType:M.labelMarkType})}}):[]}),n?E:E.length===0?E[0]:null}function n6(t){return e6(I({},t,{multipleAxes:!0}))}function r6(t){const n=h0(t.classes),i=n6();return i===null?null:H.jsx(nm,{sx:t.sx,className:n.paper,children:i.map(({axisId:a,mainAxis:o,axisValue:s,axisFormattedValue:c,seriesItems:f})=>H.jsxs(rm,{className:n.table,children:[s!=null&&!o.hideTooltip&&H.jsx(d0,{component:"caption",children:c}),H.jsx("tbody",{children:f.map(({seriesId:m,color:h,formattedValue:p,formattedLabel:y,markType:v})=>p==null?null:H.jsxs(im,{className:n.row,children:[H.jsxs(Ia,{className:Mn(n.labelCell,n.cell),component:"th",children:[H.jsx("div",{className:n.markContainer,children:H.jsx(Js,{type:v,color:h,className:n.mark})}),y||null]}),H.jsx(Ia,{className:Mn(n.valueCell,n.cell),component:"td",children:p})]},m))})]},a))})}const ob={};function i6(t,n){const i=Y.useRef(ob);return i.current===ob&&(i.current=t(n)),i}var Je="top",Rn="bottom",kn="right",tn="left",m0="auto",nu=[Je,Rn,kn,tn],ol="start",Yo="end",a6="clippingParents",f2="viewport",So="popper",l6="reference",ub=nu.reduce(function(t,n){return t.concat([n+"-"+ol,n+"-"+Yo])},[]),d2=[].concat(nu,[m0]).reduce(function(t,n){return t.concat([n,n+"-"+ol,n+"-"+Yo])},[]),o6="beforeRead",u6="read",s6="afterRead",c6="beforeMain",f6="main",d6="afterMain",h6="beforeWrite",m6="write",g6="afterWrite",p6=[o6,u6,s6,c6,f6,d6,h6,m6,g6];function rr(t){return t?(t.nodeName||"").toLowerCase():null}function hn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function Li(t){var n=hn(t).Element;return t instanceof n||t instanceof Element}function _n(t){var n=hn(t).HTMLElement;return t instanceof n||t instanceof HTMLElement}function g0(t){if(typeof ShadowRoot>"u")return!1;var n=hn(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function y6(t){var n=t.state;Object.keys(n.elements).forEach(function(i){var a=n.styles[i]||{},o=n.attributes[i]||{},s=n.elements[i];!_n(s)||!rr(s)||(Object.assign(s.style,a),Object.keys(o).forEach(function(c){var f=o[c];f===!1?s.removeAttribute(c):s.setAttribute(c,f===!0?"":f)}))})}function v6(t){var n=t.state,i={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,i.popper),n.styles=i,n.elements.arrow&&Object.assign(n.elements.arrow.style,i.arrow),function(){Object.keys(n.elements).forEach(function(a){var o=n.elements[a],s=n.attributes[a]||{},c=Object.keys(n.styles.hasOwnProperty(a)?n.styles[a]:i[a]),f=c.reduce(function(m,h){return m[h]="",m},{});!_n(o)||!rr(o)||(Object.assign(o.style,f),Object.keys(s).forEach(function(m){o.removeAttribute(m)}))})}}const b6={name:"applyStyles",enabled:!0,phase:"write",fn:y6,effect:v6,requires:["computeStyles"]};function nr(t){return t.split("-")[0]}var Ui=Math.max,tc=Math.min,ul=Math.round;function am(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function h2(){return!/^((?!chrome|android).)*safari/i.test(am())}function sl(t,n,i){n===void 0&&(n=!1),i===void 0&&(i=!1);var a=t.getBoundingClientRect(),o=1,s=1;n&&_n(t)&&(o=t.offsetWidth>0&&ul(a.width)/t.offsetWidth||1,s=t.offsetHeight>0&&ul(a.height)/t.offsetHeight||1);var c=Li(t)?hn(t):window,f=c.visualViewport,m=!h2()&&i,h=(a.left+(m&&f?f.offsetLeft:0))/o,p=(a.top+(m&&f?f.offsetTop:0))/s,y=a.width/o,v=a.height/s;return{width:y,height:v,top:p,right:h+y,bottom:p+v,left:h,x:h,y:p}}function p0(t){var n=sl(t),i=t.offsetWidth,a=t.offsetHeight;return Math.abs(n.width-i)<=1&&(i=n.width),Math.abs(n.height-a)<=1&&(a=n.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:a}}function m2(t,n){var i=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(i&&g0(i)){var a=n;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Nr(t){return hn(t).getComputedStyle(t)}function x6(t){return["table","td","th"].indexOf(rr(t))>=0}function fi(t){return((Li(t)?t.ownerDocument:t.document)||window.document).documentElement}function Lc(t){return rr(t)==="html"?t:t.assignedSlot||t.parentNode||(g0(t)?t.host:null)||fi(t)}function sb(t){return!_n(t)||Nr(t).position==="fixed"?null:t.offsetParent}function S6(t){var n=/firefox/i.test(am()),i=/Trident/i.test(am());if(i&&_n(t)){var a=Nr(t);if(a.position==="fixed")return null}var o=Lc(t);for(g0(o)&&(o=o.host);_n(o)&&["html","body"].indexOf(rr(o))<0;){var s=Nr(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||n&&s.willChange==="filter"||n&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function ru(t){for(var n=hn(t),i=sb(t);i&&x6(i)&&Nr(i).position==="static";)i=sb(i);return i&&(rr(i)==="html"||rr(i)==="body"&&Nr(i).position==="static")?n:i||S6(t)||n}function y0(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function _o(t,n,i){return Ui(t,tc(n,i))}function A6(t,n,i){var a=_o(t,n,i);return a>i?i:a}function g2(){return{top:0,right:0,bottom:0,left:0}}function p2(t){return Object.assign({},g2(),t)}function y2(t,n){return n.reduce(function(i,a){return i[a]=t,i},{})}var T6=function(n,i){return n=typeof n=="function"?n(Object.assign({},i.rects,{placement:i.placement})):n,p2(typeof n!="number"?n:y2(n,nu))};function C6(t){var n,i=t.state,a=t.name,o=t.options,s=i.elements.arrow,c=i.modifiersData.popperOffsets,f=nr(i.placement),m=y0(f),h=[tn,kn].indexOf(f)>=0,p=h?"height":"width";if(!(!s||!c)){var y=T6(o.padding,i),v=p0(s),b=m==="y"?Je:tn,x=m==="y"?Rn:kn,S=i.rects.reference[p]+i.rects.reference[m]-c[m]-i.rects.popper[p],C=c[m]-i.rects.reference[m],E=ru(s),R=E?m==="y"?E.clientHeight||0:E.clientWidth||0:0,O=S/2-C/2,k=y[b],M=R-v[p]-y[x],_=R/2-v[p]/2+O,D=_o(k,_,M),L=m;i.modifiersData[a]=(n={},n[L]=D,n.centerOffset=D-_,n)}}function w6(t){var n=t.state,i=t.options,a=i.element,o=a===void 0?"[data-popper-arrow]":a;o!=null&&(typeof o=="string"&&(o=n.elements.popper.querySelector(o),!o)||m2(n.elements.popper,o)&&(n.elements.arrow=o))}const M6={name:"arrow",enabled:!0,phase:"main",fn:C6,effect:w6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cl(t){return t.split("-")[1]}var E6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function O6(t,n){var i=t.x,a=t.y,o=n.devicePixelRatio||1;return{x:ul(i*o)/o||0,y:ul(a*o)/o||0}}function cb(t){var n,i=t.popper,a=t.popperRect,o=t.placement,s=t.variation,c=t.offsets,f=t.position,m=t.gpuAcceleration,h=t.adaptive,p=t.roundOffsets,y=t.isFixed,v=c.x,b=v===void 0?0:v,x=c.y,S=x===void 0?0:x,C=typeof p=="function"?p({x:b,y:S}):{x:b,y:S};b=C.x,S=C.y;var E=c.hasOwnProperty("x"),R=c.hasOwnProperty("y"),O=tn,k=Je,M=window;if(h){var _=ru(i),D="clientHeight",L="clientWidth";if(_===hn(i)&&(_=fi(i),Nr(_).position!=="static"&&f==="absolute"&&(D="scrollHeight",L="scrollWidth")),_=_,o===Je||(o===tn||o===kn)&&s===Yo){k=Rn;var $=y&&_===M&&M.visualViewport?M.visualViewport.height:_[D];S-=$-a.height,S*=m?1:-1}if(o===tn||(o===Je||o===Rn)&&s===Yo){O=kn;var T=y&&_===M&&M.visualViewport?M.visualViewport.width:_[L];b-=T-a.width,b*=m?1:-1}}var z=Object.assign({position:f},h&&E6),X=p===!0?O6({x:b,y:S},hn(i)):{x:b,y:S};if(b=X.x,S=X.y,m){var K;return Object.assign({},z,(K={},K[k]=R?"0":"",K[O]=E?"0":"",K.transform=(M.devicePixelRatio||1)<=1?"translate("+b+"px, "+S+"px)":"translate3d("+b+"px, "+S+"px, 0)",K))}return Object.assign({},z,(n={},n[k]=R?S+"px":"",n[O]=E?b+"px":"",n.transform="",n))}function _6(t){var n=t.state,i=t.options,a=i.gpuAcceleration,o=a===void 0?!0:a,s=i.adaptive,c=s===void 0?!0:s,f=i.roundOffsets,m=f===void 0?!0:f,h={placement:nr(n.placement),variation:cl(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,cb(Object.assign({},h,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:c,roundOffsets:m})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,cb(Object.assign({},h,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:m})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const R6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_6,data:{}};var Ms={passive:!0};function k6(t){var n=t.state,i=t.instance,a=t.options,o=a.scroll,s=o===void 0?!0:o,c=a.resize,f=c===void 0?!0:c,m=hn(n.elements.popper),h=[].concat(n.scrollParents.reference,n.scrollParents.popper);return s&&h.forEach(function(p){p.addEventListener("scroll",i.update,Ms)}),f&&m.addEventListener("resize",i.update,Ms),function(){s&&h.forEach(function(p){p.removeEventListener("scroll",i.update,Ms)}),f&&m.removeEventListener("resize",i.update,Ms)}}const D6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:k6,data:{}};var z6={left:"right",right:"left",bottom:"top",top:"bottom"};function Ns(t){return t.replace(/left|right|bottom|top/g,function(n){return z6[n]})}var N6={start:"end",end:"start"};function fb(t){return t.replace(/start|end/g,function(n){return N6[n]})}function v0(t){var n=hn(t),i=n.pageXOffset,a=n.pageYOffset;return{scrollLeft:i,scrollTop:a}}function b0(t){return sl(fi(t)).left+v0(t).scrollLeft}function U6(t,n){var i=hn(t),a=fi(t),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,f=0,m=0;if(o){s=o.width,c=o.height;var h=h2();(h||!h&&n==="fixed")&&(f=o.offsetLeft,m=o.offsetTop)}return{width:s,height:c,x:f+b0(t),y:m}}function j6(t){var n,i=fi(t),a=v0(t),o=(n=t.ownerDocument)==null?void 0:n.body,s=Ui(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=Ui(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-a.scrollLeft+b0(t),m=-a.scrollTop;return Nr(o||i).direction==="rtl"&&(f+=Ui(i.clientWidth,o?o.clientWidth:0)-s),{width:s,height:c,x:f,y:m}}function x0(t){var n=Nr(t),i=n.overflow,a=n.overflowX,o=n.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+a)}function v2(t){return["html","body","#document"].indexOf(rr(t))>=0?t.ownerDocument.body:_n(t)&&x0(t)?t:v2(Lc(t))}function Ro(t,n){var i;n===void 0&&(n=[]);var a=v2(t),o=a===((i=t.ownerDocument)==null?void 0:i.body),s=hn(a),c=o?[s].concat(s.visualViewport||[],x0(a)?a:[]):a,f=n.concat(c);return o?f:f.concat(Ro(Lc(c)))}function lm(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function $6(t,n){var i=sl(t,!1,n==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function db(t,n,i){return n===f2?lm(U6(t,i)):Li(n)?$6(n,i):lm(j6(fi(t)))}function B6(t){var n=Ro(Lc(t)),i=["absolute","fixed"].indexOf(Nr(t).position)>=0,a=i&&_n(t)?ru(t):t;return Li(a)?n.filter(function(o){return Li(o)&&m2(o,a)&&rr(o)!=="body"}):[]}function L6(t,n,i,a){var o=n==="clippingParents"?B6(t):[].concat(n),s=[].concat(o,[i]),c=s[0],f=s.reduce(function(m,h){var p=db(t,h,a);return m.top=Ui(p.top,m.top),m.right=tc(p.right,m.right),m.bottom=tc(p.bottom,m.bottom),m.left=Ui(p.left,m.left),m},db(t,c,a));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function b2(t){var n=t.reference,i=t.element,a=t.placement,o=a?nr(a):null,s=a?cl(a):null,c=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,m;switch(o){case Je:m={x:c,y:n.y-i.height};break;case Rn:m={x:c,y:n.y+n.height};break;case kn:m={x:n.x+n.width,y:f};break;case tn:m={x:n.x-i.width,y:f};break;default:m={x:n.x,y:n.y}}var h=o?y0(o):null;if(h!=null){var p=h==="y"?"height":"width";switch(s){case ol:m[h]=m[h]-(n[p]/2-i[p]/2);break;case Yo:m[h]=m[h]+(n[p]/2-i[p]/2);break}}return m}function Go(t,n){n===void 0&&(n={});var i=n,a=i.placement,o=a===void 0?t.placement:a,s=i.strategy,c=s===void 0?t.strategy:s,f=i.boundary,m=f===void 0?a6:f,h=i.rootBoundary,p=h===void 0?f2:h,y=i.elementContext,v=y===void 0?So:y,b=i.altBoundary,x=b===void 0?!1:b,S=i.padding,C=S===void 0?0:S,E=p2(typeof C!="number"?C:y2(C,nu)),R=v===So?l6:So,O=t.rects.popper,k=t.elements[x?R:v],M=L6(Li(k)?k:k.contextElement||fi(t.elements.popper),m,p,c),_=sl(t.elements.reference),D=b2({reference:_,element:O,placement:o}),L=lm(Object.assign({},O,D)),$=v===So?L:_,T={top:M.top-$.top+E.top,bottom:$.bottom-M.bottom+E.bottom,left:M.left-$.left+E.left,right:$.right-M.right+E.right},z=t.modifiersData.offset;if(v===So&&z){var X=z[o];Object.keys(T).forEach(function(K){var it=[kn,Rn].indexOf(K)>=0?1:-1,ot=[Je,Rn].indexOf(K)>=0?"y":"x";T[K]+=X[ot]*it})}return T}function H6(t,n){n===void 0&&(n={});var i=n,a=i.placement,o=i.boundary,s=i.rootBoundary,c=i.padding,f=i.flipVariations,m=i.allowedAutoPlacements,h=m===void 0?d2:m,p=cl(a),y=p?f?ub:ub.filter(function(x){return cl(x)===p}):nu,v=y.filter(function(x){return h.indexOf(x)>=0});v.length===0&&(v=y);var b=v.reduce(function(x,S){return x[S]=Go(t,{placement:S,boundary:o,rootBoundary:s,padding:c})[nr(S)],x},{});return Object.keys(b).sort(function(x,S){return b[x]-b[S]})}function Y6(t){if(nr(t)===m0)return[];var n=Ns(t);return[fb(t),n,fb(n)]}function G6(t){var n=t.state,i=t.options,a=t.name;if(!n.modifiersData[a]._skip){for(var o=i.mainAxis,s=o===void 0?!0:o,c=i.altAxis,f=c===void 0?!0:c,m=i.fallbackPlacements,h=i.padding,p=i.boundary,y=i.rootBoundary,v=i.altBoundary,b=i.flipVariations,x=b===void 0?!0:b,S=i.allowedAutoPlacements,C=n.options.placement,E=nr(C),R=E===C,O=m||(R||!x?[Ns(C)]:Y6(C)),k=[C].concat(O).reduce(function(ct,yt){return ct.concat(nr(yt)===m0?H6(n,{placement:yt,boundary:p,rootBoundary:y,padding:h,flipVariations:x,allowedAutoPlacements:S}):yt)},[]),M=n.rects.reference,_=n.rects.popper,D=new Map,L=!0,$=k[0],T=0;T<k.length;T++){var z=k[T],X=nr(z),K=cl(z)===ol,it=[Je,Rn].indexOf(X)>=0,ot=it?"width":"height",j=Go(n,{placement:z,boundary:p,rootBoundary:y,altBoundary:v,padding:h}),P=it?K?kn:tn:K?Rn:Je;M[ot]>_[ot]&&(P=Ns(P));var nt=Ns(P),ut=[];if(s&&ut.push(j[X]<=0),f&&ut.push(j[P]<=0,j[nt]<=0),ut.every(function(ct){return ct})){$=z,L=!1;break}D.set(z,ut)}if(L)for(var N=x?3:1,F=function(yt){var dt=k.find(function(gt){var mt=D.get(gt);if(mt)return mt.slice(0,yt).every(function(st){return st})});if(dt)return $=dt,"break"},at=N;at>0;at--){var lt=F(at);if(lt==="break")break}n.placement!==$&&(n.modifiersData[a]._skip=!0,n.placement=$,n.reset=!0)}}const q6={name:"flip",enabled:!0,phase:"main",fn:G6,requiresIfExists:["offset"],data:{_skip:!1}};function hb(t,n,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-n.height-i.y,right:t.right-n.width+i.x,bottom:t.bottom-n.height+i.y,left:t.left-n.width-i.x}}function mb(t){return[Je,kn,Rn,tn].some(function(n){return t[n]>=0})}function I6(t){var n=t.state,i=t.name,a=n.rects.reference,o=n.rects.popper,s=n.modifiersData.preventOverflow,c=Go(n,{elementContext:"reference"}),f=Go(n,{altBoundary:!0}),m=hb(c,a),h=hb(f,o,s),p=mb(m),y=mb(h);n.modifiersData[i]={referenceClippingOffsets:m,popperEscapeOffsets:h,isReferenceHidden:p,hasPopperEscaped:y},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":y})}const V6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:I6};function X6(t,n,i){var a=nr(t),o=[tn,Je].indexOf(a)>=0?-1:1,s=typeof i=="function"?i(Object.assign({},n,{placement:t})):i,c=s[0],f=s[1];return c=c||0,f=(f||0)*o,[tn,kn].indexOf(a)>=0?{x:f,y:c}:{x:c,y:f}}function P6(t){var n=t.state,i=t.options,a=t.name,o=i.offset,s=o===void 0?[0,0]:o,c=d2.reduce(function(p,y){return p[y]=X6(y,n.rects,s),p},{}),f=c[n.placement],m=f.x,h=f.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=m,n.modifiersData.popperOffsets.y+=h),n.modifiersData[a]=c}const Z6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:P6};function Q6(t){var n=t.state,i=t.name;n.modifiersData[i]=b2({reference:n.rects.reference,element:n.rects.popper,placement:n.placement})}const K6={name:"popperOffsets",enabled:!0,phase:"read",fn:Q6,data:{}};function F6(t){return t==="x"?"y":"x"}function W6(t){var n=t.state,i=t.options,a=t.name,o=i.mainAxis,s=o===void 0?!0:o,c=i.altAxis,f=c===void 0?!1:c,m=i.boundary,h=i.rootBoundary,p=i.altBoundary,y=i.padding,v=i.tether,b=v===void 0?!0:v,x=i.tetherOffset,S=x===void 0?0:x,C=Go(n,{boundary:m,rootBoundary:h,padding:y,altBoundary:p}),E=nr(n.placement),R=cl(n.placement),O=!R,k=y0(E),M=F6(k),_=n.modifiersData.popperOffsets,D=n.rects.reference,L=n.rects.popper,$=typeof S=="function"?S(Object.assign({},n.rects,{placement:n.placement})):S,T=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),z=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,X={x:0,y:0};if(_){if(s){var K,it=k==="y"?Je:tn,ot=k==="y"?Rn:kn,j=k==="y"?"height":"width",P=_[k],nt=P+C[it],ut=P-C[ot],N=b?-L[j]/2:0,F=R===ol?D[j]:L[j],at=R===ol?-L[j]:-D[j],lt=n.elements.arrow,ct=b&&lt?p0(lt):{width:0,height:0},yt=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:g2(),dt=yt[it],gt=yt[ot],mt=_o(0,D[j],ct[j]),st=O?D[j]/2-N-mt-dt-T.mainAxis:F-mt-dt-T.mainAxis,xt=O?-D[j]/2+N+mt+gt+T.mainAxis:at+mt+gt+T.mainAxis,bt=n.elements.arrow&&ru(n.elements.arrow),rt=bt?k==="y"?bt.clientTop||0:bt.clientLeft||0:0,Rt=(K=z==null?void 0:z[k])!=null?K:0,vt=P+st-Rt-rt,Bt=P+xt-Rt,Wt=_o(b?tc(nt,vt):nt,P,b?Ui(ut,Bt):ut);_[k]=Wt,X[k]=Wt-P}if(f){var Yt,Ae=k==="x"?Je:tn,se=k==="x"?Rn:kn,me=_[M],Kt=M==="y"?"height":"width",Xe=me+C[Ae],mn=me-C[se],gn=[Je,tn].indexOf(E)!==-1,Un=(Yt=z==null?void 0:z[M])!=null?Yt:0,Ge=gn?Xe:me-D[Kt]-L[Kt]-Un+T.altAxis,te=gn?me+D[Kt]+L[Kt]-Un-T.altAxis:mn,_e=b&&gn?A6(Ge,me,te):_o(b?Ge:Xe,me,b?te:mn);_[M]=_e,X[M]=_e-me}n.modifiersData[a]=X}}const J6={name:"preventOverflow",enabled:!0,phase:"main",fn:W6,requiresIfExists:["offset"]};function tD(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function eD(t){return t===hn(t)||!_n(t)?v0(t):tD(t)}function nD(t){var n=t.getBoundingClientRect(),i=ul(n.width)/t.offsetWidth||1,a=ul(n.height)/t.offsetHeight||1;return i!==1||a!==1}function rD(t,n,i){i===void 0&&(i=!1);var a=_n(n),o=_n(n)&&nD(n),s=fi(n),c=sl(t,o,i),f={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(a||!a&&!i)&&((rr(n)!=="body"||x0(s))&&(f=eD(n)),_n(n)?(m=sl(n,!0),m.x+=n.clientLeft,m.y+=n.clientTop):s&&(m.x=b0(s))),{x:c.left+f.scrollLeft-m.x,y:c.top+f.scrollTop-m.y,width:c.width,height:c.height}}function iD(t){var n=new Map,i=new Set,a=[];t.forEach(function(s){n.set(s.name,s)});function o(s){i.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(f){if(!i.has(f)){var m=n.get(f);m&&o(m)}}),a.push(s)}return t.forEach(function(s){i.has(s.name)||o(s)}),a}function aD(t){var n=iD(t);return p6.reduce(function(i,a){return i.concat(n.filter(function(o){return o.phase===a}))},[])}function lD(t){var n;return function(){return n||(n=new Promise(function(i){Promise.resolve().then(function(){n=void 0,i(t())})})),n}}function oD(t){var n=t.reduce(function(i,a){var o=i[a.name];return i[a.name]=o?Object.assign({},o,a,{options:Object.assign({},o.options,a.options),data:Object.assign({},o.data,a.data)}):a,i},{});return Object.keys(n).map(function(i){return n[i]})}var gb={placement:"bottom",modifiers:[],strategy:"absolute"};function pb(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return!n.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function uD(t){t===void 0&&(t={});var n=t,i=n.defaultModifiers,a=i===void 0?[]:i,o=n.defaultOptions,s=o===void 0?gb:o;return function(f,m,h){h===void 0&&(h=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},gb,s),modifiersData:{},elements:{reference:f,popper:m},attributes:{},styles:{}},y=[],v=!1,b={state:p,setOptions:function(E){var R=typeof E=="function"?E(p.options):E;S(),p.options=Object.assign({},s,p.options,R),p.scrollParents={reference:Li(f)?Ro(f):f.contextElement?Ro(f.contextElement):[],popper:Ro(m)};var O=aD(oD([].concat(a,p.options.modifiers)));return p.orderedModifiers=O.filter(function(k){return k.enabled}),x(),b.update()},forceUpdate:function(){if(!v){var E=p.elements,R=E.reference,O=E.popper;if(pb(R,O)){p.rects={reference:rD(R,ru(O),p.options.strategy==="fixed"),popper:p0(O)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(T){return p.modifiersData[T.name]=Object.assign({},T.data)});for(var k=0;k<p.orderedModifiers.length;k++){if(p.reset===!0){p.reset=!1,k=-1;continue}var M=p.orderedModifiers[k],_=M.fn,D=M.options,L=D===void 0?{}:D,$=M.name;typeof _=="function"&&(p=_({state:p,options:L,name:$,instance:b})||p)}}}},update:lD(function(){return new Promise(function(C){b.forceUpdate(),C(p)})}),destroy:function(){S(),v=!0}};if(!pb(f,m))return b;b.setOptions(h).then(function(C){!v&&h.onFirstUpdate&&h.onFirstUpdate(C)});function x(){p.orderedModifiers.forEach(function(C){var E=C.name,R=C.options,O=R===void 0?{}:R,k=C.effect;if(typeof k=="function"){var M=k({state:p,name:E,instance:b,options:O}),_=function(){};y.push(M||_)}})}function S(){y.forEach(function(C){return C()}),y=[]}return b}}var sD=[D6,K6,R6,b6,Z6,q6,J6,M6,V6],cD=uD({defaultModifiers:sD}),fD=$b();function yb(t,n){typeof t=="function"?t(n):t&&(t.current=n)}function dD(t){var n;return parseInt(Y.version,10)>=19?((n=t==null?void 0:t.props)==null?void 0:n.ref)||null:(t==null?void 0:t.ref)||null}function hD(t){return typeof t=="function"?t():t}const mD=Y.forwardRef(function(n,i){const{children:a,container:o,disablePortal:s=!1}=n,[c,f]=Y.useState(null),m=Wa(Y.isValidElement(a)?dD(a):null,i);if(Ye(()=>{s||f(hD(o)||document.body)},[o,s]),Ye(()=>{if(c&&!s)return yb(i,c),()=>{yb(i,null)}},[i,c,s]),s){if(Y.isValidElement(a)){const h={ref:m};return Y.cloneElement(a,h)}return a}return c&&fD.createPortal(a,c)});function gD(t){return zn("MuiPopper",t)}qn("MuiPopper",["root"]);function pD(t,n){if(n==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function om(t){return typeof t=="function"?t():t}function yD(t){return t.nodeType!==void 0}const vD=t=>{const{classes:n}=t;return Nn({root:["root"]},gD,n)},bD={},xD=Y.forwardRef(function(n,i){const{anchorEl:a,children:o,direction:s,disablePortal:c,modifiers:f,open:m,placement:h,popperOptions:p,popperRef:y,slotProps:v={},slots:b={},TransitionProps:x,ownerState:S,...C}=n,E=Y.useRef(null),R=Wa(E,i),O=Y.useRef(null),k=Wa(O,y),M=Y.useRef(k);Ye(()=>{M.current=k},[k]),Y.useImperativeHandle(y,()=>O.current,[]);const _=pD(h,s),[D,L]=Y.useState(_),[$,T]=Y.useState(om(a));Y.useEffect(()=>{O.current&&O.current.forceUpdate()}),Y.useEffect(()=>{a&&T(om(a))},[a]),Ye(()=>{if(!$||!m)return;const ot=nt=>{L(nt.placement)};let j=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:nt})=>{ot(nt)}}];f!=null&&(j=j.concat(f)),p&&p.modifiers!=null&&(j=j.concat(p.modifiers));const P=cD($,E.current,{placement:_,...p,modifiers:j});return M.current(P),()=>{P.destroy(),M.current(null)}},[$,c,f,m,p,_]);const z={placement:D};x!==null&&(z.TransitionProps=x);const X=vD(n),K=b.root??"div",it=Or({elementType:K,externalSlotProps:v.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:R},ownerState:n,className:X.root});return H.jsx(K,{...it,children:typeof o=="function"?o(z):o})}),SD=Y.forwardRef(function(n,i){const{anchorEl:a,children:o,container:s,direction:c="ltr",disablePortal:f=!1,keepMounted:m=!1,modifiers:h,open:p,placement:y="bottom",popperOptions:v=bD,popperRef:b,style:x,transition:S=!1,slotProps:C={},slots:E={},...R}=n,[O,k]=Y.useState(!0),M=()=>{k(!1)},_=()=>{k(!0)};if(!m&&!p&&(!S||O))return null;let D;if(s)D=s;else if(a){const T=om(a);D=T&&yD(T)?Vh(T).body:Vh(null).body}const L=!p&&m&&(!S||O)?"none":void 0,$=S?{in:p,onEnter:M,onExited:_}:void 0;return H.jsx(mD,{disablePortal:f,container:D,children:H.jsx(xD,{anchorEl:a,direction:c,disablePortal:f,modifiers:h,ref:i,open:S?!O:p,placement:y,popperOptions:v,popperRef:b,slotProps:C,slots:E,...R,style:{position:"fixed",top:0,left:0,display:L,...x},TransitionProps:$,children:o})})}),AD=he(SD,{name:"MuiPopper",slot:"Root"})({}),TD=Y.forwardRef(function(n,i){const a=Mm(),o=r2({props:n,name:"MuiPopper"}),{anchorEl:s,component:c,components:f,componentsProps:m,container:h,disablePortal:p,keepMounted:y,modifiers:v,open:b,placement:x,popperOptions:S,popperRef:C,transition:E,slots:R,slotProps:O,...k}=o,M=(R==null?void 0:R.root)??(f==null?void 0:f.Root),_={anchorEl:s,container:h,disablePortal:p,keepMounted:y,modifiers:v,open:b,placement:x,popperOptions:S,popperRef:C,transition:E,...k};return H.jsx(AD,{as:c,direction:a?"rtl":"ltr",slots:{root:M},slotProps:O??m,..._,ref:i})});function CD(t){const{children:n,defer:i=!1,fallback:a=null}=t,[o,s]=Y.useState(!1);return Ye(()=>{i||s(!0)},[i]),Y.useEffect(()=>{i&&s(!0)},[i]),o?n:a}function wD(){const t=Jt(),n=wt(t,LS),i=wt(t,hl);return n!==void 0?"polar":i!==void 0?"cartesian":"none"}const MD=["trigger","classes","children"],ED=()=>!1,OD=he(TD,{name:"MuiChartsTooltip",slot:"Root"})(({theme:t})=>({pointerEvents:"none",zIndex:t.zIndex.modal}));function _D(t){const n=ir({props:t,name:"MuiChartsTooltipContainer"}),{trigger:i="axis",classes:a,children:o}=n,s=Qt(n,MD),c=s0(),f=Fk(),m=Y.useRef(null),h=i6(()=>({x:0,y:0})),p=wD(),y=Jt(),v=wt(y,i==="axis"?p==="polar"&&t6||p==="cartesian"&&OR||ED:TR),b=f!==null&&v;Y.useEffect(()=>{const C=c.current;if(C===null)return()=>{};const E=R=>{var O;h.current={x:R.clientX,y:R.clientY},(O=m.current)==null||O.update()};return C.addEventListener("pointermove",E),()=>{C.removeEventListener("pointermove",E)}},[c,h]);const x=Y.useMemo(()=>({getBoundingClientRect:()=>({x:h.current.x,y:h.current.y,top:h.current.y,left:h.current.x,right:h.current.x,bottom:h.current.y,width:0,height:0,toJSON:()=>""})}),[h]),S=Y.useMemo(()=>[{name:"offset",options:{offset:()=>(f==null?void 0:f.pointerType)!=="touch"?[0,8]:[0,64]}},...(f==null?void 0:f.pointerType)==="mouse"?[]:[{name:"flip",options:{fallbackPlacements:["top-end","top-start","bottom-end","bottom"]}}]],[f]);return i==="none"?null:H.jsx(CD,{children:b&&H.jsx(OD,I({className:a==null?void 0:a.root,open:b,placement:(f==null?void 0:f.pointerType)==="mouse"?"right-start":"top",popperRef:m,anchorEl:x,modifiers:S},s,{children:o}))})}function RD(t){const{classes:n,trigger:i="axis"}=t,a=h0(n);return H.jsx(_D,I({},t,{classes:a,children:i==="axis"?H.jsx(r6,{classes:a}):H.jsx(Qk,{classes:a})}))}const kD=t=>({type:"series",color:t.color,label:t.label,seriesId:t.seriesId,itemId:t.itemId});function DD(t){return zn("MuiChartsLegend",t)}const zD=t=>{const{classes:n,direction:i}=t;return Nn({root:["root",i],mark:["mark"],label:["label"],series:["series"]},DD,n)},vb=qn("MuiChartsLegend",["root","series","mark","label","vertical","horizontal"]),ND=["slots","slotProps"],UD=["ownerState"],jD=(t,n,i,a)=>{function o(s,c){var M;const f=ir({props:s,name:t}),m=typeof i.defaultProps=="function"?i.defaultProps(f):i.defaultProps??{},h=Fa(m,f),p=h,{slots:y,slotProps:v}=p,b=Qt(p,ND),x=Zo(),S=(M=i.classesResolver)==null?void 0:M.call(i,h,x),C=(y==null?void 0:y[n])??a,E=i.propagateSlots&&!(y!=null&&y[n]),R=Or({elementType:C,externalSlotProps:v==null?void 0:v[n],additionalProps:I({},b,{classes:S},E&&{slots:y,slotProps:v}),ownerState:{}}),O=Qt(R,UD),k=I({},O);for(const _ of i.omitProps??[])delete k[_];return H.jsx(C,I({},k,{ref:c}))}return Y.forwardRef(o)};function $D(t){return zn("MuiChartsLabel",t)}qn("MuiChartsLabel",["root"]);const BD=t=>Nn({root:["root"]},$D,t.classes),LD=["children","className","classes"],HD=i2("MuiChartsLabel",{classesResolver:BD},function(n,i){const{children:a,className:o,classes:s}=n,c=Qt(n,LD);return H.jsx("span",I({className:Mn(s==null?void 0:s.root,o),ref:i},c,{children:a}))}),YD=["direction","onItemClick","className","classes"],GD=he("ul",{name:"MuiChartsLegend",slot:"Root"})(({ownerState:t,theme:n})=>I({},n.typography.caption,{color:(n.vars||n).palette.text.primary,lineHeight:"100%",display:"flex",flexDirection:t.direction==="vertical"?"column":"row",alignItems:t.direction==="vertical"?void 0:"center",flexShrink:0,gap:n.spacing(2),listStyleType:"none",paddingInlineStart:0,marginBlock:n.spacing(1),marginInline:n.spacing(1),flexWrap:"wrap",li:{display:t.direction==="horizontal"?"inline-flex":void 0},[`button.${vb.series}`]:{background:"none",border:"none",padding:0,fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",letterSpacing:"inherit",color:"inherit"},[`& .${vb.series}`]:{display:t.direction==="vertical"?"flex":"inline-flex",alignItems:"center",gap:n.spacing(1)}})),qD=jD("MuiChartsLegend","legend",{defaultProps:{direction:"horizontal"},omitProps:["position"],classesResolver:zD},Y.forwardRef(function(n,i){const a=b5(),{onItemClick:o,className:s,classes:c}=n,f=Qt(n,YD);if(a.items.length===0)return null;const m=o?"button":"div";return H.jsx(GD,I({className:Mn(c==null?void 0:c.root,s),ref:i},f,{ownerState:n,children:a.items.map((h,p)=>H.jsx("li",{children:H.jsxs(m,{className:c==null?void 0:c.series,role:o?"button":void 0,type:o?"button":void 0,onClick:o?y=>o(y,kD(h),p):void 0,children:[H.jsx(Js,{className:c==null?void 0:c.mark,color:h.color,type:h.markType}),H.jsx(HD,{className:c==null?void 0:c.label,children:h.label})]})},h.id))}))}));function ID(t){return zn("MuiChartsAxisHighlight",t)}qn("MuiChartsAxisHighlight",["root"]);const ec=he("path",{name:"MuiChartsAxisHighlight",slot:"Root"})(({theme:t})=>({pointerEvents:"none",variants:[{props:{axisHighlight:"band"},style:I({fill:"white",fillOpacity:.1},t.applyStyles("light",{fill:"gray"}))},{props:{axisHighlight:"line"},style:I({strokeDasharray:"5 2",stroke:"#ffffff"},t.applyStyles("light",{stroke:"#000000"}))}]}));function VD(t){const{type:n,classes:i}=t,{left:a,width:o}=ar(),s=d5(),c=Jt(),f=wt(c,ER),m=Fs(s),h=n==="band"&&f!==null&&$r(s);return H.jsxs(Y.Fragment,{children:[h&&s(f)!==void 0&&H.jsx(ec,{d:`M ${a} ${s(f)-(s.step()-s.bandwidth())/2} l 0 ${s.step()} l ${o} 0 l 0 ${-s.step()} Z`,className:i.root,ownerState:{axisHighlight:"band"}}),n==="line"&&f!==null&&H.jsx(ec,{d:`M ${a} ${m(f)} L ${a+o} ${m(f)}`,className:i.root,ownerState:{axisHighlight:"line"}})]})}function XD(t){const{type:n,classes:i}=t,{top:a,height:o}=ar(),s=f5(),c=Jt(),f=wt(c,MR),m=Fs(s),h=n==="band"&&f!==null&&$r(s);return H.jsxs(Y.Fragment,{children:[h&&s(f)!==void 0&&H.jsx(ec,{d:`M ${s(f)-(s.step()-s.bandwidth())/2} ${a} l ${s.step()} 0 l 0 ${o} l ${-s.step()} 0 Z`,className:i.root,ownerState:{axisHighlight:"band"}}),n==="line"&&f!==null&&H.jsx(ec,{d:`M ${m(f)} ${a} L ${m(f)} ${a+o}`,className:i.root,ownerState:{axisHighlight:"line"}})]})}const PD=()=>Nn({root:["root"]},ID);function ZD(t){const{x:n,y:i}=t,a=PD();return H.jsxs(Y.Fragment,{children:[n&&H.jsx(XD,{type:n,classes:a}),i&&H.jsx(VD,{type:i,classes:a})]})}function QD(t){const{id:n,offset:i}=t,{left:a,top:o,width:s,height:c}=ar(),f=I({top:0,right:0,bottom:0,left:0},i);return H.jsx("clipPath",{id:n,children:H.jsx("rect",{x:a-f.left,y:o-f.top,width:s+f.left+f.right,height:c+f.top+f.bottom})})}function KD(t){return zn("MuiChartsGrid",t)}const bb=qn("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),FD=he("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(t,n)=>[{[`&.${bb.verticalLine}`]:n.verticalLine},{[`&.${bb.horizontalLine}`]:n.horizontalLine},n.root]})({}),x2=he("line",{name:"MuiChartsGrid",slot:"Line"})(({theme:t})=>({stroke:(t.vars||t).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}));function WD(t){const{axis:n,start:i,end:a,classes:o}=t,{scale:s,tickNumber:c,tickInterval:f}=n,m=Bc({scale:s,tickNumber:c,tickInterval:f,direction:"x"});return H.jsx(Y.Fragment,{children:m.map(({value:h,offset:p})=>{var y;return H.jsx(x2,{y1:i,y2:a,x1:p,x2:p,className:o.verticalLine},`vertical-${((y=h.getTime)==null?void 0:y.call(h))??h}`)})})}function JD(t){const{axis:n,start:i,end:a,classes:o}=t,{scale:s,tickNumber:c,tickInterval:f}=n,m=Bc({scale:s,tickNumber:c,tickInterval:f,direction:"y"});return H.jsx(Y.Fragment,{children:m.map(({value:h,offset:p})=>{var y;return H.jsx(x2,{y1:p,y2:p,x1:i,x2:a,className:o.horizontalLine},`horizontal-${((y=h.getTime)==null?void 0:y.call(h))??h}`)})})}const t8=["vertical","horizontal"],e8=({classes:t})=>Nn({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},KD,t);function n8(t){const n=ir({props:t,name:"MuiChartsGrid"}),i=ar(),{vertical:a,horizontal:o}=n,s=Qt(n,t8),{xAxis:c,xAxisIds:f}=Xi(),{yAxis:m,yAxisIds:h}=Pi(),p=e8(n),y=m[h[0]],v=c[f[0]];return H.jsxs(FD,I({},s,{className:p.root,children:[a&&H.jsx(WD,{axis:v,start:i.top,end:i.height+i.top,classes:p}),o&&H.jsx(JD,{axis:y,start:i.left,end:i.width+i.left,classes:p})]}))}const r8=["message"],i8=he("text")(({theme:t})=>I({},t.typography.body2,{stroke:"none",fill:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function a8(t){const{message:n}=t,i=Qt(t,r8),{top:a,left:o,height:s,width:c}=ar(),{localeText:f}=IS();return H.jsx(i8,I({x:o+c/2,y:a+s/2},i,{children:n??f.loading}))}const l8=["message"],o8=he("text")(({theme:t})=>I({},t.typography.body2,{stroke:"none",fill:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function u8(t){const{message:n}=t,i=Qt(t,l8),{top:a,left:o,height:s,width:c}=ar(),{localeText:f}=IS();return H.jsx(o8,I({x:o+c/2,y:a+s/2},i,{children:n??f.noData}))}function s8(){const t=jc();return Object.values(t).every(n=>{if(!n)return!0;const{series:i,seriesOrder:a}=n;return a.every(o=>i[o].data.length===0)})}function c8(t){var i,a,o,s;const n=s8();if(t.loading){const c=((i=t.slots)==null?void 0:i.loadingOverlay)??a8;return H.jsx(c,I({},(a=t.slotProps)==null?void 0:a.loadingOverlay))}if(n){const c=((o=t.slots)==null?void 0:o.noDataOverlay)??u8;return H.jsx(c,I({},(s=t.slotProps)==null?void 0:s.noDataOverlay))}return null}const f8=[Jo,ml,Wo,gl],d8=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","axisHighlight","grid","children","slots","slotProps","skipAnimation","loading","layout","onItemClick","highlightedItem","onHighlightChange","borderRadius","barLabel","className","hideLegend"],h8=t=>{var st,xt,bt,rt,Rt;const{xAxis:n,yAxis:i,series:a,width:o,height:s,margin:c,colors:f,dataset:m,sx:h,axisHighlight:p,grid:y,children:v,slots:b,slotProps:x,skipAnimation:S,loading:C,layout:E,onItemClick:R,highlightedItem:O,onHighlightChange:k,borderRadius:M,barLabel:_,className:D}=t,L=Qt(t,d8),T=`${xx()}-clip-path`,z=E==="horizontal"||E===void 0&&a.some(vt=>vt.layout==="horizontal"),X=Y.useMemo(()=>[{id:Dm,scaleType:"band",data:Array.from({length:Math.max(...a.map(vt=>(vt.data??m??[]).length))},(vt,Bt)=>Bt)}],[m,a]),K=Y.useMemo(()=>[{id:zm,scaleType:"band",data:Array.from({length:Math.max(...a.map(vt=>(vt.data??m??[]).length))},(vt,Bt)=>Bt)}],[m,a]),it=Y.useMemo(()=>a.map(vt=>I({type:"bar"},vt,{layout:z?"horizontal":"vertical"})),[z,a]),ot=z?void 0:X,j=Y.useMemo(()=>n?z?n:n.map(vt=>I({scaleType:"band"},vt)):ot,[ot,z,n]),P=z?K:void 0,nt=Y.useMemo(()=>i?z?i.map(vt=>I({scaleType:"band"},vt)):i:P,[P,z,i]),ut=I({},L,{series:it,width:o,height:s,margin:c,colors:f,dataset:m,xAxis:j,yAxis:nt,highlightedItem:O,onHighlightChange:k,disableAxisListener:((st=x==null?void 0:x.tooltip)==null?void 0:st.trigger)!=="axis"&&(p==null?void 0:p.x)==="none"&&(p==null?void 0:p.y)==="none",className:D,skipAnimation:S,plugins:f8}),N={onItemClick:R,slots:b,slotProps:x,borderRadius:M,barLabel:_},F={vertical:y==null?void 0:y.vertical,horizontal:y==null?void 0:y.horizontal},at={clipPath:`url(#${T})`},lt={id:T},ct={slots:b,slotProps:x,loading:C},yt={slots:b,slotProps:x},dt=I({},z?{y:"band"}:{x:"band"},p),gt={slots:b,slotProps:x};return{chartsWrapperProps:{sx:h,legendPosition:(bt=(xt=t.slotProps)==null?void 0:xt.legend)==null?void 0:bt.position,legendDirection:(Rt=(rt=t.slotProps)==null?void 0:rt.legend)==null?void 0:Rt.direction},chartContainerProps:ut,barPlotProps:N,gridProps:F,clipPathProps:lt,clipPathGroupProps:at,overlayProps:ct,chartsAxisProps:yt,axisHighlightProps:dt,legendProps:gt,children:v}},_r=11102230246251565e-32,Le=134217729,m8=(3+8*_r)*_r;function Uh(t,n,i,a,o){let s,c,f,m,h=n[0],p=a[0],y=0,v=0;p>h==p>-h?(s=h,h=n[++y]):(s=p,p=a[++v]);let b=0;if(y<t&&v<i)for(p>h==p>-h?(c=h+s,f=s-(c-h),h=n[++y]):(c=p+s,f=s-(c-p),p=a[++v]),s=c,f!==0&&(o[b++]=f);y<t&&v<i;)p>h==p>-h?(c=s+h,m=c-s,f=s-(c-m)+(h-m),h=n[++y]):(c=s+p,m=c-s,f=s-(c-m)+(p-m),p=a[++v]),s=c,f!==0&&(o[b++]=f);for(;y<t;)c=s+h,m=c-s,f=s-(c-m)+(h-m),h=n[++y],s=c,f!==0&&(o[b++]=f);for(;v<i;)c=s+p,m=c-s,f=s-(c-m)+(p-m),p=a[++v],s=c,f!==0&&(o[b++]=f);return(s!==0||b===0)&&(o[b++]=s),b}function g8(t,n){let i=n[0];for(let a=1;a<t;a++)i+=n[a];return i}function iu(t){return new Float64Array(t)}const p8=(3+16*_r)*_r,y8=(2+12*_r)*_r,v8=(9+64*_r)*_r*_r,Ya=iu(4),xb=iu(8),Sb=iu(12),Ab=iu(16),Ve=iu(4);function b8(t,n,i,a,o,s,c){let f,m,h,p,y,v,b,x,S,C,E,R,O,k,M,_,D,L;const $=t-o,T=i-o,z=n-s,X=a-s;k=$*X,v=Le*$,b=v-(v-$),x=$-b,v=Le*X,S=v-(v-X),C=X-S,M=x*C-(k-b*S-x*S-b*C),_=z*T,v=Le*z,b=v-(v-z),x=z-b,v=Le*T,S=v-(v-T),C=T-S,D=x*C-(_-b*S-x*S-b*C),E=M-D,y=M-E,Ya[0]=M-(E+y)+(y-D),R=k+E,y=R-k,O=k-(R-y)+(E-y),E=O-_,y=O-E,Ya[1]=O-(E+y)+(y-_),L=R+E,y=L-R,Ya[2]=R-(L-y)+(E-y),Ya[3]=L;let K=g8(4,Ya),it=y8*c;if(K>=it||-K>=it||(y=t-$,f=t-($+y)+(y-o),y=i-T,h=i-(T+y)+(y-o),y=n-z,m=n-(z+y)+(y-s),y=a-X,p=a-(X+y)+(y-s),f===0&&m===0&&h===0&&p===0)||(it=v8*c+m8*Math.abs(K),K+=$*p+X*f-(z*h+T*m),K>=it||-K>=it))return K;k=f*X,v=Le*f,b=v-(v-f),x=f-b,v=Le*X,S=v-(v-X),C=X-S,M=x*C-(k-b*S-x*S-b*C),_=m*T,v=Le*m,b=v-(v-m),x=m-b,v=Le*T,S=v-(v-T),C=T-S,D=x*C-(_-b*S-x*S-b*C),E=M-D,y=M-E,Ve[0]=M-(E+y)+(y-D),R=k+E,y=R-k,O=k-(R-y)+(E-y),E=O-_,y=O-E,Ve[1]=O-(E+y)+(y-_),L=R+E,y=L-R,Ve[2]=R-(L-y)+(E-y),Ve[3]=L;const ot=Uh(4,Ya,4,Ve,xb);k=$*p,v=Le*$,b=v-(v-$),x=$-b,v=Le*p,S=v-(v-p),C=p-S,M=x*C-(k-b*S-x*S-b*C),_=z*h,v=Le*z,b=v-(v-z),x=z-b,v=Le*h,S=v-(v-h),C=h-S,D=x*C-(_-b*S-x*S-b*C),E=M-D,y=M-E,Ve[0]=M-(E+y)+(y-D),R=k+E,y=R-k,O=k-(R-y)+(E-y),E=O-_,y=O-E,Ve[1]=O-(E+y)+(y-_),L=R+E,y=L-R,Ve[2]=R-(L-y)+(E-y),Ve[3]=L;const j=Uh(ot,xb,4,Ve,Sb);k=f*p,v=Le*f,b=v-(v-f),x=f-b,v=Le*p,S=v-(v-p),C=p-S,M=x*C-(k-b*S-x*S-b*C),_=m*h,v=Le*m,b=v-(v-m),x=m-b,v=Le*h,S=v-(v-h),C=h-S,D=x*C-(_-b*S-x*S-b*C),E=M-D,y=M-E,Ve[0]=M-(E+y)+(y-D),R=k+E,y=R-k,O=k-(R-y)+(E-y),E=O-_,y=O-E,Ve[1]=O-(E+y)+(y-_),L=R+E,y=L-R,Ve[2]=R-(L-y)+(E-y),Ve[3]=L;const P=Uh(j,Sb,4,Ve,Ab);return Ab[P-1]}function Es(t,n,i,a,o,s){const c=(n-s)*(i-o),f=(t-o)*(a-s),m=c-f,h=Math.abs(c+f);return Math.abs(m)>=p8*h?m:-b8(t,n,i,a,o,s,h)}const Tb=Math.pow(2,-52),Os=new Uint32Array(512);class nc{static from(n,i=C8,a=w8){const o=n.length,s=new Float64Array(o*2);for(let c=0;c<o;c++){const f=n[c];s[2*c]=i(f),s[2*c+1]=a(f)}return new nc(s)}constructor(n){const i=n.length>>1;if(i>0&&typeof n[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=n;const a=Math.max(2*i-5,0);this._triangles=new Uint32Array(a*3),this._halfedges=new Int32Array(a*3),this._hashSize=Math.ceil(Math.sqrt(i)),this._hullPrev=new Uint32Array(i),this._hullNext=new Uint32Array(i),this._hullTri=new Uint32Array(i),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(i),this._dists=new Float64Array(i),this.update()}update(){const{coords:n,_hullPrev:i,_hullNext:a,_hullTri:o,_hullHash:s}=this,c=n.length>>1;let f=1/0,m=1/0,h=-1/0,p=-1/0;for(let $=0;$<c;$++){const T=n[2*$],z=n[2*$+1];T<f&&(f=T),z<m&&(m=z),T>h&&(h=T),z>p&&(p=z),this._ids[$]=$}const y=(f+h)/2,v=(m+p)/2;let b,x,S;for(let $=0,T=1/0;$<c;$++){const z=jh(y,v,n[2*$],n[2*$+1]);z<T&&(b=$,T=z)}const C=n[2*b],E=n[2*b+1];for(let $=0,T=1/0;$<c;$++){if($===b)continue;const z=jh(C,E,n[2*$],n[2*$+1]);z<T&&z>0&&(x=$,T=z)}let R=n[2*x],O=n[2*x+1],k=1/0;for(let $=0;$<c;$++){if($===b||$===x)continue;const T=A8(C,E,R,O,n[2*$],n[2*$+1]);T<k&&(S=$,k=T)}let M=n[2*S],_=n[2*S+1];if(k===1/0){for(let z=0;z<c;z++)this._dists[z]=n[2*z]-n[0]||n[2*z+1]-n[1];Va(this._ids,this._dists,0,c-1);const $=new Uint32Array(c);let T=0;for(let z=0,X=-1/0;z<c;z++){const K=this._ids[z],it=this._dists[K];it>X&&($[T++]=K,X=it)}this.hull=$.subarray(0,T),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(Es(C,E,R,O,M,_)<0){const $=x,T=R,z=O;x=S,R=M,O=_,S=$,M=T,_=z}const D=T8(C,E,R,O,M,_);this._cx=D.x,this._cy=D.y;for(let $=0;$<c;$++)this._dists[$]=jh(n[2*$],n[2*$+1],D.x,D.y);Va(this._ids,this._dists,0,c-1),this._hullStart=b;let L=3;a[b]=i[S]=x,a[x]=i[b]=S,a[S]=i[x]=b,o[b]=0,o[x]=1,o[S]=2,s.fill(-1),s[this._hashKey(C,E)]=b,s[this._hashKey(R,O)]=x,s[this._hashKey(M,_)]=S,this.trianglesLen=0,this._addTriangle(b,x,S,-1,-1,-1);for(let $=0,T,z;$<this._ids.length;$++){const X=this._ids[$],K=n[2*X],it=n[2*X+1];if($>0&&Math.abs(K-T)<=Tb&&Math.abs(it-z)<=Tb||(T=K,z=it,X===b||X===x||X===S))continue;let ot=0;for(let N=0,F=this._hashKey(K,it);N<this._hashSize&&(ot=s[(F+N)%this._hashSize],!(ot!==-1&&ot!==a[ot]));N++);ot=i[ot];let j=ot,P;for(;P=a[j],Es(K,it,n[2*j],n[2*j+1],n[2*P],n[2*P+1])>=0;)if(j=P,j===ot){j=-1;break}if(j===-1)continue;let nt=this._addTriangle(j,X,a[j],-1,-1,o[j]);o[X]=this._legalize(nt+2),o[j]=nt,L++;let ut=a[j];for(;P=a[ut],Es(K,it,n[2*ut],n[2*ut+1],n[2*P],n[2*P+1])<0;)nt=this._addTriangle(ut,X,P,o[X],-1,o[ut]),o[X]=this._legalize(nt+2),a[ut]=ut,L--,ut=P;if(j===ot)for(;P=i[j],Es(K,it,n[2*P],n[2*P+1],n[2*j],n[2*j+1])<0;)nt=this._addTriangle(P,X,j,-1,o[j],o[P]),this._legalize(nt+2),o[P]=nt,a[j]=j,L--,j=P;this._hullStart=i[X]=j,a[j]=i[ut]=X,a[X]=ut,s[this._hashKey(K,it)]=X,s[this._hashKey(n[2*j],n[2*j+1])]=j}this.hull=new Uint32Array(L);for(let $=0,T=this._hullStart;$<L;$++)this.hull[$]=T,T=a[T];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(n,i){return Math.floor(x8(n-this._cx,i-this._cy)*this._hashSize)%this._hashSize}_legalize(n){const{_triangles:i,_halfedges:a,coords:o}=this;let s=0,c=0;for(;;){const f=a[n],m=n-n%3;if(c=m+(n+2)%3,f===-1){if(s===0)break;n=Os[--s];continue}const h=f-f%3,p=m+(n+1)%3,y=h+(f+2)%3,v=i[c],b=i[n],x=i[p],S=i[y];if(S8(o[2*v],o[2*v+1],o[2*b],o[2*b+1],o[2*x],o[2*x+1],o[2*S],o[2*S+1])){i[n]=S,i[f]=v;const E=a[y];if(E===-1){let O=this._hullStart;do{if(this._hullTri[O]===y){this._hullTri[O]=n;break}O=this._hullPrev[O]}while(O!==this._hullStart)}this._link(n,E),this._link(f,a[c]),this._link(c,y);const R=h+(f+1)%3;s<Os.length&&(Os[s++]=R)}else{if(s===0)break;n=Os[--s]}}return c}_link(n,i){this._halfedges[n]=i,i!==-1&&(this._halfedges[i]=n)}_addTriangle(n,i,a,o,s,c){const f=this.trianglesLen;return this._triangles[f]=n,this._triangles[f+1]=i,this._triangles[f+2]=a,this._link(f,o),this._link(f+1,s),this._link(f+2,c),this.trianglesLen+=3,f}}function x8(t,n){const i=t/(Math.abs(t)+Math.abs(n));return(n>0?3-i:1+i)/4}function jh(t,n,i,a){const o=t-i,s=n-a;return o*o+s*s}function S8(t,n,i,a,o,s,c,f){const m=t-c,h=n-f,p=i-c,y=a-f,v=o-c,b=s-f,x=m*m+h*h,S=p*p+y*y,C=v*v+b*b;return m*(y*C-S*b)-h*(p*C-S*v)+x*(p*b-y*v)<0}function A8(t,n,i,a,o,s){const c=i-t,f=a-n,m=o-t,h=s-n,p=c*c+f*f,y=m*m+h*h,v=.5/(c*h-f*m),b=(h*p-f*y)*v,x=(c*y-m*p)*v;return b*b+x*x}function T8(t,n,i,a,o,s){const c=i-t,f=a-n,m=o-t,h=s-n,p=c*c+f*f,y=m*m+h*h,v=.5/(c*h-f*m),b=t+(h*p-f*y)*v,x=n+(c*y-m*p)*v;return{x:b,y:x}}function Va(t,n,i,a){if(a-i<=20)for(let o=i+1;o<=a;o++){const s=t[o],c=n[s];let f=o-1;for(;f>=i&&n[t[f]]>c;)t[f+1]=t[f--];t[f+1]=s}else{const o=i+a>>1;let s=i+1,c=a;Ao(t,o,s),n[t[i]]>n[t[a]]&&Ao(t,i,a),n[t[s]]>n[t[a]]&&Ao(t,s,a),n[t[i]]>n[t[s]]&&Ao(t,i,s);const f=t[s],m=n[f];for(;;){do s++;while(n[t[s]]<m);do c--;while(n[t[c]]>m);if(c<s)break;Ao(t,s,c)}t[i+1]=t[c],t[c]=f,a-s+1>=c-i?(Va(t,n,s,a),Va(t,n,i,c-1)):(Va(t,n,i,c-1),Va(t,n,s,a))}}function Ao(t,n,i){const a=t[n];t[n]=t[i],t[i]=a}function C8(t){return t[0]}function w8(t){return t[1]}const Cb=1e-6;class Di{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(n,i){this._+=`M${this._x0=this._x1=+n},${this._y0=this._y1=+i}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(n,i){this._+=`L${this._x1=+n},${this._y1=+i}`}arc(n,i,a){n=+n,i=+i,a=+a;const o=n+a,s=i;if(a<0)throw new Error("negative radius");this._x1===null?this._+=`M${o},${s}`:(Math.abs(this._x1-o)>Cb||Math.abs(this._y1-s)>Cb)&&(this._+="L"+o+","+s),a&&(this._+=`A${a},${a},0,1,1,${n-a},${i}A${a},${a},0,1,1,${this._x1=o},${this._y1=s}`)}rect(n,i,a,o){this._+=`M${this._x0=this._x1=+n},${this._y0=this._y1=+i}h${+a}v${+o}h${-a}Z`}value(){return this._||null}}class um{constructor(){this._=[]}moveTo(n,i){this._.push([n,i])}closePath(){this._.push(this._[0].slice())}lineTo(n,i){this._.push([n,i])}value(){return this._.length?this._:null}}class M8{constructor(n,[i,a,o,s]=[0,0,960,500]){if(!((o=+o)>=(i=+i))||!((s=+s)>=(a=+a)))throw new Error("invalid bounds");this.delaunay=n,this._circumcenters=new Float64Array(n.points.length*2),this.vectors=new Float64Array(n.points.length*2),this.xmax=o,this.xmin=i,this.ymax=s,this.ymin=a,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:n,hull:i,triangles:a},vectors:o}=this;let s,c;const f=this.circumcenters=this._circumcenters.subarray(0,a.length/3*2);for(let S=0,C=0,E=a.length,R,O;S<E;S+=3,C+=2){const k=a[S]*2,M=a[S+1]*2,_=a[S+2]*2,D=n[k],L=n[k+1],$=n[M],T=n[M+1],z=n[_],X=n[_+1],K=$-D,it=T-L,ot=z-D,j=X-L,P=(K*j-it*ot)*2;if(Math.abs(P)<1e-9){if(s===void 0){s=c=0;for(const ut of i)s+=n[ut*2],c+=n[ut*2+1];s/=i.length,c/=i.length}const nt=1e9*Math.sign((s-D)*j-(c-L)*ot);R=(D+z)/2-nt*j,O=(L+X)/2+nt*ot}else{const nt=1/P,ut=K*K+it*it,N=ot*ot+j*j;R=D+(j*ut-it*N)*nt,O=L+(K*N-ot*ut)*nt}f[C]=R,f[C+1]=O}let m=i[i.length-1],h,p=m*4,y,v=n[2*m],b,x=n[2*m+1];o.fill(0);for(let S=0;S<i.length;++S)m=i[S],h=p,y=v,b=x,p=m*4,v=n[2*m],x=n[2*m+1],o[h+2]=o[p]=b-x,o[h+3]=o[p+1]=v-y}render(n){const i=n==null?n=new Di:void 0,{delaunay:{halfedges:a,inedges:o,hull:s},circumcenters:c,vectors:f}=this;if(s.length<=1)return null;for(let p=0,y=a.length;p<y;++p){const v=a[p];if(v<p)continue;const b=Math.floor(p/3)*2,x=Math.floor(v/3)*2,S=c[b],C=c[b+1],E=c[x],R=c[x+1];this._renderSegment(S,C,E,R,n)}let m,h=s[s.length-1];for(let p=0;p<s.length;++p){m=h,h=s[p];const y=Math.floor(o[h]/3)*2,v=c[y],b=c[y+1],x=m*4,S=this._project(v,b,f[x+2],f[x+3]);S&&this._renderSegment(v,b,S[0],S[1],n)}return i&&i.value()}renderBounds(n){const i=n==null?n=new Di:void 0;return n.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),i&&i.value()}renderCell(n,i){const a=i==null?i=new Di:void 0,o=this._clip(n);if(o===null||!o.length)return;i.moveTo(o[0],o[1]);let s=o.length;for(;o[0]===o[s-2]&&o[1]===o[s-1]&&s>1;)s-=2;for(let c=2;c<s;c+=2)(o[c]!==o[c-2]||o[c+1]!==o[c-1])&&i.lineTo(o[c],o[c+1]);return i.closePath(),a&&a.value()}*cellPolygons(){const{delaunay:{points:n}}=this;for(let i=0,a=n.length/2;i<a;++i){const o=this.cellPolygon(i);o&&(o.index=i,yield o)}}cellPolygon(n){const i=new um;return this.renderCell(n,i),i.value()}_renderSegment(n,i,a,o,s){let c;const f=this._regioncode(n,i),m=this._regioncode(a,o);f===0&&m===0?(s.moveTo(n,i),s.lineTo(a,o)):(c=this._clipSegment(n,i,a,o,f,m))&&(s.moveTo(c[0],c[1]),s.lineTo(c[2],c[3]))}contains(n,i,a){return i=+i,i!==i||(a=+a,a!==a)?!1:this.delaunay._step(n,i,a)===n}*neighbors(n){const i=this._clip(n);if(i)for(const a of this.delaunay.neighbors(n)){const o=this._clip(a);if(o){t:for(let s=0,c=i.length;s<c;s+=2)for(let f=0,m=o.length;f<m;f+=2)if(i[s]===o[f]&&i[s+1]===o[f+1]&&i[(s+2)%c]===o[(f+m-2)%m]&&i[(s+3)%c]===o[(f+m-1)%m]){yield a;break t}}}}_cell(n){const{circumcenters:i,delaunay:{inedges:a,halfedges:o,triangles:s}}=this,c=a[n];if(c===-1)return null;const f=[];let m=c;do{const h=Math.floor(m/3);if(f.push(i[h*2],i[h*2+1]),m=m%3===2?m-2:m+1,s[m]!==n)break;m=o[m]}while(m!==c&&m!==-1);return f}_clip(n){if(n===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const i=this._cell(n);if(i===null)return null;const{vectors:a}=this,o=n*4;return this._simplify(a[o]||a[o+1]?this._clipInfinite(n,i,a[o],a[o+1],a[o+2],a[o+3]):this._clipFinite(n,i))}_clipFinite(n,i){const a=i.length;let o=null,s,c,f=i[a-2],m=i[a-1],h,p=this._regioncode(f,m),y,v=0;for(let b=0;b<a;b+=2)if(s=f,c=m,f=i[b],m=i[b+1],h=p,p=this._regioncode(f,m),h===0&&p===0)y=v,v=0,o?o.push(f,m):o=[f,m];else{let x,S,C,E,R;if(h===0){if((x=this._clipSegment(s,c,f,m,h,p))===null)continue;[S,C,E,R]=x}else{if((x=this._clipSegment(f,m,s,c,p,h))===null)continue;[E,R,S,C]=x,y=v,v=this._edgecode(S,C),y&&v&&this._edge(n,y,v,o,o.length),o?o.push(S,C):o=[S,C]}y=v,v=this._edgecode(E,R),y&&v&&this._edge(n,y,v,o,o.length),o?o.push(E,R):o=[E,R]}if(o)y=v,v=this._edgecode(o[0],o[1]),y&&v&&this._edge(n,y,v,o,o.length);else if(this.contains(n,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return o}_clipSegment(n,i,a,o,s,c){const f=s<c;for(f&&([n,i,a,o,s,c]=[a,o,n,i,c,s]);;){if(s===0&&c===0)return f?[a,o,n,i]:[n,i,a,o];if(s&c)return null;let m,h,p=s||c;p&8?(m=n+(a-n)*(this.ymax-i)/(o-i),h=this.ymax):p&4?(m=n+(a-n)*(this.ymin-i)/(o-i),h=this.ymin):p&2?(h=i+(o-i)*(this.xmax-n)/(a-n),m=this.xmax):(h=i+(o-i)*(this.xmin-n)/(a-n),m=this.xmin),s?(n=m,i=h,s=this._regioncode(n,i)):(a=m,o=h,c=this._regioncode(a,o))}}_clipInfinite(n,i,a,o,s,c){let f=Array.from(i),m;if((m=this._project(f[0],f[1],a,o))&&f.unshift(m[0],m[1]),(m=this._project(f[f.length-2],f[f.length-1],s,c))&&f.push(m[0],m[1]),f=this._clipFinite(n,f))for(let h=0,p=f.length,y,v=this._edgecode(f[p-2],f[p-1]);h<p;h+=2)y=v,v=this._edgecode(f[h],f[h+1]),y&&v&&(h=this._edge(n,y,v,f,h),p=f.length);else this.contains(n,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(f=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return f}_edge(n,i,a,o,s){for(;i!==a;){let c,f;switch(i){case 5:i=4;continue;case 4:i=6,c=this.xmax,f=this.ymin;break;case 6:i=2;continue;case 2:i=10,c=this.xmax,f=this.ymax;break;case 10:i=8;continue;case 8:i=9,c=this.xmin,f=this.ymax;break;case 9:i=1;continue;case 1:i=5,c=this.xmin,f=this.ymin;break}(o[s]!==c||o[s+1]!==f)&&this.contains(n,c,f)&&(o.splice(s,0,c,f),s+=2)}return s}_project(n,i,a,o){let s=1/0,c,f,m;if(o<0){if(i<=this.ymin)return null;(c=(this.ymin-i)/o)<s&&(m=this.ymin,f=n+(s=c)*a)}else if(o>0){if(i>=this.ymax)return null;(c=(this.ymax-i)/o)<s&&(m=this.ymax,f=n+(s=c)*a)}if(a>0){if(n>=this.xmax)return null;(c=(this.xmax-n)/a)<s&&(f=this.xmax,m=i+(s=c)*o)}else if(a<0){if(n<=this.xmin)return null;(c=(this.xmin-n)/a)<s&&(f=this.xmin,m=i+(s=c)*o)}return[f,m]}_edgecode(n,i){return(n===this.xmin?1:n===this.xmax?2:0)|(i===this.ymin?4:i===this.ymax?8:0)}_regioncode(n,i){return(n<this.xmin?1:n>this.xmax?2:0)|(i<this.ymin?4:i>this.ymax?8:0)}_simplify(n){if(n&&n.length>4){for(let i=0;i<n.length;i+=2){const a=(i+2)%n.length,o=(i+4)%n.length;(n[i]===n[a]&&n[a]===n[o]||n[i+1]===n[a+1]&&n[a+1]===n[o+1])&&(n.splice(a,2),i-=2)}n.length||(n=null)}return n}}const E8=2*Math.PI,Ga=Math.pow;function O8(t){return t[0]}function _8(t){return t[1]}function R8(t){const{triangles:n,coords:i}=t;for(let a=0;a<n.length;a+=3){const o=2*n[a],s=2*n[a+1],c=2*n[a+2];if((i[c]-i[o])*(i[s+1]-i[o+1])-(i[s]-i[o])*(i[c+1]-i[o+1])>1e-10)return!1}return!0}function k8(t,n,i){return[t+Math.sin(t+n)*i,n+Math.cos(t-n)*i]}class S0{static from(n,i=O8,a=_8,o){return new S0("length"in n?D8(n,i,a,o):Float64Array.from(z8(n,i,a,o)))}constructor(n){this._delaunator=new nc(n),this.inedges=new Int32Array(n.length/2),this._hullIndex=new Int32Array(n.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const n=this._delaunator,i=this.points;if(n.hull&&n.hull.length>2&&R8(n)){this.collinear=Int32Array.from({length:i.length/2},(v,b)=>b).sort((v,b)=>i[2*v]-i[2*b]||i[2*v+1]-i[2*b+1]);const m=this.collinear[0],h=this.collinear[this.collinear.length-1],p=[i[2*m],i[2*m+1],i[2*h],i[2*h+1]],y=1e-8*Math.hypot(p[3]-p[1],p[2]-p[0]);for(let v=0,b=i.length/2;v<b;++v){const x=k8(i[2*v],i[2*v+1],y);i[2*v]=x[0],i[2*v+1]=x[1]}this._delaunator=new nc(i)}else delete this.collinear;const a=this.halfedges=this._delaunator.halfedges,o=this.hull=this._delaunator.hull,s=this.triangles=this._delaunator.triangles,c=this.inedges.fill(-1),f=this._hullIndex.fill(-1);for(let m=0,h=a.length;m<h;++m){const p=s[m%3===2?m-2:m+1];(a[m]===-1||c[p]===-1)&&(c[p]=m)}for(let m=0,h=o.length;m<h;++m)f[o[m]]=m;o.length<=2&&o.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],c[o[0]]=1,o.length===2&&(c[o[1]]=0,this.triangles[1]=o[1],this.triangles[2]=o[1]))}voronoi(n){return new M8(this,n)}*neighbors(n){const{inedges:i,hull:a,_hullIndex:o,halfedges:s,triangles:c,collinear:f}=this;if(f){const y=f.indexOf(n);y>0&&(yield f[y-1]),y<f.length-1&&(yield f[y+1]);return}const m=i[n];if(m===-1)return;let h=m,p=-1;do{if(yield p=c[h],h=h%3===2?h-2:h+1,c[h]!==n)return;if(h=s[h],h===-1){const y=a[(o[n]+1)%a.length];y!==p&&(yield y);return}}while(h!==m)}find(n,i,a=0){if(n=+n,n!==n||(i=+i,i!==i))return-1;const o=a;let s;for(;(s=this._step(a,n,i))>=0&&s!==a&&s!==o;)a=s;return s}_step(n,i,a){const{inedges:o,hull:s,_hullIndex:c,halfedges:f,triangles:m,points:h}=this;if(o[n]===-1||!h.length)return(n+1)%(h.length>>1);let p=n,y=Ga(i-h[n*2],2)+Ga(a-h[n*2+1],2);const v=o[n];let b=v;do{let x=m[b];const S=Ga(i-h[x*2],2)+Ga(a-h[x*2+1],2);if(S<y&&(y=S,p=x),b=b%3===2?b-2:b+1,m[b]!==n)break;if(b=f[b],b===-1){if(b=s[(c[n]+1)%s.length],b!==x&&Ga(i-h[b*2],2)+Ga(a-h[b*2+1],2)<y)return b;break}}while(b!==v);return p}render(n){const i=n==null?n=new Di:void 0,{points:a,halfedges:o,triangles:s}=this;for(let c=0,f=o.length;c<f;++c){const m=o[c];if(m<c)continue;const h=s[c]*2,p=s[m]*2;n.moveTo(a[h],a[h+1]),n.lineTo(a[p],a[p+1])}return this.renderHull(n),i&&i.value()}renderPoints(n,i){i===void 0&&(!n||typeof n.moveTo!="function")&&(i=n,n=null),i=i==null?2:+i;const a=n==null?n=new Di:void 0,{points:o}=this;for(let s=0,c=o.length;s<c;s+=2){const f=o[s],m=o[s+1];n.moveTo(f+i,m),n.arc(f,m,i,0,E8)}return a&&a.value()}renderHull(n){const i=n==null?n=new Di:void 0,{hull:a,points:o}=this,s=a[0]*2,c=a.length;n.moveTo(o[s],o[s+1]);for(let f=1;f<c;++f){const m=2*a[f];n.lineTo(o[m],o[m+1])}return n.closePath(),i&&i.value()}hullPolygon(){const n=new um;return this.renderHull(n),n.value()}renderTriangle(n,i){const a=i==null?i=new Di:void 0,{points:o,triangles:s}=this,c=s[n*=3]*2,f=s[n+1]*2,m=s[n+2]*2;return i.moveTo(o[c],o[c+1]),i.lineTo(o[f],o[f+1]),i.lineTo(o[m],o[m+1]),i.closePath(),a&&a.value()}*trianglePolygons(){const{triangles:n}=this;for(let i=0,a=n.length/3;i<a;++i)yield this.trianglePolygon(i)}trianglePolygon(n){const i=new um;return this.renderTriangle(n,i),i.value()}}function D8(t,n,i,a){const o=t.length,s=new Float64Array(o*2);for(let c=0;c<o;++c){const f=t[c];s[c*2]=n.call(a,f,c,t),s[c*2+1]=i.call(a,f,c,t)}return s}function*z8(t,n,i,a){let o=0;for(const s of t)yield n.call(a,s,o,t),yield i.call(a,s,o,t),++o}const Hc=({svgRef:t,params:n,store:i,instance:a})=>{var _;const{disableVoronoi:o,voronoiMaxRadius:s,onItemClick:c}=n,f=wt(i,Ur),{axis:m,axisIds:h}=wt(i,Gi),{axis:p,axisIds:y}=wt(i,qi),v=wt(i,cS),{series:b,seriesOrder:x}=((_=wt(i,In))==null?void 0:_.scatter)??{},S=Y.useRef({}),C=Y.useRef(void 0),E=Y.useRef(void 0),R=h[0],O=y[0];Ye(()=>{i.update(D=>D.voronoi.isVoronoiEnabled===!o?D:I({},D,{voronoi:{isVoronoiEnabled:!o}}))},[i,o]),Ye(()=>{if(v||x===void 0||b===void 0||o)return;S.current={};let D=[];x.forEach(L=>{const{data:$,xAxisId:T,yAxisId:z}=b[L],X=m[T??R].scale,K=p[z??O].scale,it=Fs(X),ot=Fs(K),j=$.flatMap(({x:P,y:nt})=>{const ut=it(P),N=ot(nt);return a.isPointInside({x:ut,y:N})?[ut,N]:[-f.width,-f.height]});S.current[L]={seriesId:L,startIndex:D.length,endIndex:D.length+j.length},D=D.concat(j)}),C.current=new S0(D),E.current=void 0},[v,R,O,b,x,m,p,f,a,o]),Y.useEffect(()=>{if(t.current===null||o)return;const D=t.current;function L(X){const K=Wh(D,X);if(!a.isPointInside(K))return E.current=void 0,"outside-chart";if(!C.current)return"no-point-found";const it=C.current.find(K.x,K.y,E.current);if(it===void 0)return"no-point-found";E.current=it;const ot=Object.values(S.current).find(P=>2*it>=P.startIndex&&2*it<P.endIndex);if(ot===void 0)return"no-point-found";const j=(2*it-S.current[ot.seriesId].startIndex)/2;if(s!==void 0){const P=C.current.points[2*it],nt=C.current.points[2*it+1];if((P-K.x)**2+(nt-K.y)**2>s**2)return"outside-voronoi-max-radius"}return{seriesId:ot.seriesId,dataIndex:j}}const $=()=>{var X,K;(X=a.cleanInteraction)==null||X.call(a),(K=a.clearHighlight)==null||K.call(a)},T=X=>{var j,P,nt,ut,N,F;const K=L(X);if(K==="outside-chart"){(j=a.cleanInteraction)==null||j.call(a),(P=a.clearHighlight)==null||P.call(a);return}if(K==="outside-voronoi-max-radius"||K==="no-point-found"){(nt=a.removeItemInteraction)==null||nt.call(a),(ut=a.clearHighlight)==null||ut.call(a);return}const{seriesId:it,dataIndex:ot}=K;(N=a.setItemInteraction)==null||N.call(a,{type:"scatter",seriesId:it,dataIndex:ot}),(F=a.setHighlight)==null||F.call(a,{seriesId:it,dataIndex:ot})},z=X=>{if(!c)return;const K=L(X);if(typeof K=="string")return;const{seriesId:it,dataIndex:ot}=K;c(X,{type:"scatter",seriesId:it,dataIndex:ot})};return D.addEventListener("pointerleave",$),D.addEventListener("pointermove",T),D.addEventListener("click",z),()=>{D.removeEventListener("pointerleave",$),D.removeEventListener("pointermove",T),D.removeEventListener("click",z)}},[t,p,m,s,c,o,f,a]);const k=ui(()=>{i.update(D=>I({},D,{voronoi:I({},D.voronoi,{isVoronoiEnabled:!0})}))}),M=ui(()=>{i.update(D=>I({},D,{voronoi:I({},D.voronoi,{isVoronoiEnabled:!1})}))});return{instance:{enableVoronoi:k,disableVoronoi:M}}};Hc.getDefaultizedParams=({params:t})=>I({},t,{disableVoronoi:t.disableVoronoi??!t.series.some(n=>n.type==="scatter")});Hc.getInitialState=t=>({voronoi:{isVoronoiEnabled:!t.disableVoronoi}});Hc.params={disableVoronoi:!0,voronoiMaxRadius:!0,onItemClick:!0};const S2=[Jo,ml,Wo,gl,Hc],N8=["children","localeText","plugins","seriesConfig"],U8=t=>{const{children:n,localeText:i,plugins:a=S2,seriesConfig:o}=t,s=Qt(t,N8),c=Zo(),f={plugins:a,seriesConfig:o,pluginParams:I({theme:c.palette.mode},s)};return{children:n,localeText:i,chartProviderProps:f}};function j8(t){const{children:n,localeText:i,chartProviderProps:a}=U8(t);return H.jsx(E4,I({},a,{children:H.jsx(O5,{localeText:i,children:n})}))}function wb(t){const{isReversed:n,gradientId:i,size:a,direction:o,scale:s,colorMap:c}=t;return a<=0?null:H.jsx("linearGradient",{id:i,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${n?1:2}`]:`${a}px`,gradientUnits:"userSpaceOnUse",children:c.thresholds.map((f,m)=>{const h=s(f);if(h===void 0)return null;const p=n?1-h/a:h/a;return Number.isNaN(p)?null:H.jsxs(Y.Fragment,{children:[H.jsx("stop",{offset:p,stopColor:c.colors[m],stopOpacity:1}),H.jsx("stop",{offset:p,stopColor:c.colors[m+1],stopOpacity:1})]},f.toString()+m)})})}const $8=10;function Mb(t){const{gradientUnits:n,isReversed:i,gradientId:a,size:o,direction:s,scale:c,colorScale:f,colorMap:m}=t,h=[m.min??0,m.max??100],p=h.map(c).filter(x=>x!==void 0);if(p.length!==2)return null;const y=typeof h[0]=="number"?xe(h[0],h[1]):Lm(h[0],h[1]),v=Math.round((Math.max(...p)-Math.min(...p))/$8),b=`${h[0]}-${h[1]}-`;return H.jsx("linearGradient",{id:a,x1:"0",x2:"0",y1:"0",y2:"0",[`${s}${i?1:2}`]:n==="objectBoundingBox"?1:`${o}px`,gradientUnits:n??"userSpaceOnUse",children:Array.from({length:v+1},(x,S)=>{const C=y(S/v);if(C===void 0)return null;const E=c(C);if(E===void 0)return null;const R=i?1-E/o:E/o,O=f(C);return O===null?null:H.jsx("stop",{offset:R,stopColor:O,stopOpacity:1},b+S)})})}const B8=10,L8=t=>t?{x1:"1",x2:"0",y1:"0",y2:"0"}:{x1:"0",x2:"1",y1:"0",y2:"0"};function $h(t){const{isReversed:n,gradientId:i,colorScale:a,colorMap:o}=t,s=[o.min??0,o.max??100],c=typeof s[0]=="number"?xe(s[0],s[1]):Lm(s[0],s[1]),f=B8,m=`${s[0]}-${s[1]}-`;return H.jsx("linearGradient",I({id:i},L8(n),{gradientUnits:"objectBoundingBox",children:Array.from({length:f+1},(h,p)=>{const y=p/f,v=c(y);if(v===void 0)return null;const b=a(v);return b===null?null:H.jsx("stop",{offset:y,stopColor:b,stopOpacity:1},m+p)})}))}function H8(){const{top:t,height:n,bottom:i,left:a,width:o,right:s}=ar(),c=t+n+i,f=a+o+s,m=x5(),h=S5(),{xAxis:p,xAxisIds:y}=Xi(),{yAxis:v,yAxisIds:b}=Pi(),{zAxis:x,zAxisIds:S}=u0(),C=b.filter(O=>v[O].colorMap!==void 0),E=y.filter(O=>p[O].colorMap!==void 0),R=S.filter(O=>x[O].colorMap!==void 0);return C.length===0&&E.length===0&&R.length===0?null:H.jsxs("defs",{children:[C.map(O=>{const k=m(O),M=h(O),{colorMap:_,scale:D,colorScale:L,reverse:$}=v[O];return(_==null?void 0:_.type)==="piecewise"?H.jsx(wb,{isReversed:!$,scale:D,colorMap:_,size:c,gradientId:k,direction:"y"},k):(_==null?void 0:_.type)==="continuous"?H.jsxs(Y.Fragment,{children:[H.jsx(Mb,{isReversed:!$,scale:D,colorScale:L,colorMap:_,size:c,gradientId:k,direction:"y"}),H.jsx($h,{isReversed:$,colorScale:L,colorMap:_,gradientId:M})]},k):null}),E.map(O=>{const k=m(O),M=h(O),{colorMap:_,scale:D,reverse:L,colorScale:$}=p[O];return(_==null?void 0:_.type)==="piecewise"?H.jsx(wb,{isReversed:L,scale:D,colorMap:_,size:f,gradientId:k,direction:"x"},k):(_==null?void 0:_.type)==="continuous"?H.jsxs(Y.Fragment,{children:[H.jsx(Mb,{isReversed:L,scale:D,colorScale:$,colorMap:_,size:f,gradientId:k,direction:"x"}),H.jsx($h,{isReversed:L,colorScale:$,colorMap:_,gradientId:M})]},k):null}),R.map(O=>{const k=h(O),{colorMap:M,colorScale:_}=x[O];return(M==null?void 0:M.type)==="continuous"?H.jsx($h,{colorScale:_,colorMap:M,gradientId:k},k):null})]})}const Y8=["children","className","title","desc"],G8=he("svg",{name:"MuiChartsSurface",slot:"Root"})(({ownerState:t})=>({width:t.width??"100%",height:t.height??"100%",display:"flex",position:"relative",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden",touchAction:"none"})),q8=Y.forwardRef(function(n,i){const a=Jt(),{width:o,height:s}=wt(a,bO),{width:c,height:f}=wt(a,vO),m=s0(),h=Wa(m,i),p=ir({props:n,name:"MuiChartsSurface"}),{children:y,className:v,title:b,desc:x}=p,S=Qt(p,Y8),C=s>0&&o>0;return H.jsxs(G8,I({ownerState:{width:c,height:f},viewBox:`0 0 ${o} ${s}`,className:v},S,{ref:h,children:[b&&H.jsx("title",{children:b}),x&&H.jsx("desc",{children:x}),H.jsx(H8,{}),C&&y]}))}),I8=["width","height","margin","children","series","colors","dataset","desc","onAxisClick","disableVoronoi","voronoiMaxRadius","onItemClick","disableAxisListener","highlightedItem","onHighlightChange","sx","title","xAxis","yAxis","zAxis","rotationAxis","radiusAxis","skipAnimation","seriesConfig","plugins","localeText"],V8=(t,n)=>{const i=t,{width:a,height:o,margin:s,children:c,series:f,colors:m,dataset:h,desc:p,onAxisClick:y,disableVoronoi:v,voronoiMaxRadius:b,onItemClick:x,disableAxisListener:S,highlightedItem:C,onHighlightChange:E,sx:R,title:O,xAxis:k,yAxis:M,zAxis:_,rotationAxis:D,radiusAxis:L,skipAnimation:$,seriesConfig:T,plugins:z,localeText:X}=i,K=Qt(i,I8),it=I({title:O,desc:p,sx:R,ref:n},K);return{chartDataProviderProps:{margin:s,series:f,colors:m,dataset:h,disableAxisListener:S,highlightedItem:C,onHighlightChange:E,onAxisClick:y,disableVoronoi:v,voronoiMaxRadius:b,onItemClick:x,xAxis:k,yAxis:M,zAxis:_,rotationAxis:D,radiusAxis:L,skipAnimation:$,width:a,height:o,localeText:X,seriesConfig:T,plugins:z??S2},chartsSurfaceProps:it,children:c}},X8=(t,n)=>t==="vertical"?(n==null?void 0:n.horizontal)==="start"?"row":"row-reverse":(n==null?void 0:n.vertical)==="bottom"?"column-reverse":"column",P8=(t,n)=>{if(t==="vertical"){if((n==null?void 0:n.vertical)==="top")return"flex-start";if((n==null?void 0:n.vertical)==="bottom")return"flex-end"}if(t==="horizontal"){if((n==null?void 0:n.horizontal)==="start")return"flex-start";if((n==null?void 0:n.horizontal)==="end")return"flex-end"}return"center"},Z8=he("div",{name:"MuiChartsWrapper",slot:"Root"})(({ownerState:t})=>({display:"flex",flexDirection:X8(t.legendDirection,t.legendPosition),flex:1,justifyContent:"center",alignItems:P8(t.legendDirection,t.legendPosition)}));function Q8(t){const{children:n,sx:i}=t,a=C5();return H.jsx(Z8,{ref:a,ownerState:t,sx:i,children:n})}const K8=Y.forwardRef(function(n,i){var R,O;const a=ir({props:n,name:"MuiBarChart"}),{chartsWrapperProps:o,chartContainerProps:s,barPlotProps:c,gridProps:f,clipPathProps:m,clipPathGroupProps:h,overlayProps:p,chartsAxisProps:y,axisHighlightProps:v,legendProps:b,children:x}=h8(a),{chartDataProviderProps:S,chartsSurfaceProps:C}=V8(s,i),E=((R=a.slots)==null?void 0:R.tooltip)??RD;return H.jsx(j8,I({},S,{children:H.jsxs(Q8,I({},o,{children:[!a.hideLegend&&H.jsx(qD,I({},b)),H.jsxs(q8,I({},C,{children:[H.jsx(n8,I({},f)),H.jsxs("g",I({},h,{children:[H.jsx(J5,I({},c)),H.jsx(c8,I({},p)),H.jsx(ZD,I({},v))]})),H.jsx(Dk,I({},y)),!a.loading&&H.jsx(E,I({},(O=a.slotProps)==null?void 0:O.tooltip)),H.jsx(QD,I({},m)),x]}))]}))}))});new TextEncoder;const F8=new TextDecoder,W8=t=>new Uint8Array(t),J8=W8,tz=(t,n,i)=>{let a;return n===void 0?a=t:i===void 0?a=t.subarray(n):a=t.subarray(n,n+i),F8.decode(a)},A2=(t,n,i)=>a=>{const o=(1<<n)-1;let s="",c=0,f=0;for(let m=0;m<a.length;++m)for(f=f<<8|a[m],c+=8;c>n;)c-=n,s+=t[o&f>>c];if(c!==0&&(s+=t[o&f<<n-c]),i)for(;(s.length*n&7)!==0;)s+="=";return s},ez=(t,n,i)=>{const a={};for(let o=0;o<t.length;++o)a[t[o]]=o;return o=>{let s=o.length;for(;i&&o[s-1]==="=";)--s;const c=J8(s*n/8|0);let f=0,m=0,h=0;for(let p=0;p<s;++p){const y=a[o[p]];if(y===void 0)throw new SyntaxError("invalid base string");m=m<<n|y,f+=n,f>=8&&(f-=8,c[h++]=255&m>>f)}if(f>=n||(255&m<<8-f)!==0)throw new SyntaxError("unexpected end of data");return c}},T2="fromBase64"in Uint8Array,C2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nz=ez(C2,6,!1),rz=A2(C2,6,!1),iz=t=>Uint8Array.fromBase64(t,{alphabet:"base64",lastChunkHandling:"loose"}),az=t=>t.toBase64({alphabet:"base64",omitPadding:!0}),lz=T2?iz:nz,oz=T2?az:rz,uz="abcdefghijklmnopqrstuvwxyz234567",sz=A2(uz,5,!1),cz=1,fz=18,dz=85,hz=113,mz=Symbol.for("@atcute/cid-link-wrapper");var Nb;Nb=mz;class A0{constructor(n){Ln(this,"bytes");Ln(this,Nb,!0);this.bytes=n}get $link(){return`b${sz(this.bytes)}`}toJSON(){return{$link:this.$link}}}const gz=t=>new A0(t.bytes),pz=Symbol.for("@atcute/bytes-wrapper");var Ub;Ub=pz;class w2{constructor(n){Ln(this,"buf");Ln(this,Ub,!0);this.buf=n}get $bytes(){return oz(this.buf)}toJSON(){return{$bytes:this.$bytes}}}const yz=t=>new w2(t),Eb=t=>t instanceof w2?t.buf:lz(t.$bytes),Cr=(t,n)=>{if(n<24)return n;switch(n){case 24:return rc(t);case 25:return bz(t);case 26:return xz(t);case 27:return Sz(t)}throw new Error(`invalid argument encoding; got ${n}`)},vz=t=>{const i=(t.v??(t.v=new DataView(t.b.buffer,t.b.byteOffset,t.b.byteLength))).getFloat64(t.p);return t.p+=8,i},rc=t=>t.b[t.p++],bz=t=>{let n=t.p;const i=t.b,a=i[n++]<<8|i[n++];return t.p=n,a},xz=t=>{let n=t.p;const i=t.b,a=(i[n++]<<24|i[n++]<<16|i[n++]<<8|i[n++])>>>0;return t.p=n,a},Sz=t=>{let n=t.p;const i=t.b,a=(i[n++]<<24|i[n++]<<16|i[n++]<<8|i[n++])>>>0;if(a>2097151)throw new RangeError("can't decode integers beyond safe integer range");const o=(i[n++]<<24|i[n++]<<16|i[n++]<<8|i[n++])>>>0,s=a*2**32+o;return t.p=n,s},M2=(t,n)=>{const i=tz(t.b,t.p,n);return t.p+=n,i},Az=(t,n)=>{const i=t.b.subarray(t.p,t.p+=n);return yz(i)},Tz=(t,n)=>{const i=t.b.subarray(t.p+1,t.p+=n);return new A0(i)},Ob=t=>{const n=rc(t),i=n>>5;if(i!==3)throw new TypeError(`expected map to only have string keys; got type ${i}`);const a=n&31,o=Cr(t,a);return M2(t,o)},sm=t=>{const n=t.length,i={b:t,v:null,p:0};let a=null,o;t:for(;i.p<n;){const s=rc(i),c=s>>5,f=s&31;switch(c){case 0:{o=Cr(i,f);break}case 1:{o=-1-Cr(i,f);break}case 2:{o=Az(i,Cr(i,f));break}case 3:{o=M2(i,Cr(i,f));break}case 4:{const m=Cr(i,f),h=new Array(m);if(o=h,m>0){a={t:1,c:h,k:null,r:m,n:a};continue t}break}case 5:{const m=Cr(i,f),h={};if(o=h,m>0){const p=Ob(i);a={t:0,c:h,k:p,r:m,n:a};continue t}break}case 6:{const m=Cr(i,f);switch(m){case 42:{const h=rc(i),p=h>>5,y=h&31;if(p!==2)throw new TypeError(`expected cid-link to be type 2 (bytes); got type ${p}`);const v=Cr(i,y);o=Tz(i,v);break}default:throw new TypeError(`unsupported tag; got ${m}`)}break}case 7:{switch(f){case 20:case 21:{o=f===21;break}case 22:{o=null;break}case 27:{o=vz(i);break}default:throw new Error(`invalid simple value; got ${f}`)}break}default:throw new TypeError(`invalid type; got ${c}`)}for(;a!==null;){switch(a.t){case 0:{const m=a.c,h=a.k;h==="__proto__"&&Object.defineProperty(m,h,{enumerable:!0,configurable:!0,writable:!0}),m[h]=o;break}case 1:{const m=a.c,h=m.length-a.r;m[h]=o;break}}if(--a.r!==0){a.t===0&&(a.k=Ob(i));continue t}o=a.c,a=a.n}break}return[o,t.subarray(i.p)]},E2=t=>{const[n,i]=sm(t);if(i.length!==0)throw new Error("decoded value contains remainder");return n},Cz=t=>{let n=0;return{get pos(){return n},seek(i){if(i>t.length-n)throw new RangeError("unexpected end of data");n+=i},upto(i){return t.subarray(n,n+i)},exactly(i,a){if(i>t.length-n)throw new RangeError("unexpected end of data");const o=t.subarray(n,n+i);return a&&(n+=i),o}}},wz=128,_b=127,Mz=(t,n=0)=>{let i=t.length,a=0,o=0,s=n,c;do{if(s>=i)throw new RangeError("could not decode varint");c=t[s++],a+=o<28?(c&_b)<<o:(c&_b)*Math.pow(2,o),o+=7}while(c>=wz);return[a,s-n]},Ez=t=>{if(t===null||typeof t!="object")return!1;const{version:n,roots:i}=t;return n===1&&Array.isArray(i)&&i.every(a=>a instanceof A0)},O2=(t,n)=>{const i=t.upto(n);if(i.length===0)throw new RangeError("unexpected end of data");const[a,o]=Mz(i);return t.seek(o),a},Oz=t=>{const n=t.pos,i=O2(t,8);if(i===0)throw new RangeError("invalid car header; length=0");const a=t.pos,o=t.exactly(i,!0),s=E2(o);if(!Ez(s))throw new TypeError("expected a car v1 archive");const c=t.pos;return{data:s,headerStart:n,headerEnd:c,dataStart:a,dataEnd:c}},_z=t=>{const n=t.exactly(4,!1),i=n[0],a=n[1],o=n[2],s=n[3];if(i!==cz)throw new RangeError(`incorrect cid version (got v${i})`);if(a!==hz&&a!==dz)throw new RangeError(`incorrect cid codec (got 0x${a.toString(16)})`);if(o!==fz)throw new RangeError(`incorrect cid digest type (got 0x${o.toString(16)})`);if(s!==32&&s!==0)throw new RangeError(`incorrect cid digest size (got ${s})`);const c=t.exactly(4+s,!0),f=c.subarray(4,4+s);return{version:i,codec:a,digest:{codec:o,contents:f},bytes:c}},Rz=t=>({header:Oz(t),*iterate(){for(;t.upto(44).length>0;){const i=t.pos,a=O2(t,8),o=t.pos,s=_z(t),c=t.pos,f=a-(c-o),m=t.exactly(f,!0),h=c,p=t.pos;yield{cid:s,bytes:m,entryStart:i,entryEnd:p,cidStart:o,cidEnd:h,bytesStart:c,bytesEnd:p}}}}),kz=t=>{const n=Cz(t);return Rz(n)};let Dz=()=>({emit(t,...n){for(let i=this.events[t]||[],a=0,o=i.length;a<o;a++)i[a](...n)},events:{},on(t,n){var i;return((i=this.events)[t]||(i[t]=[])).push(n),()=>{var a;this.events[t]=(a=this.events[t])==null?void 0:a.filter(o=>n!==o)}}});class zz{constructor(n={}){Ln(this,"relay");Ln(this,"ws");Ln(this,"cursor","");Ln(this,"emitter",Dz());Ln(this,"autoReconnect");Ln(this,"reconnectTimeout");this.relay=n.relay??"wss://bsky.network",this.cursor=n.cursor??"",this.autoReconnect=n.autoReconnect??!0;const i=this.cursor?`?cursor=${this.cursor}`:"";if(typeof globalThis.WebSocket>"u"&&!n.ws)throw new Error(`No WebSocket implementation was found in your environment. You must provide an implementation as the \`ws\` option. 106 + */var ov;function NO(){if(ov)return gh;ov=1;var t=ic();function n(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}var i=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,o=t.useRef,u=t.useEffect,c=t.useMemo,f=t.useDebugValue;return gh.useSyncExternalStoreWithSelector=function(m,h,p,y,v){var b=o(null);if(b.current===null){var x={hasValue:!1,value:null};b.current=x}else x=b.current;b=c(function(){function C(M){if(!E){if(E=!0,_=M,M=y(M),v!==void 0&&x.hasValue){var R=x.value;if(v(R,M))return O=R}return O=M}if(R=O,i(_,M))return R;var D=y(M);return v!==void 0&&v(R,D)?(_=M,R):(_=M,O=D)}var E=!1,_,O,k=p===void 0?null:p;return[function(){return C(h())},k===null?void 0:function(){return C(k())}]},[h,p,y,v]);var S=a(m,b[0],b[1]);return u(function(){x.hasValue=!0,x.value=S},[S]),f(S),S},gh}var sv;function UO(){return sv||(sv=1,mh.exports=NO()),mh.exports}var jO=UO();const $O=Object.is,wt=(t,n,i=void 0,a=$O)=>{const o=u=>n(u,i);return jO.useSyncExternalStoreWithSelector(t.subscribe,t.getSnapshot,t.getSnapshot,o,a)},ph={minStart:0,maxEnd:100,step:5,minSpan:10,maxSpan:100,panning:!0,filterMode:"keep",slider:{enabled:!1}},Um=(t,n,i)=>{if(t)return t===!0?I({axisId:n,axisDirection:i},ph):I({axisId:n,axisDirection:i},ph,t,{slider:I({},ph.slider,t.slider)})};function kx(t,n){const i={top:0,bottom:0,none:0};return(t&&t.length>0?t:[{id:Dm,scaleType:"linear"}]).map((u,c)=>{var b;const f=u.dataKey,m=c===0?"bottom":"none",h=u.position??m,p=sO+(u.label?Tx:0),y=u.id??`defaultized-x-axis-${c}`,v=I({offset:i[h]},u,{id:y,position:h,height:u.height??p,zoom:Um(u.zoom,y,"x")});if(h!=="none"&&(i[h]+=v.height,(b=v.zoom)!=null&&b.slider.enabled&&(i[h]+=dl)),f===void 0||u.data!==void 0)return v;if(n===void 0)throw new Error("MUI X Charts: x-axis uses `dataKey` but no `dataset` is provided.");return I({},v,{data:n.map(x=>x[f])})})}function Dx(t,n){const i={right:0,left:0,none:0};return(t&&t.length>0?t:[{id:zm,scaleType:"linear"}]).map((u,c)=>{var b;const f=u.dataKey,m=c===0?"left":"none",h=u.position??m,p=oO+(u.label?Tx:0),y=u.id??`defaultized-y-axis-${c}`,v=I({offset:i[h]},u,{id:y,position:h,width:u.width??p,zoom:Um(u.zoom,y,"y")});if(h!=="none"&&(i[h]+=v.width,(b=v.zoom)!=null&&b.slider.enabled&&(i[h]+=dl)),f===void 0||u.data!==void 0)return v;if(n===void 0)throw new Error("MUI X Charts: y-axis uses `dataKey` but no `dataset` is provided.");return I({},v,{data:n.map(x=>x[f])})})}function zu(t,n){return t==null||n==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function BO(t,n){return t==null||n==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function jm(t){let n,i,a;t.length!==2?(n=zu,i=(f,m)=>zu(t(f),m),a=(f,m)=>t(f)-m):(n=t===zu||t===BO?t:LO,i=t,a=t);function o(f,m,h=0,p=f.length){if(h<p){if(n(m,m)!==0)return p;do{const y=h+p>>>1;i(f[y],m)<0?h=y+1:p=y}while(h<p)}return h}function u(f,m,h=0,p=f.length){if(h<p){if(n(m,m)!==0)return p;do{const y=h+p>>>1;i(f[y],m)<=0?h=y+1:p=y}while(h<p)}return h}function c(f,m,h=0,p=f.length){const y=o(f,m,h,p-1);return y>h&&a(f[y-1],m)>-a(f[y],m)?y-1:y}return{left:o,center:c,right:u}}function LO(){return 0}function HO(t){return t===null?NaN:+t}const YO=jm(zu),zx=YO.right;jm(HO).center;class uv extends Map{constructor(n,i=IO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:i}}),n!=null)for(const[a,o]of n)this.set(a,o)}get(n){return super.get(cv(this,n))}has(n){return super.has(cv(this,n))}set(n,i){return super.set(GO(this,n),i)}delete(n){return super.delete(qO(this,n))}}function cv({_intern:t,_key:n},i){const a=n(i);return t.has(a)?t.get(a):i}function GO({_intern:t,_key:n},i){const a=n(i);return t.has(a)?t.get(a):(t.set(a,i),i)}function qO({_intern:t,_key:n},i){const a=n(i);return t.has(a)&&(i=t.get(a),t.delete(a)),i}function IO(t){return t!==null&&typeof t=="object"?t.valueOf():t}const VO=Math.sqrt(50),XO=Math.sqrt(10),PO=Math.sqrt(2);function Bu(t,n,i){const a=(n-t)/Math.max(0,i),o=Math.floor(Math.log10(a)),u=a/Math.pow(10,o),c=u>=VO?10:u>=XO?5:u>=PO?2:1;let f,m,h;return o<0?(h=Math.pow(10,-o)/c,f=Math.round(t*h),m=Math.round(n*h),f/h<t&&++f,m/h>n&&--m,h=-h):(h=Math.pow(10,o)*c,f=Math.round(t/h),m=Math.round(n/h),f*h<t&&++f,m*h>n&&--m),m<f&&.5<=i&&i<2?Bu(t,n,i*2):[f,m,h]}function Xh(t,n,i){if(n=+n,t=+t,i=+i,!(i>0))return[];if(t===n)return[t];const a=n<t,[o,u,c]=a?Bu(n,t,i):Bu(t,n,i);if(!(u>=o))return[];const f=u-o+1,m=new Array(f);if(a)if(c<0)for(let h=0;h<f;++h)m[h]=(u-h)/-c;else for(let h=0;h<f;++h)m[h]=(u-h)*c;else if(c<0)for(let h=0;h<f;++h)m[h]=(o+h)/-c;else for(let h=0;h<f;++h)m[h]=(o+h)*c;return m}function Ph(t,n,i){return n=+n,t=+t,i=+i,Bu(t,n,i)[2]}function Zh(t,n,i){n=+n,t=+t,i=+i;const a=n<t,o=a?Ph(n,t,i):Ph(t,n,i);return(a?-1:1)*(o<0?1/-o:o)}function ZO(t,n,i){t=+t,n=+n,i=(o=arguments.length)<2?(n=t,t=0,1):o<3?1:+i;for(var a=-1,o=Math.max(0,Math.ceil((n-t)/i))|0,u=new Array(o);++a<o;)u[a]=t+a*i;return u}function ci(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t);break}return this}function QO(t,n){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof n=="function"?this.interpolator(n):this.range(n);break}}return this}const fv=Symbol("implicit");function Lu(){var t=new uv,n=[],i=[],a=fv;function o(u){let c=t.get(u);if(c===void 0){if(a!==fv)return a;t.set(u,c=n.push(u)-1)}return i[c%i.length]}return o.domain=function(u){if(!arguments.length)return n.slice();n=[],t=new uv;for(const c of u)t.has(c)||t.set(c,n.push(c)-1);return o},o.range=function(u){return arguments.length?(i=Array.from(u),o):i.slice()},o.unknown=function(u){return arguments.length?(a=u,o):a},o.copy=function(){return Lu(n,i).unknown(a)},ci.apply(o,arguments),o}function Ac(){var t=Lu().unknown(void 0),n=t.domain,i=t.range,a=0,o=1,u,c,f=!1,m=0,h=0,p=.5;delete t.unknown;function y(){var v=n().length,b=o<a,x=b?o:a,S=b?a:o;u=(S-x)/Math.max(1,v-m+h*2),f&&(u=Math.floor(u)),x+=(S-x-u*(v-m))*p,c=u*(1-m),f&&(x=Math.round(x),c=Math.round(c));var C=ZO(v).map(function(E){return x+u*E});return i(b?C.reverse():C)}return t.domain=function(v){return arguments.length?(n(v),y()):n()},t.range=function(v){return arguments.length?([a,o]=v,a=+a,o=+o,y()):[a,o]},t.rangeRound=function(v){return[a,o]=v,a=+a,o=+o,f=!0,y()},t.bandwidth=function(){return c},t.step=function(){return u},t.round=function(v){return arguments.length?(f=!!v,y()):f},t.padding=function(v){return arguments.length?(m=Math.min(1,h=+v),y()):m},t.paddingInner=function(v){return arguments.length?(m=Math.min(1,v),y()):m},t.paddingOuter=function(v){return arguments.length?(h=+v,y()):h},t.align=function(v){return arguments.length?(p=Math.max(0,Math.min(1,v)),y()):p},t.copy=function(){return Ac(n(),[a,o]).round(f).paddingInner(m).paddingOuter(h).align(p)},ci.apply(y(),arguments)}function Nx(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Nx(n())},t}function Ux(){return Nx(Ac.apply(null,arguments).paddingInner(1))}function $m(t,n,i){t.prototype=n.prototype=i,i.constructor=t}function jx(t,n){var i=Object.create(t.prototype);for(var a in n)i[a]=n[a];return i}function Ko(){}var jo=.7,Hu=1/jo,Za="\\s*([+-]?\\d+)\\s*",$o="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",er="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",KO=/^#([0-9a-f]{3,8})$/,FO=new RegExp(`^rgb\\(${Za},${Za},${Za}\\)$`),WO=new RegExp(`^rgb\\(${er},${er},${er}\\)$`),JO=new RegExp(`^rgba\\(${Za},${Za},${Za},${$o}\\)$`),t3=new RegExp(`^rgba\\(${er},${er},${er},${$o}\\)$`),e3=new RegExp(`^hsl\\(${$o},${er},${er}\\)$`),n3=new RegExp(`^hsla\\(${$o},${er},${er},${$o}\\)$`),dv={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};$m(Ko,Bo,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:hv,formatHex:hv,formatHex8:r3,formatHsl:i3,formatRgb:mv,toString:mv});function hv(){return this.rgb().formatHex()}function r3(){return this.rgb().formatHex8()}function i3(){return $x(this).formatHsl()}function mv(){return this.rgb().formatRgb()}function Bo(t){var n,i;return t=(t+"").trim().toLowerCase(),(n=KO.exec(t))?(i=n[1].length,n=parseInt(n[1],16),i===6?gv(n):i===3?new We(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):i===8?Su(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):i===4?Su(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=FO.exec(t))?new We(n[1],n[2],n[3],1):(n=WO.exec(t))?new We(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=JO.exec(t))?Su(n[1],n[2],n[3],n[4]):(n=t3.exec(t))?Su(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=e3.exec(t))?vv(n[1],n[2]/100,n[3]/100,1):(n=n3.exec(t))?vv(n[1],n[2]/100,n[3]/100,n[4]):dv.hasOwnProperty(t)?gv(dv[t]):t==="transparent"?new We(NaN,NaN,NaN,0):null}function gv(t){return new We(t>>16&255,t>>8&255,t&255,1)}function Su(t,n,i,a){return a<=0&&(t=n=i=NaN),new We(t,n,i,a)}function a3(t){return t instanceof Ko||(t=Bo(t)),t?(t=t.rgb(),new We(t.r,t.g,t.b,t.opacity)):new We}function Qh(t,n,i,a){return arguments.length===1?a3(t):new We(t,n,i,a??1)}function We(t,n,i,a){this.r=+t,this.g=+n,this.b=+i,this.opacity=+a}$m(We,Qh,jx(Ko,{brighter(t){return t=t==null?Hu:Math.pow(Hu,t),new We(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?jo:Math.pow(jo,t),new We(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new We(zi(this.r),zi(this.g),zi(this.b),Yu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:pv,formatHex:pv,formatHex8:l3,formatRgb:yv,toString:yv}));function pv(){return`#${_i(this.r)}${_i(this.g)}${_i(this.b)}`}function l3(){return`#${_i(this.r)}${_i(this.g)}${_i(this.b)}${_i((isNaN(this.opacity)?1:this.opacity)*255)}`}function yv(){const t=Yu(this.opacity);return`${t===1?"rgb(":"rgba("}${zi(this.r)}, ${zi(this.g)}, ${zi(this.b)}${t===1?")":`, ${t})`}`}function Yu(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function zi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function _i(t){return t=zi(t),(t<16?"0":"")+t.toString(16)}function vv(t,n,i,a){return a<=0?t=n=i=NaN:i<=0||i>=1?t=n=NaN:n<=0&&(t=NaN),new Yn(t,n,i,a)}function $x(t){if(t instanceof Yn)return new Yn(t.h,t.s,t.l,t.opacity);if(t instanceof Ko||(t=Bo(t)),!t)return new Yn;if(t instanceof Yn)return t;t=t.rgb();var n=t.r/255,i=t.g/255,a=t.b/255,o=Math.min(n,i,a),u=Math.max(n,i,a),c=NaN,f=u-o,m=(u+o)/2;return f?(n===u?c=(i-a)/f+(i<a)*6:i===u?c=(a-n)/f+2:c=(n-i)/f+4,f/=m<.5?u+o:2-u-o,c*=60):f=m>0&&m<1?0:c,new Yn(c,f,m,t.opacity)}function o3(t,n,i,a){return arguments.length===1?$x(t):new Yn(t,n,i,a??1)}function Yn(t,n,i,a){this.h=+t,this.s=+n,this.l=+i,this.opacity=+a}$m(Yn,o3,jx(Ko,{brighter(t){return t=t==null?Hu:Math.pow(Hu,t),new Yn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?jo:Math.pow(jo,t),new Yn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,o=2*i-a;return new We(yh(t>=240?t-240:t+120,o,a),yh(t,o,a),yh(t<120?t+240:t-120,o,a),this.opacity)},clamp(){return new Yn(bv(this.h),Au(this.s),Au(this.l),Yu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Yu(this.opacity);return`${t===1?"hsl(":"hsla("}${bv(this.h)}, ${Au(this.s)*100}%, ${Au(this.l)*100}%${t===1?")":`, ${t})`}`}}));function bv(t){return t=(t||0)%360,t<0?t+360:t}function Au(t){return Math.max(0,Math.min(1,t||0))}function yh(t,n,i){return(t<60?n+(i-n)*t/60:t<180?i:t<240?n+(i-n)*(240-t)/60:n)*255}const Bm=t=>()=>t;function s3(t,n){return function(i){return t+i*n}}function u3(t,n,i){return t=Math.pow(t,i),n=Math.pow(n,i)-t,i=1/i,function(a){return Math.pow(t+a*n,i)}}function c3(t){return(t=+t)==1?Bx:function(n,i){return i-n?u3(n,i,t):Bm(isNaN(n)?i:n)}}function Bx(t,n){var i=n-t;return i?s3(t,i):Bm(isNaN(t)?n:t)}const xv=function t(n){var i=c3(n);function a(o,u){var c=i((o=Qh(o)).r,(u=Qh(u)).r),f=i(o.g,u.g),m=i(o.b,u.b),h=Bx(o.opacity,u.opacity);return function(p){return o.r=c(p),o.g=f(p),o.b=m(p),o.opacity=h(p),o+""}}return a.gamma=t,a}(1);function f3(t,n){n||(n=[]);var i=t?Math.min(n.length,t.length):0,a=n.slice(),o;return function(u){for(o=0;o<i;++o)a[o]=t[o]*(1-u)+n[o]*u;return a}}function d3(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function h3(t,n){var i=n?n.length:0,a=t?Math.min(i,t.length):0,o=new Array(a),u=new Array(i),c;for(c=0;c<a;++c)o[c]=Tc(t[c],n[c]);for(;c<i;++c)u[c]=n[c];return function(f){for(c=0;c<a;++c)u[c]=o[c](f);return u}}function Lm(t,n){var i=new Date;return t=+t,n=+n,function(a){return i.setTime(t*(1-a)+n*a),i}}function xe(t,n){return t=+t,n=+n,function(i){return t*(1-i)+n*i}}function m3(t,n){var i={},a={},o;(t===null||typeof t!="object")&&(t={}),(n===null||typeof n!="object")&&(n={});for(o in n)o in t?i[o]=Tc(t[o],n[o]):a[o]=n[o];return function(u){for(o in i)a[o]=i[o](u);return a}}var Kh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vh=new RegExp(Kh.source,"g");function g3(t){return function(){return t}}function p3(t){return function(n){return t(n)+""}}function y3(t,n){var i=Kh.lastIndex=vh.lastIndex=0,a,o,u,c=-1,f=[],m=[];for(t=t+"",n=n+"";(a=Kh.exec(t))&&(o=vh.exec(n));)(u=o.index)>i&&(u=n.slice(i,u),f[c]?f[c]+=u:f[++c]=u),(a=a[0])===(o=o[0])?f[c]?f[c]+=o:f[++c]=o:(f[++c]=null,m.push({i:c,x:xe(a,o)})),i=vh.lastIndex;return i<n.length&&(u=n.slice(i),f[c]?f[c]+=u:f[++c]=u),f.length<2?m[0]?p3(m[0].x):g3(n):(n=m.length,function(h){for(var p=0,y;p<n;++p)f[(y=m[p]).i]=y.x(h);return f.join("")})}function Tc(t,n){var i=typeof n,a;return n==null||i==="boolean"?Bm(n):(i==="number"?xe:i==="string"?(a=Bo(n))?(n=a,xv):y3:n instanceof Bo?xv:n instanceof Date?Lm:d3(n)?f3:Array.isArray(n)?h3:typeof n.valueOf!="function"&&typeof n.toString!="function"||isNaN(n)?m3:xe)(t,n)}function Lx(t,n){return t=+t,n=+n,function(i){return Math.round(t*(1-i)+n*i)}}function v3(t){return function(){return t}}function b3(t){return+t}var Sv=[0,1];function En(t){return t}function Fh(t,n){return(n-=t=+t)?function(i){return(i-t)/n}:v3(isNaN(n)?NaN:.5)}function x3(t,n){var i;return t>n&&(i=t,t=n,n=i),function(a){return Math.max(t,Math.min(n,a))}}function S3(t,n,i){var a=t[0],o=t[1],u=n[0],c=n[1];return o<a?(a=Fh(o,a),u=i(c,u)):(a=Fh(a,o),u=i(u,c)),function(f){return u(a(f))}}function A3(t,n,i){var a=Math.min(t.length,n.length)-1,o=new Array(a),u=new Array(a),c=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++c<a;)o[c]=Fh(t[c],t[c+1]),u[c]=i(n[c],n[c+1]);return function(f){var m=zx(t,f,1,a)-1;return u[m](o[m](f))}}function Cc(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Hm(){var t=Sv,n=Sv,i=Tc,a,o,u,c=En,f,m,h;function p(){var v=Math.min(t.length,n.length);return c!==En&&(c=x3(t[0],t[v-1])),f=v>2?A3:S3,m=h=null,y}function y(v){return v==null||isNaN(v=+v)?u:(m||(m=f(t.map(a),n,i)))(a(c(v)))}return y.invert=function(v){return c(o((h||(h=f(n,t.map(a),xe)))(v)))},y.domain=function(v){return arguments.length?(t=Array.from(v,b3),p()):t.slice()},y.range=function(v){return arguments.length?(n=Array.from(v),p()):n.slice()},y.rangeRound=function(v){return n=Array.from(v),i=Lx,p()},y.clamp=function(v){return arguments.length?(c=v?!0:En,p()):c!==En},y.interpolate=function(v){return arguments.length?(i=v,p()):i},y.unknown=function(v){return arguments.length?(u=v,y):u},function(v,b){return a=v,o=b,p()}}function Hx(){return Hm()(En,En)}function T3(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Gu(t,n){if((i=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var i,a=t.slice(0,i);return[a.length>1?a[0]+a.slice(2):a,+t.slice(i+1)]}function Ja(t){return t=Gu(Math.abs(t)),t?t[1]:NaN}function C3(t,n){return function(i,a){for(var o=i.length,u=[],c=0,f=t[0],m=0;o>0&&f>0&&(m+f+1>a&&(f=Math.max(1,a-m)),u.push(i.substring(o-=f,o+f)),!((m+=f+1)>a));)f=t[c=(c+1)%t.length];return u.reverse().join(n)}}function w3(t){return function(n){return n.replace(/[0-9]/g,function(i){return t[+i]})}}var M3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Lo(t){if(!(n=M3.exec(t)))throw new Error("invalid format: "+t);var n;return new Ym({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}Lo.prototype=Ym.prototype;function Ym(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Ym.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function E3(t){t:for(var n=t.length,i=1,a=-1,o;i<n;++i)switch(t[i]){case".":a=o=i;break;case"0":a===0&&(a=i),o=i;break;default:if(!+t[i])break t;a>0&&(a=0);break}return a>0?t.slice(0,a)+t.slice(o+1):t}var Yx;function O3(t,n){var i=Gu(t,n);if(!i)return t+"";var a=i[0],o=i[1],u=o-(Yx=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,c=a.length;return u===c?a:u>c?a+new Array(u-c+1).join("0"):u>0?a.slice(0,u)+"."+a.slice(u):"0."+new Array(1-u).join("0")+Gu(t,Math.max(0,n+u-1))[0]}function Av(t,n){var i=Gu(t,n);if(!i)return t+"";var a=i[0],o=i[1];return o<0?"0."+new Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+new Array(o-a.length+2).join("0")}const Tv={"%":(t,n)=>(t*100).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:T3,e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Av(t*100,n),r:Av,s:O3,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Cv(t){return t}var wv=Array.prototype.map,Mv=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function R3(t){var n=t.grouping===void 0||t.thousands===void 0?Cv:C3(wv.call(t.grouping,Number),t.thousands+""),i=t.currency===void 0?"":t.currency[0]+"",a=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",u=t.numerals===void 0?Cv:w3(wv.call(t.numerals,String)),c=t.percent===void 0?"%":t.percent+"",f=t.minus===void 0?"−":t.minus+"",m=t.nan===void 0?"NaN":t.nan+"";function h(y){y=Lo(y);var v=y.fill,b=y.align,x=y.sign,S=y.symbol,C=y.zero,E=y.width,_=y.comma,O=y.precision,k=y.trim,M=y.type;M==="n"?(_=!0,M="g"):Tv[M]||(O===void 0&&(O=12),k=!0,M="g"),(C||v==="0"&&b==="=")&&(C=!0,v="0",b="=");var R=S==="$"?i:S==="#"&&/[boxX]/.test(M)?"0"+M.toLowerCase():"",D=S==="$"?a:/[%p]/.test(M)?c:"",L=Tv[M],$=/[defgprs%]/.test(M);O=O===void 0?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function T(z){var X=R,K=D,it,ot,j;if(M==="c")K=L(z)+K,z="";else{z=+z;var P=z<0||1/z<0;if(z=isNaN(z)?m:L(Math.abs(z),O),k&&(z=E3(z)),P&&+z==0&&x!=="+"&&(P=!1),X=(P?x==="("?x:f:x==="-"||x==="("?"":x)+X,K=(M==="s"?Mv[8+Yx/3]:"")+K+(P&&x==="("?")":""),$){for(it=-1,ot=z.length;++it<ot;)if(j=z.charCodeAt(it),48>j||j>57){K=(j===46?o+z.slice(it+1):z.slice(it))+K,z=z.slice(0,it);break}}}_&&!C&&(z=n(z,1/0));var nt=X.length+z.length+K.length,st=nt<E?new Array(E-nt+1).join(v):"";switch(_&&C&&(z=n(st+z,st.length?E-K.length:1/0),st=""),b){case"<":z=X+z+K+st;break;case"=":z=X+st+z+K;break;case"^":z=st.slice(0,nt=st.length>>1)+X+z+K+st.slice(nt);break;default:z=st+X+z+K;break}return u(z)}return T.toString=function(){return y+""},T}function p(y,v){var b=h((y=Lo(y),y.type="f",y)),x=Math.max(-8,Math.min(8,Math.floor(Ja(v)/3)))*3,S=Math.pow(10,-x),C=Mv[8+x/3];return function(E){return b(S*E)+C}}return{format:h,formatPrefix:p}}var Tu,Gm,Gx;_3({thousands:",",grouping:[3],currency:["$",""]});function _3(t){return Tu=R3(t),Gm=Tu.format,Gx=Tu.formatPrefix,Tu}function k3(t){return Math.max(0,-Ja(Math.abs(t)))}function D3(t,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ja(n)/3)))*3-Ja(Math.abs(t)))}function z3(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Ja(n)-Ja(t))+1}function N3(t,n,i,a){var o=Zh(t,n,i),u;switch(a=Lo(a??",f"),a.type){case"s":{var c=Math.max(Math.abs(t),Math.abs(n));return a.precision==null&&!isNaN(u=D3(o,c))&&(a.precision=u),Gx(a,c)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(u=z3(o,Math.max(Math.abs(t),Math.abs(n))))&&(a.precision=u-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(u=k3(o))&&(a.precision=u-(a.type==="%")*2);break}}return Gm(a)}function qm(t){var n=t.domain;return t.ticks=function(i){var a=n();return Xh(a[0],a[a.length-1],i??10)},t.tickFormat=function(i,a){var o=n();return N3(o[0],o[o.length-1],i??10,a)},t.nice=function(i){i==null&&(i=10);var a=n(),o=0,u=a.length-1,c=a[o],f=a[u],m,h,p=10;for(f<c&&(h=c,c=f,f=h,h=o,o=u,u=h);p-- >0;){if(h=Ph(c,f,i),h===m)return a[o]=c,a[u]=f,n(a);if(h>0)c=Math.floor(c/h)*h,f=Math.ceil(f/h)*h;else if(h<0)c=Math.ceil(c*h)/h,f=Math.floor(f*h)/h;else break;m=h}return t},t}function qx(){var t=Hx();return t.copy=function(){return Cc(t,qx())},ci.apply(t,arguments),qm(t)}function Ix(t,n){t=t.slice();var i=0,a=t.length-1,o=t[i],u=t[a],c;return u<o&&(c=i,i=a,a=c,c=o,o=u,u=c),t[i]=n.floor(o),t[a]=n.ceil(u),t}function Ev(t){return Math.log(t)}function Ov(t){return Math.exp(t)}function U3(t){return-Math.log(-t)}function j3(t){return-Math.exp(-t)}function $3(t){return isFinite(t)?+("1e"+t):t<0?0:t}function B3(t){return t===10?$3:t===Math.E?Math.exp:n=>Math.pow(t,n)}function L3(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),n=>Math.log(n)/t)}function Rv(t){return(n,i)=>-t(-n,i)}function H3(t){const n=t(Ev,Ov),i=n.domain;let a=10,o,u;function c(){return o=L3(a),u=B3(a),i()[0]<0?(o=Rv(o),u=Rv(u),t(U3,j3)):t(Ev,Ov),n}return n.base=function(f){return arguments.length?(a=+f,c()):a},n.domain=function(f){return arguments.length?(i(f),c()):i()},n.ticks=f=>{const m=i();let h=m[0],p=m[m.length-1];const y=p<h;y&&([h,p]=[p,h]);let v=o(h),b=o(p),x,S;const C=f==null?10:+f;let E=[];if(!(a%1)&&b-v<C){if(v=Math.floor(v),b=Math.ceil(b),h>0){for(;v<=b;++v)for(x=1;x<a;++x)if(S=v<0?x/u(-v):x*u(v),!(S<h)){if(S>p)break;E.push(S)}}else for(;v<=b;++v)for(x=a-1;x>=1;--x)if(S=v>0?x/u(-v):x*u(v),!(S<h)){if(S>p)break;E.push(S)}E.length*2<C&&(E=Xh(h,p,C))}else E=Xh(v,b,Math.min(b-v,C)).map(u);return y?E.reverse():E},n.tickFormat=(f,m)=>{if(f==null&&(f=10),m==null&&(m=a===10?"s":","),typeof m!="function"&&(!(a%1)&&(m=Lo(m)).precision==null&&(m.trim=!0),m=Gm(m)),f===1/0)return m;const h=Math.max(1,a*f/n.ticks().length);return p=>{let y=p/u(Math.round(o(p)));return y*a<a-.5&&(y*=a),y<=h?m(p):""}},n.nice=()=>i(Ix(i(),{floor:f=>u(Math.floor(o(f))),ceil:f=>u(Math.ceil(o(f)))})),n}function Vx(){const t=H3(Hm()).domain([1,10]);return t.copy=()=>Cc(t,Vx()).base(t.base()),ci.apply(t,arguments),t}function _v(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Y3(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function G3(t){return t<0?-t*t:t*t}function q3(t){var n=t(En,En),i=1;function a(){return i===1?t(En,En):i===.5?t(Y3,G3):t(_v(i),_v(1/i))}return n.exponent=function(o){return arguments.length?(i=+o,a()):i},qm(n)}function Im(){var t=q3(Hm());return t.copy=function(){return Cc(t,Im()).exponent(t.exponent())},ci.apply(t,arguments),t}function I3(){return Im.apply(null,arguments).exponent(.5)}function Xx(){var t=[.5],n=[0,1],i,a=1;function o(u){return u!=null&&u<=u?n[zx(t,u,0,a)]:i}return o.domain=function(u){return arguments.length?(t=Array.from(u),a=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(u){return arguments.length?(n=Array.from(u),a=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(u){var c=n.indexOf(u);return[t[c-1],t[c]]},o.unknown=function(u){return arguments.length?(i=u,o):i},o.copy=function(){return Xx().domain(t).range(n).unknown(i)},ci.apply(o,arguments)}const bh=new Date,xh=new Date;function Se(t,n,i,a){function o(u){return t(u=arguments.length===0?new Date:new Date(+u)),u}return o.floor=u=>(t(u=new Date(+u)),u),o.ceil=u=>(t(u=new Date(u-1)),n(u,1),t(u),u),o.round=u=>{const c=o(u),f=o.ceil(u);return u-c<f-u?c:f},o.offset=(u,c)=>(n(u=new Date(+u),c==null?1:Math.floor(c)),u),o.range=(u,c,f)=>{const m=[];if(u=o.ceil(u),f=f==null?1:Math.floor(f),!(u<c)||!(f>0))return m;let h;do m.push(h=new Date(+u)),n(u,f),t(u);while(h<u&&u<c);return m},o.filter=u=>Se(c=>{if(c>=c)for(;t(c),!u(c);)c.setTime(c-1)},(c,f)=>{if(c>=c)if(f<0)for(;++f<=0;)for(;n(c,-1),!u(c););else for(;--f>=0;)for(;n(c,1),!u(c););}),i&&(o.count=(u,c)=>(bh.setTime(+u),xh.setTime(+c),t(bh),t(xh),Math.floor(i(bh,xh))),o.every=u=>(u=Math.floor(u),!isFinite(u)||!(u>0)?null:u>1?o.filter(a?c=>a(c)%u===0:c=>o.count(0,c)%u===0):o)),o}const qu=Se(()=>{},(t,n)=>{t.setTime(+t+n)},(t,n)=>n-t);qu.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Se(n=>{n.setTime(Math.floor(n/t)*t)},(n,i)=>{n.setTime(+n+i*t)},(n,i)=>(i-n)/t):qu);qu.range;const wr=1e3,On=wr*60,Mr=On*60,kr=Mr*24,Vm=kr*7,kv=kr*30,Sh=kr*365,ki=Se(t=>{t.setTime(t-t.getMilliseconds())},(t,n)=>{t.setTime(+t+n*wr)},(t,n)=>(n-t)/wr,t=>t.getUTCSeconds());ki.range;const Xm=Se(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*wr)},(t,n)=>{t.setTime(+t+n*On)},(t,n)=>(n-t)/On,t=>t.getMinutes());Xm.range;const Pm=Se(t=>{t.setUTCSeconds(0,0)},(t,n)=>{t.setTime(+t+n*On)},(t,n)=>(n-t)/On,t=>t.getUTCMinutes());Pm.range;const Zm=Se(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*wr-t.getMinutes()*On)},(t,n)=>{t.setTime(+t+n*Mr)},(t,n)=>(n-t)/Mr,t=>t.getHours());Zm.range;const Qm=Se(t=>{t.setUTCMinutes(0,0,0)},(t,n)=>{t.setTime(+t+n*Mr)},(t,n)=>(n-t)/Mr,t=>t.getUTCHours());Qm.range;const Fo=Se(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*On)/kr,t=>t.getDate()-1);Fo.range;const wc=Se(t=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/kr,t=>t.getUTCDate()-1);wc.range;const Px=Se(t=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/kr,t=>Math.floor(t/kr));Px.range;function Hi(t){return Se(n=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},(n,i)=>{n.setDate(n.getDate()+i*7)},(n,i)=>(i-n-(i.getTimezoneOffset()-n.getTimezoneOffset())*On)/Vm)}const Mc=Hi(0),Iu=Hi(1),V3=Hi(2),X3=Hi(3),tl=Hi(4),P3=Hi(5),Z3=Hi(6);Mc.range;Iu.range;V3.range;X3.range;tl.range;P3.range;Z3.range;function Yi(t){return Se(n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},(n,i)=>{n.setUTCDate(n.getUTCDate()+i*7)},(n,i)=>(i-n)/Vm)}const Ec=Yi(0),Vu=Yi(1),Q3=Yi(2),K3=Yi(3),el=Yi(4),F3=Yi(5),W3=Yi(6);Ec.range;Vu.range;Q3.range;K3.range;el.range;F3.range;W3.range;const Km=Se(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,n)=>{t.setMonth(t.getMonth()+n)},(t,n)=>n.getMonth()-t.getMonth()+(n.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Km.range;const Fm=Se(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)},(t,n)=>n.getUTCMonth()-t.getUTCMonth()+(n.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Fm.range;const Dr=Se(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n)},(t,n)=>n.getFullYear()-t.getFullYear(),t=>t.getFullYear());Dr.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Se(n=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},(n,i)=>{n.setFullYear(n.getFullYear()+i*t)});Dr.range;const zr=Se(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)},(t,n)=>n.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());zr.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Se(n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,i)=>{n.setUTCFullYear(n.getUTCFullYear()+i*t)});zr.range;function Zx(t,n,i,a,o,u){const c=[[ki,1,wr],[ki,5,5*wr],[ki,15,15*wr],[ki,30,30*wr],[u,1,On],[u,5,5*On],[u,15,15*On],[u,30,30*On],[o,1,Mr],[o,3,3*Mr],[o,6,6*Mr],[o,12,12*Mr],[a,1,kr],[a,2,2*kr],[i,1,Vm],[n,1,kv],[n,3,3*kv],[t,1,Sh]];function f(h,p,y){const v=p<h;v&&([h,p]=[p,h]);const b=y&&typeof y.range=="function"?y:m(h,p,y),x=b?b.range(h,+p+1):[];return v?x.reverse():x}function m(h,p,y){const v=Math.abs(p-h)/y,b=jm(([,,C])=>C).right(c,v);if(b===c.length)return t.every(Zh(h/Sh,p/Sh,y));if(b===0)return qu.every(Math.max(Zh(h,p,y),1));const[x,S]=c[v/c[b-1][2]<c[b][2]/v?b-1:b];return x.every(S)}return[f,m]}const[J3,tR]=Zx(zr,Fm,Ec,Px,Qm,Pm),[eR,nR]=Zx(Dr,Km,Mc,Fo,Zm,Xm);function Ah(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Th(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function yo(t,n,i){return{y:t,m:n,d:i,H:0,M:0,S:0,L:0}}function rR(t){var n=t.dateTime,i=t.date,a=t.time,o=t.periods,u=t.days,c=t.shortDays,f=t.months,m=t.shortMonths,h=vo(o),p=bo(o),y=vo(u),v=bo(u),b=vo(c),x=bo(c),S=vo(f),C=bo(f),E=vo(m),_=bo(m),O={a:P,A:nt,b:st,B:N,c:null,d:$v,e:$v,f:MR,g:jR,G:BR,H:TR,I:CR,j:wR,L:Qx,m:ER,M:OR,p:F,q:at,Q:Hv,s:Yv,S:RR,u:_R,U:kR,V:DR,w:zR,W:NR,x:null,X:null,y:UR,Y:$R,Z:LR,"%":Lv},k={a:lt,A:ct,b:yt,B:dt,c:null,d:Bv,e:Bv,f:qR,g:JR,G:e_,H:HR,I:YR,j:GR,L:Fx,m:IR,M:VR,p:gt,q:mt,Q:Hv,s:Yv,S:XR,u:PR,U:ZR,V:QR,w:KR,W:FR,x:null,X:null,y:WR,Y:t_,Z:n_,"%":Lv},M={a:T,A:z,b:X,B:K,c:it,d:Uv,e:Uv,f:bR,g:Nv,G:zv,H:jv,I:jv,j:gR,L:vR,m:mR,M:pR,p:$,q:hR,Q:SR,s:AR,S:yR,u:sR,U:uR,V:cR,w:oR,W:fR,x:ot,X:j,y:Nv,Y:zv,Z:dR,"%":xR};O.x=R(i,O),O.X=R(a,O),O.c=R(n,O),k.x=R(i,k),k.X=R(a,k),k.c=R(n,k);function R(ut,xt){return function(bt){var rt=[],_t=-1,vt=0,Bt=ut.length,Wt,Yt,Ae;for(bt instanceof Date||(bt=new Date(+bt));++_t<Bt;)ut.charCodeAt(_t)===37&&(rt.push(ut.slice(vt,_t)),(Yt=Dv[Wt=ut.charAt(++_t)])!=null?Wt=ut.charAt(++_t):Yt=Wt==="e"?" ":"0",(Ae=xt[Wt])&&(Wt=Ae(bt,Yt)),rt.push(Wt),vt=_t+1);return rt.push(ut.slice(vt,_t)),rt.join("")}}function D(ut,xt){return function(bt){var rt=yo(1900,void 0,1),_t=L(rt,ut,bt+="",0),vt,Bt;if(_t!=bt.length)return null;if("Q"in rt)return new Date(rt.Q);if("s"in rt)return new Date(rt.s*1e3+("L"in rt?rt.L:0));if(xt&&!("Z"in rt)&&(rt.Z=0),"p"in rt&&(rt.H=rt.H%12+rt.p*12),rt.m===void 0&&(rt.m="q"in rt?rt.q:0),"V"in rt){if(rt.V<1||rt.V>53)return null;"w"in rt||(rt.w=1),"Z"in rt?(vt=Th(yo(rt.y,0,1)),Bt=vt.getUTCDay(),vt=Bt>4||Bt===0?Vu.ceil(vt):Vu(vt),vt=wc.offset(vt,(rt.V-1)*7),rt.y=vt.getUTCFullYear(),rt.m=vt.getUTCMonth(),rt.d=vt.getUTCDate()+(rt.w+6)%7):(vt=Ah(yo(rt.y,0,1)),Bt=vt.getDay(),vt=Bt>4||Bt===0?Iu.ceil(vt):Iu(vt),vt=Fo.offset(vt,(rt.V-1)*7),rt.y=vt.getFullYear(),rt.m=vt.getMonth(),rt.d=vt.getDate()+(rt.w+6)%7)}else("W"in rt||"U"in rt)&&("w"in rt||(rt.w="u"in rt?rt.u%7:"W"in rt?1:0),Bt="Z"in rt?Th(yo(rt.y,0,1)).getUTCDay():Ah(yo(rt.y,0,1)).getDay(),rt.m=0,rt.d="W"in rt?(rt.w+6)%7+rt.W*7-(Bt+5)%7:rt.w+rt.U*7-(Bt+6)%7);return"Z"in rt?(rt.H+=rt.Z/100|0,rt.M+=rt.Z%100,Th(rt)):Ah(rt)}}function L(ut,xt,bt,rt){for(var _t=0,vt=xt.length,Bt=bt.length,Wt,Yt;_t<vt;){if(rt>=Bt)return-1;if(Wt=xt.charCodeAt(_t++),Wt===37){if(Wt=xt.charAt(_t++),Yt=M[Wt in Dv?xt.charAt(_t++):Wt],!Yt||(rt=Yt(ut,bt,rt))<0)return-1}else if(Wt!=bt.charCodeAt(rt++))return-1}return rt}function $(ut,xt,bt){var rt=h.exec(xt.slice(bt));return rt?(ut.p=p.get(rt[0].toLowerCase()),bt+rt[0].length):-1}function T(ut,xt,bt){var rt=b.exec(xt.slice(bt));return rt?(ut.w=x.get(rt[0].toLowerCase()),bt+rt[0].length):-1}function z(ut,xt,bt){var rt=y.exec(xt.slice(bt));return rt?(ut.w=v.get(rt[0].toLowerCase()),bt+rt[0].length):-1}function X(ut,xt,bt){var rt=E.exec(xt.slice(bt));return rt?(ut.m=_.get(rt[0].toLowerCase()),bt+rt[0].length):-1}function K(ut,xt,bt){var rt=S.exec(xt.slice(bt));return rt?(ut.m=C.get(rt[0].toLowerCase()),bt+rt[0].length):-1}function it(ut,xt,bt){return L(ut,n,xt,bt)}function ot(ut,xt,bt){return L(ut,i,xt,bt)}function j(ut,xt,bt){return L(ut,a,xt,bt)}function P(ut){return c[ut.getDay()]}function nt(ut){return u[ut.getDay()]}function st(ut){return m[ut.getMonth()]}function N(ut){return f[ut.getMonth()]}function F(ut){return o[+(ut.getHours()>=12)]}function at(ut){return 1+~~(ut.getMonth()/3)}function lt(ut){return c[ut.getUTCDay()]}function ct(ut){return u[ut.getUTCDay()]}function yt(ut){return m[ut.getUTCMonth()]}function dt(ut){return f[ut.getUTCMonth()]}function gt(ut){return o[+(ut.getUTCHours()>=12)]}function mt(ut){return 1+~~(ut.getUTCMonth()/3)}return{format:function(ut){var xt=R(ut+="",O);return xt.toString=function(){return ut},xt},parse:function(ut){var xt=D(ut+="",!1);return xt.toString=function(){return ut},xt},utcFormat:function(ut){var xt=R(ut+="",k);return xt.toString=function(){return ut},xt},utcParse:function(ut){var xt=D(ut+="",!0);return xt.toString=function(){return ut},xt}}}var Dv={"-":"",_:" ",0:"0"},Oe=/^\s*\d+/,iR=/^%/,aR=/[\\^$*+?|[\]().{}]/g;function zt(t,n,i){var a=t<0?"-":"",o=(a?-t:t)+"",u=o.length;return a+(u<i?new Array(i-u+1).join(n)+o:o)}function lR(t){return t.replace(aR,"\\$&")}function vo(t){return new RegExp("^(?:"+t.map(lR).join("|")+")","i")}function bo(t){return new Map(t.map((n,i)=>[n.toLowerCase(),i]))}function oR(t,n,i){var a=Oe.exec(n.slice(i,i+1));return a?(t.w=+a[0],i+a[0].length):-1}function sR(t,n,i){var a=Oe.exec(n.slice(i,i+1));return a?(t.u=+a[0],i+a[0].length):-1}function uR(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.U=+a[0],i+a[0].length):-1}function cR(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.V=+a[0],i+a[0].length):-1}function fR(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.W=+a[0],i+a[0].length):-1}function zv(t,n,i){var a=Oe.exec(n.slice(i,i+4));return a?(t.y=+a[0],i+a[0].length):-1}function Nv(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),i+a[0].length):-1}function dR(t,n,i){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(i,i+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),i+a[0].length):-1}function hR(t,n,i){var a=Oe.exec(n.slice(i,i+1));return a?(t.q=a[0]*3-3,i+a[0].length):-1}function mR(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.m=a[0]-1,i+a[0].length):-1}function Uv(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.d=+a[0],i+a[0].length):-1}function gR(t,n,i){var a=Oe.exec(n.slice(i,i+3));return a?(t.m=0,t.d=+a[0],i+a[0].length):-1}function jv(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.H=+a[0],i+a[0].length):-1}function pR(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.M=+a[0],i+a[0].length):-1}function yR(t,n,i){var a=Oe.exec(n.slice(i,i+2));return a?(t.S=+a[0],i+a[0].length):-1}function vR(t,n,i){var a=Oe.exec(n.slice(i,i+3));return a?(t.L=+a[0],i+a[0].length):-1}function bR(t,n,i){var a=Oe.exec(n.slice(i,i+6));return a?(t.L=Math.floor(a[0]/1e3),i+a[0].length):-1}function xR(t,n,i){var a=iR.exec(n.slice(i,i+1));return a?i+a[0].length:-1}function SR(t,n,i){var a=Oe.exec(n.slice(i));return a?(t.Q=+a[0],i+a[0].length):-1}function AR(t,n,i){var a=Oe.exec(n.slice(i));return a?(t.s=+a[0],i+a[0].length):-1}function $v(t,n){return zt(t.getDate(),n,2)}function TR(t,n){return zt(t.getHours(),n,2)}function CR(t,n){return zt(t.getHours()%12||12,n,2)}function wR(t,n){return zt(1+Fo.count(Dr(t),t),n,3)}function Qx(t,n){return zt(t.getMilliseconds(),n,3)}function MR(t,n){return Qx(t,n)+"000"}function ER(t,n){return zt(t.getMonth()+1,n,2)}function OR(t,n){return zt(t.getMinutes(),n,2)}function RR(t,n){return zt(t.getSeconds(),n,2)}function _R(t){var n=t.getDay();return n===0?7:n}function kR(t,n){return zt(Mc.count(Dr(t)-1,t),n,2)}function Kx(t){var n=t.getDay();return n>=4||n===0?tl(t):tl.ceil(t)}function DR(t,n){return t=Kx(t),zt(tl.count(Dr(t),t)+(Dr(t).getDay()===4),n,2)}function zR(t){return t.getDay()}function NR(t,n){return zt(Iu.count(Dr(t)-1,t),n,2)}function UR(t,n){return zt(t.getFullYear()%100,n,2)}function jR(t,n){return t=Kx(t),zt(t.getFullYear()%100,n,2)}function $R(t,n){return zt(t.getFullYear()%1e4,n,4)}function BR(t,n){var i=t.getDay();return t=i>=4||i===0?tl(t):tl.ceil(t),zt(t.getFullYear()%1e4,n,4)}function LR(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+zt(n/60|0,"0",2)+zt(n%60,"0",2)}function Bv(t,n){return zt(t.getUTCDate(),n,2)}function HR(t,n){return zt(t.getUTCHours(),n,2)}function YR(t,n){return zt(t.getUTCHours()%12||12,n,2)}function GR(t,n){return zt(1+wc.count(zr(t),t),n,3)}function Fx(t,n){return zt(t.getUTCMilliseconds(),n,3)}function qR(t,n){return Fx(t,n)+"000"}function IR(t,n){return zt(t.getUTCMonth()+1,n,2)}function VR(t,n){return zt(t.getUTCMinutes(),n,2)}function XR(t,n){return zt(t.getUTCSeconds(),n,2)}function PR(t){var n=t.getUTCDay();return n===0?7:n}function ZR(t,n){return zt(Ec.count(zr(t)-1,t),n,2)}function Wx(t){var n=t.getUTCDay();return n>=4||n===0?el(t):el.ceil(t)}function QR(t,n){return t=Wx(t),zt(el.count(zr(t),t)+(zr(t).getUTCDay()===4),n,2)}function KR(t){return t.getUTCDay()}function FR(t,n){return zt(Vu.count(zr(t)-1,t),n,2)}function WR(t,n){return zt(t.getUTCFullYear()%100,n,2)}function JR(t,n){return t=Wx(t),zt(t.getUTCFullYear()%100,n,2)}function t_(t,n){return zt(t.getUTCFullYear()%1e4,n,4)}function e_(t,n){var i=t.getUTCDay();return t=i>=4||i===0?el(t):el.ceil(t),zt(t.getUTCFullYear()%1e4,n,4)}function n_(){return"+0000"}function Lv(){return"%"}function Hv(t){return+t}function Yv(t){return Math.floor(+t/1e3)}var Ba,Jx,tS;r_({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function r_(t){return Ba=rR(t),Jx=Ba.format,Ba.parse,tS=Ba.utcFormat,Ba.utcParse,Ba}function i_(t){return new Date(t)}function a_(t){return t instanceof Date?+t:+new Date(+t)}function Wm(t,n,i,a,o,u,c,f,m,h){var p=Hx(),y=p.invert,v=p.domain,b=h(".%L"),x=h(":%S"),S=h("%I:%M"),C=h("%I %p"),E=h("%a %d"),_=h("%b %d"),O=h("%B"),k=h("%Y");function M(R){return(m(R)<R?b:f(R)<R?x:c(R)<R?S:u(R)<R?C:a(R)<R?o(R)<R?E:_:i(R)<R?O:k)(R)}return p.invert=function(R){return new Date(y(R))},p.domain=function(R){return arguments.length?v(Array.from(R,a_)):v().map(i_)},p.ticks=function(R){var D=v();return t(D[0],D[D.length-1],R??10)},p.tickFormat=function(R,D){return D==null?M:h(D)},p.nice=function(R){var D=v();return(!R||typeof R.range!="function")&&(R=n(D[0],D[D.length-1],R??10)),R?v(Ix(D,R)):p},p.copy=function(){return Cc(p,Wm(t,n,i,a,o,u,c,f,m,h))},p}function Jm(){return ci.apply(Wm(eR,nR,Dr,Km,Mc,Fo,Zm,Xm,ki,Jx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function l_(){return ci.apply(Wm(J3,tR,zr,Fm,Ec,wc,Qm,Pm,ki,tS).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function o_(){var t=0,n=1,i,a,o,u,c=En,f=!1,m;function h(y){return y==null||isNaN(y=+y)?m:c(o===0?.5:(y=(u(y)-i)*o,f?Math.max(0,Math.min(1,y)):y))}h.domain=function(y){return arguments.length?([t,n]=y,i=u(t=+t),a=u(n=+n),o=i===a?0:1/(a-i),h):[t,n]},h.clamp=function(y){return arguments.length?(f=!!y,h):f},h.interpolator=function(y){return arguments.length?(c=y,h):c};function p(y){return function(v){var b,x;return arguments.length?([b,x]=v,c=y(b,x),h):[c(0),c(1)]}}return h.range=p(Tc),h.rangeRound=p(Lx),h.unknown=function(y){return arguments.length?(m=y,h):m},function(y){return u=y,i=y(t),a=y(n),o=i===a?0:1/(a-i),h}}function s_(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function eS(){var t=qm(o_()(En));return t.copy=function(){return s_(t,eS())},QO.apply(t,arguments)}function Xu(t){return t.scaleType==="band"}function t0(t){return t.scaleType==="point"}function u_(t){return t.type==="piecewise"?Xx(t.thresholds,t.colors):eS([t.min??0,t.max??100],t.color)}function nl(t){return t.values?Lu(t.values,t.colors).unknown(t.unknownColor??null):Lu(t.colors.map((n,i)=>i),t.colors).unknown(t.unknownColor??null)}function Ni(t){return t.type==="ordinal"?nl(t):u_(t)}function nS(t){const{tickMaxStep:n,tickMinStep:i,tickNumber:a,range:o,domain:u}=t,c=i===void 0?999:Math.floor(Math.abs(u[1]-u[0])/i),f=n===void 0?2:Math.ceil(Math.abs(u[1]-u[0])/n),m=a??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(c,Math.max(f,m))}function rS(t,n){return n[1]-n[0]===0?1:t/((n[1]-n[0])/100)}function e0(t,n,i){switch(t){case"log":return Vx(n,i);case"pow":return Im(n,i);case"sqrt":return I3(n,i);case"time":return Jm(n,i);case"utc":return l_(n,i);default:return qx(n,i)}}const Ch=(t,n)=>{const i=t[1]-t[0],a=n[1]-n[0],o=t[0]-n[0]*i/a,u=t[1]+(100-n[1])*i/a;return[o,u]};let Gv,qv;class c_{constructor(){if(this.types=new Set,Gv)throw new Error("You can only create one instance!");Gv=this.types}addType(n){this.types.add(n)}getTypes(){return this.types}}class f_{constructor(){if(this.types=new Set,qv)throw new Error("You can only create one instance!");qv=this.types}addType(n){this.types.add(n)}getTypes(){return this.types}}const Oc=new c_;Oc.addType("bar");Oc.addType("line");Oc.addType("scatter");const iS=new f_;iS.addType("radar");function n0(t){return Oc.getTypes().has(t)}const d_=(t,n,i,a,o,u,c,f)=>{var x;const m=a==="x"?o[n].xExtremumGetter:o[n].yExtremumGetter,h=((x=c[n])==null?void 0:x.series)??{},[p,y]=(m==null?void 0:m({series:h,axis:i,axisIndex:u,isDefaultAxis:u===0,getFilters:f}))??[1/0,-1/0],[v,b]=t;return[Math.min(p,v),Math.max(y,b)]},aS=(t,n,i,a,o,u)=>{const f=Object.keys(i).filter(n0).reduce((m,h)=>d_(m,h,t,n,i,a,o,u),[1/0,-1/0]);return Number.isNaN(f[0])||Number.isNaN(f[1])?[1/0,-1/0]:f},h_=(t,n,i,a)=>{const o=new Set;return Object.keys(n).filter(n0).forEach(c=>{var h,p,y;const f=((h=i[c])==null?void 0:h.series)??{},m=(y=(p=n[c]).axisTooltipGetter)==null?void 0:y.call(p,f);m!==void 0&&m.forEach(({axisId:v,direction:b})=>{b===t&&o.add(v??a)})}),o};function m_(t,n,i){const a=n==="x"?[t.left,t.left+t.width]:[t.top+t.height,t.top];return i.reverse?[a[1],a[0]]:a}const Iv=t=>(t==null?void 0:t[0])instanceof Date;function Vv(t,n){const i=Jm(t.data,n);return(a,{location:o})=>o==="tick"?i.tickFormat(t.tickNumber)(a):`${a.toLocaleString()}`}const g_=.2,p_=.1;function lS({drawingArea:t,formattedSeries:n,axis:i,seriesConfig:a,axisDirection:o,zoomMap:u,zoomOptions:c,getFilters:f}){if(i===void 0)return{axis:{},axisIds:[]};const m=h_(o,a,n,i[0].id),h={};return i.forEach((p,y)=>{const v=p,b=c==null?void 0:c[v.id],x=u==null?void 0:u.get(v.id),S=x?[x.start,x.end]:[0,100],C=m_(t,o,v),[E,_]=aS(v,o,a,y,n,x===void 0&&!b?f:void 0),O=!v.ignoreTooltip&&m.has(v.id),k=v.data??[];if(Xu(v)){const j=v.categoryGapRatio??g_,P=v.barGapRatio??p_,nt=o==="y"?[C[1],C[0]]:C,st=Ch(nt,S);if(h[v.id]=I({offset:0,height:0,categoryGapRatio:j,barGapRatio:P,triggerTooltip:O},v,{data:k,scale:Ac(v.data,st).paddingInner(j).paddingOuter(j/2),tickNumber:v.data.length,colorScale:v.colorMap&&(v.colorMap.type==="ordinal"?nl(I({values:v.data},v.colorMap)):Ni(v.colorMap))}),Iv(v.data)){const N=Vv(v,nt);h[v.id].valueFormatter=v.valueFormatter??N}}if(t0(v)){const j=o==="y"?[...C].reverse():C,P=Ch(j,S);if(h[v.id]=I({offset:0,height:0,triggerTooltip:O},v,{data:k,scale:Ux(v.data,P),tickNumber:v.data.length,colorScale:v.colorMap&&(v.colorMap.type==="ordinal"?nl(I({values:v.data},v.colorMap)):Ni(v.colorMap))}),Iv(v.data)){const nt=Vv(v,j);h[v.id].valueFormatter=v.valueFormatter??nt}}if(v.scaleType==="band"||v.scaleType==="point")return;const M=v.scaleType??"linear",R=v.domainLimit??"nice",D=[v.min??E,v.max??_];if(typeof R=="function"){const{min:j,max:P}=R(E,_);D[0]=j,D[1]=P}const L=nS(I({},v,{range:C,domain:D})),$=rS(L,S),T=Ch(C,S),z=e0(M,D,T),X=R==="nice"?z.nice(L):z,[K,it]=X.domain(),ot=[v.min??K,v.max??it];h[v.id]=I({offset:0,height:0,triggerTooltip:O},v,{data:k,scaleType:M,scale:X.domain(ot),tickNumber:$,colorScale:v.colorMap&&Ni(v.colorMap)})}),{axis:h,axisIds:i.map(({id:p})=>p)}}function y_(t){return t!=null}function oS({zoomMap:t,zoomOptions:n,seriesConfig:i,formattedSeries:a,direction:o}){return(u,c)=>{var C;const f=n[u.id];if(!f||f.filterMode!=="discard")return null;const m=t==null?void 0:t.get(u.id);if(m===void 0||m.start<=0&&m.end>=100)return null;let h=[];const p=u.scaleType;p==="point"||p==="band"?h=[0,(((C=u.data)==null?void 0:C.length)??1)-1]:h=aS(u,o,i,c,a);let y,v;[y,v]=e0(!p||p==="band"||p==="point"?"linear":p,h,[0,100]).nice().domain(),y=y instanceof Date?y.getTime():y,v=v instanceof Date?v.getTime():v;const x=y+m.start*(v-y)/100,S=y+m.end*(v-y)/100;return(E,_)=>{var k;const O=E[o]??((k=u.data)==null?void 0:k[_]);return O==null?!0:u.scaleType==="point"||u.scaleType==="band"||typeof O=="string"?_>=x&&_<=S:O>=x&&O<=S}}}const v_=t=>({currentAxisId:n,seriesXAxisId:i,seriesYAxisId:a,isDefaultAxis:o})=>(u,c)=>{var h,p;return!(n===i?a:i)||o?((p=(h=Object.values(t??{}))[0])==null?void 0:p.call(h,u,c))??!0:[a,i].filter(y=>y!==n).map(y=>t[y??""]).filter(y_).every(y=>y(u,c))},sS=t=>(n=[])=>n.reduce((i,a)=>{const{zoom:o,id:u}=a,c=Um(o,u,t);return c&&(i[u]=c),i},{}),b_=t=>{const n=new Map;return t.forEach(i=>{n.set(i.axisId,i)}),n},uS=t=>t.zoom,cS=ft(uS,t=>t==null?void 0:t.isInteracting),Rc=ft(uS,t=>(t==null?void 0:t.zoomData)&&b_(t==null?void 0:t.zoomData)),fS=ft(hl,sS("x")),dS=ft(Qo,sS("y")),_c=ft([fS,dS],(t,n)=>I({},t,n));ft([fS,dS,(t,n)=>n],(t,n,i)=>t[i]??n[i]);const x_=ft([Rc,_c,jr,In],(t,n,i,a)=>t&&n&&oS({zoomMap:t,zoomOptions:n,seriesConfig:i,formattedSeries:a,direction:"x"})),S_=ft([Rc,_c,jr,In],(t,n,i,a)=>t&&n&&oS({zoomMap:t,zoomOptions:n,seriesConfig:i,formattedSeries:a,direction:"y"})),hS=ft([x_,S_,hl,Qo],(t,n,i,a)=>{if(t===void 0||n===void 0)return;const o=i==null?void 0:i.reduce((c,f,m)=>{const h=t(f,m);return h!==null&&(c[f.id]=h),c},{}),u=a==null?void 0:a.reduce((c,f,m)=>{const h=n(f,m);return h!==null&&(c[f.id]=h),c},{});if(!(Object.keys(o??{}).length===0&&Object.keys(u??{}).length===0))return v_(I({},o,u))}),Gi=ft([hl,Ur,In,jr,Rc,_c,hS],(t,n,i,a,o,u,c)=>lS({drawingArea:n,formattedSeries:i,axis:t,seriesConfig:a,axisDirection:"x",zoomMap:o,zoomOptions:u,getFilters:c})),qi=ft([Qo,Ur,In,jr,Rc,_c,hS],(t,n,i,a,o,u,c)=>lS({drawingArea:n,formattedSeries:i,axis:t,seriesConfig:a,axisDirection:"y",zoomMap:o,zoomOptions:u,getFilters:c}));function $r(t){return t.bandwidth!==void 0}function La(t){return t instanceof Date?t.getTime():t}function rl(t,n){const{scale:i,data:a,reverse:o}=t;if(!$r(i)){const c=i.invert(n);if(a===void 0)return-1;const f=La(c);return a==null?void 0:a.findIndex((h,p)=>{const y=La(h);return y>f&&(p===0||Math.abs(f-y)<=Math.abs(f-La(a[p-1])))||y<=f&&(p===a.length-1||Math.abs(La(c)-y)<Math.abs(La(c)-La(a[p+1])))})}const u=i.bandwidth()===0?Math.floor((n-Math.min(...i.range())+i.step()/2)/i.step()):Math.floor((n-Math.min(...i.range()))/i.step());return u<0||u>=a.length?-1:o?a.length-1-u:u}function Xv(t,n,i){const{scale:a,data:o}=t;if(!$r(a)){const u=a.invert(n);return i<0?u:o[i]}return i<0||i>=o.length?null:o[i]}function Wh(t,n){const i=t.createSVGPoint();return i.x=n.clientX,i.y=n.clientY,i.matrixTransform(t.getScreenCTM().inverse())}function si(t){const n=Y.useRef(t);return Ye(()=>{n.current=t}),Y.useRef((...i)=>(0,n.current)(...i)).current}const Wo=({store:t})=>{const n=si(()=>{t.update(u=>I({},u,{interaction:{pointer:null,item:null}}))}),i=si(u=>{t.update(c=>{const f=c.interaction.item;return u?f===null||Object.keys(u).some(m=>u[m]!==f[m])?c:I({},c,{interaction:I({},c.interaction,{item:null})}):f===null?c:I({},c,{interaction:I({},c.interaction,{item:null})})})}),a=si(u=>{t.update(c=>I({},c,{interaction:I({},c.interaction,{item:u})}))}),o=si(u=>{t.update(c=>I({},c,{interaction:I({},c.interaction,{pointer:u})}))});return{instance:{cleanInteraction:n,setItemInteraction:a,removeItemInteraction:i,setPointerCoordinate:o}}};Wo.getInitialState=()=>({interaction:{item:null,pointer:null}});Wo.params={};const r0=t=>t.interaction,A_=ft(r0,t=>t!==void 0),mS=ft(r0,t=>(t==null?void 0:t.item)??null),gS=ft(r0,t=>(t==null?void 0:t.pointer)??null),kc=ft(gS,t=>t&&t.x),Dc=ft(gS,t=>t&&t.y),T_=ft(mS,t=>t!==null),ml=({params:t,store:n,seriesConfig:i,svgRef:a,instance:o})=>{const{xAxis:u,yAxis:c,dataset:f}=t,m=wt(n,Ur),h=wt(n,In),p=wt(n,A_),{axis:y,axisIds:v}=wt(n,Gi),{axis:b,axisIds:x}=wt(n,qi),S=Y.useRef(!0);Y.useEffect(()=>{if(S.current){S.current=!1;return}n.update(_=>I({},_,{cartesianAxis:I({},_.cartesianAxis,{x:kx(u,f),y:Dx(c,f)})}))},[i,m,u,c,f,n]);const C=v[0],E=x[0];return Y.useEffect(()=>{const _=a.current;if(!p||_===null||t.disableAxisListener)return()=>{};const O=()=>{var R;(R=o.cleanInteraction)==null||R.call(o)},k=R=>{var $,T;const D="targetTouches"in R?R.targetTouches[0]:R,L=Wh(_,D);if(!o.isPointInside(L,{targetElement:R.target})){($=o.cleanInteraction)==null||$.call(o);return}(T=o.setPointerCoordinate)==null||T.call(o,L)},M=R=>{const D=R.currentTarget;D&&"hasPointerCapture"in D&&D.hasPointerCapture(R.pointerId)&&D.releasePointerCapture(R.pointerId)};return _.addEventListener("pointerdown",M),_.addEventListener("pointermove",k),_.addEventListener("pointercancel",O),_.addEventListener("pointerleave",O),()=>{_.removeEventListener("pointerdown",M),_.removeEventListener("pointermove",k),_.removeEventListener("pointercancel",O),_.removeEventListener("pointerleave",O)}},[a,n,y,C,b,E,o,t.disableAxisListener,p]),Y.useEffect(()=>{const _=a.current,O=t.onAxisClick;if(_===null||!O)return()=>{};const k=M=>{M.preventDefault();let R=null,D=!1;const L=Wh(_,M),$=rl(y[C],L.x);D=$!==-1,R=D?$:rl(b[E],L.y);const T=D?v[0]:x[0];if(R==null||R===-1)return;const z=(D?y:b)[T].data[R],X={};Object.keys(h).filter(K=>["bar","line"].includes(K)).forEach(K=>{var it;(it=h[K])==null||it.seriesOrder.forEach(ot=>{const j=h[K].series[ot],P=j.xAxisId,nt=j.yAxisId,st=D?P:nt;(st===void 0||st===T)&&(X[ot]=j.data[R])})}),O(M,{dataIndex:R,axisValue:z,seriesValues:X})};return _.addEventListener("click",k),()=>{_.removeEventListener("click",k)}},[t.onAxisClick,h,a,y,v,b,x,C,E]),{}};ml.params={xAxis:!0,yAxis:!0,dataset:!0,onAxisClick:!0,disableAxisListener:!0};ml.getDefaultizedParams=({params:t})=>I({},t,{colors:t.colors??Ex,theme:t.theme??"light",defaultizedXAxis:kx(t.xAxis,t.dataset),defaultizedYAxis:Dx(t.yAxis,t.dataset)});ml.getInitialState=t=>({cartesianAxis:{x:t.defaultizedXAxis,y:t.defaultizedYAxis}});function Qa(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){const o=t.length;if(o!==n.length)return!1;for(let u=0;u<o;u+=1)if(!Qa(t[u],n[u]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;const o=Array.from(t.entries());for(let u=0;u<o.length;u+=1)if(!n.has(o[u][0]))return!1;for(let u=0;u<o.length;u+=1){const c=o[u];if(!Qa(c[1],n.get(c[0])))return!1}return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;const o=Array.from(t.entries());for(let u=0;u<o.length;u+=1)if(!n.has(o[u][0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){const o=t.length;if(o!==n.length)return!1;for(let u=0;u<o;u+=1)if(t[u]!==n[u])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();const i=Object.keys(t),a=i.length;if(a!==Object.keys(n).length)return!1;for(let o=0;o<a;o+=1)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(let o=0;o<a;o+=1){const u=i[o];if(!Qa(t[u],n[u]))return!1}return!0}return t!==t&&n!==n}const zc=(t,n)=>n;function pS(t,n,i=n.axisIds[0]){return Array.isArray(i)?i.map(a=>rl(n.axis[a],t)):rl(n.axis[i],t)}const C_=ft([kc,Gi,zc],(t,n,i)=>t===null?null:pS(t,n,i)),w_=ft([Dc,qi,zc],(t,n,i)=>t===null?null:pS(t,n,i));function yS(t,n,i,a=n.axisIds[0]){return Array.isArray(a)?a.map((o,u)=>Xv(n.axis[o],t,i[u])):Xv(n.axis[a],t,i)}const M_=ft([kc,Gi,C_,zc],(t,n,i,a)=>t===null||i===null||n.axisIds.length===0?null:yS(t,n,i,a)),E_=ft([Dc,qi,w_,zc],(t,n,i,a)=>t===null||i===null||n.axisIds.length===0?null:yS(t,n,i,a)),vS=ft([kc,Gi],(t,n)=>t===null?[]:n.axisIds.filter(i=>n.axis[i].triggerTooltip).map(i=>({axisId:i,dataIndex:rl(n.axis[i],t)})).filter(({dataIndex:i})=>i>=0),{memoizeOptions:{resultEqualityCheck:Qa}}),bS=ft([Dc,qi],(t,n)=>t===null?[]:n.axisIds.filter(i=>n.axis[i].triggerTooltip).map(i=>({axisId:i,dataIndex:rl(n.axis[i],t)})).filter(({dataIndex:i})=>i>=0),{memoizeOptions:{resultEqualityCheck:Qa}}),O_=ft([vS,bS],(t,n)=>t.length>0||n.length>0);function Pv(t,n){return t.id!==void 0?t:I({id:n},t)}function Zv(t){return t.colorMap?I({},t,{colorScale:t.colorMap.type==="ordinal"&&t.data?nl(I({values:t.data},t.colorMap)):Ni(t.colorMap.type==="continuous"?I({min:t.min,max:t.max},t.colorMap):t.colorMap)}):t}function xS(t,n){if(!t||t.length===0)return{axis:{},axisIds:[]};const i={},a=[];return t.forEach((o,u)=>{const c=o.dataKey,f=o.id??`defaultized-z-axis-${u}`;if(c===void 0||o.data!==void 0){i[f]=Zv(Pv(o,f)),a.push(f);return}if(n===void 0)throw new Error("MUI X Charts: z-axis uses `dataKey` but no `dataset` is provided.");i[f]=Zv(Pv(I({},o,{data:n.map(m=>m[c])}),f)),a.push(f)}),{axis:i,axisIds:a}}const Jo=({params:t,store:n})=>{const{zAxis:i,dataset:a}=t,o=Y.useRef(!0);return Y.useEffect(()=>{if(o.current){o.current=!1;return}n.update(u=>I({},u,{zAxis:xS(i,a)}))},[i,a,n]),{}};Jo.params={zAxis:!0,dataset:!0};Jo.getInitialState=t=>({zAxis:xS(t.zAxis,t.dataset)});const R_=t=>t,__=ft([R_],t=>t.zAxis),k_=()=>{},gl=({store:t,params:n})=>{k_({controlled:n.highlightedItem}),Ye(()=>{t.update(o=>o.highlight.item===n.highlightedItem?o:I({},o,{highlight:I({},o.highlight,{item:n.highlightedItem})}))},[t,n.highlightedItem]);const i=si(()=>{var o;(o=n.onHighlightChange)==null||o.call(n,null),t.update(u=>I({},u,{highlight:{item:null}}))}),a=si(o=>{var u;(u=n.onHighlightChange)==null||u.call(n,o),t.update(c=>I({},c,{highlight:{item:o}}))});return{instance:{clearHighlight:i,setHighlight:a}}};gl.getDefaultizedParams=({params:t})=>I({},t,{highlightedItem:t.highlightedItem??null});gl.getInitialState=t=>({highlight:{item:t.highlightedItem}});gl.params={highlightedItem:!0,onHighlightChange:!0};const Qv=(t,n)=>n==="x"?{x:t,y:null}:{x:null,y:t},SS=t=>{var m;const{axis:n,getFilters:i,isDefaultAxis:a}=t,o=i==null?void 0:i({currentAxisId:n.id,isDefaultAxis:a}),u=o?(m=n.data)==null?void 0:m.filter((h,p)=>o({x:null,y:null},p)):n.data,c=Math.min(...u??[]),f=Math.max(...u??[]);return[c,f]},AS=t=>n=>{const{series:i,axis:a,getFilters:o,isDefaultAxis:u}=n;return Object.keys(i).filter(c=>{const f=t==="x"?i[c].xAxisId:i[c].yAxisId;return f===a.id||u&&f===void 0}).reduce((c,f)=>{const{stackedData:m}=i[f],h=o==null?void 0:o({currentAxisId:a.id,isDefaultAxis:u,seriesXAxisId:i[f].xAxisId,seriesYAxisId:i[f].yAxisId}),[p,y]=(m==null?void 0:m.reduce((v,b,x)=>h&&(!h(Qv(b[0],t),x)||!h(Qv(b[1],t),x))?v:[Math.min(...b,v[0]),Math.max(...b,v[1])],[1/0,-1/0]))??[1/0,-1/0];return[Math.min(p,c[0]),Math.max(y,c[1])]},[1/0,-1/0])},D_=t=>Object.keys(t.series).some(i=>t.series[i].layout==="horizontal")?AS("x")(t):SS(t),z_=t=>Object.keys(t.series).some(i=>t.series[i].layout==="horizontal")?SS(t):AS("y")(t);function Hn(t){return function(){return t}}const N_=Math.PI,wh=2*N_;function TS(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function U_(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function j_(t){return t}function $_(){var t=j_,n=U_,i=null,a=Hn(0),o=Hn(wh),u=Hn(0);function c(f){var m,h=(f=TS(f)).length,p,y,v=0,b=new Array(h),x=new Array(h),S=+a.apply(this,arguments),C=Math.min(wh,Math.max(-wh,o.apply(this,arguments)-S)),E,_=Math.min(Math.abs(C)/h,u.apply(this,arguments)),O=_*(C<0?-1:1),k;for(m=0;m<h;++m)(k=x[b[m]=m]=+t(f[m],m,f))>0&&(v+=k);for(n!=null?b.sort(function(M,R){return n(x[M],x[R])}):i!=null&&b.sort(function(M,R){return i(f[M],f[R])}),m=0,y=v?(C-h*O)/v:0;m<h;++m,S=E)p=b[m],k=x[p],E=S+(k>0?k*y:0)+O,x[p]={data:f[p],index:m,value:k,startAngle:S,endAngle:E,padAngle:_};return x}return c.value=function(f){return arguments.length?(t=typeof f=="function"?f:Hn(+f),c):t},c.sortValues=function(f){return arguments.length?(n=f,i=null,c):n},c.sort=function(f){return arguments.length?(i=f,n=null,c):i},c.startAngle=function(f){return arguments.length?(a=typeof f=="function"?f:Hn(+f),c):a},c.endAngle=function(f){return arguments.length?(o=typeof f=="function"?f:Hn(+f),c):o},c.padAngle=function(f){return arguments.length?(u=typeof f=="function"?f:Hn(+f),c):u},c}function il(t,n){if((c=t.length)>1)for(var i=1,a,o,u=t[n[0]],c,f=u.length;i<c;++i)for(o=u,u=t[n[i]],a=0;a<f;++a)u[a][1]+=u[a][0]=isNaN(o[a][1])?o[a][0]:o[a][1]}function al(t){for(var n=t.length,i=new Array(n);--n>=0;)i[n]=n;return i}function B_(t,n){return t[n]}function L_(t){const n=[];return n.key=t,n}function CS(){var t=Hn([]),n=al,i=il,a=B_;function o(u){var c=Array.from(t.apply(this,arguments),L_),f,m=c.length,h=-1,p;for(const y of u)for(f=0,++h;f<m;++f)(c[f][h]=[0,+a(y,c[f].key,h,u)]).data=y;for(f=0,p=TS(n(c));f<m;++f)c[p[f]].index=f;return i(c,p),c}return o.keys=function(u){return arguments.length?(t=typeof u=="function"?u:Hn(Array.from(u)),o):t},o.value=function(u){return arguments.length?(a=typeof u=="function"?u:Hn(+u),o):a},o.order=function(u){return arguments.length?(n=u==null?al:typeof u=="function"?u:Hn(Array.from(u)),o):n},o.offset=function(u){return arguments.length?(i=u??il,o):i},o}function H_(t,n){if((a=t.length)>0){for(var i,a,o=0,u=t[0].length,c;o<u;++o){for(c=i=0;i<a;++i)c+=t[i][o][1]||0;if(c)for(i=0;i<a;++i)t[i][o][1]/=c}il(t,n)}}function Y_(t,n){if((m=t.length)>0)for(var i,a=0,o,u,c,f,m,h=t[n[0]].length;a<h;++a)for(c=f=0,i=0;i<m;++i)(u=(o=t[n[i]][a])[1]-o[0])>0?(o[0]=c,o[1]=c+=u):u<0?(o[1]=f,o[0]=f+=u):(o[0]=0,o[1]=u)}function G_(t,n){if((o=t.length)>0){for(var i=0,a=t[n[0]],o,u=a.length;i<u;++i){for(var c=0,f=0;c<o;++c)f+=t[c][i][1]||0;a[i][1]+=a[i][0]=-f/2}il(t,n)}}function q_(t,n){if(!(!((c=t.length)>0)||!((u=(o=t[n[0]]).length)>0))){for(var i=0,a=1,o,u,c;a<u;++a){for(var f=0,m=0,h=0;f<c;++f){for(var p=t[n[f]],y=p[a][1]||0,v=p[a-1][1]||0,b=(y-v)/2,x=0;x<f;++x){var S=t[n[x]],C=S[a][1]||0,E=S[a-1][1]||0;b+=C-E}m+=y,h+=b*y}o[a-1][1]+=o[a-1][0]=i,m&&(i-=h/m)}o[a-1][1]+=o[a-1][0]=i,il(t,n)}}function wS(t){var n=t.map(I_);return al(t).sort(function(i,a){return n[i]-n[a]})}function I_(t){for(var n=-1,i=0,a=t.length,o,u=-1/0;++n<a;)(o=+t[n][1])>u&&(u=o,i=n);return i}function MS(t){var n=t.map(ES);return al(t).sort(function(i,a){return n[i]-n[a]})}function ES(t){for(var n=0,i=-1,a=t.length,o;++i<a;)(o=+t[i][1])&&(n+=o);return n}function V_(t){return MS(t).reverse()}function X_(t){var n=t.length,i,a,o=t.map(ES),u=wS(t),c=0,f=0,m=[],h=[];for(i=0;i<n;++i)a=u[i],c<f?(c+=o[a],m.push(a)):(f+=o[a],h.push(a));return h.reverse().concat(m)}function P_(t){return al(t).reverse()}const Mh={appearance:wS,ascending:MS,descending:V_,insideOut:X_,none:al,reverse:P_},Eh={expand:H_,diverging:Y_,none:il,silhouette:G_,wiggle:q_},OS=t=>{const{series:n,seriesOrder:i,defaultStrategy:a}=t,o=[],u={};return i.forEach(c=>{const{stack:f,stackOrder:m,stackOffset:h}=n[c];f===void 0?o.push({ids:[c],stackingOrder:Mh.none,stackingOffset:Eh.none}):u[f]===void 0?(u[f]=o.length,o.push({ids:[c],stackingOrder:Mh[m??(a==null?void 0:a.stackOrder)??"none"],stackingOffset:Eh[h??(a==null?void 0:a.stackOffset)??"diverging"]})):(o[u[f]].ids.push(c),m!==void 0&&(o[u[f]].stackingOrder=Mh[m]),h!==void 0&&(o[u[f]].stackingOffset=Eh[h]))}),o};function RS(t,n){const i={};return Object.keys(t).forEach(a=>{i[a]=I({},t[a],{valueFormatter:t[a].valueFormatter??n})}),i}const Z_=(t,n)=>{const{seriesOrder:i,series:a}=t,o=OS(t),u=n??[];i.forEach(f=>{const m=a[f].data;if(m!==void 0)m.forEach((h,p)=>{u.length<=p?u.push({[f]:h}):u[p][f]=h});else if(n===void 0)throw new Error([`MUI X Charts: bar series with id='${f}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(` 107 + `))});const c={};return o.forEach(f=>{const{ids:m,stackingOffset:h,stackingOrder:p}=f,y=CS().keys(m.map(v=>{const b=a[v].dataKey;return a[v].data===void 0&&b!==void 0?b:v})).value((v,b)=>v[b]??0).order(p).offset(h)(u);m.forEach((v,b)=>{const x=a[v].dataKey;c[v]=I({layout:"vertical",labelMarkType:"square"},a[v],{data:x?n.map(S=>{const C=S[x];return typeof C!="number"?0:C}):a[v].data,stackedData:y[b].map(([S,C])=>[S,C])})})}),{seriesOrder:i,stackingGroups:o,series:RS(c,f=>f==null?"":f.toLocaleString())}};function Gn(t,n){return typeof t=="function"?t(n):t}const Q_=t=>{const{seriesOrder:n,series:i}=t;return n.reduce((a,o)=>{const u=Gn(i[o].label,"legend");return u===void 0||a.push({markType:i[o].labelMarkType,id:o,seriesId:o,color:i[o].color,label:u}),a},[])},_S=(t,n,i)=>{const a=t.layout==="vertical",o=a?n==null?void 0:n.colorScale:i==null?void 0:i.colorScale,u=a?i==null?void 0:i.colorScale:n==null?void 0:n.colorScale,c=a?n==null?void 0:n.data:i==null?void 0:i.data;return u?f=>{if(f===void 0)return t.color;const m=t.data[f],h=m===null?t.color:u(m);return h===null?t.color:h}:o&&c?f=>{if(f===void 0)return t.color;const m=c[f],h=m===null?t.color:o(m);return h===null?t.color:h}:()=>t.color},K_=t=>{const{series:n,getColor:i,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const o=Gn(n.label,"tooltip"),u=n.data[a.dataIndex];if(u==null)return null;const c=n.valueFormatter(u,{dataIndex:a.dataIndex});return{identifier:a,color:i(a.dataIndex),label:o,value:u,formattedValue:c,markType:n.labelMarkType}},F_=t=>Object.values(t).map(n=>n.layout==="horizontal"?{direction:"y",axisId:n.yAxisId}:{direction:"x",axisId:n.xAxisId}),W_=(t,n,i)=>I({id:t.id??`auto-generated-id-${n}`,color:i[n%i.length]},t),J_={seriesProcessor:Z_,colorProcessor:_S,legendGetter:Q_,tooltipGetter:K_,axisTooltipGetter:F_,xExtremumGetter:D_,yExtremumGetter:z_,getSeriesWithDefaultValues:W_},Pu=(t,n)=>[n[0]===null?t[0]:Math.min(t[0],n[0]),n[1]===null?t[1]:Math.max(t[1],n[1])],t4=t=>{const{series:n,axis:i,isDefaultAxis:a,getFilters:o}=t;return Object.keys(n).filter(u=>{const c=n[u].xAxisId;return c===i.id||c===void 0&&a}).reduce((u,c)=>{var h;const f=o==null?void 0:o({currentAxisId:i.id,isDefaultAxis:a,seriesXAxisId:n[c].xAxisId,seriesYAxisId:n[c].yAxisId}),m=(h=n[c].data)==null?void 0:h.reduce((p,y,v)=>f&&!f(y,v)?p:Pu(p,[y.x,y.x]),[1/0,-1/0]);return Pu(u,m??[1/0,-1/0])},[1/0,-1/0])},e4=t=>{const{series:n,axis:i,isDefaultAxis:a,getFilters:o}=t;return Object.keys(n).filter(u=>{const c=n[u].yAxisId;return c===i.id||c===void 0&&a}).reduce((u,c)=>{var h;const f=o==null?void 0:o({currentAxisId:i.id,isDefaultAxis:a,seriesXAxisId:n[c].xAxisId,seriesYAxisId:n[c].yAxisId}),m=(h=n[c].data)==null?void 0:h.reduce((p,y,v)=>f&&!f(y,v)?p:Pu(p,[y.y,y.y]),[1/0,-1/0]);return Pu(u,m??[1/0,-1/0])},[1/0,-1/0])},n4=({series:t,seriesOrder:n},i)=>({series:Object.fromEntries(Object.entries(t).map(([o,u])=>{const c=u==null?void 0:u.datasetKeys,f=["x","y","id"].filter(h=>typeof(c==null?void 0:c[h])!="string");if(u!=null&&u.datasetKeys&&f.length>0)throw new Error([`MUI X Charts: scatter series with id='${o}' has incomplete datasetKeys.`,`Properties ${f.map(h=>`"${h}"`).join(", ")} are missing.`].join(` 108 + `));const m=c?(i==null?void 0:i.map(h=>({x:h[c.x]??null,y:h[c.y]??null,z:c.z&&h[c.z],id:c.id&&h[c.id]})))??[]:u.data??[];return[o,I({labelMarkType:"circle",markerSize:4},u,{data:m,valueFormatter:u.valueFormatter??(h=>h&&`(${h.x}, ${h.y})`)})]})),seriesOrder:n}),r4=(t,n,i,a)=>{const o=a==null?void 0:a.colorScale,u=i==null?void 0:i.colorScale,c=n==null?void 0:n.colorScale;return o?f=>{var p,y;if(f===void 0)return t.color;if(((p=a==null?void 0:a.data)==null?void 0:p[f])!==void 0){const v=o((y=a==null?void 0:a.data)==null?void 0:y[f]);if(v!==null)return v}const m=t.data[f],h=m===null?t.color:o(m.z);return h===null?t.color:h}:u?f=>{if(f===void 0)return t.color;const m=t.data[f],h=m===null?t.color:u(m.y);return h===null?t.color:h}:c?f=>{if(f===void 0)return t.color;const m=t.data[f],h=m===null?t.color:c(m.x);return h===null?t.color:h}:()=>t.color},i4=t=>{const{seriesOrder:n,series:i}=t;return n.reduce((a,o)=>{const u=Gn(i[o].label,"legend");return u===void 0||a.push({markType:i[o].labelMarkType,id:o,seriesId:o,color:i[o].color,label:u}),a},[])},a4=t=>{const{series:n,getColor:i,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const o=Gn(n.label,"tooltip"),u=n.data[a.dataIndex],c=n.valueFormatter(u,{dataIndex:a.dataIndex});return{identifier:a,color:i(a.dataIndex),label:o,value:u,formattedValue:c,markType:n.labelMarkType}},l4=(t,n,i)=>I({id:t.id??`auto-generated-id-${n}`,color:i[n%i.length]},t),o4={seriesProcessor:n4,colorProcessor:r4,legendGetter:i4,tooltipGetter:a4,xExtremumGetter:t4,yExtremumGetter:e4,getSeriesWithDefaultValues:l4},s4=t=>{const{axis:n}=t,i=Math.min(...n.data??[]),a=Math.max(...n.data??[]);return[i,a]};function u4(t,n,i,a){return i.reduce((o,u,c)=>{if(n[c]===null)return o;const[f,m]=t(u);return a&&(!a({y:f,x:null},c)||!a({y:m,x:null},c))?o:[Math.min(f,m,o[0]),Math.max(f,m,o[1])]},[1/0,-1/0])}const c4=t=>{const{series:n,axis:i,isDefaultAxis:a,getFilters:o}=t;return Object.keys(n).filter(u=>{const c=n[u].yAxisId;return c===i.id||a&&c===void 0}).reduce((u,c)=>{const{area:f,stackedData:m,data:h}=n[c],p=f!==void 0,y=o==null?void 0:o({currentAxisId:i.id,isDefaultAxis:a,seriesXAxisId:n[c].xAxisId,seriesYAxisId:n[c].yAxisId}),v=p&&i.scaleType!=="log"&&typeof n[c].baseline!="string"?C=>C:C=>[C[1],C[1]],b=u4(v,h,m,y),[x,S]=b;return[Math.min(x,u[0]),Math.max(S,u[1])]},[1/0,-1/0])},f4=(t,n)=>{const{seriesOrder:i,series:a}=t,o=OS(I({},t,{defaultStrategy:{stackOffset:"none"}})),u=n??[];i.forEach(f=>{const m=a[f].data;m!==void 0&&m.forEach((h,p)=>{u.length<=p?u.push({[f]:h}):u[p][f]=h})});const c={};return o.forEach(f=>{const{ids:m,stackingOrder:h,stackingOffset:p}=f,y=CS().keys(m.map(v=>{const b=a[v].dataKey;return a[v].data===void 0&&b!==void 0?b:v})).value((v,b)=>v[b]??0).order(h).offset(p)(u);m.forEach((v,b)=>{const x=a[v].dataKey;c[v]=I({labelMarkType:"line"},a[v],{data:x?n.map(S=>{const C=S[x];return typeof C!="number"?null:C}):a[v].data,stackedData:y[b].map(([S,C])=>[S,C])})})}),{seriesOrder:i,stackingGroups:o,series:RS(c,f=>f==null?"":f.toLocaleString())}},d4=(t,n,i)=>{const a=i==null?void 0:i.colorScale,o=n==null?void 0:n.colorScale;return a?u=>{if(u===void 0)return t.color;const c=t.data[u],f=c===null?t.color:a(c);return f===null?t.color:f}:o?u=>{var m;if(u===void 0)return t.color;const c=(m=n.data)==null?void 0:m[u],f=c===null?t.color:o(c);return f===null?t.color:f}:()=>t.color},h4=t=>{const{seriesOrder:n,series:i}=t;return n.reduce((a,o)=>{const u=Gn(i[o].label,"legend");return u===void 0||a.push({markType:i[o].labelMarkType,id:o,seriesId:o,color:i[o].color,label:u}),a},[])},m4=t=>{const{series:n,getColor:i,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const o=Gn(n.label,"tooltip"),u=n.data[a.dataIndex],c=n.valueFormatter(u,{dataIndex:a.dataIndex});return{identifier:a,color:i(a.dataIndex),label:o,value:u,formattedValue:c,markType:n.labelMarkType}},g4=t=>Object.values(t).map(n=>({direction:"x",axisId:n.xAxisId})),p4=(t,n,i)=>I({id:t.id??`auto-generated-id-${n}`,color:i[n%i.length]},t),y4={colorProcessor:d4,seriesProcessor:f4,legendGetter:h4,tooltipGetter:m4,axisTooltipGetter:g4,xExtremumGetter:s4,yExtremumGetter:c4,getSeriesWithDefaultValues:p4},v4=(t="none")=>{if(typeof t=="function")return t;switch(t){case"none":return null;case"desc":return(n,i)=>i-n;case"asc":return(n,i)=>n-i;default:return null}},b4=t=>{const{seriesOrder:n,series:i}=t,a={};return n.forEach(o=>{const u=$_().startAngle(2*Math.PI*(i[o].startAngle??0)/360).endAngle(2*Math.PI*(i[o].endAngle??360)/360).padAngle(2*Math.PI*(i[o].paddingAngle??0)/360).sortValues(v4(i[o].sortingValues??"none"))(i[o].data.map(c=>c.value));a[o]=I({labelMarkType:"circle",valueFormatter:c=>c.value.toLocaleString()},i[o],{data:i[o].data.map((c,f)=>I({},c,{id:c.id??`auto-generated-pie-id-${o}-${f}`},u[f])).map((c,f)=>{var m,h;return I({labelMarkType:"circle"},c,{formattedValue:((h=(m=i[o]).valueFormatter)==null?void 0:h.call(m,I({},c,{label:Gn(c.label,"arc")}),{dataIndex:f}))??c.value.toLocaleString()})})})}),{seriesOrder:n,series:a}},x4=t=>n=>t.data[n].color,S4=t=>{const{seriesOrder:n,series:i}=t;return n.reduce((a,o)=>(i[o].data.forEach((u,c)=>{const f=Gn(u.label,"legend");f!==void 0&&a.push({markType:u.labelMarkType??i[o].labelMarkType,id:u.id??c,seriesId:o,color:u.color,label:f,itemId:u.id??c})}),a),[])},A4=t=>{const{series:n,getColor:i,identifier:a}=t;if(!a||a.dataIndex===void 0)return null;const o=n.data[a.dataIndex];if(o==null)return null;const u=Gn(o.label,"tooltip"),c=I({},o,{label:u}),f=n.valueFormatter(c,{dataIndex:a.dataIndex});return{identifier:a,color:i(a.dataIndex),label:u,value:c,formattedValue:f,markType:o.labelMarkType??n.labelMarkType}},T4=(t,n,i)=>I({id:t.id??`auto-generated-id-${n}`},t,{data:t.data.map((a,o)=>I({color:i[o%i.length]},a))}),C4={colorProcessor:x4,seriesProcessor:b4,legendGetter:S4,tooltipGetter:A4,getSeriesWithDefaultValues:T4},w4={bar:J_,scatter:o4,line:y4,pie:C4},M4=[Jo,ml,Wo,gl];function E4(t){const{children:n,plugins:i=M4,pluginParams:a={},seriesConfig:o=w4}=t,{contextValue:u}=kO(i,a,o);return H.jsx(_x.Provider,{value:u,children:n})}const Ii=()=>{const t=Y.useContext(_x);if(t==null)throw new Error(["MUI X Charts: Could not find the Chart context.","It looks like you rendered your component outside of a ChartDataProvider.","This can also happen if you are bundling multiple versions of the library."].join(` 109 + `));return t},O4=t=>{"hasPointerCapture"in t.currentTarget&&t.currentTarget.hasPointerCapture(t.pointerId)&&t.currentTarget.releasePointerCapture(t.pointerId)},R4=(t,n)=>{const{instance:i}=Ii(),a=Y.useRef(!1),o=Y.useCallback(()=>{a.current=!0,i.setItemInteraction({type:t.type,seriesId:t.seriesId,dataIndex:t.dataIndex}),i.setHighlight({seriesId:t.seriesId,dataIndex:t.dataIndex})},[i,t.type,t.seriesId,t.dataIndex]),u=Y.useCallback(()=>{a.current=!1,i.removeItemInteraction({type:t.type,seriesId:t.seriesId,dataIndex:t.dataIndex}),i.clearHighlight()},[i,t.type,t.seriesId,t.dataIndex]);return Y.useEffect(()=>()=>{a.current&&u()},[u]),{onPointerEnter:o,onPointerLeave:u,onPointerDown:O4}};function Jt(){const t=Ii();if(!t)throw new Error(["MUI X Charts: Could not find the charts context.","It looks like you rendered your component outside of a ChartContainer parent component."].join(` 110 + `));return t.store}const kS=(t,n)=>i=>!t||!n||!i?!1:t.highlight==="series"?i.seriesId===n.seriesId:t.highlight==="item"?i.dataIndex===n.dataIndex&&i.seriesId===n.seriesId:!1,DS=(t,n)=>i=>!t||!n||!i?!1:t.fade==="series"?i.seriesId===n.seriesId&&i.dataIndex!==n.dataIndex:t.fade==="global"?i.seriesId!==n.seriesId||i.dataIndex!==n.dataIndex:!1,_4=t=>t.highlight,k4=t=>t.series,D4=ft(k4,t=>{const n=new Map;return Object.keys(t.processedSeries).forEach(i=>{const a=t.processedSeries[i];Object.keys((a==null?void 0:a.series)??{}).forEach(o=>{const u=a==null?void 0:a.series[o];n.set(o,u==null?void 0:u.highlightScope)})}),n}),ts=ft(_4,t=>t.item),Nc=ft([D4,ts],(t,n)=>{if(!n)return null;const i=t.get(n.seriesId);return i===void 0?null:i});ft([Nc,ts],kS);ft([Nc,ts],DS);const z4=ft([Nc,ts,(t,n)=>n],(t,n,i)=>kS(t,n)(i)),N4=ft([Nc,ts,(t,n)=>n],(t,n,i)=>DS(t,n)(i));function zS(t){const n=Jt(),i=wt(n,z4,t),a=wt(n,N4,t);return{isHighlighted:i,isFaded:!i&&a}}var Oh,Kv;function U4(){if(Kv)return Oh;Kv=1;var t=4,n=.001,i=1e-7,a=10,o=11,u=1/(o-1),c=typeof Float32Array=="function";function f(S,C){return 1-3*C+3*S}function m(S,C){return 3*C-6*S}function h(S){return 3*S}function p(S,C,E){return((f(C,E)*S+m(C,E))*S+h(C))*S}function y(S,C,E){return 3*f(C,E)*S*S+2*m(C,E)*S+h(C)}function v(S,C,E,_,O){var k,M,R=0;do M=C+(E-C)/2,k=p(M,_,O)-S,k>0?E=M:C=M;while(Math.abs(k)>i&&++R<a);return M}function b(S,C,E,_){for(var O=0;O<t;++O){var k=y(C,E,_);if(k===0)return C;var M=p(C,E,_)-S;C-=M/k}return C}function x(S){return S}return Oh=function(C,E,_,O){if(!(0<=C&&C<=1&&0<=_&&_<=1))throw new Error("bezier x values must be in [0, 1] range");if(C===E&&_===O)return x;for(var k=c?new Float32Array(o):new Array(o),M=0;M<o;++M)k[M]=p(M*u,C,_);function R(D){for(var L=0,$=1,T=o-1;$!==T&&k[$]<=D;++$)L+=u;--$;var z=(D-k[$])/(k[$+1]-k[$]),X=L+z*u,K=y(X,C,_);return K>=n?b(D,X,C,_):K===0?X:v(D,L,L+u,C,_)}return function(L){return L===0?0:L===1?1:p(R(L),E,O)}},Oh}var j4=U4();const $4=jb(j4),B4=300,L4=$4(.66,0,.34,1);var ll=0,wo=0,xo=0,NS=1e3,Zu,Mo,Qu=0,Bi=0,Uc=0,Ho=typeof performance=="object"&&performance.now?performance:Date,US=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function i0(){return Bi||(US(H4),Bi=Ho.now()+Uc)}function H4(){Bi=0}function Ku(){this._call=this._time=this._next=null}Ku.prototype=jS.prototype={constructor:Ku,restart:function(t,n,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?i0():+i)+(n==null?0:+n),!this._next&&Mo!==this&&(Mo?Mo._next=this:Zu=this,Mo=this),this._call=t,this._time=i,tm()},stop:function(){this._call&&(this._call=null,this._time=1/0,tm())}};function jS(t,n,i){var a=new Ku;return a.restart(t,n,i),a}function Jh(){i0(),++ll;for(var t=Zu,n;t;)(n=Bi-t._time)>=0&&t._call.call(void 0,n),t=t._next;--ll}function Fv(){Bi=(Qu=Ho.now())+Uc,ll=wo=0;try{Jh()}finally{ll=0,G4(),Bi=0}}function Y4(){var t=Ho.now(),n=t-Qu;n>NS&&(Uc-=n,Qu=t)}function G4(){for(var t,n=Zu,i,a=1/0;n;)n._call?(a>n._time&&(a=n._time),t=n,n=n._next):(i=n._next,n._next=null,n=t?t._next=i:Zu=i);Mo=t,tm(a)}function tm(t){if(!ll){wo&&(wo=clearTimeout(wo));var n=t-Bi;n>24?(t<1/0&&(wo=setTimeout(Fv,t-Ho.now()-Uc)),xo&&(xo=clearInterval(xo))):(xo||(Qu=Ho.now(),xo=setInterval(Y4,NS)),ll=1,US(Fv))}}function q4(t,n,i){var a=new Ku;return n=n==null?0:+n,a.restart(o=>{a.stop(),t(o+n)},n,i),a}class I4{constructor(n,i,a){this.duration=void 0,this.elapsed=0,this.easingFn=void 0,this.timer=null,this.onTickCallback=void 0,this.duration=n,this.easingFn=i,this.onTickCallback=a,this.resume()}get running(){return this.timer!==null}timerCallback(n){this.elapsed=Math.min(n,this.duration);const i=this.duration===0?1:this.elapsed/this.duration,a=this.easingFn(i);this.onTickCallback(a),this.elapsed>=this.duration&&this.stop()}resume(){if(this.running||this.elapsed>=this.duration)return this;const n=i0()-this.elapsed;return this.timer=jS(i=>this.timerCallback(i),0,n),Jh(),this}stop(){return this.running?(this.timer&&(this.timer.stop(),this.timer=null),this):this}finish(){return this.stop(),q4(()=>this.timerCallback(this.duration)),Jh(),this}}function V4(t,n){if(Object.is(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;const i=Object.keys(t),a=Object.keys(n);if(i.length!==a.length)return!1;for(let o=0;o<i.length;o+=1){const u=i[o];if(!Object.prototype.hasOwnProperty.call(n,u)||!Object.is(t[u],n[u]))return!1}return!0}function X4(t,{createInterpolator:n,applyProps:i,skip:a,initialProps:o=t}){const u=Y.useRef(o),c=Y.useRef(null),f=Y.useRef(null),m=Y.useRef(t);Ye(()=>{m.current=t},[t]),Ye(()=>{var y;a&&((y=c.current)==null||y.finish(),c.current=null,f.current=null,u.current=t)},[t,a]);const h=Y.useCallback(y=>{const v=u.current,b=n(v,t);c.current=new I4(B4,L4,x=>{const S=b(x);u.current=S,i(y,S)})},[i,n,t]);return Y.useCallback(y=>{var b,x,S,C;if(y===null){(b=c.current)==null||b.stop();return}const v=f.current;if(v===y){if(V4(m.current,t)){(x=c.current)==null||x.resume();return}(S=c.current)==null||S.stop()}v&&((C=c.current)==null||C.stop()),f.current=y,(c.current||!a)&&h(y)},[h,t,a])}function a0(t,{createInterpolator:n,transformProps:i,applyProps:a,skip:o,initialProps:u=t,ref:c}){const f=i??(p=>p),m=X4(t,{initialProps:u,createInterpolator:n,applyProps:(p,y)=>a(p,f(y)),skip:o});return I({},i(o?t:u),{ref:Wa(m,c)})}function P4(t,n){const i=xe(t.x,n.x),a=xe(t.y,n.y),o=xe(t.width,n.width),u=xe(t.height,n.height);return c=>({x:i(c),y:a(c),width:o(c),height:u(c)})}function Z4(t){const n={x:t.layout==="vertical"?t.x:t.xOrigin,y:t.layout==="vertical"?t.yOrigin:t.y,width:t.layout==="vertical"?t.width:0,height:t.layout==="vertical"?0:t.height};return a0({x:t.x,y:t.y,width:t.width,height:t.height},{createInterpolator:P4,applyProps(i,a){i.setAttribute("x",a.x.toString()),i.setAttribute("y",a.y.toString()),i.setAttribute("width",a.width.toString()),i.setAttribute("height",a.height.toString())},transformProps:i=>i,initialProps:n,skip:t.skipAnimation,ref:t.ref})}const Q4=["ownerState","skipAnimation","id","dataIndex","xOrigin","yOrigin"];function K4(t){const{ownerState:n}=t,i=Qt(t,Q4),a=Z4(t);return H.jsx("rect",I({},i,{filter:n.isHighlighted?"brightness(120%)":void 0,opacity:n.isFaded?.3:1},a))}const F4=["id","dataIndex","classes","color","slots","slotProps","style","onClick","skipAnimation","layout","x","xOrigin","y","yOrigin","width","height"];function W4(t){const{id:n,dataIndex:i,classes:a,color:o,slots:u,slotProps:c,style:f,onClick:m,skipAnimation:h,layout:p,x:y,xOrigin:v,y:b,yOrigin:x,width:S,height:C}=t,E=Qt(t,F4),_=R4({type:"bar",seriesId:n,dataIndex:i}),{isFaded:O,isHighlighted:k}=zS({seriesId:n,dataIndex:i}),M={id:n,dataIndex:i,classes:a,color:o,isFaded:O,isHighlighted:k},R=DE(M),D=(u==null?void 0:u.bar)??K4,L=Or({elementType:D,externalSlotProps:c==null?void 0:c.bar,externalForwardedProps:E,additionalProps:I({},_,{id:n,dataIndex:i,color:o,x:y,xOrigin:v,y:b,yOrigin:x,width:S,height:C,style:f,onClick:m,cursor:m?"pointer":"unset",stroke:"none",fill:o,skipAnimation:h,layout:p}),className:R.root,ownerState:M});return H.jsx(D,I({},L))}function ar(){const t=Jt();return wt(t,Ur)}function l0(){const t=Jt();return wt(t,CO)}function o0(t){return iS.getTypes().has(t)}const J4=(t,n,i,a,o,u,c)=>{var b;const f=a==="rotation"?o[n].rotationExtremumGetter:o[n].radiusExtremumGetter,m=((b=c[n])==null?void 0:b.series)??{},[h,p]=(f==null?void 0:f({series:m,axis:i,axisIndex:u,isDefaultAxis:u===0}))??[1/0,-1/0],[y,v]=t;return[Math.min(h,y),Math.max(p,v)]},t5=(t,n,i,a,o)=>{const c=Object.keys(i).filter(o0).reduce((f,m)=>J4(f,m,t,n,i,a,o),[1/0,-1/0]);return Number.isNaN(c[0])||Number.isNaN(c[1])?[1/0,-1/0]:c},Eo=(t,n)=>t===void 0?n:Math.PI*t/180,e5=(t,n,i,a)=>{const o=new Set;return Object.keys(n).filter(o0).forEach(c=>{var h,p,y;const f=((h=i[c])==null?void 0:h.series)??{},m=(y=(p=n[c]).axisTooltipGetter)==null?void 0:y.call(p,f);m!==void 0&&m.forEach(({axisId:v,direction:b})=>{b===t&&o.add(v??a)})}),o};function n5(t,n,i){if(n==="rotation"){if(i.scaleType==="point"){const a=[Eo(i.startAngle,0),Eo(i.endAngle,2*Math.PI)],o=a[1]-a[0];return o>Math.PI*2-.1&&(a[1]-=o/i.data.length),a}return[Eo(i.startAngle,0),Eo(i.endAngle,2*Math.PI)]}return[0,Math.min(t.height,t.width)/2]}const Wv=t=>(t==null?void 0:t[0])instanceof Date;function Jv(t,n){const i=Jm(t.data,n);return(a,{location:o})=>o==="tick"?i.tickFormat(t.tickNumber)(a):`${a.toLocaleString()}`}const r5=.2,i5=.1;function $S({drawingArea:t,formattedSeries:n,axis:i,seriesConfig:a,axisDirection:o}){if(i===void 0)return{axis:{},axisIds:[]};const u=e5(o,a,n,i[0].id),c={};return i.forEach((f,m)=>{const h=f,p=n5(t,o,h),[y,v]=t5(h,o,a,m,n),b=!h.ignoreTooltip&&u.has(h.id),x=h.data??[];if(Xu(h)){const $=h.categoryGapRatio??r5,T=h.barGapRatio??i5;if(c[h.id]=I({offset:0,categoryGapRatio:$,barGapRatio:T,triggerTooltip:b},h,{data:x,scale:Ac(h.data,p).paddingInner($).paddingOuter($/2),tickNumber:h.data.length,colorScale:h.colorMap&&(h.colorMap.type==="ordinal"?nl(I({values:h.data},h.colorMap)):Ni(h.colorMap))}),Wv(h.data)){const z=Jv(h,p);c[h.id].valueFormatter=h.valueFormatter??z}}if(t0(h)&&(c[h.id]=I({offset:0,triggerTooltip:b},h,{data:x,scale:Ux(h.data,p),tickNumber:h.data.length,colorScale:h.colorMap&&(h.colorMap.type==="ordinal"?nl(I({values:h.data},h.colorMap)):Ni(h.colorMap))}),Wv(h.data))){const $=Jv(h,p);c[h.id].valueFormatter=h.valueFormatter??$}if(h.scaleType==="band"||h.scaleType==="point")return;const S=h.scaleType??"linear",C=h.domainLimit??"nice",E=[h.min??y,h.max??v];if(typeof C=="function"){const{min:$,max:T}=C(y,v);E[0]=$,E[1]=T}const _=nS(I({},h,{range:p,domain:E})),O=rS(_,p),k=e0(S,E,p),M=C==="nice"?k.nice(_):k,[R,D]=M.domain(),L=[h.min??R,h.max??D];c[h.id]=I({offset:0,triggerTooltip:b},h,{data:x,scaleType:S,scale:M.domain(L),tickNumber:O,colorScale:h.colorMap&&Ni(h.colorMap)})}),{axis:c,axisIds:i.map(({id:f})=>f)}}const BS=t=>t.polarAxis,LS=ft(BS,t=>t==null?void 0:t.rotation),a5=ft(BS,t=>t==null?void 0:t.radius),Vi=ft([LS,Ur,In,jr],(t,n,i,a)=>$S({drawingArea:n,formattedSeries:i,axis:t,seriesConfig:a,axisDirection:"rotation"})),l5=ft([a5,Ur,In,jr],(t,n,i,a)=>$S({drawingArea:n,formattedSeries:i,axis:t,seriesConfig:a,axisDirection:"radius"})),o5=ft([Ur],t=>({cx:t.left+t.width/2,cy:t.top+t.height/2})),s5=t=>(n,i)=>Math.atan2(n-t.cx,t.cy-i);function Xi(){const t=Jt(),{axis:n,axisIds:i}=wt(t,Gi);return{xAxis:n,xAxisIds:i}}function Pi(){const t=Jt(),{axis:n,axisIds:i}=wt(t,qi);return{yAxis:n,yAxisIds:i}}function HS(t){const n=Jt(),{axis:i,axisIds:a}=wt(n,Gi),o=a[0];return i[o]}function YS(t){const n=Jt(),{axis:i,axisIds:a}=wt(n,qi),o=a[0];return i[o]}function GS(){const t=Jt(),{axis:n,axisIds:i}=wt(t,Vi);return{rotationAxis:n,rotationAxisIds:i}}function u5(){const t=Jt(),{axis:n,axisIds:i}=wt(t,l5);return{radiusAxis:n,radiusAxisIds:i}}function c5(t){const n=Jt(),{axis:i,axisIds:a}=wt(n,Vi),o=a[0];return i[o]}function Fu(t){return $r(t)?n=>(t(n)??0)+t.bandwidth()/2:n=>t(n)}function f5(t){return HS().scale}function d5(t){return YS().scale}function s0(){const t=Jt(),{axis:n,axisIds:i}=wt(t,__)??{axis:{},axisIds:[]};return{zAxis:n,zAxisIds:i}}function u0(){const t=Ii();if(!t)throw new Error(["MUI X Charts: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartContainer parent component."].join(` 111 + `));return t.svgRef}function jc(){const t=Jt();return wt(t,In)}function h5(t,n){if(t===n)return!0;if(!Array.isArray(t)||!Array.isArray(n))return!1;let i=t.length;if(i!==n.length)return!1;for(;i--;)if(t[i]!==n[i])return!1;return!0}function m5(t){const n=ft([In,(i,a)=>a],(i,a)=>{var u,c,f,m,h,p;if(!a||Array.isArray(a)&&a.length===0)return((c=(u=i[t])==null?void 0:u.seriesOrder)==null?void 0:c.map(y=>{var v;return(v=i[t])==null?void 0:v.series[y]}))??[];if(!Array.isArray(a))return(m=(f=i[t])==null?void 0:f.series)==null?void 0:m[a];const o=[];for(const y of a){const v=(p=(h=i[t])==null?void 0:h.series)==null?void 0:p[y];v&&o.push(v)}return o});return i=>{const a=Jt();return wt(a,n,i,h5)}}function g5(t){const n=ft(In,i=>i[t]);return()=>{const i=Jt();return wt(i,n)}}m5("bar");const p5=g5("bar");function y5(){return p5()}function v5(t,n){return Object.keys(t).flatMap(i=>{const a=n[i].legendGetter;return a===void 0?[]:a(t[i])})}function b5(){const t=jc(),n=Jt(),i=wt(n,jr);return{items:v5(t,i)}}function x5(){const t=l0();return Y.useCallback(n=>`${t}-gradient-${n}`,[t])}function S5(){const t=l0();return Y.useCallback(n=>`${t}-gradient-${n}-object-bound`,[t])}function A5(t,n){const i=xe(t.x,n.x),a=xe(t.y,n.y),o=xe(t.width,n.width),u=xe(t.height,n.height);return c=>({x:i(c),y:a(c),width:o(c),height:u(c)})}function T5(t){const n={x:t.layout==="vertical"?t.x+t.width/2:t.xOrigin,y:t.layout==="vertical"?t.yOrigin:t.y+t.height/2,width:t.width,height:t.height},i={x:t.x+t.width/2,y:t.y+t.height/2,width:t.width,height:t.height};return a0(i,{createInterpolator:A5,transformProps:a=>a,applyProps(a,o){a.setAttribute("x",o.x.toString()),a.setAttribute("y",o.y.toString()),a.setAttribute("width",o.width.toString()),a.setAttribute("height",o.height.toString())},initialProps:n,skip:t.skipAnimation,ref:t.ref})}function C5(){return Ii().chartRootRef}const w5=t=>({components:{MuiChartsLocalizationProvider:{defaultProps:{localeText:I({},t)}}}}),qS={loading:"Loading data…",noData:"No data to display",zoomIn:"Zoom in",zoomOut:"Zoom out"},M5=qS;w5(qS);const E5=["localeText"],em=Y.createContext(null);function O5(t){const{localeText:n}=t,i=Qt(t,E5),{localeText:a}=Y.useContext(em)??{localeText:void 0},o=ir({props:i,name:"MuiChartsLocalizationProvider"}),{children:u,localeText:c}=o,f=Y.useMemo(()=>I({},M5,c,a,n),[c,a,n]),m=Y.useMemo(()=>({localeText:f}),[f]);return H.jsx(em.Provider,{value:m,children:u})}const IS=()=>{const t=Y.useContext(em);if(t===null)throw new Error(["MUI X Charts: Can not find the charts localization context.","It looks like you forgot to wrap your component in ChartsLocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-charts` package"].join(` 112 + `));return t},Cu=(t,{hasNegative:n,hasPositive:i,borderRadius:a,layout:o})=>{if(!a)return 0;const u=o==="vertical";return t==="top-left"&&(u&&i||!u&&n)||t==="top-right"&&(u&&i||!u&&i)||t==="bottom-right"&&(u&&n||!u&&i)||t==="bottom-left"&&(u&&n||!u&&n)?a:0},R5=["maskId","x","y","width","height","skipAnimation"];function _5(t,n,i){const a=I({},i,{borderRadius:n}),o=Math.min(t,Cu("top-left",a)),u=Math.min(t,Cu("top-right",a)),c=Math.min(t,Cu("bottom-right",a)),f=Math.min(t,Cu("bottom-left",a));return`inset(0px round ${o}px ${u}px ${c}px ${f}px)`}function k5(t,n){const i=xe(t.x,n.x),a=xe(t.y,n.y),o=xe(t.width,n.width),u=xe(t.height,n.height),c=xe(t.borderRadius,n.borderRadius);return f=>({x:i(f),y:a(f),width:o(f),height:u(f),borderRadius:c(f)})}function D5(t){const n={x:t.x,y:t.y+(t.ownerState.layout==="vertical"?t.height:0),width:t.ownerState.layout==="vertical"?t.width:0,height:t.ownerState.layout==="vertical"?0:t.height,borderRadius:t.borderRadius};return a0({x:t.x,y:t.y,width:t.width,height:t.height,borderRadius:t.borderRadius},{createInterpolator:k5,transformProps:i=>({x:i.x,y:i.y,width:i.width,height:i.height,style:{clipPath:_5(t.ownerState.layout==="vertical"?i.height:i.width,i.borderRadius,t.ownerState)}}),applyProps(i,a){i.setAttribute("x",a.x.toString()),i.setAttribute("y",a.y.toString()),i.setAttribute("width",a.width.toString()),i.setAttribute("height",a.height.toString()),i.style.clipPath=a.style.clipPath},initialProps:n,skip:t.skipAnimation,ref:t.ref})}function z5(t){const n=D5(I({},t,{borderRadius:t.ownerState.borderRadius??0}));return H.jsx("rect",I({},n))}function N5(t){const{maskId:n,x:i,y:a,width:o,height:u,skipAnimation:c}=t,f=Qt(t,R5);return!t.borderRadius||t.borderRadius<=0?null:H.jsx("clipPath",{id:n,children:H.jsx(z5,{ownerState:f,x:i,y:a,width:o,height:u,skipAnimation:c})})}function U5(t){return zn("MuiBarLabel",t)}const Rh=qn("MuiBarLabel",["root","highlighted","faded","animate"]),j5=t=>{const{classes:n,seriesId:i,isFaded:a,isHighlighted:o,skipAnimation:u}=t,c={root:["root",`series-${i}`,o&&"highlighted",a&&"faded",!u&&"animate"]};return Nn(c,U5,n)},$5=t=>{const{barLabel:n,value:i,dataIndex:a,seriesId:o,height:u,width:c}=t;return n==="value"?i?i==null?void 0:i.toString():null:n({seriesId:o,dataIndex:a,value:i},{bar:{height:u,width:c}})},B5=["seriesId","dataIndex","color","isFaded","isHighlighted","classes","skipAnimation","layout","xOrigin","yOrigin"],L5=he("text",{name:"MuiBarLabel",slot:"Root",overridesResolver:(t,n)=>[{[`&.${Rh.faded}`]:n.faded},{[`&.${Rh.highlighted}`]:n.highlighted},n.root]})(({theme:t})=>{var n,i,a,o;return I({},(n=t==null?void 0:t.typography)==null?void 0:n.body2,{stroke:"none",fill:(o=(a=(i=t.vars||t)==null?void 0:i.palette)==null?void 0:a.text)==null?void 0:o.primary,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",textAnchor:"middle",dominantBaseline:"central",pointerEvents:"none",opacity:1,[`&.${Rh.faded}`]:{opacity:.3}})});function H5(t){const n=ir({props:t,name:"MuiBarLabel"}),i=Qt(n,B5),a=T5(n);return H.jsx(L5,I({},i,a))}const Y5=["seriesId","classes","color","dataIndex","barLabel","slots","slotProps","xOrigin","yOrigin","x","y","width","height","value","skipAnimation","layout"],G5=["ownerState"];function q5(t){const{seriesId:n,classes:i,color:a,dataIndex:o,barLabel:u,slots:c,slotProps:f,xOrigin:m,yOrigin:h,x:p,y,width:v,height:b,value:x,skipAnimation:S,layout:C}=t,E=Qt(t,Y5),{isFaded:_,isHighlighted:O}=zS({seriesId:n,dataIndex:o}),k={seriesId:n,classes:i,color:a,isFaded:_,isHighlighted:O,dataIndex:o,skipAnimation:S,layout:C},M=j5(k),R=(c==null?void 0:c.barLabel)??H5,D=Or({elementType:R,externalSlotProps:f==null?void 0:f.barLabel,additionalProps:I({},E,{xOrigin:m,yOrigin:h,x:p,y,width:v,height:b,className:M.root}),ownerState:k}),{ownerState:L}=D,$=Qt(D,G5);if(!u)return null;const T=$5({barLabel:u,value:x,dataIndex:o,seriesId:n,height:b,width:v});return T?H.jsx(R,I({},$,L,{children:T})):null}const I5=["bars","skipAnimation"];function V5(t){const{bars:n,skipAnimation:i}=t,a=Qt(t,I5);return H.jsx(Y.Fragment,{children:n.map(({xOrigin:o,yOrigin:u,x:c,y:f,seriesId:m,dataIndex:h,color:p,value:y,width:v,height:b,layout:x})=>H.jsx(q5,I({seriesId:m,dataIndex:h,value:y,color:p,xOrigin:o,yOrigin:u,x:c,y:f,width:v,height:b,skipAnimation:i??!1,layout:x??"vertical"},a),`${m}-${h}`))})}const _h=(t,n)=>{const i=`${t}-axis`,a=`${t}Axis`;return n===(t==="x"?Dm:zm)?`The first \`${a}\``:`The ${i} with id "${n}"`};function X5(t,n,i,a,o,u,c){const f=o[a],m=c[u],h=t?f:m,p=t?m:f,y=t?a:u,v=t?u:a,b=t?"x":"y",x=t?"y":"x";if(!Xu(h))throw new Error(`MUI X Charts: ${_h(b,y)} should be of type "band" to display the bar series of id "${n}".`);if(h.data===void 0)throw new Error(`MUI X Charts: ${_h(b,y)} should have data property.`);if(Xu(p)||t0(p))throw new Error(`MUI X Charts: ${_h(x,v)} should be a continuous type to display the bar series of id "${n}".`)}function P5(t){const n=Jt(),i=wt(n,iO);return t||i}function Z5(){const t=Jt();return wt(t,cS)}const Q5=["skipAnimation","onItemClick","borderRadius","barLabel"];function K5({bandWidth:t,numberOfGroups:n,gapRatio:i}){if(i===0)return{barWidth:t/n,offset:0};const a=t/(n+(n-1)*i),o=i*a;return{barWidth:a,offset:o}}const F5=()=>{const t=y5()??{series:{},stackingGroups:[]},n=ar(),i=l0(),{series:a,stackingGroups:o}=t,{xAxis:u,xAxisIds:c}=Xi(),{yAxis:f,yAxisIds:m}=Pi(),h=c[0],p=m[0],y={};return{completedData:o.flatMap(({ids:b},x)=>{const S=n.left,C=n.left+n.width,E=n.top,_=n.top+n.height;return b.flatMap(O=>{const k=a[O].xAxisId??h,M=a[O].yAxisId??p,R=u[k],D=f[M],L=a[O].layout==="vertical";X5(L,O,a[O],k,u,M,f);const $=L?R:D,T=R.scale,z=D.scale,X=_S(a[O],u[k],f[M]),K=$.scale.bandwidth(),{barWidth:it,offset:ot}=K5({bandWidth:K,numberOfGroups:o.length,gapRatio:$.barGapRatio}),j=x*(it+ot),{stackedData:P,data:nt,layout:st}=a[O];return $.data.map((N,F)=>{if(nt[F]==null)return null;const lt=P[F].map(ut=>L?z(ut):T(ut)),ct=Math.round(Math.min(...lt)),yt=Math.round(Math.max(...lt)),dt=a[O].stack,gt={seriesId:O,dataIndex:F,layout:st,x:L?T(N)+j:ct,y:L?ct:z(N)+j,xOrigin:T(0)??0,yOrigin:z(0)??0,height:L?yt-ct:it,width:L?it:yt-ct,color:X(F),value:nt[F],maskId:`${i}_${dt||O}_${x}_${F}`};if(gt.x>C||gt.x+gt.width<S||gt.y>_||gt.y+gt.height<E)return null;y[gt.maskId]||(y[gt.maskId]={id:gt.maskId,width:0,height:0,hasNegative:!1,hasPositive:!1,layout:gt.layout,xOrigin:T(0),yOrigin:z(0),x:0,y:0});const mt=y[gt.maskId];return mt.width=gt.layout==="vertical"?gt.width:mt.width+gt.width,mt.height=gt.layout==="vertical"?mt.height+gt.height:gt.height,mt.x=Math.min(mt.x===0?1/0:mt.x,gt.x),mt.y=Math.min(mt.y===0?1/0:mt.y,gt.y),mt.hasNegative=mt.hasNegative||(gt.value??0)<0,mt.hasPositive=mt.hasPositive||(gt.value??0)>0,gt}).filter(N=>N!==null)})}),masksData:Object.values(y)}},W5=he("g",{name:"MuiBarPlot",slot:"Root"})({[`& .${kE.root}`]:{transition:"opacity 0.2s ease-in, fill 0.2s ease-in"}});function J5(t){const{completedData:n,masksData:i}=F5(),{skipAnimation:a,onItemClick:o,borderRadius:u,barLabel:c}=t,f=Qt(t,Q5),m=Z5(),h=P5(m||a),p=!u||u<=0;return H.jsxs(W5,{children:[!p&&i.map(({id:y,x:v,y:b,width:x,height:S,hasPositive:C,hasNegative:E,layout:_})=>H.jsx(N5,{maskId:y,borderRadius:u,hasNegative:E,hasPositive:C,layout:_,x:v,y:b,width:x,height:S,skipAnimation:h??!1},y)),n.map(({seriesId:y,dataIndex:v,color:b,maskId:x,layout:S,x:C,xOrigin:E,y:_,yOrigin:O,width:k,height:M})=>{const R=H.jsx(W4,I({id:y,dataIndex:v,color:b,skipAnimation:h??!1,layout:S??"vertical",x:C,xOrigin:E,y:_,yOrigin:O,width:k,height:M},f,{onClick:o&&(D=>{o(D,{type:"bar",seriesId:y,dataIndex:v})})}),`${y}-${v}`);return p?R:H.jsx("g",{clipPath:`url(#${x})`,children:R},`${y}-${v}`)}),c&&H.jsx(V5,I({bars:n,skipAnimation:h,barLabel:c},f))]})}function $c(t){return(t%360+360)%360}const kh=2*Math.PI;function tk(t){return(t%kh+kh)%kh}function c0(){const[t,n]=Y.useState(typeof window<"u"||!1);return Y.useEffect(()=>{n(!0)},[]),t}const VS=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function ek(t){return t.length}function nk(t){const n=VS.segment(t);let i=0;for(const a of n)i+=1;return i}const rk=VS?nk:ek;function ik(t){return t*(Math.PI/180)}const XS=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function ak(t,n){return t.slice(0,n)}function lk(t,n){const i=XS.segment(t);let a="",o=0;for(const u of i)if(a+=u.segment,o+=1,o>=n)break;return a}const ok=XS?lk:ak,tb="…";function PS(t,n){const{width:i,height:a,measureText:o}=n,u=ik(n.angle),c=o(t),f=Math.abs(c.width*Math.cos(u))+Math.abs(c.height*Math.sin(u)),m=Math.abs(c.width*Math.sin(u))+Math.abs(c.height*Math.cos(u));return f<=i&&m<=a}function ZS(t,n){if(n(t))return t;let i=t,a=1,o=1/2;const u=rk(t);let c=u,f=u,m=null;do{if(f=c,c=Math.floor(u*o),c===0)break;i=ok(t,c).trim();const h=n(i+tb);a+=1,h?(m=i,o+=1/2**a):o-=1/2**a}while(Math.abs(c-f)!==1);return m?m+tb:""}function sk(){return typeof window>"u"}const Ri={widthCache:{},cacheCount:0},uk=2e3,ck={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},fk=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],eb="mui_measurement_span";function QS(t,n){return fk.indexOf(t)>=0&&n===+n?`${n}px`:n}function KS(t){return t.split("").reduce((a,o)=>o===o.toUpperCase()?[...a,"-",o.toLowerCase()]:[...a,o],[]).join("")}const dk=t=>Object.keys(t).sort().reduce((n,i)=>`${n}${KS(i)}:${QS(i,t[i])};`,"");let Dh;const es=(t,n={})=>{if(t==null||sk())return{width:0,height:0};const i=`${t}`,a=dk(n),o=`${i}-${a}`;if(Ri.widthCache[o])return Ri.widthCache[o];try{let u=document.getElementById(eb);u===null&&(u=document.createElement("span"),u.setAttribute("id",eb),u.setAttribute("aria-hidden","true"),document.body.appendChild(u));const c=I({},ck,n);Object.keys(c).map(h=>(u.style[KS(h)]=QS(h,c[h]),h)),u.textContent=i;const f=u.getBoundingClientRect(),m={width:f.width,height:f.height};return Ri.widthCache[o]=m,Ri.cacheCount+1>uk?(Ri.cacheCount=0,Ri.widthCache={}):Ri.cacheCount+=1,Dh&&clearTimeout(Dh),Dh=setTimeout(()=>{u.textContent=""},0),m}catch{return{width:0,height:0}}};function f0(t){return typeof t=="number"&&!Number.isFinite(t)}const zh={start:0,extremities:0,end:1,middle:.5};function Bc(t){const{scale:n,tickNumber:i,valueFormatter:a,tickInterval:o,tickPlacement:u="extremities",tickLabelPlacement:c,direction:f}=t,{instance:m}=Ii();return Y.useMemo(()=>{if($r(n)){const b=n.domain(),x=c??"middle";return n.bandwidth()>0?[...(typeof o=="function"&&b.filter(o)||typeof o=="object"&&o||b).map(E=>({value:E,formattedValue:(a==null?void 0:a(E,{location:"tick",scale:n}))??`${E}`,offset:n(E)-(n.step()-n.bandwidth())/2+zh[u]*n.step(),labelOffset:x==="tick"?0:n.step()*(zh[x]-zh[u])})),...u==="extremities"?[{formattedValue:void 0,offset:n.range()[1],labelOffset:0}]:[]]:(typeof o=="function"&&b.filter(o)||typeof o=="object"&&o||b).map(C=>({value:C,formattedValue:(a==null?void 0:a(C,{location:"tick",scale:n}))??`${C}`,offset:n(C),labelOffset:0}))}if(n.domain().some(f0))return[];const p=c,y=typeof o=="object"?o:n.ticks(i),v=[];for(let b=0;b<y.length;b+=1){const x=y[b],S=n(x);m.isPointInside({x:S,y:S},{direction:f})&&v.push({value:x,formattedValue:(a==null?void 0:a(x,{location:"tick",scale:n}))??n.tickFormat(i)(x),offset:S,labelOffset:p==="middle"?n(y[b-1]??0)-(S+n(y[b-1]??0))/2:0})}return v},[n,c,o,i,u,a,f,m])}function FS(t){return zn("MuiChartsAxis",t)}const wu=qn("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),WS=he("g",{name:"MuiChartsAxis",slot:"Root"})(({theme:t})=>({[`& .${wu.tickLabel}`]:I({},t.typography.caption,{fill:(t.vars||t).palette.text.primary}),[`& .${wu.label}`]:{fill:(t.vars||t).palette.text.primary},[`& .${wu.line}`]:{stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${wu.tick}`]:{stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges"}}));function JS({style:t,needsComputation:n,text:i}){return i.split(` 113 + `).map(a=>I({text:a},n?es(a,t):{width:0,height:0}))}const hk=["x","y","style","text","ownerState"],mk=["angle","textAnchor","dominantBaseline"];function Wu(t){const{x:n,y:i,style:a,text:o}=t,u=Qt(t,hk),c=a??{},{angle:f,textAnchor:m,dominantBaseline:h}=c,p=Qt(c,mk),y=c0(),v=Y.useMemo(()=>JS({style:p,needsComputation:y&&o.includes(` 114 + `),text:o}),[p,o,y]);let b;switch(h){case"hanging":case"text-before-edge":b=0;break;case"central":b=(v.length-1)/2*-v[0].height;break;default:b=(v.length-1)*-v[0].height;break}return H.jsx("text",I({},u,{transform:f?`rotate(${f}, ${n}, ${i})`:void 0,x:n,y:i,textAnchor:m,dominantBaseline:h,style:p,children:v.map((x,S)=>H.jsx("tspan",{x:n,dy:`${S===0?b:v[0].height}px`,dominantBaseline:h,children:x.text},S))}))}const nb=5;function gk(t,n,i=0){const a=Math.min(Math.abs(i)%180,Math.abs(Math.abs(i)%180-180)%180);if(a<nb)return t;if(a>90-nb)return n;const o=Eo(a),u=Math.atan2(n,t);return o<u?t/Math.cos(o):n/Math.sin(o)}function pk(t=!1){const[n,i]=Y.useState(!1);return Ye(()=>{t||i(!0)},[t]),Y.useEffect(()=>{t&&i(!0)},[t]),n}function t2(t){const n=$c(t);return n<=30||n>=330||n<=210&&n>=150?"middle":n<=180?"end":"start"}function e2(t){const n=$c(t);return n<=30||n>=330?"hanging":n<=210&&n>=150?"auto":"central"}function n2(t){switch(t){case"start":return"end";case"end":return"start";default:return t}}const yk=["scale","tickNumber","reverse"],vk=t=>{const{classes:n,position:i}=t;return Nn({root:["root","directionX",i],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},FS,n)},rb=3,bk=4;function xk(t,{tickLabelStyle:n,tickLabelInterval:i,tickLabelMinGap:a,reverse:o,isMounted:u,isPointInside:c}){const f=p=>{if(!u||p.formattedValue===void 0)return{width:0,height:0};const y=JS({style:n,needsComputation:!0,text:p.formattedValue});return{width:Math.max(...y.map(v=>v.width)),height:Math.max(y.length*y[0].height)}};if(typeof i=="function")return new Set(t.filter((p,y)=>i(p.value,y)));let m=0;const h=o?-1:1;return new Set(t.filter((p,y)=>{const{offset:v,labelOffset:b}=p,x=v+b;if(y>0&&h*x<h*(m+a)||!c(x))return!1;const{width:S,height:C}=f(p),E=gk(S,C,n==null?void 0:n.angle),_=x-h*E/2;return y>0&&h*_<h*(m+a)?!1:(m=x+h*E/2,!0)}))}function Sk(t,n,i,a,o){const u=new Map,c=$c((o==null?void 0:o.angle)??0);let f=1,m=1;(o==null?void 0:o.textAnchor)==="start"?(f=1/0,m=1):(o==null?void 0:o.textAnchor)==="end"?(f=1,m=1/0):(f=2,m=2),c>90&&c<270&&([f,m]=[m,f]),a&&([f,m]=[m,f]);for(const h of t)if(h.formattedValue){const p=Math.min((h.offset+h.labelOffset)*f,(n.left+n.width+n.right-h.offset-h.labelOffset)*m),y=v=>PS(v,{width:p,height:i,angle:c,measureText:b=>es(b,o)});u.set(h,ZS(h.formattedValue.toString(),y))}return u}const Ak=he(WS,{name:"MuiChartsXAxis",slot:"Root"})({}),Tk={disableLine:!1,disableTicks:!1,tickSize:6,tickLabelMinGap:4};function Ck(t){const{xAxis:n,xAxisIds:i}=Xi(),a=n[t.axisId??i[0]],{scale:o,tickNumber:u,reverse:c}=a,f=Qt(a,yk),m=pk(),h=ir({props:I({},f,t),name:"MuiChartsXAxis"}),p=I({},Tk,h),{position:y,disableLine:v,disableTicks:b,tickLabelStyle:x,label:S,labelStyle:C,tickSize:E,valueFormatter:_,slots:O,slotProps:k,tickInterval:M,tickLabelInterval:R,tickPlacement:D,tickLabelPlacement:L,tickLabelMinGap:$,sx:T,offset:z,height:X}=p,K=Zo(),it=Mm(),ot=vk(p),j=ar(),{left:P,top:nt,width:st,height:N}=j,{instance:F}=Ii(),at=c0(),lt=b?4:E,ct=y==="bottom"?1:-1,yt=(O==null?void 0:O.axisLine)??"line",dt=(O==null?void 0:O.axisTick)??"line",gt=(O==null?void 0:O.axisTickLabel)??Wu,mt=(O==null?void 0:O.axisLabel)??Wu,ut=t2((y==="bottom"?0:180)-((x==null?void 0:x.angle)??0)),xt=e2((y==="bottom"?0:180)-((x==null?void 0:x.angle)??0)),bt=Or({elementType:gt,externalSlotProps:k==null?void 0:k.axisTickLabel,additionalProps:{style:I({},K.typography.caption,{fontSize:12,lineHeight:1.25,textAnchor:it?n2(ut):ut,dominantBaseline:xt},x)},className:ot.tickLabel,ownerState:{}}),rt=Bc({scale:o,tickNumber:u,valueFormatter:_,tickInterval:M,tickPlacement:D,tickLabelPlacement:L,direction:"x"}),_t=xk(rt,{tickLabelStyle:bt.style,tickLabelInterval:R,tickLabelMinGap:$,reverse:c,isMounted:m,isPointInside:Kt=>F.isPointInside({x:Kt,y:-1},{direction:"x"})}),vt=Or({elementType:mt,externalSlotProps:k==null?void 0:k.axisLabel,additionalProps:{style:I({},K.typography.body1,{lineHeight:1,fontSize:14,textAnchor:"middle",dominantBaseline:y==="bottom"?"text-after-edge":"text-before-edge"},C)},ownerState:{}}),Bt=o.domain(),Wt=$r(o);if(Wt&&Bt.length===0||!Wt&&Bt.some(f0)||y==="none")return null;const Yt=S?es(S,vt.style).height:0,Ae={x:P+st/2,y:ct*X},ue=Math.max(0,X-(S?Yt+bk:0)-lt-rb),me=at?Sk(_t,j,ue,it,bt.style):new Map(Array.from(_t).map(Kt=>[Kt,Kt.formattedValue]));return H.jsxs(Ak,{transform:`translate(0, ${y==="bottom"?nt+N+z:nt-z})`,className:ot.root,sx:T,children:[!v&&H.jsx(yt,I({x1:P,x2:P+st,className:ot.line},k==null?void 0:k.axisLine)),rt.map((Kt,Xe)=>{const{offset:mn,labelOffset:gn}=Kt,Un=gn??0,Ge=ct*(lt+rb),te=F.isPointInside({x:mn,y:-1},{direction:"x"}),Re=me.get(Kt),Te=_t.has(Kt);return H.jsxs("g",{transform:`translate(${mn}, 0)`,className:ot.tickContainer,children:[!b&&te&&H.jsx(dt,I({y2:ct*lt,className:ot.tick},k==null?void 0:k.axisTick)),Re!==void 0&&Te&&H.jsx(gt,I({x:Un,y:Ge},bt,{text:Re}))]},Xe)}),S&&H.jsx("g",{className:ot.label,children:H.jsx(mt,I({},Ae,vt,{text:S}))})]})}const wk=["scale","tickNumber"],Mk=t=>{const{classes:n,position:i}=t;return Nn({root:["root","directionY",i],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},FS,n)},ib=2,Ek=2;function Ok(t,n,i,a,o){const u=new Map,c=$c((o==null?void 0:o.angle)??0);let f=1,m=1;(o==null?void 0:o.textAnchor)==="start"?(f=1/0,m=1):(o==null?void 0:o.textAnchor)==="end"?(f=1,m=1/0):(f=2,m=2),c>180&&([f,m]=[m,f]),a&&([f,m]=[m,f]);for(const h of t)if(h.formattedValue){const p=Math.min((h.offset+h.labelOffset)*f,(n.top+n.height+n.bottom-h.offset-h.labelOffset)*m),y=v=>PS(v,{width:i,height:p,angle:c,measureText:b=>es(b,o)});u.set(h,ZS(h.formattedValue.toString(),y))}return u}const Rk=he(WS,{name:"MuiChartsYAxis",slot:"Root"})({}),_k={disableLine:!1,disableTicks:!1,tickSize:6};function kk(t){const{yAxisIds:n,yAxis:i}=Pi(),a=i[t.axisId??n[0]],{scale:o,tickNumber:u}=a,c=Qt(a,wk),f=ir({props:I({},c,t),name:"MuiChartsYAxis"}),m=I({},_k,f),{position:h,disableLine:p,disableTicks:y,label:v,labelStyle:b,tickLabelStyle:x,tickSize:S,valueFormatter:C,slots:E,slotProps:_,tickPlacement:O,tickLabelPlacement:k,tickInterval:M,tickLabelInterval:R,sx:D,offset:L,width:$}=m,T=Zo(),z=Mm(),X=c0(),K=Mk(m),{instance:it}=Ii(),ot=ar(),{left:j,top:P,width:nt,height:st}=ot,N=y?4:S,F=Bc({scale:o,tickNumber:u,valueFormatter:C,tickPlacement:O,tickLabelPlacement:k,tickInterval:M,direction:"y"}),at=h==="right"?1:-1,lt=typeof(x==null?void 0:x.fontSize)=="number"?x.fontSize:12,ct=(E==null?void 0:E.axisLine)??"line",yt=(E==null?void 0:E.axisTick)??"line",dt=(E==null?void 0:E.axisTickLabel)??Wu,gt=(E==null?void 0:E.axisLabel)??Wu,mt=t2((h==="right"?-90:90)-((x==null?void 0:x.angle)??0)),ut=e2((h==="right"?-90:90)-((x==null?void 0:x.angle)??0)),xt=Or({elementType:dt,externalSlotProps:_==null?void 0:_.axisTickLabel,additionalProps:{style:I({},T.typography.caption,{fontSize:lt,textAnchor:z?n2(mt):mt,dominantBaseline:ut},x)},className:K.tickLabel,ownerState:{}}),bt=Or({elementType:gt,externalSlotProps:_==null?void 0:_.axisLabel,additionalProps:{style:I({},T.typography.body1,{lineHeight:1,fontSize:14,angle:at*90,textAnchor:"middle",dominantBaseline:"text-before-edge"},b)},ownerState:{}}),rt=Or({elementType:ct,externalSlotProps:_==null?void 0:_.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),_t=o.domain(),vt=$r(o);if(vt&&_t.length===0||!vt&&_t.some(f0)||h==="none")return null;const Bt={x:at*$,y:P+st/2},Wt=Math.max(0,$-(v?es(v,bt.style).height+Ek:0)-N-ib),Yt=X?Ok(F,ot,Wt,z,xt.style):new Map(Array.from(F).map(Ae=>[Ae,Ae.formattedValue]));return H.jsxs(Rk,{transform:`translate(${h==="right"?j+nt+L:j-L}, 0)`,className:K.root,sx:D,children:[!p&&H.jsx(ct,I({y1:P,y2:P+st,className:K.line},rt)),F.map((Ae,ue)=>{const{offset:me,labelOffset:Kt,value:Xe}=Ae,mn=at*(N+ib),gn=Kt,Un=typeof R=="function"&&!(R!=null&&R(Xe,ue)),Ge=it.isPointInside({x:-1,y:me},{direction:"y"}),te=Yt.get(Ae);return Ge?H.jsxs("g",{transform:`translate(0, ${me})`,className:K.tickContainer,children:[!y&&H.jsx(yt,I({x2:at*N,className:K.tick},_==null?void 0:_.axisTick)),te!==void 0&&!Un&&H.jsx(dt,I({x:mn,y:gn,text:te},xt))]},ue):null}),v&&X&&H.jsx("g",{className:K.label,children:H.jsx(gt,I({},Bt,bt,{text:v}))})]})}function Dk(t){const{slots:n,slotProps:i}=t,{xAxisIds:a,xAxis:o}=Xi(),{yAxisIds:u,yAxis:c}=Pi();return H.jsxs(Y.Fragment,{children:[a.map(f=>!o[f].position||o[f].position==="none"?null:H.jsx(Ck,{slots:n,slotProps:i,axisId:f},f)),u.map(f=>!c[f].position||c[f].position==="none"?null:H.jsx(kk,{slots:n,slotProps:i,axisId:f},f))]})}function zk(){return aM}const Nk=zM;function r2(t){return DM(t)}function Uk(t){return typeof t.main=="string"}function jk(t,n=[]){if(!Uk(t))return!1;for(const i of n)if(!t.hasOwnProperty(i)||typeof t[i]!="string")return!1;return!0}function $k(t=[]){return([,n])=>n&&jk(n,t)}function Bk(t){return zn("MuiTypography",t)}qn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Lk={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Hk=zk(),Yk=t=>{const{align:n,gutterBottom:i,noWrap:a,paragraph:o,variant:u,classes:c}=t,f={root:["root",u,t.align!=="inherit"&&`align${No(n)}`,i&&"gutterBottom",a&&"noWrap",o&&"paragraph"]};return Nn(f,Bk,c)},Gk=he("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:i}=t;return[n.root,i.variant&&n[i.variant],i.align!=="inherit"&&n[`align${No(i.align)}`],i.noWrap&&n.noWrap,i.gutterBottom&&n.gutterBottom,i.paragraph&&n.paragraph]}})(Nk(({theme:t})=>{var n;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([i,a])=>i!=="inherit"&&a&&typeof a=="object").map(([i,a])=>({props:{variant:i},style:a})),...Object.entries(t.palette).filter($k()).map(([i])=>({props:{color:i},style:{color:(t.vars||t).palette[i].main}})),...Object.entries(((n=t.palette)==null?void 0:n.text)||{}).filter(([,i])=>typeof i=="string").map(([i])=>({props:{color:`text${No(i)}`},style:{color:(t.vars||t).palette.text[i]}})),{props:({ownerState:i})=>i.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:i})=>i.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:i})=>i.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:i})=>i.paragraph,style:{marginBottom:16}}]}})),ab={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},d0=Y.forwardRef(function(n,i){const{color:a,...o}=r2({props:n,name:"MuiTypography"}),u=!Lk[a],c=Hk({...o,...u&&{color:a}}),{align:f="inherit",className:m,component:h,gutterBottom:p=!1,noWrap:y=!1,paragraph:v=!1,variant:b="body1",variantMapping:x=ab,...S}=c,C={...c,align:f,color:a,className:m,component:h,gutterBottom:p,noWrap:y,paragraph:v,variant:b,variantMapping:x},E=h||(v?"p":x[b]||ab[b])||"span",_=Yk(C);return H.jsx(Gk,{as:E,ref:i,className:Mn(_.root,m),...S,ownerState:C,style:{...f!=="inherit"&&{"--Typography-textAlign":f},...S.style}})});function qk(t){return zn("MuiChartsTooltip",t)}const qa=qn("MuiChartsTooltip",["root","paper","table","row","cell","mark","markContainer","labelCell","valueCell","axisValueCell"]),h0=t=>Nn({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markContainer:["markContainer"],labelCell:["labelCell"],valueCell:["valueCell"],axisValueCell:["axisValueCell"]},qk,t);function Ik(){var R,D,L;const t=Jt(),n=wt(t,mS),i=wt(t,jr),a=jc(),{xAxis:o,xAxisIds:u}=Xi(),{yAxis:c,yAxisIds:f}=Pi(),{zAxis:m,zAxisIds:h}=s0(),{rotationAxis:p,rotationAxisIds:y}=GS(),{radiusAxis:v,radiusAxisIds:b}=u5(),x=a.xAxisId??u[0],S=a.yAxisId??f[0],C=a.zAxisId??h[0],E=a.rotationAxisId??y[0],_=a.radiusAxisId??b[0];if(!n)return null;const O=(R=a[n.type])==null?void 0:R.series[n.seriesId];if(!O)return null;const k=((L=(D=i[O.type]).colorProcessor)==null?void 0:L.call(D,O,x&&o[x],S&&c[S],C&&m[C]))??(()=>""),M={};return x!==void 0&&(M.x=o[x]),S!==void 0&&(M.y=c[S]),E!==void 0&&(M.rotation=p[E]),_!==void 0&&(M.radius=v[_]),i[O.type].tooltipGetter({series:O,axesConfig:M,getColor:k,identifier:n})}const nm=he("div",{name:"MuiChartsTooltip",slot:"Container",overridesResolver:(t,n)=>n.paper})(({theme:t})=>{var n;return{backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,borderRadius:(n=(t.vars||t).shape)==null?void 0:n.borderRadius,border:`solid ${(t.vars||t).palette.divider} 1px`}}),rm=he("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:t})=>({borderSpacing:0,[`& .${qa.markContainer}`]:{display:"inline-block",width:`calc(20px + ${t.spacing(1.5)})`,verticalAlign:"middle"},"& caption":{borderBottom:`solid ${(t.vars||t).palette.divider} 1px`,padding:t.spacing(.5,1.5),textAlign:"start",whiteSpace:"nowrap","& span":{marginRight:t.spacing(1.5)}}})),im=he("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:t})=>({"tr:first-of-type& td":{paddingTop:t.spacing(.5)},"tr:last-of-type& td":{paddingBottom:t.spacing(.5)}})),Ia=he(d0,{name:"MuiChartsTooltip",slot:"Cell"})(({theme:t})=>({verticalAlign:"middle",color:(t.vars||t).palette.text.secondary,textAlign:"start",[`&.${qa.cell}`]:{paddingLeft:t.spacing(1),paddingRight:t.spacing(1)},[`&.${qa.labelCell}`]:{fontWeight:t.typography.fontWeightRegular},[`&.${qa.valueCell}, &.${qa.axisValueCell}`]:{color:(t.vars||t).palette.text.primary,fontWeight:t.typography.fontWeightMedium},[`&.${qa.valueCell}`]:{paddingLeft:t.spacing(1.5),paddingRight:t.spacing(1.5)},"td:first-of-type&, th:first-of-type&":{paddingLeft:t.spacing(1.5)},"td:last-of-type&, th:last-of-type&":{paddingRight:t.spacing(1.5)}}));function Vk(t){return zn("MuiChartsLabelMark",t)}const Ha=qn("MuiChartsLabelMark",["root","line","square","circle","mask","fill"]),Xk=t=>{const{type:n}=t;return Nn({root:typeof n=="function"?["root"]:["root",n],mask:["mask"],fill:["fill"]},Vk,t.classes)},i2=(t,n,i)=>Y.forwardRef(function(o,u){var v;const c=ir({props:o,name:t}),f=typeof n.defaultProps=="function"?n.defaultProps(c):n.defaultProps??{},m=Fa(f,c),h=Zo(),p=(v=n.classesResolver)==null?void 0:v.call(n,m,h),y=Y.forwardRef(i);return H.jsx(y,I({},m,{classes:p,ref:u}))}),Pk=["type","color","className","classes"],Zk=he("div",{name:"MuiChartsLabelMark",slot:"Root"})(()=>({display:"flex",width:14,height:14,[`&.${Ha.line}`]:{width:16,height:"unset",alignItems:"center",[`.${Ha.mask}`]:{height:4,width:"100%",borderRadius:1,overflow:"hidden"}},[`&.${Ha.square}`]:{height:13,width:13,borderRadius:2,overflow:"hidden"},[`&.${Ha.circle}`]:{height:15,width:15},svg:{display:"block"},[`& .${Ha.mask} > *`]:{height:"100%",width:"100%"},[`& .${Ha.mask}`]:{height:"100%",width:"100%"}})),Ju=i2("MuiChartsLabelMark",{defaultProps:{type:"square"},classesResolver:Xk},function(n,i){const{type:a,color:o,className:u,classes:c}=n,f=Qt(n,Pk),m=a;return H.jsx(Zk,I({className:Mn(c==null?void 0:c.root,u),ownerState:n,"aria-hidden":"true",ref:i},f,{children:H.jsx("div",{className:c==null?void 0:c.mask,children:typeof m=="function"?H.jsx(m,{className:c==null?void 0:c.fill,color:o}):H.jsx("svg",{viewBox:"0 0 24 24",preserveAspectRatio:a==="line"?"none":void 0,children:a==="circle"?H.jsx("circle",{className:c==null?void 0:c.fill,r:"12",cx:"12",cy:"12",fill:o}):H.jsx("rect",{className:c==null?void 0:c.fill,width:"24",height:"24",fill:o})})})}))});function Qk(t){const{classes:n,sx:i}=t,a=Ik(),o=h0(n);if(!a)return null;if("values"in a){const{label:h,color:p,markType:y}=a;return H.jsx(nm,{sx:i,className:o.paper,children:H.jsxs(rm,{className:o.table,children:[H.jsxs(d0,{component:"caption",children:[H.jsx("div",{className:o.markContainer,children:H.jsx(Ju,{type:y,color:p,className:o.mark})}),h]}),H.jsx("tbody",{children:a.values.map(({formattedValue:v,label:b})=>H.jsxs(im,{className:o.row,children:[H.jsx(Ia,{className:Mn(o.labelCell,o.cell),component:"th",children:b}),H.jsx(Ia,{className:Mn(o.valueCell,o.cell),component:"td",children:v})]},b))})]})})}const{color:u,label:c,formattedValue:f,markType:m}=a;return H.jsx(nm,{sx:i,className:o.paper,children:H.jsx(rm,{className:o.table,children:H.jsx("tbody",{children:H.jsxs(im,{className:o.row,children:[H.jsxs(Ia,{className:Mn(o.labelCell,o.cell),component:"th",children:[H.jsx("div",{className:o.markContainer,children:H.jsx(Ju,{type:m,color:u,className:o.mark})}),c]}),H.jsx(Ia,{className:Mn(o.valueCell,o.cell),component:"td",children:f})]})})})})}function Kk(t){const n=Jt(),i=wt(n,jr);return Y.useMemo(()=>{const o={};return Object.keys(i).forEach(u=>{o[u]=i[u].colorProcessor}),o},[i])}function Fk(){const t=u0(),[n,i]=Y.useState(null);return Y.useEffect(()=>{const a=t.current;if(a===null)return()=>{};const o=c=>{c.pointerType!=="mouse"&&i(null)},u=c=>{i({pointerType:c.pointerType})};return a.addEventListener("pointerenter",u),a.addEventListener("pointerup",o),()=>{a.removeEventListener("pointerenter",u),a.removeEventListener("pointerup",o)}},[t]),n}function Wk(t){return t instanceof Date?t.toUTCString():t.toLocaleString()}function lb(t,n){const{scale:i,data:a,reverse:o}=t;if(!$r(i))throw new Error("MUI X Charts: getAxisValue is not implemented for polare continuous axes.");if(!a)return-1;const u=tk(n-Math.min(...i.range())),c=i.bandwidth()===0?Math.floor((u+i.step()/2)/i.step())%a.length:Math.floor(u/i.step());return c<0||c>=a.length?-1:o?a.length-1-c:c}const a2=(t,n)=>n,l2=(t,n)=>n;function o2(t,n,i){return Array.isArray(i)?i.map(a=>lb(n.axis[a],t)):lb(n.axis[i],t)}const s2=ft([kc,Dc,o5],(t,n,i)=>t===null||n===null?null:s5(i)(t,n)),Jk=ft([s2,Vi,a2],(t,n,i=n.axisIds[0])=>t===null?null:o2(t,n,i)),u2=ft([s2,Vi,l2],(t,n,i=n.axisIds)=>t===null?null:o2(t,n,i));ft([Vi,Jk,a2],(t,n,i=t.axisIds[0])=>{var o;if(n===null||n===-1||t.axisIds.length===0)return null;const a=(o=t.axis[i])==null?void 0:o.data;return a?a[n]:null});ft([Vi,u2,l2],(t,n,i=t.axisIds)=>n===null?null:i.map((a,o)=>{var c;const u=n[o];return u===-1?null:(c=t.axis[a].data)==null?void 0:c[u]}));const c2=ft([u2,Vi],(t,n)=>t===null?[]:n.axisIds.map((i,a)=>({axisId:i,dataIndex:t[a]})).filter(({axisId:i,dataIndex:a})=>n.axis[i].triggerTooltip&&a>=0),{memoizeOptions:{resultEqualityCheck:Qa}});ft([],()=>[]);const t6=ft([c2],t=>t.length>0);function Nh(t,n,i){var c;const a=((c=t.data)==null?void 0:c[n])??null,u=(t.valueFormatter??(f=>t.scaleType==="utc"?Wk(f):f.toLocaleString()))(a,{location:"tooltip",scale:t.scale});return{axisDirection:i,axisId:t.id,mainAxis:t,dataIndex:n,axisValue:a,axisFormattedValue:u,seriesItems:[]}}function e6(t={}){const{multipleAxes:n,directions:i}=t,a=HS(),o=YS(),u=c5(),c=Jt(),f=wt(c,vS),m=wt(c,bS),h=wt(c,c2),p=jc(),{xAxis:y}=Xi(),{yAxis:v}=Pi(),{zAxis:b,zAxisIds:x}=s0(),{rotationAxis:S}=GS(),C=Kk();if(f.length===0&&m.length===0&&h.length===0)return null;const E=[];return(i===void 0||i.includes("x"))&&f.forEach(({axisId:_,dataIndex:O})=>{!n&&E.length>1||E.push(Nh(y[_],O,"x"))}),(i===void 0||i.includes("y"))&&m.forEach(({axisId:_,dataIndex:O})=>{!n&&E.length>1||E.push(Nh(v[_],O,"y"))}),(i===void 0||i.includes("rotation"))&&h.forEach(({axisId:_,dataIndex:O})=>{!n&&E.length>1||E.push(Nh(S[_],O,"rotation"))}),Object.keys(p).filter(n0).forEach(_=>{const O=p[_];return O?O.seriesOrder.forEach(k=>{var $;const M=O.series[k],R=M.xAxisId??a.id,D=M.yAxisId??o.id,L=E.findIndex(({axisDirection:T,axisId:z})=>T==="x"&&z===R||T==="y"&&z===D);if(L>=0){const T="zAxisId"in M?M.zAxisId:x[0],{dataIndex:z}=E[L],X=(($=C[_])==null?void 0:$.call(C,M,y[R],v[D],T?b[T]:void 0)(z))??"",K=M.data[z]??null,it=M.valueFormatter(K,{dataIndex:z}),ot=Gn(M.label,"tooltip")??null;E[L].seriesItems.push({seriesId:k,color:X,value:K,formattedValue:it,formattedLabel:ot,markType:M.labelMarkType})}}):[]}),Object.keys(p).filter(o0).forEach(_=>{const O=p[_];return O?O.seriesOrder.forEach(k=>{var L;const M=O.series[k],R=M.rotationAxisId??(u==null?void 0:u.id),D=E.findIndex(({axisDirection:$,axisId:T})=>$==="rotation"&&T===R);if(D>=0){const{dataIndex:$}=E[D],T=((L=C[_])==null?void 0:L.call(C,M)($))??"",z=M.data[$]??null,X=M.valueFormatter(z,{dataIndex:$}),K=Gn(M.label,"tooltip")??null;E[D].seriesItems.push({seriesId:k,color:T,value:z,formattedValue:X,formattedLabel:K,markType:M.labelMarkType})}}):[]}),n?E:E.length===0?E[0]:null}function n6(t){return e6(I({},t,{multipleAxes:!0}))}function r6(t){const n=h0(t.classes),i=n6();return i===null?null:H.jsx(nm,{sx:t.sx,className:n.paper,children:i.map(({axisId:a,mainAxis:o,axisValue:u,axisFormattedValue:c,seriesItems:f})=>H.jsxs(rm,{className:n.table,children:[u!=null&&!o.hideTooltip&&H.jsx(d0,{component:"caption",children:c}),H.jsx("tbody",{children:f.map(({seriesId:m,color:h,formattedValue:p,formattedLabel:y,markType:v})=>p==null?null:H.jsxs(im,{className:n.row,children:[H.jsxs(Ia,{className:Mn(n.labelCell,n.cell),component:"th",children:[H.jsx("div",{className:n.markContainer,children:H.jsx(Ju,{type:v,color:h,className:n.mark})}),y||null]}),H.jsx(Ia,{className:Mn(n.valueCell,n.cell),component:"td",children:p})]},m))})]},a))})}const ob={};function i6(t,n){const i=Y.useRef(ob);return i.current===ob&&(i.current=t(n)),i}var Je="top",_n="bottom",kn="right",tn="left",m0="auto",ns=[Je,_n,kn,tn],ol="start",Yo="end",a6="clippingParents",f2="viewport",So="popper",l6="reference",sb=ns.reduce(function(t,n){return t.concat([n+"-"+ol,n+"-"+Yo])},[]),d2=[].concat(ns,[m0]).reduce(function(t,n){return t.concat([n,n+"-"+ol,n+"-"+Yo])},[]),o6="beforeRead",s6="read",u6="afterRead",c6="beforeMain",f6="main",d6="afterMain",h6="beforeWrite",m6="write",g6="afterWrite",p6=[o6,s6,u6,c6,f6,d6,h6,m6,g6];function rr(t){return t?(t.nodeName||"").toLowerCase():null}function hn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function Li(t){var n=hn(t).Element;return t instanceof n||t instanceof Element}function Rn(t){var n=hn(t).HTMLElement;return t instanceof n||t instanceof HTMLElement}function g0(t){if(typeof ShadowRoot>"u")return!1;var n=hn(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function y6(t){var n=t.state;Object.keys(n.elements).forEach(function(i){var a=n.styles[i]||{},o=n.attributes[i]||{},u=n.elements[i];!Rn(u)||!rr(u)||(Object.assign(u.style,a),Object.keys(o).forEach(function(c){var f=o[c];f===!1?u.removeAttribute(c):u.setAttribute(c,f===!0?"":f)}))})}function v6(t){var n=t.state,i={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,i.popper),n.styles=i,n.elements.arrow&&Object.assign(n.elements.arrow.style,i.arrow),function(){Object.keys(n.elements).forEach(function(a){var o=n.elements[a],u=n.attributes[a]||{},c=Object.keys(n.styles.hasOwnProperty(a)?n.styles[a]:i[a]),f=c.reduce(function(m,h){return m[h]="",m},{});!Rn(o)||!rr(o)||(Object.assign(o.style,f),Object.keys(u).forEach(function(m){o.removeAttribute(m)}))})}}const b6={name:"applyStyles",enabled:!0,phase:"write",fn:y6,effect:v6,requires:["computeStyles"]};function nr(t){return t.split("-")[0]}var Ui=Math.max,tc=Math.min,sl=Math.round;function am(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function h2(){return!/^((?!chrome|android).)*safari/i.test(am())}function ul(t,n,i){n===void 0&&(n=!1),i===void 0&&(i=!1);var a=t.getBoundingClientRect(),o=1,u=1;n&&Rn(t)&&(o=t.offsetWidth>0&&sl(a.width)/t.offsetWidth||1,u=t.offsetHeight>0&&sl(a.height)/t.offsetHeight||1);var c=Li(t)?hn(t):window,f=c.visualViewport,m=!h2()&&i,h=(a.left+(m&&f?f.offsetLeft:0))/o,p=(a.top+(m&&f?f.offsetTop:0))/u,y=a.width/o,v=a.height/u;return{width:y,height:v,top:p,right:h+y,bottom:p+v,left:h,x:h,y:p}}function p0(t){var n=ul(t),i=t.offsetWidth,a=t.offsetHeight;return Math.abs(n.width-i)<=1&&(i=n.width),Math.abs(n.height-a)<=1&&(a=n.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:a}}function m2(t,n){var i=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(i&&g0(i)){var a=n;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Nr(t){return hn(t).getComputedStyle(t)}function x6(t){return["table","td","th"].indexOf(rr(t))>=0}function fi(t){return((Li(t)?t.ownerDocument:t.document)||window.document).documentElement}function Lc(t){return rr(t)==="html"?t:t.assignedSlot||t.parentNode||(g0(t)?t.host:null)||fi(t)}function ub(t){return!Rn(t)||Nr(t).position==="fixed"?null:t.offsetParent}function S6(t){var n=/firefox/i.test(am()),i=/Trident/i.test(am());if(i&&Rn(t)){var a=Nr(t);if(a.position==="fixed")return null}var o=Lc(t);for(g0(o)&&(o=o.host);Rn(o)&&["html","body"].indexOf(rr(o))<0;){var u=Nr(o);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||n&&u.willChange==="filter"||n&&u.filter&&u.filter!=="none")return o;o=o.parentNode}return null}function rs(t){for(var n=hn(t),i=ub(t);i&&x6(i)&&Nr(i).position==="static";)i=ub(i);return i&&(rr(i)==="html"||rr(i)==="body"&&Nr(i).position==="static")?n:i||S6(t)||n}function y0(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ro(t,n,i){return Ui(t,tc(n,i))}function A6(t,n,i){var a=Ro(t,n,i);return a>i?i:a}function g2(){return{top:0,right:0,bottom:0,left:0}}function p2(t){return Object.assign({},g2(),t)}function y2(t,n){return n.reduce(function(i,a){return i[a]=t,i},{})}var T6=function(n,i){return n=typeof n=="function"?n(Object.assign({},i.rects,{placement:i.placement})):n,p2(typeof n!="number"?n:y2(n,ns))};function C6(t){var n,i=t.state,a=t.name,o=t.options,u=i.elements.arrow,c=i.modifiersData.popperOffsets,f=nr(i.placement),m=y0(f),h=[tn,kn].indexOf(f)>=0,p=h?"height":"width";if(!(!u||!c)){var y=T6(o.padding,i),v=p0(u),b=m==="y"?Je:tn,x=m==="y"?_n:kn,S=i.rects.reference[p]+i.rects.reference[m]-c[m]-i.rects.popper[p],C=c[m]-i.rects.reference[m],E=rs(u),_=E?m==="y"?E.clientHeight||0:E.clientWidth||0:0,O=S/2-C/2,k=y[b],M=_-v[p]-y[x],R=_/2-v[p]/2+O,D=Ro(k,R,M),L=m;i.modifiersData[a]=(n={},n[L]=D,n.centerOffset=D-R,n)}}function w6(t){var n=t.state,i=t.options,a=i.element,o=a===void 0?"[data-popper-arrow]":a;o!=null&&(typeof o=="string"&&(o=n.elements.popper.querySelector(o),!o)||m2(n.elements.popper,o)&&(n.elements.arrow=o))}const M6={name:"arrow",enabled:!0,phase:"main",fn:C6,effect:w6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cl(t){return t.split("-")[1]}var E6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function O6(t,n){var i=t.x,a=t.y,o=n.devicePixelRatio||1;return{x:sl(i*o)/o||0,y:sl(a*o)/o||0}}function cb(t){var n,i=t.popper,a=t.popperRect,o=t.placement,u=t.variation,c=t.offsets,f=t.position,m=t.gpuAcceleration,h=t.adaptive,p=t.roundOffsets,y=t.isFixed,v=c.x,b=v===void 0?0:v,x=c.y,S=x===void 0?0:x,C=typeof p=="function"?p({x:b,y:S}):{x:b,y:S};b=C.x,S=C.y;var E=c.hasOwnProperty("x"),_=c.hasOwnProperty("y"),O=tn,k=Je,M=window;if(h){var R=rs(i),D="clientHeight",L="clientWidth";if(R===hn(i)&&(R=fi(i),Nr(R).position!=="static"&&f==="absolute"&&(D="scrollHeight",L="scrollWidth")),R=R,o===Je||(o===tn||o===kn)&&u===Yo){k=_n;var $=y&&R===M&&M.visualViewport?M.visualViewport.height:R[D];S-=$-a.height,S*=m?1:-1}if(o===tn||(o===Je||o===_n)&&u===Yo){O=kn;var T=y&&R===M&&M.visualViewport?M.visualViewport.width:R[L];b-=T-a.width,b*=m?1:-1}}var z=Object.assign({position:f},h&&E6),X=p===!0?O6({x:b,y:S},hn(i)):{x:b,y:S};if(b=X.x,S=X.y,m){var K;return Object.assign({},z,(K={},K[k]=_?"0":"",K[O]=E?"0":"",K.transform=(M.devicePixelRatio||1)<=1?"translate("+b+"px, "+S+"px)":"translate3d("+b+"px, "+S+"px, 0)",K))}return Object.assign({},z,(n={},n[k]=_?S+"px":"",n[O]=E?b+"px":"",n.transform="",n))}function R6(t){var n=t.state,i=t.options,a=i.gpuAcceleration,o=a===void 0?!0:a,u=i.adaptive,c=u===void 0?!0:u,f=i.roundOffsets,m=f===void 0?!0:f,h={placement:nr(n.placement),variation:cl(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,cb(Object.assign({},h,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:c,roundOffsets:m})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,cb(Object.assign({},h,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:m})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const _6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:R6,data:{}};var Mu={passive:!0};function k6(t){var n=t.state,i=t.instance,a=t.options,o=a.scroll,u=o===void 0?!0:o,c=a.resize,f=c===void 0?!0:c,m=hn(n.elements.popper),h=[].concat(n.scrollParents.reference,n.scrollParents.popper);return u&&h.forEach(function(p){p.addEventListener("scroll",i.update,Mu)}),f&&m.addEventListener("resize",i.update,Mu),function(){u&&h.forEach(function(p){p.removeEventListener("scroll",i.update,Mu)}),f&&m.removeEventListener("resize",i.update,Mu)}}const D6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:k6,data:{}};var z6={left:"right",right:"left",bottom:"top",top:"bottom"};function Nu(t){return t.replace(/left|right|bottom|top/g,function(n){return z6[n]})}var N6={start:"end",end:"start"};function fb(t){return t.replace(/start|end/g,function(n){return N6[n]})}function v0(t){var n=hn(t),i=n.pageXOffset,a=n.pageYOffset;return{scrollLeft:i,scrollTop:a}}function b0(t){return ul(fi(t)).left+v0(t).scrollLeft}function U6(t,n){var i=hn(t),a=fi(t),o=i.visualViewport,u=a.clientWidth,c=a.clientHeight,f=0,m=0;if(o){u=o.width,c=o.height;var h=h2();(h||!h&&n==="fixed")&&(f=o.offsetLeft,m=o.offsetTop)}return{width:u,height:c,x:f+b0(t),y:m}}function j6(t){var n,i=fi(t),a=v0(t),o=(n=t.ownerDocument)==null?void 0:n.body,u=Ui(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),c=Ui(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-a.scrollLeft+b0(t),m=-a.scrollTop;return Nr(o||i).direction==="rtl"&&(f+=Ui(i.clientWidth,o?o.clientWidth:0)-u),{width:u,height:c,x:f,y:m}}function x0(t){var n=Nr(t),i=n.overflow,a=n.overflowX,o=n.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+a)}function v2(t){return["html","body","#document"].indexOf(rr(t))>=0?t.ownerDocument.body:Rn(t)&&x0(t)?t:v2(Lc(t))}function _o(t,n){var i;n===void 0&&(n=[]);var a=v2(t),o=a===((i=t.ownerDocument)==null?void 0:i.body),u=hn(a),c=o?[u].concat(u.visualViewport||[],x0(a)?a:[]):a,f=n.concat(c);return o?f:f.concat(_o(Lc(c)))}function lm(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function $6(t,n){var i=ul(t,!1,n==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function db(t,n,i){return n===f2?lm(U6(t,i)):Li(n)?$6(n,i):lm(j6(fi(t)))}function B6(t){var n=_o(Lc(t)),i=["absolute","fixed"].indexOf(Nr(t).position)>=0,a=i&&Rn(t)?rs(t):t;return Li(a)?n.filter(function(o){return Li(o)&&m2(o,a)&&rr(o)!=="body"}):[]}function L6(t,n,i,a){var o=n==="clippingParents"?B6(t):[].concat(n),u=[].concat(o,[i]),c=u[0],f=u.reduce(function(m,h){var p=db(t,h,a);return m.top=Ui(p.top,m.top),m.right=tc(p.right,m.right),m.bottom=tc(p.bottom,m.bottom),m.left=Ui(p.left,m.left),m},db(t,c,a));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function b2(t){var n=t.reference,i=t.element,a=t.placement,o=a?nr(a):null,u=a?cl(a):null,c=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,m;switch(o){case Je:m={x:c,y:n.y-i.height};break;case _n:m={x:c,y:n.y+n.height};break;case kn:m={x:n.x+n.width,y:f};break;case tn:m={x:n.x-i.width,y:f};break;default:m={x:n.x,y:n.y}}var h=o?y0(o):null;if(h!=null){var p=h==="y"?"height":"width";switch(u){case ol:m[h]=m[h]-(n[p]/2-i[p]/2);break;case Yo:m[h]=m[h]+(n[p]/2-i[p]/2);break}}return m}function Go(t,n){n===void 0&&(n={});var i=n,a=i.placement,o=a===void 0?t.placement:a,u=i.strategy,c=u===void 0?t.strategy:u,f=i.boundary,m=f===void 0?a6:f,h=i.rootBoundary,p=h===void 0?f2:h,y=i.elementContext,v=y===void 0?So:y,b=i.altBoundary,x=b===void 0?!1:b,S=i.padding,C=S===void 0?0:S,E=p2(typeof C!="number"?C:y2(C,ns)),_=v===So?l6:So,O=t.rects.popper,k=t.elements[x?_:v],M=L6(Li(k)?k:k.contextElement||fi(t.elements.popper),m,p,c),R=ul(t.elements.reference),D=b2({reference:R,element:O,placement:o}),L=lm(Object.assign({},O,D)),$=v===So?L:R,T={top:M.top-$.top+E.top,bottom:$.bottom-M.bottom+E.bottom,left:M.left-$.left+E.left,right:$.right-M.right+E.right},z=t.modifiersData.offset;if(v===So&&z){var X=z[o];Object.keys(T).forEach(function(K){var it=[kn,_n].indexOf(K)>=0?1:-1,ot=[Je,_n].indexOf(K)>=0?"y":"x";T[K]+=X[ot]*it})}return T}function H6(t,n){n===void 0&&(n={});var i=n,a=i.placement,o=i.boundary,u=i.rootBoundary,c=i.padding,f=i.flipVariations,m=i.allowedAutoPlacements,h=m===void 0?d2:m,p=cl(a),y=p?f?sb:sb.filter(function(x){return cl(x)===p}):ns,v=y.filter(function(x){return h.indexOf(x)>=0});v.length===0&&(v=y);var b=v.reduce(function(x,S){return x[S]=Go(t,{placement:S,boundary:o,rootBoundary:u,padding:c})[nr(S)],x},{});return Object.keys(b).sort(function(x,S){return b[x]-b[S]})}function Y6(t){if(nr(t)===m0)return[];var n=Nu(t);return[fb(t),n,fb(n)]}function G6(t){var n=t.state,i=t.options,a=t.name;if(!n.modifiersData[a]._skip){for(var o=i.mainAxis,u=o===void 0?!0:o,c=i.altAxis,f=c===void 0?!0:c,m=i.fallbackPlacements,h=i.padding,p=i.boundary,y=i.rootBoundary,v=i.altBoundary,b=i.flipVariations,x=b===void 0?!0:b,S=i.allowedAutoPlacements,C=n.options.placement,E=nr(C),_=E===C,O=m||(_||!x?[Nu(C)]:Y6(C)),k=[C].concat(O).reduce(function(ct,yt){return ct.concat(nr(yt)===m0?H6(n,{placement:yt,boundary:p,rootBoundary:y,padding:h,flipVariations:x,allowedAutoPlacements:S}):yt)},[]),M=n.rects.reference,R=n.rects.popper,D=new Map,L=!0,$=k[0],T=0;T<k.length;T++){var z=k[T],X=nr(z),K=cl(z)===ol,it=[Je,_n].indexOf(X)>=0,ot=it?"width":"height",j=Go(n,{placement:z,boundary:p,rootBoundary:y,altBoundary:v,padding:h}),P=it?K?kn:tn:K?_n:Je;M[ot]>R[ot]&&(P=Nu(P));var nt=Nu(P),st=[];if(u&&st.push(j[X]<=0),f&&st.push(j[P]<=0,j[nt]<=0),st.every(function(ct){return ct})){$=z,L=!1;break}D.set(z,st)}if(L)for(var N=x?3:1,F=function(yt){var dt=k.find(function(gt){var mt=D.get(gt);if(mt)return mt.slice(0,yt).every(function(ut){return ut})});if(dt)return $=dt,"break"},at=N;at>0;at--){var lt=F(at);if(lt==="break")break}n.placement!==$&&(n.modifiersData[a]._skip=!0,n.placement=$,n.reset=!0)}}const q6={name:"flip",enabled:!0,phase:"main",fn:G6,requiresIfExists:["offset"],data:{_skip:!1}};function hb(t,n,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-n.height-i.y,right:t.right-n.width+i.x,bottom:t.bottom-n.height+i.y,left:t.left-n.width-i.x}}function mb(t){return[Je,kn,_n,tn].some(function(n){return t[n]>=0})}function I6(t){var n=t.state,i=t.name,a=n.rects.reference,o=n.rects.popper,u=n.modifiersData.preventOverflow,c=Go(n,{elementContext:"reference"}),f=Go(n,{altBoundary:!0}),m=hb(c,a),h=hb(f,o,u),p=mb(m),y=mb(h);n.modifiersData[i]={referenceClippingOffsets:m,popperEscapeOffsets:h,isReferenceHidden:p,hasPopperEscaped:y},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":y})}const V6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:I6};function X6(t,n,i){var a=nr(t),o=[tn,Je].indexOf(a)>=0?-1:1,u=typeof i=="function"?i(Object.assign({},n,{placement:t})):i,c=u[0],f=u[1];return c=c||0,f=(f||0)*o,[tn,kn].indexOf(a)>=0?{x:f,y:c}:{x:c,y:f}}function P6(t){var n=t.state,i=t.options,a=t.name,o=i.offset,u=o===void 0?[0,0]:o,c=d2.reduce(function(p,y){return p[y]=X6(y,n.rects,u),p},{}),f=c[n.placement],m=f.x,h=f.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=m,n.modifiersData.popperOffsets.y+=h),n.modifiersData[a]=c}const Z6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:P6};function Q6(t){var n=t.state,i=t.name;n.modifiersData[i]=b2({reference:n.rects.reference,element:n.rects.popper,placement:n.placement})}const K6={name:"popperOffsets",enabled:!0,phase:"read",fn:Q6,data:{}};function F6(t){return t==="x"?"y":"x"}function W6(t){var n=t.state,i=t.options,a=t.name,o=i.mainAxis,u=o===void 0?!0:o,c=i.altAxis,f=c===void 0?!1:c,m=i.boundary,h=i.rootBoundary,p=i.altBoundary,y=i.padding,v=i.tether,b=v===void 0?!0:v,x=i.tetherOffset,S=x===void 0?0:x,C=Go(n,{boundary:m,rootBoundary:h,padding:y,altBoundary:p}),E=nr(n.placement),_=cl(n.placement),O=!_,k=y0(E),M=F6(k),R=n.modifiersData.popperOffsets,D=n.rects.reference,L=n.rects.popper,$=typeof S=="function"?S(Object.assign({},n.rects,{placement:n.placement})):S,T=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),z=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,X={x:0,y:0};if(R){if(u){var K,it=k==="y"?Je:tn,ot=k==="y"?_n:kn,j=k==="y"?"height":"width",P=R[k],nt=P+C[it],st=P-C[ot],N=b?-L[j]/2:0,F=_===ol?D[j]:L[j],at=_===ol?-L[j]:-D[j],lt=n.elements.arrow,ct=b&&lt?p0(lt):{width:0,height:0},yt=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:g2(),dt=yt[it],gt=yt[ot],mt=Ro(0,D[j],ct[j]),ut=O?D[j]/2-N-mt-dt-T.mainAxis:F-mt-dt-T.mainAxis,xt=O?-D[j]/2+N+mt+gt+T.mainAxis:at+mt+gt+T.mainAxis,bt=n.elements.arrow&&rs(n.elements.arrow),rt=bt?k==="y"?bt.clientTop||0:bt.clientLeft||0:0,_t=(K=z==null?void 0:z[k])!=null?K:0,vt=P+ut-_t-rt,Bt=P+xt-_t,Wt=Ro(b?tc(nt,vt):nt,P,b?Ui(st,Bt):st);R[k]=Wt,X[k]=Wt-P}if(f){var Yt,Ae=k==="x"?Je:tn,ue=k==="x"?_n:kn,me=R[M],Kt=M==="y"?"height":"width",Xe=me+C[Ae],mn=me-C[ue],gn=[Je,tn].indexOf(E)!==-1,Un=(Yt=z==null?void 0:z[M])!=null?Yt:0,Ge=gn?Xe:me-D[Kt]-L[Kt]-Un+T.altAxis,te=gn?me+D[Kt]+L[Kt]-Un-T.altAxis:mn,Re=b&&gn?A6(Ge,me,te):Ro(b?Ge:Xe,me,b?te:mn);R[M]=Re,X[M]=Re-me}n.modifiersData[a]=X}}const J6={name:"preventOverflow",enabled:!0,phase:"main",fn:W6,requiresIfExists:["offset"]};function tD(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function eD(t){return t===hn(t)||!Rn(t)?v0(t):tD(t)}function nD(t){var n=t.getBoundingClientRect(),i=sl(n.width)/t.offsetWidth||1,a=sl(n.height)/t.offsetHeight||1;return i!==1||a!==1}function rD(t,n,i){i===void 0&&(i=!1);var a=Rn(n),o=Rn(n)&&nD(n),u=fi(n),c=ul(t,o,i),f={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(a||!a&&!i)&&((rr(n)!=="body"||x0(u))&&(f=eD(n)),Rn(n)?(m=ul(n,!0),m.x+=n.clientLeft,m.y+=n.clientTop):u&&(m.x=b0(u))),{x:c.left+f.scrollLeft-m.x,y:c.top+f.scrollTop-m.y,width:c.width,height:c.height}}function iD(t){var n=new Map,i=new Set,a=[];t.forEach(function(u){n.set(u.name,u)});function o(u){i.add(u.name);var c=[].concat(u.requires||[],u.requiresIfExists||[]);c.forEach(function(f){if(!i.has(f)){var m=n.get(f);m&&o(m)}}),a.push(u)}return t.forEach(function(u){i.has(u.name)||o(u)}),a}function aD(t){var n=iD(t);return p6.reduce(function(i,a){return i.concat(n.filter(function(o){return o.phase===a}))},[])}function lD(t){var n;return function(){return n||(n=new Promise(function(i){Promise.resolve().then(function(){n=void 0,i(t())})})),n}}function oD(t){var n=t.reduce(function(i,a){var o=i[a.name];return i[a.name]=o?Object.assign({},o,a,{options:Object.assign({},o.options,a.options),data:Object.assign({},o.data,a.data)}):a,i},{});return Object.keys(n).map(function(i){return n[i]})}var gb={placement:"bottom",modifiers:[],strategy:"absolute"};function pb(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return!n.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function sD(t){t===void 0&&(t={});var n=t,i=n.defaultModifiers,a=i===void 0?[]:i,o=n.defaultOptions,u=o===void 0?gb:o;return function(f,m,h){h===void 0&&(h=u);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},gb,u),modifiersData:{},elements:{reference:f,popper:m},attributes:{},styles:{}},y=[],v=!1,b={state:p,setOptions:function(E){var _=typeof E=="function"?E(p.options):E;S(),p.options=Object.assign({},u,p.options,_),p.scrollParents={reference:Li(f)?_o(f):f.contextElement?_o(f.contextElement):[],popper:_o(m)};var O=aD(oD([].concat(a,p.options.modifiers)));return p.orderedModifiers=O.filter(function(k){return k.enabled}),x(),b.update()},forceUpdate:function(){if(!v){var E=p.elements,_=E.reference,O=E.popper;if(pb(_,O)){p.rects={reference:rD(_,rs(O),p.options.strategy==="fixed"),popper:p0(O)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(T){return p.modifiersData[T.name]=Object.assign({},T.data)});for(var k=0;k<p.orderedModifiers.length;k++){if(p.reset===!0){p.reset=!1,k=-1;continue}var M=p.orderedModifiers[k],R=M.fn,D=M.options,L=D===void 0?{}:D,$=M.name;typeof R=="function"&&(p=R({state:p,options:L,name:$,instance:b})||p)}}}},update:lD(function(){return new Promise(function(C){b.forceUpdate(),C(p)})}),destroy:function(){S(),v=!0}};if(!pb(f,m))return b;b.setOptions(h).then(function(C){!v&&h.onFirstUpdate&&h.onFirstUpdate(C)});function x(){p.orderedModifiers.forEach(function(C){var E=C.name,_=C.options,O=_===void 0?{}:_,k=C.effect;if(typeof k=="function"){var M=k({state:p,name:E,instance:b,options:O}),R=function(){};y.push(M||R)}})}function S(){y.forEach(function(C){return C()}),y=[]}return b}}var uD=[D6,K6,_6,b6,Z6,q6,J6,M6,V6],cD=sD({defaultModifiers:uD}),fD=$b();function yb(t,n){typeof t=="function"?t(n):t&&(t.current=n)}function dD(t){var n;return parseInt(Y.version,10)>=19?((n=t==null?void 0:t.props)==null?void 0:n.ref)||null:(t==null?void 0:t.ref)||null}function hD(t){return typeof t=="function"?t():t}const mD=Y.forwardRef(function(n,i){const{children:a,container:o,disablePortal:u=!1}=n,[c,f]=Y.useState(null),m=Wa(Y.isValidElement(a)?dD(a):null,i);if(Ye(()=>{u||f(hD(o)||document.body)},[o,u]),Ye(()=>{if(c&&!u)return yb(i,c),()=>{yb(i,null)}},[i,c,u]),u){if(Y.isValidElement(a)){const h={ref:m};return Y.cloneElement(a,h)}return a}return c&&fD.createPortal(a,c)});function gD(t){return zn("MuiPopper",t)}qn("MuiPopper",["root"]);function pD(t,n){if(n==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function om(t){return typeof t=="function"?t():t}function yD(t){return t.nodeType!==void 0}const vD=t=>{const{classes:n}=t;return Nn({root:["root"]},gD,n)},bD={},xD=Y.forwardRef(function(n,i){const{anchorEl:a,children:o,direction:u,disablePortal:c,modifiers:f,open:m,placement:h,popperOptions:p,popperRef:y,slotProps:v={},slots:b={},TransitionProps:x,ownerState:S,...C}=n,E=Y.useRef(null),_=Wa(E,i),O=Y.useRef(null),k=Wa(O,y),M=Y.useRef(k);Ye(()=>{M.current=k},[k]),Y.useImperativeHandle(y,()=>O.current,[]);const R=pD(h,u),[D,L]=Y.useState(R),[$,T]=Y.useState(om(a));Y.useEffect(()=>{O.current&&O.current.forceUpdate()}),Y.useEffect(()=>{a&&T(om(a))},[a]),Ye(()=>{if(!$||!m)return;const ot=nt=>{L(nt.placement)};let j=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:nt})=>{ot(nt)}}];f!=null&&(j=j.concat(f)),p&&p.modifiers!=null&&(j=j.concat(p.modifiers));const P=cD($,E.current,{placement:R,...p,modifiers:j});return M.current(P),()=>{P.destroy(),M.current(null)}},[$,c,f,m,p,R]);const z={placement:D};x!==null&&(z.TransitionProps=x);const X=vD(n),K=b.root??"div",it=Or({elementType:K,externalSlotProps:v.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:_},ownerState:n,className:X.root});return H.jsx(K,{...it,children:typeof o=="function"?o(z):o})}),SD=Y.forwardRef(function(n,i){const{anchorEl:a,children:o,container:u,direction:c="ltr",disablePortal:f=!1,keepMounted:m=!1,modifiers:h,open:p,placement:y="bottom",popperOptions:v=bD,popperRef:b,style:x,transition:S=!1,slotProps:C={},slots:E={},..._}=n,[O,k]=Y.useState(!0),M=()=>{k(!1)},R=()=>{k(!0)};if(!m&&!p&&(!S||O))return null;let D;if(u)D=u;else if(a){const T=om(a);D=T&&yD(T)?Vh(T).body:Vh(null).body}const L=!p&&m&&(!S||O)?"none":void 0,$=S?{in:p,onEnter:M,onExited:R}:void 0;return H.jsx(mD,{disablePortal:f,container:D,children:H.jsx(xD,{anchorEl:a,direction:c,disablePortal:f,modifiers:h,ref:i,open:S?!O:p,placement:y,popperOptions:v,popperRef:b,slotProps:C,slots:E,..._,style:{position:"fixed",top:0,left:0,display:L,...x},TransitionProps:$,children:o})})}),AD=he(SD,{name:"MuiPopper",slot:"Root"})({}),TD=Y.forwardRef(function(n,i){const a=Mm(),o=r2({props:n,name:"MuiPopper"}),{anchorEl:u,component:c,components:f,componentsProps:m,container:h,disablePortal:p,keepMounted:y,modifiers:v,open:b,placement:x,popperOptions:S,popperRef:C,transition:E,slots:_,slotProps:O,...k}=o,M=(_==null?void 0:_.root)??(f==null?void 0:f.Root),R={anchorEl:u,container:h,disablePortal:p,keepMounted:y,modifiers:v,open:b,placement:x,popperOptions:S,popperRef:C,transition:E,...k};return H.jsx(AD,{as:c,direction:a?"rtl":"ltr",slots:{root:M},slotProps:O??m,...R,ref:i})});function CD(t){const{children:n,defer:i=!1,fallback:a=null}=t,[o,u]=Y.useState(!1);return Ye(()=>{i||u(!0)},[i]),Y.useEffect(()=>{i&&u(!0)},[i]),o?n:a}function wD(){const t=Jt(),n=wt(t,LS),i=wt(t,hl);return n!==void 0?"polar":i!==void 0?"cartesian":"none"}const MD=["trigger","classes","children"],ED=()=>!1,OD=he(TD,{name:"MuiChartsTooltip",slot:"Root"})(({theme:t})=>({pointerEvents:"none",zIndex:t.zIndex.modal}));function RD(t){const n=ir({props:t,name:"MuiChartsTooltipContainer"}),{trigger:i="axis",classes:a,children:o}=n,u=Qt(n,MD),c=u0(),f=Fk(),m=Y.useRef(null),h=i6(()=>({x:0,y:0})),p=wD(),y=Jt(),v=wt(y,i==="axis"?p==="polar"&&t6||p==="cartesian"&&O_||ED:T_),b=f!==null&&v;Y.useEffect(()=>{const C=c.current;if(C===null)return()=>{};const E=_=>{var O;h.current={x:_.clientX,y:_.clientY},(O=m.current)==null||O.update()};return C.addEventListener("pointermove",E),()=>{C.removeEventListener("pointermove",E)}},[c,h]);const x=Y.useMemo(()=>({getBoundingClientRect:()=>({x:h.current.x,y:h.current.y,top:h.current.y,left:h.current.x,right:h.current.x,bottom:h.current.y,width:0,height:0,toJSON:()=>""})}),[h]),S=Y.useMemo(()=>[{name:"offset",options:{offset:()=>(f==null?void 0:f.pointerType)!=="touch"?[0,8]:[0,64]}},...(f==null?void 0:f.pointerType)==="mouse"?[]:[{name:"flip",options:{fallbackPlacements:["top-end","top-start","bottom-end","bottom"]}}]],[f]);return i==="none"?null:H.jsx(CD,{children:b&&H.jsx(OD,I({className:a==null?void 0:a.root,open:b,placement:(f==null?void 0:f.pointerType)==="mouse"?"right-start":"top",popperRef:m,anchorEl:x,modifiers:S},u,{children:o}))})}function _D(t){const{classes:n,trigger:i="axis"}=t,a=h0(n);return H.jsx(RD,I({},t,{classes:a,children:i==="axis"?H.jsx(r6,{classes:a}):H.jsx(Qk,{classes:a})}))}const kD=t=>({type:"series",color:t.color,label:t.label,seriesId:t.seriesId,itemId:t.itemId});function DD(t){return zn("MuiChartsLegend",t)}const zD=t=>{const{classes:n,direction:i}=t;return Nn({root:["root",i],mark:["mark"],label:["label"],series:["series"]},DD,n)},vb=qn("MuiChartsLegend",["root","series","mark","label","vertical","horizontal"]),ND=["slots","slotProps"],UD=["ownerState"],jD=(t,n,i,a)=>{function o(u,c){var M;const f=ir({props:u,name:t}),m=typeof i.defaultProps=="function"?i.defaultProps(f):i.defaultProps??{},h=Fa(m,f),p=h,{slots:y,slotProps:v}=p,b=Qt(p,ND),x=Zo(),S=(M=i.classesResolver)==null?void 0:M.call(i,h,x),C=(y==null?void 0:y[n])??a,E=i.propagateSlots&&!(y!=null&&y[n]),_=Or({elementType:C,externalSlotProps:v==null?void 0:v[n],additionalProps:I({},b,{classes:S},E&&{slots:y,slotProps:v}),ownerState:{}}),O=Qt(_,UD),k=I({},O);for(const R of i.omitProps??[])delete k[R];return H.jsx(C,I({},k,{ref:c}))}return Y.forwardRef(o)};function $D(t){return zn("MuiChartsLabel",t)}qn("MuiChartsLabel",["root"]);const BD=t=>Nn({root:["root"]},$D,t.classes),LD=["children","className","classes"],HD=i2("MuiChartsLabel",{classesResolver:BD},function(n,i){const{children:a,className:o,classes:u}=n,c=Qt(n,LD);return H.jsx("span",I({className:Mn(u==null?void 0:u.root,o),ref:i},c,{children:a}))}),YD=["direction","onItemClick","className","classes"],GD=he("ul",{name:"MuiChartsLegend",slot:"Root"})(({ownerState:t,theme:n})=>I({},n.typography.caption,{color:(n.vars||n).palette.text.primary,lineHeight:"100%",display:"flex",flexDirection:t.direction==="vertical"?"column":"row",alignItems:t.direction==="vertical"?void 0:"center",flexShrink:0,gap:n.spacing(2),listStyleType:"none",paddingInlineStart:0,marginBlock:n.spacing(1),marginInline:n.spacing(1),flexWrap:"wrap",li:{display:t.direction==="horizontal"?"inline-flex":void 0},[`button.${vb.series}`]:{background:"none",border:"none",padding:0,fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",letterSpacing:"inherit",color:"inherit"},[`& .${vb.series}`]:{display:t.direction==="vertical"?"flex":"inline-flex",alignItems:"center",gap:n.spacing(1)}})),qD=jD("MuiChartsLegend","legend",{defaultProps:{direction:"horizontal"},omitProps:["position"],classesResolver:zD},Y.forwardRef(function(n,i){const a=b5(),{onItemClick:o,className:u,classes:c}=n,f=Qt(n,YD);if(a.items.length===0)return null;const m=o?"button":"div";return H.jsx(GD,I({className:Mn(c==null?void 0:c.root,u),ref:i},f,{ownerState:n,children:a.items.map((h,p)=>H.jsx("li",{children:H.jsxs(m,{className:c==null?void 0:c.series,role:o?"button":void 0,type:o?"button":void 0,onClick:o?y=>o(y,kD(h),p):void 0,children:[H.jsx(Ju,{className:c==null?void 0:c.mark,color:h.color,type:h.markType}),H.jsx(HD,{className:c==null?void 0:c.label,children:h.label})]})},h.id))}))}));function ID(t){return zn("MuiChartsAxisHighlight",t)}qn("MuiChartsAxisHighlight",["root"]);const ec=he("path",{name:"MuiChartsAxisHighlight",slot:"Root"})(({theme:t})=>({pointerEvents:"none",variants:[{props:{axisHighlight:"band"},style:I({fill:"white",fillOpacity:.1},t.applyStyles("light",{fill:"gray"}))},{props:{axisHighlight:"line"},style:I({strokeDasharray:"5 2",stroke:"#ffffff"},t.applyStyles("light",{stroke:"#000000"}))}]}));function VD(t){const{type:n,classes:i}=t,{left:a,width:o}=ar(),u=d5(),c=Jt(),f=wt(c,E_),m=Fu(u),h=n==="band"&&f!==null&&$r(u);return H.jsxs(Y.Fragment,{children:[h&&u(f)!==void 0&&H.jsx(ec,{d:`M ${a} ${u(f)-(u.step()-u.bandwidth())/2} l 0 ${u.step()} l ${o} 0 l 0 ${-u.step()} Z`,className:i.root,ownerState:{axisHighlight:"band"}}),n==="line"&&f!==null&&H.jsx(ec,{d:`M ${a} ${m(f)} L ${a+o} ${m(f)}`,className:i.root,ownerState:{axisHighlight:"line"}})]})}function XD(t){const{type:n,classes:i}=t,{top:a,height:o}=ar(),u=f5(),c=Jt(),f=wt(c,M_),m=Fu(u),h=n==="band"&&f!==null&&$r(u);return H.jsxs(Y.Fragment,{children:[h&&u(f)!==void 0&&H.jsx(ec,{d:`M ${u(f)-(u.step()-u.bandwidth())/2} ${a} l ${u.step()} 0 l 0 ${o} l ${-u.step()} 0 Z`,className:i.root,ownerState:{axisHighlight:"band"}}),n==="line"&&f!==null&&H.jsx(ec,{d:`M ${m(f)} ${a} L ${m(f)} ${a+o}`,className:i.root,ownerState:{axisHighlight:"line"}})]})}const PD=()=>Nn({root:["root"]},ID);function ZD(t){const{x:n,y:i}=t,a=PD();return H.jsxs(Y.Fragment,{children:[n&&H.jsx(XD,{type:n,classes:a}),i&&H.jsx(VD,{type:i,classes:a})]})}function QD(t){const{id:n,offset:i}=t,{left:a,top:o,width:u,height:c}=ar(),f=I({top:0,right:0,bottom:0,left:0},i);return H.jsx("clipPath",{id:n,children:H.jsx("rect",{x:a-f.left,y:o-f.top,width:u+f.left+f.right,height:c+f.top+f.bottom})})}function KD(t){return zn("MuiChartsGrid",t)}const bb=qn("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),FD=he("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(t,n)=>[{[`&.${bb.verticalLine}`]:n.verticalLine},{[`&.${bb.horizontalLine}`]:n.horizontalLine},n.root]})({}),x2=he("line",{name:"MuiChartsGrid",slot:"Line"})(({theme:t})=>({stroke:(t.vars||t).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}));function WD(t){const{axis:n,start:i,end:a,classes:o}=t,{scale:u,tickNumber:c,tickInterval:f}=n,m=Bc({scale:u,tickNumber:c,tickInterval:f,direction:"x"});return H.jsx(Y.Fragment,{children:m.map(({value:h,offset:p})=>{var y;return H.jsx(x2,{y1:i,y2:a,x1:p,x2:p,className:o.verticalLine},`vertical-${((y=h.getTime)==null?void 0:y.call(h))??h}`)})})}function JD(t){const{axis:n,start:i,end:a,classes:o}=t,{scale:u,tickNumber:c,tickInterval:f}=n,m=Bc({scale:u,tickNumber:c,tickInterval:f,direction:"y"});return H.jsx(Y.Fragment,{children:m.map(({value:h,offset:p})=>{var y;return H.jsx(x2,{y1:p,y2:p,x1:i,x2:a,className:o.horizontalLine},`horizontal-${((y=h.getTime)==null?void 0:y.call(h))??h}`)})})}const t8=["vertical","horizontal"],e8=({classes:t})=>Nn({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},KD,t);function n8(t){const n=ir({props:t,name:"MuiChartsGrid"}),i=ar(),{vertical:a,horizontal:o}=n,u=Qt(n,t8),{xAxis:c,xAxisIds:f}=Xi(),{yAxis:m,yAxisIds:h}=Pi(),p=e8(n),y=m[h[0]],v=c[f[0]];return H.jsxs(FD,I({},u,{className:p.root,children:[a&&H.jsx(WD,{axis:v,start:i.top,end:i.height+i.top,classes:p}),o&&H.jsx(JD,{axis:y,start:i.left,end:i.width+i.left,classes:p})]}))}const r8=["message"],i8=he("text")(({theme:t})=>I({},t.typography.body2,{stroke:"none",fill:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function a8(t){const{message:n}=t,i=Qt(t,r8),{top:a,left:o,height:u,width:c}=ar(),{localeText:f}=IS();return H.jsx(i8,I({x:o+c/2,y:a+u/2},i,{children:n??f.loading}))}const l8=["message"],o8=he("text")(({theme:t})=>I({},t.typography.body2,{stroke:"none",fill:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function s8(t){const{message:n}=t,i=Qt(t,l8),{top:a,left:o,height:u,width:c}=ar(),{localeText:f}=IS();return H.jsx(o8,I({x:o+c/2,y:a+u/2},i,{children:n??f.noData}))}function u8(){const t=jc();return Object.values(t).every(n=>{if(!n)return!0;const{series:i,seriesOrder:a}=n;return a.every(o=>i[o].data.length===0)})}function c8(t){var i,a,o,u;const n=u8();if(t.loading){const c=((i=t.slots)==null?void 0:i.loadingOverlay)??a8;return H.jsx(c,I({},(a=t.slotProps)==null?void 0:a.loadingOverlay))}if(n){const c=((o=t.slots)==null?void 0:o.noDataOverlay)??s8;return H.jsx(c,I({},(u=t.slotProps)==null?void 0:u.noDataOverlay))}return null}const f8=[Jo,ml,Wo,gl],d8=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","axisHighlight","grid","children","slots","slotProps","skipAnimation","loading","layout","onItemClick","highlightedItem","onHighlightChange","borderRadius","barLabel","className","hideLegend"],h8=t=>{var ut,xt,bt,rt,_t;const{xAxis:n,yAxis:i,series:a,width:o,height:u,margin:c,colors:f,dataset:m,sx:h,axisHighlight:p,grid:y,children:v,slots:b,slotProps:x,skipAnimation:S,loading:C,layout:E,onItemClick:_,highlightedItem:O,onHighlightChange:k,borderRadius:M,barLabel:R,className:D}=t,L=Qt(t,d8),T=`${xx()}-clip-path`,z=E==="horizontal"||E===void 0&&a.some(vt=>vt.layout==="horizontal"),X=Y.useMemo(()=>[{id:Dm,scaleType:"band",data:Array.from({length:Math.max(...a.map(vt=>(vt.data??m??[]).length))},(vt,Bt)=>Bt)}],[m,a]),K=Y.useMemo(()=>[{id:zm,scaleType:"band",data:Array.from({length:Math.max(...a.map(vt=>(vt.data??m??[]).length))},(vt,Bt)=>Bt)}],[m,a]),it=Y.useMemo(()=>a.map(vt=>I({type:"bar"},vt,{layout:z?"horizontal":"vertical"})),[z,a]),ot=z?void 0:X,j=Y.useMemo(()=>n?z?n:n.map(vt=>I({scaleType:"band"},vt)):ot,[ot,z,n]),P=z?K:void 0,nt=Y.useMemo(()=>i?z?i.map(vt=>I({scaleType:"band"},vt)):i:P,[P,z,i]),st=I({},L,{series:it,width:o,height:u,margin:c,colors:f,dataset:m,xAxis:j,yAxis:nt,highlightedItem:O,onHighlightChange:k,disableAxisListener:((ut=x==null?void 0:x.tooltip)==null?void 0:ut.trigger)!=="axis"&&(p==null?void 0:p.x)==="none"&&(p==null?void 0:p.y)==="none",className:D,skipAnimation:S,plugins:f8}),N={onItemClick:_,slots:b,slotProps:x,borderRadius:M,barLabel:R},F={vertical:y==null?void 0:y.vertical,horizontal:y==null?void 0:y.horizontal},at={clipPath:`url(#${T})`},lt={id:T},ct={slots:b,slotProps:x,loading:C},yt={slots:b,slotProps:x},dt=I({},z?{y:"band"}:{x:"band"},p),gt={slots:b,slotProps:x};return{chartsWrapperProps:{sx:h,legendPosition:(bt=(xt=t.slotProps)==null?void 0:xt.legend)==null?void 0:bt.position,legendDirection:(_t=(rt=t.slotProps)==null?void 0:rt.legend)==null?void 0:_t.direction},chartContainerProps:st,barPlotProps:N,gridProps:F,clipPathProps:lt,clipPathGroupProps:at,overlayProps:ct,chartsAxisProps:yt,axisHighlightProps:dt,legendProps:gt,children:v}},Rr=11102230246251565e-32,Le=134217729,m8=(3+8*Rr)*Rr;function Uh(t,n,i,a,o){let u,c,f,m,h=n[0],p=a[0],y=0,v=0;p>h==p>-h?(u=h,h=n[++y]):(u=p,p=a[++v]);let b=0;if(y<t&&v<i)for(p>h==p>-h?(c=h+u,f=u-(c-h),h=n[++y]):(c=p+u,f=u-(c-p),p=a[++v]),u=c,f!==0&&(o[b++]=f);y<t&&v<i;)p>h==p>-h?(c=u+h,m=c-u,f=u-(c-m)+(h-m),h=n[++y]):(c=u+p,m=c-u,f=u-(c-m)+(p-m),p=a[++v]),u=c,f!==0&&(o[b++]=f);for(;y<t;)c=u+h,m=c-u,f=u-(c-m)+(h-m),h=n[++y],u=c,f!==0&&(o[b++]=f);for(;v<i;)c=u+p,m=c-u,f=u-(c-m)+(p-m),p=a[++v],u=c,f!==0&&(o[b++]=f);return(u!==0||b===0)&&(o[b++]=u),b}function g8(t,n){let i=n[0];for(let a=1;a<t;a++)i+=n[a];return i}function is(t){return new Float64Array(t)}const p8=(3+16*Rr)*Rr,y8=(2+12*Rr)*Rr,v8=(9+64*Rr)*Rr*Rr,Ya=is(4),xb=is(8),Sb=is(12),Ab=is(16),Ve=is(4);function b8(t,n,i,a,o,u,c){let f,m,h,p,y,v,b,x,S,C,E,_,O,k,M,R,D,L;const $=t-o,T=i-o,z=n-u,X=a-u;k=$*X,v=Le*$,b=v-(v-$),x=$-b,v=Le*X,S=v-(v-X),C=X-S,M=x*C-(k-b*S-x*S-b*C),R=z*T,v=Le*z,b=v-(v-z),x=z-b,v=Le*T,S=v-(v-T),C=T-S,D=x*C-(R-b*S-x*S-b*C),E=M-D,y=M-E,Ya[0]=M-(E+y)+(y-D),_=k+E,y=_-k,O=k-(_-y)+(E-y),E=O-R,y=O-E,Ya[1]=O-(E+y)+(y-R),L=_+E,y=L-_,Ya[2]=_-(L-y)+(E-y),Ya[3]=L;let K=g8(4,Ya),it=y8*c;if(K>=it||-K>=it||(y=t-$,f=t-($+y)+(y-o),y=i-T,h=i-(T+y)+(y-o),y=n-z,m=n-(z+y)+(y-u),y=a-X,p=a-(X+y)+(y-u),f===0&&m===0&&h===0&&p===0)||(it=v8*c+m8*Math.abs(K),K+=$*p+X*f-(z*h+T*m),K>=it||-K>=it))return K;k=f*X,v=Le*f,b=v-(v-f),x=f-b,v=Le*X,S=v-(v-X),C=X-S,M=x*C-(k-b*S-x*S-b*C),R=m*T,v=Le*m,b=v-(v-m),x=m-b,v=Le*T,S=v-(v-T),C=T-S,D=x*C-(R-b*S-x*S-b*C),E=M-D,y=M-E,Ve[0]=M-(E+y)+(y-D),_=k+E,y=_-k,O=k-(_-y)+(E-y),E=O-R,y=O-E,Ve[1]=O-(E+y)+(y-R),L=_+E,y=L-_,Ve[2]=_-(L-y)+(E-y),Ve[3]=L;const ot=Uh(4,Ya,4,Ve,xb);k=$*p,v=Le*$,b=v-(v-$),x=$-b,v=Le*p,S=v-(v-p),C=p-S,M=x*C-(k-b*S-x*S-b*C),R=z*h,v=Le*z,b=v-(v-z),x=z-b,v=Le*h,S=v-(v-h),C=h-S,D=x*C-(R-b*S-x*S-b*C),E=M-D,y=M-E,Ve[0]=M-(E+y)+(y-D),_=k+E,y=_-k,O=k-(_-y)+(E-y),E=O-R,y=O-E,Ve[1]=O-(E+y)+(y-R),L=_+E,y=L-_,Ve[2]=_-(L-y)+(E-y),Ve[3]=L;const j=Uh(ot,xb,4,Ve,Sb);k=f*p,v=Le*f,b=v-(v-f),x=f-b,v=Le*p,S=v-(v-p),C=p-S,M=x*C-(k-b*S-x*S-b*C),R=m*h,v=Le*m,b=v-(v-m),x=m-b,v=Le*h,S=v-(v-h),C=h-S,D=x*C-(R-b*S-x*S-b*C),E=M-D,y=M-E,Ve[0]=M-(E+y)+(y-D),_=k+E,y=_-k,O=k-(_-y)+(E-y),E=O-R,y=O-E,Ve[1]=O-(E+y)+(y-R),L=_+E,y=L-_,Ve[2]=_-(L-y)+(E-y),Ve[3]=L;const P=Uh(j,Sb,4,Ve,Ab);return Ab[P-1]}function Eu(t,n,i,a,o,u){const c=(n-u)*(i-o),f=(t-o)*(a-u),m=c-f,h=Math.abs(c+f);return Math.abs(m)>=p8*h?m:-b8(t,n,i,a,o,u,h)}const Tb=Math.pow(2,-52),Ou=new Uint32Array(512);class nc{static from(n,i=C8,a=w8){const o=n.length,u=new Float64Array(o*2);for(let c=0;c<o;c++){const f=n[c];u[2*c]=i(f),u[2*c+1]=a(f)}return new nc(u)}constructor(n){const i=n.length>>1;if(i>0&&typeof n[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=n;const a=Math.max(2*i-5,0);this._triangles=new Uint32Array(a*3),this._halfedges=new Int32Array(a*3),this._hashSize=Math.ceil(Math.sqrt(i)),this._hullPrev=new Uint32Array(i),this._hullNext=new Uint32Array(i),this._hullTri=new Uint32Array(i),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(i),this._dists=new Float64Array(i),this.update()}update(){const{coords:n,_hullPrev:i,_hullNext:a,_hullTri:o,_hullHash:u}=this,c=n.length>>1;let f=1/0,m=1/0,h=-1/0,p=-1/0;for(let $=0;$<c;$++){const T=n[2*$],z=n[2*$+1];T<f&&(f=T),z<m&&(m=z),T>h&&(h=T),z>p&&(p=z),this._ids[$]=$}const y=(f+h)/2,v=(m+p)/2;let b,x,S;for(let $=0,T=1/0;$<c;$++){const z=jh(y,v,n[2*$],n[2*$+1]);z<T&&(b=$,T=z)}const C=n[2*b],E=n[2*b+1];for(let $=0,T=1/0;$<c;$++){if($===b)continue;const z=jh(C,E,n[2*$],n[2*$+1]);z<T&&z>0&&(x=$,T=z)}let _=n[2*x],O=n[2*x+1],k=1/0;for(let $=0;$<c;$++){if($===b||$===x)continue;const T=A8(C,E,_,O,n[2*$],n[2*$+1]);T<k&&(S=$,k=T)}let M=n[2*S],R=n[2*S+1];if(k===1/0){for(let z=0;z<c;z++)this._dists[z]=n[2*z]-n[0]||n[2*z+1]-n[1];Va(this._ids,this._dists,0,c-1);const $=new Uint32Array(c);let T=0;for(let z=0,X=-1/0;z<c;z++){const K=this._ids[z],it=this._dists[K];it>X&&($[T++]=K,X=it)}this.hull=$.subarray(0,T),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(Eu(C,E,_,O,M,R)<0){const $=x,T=_,z=O;x=S,_=M,O=R,S=$,M=T,R=z}const D=T8(C,E,_,O,M,R);this._cx=D.x,this._cy=D.y;for(let $=0;$<c;$++)this._dists[$]=jh(n[2*$],n[2*$+1],D.x,D.y);Va(this._ids,this._dists,0,c-1),this._hullStart=b;let L=3;a[b]=i[S]=x,a[x]=i[b]=S,a[S]=i[x]=b,o[b]=0,o[x]=1,o[S]=2,u.fill(-1),u[this._hashKey(C,E)]=b,u[this._hashKey(_,O)]=x,u[this._hashKey(M,R)]=S,this.trianglesLen=0,this._addTriangle(b,x,S,-1,-1,-1);for(let $=0,T,z;$<this._ids.length;$++){const X=this._ids[$],K=n[2*X],it=n[2*X+1];if($>0&&Math.abs(K-T)<=Tb&&Math.abs(it-z)<=Tb||(T=K,z=it,X===b||X===x||X===S))continue;let ot=0;for(let N=0,F=this._hashKey(K,it);N<this._hashSize&&(ot=u[(F+N)%this._hashSize],!(ot!==-1&&ot!==a[ot]));N++);ot=i[ot];let j=ot,P;for(;P=a[j],Eu(K,it,n[2*j],n[2*j+1],n[2*P],n[2*P+1])>=0;)if(j=P,j===ot){j=-1;break}if(j===-1)continue;let nt=this._addTriangle(j,X,a[j],-1,-1,o[j]);o[X]=this._legalize(nt+2),o[j]=nt,L++;let st=a[j];for(;P=a[st],Eu(K,it,n[2*st],n[2*st+1],n[2*P],n[2*P+1])<0;)nt=this._addTriangle(st,X,P,o[X],-1,o[st]),o[X]=this._legalize(nt+2),a[st]=st,L--,st=P;if(j===ot)for(;P=i[j],Eu(K,it,n[2*P],n[2*P+1],n[2*j],n[2*j+1])<0;)nt=this._addTriangle(P,X,j,-1,o[j],o[P]),this._legalize(nt+2),o[P]=nt,a[j]=j,L--,j=P;this._hullStart=i[X]=j,a[j]=i[st]=X,a[X]=st,u[this._hashKey(K,it)]=X,u[this._hashKey(n[2*j],n[2*j+1])]=j}this.hull=new Uint32Array(L);for(let $=0,T=this._hullStart;$<L;$++)this.hull[$]=T,T=a[T];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(n,i){return Math.floor(x8(n-this._cx,i-this._cy)*this._hashSize)%this._hashSize}_legalize(n){const{_triangles:i,_halfedges:a,coords:o}=this;let u=0,c=0;for(;;){const f=a[n],m=n-n%3;if(c=m+(n+2)%3,f===-1){if(u===0)break;n=Ou[--u];continue}const h=f-f%3,p=m+(n+1)%3,y=h+(f+2)%3,v=i[c],b=i[n],x=i[p],S=i[y];if(S8(o[2*v],o[2*v+1],o[2*b],o[2*b+1],o[2*x],o[2*x+1],o[2*S],o[2*S+1])){i[n]=S,i[f]=v;const E=a[y];if(E===-1){let O=this._hullStart;do{if(this._hullTri[O]===y){this._hullTri[O]=n;break}O=this._hullPrev[O]}while(O!==this._hullStart)}this._link(n,E),this._link(f,a[c]),this._link(c,y);const _=h+(f+1)%3;u<Ou.length&&(Ou[u++]=_)}else{if(u===0)break;n=Ou[--u]}}return c}_link(n,i){this._halfedges[n]=i,i!==-1&&(this._halfedges[i]=n)}_addTriangle(n,i,a,o,u,c){const f=this.trianglesLen;return this._triangles[f]=n,this._triangles[f+1]=i,this._triangles[f+2]=a,this._link(f,o),this._link(f+1,u),this._link(f+2,c),this.trianglesLen+=3,f}}function x8(t,n){const i=t/(Math.abs(t)+Math.abs(n));return(n>0?3-i:1+i)/4}function jh(t,n,i,a){const o=t-i,u=n-a;return o*o+u*u}function S8(t,n,i,a,o,u,c,f){const m=t-c,h=n-f,p=i-c,y=a-f,v=o-c,b=u-f,x=m*m+h*h,S=p*p+y*y,C=v*v+b*b;return m*(y*C-S*b)-h*(p*C-S*v)+x*(p*b-y*v)<0}function A8(t,n,i,a,o,u){const c=i-t,f=a-n,m=o-t,h=u-n,p=c*c+f*f,y=m*m+h*h,v=.5/(c*h-f*m),b=(h*p-f*y)*v,x=(c*y-m*p)*v;return b*b+x*x}function T8(t,n,i,a,o,u){const c=i-t,f=a-n,m=o-t,h=u-n,p=c*c+f*f,y=m*m+h*h,v=.5/(c*h-f*m),b=t+(h*p-f*y)*v,x=n+(c*y-m*p)*v;return{x:b,y:x}}function Va(t,n,i,a){if(a-i<=20)for(let o=i+1;o<=a;o++){const u=t[o],c=n[u];let f=o-1;for(;f>=i&&n[t[f]]>c;)t[f+1]=t[f--];t[f+1]=u}else{const o=i+a>>1;let u=i+1,c=a;Ao(t,o,u),n[t[i]]>n[t[a]]&&Ao(t,i,a),n[t[u]]>n[t[a]]&&Ao(t,u,a),n[t[i]]>n[t[u]]&&Ao(t,i,u);const f=t[u],m=n[f];for(;;){do u++;while(n[t[u]]<m);do c--;while(n[t[c]]>m);if(c<u)break;Ao(t,u,c)}t[i+1]=t[c],t[c]=f,a-u+1>=c-i?(Va(t,n,u,a),Va(t,n,i,c-1)):(Va(t,n,i,c-1),Va(t,n,u,a))}}function Ao(t,n,i){const a=t[n];t[n]=t[i],t[i]=a}function C8(t){return t[0]}function w8(t){return t[1]}const Cb=1e-6;class Di{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(n,i){this._+=`M${this._x0=this._x1=+n},${this._y0=this._y1=+i}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(n,i){this._+=`L${this._x1=+n},${this._y1=+i}`}arc(n,i,a){n=+n,i=+i,a=+a;const o=n+a,u=i;if(a<0)throw new Error("negative radius");this._x1===null?this._+=`M${o},${u}`:(Math.abs(this._x1-o)>Cb||Math.abs(this._y1-u)>Cb)&&(this._+="L"+o+","+u),a&&(this._+=`A${a},${a},0,1,1,${n-a},${i}A${a},${a},0,1,1,${this._x1=o},${this._y1=u}`)}rect(n,i,a,o){this._+=`M${this._x0=this._x1=+n},${this._y0=this._y1=+i}h${+a}v${+o}h${-a}Z`}value(){return this._||null}}class sm{constructor(){this._=[]}moveTo(n,i){this._.push([n,i])}closePath(){this._.push(this._[0].slice())}lineTo(n,i){this._.push([n,i])}value(){return this._.length?this._:null}}class M8{constructor(n,[i,a,o,u]=[0,0,960,500]){if(!((o=+o)>=(i=+i))||!((u=+u)>=(a=+a)))throw new Error("invalid bounds");this.delaunay=n,this._circumcenters=new Float64Array(n.points.length*2),this.vectors=new Float64Array(n.points.length*2),this.xmax=o,this.xmin=i,this.ymax=u,this.ymin=a,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:n,hull:i,triangles:a},vectors:o}=this;let u,c;const f=this.circumcenters=this._circumcenters.subarray(0,a.length/3*2);for(let S=0,C=0,E=a.length,_,O;S<E;S+=3,C+=2){const k=a[S]*2,M=a[S+1]*2,R=a[S+2]*2,D=n[k],L=n[k+1],$=n[M],T=n[M+1],z=n[R],X=n[R+1],K=$-D,it=T-L,ot=z-D,j=X-L,P=(K*j-it*ot)*2;if(Math.abs(P)<1e-9){if(u===void 0){u=c=0;for(const st of i)u+=n[st*2],c+=n[st*2+1];u/=i.length,c/=i.length}const nt=1e9*Math.sign((u-D)*j-(c-L)*ot);_=(D+z)/2-nt*j,O=(L+X)/2+nt*ot}else{const nt=1/P,st=K*K+it*it,N=ot*ot+j*j;_=D+(j*st-it*N)*nt,O=L+(K*N-ot*st)*nt}f[C]=_,f[C+1]=O}let m=i[i.length-1],h,p=m*4,y,v=n[2*m],b,x=n[2*m+1];o.fill(0);for(let S=0;S<i.length;++S)m=i[S],h=p,y=v,b=x,p=m*4,v=n[2*m],x=n[2*m+1],o[h+2]=o[p]=b-x,o[h+3]=o[p+1]=v-y}render(n){const i=n==null?n=new Di:void 0,{delaunay:{halfedges:a,inedges:o,hull:u},circumcenters:c,vectors:f}=this;if(u.length<=1)return null;for(let p=0,y=a.length;p<y;++p){const v=a[p];if(v<p)continue;const b=Math.floor(p/3)*2,x=Math.floor(v/3)*2,S=c[b],C=c[b+1],E=c[x],_=c[x+1];this._renderSegment(S,C,E,_,n)}let m,h=u[u.length-1];for(let p=0;p<u.length;++p){m=h,h=u[p];const y=Math.floor(o[h]/3)*2,v=c[y],b=c[y+1],x=m*4,S=this._project(v,b,f[x+2],f[x+3]);S&&this._renderSegment(v,b,S[0],S[1],n)}return i&&i.value()}renderBounds(n){const i=n==null?n=new Di:void 0;return n.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),i&&i.value()}renderCell(n,i){const a=i==null?i=new Di:void 0,o=this._clip(n);if(o===null||!o.length)return;i.moveTo(o[0],o[1]);let u=o.length;for(;o[0]===o[u-2]&&o[1]===o[u-1]&&u>1;)u-=2;for(let c=2;c<u;c+=2)(o[c]!==o[c-2]||o[c+1]!==o[c-1])&&i.lineTo(o[c],o[c+1]);return i.closePath(),a&&a.value()}*cellPolygons(){const{delaunay:{points:n}}=this;for(let i=0,a=n.length/2;i<a;++i){const o=this.cellPolygon(i);o&&(o.index=i,yield o)}}cellPolygon(n){const i=new sm;return this.renderCell(n,i),i.value()}_renderSegment(n,i,a,o,u){let c;const f=this._regioncode(n,i),m=this._regioncode(a,o);f===0&&m===0?(u.moveTo(n,i),u.lineTo(a,o)):(c=this._clipSegment(n,i,a,o,f,m))&&(u.moveTo(c[0],c[1]),u.lineTo(c[2],c[3]))}contains(n,i,a){return i=+i,i!==i||(a=+a,a!==a)?!1:this.delaunay._step(n,i,a)===n}*neighbors(n){const i=this._clip(n);if(i)for(const a of this.delaunay.neighbors(n)){const o=this._clip(a);if(o){t:for(let u=0,c=i.length;u<c;u+=2)for(let f=0,m=o.length;f<m;f+=2)if(i[u]===o[f]&&i[u+1]===o[f+1]&&i[(u+2)%c]===o[(f+m-2)%m]&&i[(u+3)%c]===o[(f+m-1)%m]){yield a;break t}}}}_cell(n){const{circumcenters:i,delaunay:{inedges:a,halfedges:o,triangles:u}}=this,c=a[n];if(c===-1)return null;const f=[];let m=c;do{const h=Math.floor(m/3);if(f.push(i[h*2],i[h*2+1]),m=m%3===2?m-2:m+1,u[m]!==n)break;m=o[m]}while(m!==c&&m!==-1);return f}_clip(n){if(n===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const i=this._cell(n);if(i===null)return null;const{vectors:a}=this,o=n*4;return this._simplify(a[o]||a[o+1]?this._clipInfinite(n,i,a[o],a[o+1],a[o+2],a[o+3]):this._clipFinite(n,i))}_clipFinite(n,i){const a=i.length;let o=null,u,c,f=i[a-2],m=i[a-1],h,p=this._regioncode(f,m),y,v=0;for(let b=0;b<a;b+=2)if(u=f,c=m,f=i[b],m=i[b+1],h=p,p=this._regioncode(f,m),h===0&&p===0)y=v,v=0,o?o.push(f,m):o=[f,m];else{let x,S,C,E,_;if(h===0){if((x=this._clipSegment(u,c,f,m,h,p))===null)continue;[S,C,E,_]=x}else{if((x=this._clipSegment(f,m,u,c,p,h))===null)continue;[E,_,S,C]=x,y=v,v=this._edgecode(S,C),y&&v&&this._edge(n,y,v,o,o.length),o?o.push(S,C):o=[S,C]}y=v,v=this._edgecode(E,_),y&&v&&this._edge(n,y,v,o,o.length),o?o.push(E,_):o=[E,_]}if(o)y=v,v=this._edgecode(o[0],o[1]),y&&v&&this._edge(n,y,v,o,o.length);else if(this.contains(n,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return o}_clipSegment(n,i,a,o,u,c){const f=u<c;for(f&&([n,i,a,o,u,c]=[a,o,n,i,c,u]);;){if(u===0&&c===0)return f?[a,o,n,i]:[n,i,a,o];if(u&c)return null;let m,h,p=u||c;p&8?(m=n+(a-n)*(this.ymax-i)/(o-i),h=this.ymax):p&4?(m=n+(a-n)*(this.ymin-i)/(o-i),h=this.ymin):p&2?(h=i+(o-i)*(this.xmax-n)/(a-n),m=this.xmax):(h=i+(o-i)*(this.xmin-n)/(a-n),m=this.xmin),u?(n=m,i=h,u=this._regioncode(n,i)):(a=m,o=h,c=this._regioncode(a,o))}}_clipInfinite(n,i,a,o,u,c){let f=Array.from(i),m;if((m=this._project(f[0],f[1],a,o))&&f.unshift(m[0],m[1]),(m=this._project(f[f.length-2],f[f.length-1],u,c))&&f.push(m[0],m[1]),f=this._clipFinite(n,f))for(let h=0,p=f.length,y,v=this._edgecode(f[p-2],f[p-1]);h<p;h+=2)y=v,v=this._edgecode(f[h],f[h+1]),y&&v&&(h=this._edge(n,y,v,f,h),p=f.length);else this.contains(n,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(f=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return f}_edge(n,i,a,o,u){for(;i!==a;){let c,f;switch(i){case 5:i=4;continue;case 4:i=6,c=this.xmax,f=this.ymin;break;case 6:i=2;continue;case 2:i=10,c=this.xmax,f=this.ymax;break;case 10:i=8;continue;case 8:i=9,c=this.xmin,f=this.ymax;break;case 9:i=1;continue;case 1:i=5,c=this.xmin,f=this.ymin;break}(o[u]!==c||o[u+1]!==f)&&this.contains(n,c,f)&&(o.splice(u,0,c,f),u+=2)}return u}_project(n,i,a,o){let u=1/0,c,f,m;if(o<0){if(i<=this.ymin)return null;(c=(this.ymin-i)/o)<u&&(m=this.ymin,f=n+(u=c)*a)}else if(o>0){if(i>=this.ymax)return null;(c=(this.ymax-i)/o)<u&&(m=this.ymax,f=n+(u=c)*a)}if(a>0){if(n>=this.xmax)return null;(c=(this.xmax-n)/a)<u&&(f=this.xmax,m=i+(u=c)*o)}else if(a<0){if(n<=this.xmin)return null;(c=(this.xmin-n)/a)<u&&(f=this.xmin,m=i+(u=c)*o)}return[f,m]}_edgecode(n,i){return(n===this.xmin?1:n===this.xmax?2:0)|(i===this.ymin?4:i===this.ymax?8:0)}_regioncode(n,i){return(n<this.xmin?1:n>this.xmax?2:0)|(i<this.ymin?4:i>this.ymax?8:0)}_simplify(n){if(n&&n.length>4){for(let i=0;i<n.length;i+=2){const a=(i+2)%n.length,o=(i+4)%n.length;(n[i]===n[a]&&n[a]===n[o]||n[i+1]===n[a+1]&&n[a+1]===n[o+1])&&(n.splice(a,2),i-=2)}n.length||(n=null)}return n}}const E8=2*Math.PI,Ga=Math.pow;function O8(t){return t[0]}function R8(t){return t[1]}function _8(t){const{triangles:n,coords:i}=t;for(let a=0;a<n.length;a+=3){const o=2*n[a],u=2*n[a+1],c=2*n[a+2];if((i[c]-i[o])*(i[u+1]-i[o+1])-(i[u]-i[o])*(i[c+1]-i[o+1])>1e-10)return!1}return!0}function k8(t,n,i){return[t+Math.sin(t+n)*i,n+Math.cos(t-n)*i]}class S0{static from(n,i=O8,a=R8,o){return new S0("length"in n?D8(n,i,a,o):Float64Array.from(z8(n,i,a,o)))}constructor(n){this._delaunator=new nc(n),this.inedges=new Int32Array(n.length/2),this._hullIndex=new Int32Array(n.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const n=this._delaunator,i=this.points;if(n.hull&&n.hull.length>2&&_8(n)){this.collinear=Int32Array.from({length:i.length/2},(v,b)=>b).sort((v,b)=>i[2*v]-i[2*b]||i[2*v+1]-i[2*b+1]);const m=this.collinear[0],h=this.collinear[this.collinear.length-1],p=[i[2*m],i[2*m+1],i[2*h],i[2*h+1]],y=1e-8*Math.hypot(p[3]-p[1],p[2]-p[0]);for(let v=0,b=i.length/2;v<b;++v){const x=k8(i[2*v],i[2*v+1],y);i[2*v]=x[0],i[2*v+1]=x[1]}this._delaunator=new nc(i)}else delete this.collinear;const a=this.halfedges=this._delaunator.halfedges,o=this.hull=this._delaunator.hull,u=this.triangles=this._delaunator.triangles,c=this.inedges.fill(-1),f=this._hullIndex.fill(-1);for(let m=0,h=a.length;m<h;++m){const p=u[m%3===2?m-2:m+1];(a[m]===-1||c[p]===-1)&&(c[p]=m)}for(let m=0,h=o.length;m<h;++m)f[o[m]]=m;o.length<=2&&o.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],c[o[0]]=1,o.length===2&&(c[o[1]]=0,this.triangles[1]=o[1],this.triangles[2]=o[1]))}voronoi(n){return new M8(this,n)}*neighbors(n){const{inedges:i,hull:a,_hullIndex:o,halfedges:u,triangles:c,collinear:f}=this;if(f){const y=f.indexOf(n);y>0&&(yield f[y-1]),y<f.length-1&&(yield f[y+1]);return}const m=i[n];if(m===-1)return;let h=m,p=-1;do{if(yield p=c[h],h=h%3===2?h-2:h+1,c[h]!==n)return;if(h=u[h],h===-1){const y=a[(o[n]+1)%a.length];y!==p&&(yield y);return}}while(h!==m)}find(n,i,a=0){if(n=+n,n!==n||(i=+i,i!==i))return-1;const o=a;let u;for(;(u=this._step(a,n,i))>=0&&u!==a&&u!==o;)a=u;return u}_step(n,i,a){const{inedges:o,hull:u,_hullIndex:c,halfedges:f,triangles:m,points:h}=this;if(o[n]===-1||!h.length)return(n+1)%(h.length>>1);let p=n,y=Ga(i-h[n*2],2)+Ga(a-h[n*2+1],2);const v=o[n];let b=v;do{let x=m[b];const S=Ga(i-h[x*2],2)+Ga(a-h[x*2+1],2);if(S<y&&(y=S,p=x),b=b%3===2?b-2:b+1,m[b]!==n)break;if(b=f[b],b===-1){if(b=u[(c[n]+1)%u.length],b!==x&&Ga(i-h[b*2],2)+Ga(a-h[b*2+1],2)<y)return b;break}}while(b!==v);return p}render(n){const i=n==null?n=new Di:void 0,{points:a,halfedges:o,triangles:u}=this;for(let c=0,f=o.length;c<f;++c){const m=o[c];if(m<c)continue;const h=u[c]*2,p=u[m]*2;n.moveTo(a[h],a[h+1]),n.lineTo(a[p],a[p+1])}return this.renderHull(n),i&&i.value()}renderPoints(n,i){i===void 0&&(!n||typeof n.moveTo!="function")&&(i=n,n=null),i=i==null?2:+i;const a=n==null?n=new Di:void 0,{points:o}=this;for(let u=0,c=o.length;u<c;u+=2){const f=o[u],m=o[u+1];n.moveTo(f+i,m),n.arc(f,m,i,0,E8)}return a&&a.value()}renderHull(n){const i=n==null?n=new Di:void 0,{hull:a,points:o}=this,u=a[0]*2,c=a.length;n.moveTo(o[u],o[u+1]);for(let f=1;f<c;++f){const m=2*a[f];n.lineTo(o[m],o[m+1])}return n.closePath(),i&&i.value()}hullPolygon(){const n=new sm;return this.renderHull(n),n.value()}renderTriangle(n,i){const a=i==null?i=new Di:void 0,{points:o,triangles:u}=this,c=u[n*=3]*2,f=u[n+1]*2,m=u[n+2]*2;return i.moveTo(o[c],o[c+1]),i.lineTo(o[f],o[f+1]),i.lineTo(o[m],o[m+1]),i.closePath(),a&&a.value()}*trianglePolygons(){const{triangles:n}=this;for(let i=0,a=n.length/3;i<a;++i)yield this.trianglePolygon(i)}trianglePolygon(n){const i=new sm;return this.renderTriangle(n,i),i.value()}}function D8(t,n,i,a){const o=t.length,u=new Float64Array(o*2);for(let c=0;c<o;++c){const f=t[c];u[c*2]=n.call(a,f,c,t),u[c*2+1]=i.call(a,f,c,t)}return u}function*z8(t,n,i,a){let o=0;for(const u of t)yield n.call(a,u,o,t),yield i.call(a,u,o,t),++o}const Hc=({svgRef:t,params:n,store:i,instance:a})=>{var R;const{disableVoronoi:o,voronoiMaxRadius:u,onItemClick:c}=n,f=wt(i,Ur),{axis:m,axisIds:h}=wt(i,Gi),{axis:p,axisIds:y}=wt(i,qi),v=wt(i,cS),{series:b,seriesOrder:x}=((R=wt(i,In))==null?void 0:R.scatter)??{},S=Y.useRef({}),C=Y.useRef(void 0),E=Y.useRef(void 0),_=h[0],O=y[0];Ye(()=>{i.update(D=>D.voronoi.isVoronoiEnabled===!o?D:I({},D,{voronoi:{isVoronoiEnabled:!o}}))},[i,o]),Ye(()=>{if(v||x===void 0||b===void 0||o)return;S.current={};let D=[];x.forEach(L=>{const{data:$,xAxisId:T,yAxisId:z}=b[L],X=m[T??_].scale,K=p[z??O].scale,it=Fu(X),ot=Fu(K),j=$.flatMap(({x:P,y:nt})=>{const st=it(P),N=ot(nt);return a.isPointInside({x:st,y:N})?[st,N]:[-f.width,-f.height]});S.current[L]={seriesId:L,startIndex:D.length,endIndex:D.length+j.length},D=D.concat(j)}),C.current=new S0(D),E.current=void 0},[v,_,O,b,x,m,p,f,a,o]),Y.useEffect(()=>{if(t.current===null||o)return;const D=t.current;function L(X){const K=Wh(D,X);if(!a.isPointInside(K))return E.current=void 0,"outside-chart";if(!C.current)return"no-point-found";const it=C.current.find(K.x,K.y,E.current);if(it===void 0)return"no-point-found";E.current=it;const ot=Object.values(S.current).find(P=>2*it>=P.startIndex&&2*it<P.endIndex);if(ot===void 0)return"no-point-found";const j=(2*it-S.current[ot.seriesId].startIndex)/2;if(u!==void 0){const P=C.current.points[2*it],nt=C.current.points[2*it+1];if((P-K.x)**2+(nt-K.y)**2>u**2)return"outside-voronoi-max-radius"}return{seriesId:ot.seriesId,dataIndex:j}}const $=()=>{var X,K;(X=a.cleanInteraction)==null||X.call(a),(K=a.clearHighlight)==null||K.call(a)},T=X=>{var j,P,nt,st,N,F;const K=L(X);if(K==="outside-chart"){(j=a.cleanInteraction)==null||j.call(a),(P=a.clearHighlight)==null||P.call(a);return}if(K==="outside-voronoi-max-radius"||K==="no-point-found"){(nt=a.removeItemInteraction)==null||nt.call(a),(st=a.clearHighlight)==null||st.call(a);return}const{seriesId:it,dataIndex:ot}=K;(N=a.setItemInteraction)==null||N.call(a,{type:"scatter",seriesId:it,dataIndex:ot}),(F=a.setHighlight)==null||F.call(a,{seriesId:it,dataIndex:ot})},z=X=>{if(!c)return;const K=L(X);if(typeof K=="string")return;const{seriesId:it,dataIndex:ot}=K;c(X,{type:"scatter",seriesId:it,dataIndex:ot})};return D.addEventListener("pointerleave",$),D.addEventListener("pointermove",T),D.addEventListener("click",z),()=>{D.removeEventListener("pointerleave",$),D.removeEventListener("pointermove",T),D.removeEventListener("click",z)}},[t,p,m,u,c,o,f,a]);const k=si(()=>{i.update(D=>I({},D,{voronoi:I({},D.voronoi,{isVoronoiEnabled:!0})}))}),M=si(()=>{i.update(D=>I({},D,{voronoi:I({},D.voronoi,{isVoronoiEnabled:!1})}))});return{instance:{enableVoronoi:k,disableVoronoi:M}}};Hc.getDefaultizedParams=({params:t})=>I({},t,{disableVoronoi:t.disableVoronoi??!t.series.some(n=>n.type==="scatter")});Hc.getInitialState=t=>({voronoi:{isVoronoiEnabled:!t.disableVoronoi}});Hc.params={disableVoronoi:!0,voronoiMaxRadius:!0,onItemClick:!0};const S2=[Jo,ml,Wo,gl,Hc],N8=["children","localeText","plugins","seriesConfig"],U8=t=>{const{children:n,localeText:i,plugins:a=S2,seriesConfig:o}=t,u=Qt(t,N8),c=Zo(),f={plugins:a,seriesConfig:o,pluginParams:I({theme:c.palette.mode},u)};return{children:n,localeText:i,chartProviderProps:f}};function j8(t){const{children:n,localeText:i,chartProviderProps:a}=U8(t);return H.jsx(E4,I({},a,{children:H.jsx(O5,{localeText:i,children:n})}))}function wb(t){const{isReversed:n,gradientId:i,size:a,direction:o,scale:u,colorMap:c}=t;return a<=0?null:H.jsx("linearGradient",{id:i,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${n?1:2}`]:`${a}px`,gradientUnits:"userSpaceOnUse",children:c.thresholds.map((f,m)=>{const h=u(f);if(h===void 0)return null;const p=n?1-h/a:h/a;return Number.isNaN(p)?null:H.jsxs(Y.Fragment,{children:[H.jsx("stop",{offset:p,stopColor:c.colors[m],stopOpacity:1}),H.jsx("stop",{offset:p,stopColor:c.colors[m+1],stopOpacity:1})]},f.toString()+m)})})}const $8=10;function Mb(t){const{gradientUnits:n,isReversed:i,gradientId:a,size:o,direction:u,scale:c,colorScale:f,colorMap:m}=t,h=[m.min??0,m.max??100],p=h.map(c).filter(x=>x!==void 0);if(p.length!==2)return null;const y=typeof h[0]=="number"?xe(h[0],h[1]):Lm(h[0],h[1]),v=Math.round((Math.max(...p)-Math.min(...p))/$8),b=`${h[0]}-${h[1]}-`;return H.jsx("linearGradient",{id:a,x1:"0",x2:"0",y1:"0",y2:"0",[`${u}${i?1:2}`]:n==="objectBoundingBox"?1:`${o}px`,gradientUnits:n??"userSpaceOnUse",children:Array.from({length:v+1},(x,S)=>{const C=y(S/v);if(C===void 0)return null;const E=c(C);if(E===void 0)return null;const _=i?1-E/o:E/o,O=f(C);return O===null?null:H.jsx("stop",{offset:_,stopColor:O,stopOpacity:1},b+S)})})}const B8=10,L8=t=>t?{x1:"1",x2:"0",y1:"0",y2:"0"}:{x1:"0",x2:"1",y1:"0",y2:"0"};function $h(t){const{isReversed:n,gradientId:i,colorScale:a,colorMap:o}=t,u=[o.min??0,o.max??100],c=typeof u[0]=="number"?xe(u[0],u[1]):Lm(u[0],u[1]),f=B8,m=`${u[0]}-${u[1]}-`;return H.jsx("linearGradient",I({id:i},L8(n),{gradientUnits:"objectBoundingBox",children:Array.from({length:f+1},(h,p)=>{const y=p/f,v=c(y);if(v===void 0)return null;const b=a(v);return b===null?null:H.jsx("stop",{offset:y,stopColor:b,stopOpacity:1},m+p)})}))}function H8(){const{top:t,height:n,bottom:i,left:a,width:o,right:u}=ar(),c=t+n+i,f=a+o+u,m=x5(),h=S5(),{xAxis:p,xAxisIds:y}=Xi(),{yAxis:v,yAxisIds:b}=Pi(),{zAxis:x,zAxisIds:S}=s0(),C=b.filter(O=>v[O].colorMap!==void 0),E=y.filter(O=>p[O].colorMap!==void 0),_=S.filter(O=>x[O].colorMap!==void 0);return C.length===0&&E.length===0&&_.length===0?null:H.jsxs("defs",{children:[C.map(O=>{const k=m(O),M=h(O),{colorMap:R,scale:D,colorScale:L,reverse:$}=v[O];return(R==null?void 0:R.type)==="piecewise"?H.jsx(wb,{isReversed:!$,scale:D,colorMap:R,size:c,gradientId:k,direction:"y"},k):(R==null?void 0:R.type)==="continuous"?H.jsxs(Y.Fragment,{children:[H.jsx(Mb,{isReversed:!$,scale:D,colorScale:L,colorMap:R,size:c,gradientId:k,direction:"y"}),H.jsx($h,{isReversed:$,colorScale:L,colorMap:R,gradientId:M})]},k):null}),E.map(O=>{const k=m(O),M=h(O),{colorMap:R,scale:D,reverse:L,colorScale:$}=p[O];return(R==null?void 0:R.type)==="piecewise"?H.jsx(wb,{isReversed:L,scale:D,colorMap:R,size:f,gradientId:k,direction:"x"},k):(R==null?void 0:R.type)==="continuous"?H.jsxs(Y.Fragment,{children:[H.jsx(Mb,{isReversed:L,scale:D,colorScale:$,colorMap:R,size:f,gradientId:k,direction:"x"}),H.jsx($h,{isReversed:L,colorScale:$,colorMap:R,gradientId:M})]},k):null}),_.map(O=>{const k=h(O),{colorMap:M,colorScale:R}=x[O];return(M==null?void 0:M.type)==="continuous"?H.jsx($h,{colorScale:R,colorMap:M,gradientId:k},k):null})]})}const Y8=["children","className","title","desc"],G8=he("svg",{name:"MuiChartsSurface",slot:"Root"})(({ownerState:t})=>({width:t.width??"100%",height:t.height??"100%",display:"flex",position:"relative",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden",touchAction:"none"})),q8=Y.forwardRef(function(n,i){const a=Jt(),{width:o,height:u}=wt(a,bO),{width:c,height:f}=wt(a,vO),m=u0(),h=Wa(m,i),p=ir({props:n,name:"MuiChartsSurface"}),{children:y,className:v,title:b,desc:x}=p,S=Qt(p,Y8),C=u>0&&o>0;return H.jsxs(G8,I({ownerState:{width:c,height:f},viewBox:`0 0 ${o} ${u}`,className:v},S,{ref:h,children:[b&&H.jsx("title",{children:b}),x&&H.jsx("desc",{children:x}),H.jsx(H8,{}),C&&y]}))}),I8=["width","height","margin","children","series","colors","dataset","desc","onAxisClick","disableVoronoi","voronoiMaxRadius","onItemClick","disableAxisListener","highlightedItem","onHighlightChange","sx","title","xAxis","yAxis","zAxis","rotationAxis","radiusAxis","skipAnimation","seriesConfig","plugins","localeText"],V8=(t,n)=>{const i=t,{width:a,height:o,margin:u,children:c,series:f,colors:m,dataset:h,desc:p,onAxisClick:y,disableVoronoi:v,voronoiMaxRadius:b,onItemClick:x,disableAxisListener:S,highlightedItem:C,onHighlightChange:E,sx:_,title:O,xAxis:k,yAxis:M,zAxis:R,rotationAxis:D,radiusAxis:L,skipAnimation:$,seriesConfig:T,plugins:z,localeText:X}=i,K=Qt(i,I8),it=I({title:O,desc:p,sx:_,ref:n},K);return{chartDataProviderProps:{margin:u,series:f,colors:m,dataset:h,disableAxisListener:S,highlightedItem:C,onHighlightChange:E,onAxisClick:y,disableVoronoi:v,voronoiMaxRadius:b,onItemClick:x,xAxis:k,yAxis:M,zAxis:R,rotationAxis:D,radiusAxis:L,skipAnimation:$,width:a,height:o,localeText:X,seriesConfig:T,plugins:z??S2},chartsSurfaceProps:it,children:c}},X8=(t,n)=>t==="vertical"?(n==null?void 0:n.horizontal)==="start"?"row":"row-reverse":(n==null?void 0:n.vertical)==="bottom"?"column-reverse":"column",P8=(t,n)=>{if(t==="vertical"){if((n==null?void 0:n.vertical)==="top")return"flex-start";if((n==null?void 0:n.vertical)==="bottom")return"flex-end"}if(t==="horizontal"){if((n==null?void 0:n.horizontal)==="start")return"flex-start";if((n==null?void 0:n.horizontal)==="end")return"flex-end"}return"center"},Z8=he("div",{name:"MuiChartsWrapper",slot:"Root"})(({ownerState:t})=>({display:"flex",flexDirection:X8(t.legendDirection,t.legendPosition),flex:1,justifyContent:"center",alignItems:P8(t.legendDirection,t.legendPosition)}));function Q8(t){const{children:n,sx:i}=t,a=C5();return H.jsx(Z8,{ref:a,ownerState:t,sx:i,children:n})}const K8=Y.forwardRef(function(n,i){var _,O;const a=ir({props:n,name:"MuiBarChart"}),{chartsWrapperProps:o,chartContainerProps:u,barPlotProps:c,gridProps:f,clipPathProps:m,clipPathGroupProps:h,overlayProps:p,chartsAxisProps:y,axisHighlightProps:v,legendProps:b,children:x}=h8(a),{chartDataProviderProps:S,chartsSurfaceProps:C}=V8(u,i),E=((_=a.slots)==null?void 0:_.tooltip)??_D;return H.jsx(j8,I({},S,{children:H.jsxs(Q8,I({},o,{children:[!a.hideLegend&&H.jsx(qD,I({},b)),H.jsxs(q8,I({},C,{children:[H.jsx(n8,I({},f)),H.jsxs("g",I({},h,{children:[H.jsx(J5,I({},c)),H.jsx(c8,I({},p)),H.jsx(ZD,I({},v))]})),H.jsx(Dk,I({},y)),!a.loading&&H.jsx(E,I({},(O=a.slotProps)==null?void 0:O.tooltip)),H.jsx(QD,I({},m)),x]}))]}))}))});new TextEncoder;const F8=new TextDecoder,W8=t=>new Uint8Array(t),J8=W8,tz=(t,n,i)=>{let a;return n===void 0?a=t:i===void 0?a=t.subarray(n):a=t.subarray(n,n+i),F8.decode(a)},A2=(t,n,i)=>a=>{const o=(1<<n)-1;let u="",c=0,f=0;for(let m=0;m<a.length;++m)for(f=f<<8|a[m],c+=8;c>n;)c-=n,u+=t[o&f>>c];if(c!==0&&(u+=t[o&f<<n-c]),i)for(;(u.length*n&7)!==0;)u+="=";return u},ez=(t,n,i)=>{const a={};for(let o=0;o<t.length;++o)a[t[o]]=o;return o=>{let u=o.length;for(;i&&o[u-1]==="=";)--u;const c=J8(u*n/8|0);let f=0,m=0,h=0;for(let p=0;p<u;++p){const y=a[o[p]];if(y===void 0)throw new SyntaxError("invalid base string");m=m<<n|y,f+=n,f>=8&&(f-=8,c[h++]=255&m>>f)}if(f>=n||(255&m<<8-f)!==0)throw new SyntaxError("unexpected end of data");return c}},T2="fromBase64"in Uint8Array,C2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nz=ez(C2,6,!1),rz=A2(C2,6,!1),iz=t=>Uint8Array.fromBase64(t,{alphabet:"base64",lastChunkHandling:"loose"}),az=t=>t.toBase64({alphabet:"base64",omitPadding:!0}),lz=T2?iz:nz,oz=T2?az:rz,sz="abcdefghijklmnopqrstuvwxyz234567",uz=A2(sz,5,!1),cz=1,fz=18,dz=85,hz=113,mz=Symbol.for("@atcute/cid-link-wrapper");var Nb;Nb=mz;class A0{constructor(n){Ln(this,"bytes");Ln(this,Nb,!0);this.bytes=n}get $link(){return`b${uz(this.bytes)}`}toJSON(){return{$link:this.$link}}}const gz=t=>new A0(t.bytes),pz=Symbol.for("@atcute/bytes-wrapper");var Ub;Ub=pz;class w2{constructor(n){Ln(this,"buf");Ln(this,Ub,!0);this.buf=n}get $bytes(){return oz(this.buf)}toJSON(){return{$bytes:this.$bytes}}}const yz=t=>new w2(t),Eb=t=>t instanceof w2?t.buf:lz(t.$bytes),Cr=(t,n)=>{if(n<24)return n;switch(n){case 24:return rc(t);case 25:return bz(t);case 26:return xz(t);case 27:return Sz(t)}throw new Error(`invalid argument encoding; got ${n}`)},vz=t=>{const i=(t.v??(t.v=new DataView(t.b.buffer,t.b.byteOffset,t.b.byteLength))).getFloat64(t.p);return t.p+=8,i},rc=t=>t.b[t.p++],bz=t=>{let n=t.p;const i=t.b,a=i[n++]<<8|i[n++];return t.p=n,a},xz=t=>{let n=t.p;const i=t.b,a=(i[n++]<<24|i[n++]<<16|i[n++]<<8|i[n++])>>>0;return t.p=n,a},Sz=t=>{let n=t.p;const i=t.b,a=(i[n++]<<24|i[n++]<<16|i[n++]<<8|i[n++])>>>0;if(a>2097151)throw new RangeError("can't decode integers beyond safe integer range");const o=(i[n++]<<24|i[n++]<<16|i[n++]<<8|i[n++])>>>0,u=a*2**32+o;return t.p=n,u},M2=(t,n)=>{const i=tz(t.b,t.p,n);return t.p+=n,i},Az=(t,n)=>{const i=t.b.subarray(t.p,t.p+=n);return yz(i)},Tz=(t,n)=>{const i=t.b.subarray(t.p+1,t.p+=n);return new A0(i)},Ob=t=>{const n=rc(t),i=n>>5;if(i!==3)throw new TypeError(`expected map to only have string keys; got type ${i}`);const a=n&31,o=Cr(t,a);return M2(t,o)},um=t=>{const n=t.length,i={b:t,v:null,p:0};let a=null,o;t:for(;i.p<n;){const u=rc(i),c=u>>5,f=u&31;switch(c){case 0:{o=Cr(i,f);break}case 1:{o=-1-Cr(i,f);break}case 2:{o=Az(i,Cr(i,f));break}case 3:{o=M2(i,Cr(i,f));break}case 4:{const m=Cr(i,f),h=new Array(m);if(o=h,m>0){a={t:1,c:h,k:null,r:m,n:a};continue t}break}case 5:{const m=Cr(i,f),h={};if(o=h,m>0){const p=Ob(i);a={t:0,c:h,k:p,r:m,n:a};continue t}break}case 6:{const m=Cr(i,f);switch(m){case 42:{const h=rc(i),p=h>>5,y=h&31;if(p!==2)throw new TypeError(`expected cid-link to be type 2 (bytes); got type ${p}`);const v=Cr(i,y);o=Tz(i,v);break}default:throw new TypeError(`unsupported tag; got ${m}`)}break}case 7:{switch(f){case 20:case 21:{o=f===21;break}case 22:{o=null;break}case 27:{o=vz(i);break}default:throw new Error(`invalid simple value; got ${f}`)}break}default:throw new TypeError(`invalid type; got ${c}`)}for(;a!==null;){switch(a.t){case 0:{const m=a.c,h=a.k;h==="__proto__"&&Object.defineProperty(m,h,{enumerable:!0,configurable:!0,writable:!0}),m[h]=o;break}case 1:{const m=a.c,h=m.length-a.r;m[h]=o;break}}if(--a.r!==0){a.t===0&&(a.k=Ob(i));continue t}o=a.c,a=a.n}break}return[o,t.subarray(i.p)]},E2=t=>{const[n,i]=um(t);if(i.length!==0)throw new Error("decoded value contains remainder");return n},Cz=t=>{let n=0;return{get pos(){return n},seek(i){if(i>t.length-n)throw new RangeError("unexpected end of data");n+=i},upto(i){return t.subarray(n,n+i)},exactly(i,a){if(i>t.length-n)throw new RangeError("unexpected end of data");const o=t.subarray(n,n+i);return a&&(n+=i),o}}},wz=128,Rb=127,Mz=(t,n=0)=>{let i=t.length,a=0,o=0,u=n,c;do{if(u>=i)throw new RangeError("could not decode varint");c=t[u++],a+=o<28?(c&Rb)<<o:(c&Rb)*Math.pow(2,o),o+=7}while(c>=wz);return[a,u-n]},Ez=t=>{if(t===null||typeof t!="object")return!1;const{version:n,roots:i}=t;return n===1&&Array.isArray(i)&&i.every(a=>a instanceof A0)},O2=(t,n)=>{const i=t.upto(n);if(i.length===0)throw new RangeError("unexpected end of data");const[a,o]=Mz(i);return t.seek(o),a},Oz=t=>{const n=t.pos,i=O2(t,8);if(i===0)throw new RangeError("invalid car header; length=0");const a=t.pos,o=t.exactly(i,!0),u=E2(o);if(!Ez(u))throw new TypeError("expected a car v1 archive");const c=t.pos;return{data:u,headerStart:n,headerEnd:c,dataStart:a,dataEnd:c}},Rz=t=>{const n=t.exactly(4,!1),i=n[0],a=n[1],o=n[2],u=n[3];if(i!==cz)throw new RangeError(`incorrect cid version (got v${i})`);if(a!==hz&&a!==dz)throw new RangeError(`incorrect cid codec (got 0x${a.toString(16)})`);if(o!==fz)throw new RangeError(`incorrect cid digest type (got 0x${o.toString(16)})`);if(u!==32&&u!==0)throw new RangeError(`incorrect cid digest size (got ${u})`);const c=t.exactly(4+u,!0),f=c.subarray(4,4+u);return{version:i,codec:a,digest:{codec:o,contents:f},bytes:c}},_z=t=>({header:Oz(t),*iterate(){for(;t.upto(44).length>0;){const i=t.pos,a=O2(t,8),o=t.pos,u=Rz(t),c=t.pos,f=a-(c-o),m=t.exactly(f,!0),h=c,p=t.pos;yield{cid:u,bytes:m,entryStart:i,entryEnd:p,cidStart:o,cidEnd:h,bytesStart:c,bytesEnd:p}}}}),kz=t=>{const n=Cz(t);return _z(n)};let Dz=()=>({emit(t,...n){for(let i=this.events[t]||[],a=0,o=i.length;a<o;a++)i[a](...n)},events:{},on(t,n){var i;return((i=this.events)[t]||(i[t]=[])).push(n),()=>{var a;this.events[t]=(a=this.events[t])==null?void 0:a.filter(o=>n!==o)}}});class zz{constructor(n={}){Ln(this,"relay");Ln(this,"ws");Ln(this,"cursor","");Ln(this,"emitter",Dz());Ln(this,"autoReconnect");Ln(this,"reconnectTimeout");this.relay=n.relay??"wss://bsky.network",this.cursor=n.cursor??"",this.autoReconnect=n.autoReconnect??!0;const i=this.cursor?`?cursor=${this.cursor}`:"";if(typeof globalThis.WebSocket>"u"&&!n.ws)throw new Error(`No WebSocket implementation was found in your environment. You must provide an implementation as the \`ws\` option. 115 115 116 116 For example, in a Node.js environment, \`npm install ws\` and then: 117 117 import { Firehose } from "@skyware/firehose"; ··· 119 119 120 120 const firehose = new Firehose({ 121 121 ws: WebSocket, 122 - });`);const a=n.ws??globalThis.WebSocket;this.ws=new a(`${this.relay}/xrpc/com.atproto.sync.subscribeRepos${i}`)}start(){this.ws.addEventListener("open",()=>{this.emitter.emit("open")}),this.ws.addEventListener("message",async({data:n})=>{try{const i=await this.parseMessage(n);switch("seq"in i&&i.seq&&!isNaN(i.seq)&&(this.cursor=`${i.seq}`),i.$type){case"com.atproto.sync.subscribeRepos#identity":this.emitter.emit("identity",i);break;case"com.atproto.sync.subscribeRepos#account":this.emitter.emit("account",i);break;case"com.atproto.sync.subscribeRepos#info":this.emitter.emit("info",i);break;case"com.atproto.sync.subscribeRepos#sync":this.emitter.emit("sync",i);break;case"com.atproto.sync.subscribeRepos#commit":this.emitter.emit("commit",i);break;default:this.emitter.emit("unknown",i);break}}catch(i){this.emitter.emit("error",{cursor:this.cursor,error:i})}finally{this.autoReconnect&&this.preventReconnect()}}),this.ws.addEventListener("close",()=>{this.emitter.emit("close",this.cursor)}),this.ws.addEventListener("error",n=>{this.emitter.emit("websocketError",{cursor:this.cursor,error:n})})}close(){var n;(n=this.ws)==null||n.close()}on(n,i){return this.emitter.on(n,i)}async parseMessage(n){var h,p;const i=new Uint8Array(await new Blob(Array.isArray(n)?n:[n]).arrayBuffer()),[a,o]=sm(i),[s,c]=sm(o);if(c.length>0)throw new Error("Excess bytes in message");const{t:f,op:m}=Nz(a);if(m===-1)throw new Error(`Error: ${s.message} 123 - Error code: ${s.error}`);if(f==="#commit"){const{seq:y,repo:v,commit:b,rev:x,since:S,blocks:C,ops:E,prevData:R,time:O}=s;if(!((h=C==null?void 0:C.$bytes)!=null&&h.length))return{$type:"com.atproto.sync.subscribeRepos#commit",seq:y,repo:v,commit:b.$link,rev:x,since:S,blocks:new Uint8Array,ops:[],...R?{prevData:R.$link}:{},time:O};const k=Eb(C),M=Uz(k),_=[];for(const D of E){const L=D.action;if(L==="create"){if(!D.cid)continue;const $=M.get(D.cid.$link);if(!$)continue;_.push({action:L,path:D.path,cid:D.cid.$link,record:$})}else if(L==="update"){if(!D.cid)continue;const $=M.get(D.cid.$link);if(!$)continue;_.push({action:L,path:D.path,cid:D.cid.$link,...D.prev?{prev:D.prev.$link}:{},record:$})}else if(L==="delete")_.push({action:L,path:D.path,...D.prev?{prev:D.prev.$link}:{}});else throw new Error(`Unknown action: ${L}`)}return{$type:"com.atproto.sync.subscribeRepos#commit",seq:y,repo:v,commit:b.$link,rev:x,since:S,blocks:k,ops:_,...R?{prevData:R.$link}:{},time:O}}else if(f==="#sync"){const{seq:y,did:v,blocks:b,rev:x,time:S}=s,C=(p=b==null?void 0:b.$bytes)!=null&&p.length?Eb(b):new Uint8Array;return{$type:"com.atproto.sync.subscribeRepos#sync",seq:y,did:v,blocks:C,rev:x,time:S}}return{$type:`com.atproto.sync.subscribeRepos${f}`,...s}}preventReconnect(){this.reconnectTimeout&&clearTimeout(this.reconnectTimeout),this.reconnectTimeout=setTimeout(()=>{this.reconnect()},5e3)}reconnect(){var n;(n=this.ws)==null||n.close(),this.start(),this.emitter.emit("reconnect")}}function Nz(t){if(!t||typeof t!="object"||!t.t||typeof t.t!="string"||!t.op||typeof t.op!="number")throw new Error("Invalid header received");return{t:t.t,op:t.op}}function Uz(t){const n=new Map;for(const{cid:i,bytes:a}of kz(t).iterate())n.set(gz(i).$link,E2(a));return n}function jz({url:t,desc:n,onRecieveEvent:i}){const[a,o]=Y.useState("connecting"),[s,c]=Y.useState(0),[f,m]=Y.useState(0);return Y.useEffect(()=>{const h=(y,v)=>{i(y,v),c(b=>b+1)},p=new zz({relay:t});return p.on("open",()=>o("connected")),p.on("close",()=>o("closed")),p.on("reconnect",()=>m(y=>y+1)),p.on("error",y=>{console.error("oops",y),o("errored")}),p.on("websocketError",()=>o("errored")),p.on("commit",y=>h("commit",y)),p.on("sync",y=>h("sync",y)),p.on("account",y=>h("account",y)),p.on("identity",y=>h("identity",y)),p.on("info",(...y)=>console.info("info event",...y)),p.on("unknown",y=>console.warn(`unknown event from ${t}`,y)),p.start(),()=>{p.close()}},[t]),H.jsxs("div",{className:"relay",children:[H.jsx("h2",{children:n}),H.jsx("p",{children:H.jsx("code",{children:t})}),H.jsxs("p",{children:["[",H.jsx("code",{children:a}),"] (",H.jsx("code",{children:s.toLocaleString()})," events)"]}),f>0&&H.jsxs("p",{children:["reconnects: ",H.jsx("code",{children:f})]})]})}const Rb=[{url:"wss://atproto.africa",desc:"Blacksky"},{url:"wss://bsky.network",desc:"Bluesky Rainbow"},{url:"wss://relay2.fire.hose.cam",desc:"microcosm Montreal"},{url:"wss://relay3.fr.hose.cam",desc:"microcosm France"}],kb=1600,$z=6,Db=10*60*1e3,zb=(t,n,i)=>{};function Bz(){const[t,n]=Y.useState([]),[i,a]=Y.useState(()=>zb),[o,s]=Y.useState(()=>()=>{}),[c,f]=Y.useState({series:[]}),[m,h]=Y.useState(!1),[p,y]=Y.useState("");Y.useEffect(()=>{let x=performance.now(),S={},C=[],E=requestAnimationFrame(M),R=setTimeout(O,Db);a(()=>(_,D,L)=>{S[_]||(S[_]=0),S[_]+=1}),s(()=>()=>{clearTimeout(R),R=setTimeout(O,Db),h(!1),console.info("keepalive: disconnection timer reset")});function O(){console.info("disconnecting due to inactivity"),n([]),h(!0)}const k=setInterval(()=>{let _=performance.now(),D=_-x;C.length>=$z-1&&C.shift(),C.push({t:_,dt:D,counts:S}),x=_,S={}},kb);function M(){var L;let _=performance.now();const D=Object.keys(((L=C.at(-1))==null?void 0:L.counts)||{}).toSorted();f({xAxis:[{data:C.map(({t:$})=>(-(_-$)/1e3).toFixed(1)).concat(["now"]),label:"bucket (seconds ago)"}],series:D.map($=>({label:$,data:C.map(({dt:T,counts:z})=>z[$]?(z[$]/(T/1e3)).toFixed(1):null).concat([S[$]?(S[$]/(kb/1e3)).toFixed(1):null])}))}),E=requestAnimationFrame(M)}return()=>{a(()=>zb),s(()=>()=>null),clearInterval(k),cancelAnimationFrame(E)}},[]);function v(x,S){h(!1),n(S?C=>C.includes(x)?C:[...C,x]:C=>C.includes(x)?C.filter(E=>E!==x):C),o()}function b(){if(!p)return"";try{let x;return p.includes("://")?x=new URL(p):x=new URL("https://"+p),x.protocol=x.protocol==="https:"?"wss:":"ws:",x.origin}catch{return""}}return H.jsxs(H.Fragment,{children:[H.jsx("h1",{children:"compare hoses"}),H.jsx("p",{children:H.jsx("em",{children:"warning: enabling many relay connections requires a lot of bandwidth"})}),H.jsxs("form",{style:{display:"block",textAlign:"left"},children:[Rb.map(({url:x,desc:S})=>H.jsx("p",{style:{margin:0},children:H.jsxs("label",{children:[H.jsx("input",{type:"checkbox",onChange:C=>v(x,C.target.checked),checked:t.includes(x)}),` ${S} `,"(",H.jsx("code",{children:x.slice(6)}),")"]})},x)),H.jsx("p",{style:{margin:0},children:H.jsxs("label",{children:[H.jsx("input",{type:"checkbox",onChange:x=>{const S=b();S&&v(S,x.target.checked)},checked:t.includes(b())})," ",H.jsx("input",{type:"text",placeholder:"wss://…",value:p,onChange:x=>{const S=b();n(C=>C.includes(S)?C.filter(E=>E!==S):C),y(x.target.value)}})," ",p&&H.jsx("code",{children:b()})]})})]}),H.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"2em",textAlign:"left"},children:t.map(x=>{const{desc:S}=Rb.find(C=>C.url===x)??{desc:"custom relay"};return H.jsx("div",{children:H.jsx(jz,{url:x,desc:S,onRecieveEvent:(C,E)=>i(x,C,E)})},x)})}),m&&H.jsx("p",{children:H.jsx("em",{children:"disconnected to save bandwidth due to inactivity"})}),H.jsx("div",{className:"throughputs",children:H.jsx(K8,{height:300,yAxis:[{label:"events / sec"}],skipAnimation:!0,...c})})]})}const Lz=Rm({colorSchemes:{dark:!0}});JT.createRoot(document.getElementById("root")).render(H.jsx(JC,{injectFirst:!0,children:H.jsx(_E,{theme:Lz,children:H.jsx(Bz,{})})})); 122 + });`);const a=n.ws??globalThis.WebSocket;this.ws=new a(`${this.relay}/xrpc/com.atproto.sync.subscribeRepos${i}`)}start(){this.ws.addEventListener("open",()=>{this.emitter.emit("open")}),this.ws.addEventListener("message",async({data:n})=>{try{const i=await this.parseMessage(n);switch("seq"in i&&i.seq&&!isNaN(i.seq)&&(this.cursor=`${i.seq}`),i.$type){case"com.atproto.sync.subscribeRepos#identity":this.emitter.emit("identity",i);break;case"com.atproto.sync.subscribeRepos#account":this.emitter.emit("account",i);break;case"com.atproto.sync.subscribeRepos#info":this.emitter.emit("info",i);break;case"com.atproto.sync.subscribeRepos#sync":this.emitter.emit("sync",i);break;case"com.atproto.sync.subscribeRepos#commit":this.emitter.emit("commit",i);break;default:this.emitter.emit("unknown",i);break}}catch(i){this.emitter.emit("error",{cursor:this.cursor,error:i})}finally{this.autoReconnect&&this.preventReconnect()}}),this.ws.addEventListener("close",()=>{this.emitter.emit("close",this.cursor)}),this.ws.addEventListener("error",n=>{this.emitter.emit("websocketError",{cursor:this.cursor,error:n})})}close(){var n;(n=this.ws)==null||n.close()}on(n,i){return this.emitter.on(n,i)}async parseMessage(n){var h,p;const i=new Uint8Array(await new Blob(Array.isArray(n)?n:[n]).arrayBuffer()),[a,o]=um(i),[u,c]=um(o);if(c.length>0)throw new Error("Excess bytes in message");const{t:f,op:m}=Nz(a);if(m===-1)throw new Error(`Error: ${u.message} 123 + Error code: ${u.error}`);if(f==="#commit"){const{seq:y,repo:v,commit:b,rev:x,since:S,blocks:C,ops:E,prevData:_,time:O}=u;if(!((h=C==null?void 0:C.$bytes)!=null&&h.length))return{$type:"com.atproto.sync.subscribeRepos#commit",seq:y,repo:v,commit:b.$link,rev:x,since:S,blocks:new Uint8Array,ops:[],..._?{prevData:_.$link}:{},time:O};const k=Eb(C),M=Uz(k),R=[];for(const D of E){const L=D.action;if(L==="create"){if(!D.cid)continue;const $=M.get(D.cid.$link);if(!$)continue;R.push({action:L,path:D.path,cid:D.cid.$link,record:$})}else if(L==="update"){if(!D.cid)continue;const $=M.get(D.cid.$link);if(!$)continue;R.push({action:L,path:D.path,cid:D.cid.$link,...D.prev?{prev:D.prev.$link}:{},record:$})}else if(L==="delete")R.push({action:L,path:D.path,...D.prev?{prev:D.prev.$link}:{}});else throw new Error(`Unknown action: ${L}`)}return{$type:"com.atproto.sync.subscribeRepos#commit",seq:y,repo:v,commit:b.$link,rev:x,since:S,blocks:k,ops:R,..._?{prevData:_.$link}:{},time:O}}else if(f==="#sync"){const{seq:y,did:v,blocks:b,rev:x,time:S}=u,C=(p=b==null?void 0:b.$bytes)!=null&&p.length?Eb(b):new Uint8Array;return{$type:"com.atproto.sync.subscribeRepos#sync",seq:y,did:v,blocks:C,rev:x,time:S}}return{$type:`com.atproto.sync.subscribeRepos${f}`,...u}}preventReconnect(){this.reconnectTimeout&&clearTimeout(this.reconnectTimeout),this.reconnectTimeout=setTimeout(()=>{this.reconnect()},5e3)}reconnect(){var n;(n=this.ws)==null||n.close(),this.start(),this.emitter.emit("reconnect")}}function Nz(t){if(!t||typeof t!="object"||!t.t||typeof t.t!="string"||!t.op||typeof t.op!="number")throw new Error("Invalid header received");return{t:t.t,op:t.op}}function Uz(t){const n=new Map;for(const{cid:i,bytes:a}of kz(t).iterate())n.set(gz(i).$link,E2(a));return n}function jz({url:t,desc:n,onRecieveEvent:i}){const[a,o]=Y.useState("connecting"),[u,c]=Y.useState(0),[f,m]=Y.useState(0);return Y.useEffect(()=>{const h=(y,v)=>{i(y,v),c(b=>b+1)},p=new zz({relay:t});return p.on("open",()=>o("connected")),p.on("close",()=>o("closed")),p.on("reconnect",()=>m(y=>y+1)),p.on("error",y=>{console.error("oops",y),o("errored")}),p.on("websocketError",()=>o("errored")),p.on("commit",y=>h("commit",y)),p.on("sync",y=>h("sync",y)),p.on("account",y=>h("account",y)),p.on("identity",y=>h("identity",y)),p.on("info",(...y)=>console.info("info event",...y)),p.on("unknown",y=>console.warn(`unknown event from ${t}`,y)),p.start(),()=>{p.close()}},[t]),H.jsxs("div",{className:"relay",children:[H.jsx("h2",{children:n}),H.jsx("p",{children:H.jsx("code",{children:t})}),H.jsxs("p",{children:["[",H.jsx("code",{children:a}),"] (",H.jsx("code",{children:u.toLocaleString()})," events)"]}),f>0&&H.jsxs("p",{children:["reconnects: ",H.jsx("code",{children:f})]})]})}const _b=[{url:"wss://atproto.africa",desc:"Blacksky"},{url:"wss://bsky.network",desc:"Bluesky primary (+Rainbow)"},{url:"wss://relay1.us-east.bsky.network",desc:"Bluesky sync1.1 east (+Rainbow)"},{url:"wss://relay1.us-west.bsky.network",desc:"Bluesky sync1.1 west (+Rainbow)"},{url:"wss://relay.fire.hose.cam",desc:"microcosm Montreal"},{url:"wss://relay3.fr.hose.cam",desc:"microcosm France"},{url:"wss://relay.hayescmd.net",desc:"@edavis.dev's relay"},{url:"wss://relay.xero.systems",desc:"@dane.is.extraordinarily.cool's relay"}],kb=1600,$z=6,Db=10*60*1e3,zb=(t,n,i)=>{};function Bz(){const[t,n]=Y.useState([]),[i,a]=Y.useState(()=>zb),[o,u]=Y.useState(()=>()=>{}),[c,f]=Y.useState({series:[]}),[m,h]=Y.useState(!1),[p,y]=Y.useState("");Y.useEffect(()=>{let x=performance.now(),S={},C=[],E=requestAnimationFrame(M),_=setTimeout(O,Db);a(()=>(R,D,L)=>{S[R]||(S[R]=0),S[R]+=1}),u(()=>()=>{clearTimeout(_),_=setTimeout(O,Db),h(!1),console.info("keepalive: disconnection timer reset")});function O(){console.info("disconnecting due to inactivity"),n([]),h(!0)}const k=setInterval(()=>{let R=performance.now(),D=R-x;C.length>=$z-1&&C.shift(),C.push({t:R,dt:D,counts:S}),x=R,S={}},kb);function M(){var L;let R=performance.now();const D=Object.keys(((L=C.at(-1))==null?void 0:L.counts)||{}).toSorted();f({xAxis:[{data:C.map(({t:$})=>(-(R-$)/1e3).toFixed(1)).concat(["now"]),label:"bucket (seconds ago)"}],series:D.map($=>({label:$,data:C.map(({dt:T,counts:z})=>z[$]?(z[$]/(T/1e3)).toFixed(1):null).concat([S[$]?(S[$]/(kb/1e3)).toFixed(1):null])}))}),E=requestAnimationFrame(M)}return()=>{a(()=>zb),u(()=>()=>null),clearInterval(k),cancelAnimationFrame(E)}},[]);function v(x,S){h(!1),n(S?C=>C.includes(x)?C:[...C,x]:C=>C.includes(x)?C.filter(E=>E!==x):C),o()}function b(){if(!p)return"";try{let x;return p.includes("://")?x=new URL(p):x=new URL("https://"+p),x.protocol==="https:"?x.protocol="wss:":x.protocol==="http:"&&(x.protocol="ws:"),x.origin}catch{return""}}return H.jsxs(H.Fragment,{children:[H.jsx("h1",{children:"compare hoses"}),H.jsx("p",{children:H.jsx("em",{children:"warning: enabling many relay connections requires a lot of bandwidth"})}),H.jsxs("form",{style:{display:"block",textAlign:"left"},children:[_b.map(({url:x,desc:S})=>H.jsx("p",{style:{margin:0},children:H.jsxs("label",{children:[H.jsx("input",{type:"checkbox",onChange:C=>v(x,C.target.checked),checked:t.includes(x)}),` ${S} `,"(",H.jsx("code",{children:x.slice(6)}),")"]})},x)),H.jsx("p",{style:{margin:0},children:H.jsxs("label",{children:[H.jsx("input",{type:"checkbox",onChange:x=>{const S=b();S&&v(S,x.target.checked)},checked:t.includes(b())})," ",H.jsx("input",{type:"text",placeholder:"wss://…",value:p,onChange:x=>{const S=b();n(C=>C.includes(S)?C.filter(E=>E!==S):C),y(x.target.value)},onKeyDown:x=>{if(x.key!=="Enter")return;x.preventDefault();const S=b();S&&v(S,!0)}})," ",p&&H.jsx("code",{children:b()})]})})]}),H.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"2em",textAlign:"left"},children:t.map(x=>{const{desc:S}=_b.find(C=>C.url===x)??{desc:"custom relay"};return H.jsx("div",{children:H.jsx(jz,{url:x,desc:S,onRecieveEvent:(C,E)=>i(x,C,E)})},x)})}),m&&H.jsx("p",{children:H.jsx("em",{children:"disconnected to save bandwidth due to inactivity"})}),H.jsx("div",{className:"throughputs",children:H.jsx(K8,{height:300,yAxis:[{label:"events / sec"}],skipAnimation:!0,...c})})]})}const Lz=_m({colorSchemes:{dark:!0}});JT.createRoot(document.getElementById("root")).render(H.jsx(JC,{injectFirst:!0,children:H.jsx(RE,{theme:Lz,children:H.jsx(Bz,{})})}));
+1 -1
docs/index.html
··· 4 4 <meta charset="UTF-8" /> 5 5 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 6 6 <title>compare hoses</title> 7 - <script type="module" crossorigin src="/assets/index-BvyuZvXE.js"></script> 7 + <script type="module" crossorigin src="/assets/index-GCbXm-Bp.js"></script> 8 8 <link rel="stylesheet" crossorigin href="/assets/index-Br90oyGg.css"> 9 9 </head> 10 10 <body>