vendor: 6,808 bytes, lines 1-9
1var pC=e=>{throw TypeError(e)};var sb=(e,t,n)=>t.has(e)||pC("Cannot "+n);var K=(e,t,n)=>(sb(e,t,"read from private field"),n?n.call(e):t.get(e)),Ne=(e,t,n)=>t.has(e)?pC("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Se=(e,t,n,r)=>(sb(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ke=(e,t,n)=>(sb(e,t,"access private method"),n);var Vh=(e,t,n,r)=>({set _(i){Se(e,t,i,n)},get _(){return K(e,t,r)}});function P8(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Kh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function A8(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var lb={exports:{}},Mc={},ub={exports:{}},Xe={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var mC;function k8(){if(mC)return Xe;mC=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;function m(z){return z===null||typeof z!="object"?null:(z=h&&z[h]||z["@@iterator"],typeof z=="function"?z:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,y={};function x(z,X,I){this.props=z,this.context=X,this.refs=y,this.updater=I||g}x.prototype.isReactComponent={},x.prototype.setState=function(z,X){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,X,"setState")},x.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function S(){}S.prototype=x.prototype;function P(z,X,I){this.props=z,this.context=X,this.refs=y,this.updater=I||g}var E=P.prototype=new S;E.constructor=P,w(E,x.prototype),E.isPureReactComponent=!0;var C=Array.isArray,O=Object.prototype.hasOwnProperty,A={current:null},j={key:!0,ref:!0,__self:!0,__source:!0};function R(z,X,I){var ue,xe={},we=null,le=null;if(X!=null)for(ue in X.ref!==void 0&&(le=X.ref),X.key!==void 0&&(we=""+X.key),X)O.call(X,ue)&&!j.hasOwnProperty(ue)&&(xe[ue]=X[ue]);var ve=arguments.length-2;if(ve===1)xe.children=I;else if(1<ve){for(var ae=Array(ve),he=0;he<ve;he++)ae[he]=arguments[he+2];xe.children=ae}if(z&&z.defaultProps)for(ue in ve=z.defaultProps,ve)xe[ue]===void 0&&(xe[ue]=ve[ue]);return{$$typeof:e,type:z,key:we,ref:le,props:xe,_owner:A.current}}function L(z,X){return{$$typeof:e,type:z.type,key:X,ref:z.ref,props:z.props,_owner:z._owner}}function q(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function D(z){var X={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(I){return X[I]})}var $=/\/+/g;function B(z,X){return typeof z=="object"&&z!==null&&z.key!=null?D(""+z.key):X.toString(36)}function W(z,X,I,ue,xe){var we=typeof z;(we==="undefined"||we==="boolean")&&(z=null);var le=!1;if(z===null)le=!0;else switch(we){case"string":case"number":le=!0;break;case"object":switch(z.$$typeof){case e:case t:le=!0}}if(le)return le=z,xe=xe(le),z=ue===""?"."+B(le,0):ue,C(xe)?(I="",z!=null&&(I=z.replace($,"$&/")+"/"),W(xe,X,I,"",function(he){return he})):xe!=null&&(q(xe)&&(xe=L(xe,I+(!xe.key||le&&le.key===xe.key?"":(""+xe.key).replace($,"$&/")+"/")+z)),X.push(xe)),1;if(le=0,ue=ue===""?".":ue+":",C(z))for(var ve=0;ve<z.length;ve++){we=z[ve];var ae=ue+B(we,ve);le+=W(we,X,I,ae,xe)}else if(ae=m(z),typeof ae=="function")for(z=ae.call(z),ve=0;!(we=z.next()).done;)we=we.value,ae=ue+B(we,ve++),le+=W(we,X,I,ae,xe);else if(we==="object")throw X=String(z),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.");return le}function V(z,X,I){if(z==null)return z;var ue=[],xe=0;return W(z,ue,"","",function(we){return X.call(I,we,xe++)}),ue}function Y(z){if(z._status===-1){var X=z._result;X=X(),X.then(function(I){(z._status===0||z._status===-1)&&(z._status=1,z._result=I)},function(I){(z._status===0||z._status===-1)&&(z._status=2,z._result=I)}),z._status===-1&&(z._status=0,z._result=X)}if(z._status===1)return z._result.default;throw z._result}var J={current:null},F={transition:null},Z={ReactCurrentDispatcher:J,ReactCurrentBatchConfig:F,ReactCurrentOwner:A};function M(){throw Error("act(...) is not supported in production builds of React.")}return Xe.Children={map:V,forEach:function(z,X,I){V(z,function(){X.apply(this,arguments)},I)},count:function(z){var X=0;return V(z,function(){X++}),X},toArray:function(z){return V(z,function(X){return X})||[]},only:function(z){if(!q(z))throw Error("React.Children.only expected to receive a single React element child.");return z}},Xe.Component=x,Xe.Fragment=n,Xe.Profiler=i,Xe.PureComponent=P,Xe.StrictMode=r,Xe.Suspense=c,Xe.__SECRET_INT
vendor: 8,859 bytes, lines 9-33
9ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,Xe.act=M,Xe.cloneElement=function(z,X,I){if(z==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+z+".");var ue=w({},z.props),xe=z.key,we=z.ref,le=z._owner;if(X!=null){if(X.ref!==void 0&&(we=X.ref,le=A.current),X.key!==void 0&&(xe=""+X.key),z.type&&z.type.defaultProps)var ve=z.type.defaultProps;for(ae in X)O.call(X,ae)&&!j.hasOwnProperty(ae)&&(ue[ae]=X[ae]===void 0&&ve!==void 0?ve[ae]:X[ae])}var ae=arguments.length-2;if(ae===1)ue.children=I;else if(1<ae){ve=Array(ae);for(var he=0;he<ae;he++)ve[he]=arguments[he+2];ue.children=ve}return{$$typeof:e,type:z.type,key:xe,ref:we,props:ue,_owner:le}},Xe.createContext=function(z){return z={$$typeof:a,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},z.Provider={$$typeof:o,_context:z},z.Consumer=z},Xe.createElement=R,Xe.createFactory=function(z){var X=R.bind(null,z);return X.type=z,X},Xe.createRef=function(){return{current:null}},Xe.forwardRef=function(z){return{$$typeof:l,render:z}},Xe.isValidElement=q,Xe.lazy=function(z){return{$$typeof:d,_payload:{_status:-1,_result:z},_init:Y}},Xe.memo=function(z,X){return{$$typeof:f,type:z,compare:X===void 0?null:X}},Xe.startTransition=function(z){var X=F.transition;F.transition={};try{z()}finally{F.transition=X}},Xe.unstable_act=M,Xe.useCallback=function(z,X){return J.current.useCallback(z,X)},Xe.useContext=function(z){return J.current.useContext(z)},Xe.useDebugValue=function(){},Xe.useDeferredValue=function(z){return J.current.useDeferredValue(z)},Xe.useEffect=function(z,X){return J.current.useEffect(z,X)},Xe.useId=function(){return J.current.useId()},Xe.useImperativeHandle=function(z,X,I){return J.current.useImperativeHandle(z,X,I)},Xe.useInsertionEffect=function(z,X){return J.current.useInsertionEffect(z,X)},Xe.useLayoutEffect=function(z,X){return J.current.useLayoutEffect(z,X)},Xe.useMemo=function(z,X){return J.current.useMemo(z,X)},Xe.useReducer=function(z,X,I){return J.current.useReducer(z,X,I)},Xe.useRef=function(z){return J.current.useRef(z)},Xe.useState=function(z){return J.current.useState(z)},Xe.useSyncExternalStore=function(z,X,I){return J.current.useSyncExternalStore(z,X,I)},Xe.useTransition=function(){return J.current.useTransition()},Xe.version="18.3.1",Xe}var gC;function OO(){return gC||(gC=1,ub.exports=k8()),ub.exports}/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var yC;function C8(){if(yC)return Mc;yC=1;var e=OO(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(l,c,f){var d,h={},m=null,g=null;f!==void 0&&(m=""+f),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(g=c.ref);for(d in c)r.call(c,d)&&!o.hasOwnProperty(d)&&(h[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)h[d]===void 0&&(h[d]=c[d]);return{$$typeof:t,type:l,key:m,ref:g,props:h,_owner:i.current}}return Mc.Fragment=n,Mc.jsx=a,Mc.jsxs=a,Mc}var vC;function T8(){return vC||(vC=1,lb.exports=C8()),lb.exports}var v=T8(),T=OO();const H=tt(T),EO=P8({__proto__:null,default:H},[T]);var Gh={},cb={exports:{}},Gn={},fb={exports:{}},db={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var bC;function j8(){return bC||(bC=1,(function(e){function t(F,Z){var M=F.length;F.push(Z);e:for(;0<M;){var z=M-1>>>1,X=F[z];if(0<i(X,Z))F[z]=Z,F[M]=X,M=z;else break e}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var Z=F[0],M=F.pop();if(M!==Z){F[0]=M;e:for(var z=0,X=F.length,I=X>>>1;z<I;){var ue=2*(z+1)-1,xe=F[ue],we=ue+1,le=F[we];if(0>i(xe,M))we<X&&0>i(le,xe)?(F[z]=le,F[we]=M,z=we):(F[z]=xe,F[ue]=M,z=ue);else if(we<X&&0>i(le,M))F[z]=le,F[we]=M,z=we;else break e}}return Z}function i(F,Z){var M=F.sortIndex-Z.sortIndex;return M!==0?M:F.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],f=[],d=1,h=null,m=3,g=!1,w=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(F){for(var Z=n(f);Z!==null;){if(Z.callback===null)r(f);else if(Z.startTime<=F)r(f),Z.sortIndex=Z.expirationTime,t(c,Z);else break;Z=n(f)}}function C(F){if(y=!1,E(F),!w)if(n(c)!==null)w=!0,Y(O);else{var Z=n(f);Z!==null&&J(C,Z.startTime-F)}}function O(F,Z){w=!1,y&&(y=!1,S(R),R=-1),g=!0;var M=m;try{for(E(Z),h=n(c);h!==null&&(!(h.expirationTime>Z)||F&&!D());){var z=h.callback;if(typeof z=="function"){h.callback=null,m=h.priorityLevel;var X=z(h.expirationTime<=Z);Z=e.unstable_now(),typeof X=="function"?h.callback=X:h===n(c)&&r(c),E(Z)}else r(c);h=n(c)}if(h!==null)var I=!0;else{var ue=n(f);ue!==null&&J(C,ue.startTime-Z),I=!1}return I}finally{h=null,m=M,g=!1}}var A=!1,j=null,R=-1,L=5,q=-1;function D(){return!(e.unstable_now()-q<L)}function $(){if(j!==null){var F=e.unstable_now();q=F;var Z=!0;try{Z=j(!0,F)}finally{Z?B():(A=!1,j=null)}}else A=!1}var B;if(typeof P=="function")B=function(){P($)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,V=W.port2;W.port1.onmessage=$,B=function(){V.postMessage(null)}}else B=function(){x($,0)};function Y(F){j=F,A||(A=!0,B())}function J(F,Z){R=x(function(){F(e.unstable_now())},Z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_continueExecution=function(){w||g||(w=!0,Y(O))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(F){switch(m){case 1:case 2:case 3:var Z=3;break;default:Z=m}var M=m;m=Z;try{return F()}finally{m=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,Z){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var M=m;m=F;try{return Z()}finally{m=M}},e.unstable_scheduleCallback=function(F,Z,M){var z=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?z+M:z):M=z,F){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=M+X,F={id:d++,callback:Z,priorityLevel:F,startTime:M,expirationTime:X,sortIndex:-1},M>z?(F.sortIndex=M,t(f,F),n(c)===null&&F===n(f)&&(y?(S(R),R=-1):y=!0,J(C,M-z))):(F.sortIndex=X,t(c,F),w||g||(w=!0,Y(O))),F},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(F){var Z=m;return function(){var M=m;m=Z;try{return F.apply(this,arguments)}finally{m=M}}}})(db)),db}var xC;function N8(){return xC||(xC=1,fb.exports=j8()),fb.exports}/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var wC;function R8(){if(wC)return Gn;wC=1;var e=OO(),t=N8();function n(s){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+s,p=1;p<arguments.length;p++)u+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+s+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function o(s,u){a(s,u),a(s+"Capture",u)}function a(s,u){for(i[s]=u,s=0;s<u.length;s++)r.add(u[s])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,f=/^[: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]*$/,d={},h={};
vendor: 43,033 bytes, lines 33-37
33function m(s){return c.call(h,s)?!0:c.call(d,s)?!1:f.test(s)?h[s]=!0:(d[s]=!0,!1)}function g(s,u,p,b){if(p!==null&&p.type===0)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":return b?!1:p!==null?!p.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function w(s,u,p,b){if(u===null||typeof u>"u"||g(s,u,p,b))return!0;if(b)return!1;if(p!==null)switch(p.type){case 3:return!u;case 4:return u===!1;case 5:return isNaN(u);case 6:return isNaN(u)||1>u}return!1}function y(s,u,p,b,_,k,N){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=b,this.attributeNamespace=_,this.mustUseProperty=p,this.propertyName=s,this.type=u,this.sanitizeURL=k,this.removeEmptyString=N}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){x[s]=new y(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var u=s[0];x[u]=new y(u,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){x[s]=new y(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){x[s]=new y(s,2,!1,s,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(s){x[s]=new y(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){x[s]=new y(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){x[s]=new y(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){x[s]=new y(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){x[s]=new y(s,5,!1,s.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function P(s){return s[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(s){var u=s.replace(S,P);x[u]=new y(u,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var u=s.replace(S,P);x[u]=new y(u,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var u=s.replace(S,P);x[u]=new y(u,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){x[s]=new y(s,1,!1,s.toLowerCase(),null,!1,!1)}),x.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){x[s]=new y(s,1,!1,s.toLowerCase(),null,!0,!0)});function E(s,u,p,b){var _=x.hasOwnProperty(u)?x[u]:null;(_!==null?_.type!==0:b||!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(w(u,p,_,b)&&(p=null),b||_===null?m(u)&&(p===null?s.removeAttribute(u):s.setAttribute(u,""+p)):_.mustUseProperty?s[_.propertyName]=p===null?_.type===3?!1:"":p:(u=_.attributeName,b=_.attributeNamespace,p===null?s.removeAttribute(u):(_=_.type,p=_===3||_===4&&p===!0?"":""+p,b?s.setAttributeNS(b,u,p):s.setAttribute(u,p))))}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,O=Symbol.for("react.element"),A=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),q=Symbol.for("react.provider"),D=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),J=Symbol.for("react.offscreen"),F=Symbol.iterator;function Z(s){return s===null||typeof s!="object"?null:(s=F&&s[F]||s["@@iterator"],typeof s=="function"?s:null)}var M=Object.assign,z;function X(s){if(z===void 0)try{throw Error()}catch(p){var u=p.stack.trim().match(/\n( *(at )?)/);z=u&&u[1]||""}return` 34`+z+s}var I=!1;function ue(s,u){if(!s||I)return"";I=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(u)if(u=function(){throw Error()},Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(ne){var b=ne}Reflect.construct(s,[],u)}else{try{u.call()}catch(ne){b=ne}s.call(u.prototype)}else{try{throw Error()}catch(ne){b=ne}s()}}catch(ne){if(ne&&b&&typeof ne.stack=="string"){for(var _=ne.stack.split(` 35`),k=b.stack.split(` 36`),N=_.length-1,U=k.length-1;1<=N&&0<=U&&_[N]!==k[U];)U--;for(;1<=N&&0<=U;N--,U--)if(_[N]!==k[U]){if(N!==1||U!==1)do if(N--,U--,0>U||_[N]!==k[U]){var G=` 37`+_[N].replace(" at new "," at ");return s.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",s.displayName)),G}while(1<=N&&0<=U);break}}}finally{I=!1,Error.prepareStackTrace=p}return(s=s?s.displayName||s.name:"")?X(s):""}function xe(s){switch(s.tag){case 5:return X(s.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 2:case 15:return s=ue(s.type,!1),s;case 11:return s=ue(s.type.render,!1),s;case 1:return s=ue(s.type,!0),s;default:return""}}function we(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case j:return"Fragment";case A:return"Portal";case L:return"Profiler";case R:return"StrictMode";case B:return"Suspense";case W:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case D:return(s.displayName||"Context")+".Consumer";case q:return(s._context.displayName||"Context")+".Provider";case $:var u=s.render;return s=s.displayName,s||(s=u.displayName||u.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case V:return u=s.displayName||null,u!==null?u:we(s.type)||"Memo";case Y:u=s._payload,s=s._init;try{return we(s(u))}catch{}}return null}function le(s){var u=s.type;switch(s.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=u.render,s=s.displayName||s.name||"",u.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return we(u);case 8:return u===R?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function ve(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function ae(s){var u=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function he(s){var u=ae(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,u),b=""+s[u];if(!s.hasOwnProperty(u)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var _=p.get,k=p.set;return Object.defineProperty(s,u,{configurable:!0,get:function(){return _.call(this)},set:function(N){b=""+N,k.call(this,N)}}),Object.defineProperty(s,u,{enumerable:p.enumerable}),{getValue:function(){return b},setValue:function(N){b=""+N},stopTracking:function(){s._valueTracker=null,delete s[u]}}}}function be(s){s._valueTracker||(s._valueTracker=he(s))}function ie(s){if(!s)return!1;var u=s._valueTracker;if(!u)return!0;var p=u.getValue(),b="";return s&&(b=ae(s)?s.checked?"true":"false":s.value),s=b,s!==p?(u.setValue(s),!0):!1}function Ue(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function De(s,u){var p=u.checked;return M({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??s._wrapperState.initialChecked})}function ot(s,u){var p=u.defaultValue==null?"":u.defaultValue,b=u.checked!=null?u.checked:u.defaultChecked;p=ve(u.value!=null?u.value:p),s._wrapperState={initialChecked:b,initialValue:p,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function at(s,u){u=u.checked,u!=null&&E(s,"checked",u,!1)}function bt(s,u){at(s,u);var p=ve(u.value),b=u.type;if(p!=null)b==="number"?(p===0&&s.value===""||s.value!=p)&&(s.value=""+p):s.value!==""+p&&(s.value=""+p);else if(b==="submit"||b==="reset"){s.removeAttribute("value");return}u.hasOwnProperty("value")?sn(s,u.type,p):u.hasOwnProperty("defaultValue")&&sn(s,u.type,ve(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(s.defaultChecked=!!u.defaultChecked)}function Mn(s,u,p){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var b=u.type;if(!(b!=="submit"&&b!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+s._wrapperState.initialValue,p||u===s.value||(s.value=u),s.defaultValue=u}p=s.name,p!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,p!==""&&(s.name=p)}function sn(s,u,p){(u!=="number"||Ue(s.ownerDocument)!==s)&&(p==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+p&&(s.defaultValue=""+p))}var ar=Array.isArray;function wn(s,u,p,b){if(s=s.options,u){u={};for(var _=0;_<p.length;_++)u["$"+p[_]]=!0;for(p=0;p<s.length;p++)_=u.hasOwnProperty("$"+s[p].value),s[p].selected!==_&&(s[p].selected=_),_&&b&&(s[p].defaultSelected=!0)}else{for(p=""+ve(p),u=null,_=0;_<s.length;_++){if(s[_].value===p){s[_].selected=!0,b&&(s[_].defaultSelected=!0);return}u!==null||s[_].disabled||(u=s[_])}u!==null&&(u.selected=!0)}}function sr(s,u){if(u.dangerouslySetInnerHTML!=null)throw Error(n(91));return M({},u,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function wo(s,u){var p=u.value;if(p==null){if(p=u.children,u=u.defaultValue,p!=null){if(u!=null)throw Error(n(92));if(ar(p)){if(1<p.length)throw Error(n(93));p=p[0]}u=p}u==null&&(u=""),p=u}s._wrapperState={initialValue:ve(p)}}function wa(s,u){var p=ve(u.value),b=ve(u.defaultValue);p!=null&&(p=""+p,p!==s.value&&(s.value=p),u.defaultValue==null&&s.defaultValue!==p&&(s.defaultValue=p)),b!=null&&(s.defaultValue=""+b)}function Sa(s){var u=s.textContent;u===s._wrapperState.initialValue&&u!==""&&u!==null&&(s.value=u)}function se(s){switch(s){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ye(s,u){return s==null||s==="http://www.w3.org/1999/xhtml"?se(u):s==="http://www.w3.org/2000/svg"&&u==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var $e,Ye=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(u,p,b,_){MSApp.execUnsafeLocalFunction(function(){return s(u,p,b,_)})}:s})(function(s,u){if(s.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in s)s.innerHTML=u;else{for($e=$e||document.createElement("div"),$e.innerHTML="<svg>"+u.valueOf().toString()+"</svg>",u=$e.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;u.firstChild;)s.appendChild(u.firstChild)}});function Ze(s,u){if(u){var p=s.firstChild;if(p&&p===s.lastChild&&p.nodeType===3){p.nodeValue=u;return}}s.textContent=u}var mn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bi=["Webkit","ms","Moz","O"];Object.keys(mn).forEach(function(s){Bi.forEach(function(u){u=u+s.charAt(0).toUpperCase()+s.substring(1),mn[u]=mn[s]})});function Pr(s,u,p){return u==null||typeof u=="boolean"||u===""?"":p||typeof u!="number"||u===0||mn.hasOwnProperty(s)&&mn[s]?(""+u).trim():u+"px"}function So(s,u){s=s.style;for(var p in u)if(u.hasOwnProperty(p)){var b=p.indexOf("--")===0,_=Pr(p,u[p],b);p==="float"&&(p="cssFloat"),b?s.setProperty(p,_):s[p]=_}}var _a=M({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function gn(s,u){if(u){if(_a[s]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(n(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(n(61))}if(u.style!=null&&typeof u.style!="object")throw Error(n(62))}}function di(s,u){if(s.indexOf("-")===-1)return typeof u.is=="string";switch(s){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var lr=null;function Sy(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var _y=null,Fs=null,Bs=null;function jP(s){if(s=bc(s)){if(typeof _y!="function")throw Error(n(280));var u=s.stateNode;u&&(u=sh(u),_y(s.stateNode,s.type,u))}}function NP(s){Fs?Bs?Bs.push(s):Bs=[s]:Fs=s}function RP(){if(Fs){var s=Fs,u=Bs;if(Bs=Fs=null,jP(s),u)for(s=0;s<u.length;s++)jP(u[s])}}function MP(s,u){return s(u)}function IP(){}var Oy=!1;function DP(s,u,p){if(Oy)return s(u,p);Oy=!0;try{return MP(s,u,p)}finally{Oy=!1,(Fs!==null||Bs!==null)&&(IP(),RP())}}function Ju(s,u){var p=s.stateNode;if(p===null)return null;var b=sh(p);if(b===null)return null;p=b[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(s=s.type,b=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!b;break e;default:s=!1}if(s)return null;if(p&&typeof p!="function")throw Error(n(231,u,typeof p));return p}var Ey=!1;if(l)try{var Zu={};Object.defineProperty(Zu,"passive",{get:function(){Ey=!0}}),window.addEventListener("test",Zu,Zu),window.removeEventListener("test",Zu,Zu)}catch{Ey=!1}function N5(s,u,p,b,_,k,N,U,G){var ne=Array.prototype.slice.call(arguments,3);try{u.apply(p,ne)}catch(fe){this.onError(fe)}}var ec=!1,Fd=null,Bd=!1,Py=null,R5={onError:function(s){ec=!0,Fd=s}};function M5(s,u,p,b,_,k,N,U,G){ec=!1,Fd=null,N5.apply(R5,arguments)}function I5(s,u,p,b,_,k,N,U,G){if(M5.apply(this,arguments),ec){if(ec){var ne=Fd;ec=!1,Fd=null}else throw Error(n(198));Bd||(Bd=!0,Py=ne)}}function Oa(s){var u=s,p=s;if(s.alternate)for(;u.return;)u=u.return;else{s=u;do u=s,(u.flags&4098)!==0&&(p=u.return),s=u.return;while(s)}return u.tag===3?p:null}function LP(s){if(s.tag===13){var u=s.memoizedState;if(u===null&&(s=s.alternate,s!==null&&(u=s.memoizedState)),u!==null)return u.dehydrated}return null}function $P(s){if(Oa(s)!==s)throw Error(n(188))}function D5(s){var u=s.alternate;if(!u){if(u=Oa(s),u===null)throw Error(n(188));return u!==s?null:s}for(var p=s,b=u;;){var _=p.return;if(_===null)break;var k=_.alternate;if(k===null){if(b=_.return,b!==null){p=b;continue}break}if(_.child===k.child){for(k=_.child;k;){if(k===p)return $P(_),s;if(k===b)return $P(_),u;k=k.sibling}throw Error(n(188))}if(p.return!==b.return)p=_,b=k;else{for(var N=!1,U=_.child;U;){if(U===p){N=!0,p=_,b=k;break}if(U===b){N=!0,b=_,p=k;break}U=U.sibling}if(!N){for(U=k.child;U;){if(U===p){N=!0,p=k,b=_;break}if(U===b){N=!0,b=k,p=_;break}U=U.sibling}if(!N)throw Error(n(189))}}if(p.alternate!==b)throw Error(n(190))}if(p.tag!==3)throw Error(n(188));return p.stateNode.current===p?s:u}function FP(s){return s=D5(s),s!==null?BP(s):null}function BP(s){if(s.tag===5||s.tag===6)return s;for(s=s.child;s!==null;){var u=BP(s);if(u!==null)return u;s=s.sibling}return null}var qP=t.unstable_scheduleCallback,zP=t.unstable_cancelCallback,L5=t.unstable_shouldYield,$5=t.unstable_requestPaint,Bt=t.unstable_now,F5=t.unstable_getCurrentPriorityLevel,Ay=t.unstable_ImmediatePriority,UP=t.unstable_UserBlockingPriority,qd=t.unstable_NormalPriority,B5=t.unstable_LowPriority,WP=t.unstable_IdlePriority,zd=null,hi=null;function q5(s){if(hi&&typeof hi.onCommitFiberRoot=="function")try{hi.onCommitFiberRoot(zd,s,void 0,(s.current.flags&128)===128)}catch{}}var Hr=Math.clz32?Math.clz32:W5,z5=Math.log,U5=Math.LN2;function W5(s){return s>>>=0,s===0?32:31-(z5(s)/U5|0)|0}var Ud=64,Wd=4194304;function tc(s){switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function Hd(s,u){var p=s.pendingLanes;if(p===0)return 0;var b=0,_=s.suspendedLanes,k=s.pingedLanes,N=p&268435455;if(N!==0){var U=N&~_;U!==0?b=tc(U):(k&=N,k!==0&&(b=tc(k)))}else N=p&~_,N!==0?b=tc(N):k!==0&&(b=tc(k));if(b===0)return 0;if(u!==0&&u!==b&&(u&_)===0&&(_=b&-b,k=u&-u,_>=k||_===16&&(k&4194240)!==0))return u;if((b&4)!==0&&(b|=p&16),u=s.entangledLanes,u!==0)for(s=s.entanglements,u&=b;0<u;)p=31-Hr(u),_=1<<p,b|=s[p],u&=~_;return b}function H5(s,u){switch(s){case 1:case 2:case 4:return u+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function V5(s,u){for(var p=s.suspendedLanes,b=s.pingedLanes,_=s.expirationTimes,k=s.pendingLanes;0<k;){var N=31-Hr(k),U=1<<N,G=_[N];G===-1?((U&p)===0||(U&b)!==0)&&(_[N]=H5(U,u)):G<=u&&(s.expiredLanes|=U),k&=~U}}function ky(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function HP(){var s=Ud;return Ud<<=1,(Ud&4194240)===0&&(Ud=64),s}function Cy(s){for(var u=[],p=0;31>p;p++)u.push(s);return u}function nc(s,u,p){s.pendingLanes|=u,u!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,u=31-Hr(u),s[u]=p}function K5(s,u){var p=s.pendingLanes&~u;s.pendingLanes=u,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=u,s.mutableReadLanes&=u,s.entangledLanes&=u,u=s.entanglements;var b=s.eventTimes;for(s=s.expirationTimes;0<p;){var _=31-Hr(p),k=1<<_;u[_]=0,b[_]=-1,s[_]=-1,p&=~k}}function Ty(s,u){var p=s.entangledLanes|=u;for(s=s.entanglements;p;){var b=31-Hr(p),_=1<<b;_&u|s[b]&u&&(s[b]|=u),p&=~_}}var mt=0;function VP(s){return s&=-s,1<s?4<s?(s&268435455)!==0?16:536870912:4:1}var KP,jy,GP,YP,XP,Ny=!1,Vd=[],_o=null,Oo=null,Eo=null,rc=new Map,ic=new Map,Po=[],G5="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function QP(s,u){switch(s){case"focusin":case"focusout":_o=null;break;case"dragenter":case"dragleave":Oo=null;break;case"mouseover":case"mouseout":Eo=null;break;case"pointerover":case"pointerout":rc.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":ic.delete(u.pointerId)}}function oc(s,u,p,b,_,k){return s===null||s.nativeEvent!==k?(s={blockedOn:u,domEventName:p,eventSystemFlags:b,nativeEvent:k,targetContainers:[_]},u!==null&&(u=bc(u),u!==null&&jy(u)),s):(s.eventSystemFlags|=b,u=s.targetContainers,_!==null&&u.indexOf(_)===-1&&u.push(_),s)}function Y5(s,u,p,b,_){switch(u){case"focusin":return _o=oc(_o,s,u,p,b,_),!0;case"dragenter":return Oo=oc(Oo,s,u,p,b,_),!0;case"mouseover":return Eo=oc(Eo,s,u,p,b,_),!0;case"pointerover":var k=_.pointerId;return rc.set(k,oc(rc.get(k)||null,s,u,p,b,_)),!0;case"gotpointercapture":return k=_.pointerId,ic.set(k,oc(ic.get(k)||null,s,u,p,b,_)),!0}return!1}function JP(s){var u=Ea(s.target);if(u!==null){var p=Oa(u);if(p!==null){if(u=p.tag,u===13){if(u=LP(p),u!==null){s.blockedOn=u,XP(s.priority,function(){GP(p)});return}}else if(u===3&&p.stateNode.current.memoizedState.isDehydrated){s.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Kd(s){if(s.blockedOn!==null)return!1;for(var u=s.targetContainers;0<u.length;){var p=My(s.domEventName,s.eventSystemFlags,u[0],s.nativeEvent);if(p===null){p=s.nativeEvent;var b=new p.constructor(p.type,p);lr=b,p.target.dispatchEvent(b),lr=null}else return u=bc(p),u!==null&&jy(u),s.blockedOn=p,!1;u.shift()}return!0}function ZP(s,u,p){Kd(s)&&p.delete(u)}function X5(){Ny=!1,_o!==null&&Kd(_o)&&(_o=null),Oo!==null&&Kd(Oo)&&(Oo=null),Eo!==null&&Kd(Eo)&&(Eo=null),rc.forEach(ZP),ic.forEach(ZP)}function ac(s,u){s.blockedOn===u&&(s.blockedOn=null,Ny||(Ny=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,X5)))}function sc(s){function u(_){return ac(_,s)}if(0<Vd.length){ac(Vd[0],s);for(var p=1;p<Vd.length;p++){var b=Vd[p];b.blockedOn===s&&(b.blockedOn=null)}}for(_o!==null&&ac(_o,s),Oo!==null&&ac(Oo,s),Eo!==null&&ac(Eo,s),rc.forEach(u),ic.forEach(u),p=0;p<Po.length;p++)b=Po[p],b.blockedOn===s&&(b.blockedOn=null);for(;0<Po.length&&(p=Po[0],p.blockedOn===null);)JP(p),p.blockedOn===null&&Po.shift()}var qs=C.ReactCurrentBatchConfig,Gd=!0;function Q5(s,u,p,b){var _=mt,k=qs.transition;qs.transition=null;try{mt=1,Ry(s,u,p,b)}finally{mt=_,qs.transition=k}}function J5(s,u,p,b){var _=mt,k=qs.transition;qs.transition=null;try{mt=4,Ry(s,u,p,b)}finally{mt=_,qs.transition=k}}function Ry(s,u,p,b){if(Gd){var _=My(s,u,p,b);if(_===null)Qy(s,u,b,Yd,p),QP(s,b);else if(Y5(_,s,u,p,b))b.stopPropagation();else if(QP(s,b),u&4&&-1<G5.indexOf(s)){for(;_!==null;){var k=bc(_);if(k!==null&&KP(k),k=My(s,u,p,b),k===null&&Qy(s,u,b,Yd,p),k===_)break;_=k}_!==null&&b.stopPropagation()}else Qy(s,u,b,null,p)}}var Yd=null;function My(s,u,p,b){if(Yd=null,s=Sy(b),s=Ea(s),s!==null)if(u=Oa(s),u===null)s=null;else if(p=u.tag,p===13){if(s=LP(u),s!==null)return s;s=null}else if(p===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;s=null}else u!==s&&(s=null);return Yd=s,null}function eA(s){switch(s){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(F5()){case Ay:return 1;case UP:return 4;case qd:case B5:return 16;case WP:return 536870912;default:return 16}default:return 16}}var Ao=null,Iy=null,Xd=null;function tA(){if(Xd)return Xd;var s,u=Iy,p=u.length,b,_="value"in Ao?Ao.value:Ao.textContent,k=_.length;for(s=0;s<p&&u[s]===_[s];s++);var N=p-s;for(b=1;b<=N&&u[p-b]===_[k-b];b++);return Xd=_.slice(s,1<b?1-b:void 0)}function Qd(s){var u=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&u===13&&(s=13)):s=u,s===10&&(s=13),32<=s||s===13?s:0}function Jd(){return!0}function nA(){return!1}function ur(s){function u(p,b,_,k,N){this._reactName=p,this._targetInst=_,this.type=b,this.nativeEvent=k,this.target=N,this.currentTarget=null;for(var U in s)s.hasOwnProperty(U)&&(p=s[U],this[U]=p?p(k):k[U]);return this.isDefaultPrevented=(k.defaultPrevented!=null?k.defaultPrevented:k.returnValue===!1)?Jd:nA,this.isPropagationStopped=nA,this}return M(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=Jd)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=Jd)},persist:function(){},isPersistent:Jd}),u}var zs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dy=ur(zs),lc=M({},zs,{view:0,detail:0}),Z5=ur(lc),Ly,$y,uc,Zd=M({},lc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:By,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==uc&&(uc&&s.type==="mousemove"?(Ly=s.screenX-uc.screenX,$y=s.screenY-uc.screenY):$y=Ly=0,uc=s),Ly)},movementY:function(s){return"movementY"in s?s.movementY:$y}}),rA=ur(Zd),eU=M({},Zd,{dataTransfer:0}),tU=ur(eU),nU=M({},lc,{relatedTarget:0}),Fy=ur(nU),rU=M({},zs,{animationName:0,elapsedTime:0,pseudoElement:0}),iU=ur(rU),oU=M({},zs,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),aU=ur(oU),sU=M({},zs,{data:0}),iA=ur(sU),lU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uU={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"},cU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fU(s){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(s):(s=cU[s])?!!u[s]:!1}function By(){return fU}var dU=M({},lc,{key:function(s){if(s.key){var u=lU[s.key]||s.key;if(u!=="Unidentified")return u}return s.type==="keypress"?(s=Qd(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?uU[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:By,charCode:function(s){return s.type==="keypress"?Qd(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Qd(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),hU=ur(dU),pU=M({},Zd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oA=ur(pU),mU=M({},lc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:By}),gU=ur(mU),yU=M({},zs,{propertyName:0,elapsedTime:0,pseudoElement:0}),vU=ur(yU),bU=M({},Zd,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),xU=ur(bU),wU=[9,13,27,32],qy=l&&"CompositionEvent"in window,cc=null;l&&"documentMode"in document&&(cc=document.documentMode);var SU=l&&"TextEvent"in window&&!cc,aA=l&&(!qy||cc&&8<cc&&11>=cc),sA=" ",lA=!1;function uA(s,u){switch(s){case"keyup":return wU.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cA(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Us=!1;function _U(s,u){switch(s){case"compositionend":return cA(u);case"keypress":return u.which!==32?null:(lA=!0,sA);case"textInput":return s=u.data,s===sA&&lA?null:s;default:return null}}function OU(s,u){if(Us)return s==="compositionend"||!qy&&uA(s,u)?(s=tA(),Xd=Iy=Ao=null,Us=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return aA&&u.locale!=="ko"?null:u.data;default:return null}}var EU={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 fA(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u==="input"?!!EU[s.type]:u==="textarea"}function dA(s,u,p,b){NP(b),u=ih(u,"onChange"),0<u.length&&(p=new Dy("onChange","change",null,p,b),s.push({event:p,listeners:u}))}var fc=null,dc=null;function PU(s){TA(s,0)}function eh(s){var u=Gs(s);if(ie(u))return s}function AU(s,u){if(s==="change")return u}var hA=!1;if(l){var zy;if(l){var Uy="oninput"in document;if(!Uy){var pA=document.createElement("div");pA.setAttribute("oninput","return;"),Uy=typeof pA.oninput=="function"}zy=Uy}else zy=!1;hA=zy&&(!document.documentMode||9<document.documentMode)}function mA(){fc&&(fc.detachEvent("onpropertychange",gA),dc=fc=null)}function gA(s){if(s.propertyName==="value"&&eh(dc)){var u=[];dA(u,dc,s,Sy(s)),DP(PU,u)}}function kU(s,u,p){s==="focusin"?(mA(),fc=u,dc=p,fc.attachEvent("onpropertychange",gA)):s==="focusout"&&mA()}function CU(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return eh(dc)}function TU(s,u){if(s==="click")return eh(u)}function jU(s,u){if(s==="input"||s==="change")return eh(u)}function NU(s,u){return s===u&&(s!==0||1/s===1/u)||s!==s&&u!==u}var Vr=typeof Object.is=="function"?Object.is:NU;function hc(s,u){if(Vr(s,u))return!0;if(typeof s!="object"||s===null||typeof u!="object"||u===null)return!1;var p=Object.keys(s),b=Object.keys(u);if(p.length!==b.length)return!1;for(b=0;b<p.length;b++){var _=p[b];if(!c.call(u,_)||!Vr(s[_],u[_]))return!1}return!0}function yA(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function vA(s,u){var p=yA(s);s=0;for(var b;p;){if(p.nodeType===3){if(b=s+p.textContent.length,s<=u&&b>=u)return{node:p,offset:u-s};s=b}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=yA(p)}}function bA(s,u){return s&&u?s===u?!0:s&&s.nodeType===3?!1:u&&u.nodeType===3?bA(s,u.parentNode):"contains"in s?s.contains(u):s.compareDocumentPosition?!!(s.compareDocumentPosition(u)&16):!1:!1}function xA(){for(var s=window,u=Ue();u instanceof s.HTMLIFrameElement;){try{var p=typeof u.contentWindow.location.href=="string"}catch{p=!1}if(p)s=u.contentWindow;else break;u=Ue(s.document)}return u}function Wy(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u&&(u==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||u==="textarea"||s.contentEditable==="true")}function RU(s){var u=xA(),p=s.focusedElem,b=s.selectionRange;if(u!==p&&p&&p.ownerDocument&&bA(p.ownerDocument.documentElement,p)){if(b!==null&&Wy(p)){if(u=b.start,s=b.end,s===void 0&&(s=u),"selectionStart"in p)p.selectionStart=u,p.selectionEnd=Math.min(s,p.value.length);else if(s=(u=p.ownerDocument||document)&&u.defaultView||window,s.getSelection){s=s.getSelection();var _=p.textContent.length,k=Math.min(b.start,_);b=b.end===void 0?k:Math.min(b.end,_),!s.extend&&k>b&&(_=b,b=k,k=_),_=vA(p,k);var N=vA(p,b);_&&N&&(s.rangeCount!==1||s.anchorNode!==_.node||s.anchorOffset!==_.offset||s.focusNode!==N.node||s.focusOffset!==N.offset)&&(u=u.createRange(),u.setStart(_.node,_.offset),s.removeAllRanges(),k>b?(s.addRange(u),s.extend(N.node,N.offset)):(u.setEnd(N.node,N.offset),s.addRange(u)))}}for(u=[],s=p;s=s.parentNode;)s.nodeType===1&&u.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<u.length;p++)s=u[p],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var MU=l&&"documentMode"in document&&11>=document.documentMode,Ws=null,Hy=null,pc=null,Vy=!1;function wA(s,u,p){var b=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Vy||Ws==null||Ws!==Ue(b)||(b=Ws,"selectionStart"in b&&Wy(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),pc&&hc(pc,b)||(pc=b,b=ih(Hy,"onSelect"),0<b.length&&(u=new Dy("onSelect","select",null,u,p),s.push({event:u,listeners:b}),u.target=Ws)))}function th(s,u){var p={};return p[s.toLowerCase()]=u.toLowerCase(),p["Webkit"+s]="webkit"+u,p["Moz"+s]="moz"+u,p}var Hs={animationend:th("Animation","AnimationEnd"),animationiteration:th("Animation","AnimationIteration"),animationstart:th("Animation","AnimationStart"),transitionend:th("Transition","TransitionEnd")},Ky={},SA={};l&&(SA=document.createElement("div").style,"AnimationEvent"in window||(delete Hs.animationend.animation,delete Hs.animationiteration.animation,delete Hs.animationstart.animation),"TransitionEvent"in window||delete Hs.transitionend.transition);function nh(s){if(Ky[s])return Ky[s];if(!Hs[s])return s;var u=Hs[s],p;for(p in u)if(u.hasOwnProperty(p)&&p in SA)return Ky[s]=u[p];return s}var _A=nh("animationend"),OA=nh("animationiteration"),EA=nh("animationstart"),PA=nh("transitionend"),AA=new Map,kA="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ko(s,u){AA.set(s,u),o(u,[s])}for(var Gy=0;Gy<kA.length;Gy++){var Yy=kA[Gy],IU=Yy.toLowerCase(),DU=Yy[0].toUpperCase()+Yy.slice(1);ko(IU,"on"+DU)}ko(_A,"onAnimationEnd"),ko(OA,"onAnimationIteration"),ko(EA,"onAnimationStart"),ko("dblclick","onDoubleClick"),ko("focusin","onFocus"),ko("focusout","onBlur"),ko(PA,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mc="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(" "),LU=new Set("cancel close invalid load scroll toggle".split(" ").concat(mc));function CA(s,u,p){var b=s.type||"unknown-event";s.currentTarget=p,I5(b,u,void 0,s),s.currentTarget=null}function TA(s,u){u=(u&4)!==0;for(var p=0;p<s.length;p++){var b=s[p],_=b.event;b=b.listeners;e:{var k=void 0;if(u)for(var N=b.length-1;0<=N;N--){var U=b[N],G=U.instance,ne=U.currentTarget;if(U=U.listener,G!==k&&_.isPropagationStopped())break e;CA(_,U,ne),k=G}else for(N=0;N<b.length;N++){if(U=b[N],G=U.instance,ne=U.currentTarget,U=U.listener,G!==k&&_.isPropagationStopped())break e;CA(_,U,ne),k=G}}}if(Bd)throw s=Py,Bd=!1,Py=null,s}function At(s,u){var p=u[rv];p===void 0&&(p=u[rv]=new Set);var b=s+"__bubble";p.has(b)||(jA(u,s,2,!1),p.add(b))}function Xy(s,u,p){var b=0;u&&(b|=4),jA(p,s,b,u)}var rh="_reactListening"+Math.random().toString(36).slice(2);function gc(s){if(!s[rh]){s[rh]=!0,r.forEach(function(p){p!=="selectionchange"&&(LU.has(p)||Xy(p,!1,s),Xy(p,!0,s))});var u=s.nodeType===9?s:s.ownerDocument;u===null||u[rh]||(u[rh]=!0,Xy("selectionchange",!1,u))}}function jA(s,u,p,b){switch(eA(u)){case 1:var _=Q5;break;case 4:_=J5;break;default:_=Ry}p=_.bind(null,u,p,s),_=void 0,!Ey||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(_=!0),b?_!==void 0?s.addEventListener(u,p,{capture:!0,passive:_}):s.addEventListener(u,p,!0):_!==void 0?s.addEventListener(u,p,{passive:_}):s.addEventListener(u,p,!1)}function Qy(s,u,p,b,_){var k=b;if((u&1)===0&&(u&2)===0&&b!==null)e:for(;;){if(b===null)return;var N=b.tag;if(N===3||N===4){var U=b.stateNode.containerInfo;if(U===_||U.nodeType===8&&U.parentNode===_)break;if(N===4)for(N=b.return;N!==null;){var G=N.tag;if((G===3||G===4)&&(G=N.stateNode.containerInfo,G===_||G.nodeType===8&&G.parentNode===_))return;N=N.return}for(;U!==null;){if(N=Ea(U),N===null)return;if(G=N.tag,G===5||G===6){b=k=N;continue e}U=U.parentNode}}b=b.return}DP(function(){var ne=k,fe=Sy(p),de=[];e:{var ce=AA.get(s);if(ce!==void 0){var _e=Dy,Ae=s;switch(s){case"keypress":if(Qd(p)===0)break e;case"keydown":case"keyup":_e=hU;break;case"focusin":Ae="focus",_e=Fy;break;case"focusout":Ae="blur",_e=Fy;break;case"beforeblur":case"afterblur":_e=Fy;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_e=rA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_e=tU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_e=gU;break;case _A:case OA:case EA:_e=iU;break;case PA:_e=vU;break;case"scroll":_e=Z5;break;case"wheel":_e=xU;break;case"copy":case"cut":case"paste":_e=aU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_e=oA}var Te=(u&4)!==0,qt=!Te&&s==="scroll",ee=Te?ce!==null?ce+"Capture":null:ce;Te=[];for(var Q=ne,te;Q!==null;){te=Q;var me=te.stateNode;if(te.tag===5&&me!==null&&(te=me,ee!==null&&(me=Ju(Q,ee),me!=null&&Te.push(yc(Q,me,te)))),qt)break;Q=Q.return}0<Te.length&&(ce=new _e(ce,Ae,null,p,fe),de.push({event:ce,listeners:Te}))}}if((u&7)===0){e:{if(ce=s==="mouseover"||s==="pointerover",_e=s==="mouseout"||s==="pointerout",ce&&p!==lr&&(Ae=p.relatedTarget||p.fromElement)&&(Ea(Ae)||Ae[qi]))break e;if((_e||ce)&&(ce=fe.window===fe?fe:(ce=fe.ownerDocument)?ce.defaultView||ce.parentWindow:window,_e?(Ae=p.relatedTarget||p.toElement,_e=ne,Ae=Ae?Ea(Ae):null,Ae!==null&&(qt=Oa(Ae),Ae!==qt||Ae.tag!==5&&Ae.tag!==6)&&(Ae=null)):(_e=null,Ae=ne),_e!==Ae)){if(Te=rA,me="onMouseLeave",ee="onMouseEnter",Q="mouse",(s==="pointerout"||s==="pointerover")&&(Te=oA,me="onPointerLeave",ee="onPointerEnter",Q="pointer"),qt=_e==null?ce:Gs(_e),te=Ae==null?ce:Gs(Ae),ce=new Te(me,Q+"leave",_e,p,fe),ce.target=qt,ce.relatedTarget=te,me=null,Ea(fe)===ne&&(Te=new Te(ee,Q+"enter",Ae,p,fe),Te.target=te,Te.relatedTarget=qt,me=Te),qt=me,_e&&Ae)t:{for(Te=_e,ee=Ae,Q=0,te=Te;te;te=Vs(te))Q++;for(te=0,me=ee;me;me=Vs(me))te++;for(;0<Q-te;)Te=Vs(Te),Q--;for(;0<te-Q;)ee=Vs(ee),te--;for(;Q--;){if(Te===ee||ee!==null&&Te===ee.alternate)break t;Te=Vs(Te),ee=Vs(ee)}Te=null}else Te=null;_e!==null&&NA(de,ce,_e,Te,!1),Ae!==null&&qt!==null&&NA(de,qt,Ae,Te,!0)}}e:{if(ce=ne?Gs(ne):window,_e=ce.nodeName&&ce.nodeName.toLowerCase(),_e==="select"||_e==="input"&&ce.type==="file")var je=AU;else if(fA(ce))if(hA)je=jU;else{je=CU;var Re=kU}else(_e=ce.nodeName)&&_e.toLowerCase()==="input"&&(ce.type==="checkbox"||ce.type==="radio")&&(je=TU);if(je&&(je=je(s,ne))){dA(de,je,p,fe);break e}Re&&Re(s,ce,ne),s==="focusout"&&(Re=ce._wrapperState)&&Re.controlled&&ce.type==="number"&&sn(ce,"number",ce.value)}switch(Re=ne?Gs(ne):window,s){case"focusin":(fA(Re)||Re.contentEditable==="true")&&(Ws=Re,Hy=ne,pc=null);break;case"focusout":pc=Hy=Ws=null;break;case"mousedown":Vy=!0;break;case"contextmenu":case"mouseup":case"dragend":Vy=!1,wA(de,p,fe);break;case"selectionchange":if(MU)break;case"keydown":case"keyup":wA(de,p,fe)}var Me;if(qy)e:{switch(s){case"compositionstart":var Fe="onCompositionStart";break e;case"compositionend":Fe="onCompositionEnd";break e;case"compositionupdate":Fe="onCompositionUpdate";break e}Fe=void 0}else Us?uA(s,p)&&(Fe="onCompositionEnd"):s==="keydown"&&p.keyCode===229&&(Fe="onCompositionStart");Fe&&(aA&&p.locale!=="ko"&&(Us||Fe!=="onCompositionStart"?Fe==="onCompositionEnd"&&Us&&(Me=tA()):(Ao=fe,Iy="value"in Ao?Ao.value:Ao.textContent,Us=!0)),Re=ih(ne,Fe),0<Re.length&&(Fe=new iA(Fe,s,null,p,fe),de.push({event:Fe,listeners:Re}),Me?Fe.data=Me:(Me=cA(p),Me!==null&&(Fe.data=Me)))),(Me=SU?_U(s,p):OU(s,p))&&(ne=ih(ne,"onBeforeInput"),0<ne.length&&(fe=new iA("onBeforeInput","beforeinput",null,p,fe),de.push({event:fe,listeners:ne}),fe.data=Me))}TA(de,u)})}function yc(s,u,p){return{instance:s,listener:u,currentTarget:p}}function ih(s,u){for(var p=u+"Capture",b=[];s!==null;){var _=s,k=_.stateNode;_.tag===5&&k!==null&&(_=k,k=Ju(s,p),k!=null&&b.unshift(yc(s,k,_)),k=Ju(s,u),k!=null&&b.pu
vendor: 6,688 bytes, lines 37-38
37sh(yc(s,k,_))),s=s.return}return b}function Vs(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function NA(s,u,p,b,_){for(var k=u._reactName,N=[];p!==null&&p!==b;){var U=p,G=U.alternate,ne=U.stateNode;if(G!==null&&G===b)break;U.tag===5&&ne!==null&&(U=ne,_?(G=Ju(p,k),G!=null&&N.unshift(yc(p,G,U))):_||(G=Ju(p,k),G!=null&&N.push(yc(p,G,U)))),p=p.return}N.length!==0&&s.push({event:u,listeners:N})}var $U=/\r\n?/g,FU=/\u0000|\uFFFD/g;function RA(s){return(typeof s=="string"?s:""+s).replace($U,` 38`).replace(FU,"")}function oh(s,u,p){if(u=RA(u),RA(s)!==u&&p)throw Error(n(425))}function ah(){}var Jy=null,Zy=null;function ev(s,u){return s==="textarea"||s==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var tv=typeof setTimeout=="function"?setTimeout:void 0,BU=typeof clearTimeout=="function"?clearTimeout:void 0,MA=typeof Promise=="function"?Promise:void 0,qU=typeof queueMicrotask=="function"?queueMicrotask:typeof MA<"u"?function(s){return MA.resolve(null).then(s).catch(zU)}:tv;function zU(s){setTimeout(function(){throw s})}function nv(s,u){var p=u,b=0;do{var _=p.nextSibling;if(s.removeChild(p),_&&_.nodeType===8)if(p=_.data,p==="/$"){if(b===0){s.removeChild(_),sc(u);return}b--}else p!=="$"&&p!=="$?"&&p!=="$!"||b++;p=_}while(p);sc(u)}function Co(s){for(;s!=null;s=s.nextSibling){var u=s.nodeType;if(u===1||u===3)break;if(u===8){if(u=s.data,u==="$"||u==="$!"||u==="$?")break;if(u==="/$")return null}}return s}function IA(s){s=s.previousSibling;for(var u=0;s;){if(s.nodeType===8){var p=s.data;if(p==="$"||p==="$!"||p==="$?"){if(u===0)return s;u--}else p==="/$"&&u++}s=s.previousSibling}return null}var Ks=Math.random().toString(36).slice(2),pi="__reactFiber$"+Ks,vc="__reactProps$"+Ks,qi="__reactContainer$"+Ks,rv="__reactEvents$"+Ks,UU="__reactListeners$"+Ks,WU="__reactHandles$"+Ks;function Ea(s){var u=s[pi];if(u)return u;for(var p=s.parentNode;p;){if(u=p[qi]||p[pi]){if(p=u.alternate,u.child!==null||p!==null&&p.child!==null)for(s=IA(s);s!==null;){if(p=s[pi])return p;s=IA(s)}return u}s=p,p=s.parentNode}return null}function bc(s){return s=s[pi]||s[qi],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function Gs(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(n(33))}function sh(s){return s[vc]||null}var iv=[],Ys=-1;function To(s){return{current:s}}function kt(s){0>Ys||(s.current=iv[Ys],iv[Ys]=null,Ys--)}function wt(s,u){Ys++,iv[Ys]=s.current,s.current=u}var jo={},Sn=To(jo),Un=To(!1),Pa=jo;function Xs(s,u){var p=s.type.contextTypes;if(!p)return jo;var b=s.stateNode;if(b&&b.__reactInternalMemoizedUnmaskedChildContext===u)return b.__reactInternalMemoizedMaskedChildContext;var _={},k;for(k in p)_[k]=u[k];return b&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=u,s.__reactInternalMemoizedMaskedChildContext=_),_}function Wn(s){return s=s.childContextTypes,s!=null}function lh(){kt(Un),kt(Sn)}function DA(s,u,p){if(Sn.current!==jo)throw Error(n(168));wt(Sn,u),wt(Un,p)}function LA(s,u,p){var b=s.stateNode;if(u=u.childContextTypes,typeof b.getChildContext!="function")return p;b=b.getChildContext();for(var _ in b)if(!(_ in u))throw Error(n(108,le(s)||"Unknown",_));return M({},p,b)}function uh(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||jo,Pa=Sn.current,wt(Sn,s),wt(Un,Un.current),!0}function $A(s,u,p){var b=s.stateNode;if(!b)throw Error(n(169));p?(s=LA(s,u,Pa),b.__reactInternalMemoizedMergedChildContext=s,kt(Un),kt(Sn),wt(Sn,s)):kt(Un),wt(Un,p)}var zi=null,ch=!1,ov=!1;function FA(s){zi===null?zi=[s]:zi.push(s)}function HU(s){ch=!0,FA(s)}function No(){if(!ov&&zi!==null){ov=!0;var s=0,u=mt;try{var p=zi;for(mt=1;s<p.length;s++){var b=p[s];do b=b(!0);while(b!==null)}zi=null,ch=!1}catch(_){throw zi!==null&&(zi=zi.slice(s+1)),qP(Ay,No),_}finally{mt=u,ov=!1}}return null}var Qs=[],Js=0,fh=null,dh=0,Ar=[],kr=0,Aa=null,Ui=1,Wi="";function ka(s,u){Qs[Js++]=dh,Qs[Js++]=fh,fh=s,dh=u}function BA(s,u,p){Ar[kr++]=Ui,Ar[kr++]=Wi,Ar[kr++]=Aa,Aa=s;var b=Ui;s=Wi;var _=32-Hr(b)-1;b&=~(1<<_),p+=1;var k=32-Hr(u)+_;if(30<k){var N=_-_%5;k=(b&(1<<N)-1).toString(32),b>>=N,_-=N,Ui=1<<32-Hr(u)+_|p<<_|b,Wi=k+s}else Ui=1<<k|p<<_|b,Wi=s}function av(s){s.return!==null&&(ka(s,1),BA(s,1,0))}function sv(s){for(;s===fh;)fh=Qs[--Js],Qs[Js]=null,dh=Qs[--Js],Qs[Js]=null;for(;s===Aa;)Aa=Ar[--kr],Ar[kr]=null,Wi=Ar[--kr],Ar[kr]=null,Ui=Ar[--kr],Ar[kr]=null}var cr=null,fr=null,Tt=!1,Kr=null;function qA(s,u){var p=Nr(5,null,null,0);p.elementType="DELETED",p.stateNode=u,p.return=s,u=s.deletions,u===null?(s.deletions=[p],s.flags|=16):u.push(p)}function zA(s,u){switch(s.tag){case 5:var p=s.type;return u=u.nodeType!==1||p.toLowerCase()!==u.nodeName.toLowerCase()?null:u,u!==null?(s.stateNode=u,cr=s,fr=Co(u.firstChild),!0):!1;case 6:return u=s.pendingProps===""||u.nodeType!==3?null:u,u!==null?(s.stateNode=u,cr=s,fr=null,!0):!1;case 13:return u=u.nodeType!==8?null:u,u!==null?(p=Aa!==null?{id:Ui,overflow:Wi}:null,s.memoizedState={dehydrated:u,treeContext:p,retryLane:1073741824},p=Nr(18,null,null,0),p.stateNode=u,p.return=s,s.child=p,cr=s,fr=null,!0):!1;default:return!1}}function lv(s){return(s.mode&1)!==0&&(s.flags&128)===0}function uv(s){if(Tt){var u=fr;if(u){var p=u;if(!zA(s,u)){if(lv(s))throw Error(n(418));u=Co(p.nextSibling);var b=cr;u&&zA(s,u)?qA(b,p):(s.flags=s.flags&-4097|2,Tt=!1,cr=s)}}else{if(lv(s))throw Error(n(418));s.flags=s.flags&-4097|2,Tt=!1,cr=s}}}function UA(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;cr=s}function hh(s){if(s!==cr)return!1;if(!Tt)return UA(s),Tt=!0,!1;var u;if((u=s.tag!==3)&&!(u=s.tag!==5)&&(u=s.type,u=u!=="head"&&u!=="body"&&!ev(s.type,s.memoizedProps)),u&&(u=fr)){if(lv(s))throw WA(),Error(n(418));for(;u;)qA(s,u),u=Co(u.nextSibling)}if(UA(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(n(317));e:{for(s=s.nextSibling,u=0;s;){if(s.nodeType===8){var p=s.data;if(p==="/$"){if(u===0){fr=Co(s.nextSibling);break e}u--}else p!=="$"&&p!=="$!"&&p!=="$?"||u++}s=s.nextSibling}fr=null}}else fr=cr?Co(s.stateNode.nextSibling):null;return!0}function WA(){for(var s=fr;s;)s=Co(s.nextSibling)}function Zs(){fr=cr=null,Tt=!1}function cv(s){Kr===null?Kr=[s]:Kr.push(s)}var VU=C.ReactCurrentBatchConfig;function xc(s,u,p){if(s=p.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(n(309));var b=p.stateNode}if(!b)throw Error(n(147,s));var _=b,k=""+s;return u!==null&&u.ref!==null&&typeof u.ref=="function"&&u.ref._stringRef===k?u.ref:(u=function(N){var U=_.refs;N===null?delete U[k]:U[k]=N},u._stringRef=k,u)}
vendor: 5,451 bytes, line 38
38if(typeof s!="string")throw Error(n(284));if(!p._owner)throw Error(n(290,s))}return s}function ph(s,u){throw s=Object.prototype.toString.call(u),Error(n(31,s==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":s))}function HA(s){var u=s._init;return u(s._payload)}function VA(s){function u(ee,Q){if(s){var te=ee.deletions;te===null?(ee.deletions=[Q],ee.flags|=16):te.push(Q)}}function p(ee,Q){if(!s)return null;for(;Q!==null;)u(ee,Q),Q=Q.sibling;return null}function b(ee,Q){for(ee=new Map;Q!==null;)Q.key!==null?ee.set(Q.key,Q):ee.set(Q.index,Q),Q=Q.sibling;return ee}function _(ee,Q){return ee=Bo(ee,Q),ee.index=0,ee.sibling=null,ee}function k(ee,Q,te){return ee.index=te,s?(te=ee.alternate,te!==null?(te=te.index,te<Q?(ee.flags|=2,Q):te):(ee.flags|=2,Q)):(ee.flags|=1048576,Q)}function N(ee){return s&&ee.alternate===null&&(ee.flags|=2),ee}function U(ee,Q,te,me){return Q===null||Q.tag!==6?(Q=tb(te,ee.mode,me),Q.return=ee,Q):(Q=_(Q,te),Q.return=ee,Q)}function G(ee,Q,te,me){var je=te.type;return je===j?fe(ee,Q,te.props.children,me,te.key):Q!==null&&(Q.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===Y&&HA(je)===Q.type)?(me=_(Q,te.props),me.ref=xc(ee,Q,te),me.return=ee,me):(me=$h(te.type,te.key,te.props,null,ee.mode,me),me.ref=xc(ee,Q,te),me.return=ee,me)}function ne(ee,Q,te,me){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==te.containerInfo||Q.stateNode.implementation!==te.implementation?(Q=nb(te,ee.mode,me),Q.return=ee,Q):(Q=_(Q,te.children||[]),Q.return=ee,Q)}function fe(ee,Q,te,me,je){return Q===null||Q.tag!==7?(Q=Da(te,ee.mode,me,je),Q.return=ee,Q):(Q=_(Q,te),Q.return=ee,Q)}function de(ee,Q,te){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return Q=tb(""+Q,ee.mode,te),Q.return=ee,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case O:return te=$h(Q.type,Q.key,Q.props,null,ee.mode,te),te.ref=xc(ee,null,Q),te.return=ee,te;case A:return Q=nb(Q,ee.mode,te),Q.return=ee,Q;case Y:var me=Q._init;return de(ee,me(Q._payload),te)}if(ar(Q)||Z(Q))return Q=Da(Q,ee.mode,te,null),Q.return=ee,Q;ph(ee,Q)}return null}function ce(ee,Q,te,me){var je=Q!==null?Q.key:null;if(typeof te=="string"&&te!==""||typeof te=="number")return je!==null?null:U(ee,Q,""+te,me);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case O:return te.key===je?G(ee,Q,te,me):null;case A:return te.key===je?ne(ee,Q,te,me):null;case Y:return je=te._init,ce(ee,Q,je(te._payload),me)}if(ar(te)||Z(te))return je!==null?null:fe(ee,Q,te,me,null);ph(ee,te)}return null}function _e(ee,Q,te,me,je){if(typeof me=="string"&&me!==""||typeof me=="number")return ee=ee.get(te)||null,U(Q,ee,""+me,je);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case O:return ee=ee.get(me.key===null?te:me.key)||null,G(Q,ee,me,je);case A:return ee=ee.get(me.key===null?te:me.key)||null,ne(Q,ee,me,je);case Y:var Re=me._init;return _e(ee,Q,te,Re(me._payload),je)}if(ar(me)||Z(me))return ee=ee.get(te)||null,fe(Q,ee,me,je,null);ph(Q,me)}return null}function Ae(ee,Q,te,me){for(var je=null,Re=null,Me=Q,Fe=Q=0,cn=null;Me!==null&&Fe<te.length;Fe++){Me.index>Fe?(cn=Me,Me=null):cn=Me.sibling;var nt=ce(ee,Me,te[Fe],me);if(nt===null){Me===null&&(Me=cn);break}s&&Me&&nt.alternate===null&&u(ee,Me),Q=k(nt,Q,Fe),Re===null?je=nt:Re.sibling=nt,Re=nt,Me=cn}if(Fe===te.length)return p(ee,Me),Tt&&ka(ee,Fe),je;if(Me===null){for(;Fe<te.length;Fe++)Me=de(ee,te[Fe],me),Me!==null&&(Q=k(Me,Q,Fe),Re===null?je=Me:Re.sibling=Me,Re=Me);return Tt&&ka(ee,Fe),je}for(Me=b(ee,Me);Fe<te.length;Fe++)cn=_e(Me,ee,Fe,te[Fe],me),cn!==null&&(s&&cn.alternate!==null&&Me.delete(cn.key===null?Fe:cn.key),Q=k(cn,Q,Fe),Re===null?je=cn:Re.sibling=cn,Re=cn);return s&&Me.forEach(function(qo){return u(ee,qo)}),Tt&&ka(ee,Fe),je}function Te(ee,Q,te,me){var je=Z(te);if(typeof je!="function")throw Error(n(150));if(te=je.call(te),te==null)throw Error(n(151));for(var Re=je=null,Me=Q,Fe=Q=0,cn=null,nt=te.next();Me!==null&&!nt.done;Fe++,nt=te.next()){Me.index>Fe?(cn=Me,Me=null):cn=Me.sibling;var qo=ce(ee,Me,nt.value,me);if(qo===null){Me===null&&(Me=cn);break}s&&Me&&qo.alternate===null&&u(ee,Me),Q=k(qo,Q,Fe),Re===null?je=qo:Re.sibling=qo,Re=qo,Me=cn}if(nt.done)return p(ee,Me),Tt&&ka(ee,Fe),je;if(Me===null){for(;!nt.done;Fe++,nt=te.next())nt=de(ee,nt.value,me),nt!==null&&(Q=k(nt,Q,Fe),Re===null?je=nt:Re.sibling=nt,Re=nt);return Tt&&ka(ee,Fe),je}for(Me=b(ee,Me);!nt.done;Fe++,nt=te.next())nt=_e(Me,ee,Fe,nt.value,me),nt!==null&&(s&&nt.alternate!==null&&Me.delete(nt.key===null?Fe:nt.key),Q=k(nt,Q,Fe),Re===null?je=nt:Re.sibling=nt,Re=nt);return s&&Me.forEach(function(E8){return u(ee,E8)}),Tt&&ka(ee,Fe),je}function qt(ee,Q,te,me){if(typeof te=="object"&&te!==null&&te.type===j&&te.key===null&&(te=te.props.children),typeof te=="object"&&te!==null){switch(te.$$typeof){case O:e:{for(var je=te.key,Re=Q;Re!==null;){if(Re.key===je){if(je=te.type,je===j){if(Re.tag===7){p(ee,Re.sibling),Q=_(Re,te.props.children),Q.return=ee,ee=Q;break e}}else if(Re.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===Y&&HA(je)===Re.type){p(ee,Re.sibling),Q=_(Re,te.props),Q.ref=xc(ee,Re,te),Q.return=ee,ee=Q;break e}p(ee,Re);break}else u(ee,Re);Re=Re.sibling}te.type===j?(Q=Da(te.props.children,ee.mode,me,te.key),Q.return=ee,ee=Q):(me=$h(te.type,te.key,te.props,null,ee.mode,me),me.ref=xc(ee,Q,te),me.return=ee,ee=me)}return N(ee);case A:e:{for(Re=te.key;Q!==null;){if(Q.key===Re)if(Q.tag===4&&Q.stateNode.containerInfo===te.containerInfo&&Q.stateNode.implementation===te.
vendor: 10,703 bytes, line 38
38implementation){p(ee,Q.sibling),Q=_(Q,te.children||[]),Q.return=ee,ee=Q;break e}else{p(ee,Q);break}else u(ee,Q);Q=Q.sibling}Q=nb(te,ee.mode,me),Q.return=ee,ee=Q}return N(ee);case Y:return Re=te._init,qt(ee,Q,Re(te._payload),me)}if(ar(te))return Ae(ee,Q,te,me);if(Z(te))return Te(ee,Q,te,me);ph(ee,te)}return typeof te=="string"&&te!==""||typeof te=="number"?(te=""+te,Q!==null&&Q.tag===6?(p(ee,Q.sibling),Q=_(Q,te),Q.return=ee,ee=Q):(p(ee,Q),Q=tb(te,ee.mode,me),Q.return=ee,ee=Q),N(ee)):p(ee,Q)}return qt}var el=VA(!0),KA=VA(!1),mh=To(null),gh=null,tl=null,fv=null;function dv(){fv=tl=gh=null}function hv(s){var u=mh.current;kt(mh),s._currentValue=u}function pv(s,u,p){for(;s!==null;){var b=s.alternate;if((s.childLanes&u)!==u?(s.childLanes|=u,b!==null&&(b.childLanes|=u)):b!==null&&(b.childLanes&u)!==u&&(b.childLanes|=u),s===p)break;s=s.return}}function nl(s,u){gh=s,fv=tl=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&u)!==0&&(Hn=!0),s.firstContext=null)}function Cr(s){var u=s._currentValue;if(fv!==s)if(s={context:s,memoizedValue:u,next:null},tl===null){if(gh===null)throw Error(n(308));tl=s,gh.dependencies={lanes:0,firstContext:s}}else tl=tl.next=s;return u}var Ca=null;function mv(s){Ca===null?Ca=[s]:Ca.push(s)}function GA(s,u,p,b){var _=u.interleaved;return _===null?(p.next=p,mv(u)):(p.next=_.next,_.next=p),u.interleaved=p,Hi(s,b)}function Hi(s,u){s.lanes|=u;var p=s.alternate;for(p!==null&&(p.lanes|=u),p=s,s=s.return;s!==null;)s.childLanes|=u,p=s.alternate,p!==null&&(p.childLanes|=u),p=s,s=s.return;return p.tag===3?p.stateNode:null}var Ro=!1;function gv(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function YA(s,u){s=s.updateQueue,u.updateQueue===s&&(u.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Vi(s,u){return{eventTime:s,lane:u,tag:0,payload:null,callback:null,next:null}}function Mo(s,u,p){var b=s.updateQueue;if(b===null)return null;if(b=b.shared,(et&2)!==0){var _=b.pending;return _===null?u.next=u:(u.next=_.next,_.next=u),b.pending=u,Hi(s,p)}return _=b.interleaved,_===null?(u.next=u,mv(b)):(u.next=_.next,_.next=u),b.interleaved=u,Hi(s,p)}function yh(s,u,p){if(u=u.updateQueue,u!==null&&(u=u.shared,(p&4194240)!==0)){var b=u.lanes;b&=s.pendingLanes,p|=b,u.lanes=p,Ty(s,p)}}function XA(s,u){var p=s.updateQueue,b=s.alternate;if(b!==null&&(b=b.updateQueue,p===b)){var _=null,k=null;if(p=p.firstBaseUpdate,p!==null){do{var N={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};k===null?_=k=N:k=k.next=N,p=p.next}while(p!==null);k===null?_=k=u:k=k.next=u}else _=k=u;p={baseState:b.baseState,firstBaseUpdate:_,lastBaseUpdate:k,shared:b.shared,effects:b.effects},s.updateQueue=p;return}s=p.lastBaseUpdate,s===null?p.firstBaseUpdate=u:s.next=u,p.lastBaseUpdate=u}function vh(s,u,p,b){var _=s.updateQueue;Ro=!1;var k=_.firstBaseUpdate,N=_.lastBaseUpdate,U=_.shared.pending;if(U!==null){_.shared.pending=null;var G=U,ne=G.next;G.next=null,N===null?k=ne:N.next=ne,N=G;var fe=s.alternate;fe!==null&&(fe=fe.updateQueue,U=fe.lastBaseUpdate,U!==N&&(U===null?fe.firstBaseUpdate=ne:U.next=ne,fe.lastBaseUpdate=G))}if(k!==null){var de=_.baseState;N=0,fe=ne=G=null,U=k;do{var ce=U.lane,_e=U.eventTime;if((b&ce)===ce){fe!==null&&(fe=fe.next={eventTime:_e,lane:0,tag:U.tag,payload:U.payload,callback:U.callback,next:null});e:{var Ae=s,Te=U;switch(ce=u,_e=p,Te.tag){case 1:if(Ae=Te.payload,typeof Ae=="function"){de=Ae.call(_e,de,ce);break e}de=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=Te.payload,ce=typeof Ae=="function"?Ae.call(_e,de,ce):Ae,ce==null)break e;de=M({},de,ce);break e;case 2:Ro=!0}}U.callback!==null&&U.lane!==0&&(s.flags|=64,ce=_.effects,ce===null?_.effects=[U]:ce.push(U))}else _e={eventTime:_e,lane:ce,tag:U.tag,payload:U.payload,callback:U.callback,next:null},fe===null?(ne=fe=_e,G=de):fe=fe.next=_e,N|=ce;if(U=U.next,U===null){if(U=_.shared.pending,U===null)break;ce=U,U=ce.next,ce.next=null,_.lastBaseUpdate=ce,_.shared.pending=null}}while(!0);if(fe===null&&(G=de),_.baseState=G,_.firstBaseUpdate=ne,_.lastBaseUpdate=fe,u=_.shared.interleaved,u!==null){_=u;do N|=_.lane,_=_.next;while(_!==u)}else k===null&&(_.shared.lanes=0);Na|=N,s.lanes=N,s.memoizedState=de}}function QA(s,u,p){if(s=u.effects,u.effects=null,s!==null)for(u=0;u<s.length;u++){var b=s[u],_=b.callback;if(_!==null){if(b.callback=null,b=p,typeof _!="function")throw Error(n(191,_));_.call(b)}}}var wc={},mi=To(wc),Sc=To(wc),_c=To(wc);function Ta(s){if(s===wc)throw Error(n(174));return s}function yv(s,u){switch(wt(_c,u),wt(Sc,s),wt(mi,wc),s=u.nodeType,s){case 9:case 11:u=(u=u.documentElement)?u.namespaceURI:ye(null,"");break;default:s=s===8?u.parentNode:u,u=s.namespaceURI||null,s=s.tagName,u=ye(u,s)}kt(mi),wt(mi,u)}function rl(){kt(mi),kt(Sc),kt(_c)}function JA(s){Ta(_c.current);var u=Ta(mi.current),p=ye(u,s.type);u!==p&&(wt(Sc,s),wt(mi,p))}function vv(s){Sc.current===s&&(kt(mi),kt(Sc))}var Mt=To(0);function bh(s){for(var u=s;u!==null;){if(u.tag===13){var p=u.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var bv=[];function xv(){for(var s=0;s<bv.length;s++)bv[s]._workInProgressVersionPrimary=null;bv.length=0}var xh=C.ReactCurrentDispatcher,wv=C.ReactCurrentBatchConfig,ja=0,It=null,Xt=null,ln=null,wh=!1,Oc=!1,Ec=0,KU=0;function _n(){throw Error(n(321))}function Sv(s,u){if(u===null)return!1;for(var p=0;p<u.length&&p<s.length;p++)if(!Vr(s[p],u[p]))return!1;return!0}function _v(s,u,p,b,_,k){if(ja=k,It=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,xh.current=s===null||s.memoizedState===null?QU:JU,s=p(b,_),Oc){k=0;do{if(Oc=!1,Ec=0,25<=k)throw Error(n(301));k+=1,ln=Xt=null,u.updateQueue=null,xh.current=ZU,s=p(b,_)}while(Oc)}if(xh.current=Oh,u=Xt!==null&&Xt.next!==null,ja=0,ln=Xt=It=null,wh=!1,u)throw Error(n(300));return s}function Ov(){var s=Ec!==0;return Ec=0,s}function gi(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ln===null?It.memoizedState=ln=s:ln=ln.next=s,ln}function Tr(){if(Xt===null){var s=It.alternate;s=s!==null?s.memoizedState:null}else s=Xt.next;var u=ln===null?It.memoizedState:ln.next;if(u!==null)ln=u,Xt=s;else{if(s===null)throw Error(n(310));Xt=s,s={memoizedState:Xt.memoizedState,baseState:Xt.baseState,baseQueue:Xt.baseQueue,queue:Xt.queue,next:null},ln===null?It.memoizedState=ln=s:ln=ln.next=s}return ln}function Pc(s,u){return typeof u=="function"?u(s):u}function Ev(s){var u=Tr(),p=u.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=s;var b=Xt,_=b.baseQueue,k=p.pending;if(k!==null){if(_!==null){var N=_.next;_.next=k.next,k.next=N}b.baseQueue=_=k,p.pending=null}if(_!==null){k=_.next,b=b.baseState;var U=N=null,G=null,ne=k;do{var fe=ne.lane;if((ja&fe)===fe)G!==null&&(G=G.next={lane:0,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null}),b=ne.hasEagerState?ne.eagerState:s(b,ne.action);else{var de={lane:fe,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null};G===null?(U=G=de,N=b):G=G.next=de,It.lanes|=fe,Na|=fe}ne=ne.next}while(ne!==null&&ne!==k);G===null?N=b:G.next=U,Vr(b,u.memoizedState)||(Hn=!0),u.memoizedState=b,u.baseState=N,u.baseQueue=G,p.lastRenderedState=b}if(s=p.interleaved,s!==null){_=s;do k=_.lane,It.lanes|=k,Na|=k,_=_.next;while(_!==s)}else _===null&&(p.lanes=0);return[u.memoizedState,p.dispatch]}function Pv(s){var u=Tr(),p=u.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=s;var b=p.dispatch,_=p.pending,k=u.memoizedState;if(_!==null){p.pending=null;var N=_=_.next;do k=s(k,N.action),N=N.next;while(N!==_);Vr(k,u.memoizedState)||(Hn=!0),u.memoizedState=k,u.baseQueue===null&&(u.baseState=k),p.lastRenderedState=k}return[k,b]}function ZA(){}function ek(s,u){var p=It,b=Tr(),_=u(),k=!Vr(b.memoizedState,_);if(k&&(b.memoizedState=_,Hn=!0),b=b.queue,Av(rk.bind(null,p,b,s),[s]),b.getSnapshot!==u||k||ln!==null&&ln.memoizedState.tag&1){if(p.flags|=2048,Ac(9,nk.bind(null,p,b,_,u),void 0,null),un===null)throw Error(n(349));(ja&30)!==0||tk(p,u,_)}return _}function tk(s,u,p){s.flags|=16384,s={getSnapshot:u,value:p},u=It.updateQueue,u===null?(u={lastEffect:null,stores:null},It.updateQueue=u,u.stores=[s]):(p=u.stores,p===null?u.stores=[s]:p.push(s))}function nk(s,u,p,b){u.value=p,u.getSnapshot=b,ik(u)&&ok(s)}function rk(s,u,p){return p(function(){ik(u)&&ok(s)})}function ik(s){var u=s.getSnapshot;s=s.value;try{var p=u();return!Vr(s,p)}catch{return!0}}function ok(s){var u=Hi(s,1);u!==null&&Qr(u,s,1,-1)}function ak(s){var u=gi();return typeof s=="function"&&(s=s()),u.memoizedState=u.baseState=s,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pc,lastRenderedState:s},u.queue=s,s=s.dispatch=XU.bind(null,It,s),[u.memoizedState,s]}function Ac(s,u,p,b){return s={tag:s,create:u,destroy:p,deps:b,next:null},u=It.updateQueue,u===null?(u={lastEffect:null,stores:null},It.updateQueue=u,u.lastEffect=s.next=s):(p=u.lastEffect,p===null?u.lastEffect=s.next=s:(b=p.next,p.next=s,s.next=b,u.lastEffect=s)),s}function sk(){return Tr().memoizedState}function Sh(s,u,p,b){var _=gi();It.flags|=s,_.memoizedState=Ac(1|u,p,void 0,b===void 0?null:b)}function _h(s,u,p,b){var _=Tr();b=b===void 0?null:b;var k=void 0;if(Xt!==null){var N=Xt.memoizedState;if(k=N.destroy,b!==null&&Sv(b,N.deps)){_.memoizedState=Ac(u,p,k,b);return}}It.flags|=s,_.memoizedState=Ac(1|u,p,k,b)}function lk(s,u){return Sh(8390656,8,s,u)}function Av(s,u){return _h(2048,8,s,u)}function uk(s,u){return _h(4,2,s,u)}function ck(s,u){return _h(4,4,s,u)}function fk(s,u){if(typeof u=="function")return s=s(),u(s),function(){u(null)};if(u!=null)return s=s(),u.current=s,function(){u.current=null}}function dk(s,u,p){return p=p!=null?p.concat([s]):null,_h(4,4,fk.bind(null,u,s),p)}function kv(){}function hk(s,u){var p=Tr();u=u===void 0?null:u;var b=p.memoizedState;return b!==null&&u!==null&&Sv(u,b[1])?b[0]:(p.memoizedState=[s,u],s)}function pk(s,u){var p=Tr();u=u===void 0?null:u;var b=p.memoizedState;return b!==null&&u!==null&&Sv(u,b[1])?b[0]:(s=s(),p.memoizedState=[s,u],s)}function mk(s,u,p){return(ja&21)===0?(s.baseState&&(s.baseState=!1,Hn=!0),s.memoizedState=p):(Vr(p,u)||(p=HP(),It.lanes|=p,Na|=p,s.baseState=!0),u)}function GU(s,u){var p=mt;mt=p!==0&&4>p?p:4,s(!0);var b=wv.transition;wv.transition={};
vendor: 1,147 bytes, line 38
38try{s(!1),u()}finally{mt=p,wv.transition=b}}function gk(){return Tr().memoizedState}function YU(s,u,p){var b=$o(s);if(p={lane:b,action:p,hasEagerState:!1,eagerState:null,next:null},yk(s))vk(u,p);else if(p=GA(s,u,p,b),p!==null){var _=Dn();Qr(p,s,b,_),bk(p,u,b)}}function XU(s,u,p){var b=$o(s),_={lane:b,action:p,hasEagerState:!1,eagerState:null,next:null};if(yk(s))vk(u,_);else{var k=s.alternate;if(s.lanes===0&&(k===null||k.lanes===0)&&(k=u.lastRenderedReducer,k!==null))try{var N=u.lastRenderedState,U=k(N,p);if(_.hasEagerState=!0,_.eagerState=U,Vr(U,N)){var G=u.interleaved;G===null?(_.next=_,mv(u)):(_.next=G.next,G.next=_),u.interleaved=_;return}}catch{}finally{}p=GA(s,u,_,b),p!==null&&(_=Dn(),Qr(p,s,b,_),bk(p,u,b))}}function yk(s){var u=s.alternate;return s===It||u!==null&&u===It}function vk(s,u){Oc=wh=!0;var p=s.pending;p===null?u.next=u:(u.next=p.next,p.next=u),s.pending=u}function bk(s,u,p){if((p&4194240)!==0){var b=u.lanes;b&=s.pendingLanes,p|=b,u.lanes=p,Ty(s,p)}}var Oh={readContext:Cr,useCallback:_n,useContext:_n,useEffect:_n,useImperativeHandle:_n,useInsertionEffect:_n,useLayoutEffect:_n,useMemo:_n,useReducer:_n,useRef:_n,use
vendor: 5,378 bytes, lines 38-40
38State:_n,useDebugValue:_n,useDeferredValue:_n,useTransition:_n,useMutableSource:_n,useSyncExternalStore:_n,useId:_n,unstable_isNewReconciler:!1},QU={readContext:Cr,useCallback:function(s,u){return gi().memoizedState=[s,u===void 0?null:u],s},useContext:Cr,useEffect:lk,useImperativeHandle:function(s,u,p){return p=p!=null?p.concat([s]):null,Sh(4194308,4,fk.bind(null,u,s),p)},useLayoutEffect:function(s,u){return Sh(4194308,4,s,u)},useInsertionEffect:function(s,u){return Sh(4,2,s,u)},useMemo:function(s,u){var p=gi();return u=u===void 0?null:u,s=s(),p.memoizedState=[s,u],s},useReducer:function(s,u,p){var b=gi();return u=p!==void 0?p(u):u,b.memoizedState=b.baseState=u,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:u},b.queue=s,s=s.dispatch=YU.bind(null,It,s),[b.memoizedState,s]},useRef:function(s){var u=gi();return s={current:s},u.memoizedState=s},useState:ak,useDebugValue:kv,useDeferredValue:function(s){return gi().memoizedState=s},useTransition:function(){var s=ak(!1),u=s[0];return s=GU.bind(null,s[1]),gi().memoizedState=s,[u,s]},useMutableSource:function(){},useSyncExternalStore:function(s,u,p){var b=It,_=gi();if(Tt){if(p===void 0)throw Error(n(407));p=p()}else{if(p=u(),un===null)throw Error(n(349));(ja&30)!==0||tk(b,u,p)}_.memoizedState=p;var k={value:p,getSnapshot:u};return _.queue=k,lk(rk.bind(null,b,k,s),[s]),b.flags|=2048,Ac(9,nk.bind(null,b,k,p,u),void 0,null),p},useId:function(){var s=gi(),u=un.identifierPrefix;if(Tt){var p=Wi,b=Ui;p=(b&~(1<<32-Hr(b)-1)).toString(32)+p,u=":"+u+"R"+p,p=Ec++,0<p&&(u+="H"+p.toString(32)),u+=":"}else p=KU++,u=":"+u+"r"+p.toString(32)+":";return s.memoizedState=u},unstable_isNewReconciler:!1},JU={readContext:Cr,useCallback:hk,useContext:Cr,useEffect:Av,useImperativeHandle:dk,useInsertionEffect:uk,useLayoutEffect:ck,useMemo:pk,useReducer:Ev,useRef:sk,useState:function(){return Ev(Pc)},useDebugValue:kv,useDeferredValue:function(s){var u=Tr();return mk(u,Xt.memoizedState,s)},useTransition:function(){var s=Ev(Pc)[0],u=Tr().memoizedState;return[s,u]},useMutableSource:ZA,useSyncExternalStore:ek,useId:gk,unstable_isNewReconciler:!1},ZU={readContext:Cr,useCallback:hk,useContext:Cr,useEffect:Av,useImperativeHandle:dk,useInsertionEffect:uk,useLayoutEffect:ck,useMemo:pk,useReducer:Pv,useRef:sk,useState:function(){return Pv(Pc)},useDebugValue:kv,useDeferredValue:function(s){var u=Tr();return Xt===null?u.memoizedState=s:mk(u,Xt.memoizedState,s)},useTransition:function(){var s=Pv(Pc)[0],u=Tr().memoizedState;return[s,u]},useMutableSource:ZA,useSyncExternalStore:ek,useId:gk,unstable_isNewReconciler:!1};function Gr(s,u){if(s&&s.defaultProps){u=M({},u),s=s.defaultProps;for(var p in s)u[p]===void 0&&(u[p]=s[p]);return u}return u}function Cv(s,u,p,b){u=s.memoizedState,p=p(b,u),p=p==null?u:M({},u,p),s.memoizedState=p,s.lanes===0&&(s.updateQueue.baseState=p)}var Eh={isMounted:function(s){return(s=s._reactInternals)?Oa(s)===s:!1},enqueueSetState:function(s,u,p){s=s._reactInternals;var b=Dn(),_=$o(s),k=Vi(b,_);k.payload=u,p!=null&&(k.callback=p),u=Mo(s,k,_),u!==null&&(Qr(u,s,_,b),yh(u,s,_))},enqueueReplaceState:function(s,u,p){s=s._reactInternals;var b=Dn(),_=$o(s),k=Vi(b,_);k.tag=1,k.payload=u,p!=null&&(k.callback=p),u=Mo(s,k,_),u!==null&&(Qr(u,s,_,b),yh(u,s,_))},enqueueForceUpdate:function(s,u){s=s._reactInternals;var p=Dn(),b=$o(s),_=Vi(p,b);_.tag=2,u!=null&&(_.callback=u),u=Mo(s,_,b),u!==null&&(Qr(u,s,b,p),yh(u,s,b))}};function xk(s,u,p,b,_,k,N){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(b,k,N):u.prototype&&u.prototype.isPureReactComponent?!hc(p,b)||!hc(_,k):!0}function wk(s,u,p){var b=!1,_=jo,k=u.contextType;return typeof k=="object"&&k!==null?k=Cr(k):(_=Wn(u)?Pa:Sn.current,b=u.contextTypes,k=(b=b!=null)?Xs(s,_):jo),u=new u(p,k),s.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Eh,s.stateNode=u,u._reactInternals=s,b&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=_,s.__reactInternalMemoizedMaskedChildContext=k),u}function Sk(s,u,p,b){s=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(p,b),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(p,b),u.state!==s&&Eh.enqueueReplaceState(u,u.state,null)}function Tv(s,u,p,b){var _=s.stateNode;_.props=p,_.state=s.memoizedState,_.refs={},gv(s);var k=u.contextType;typeof k=="object"&&k!==null?_.context=Cr(k):(k=Wn(u)?Pa:Sn.current,_.context=Xs(s,k)),_.state=s.memoizedState,k=u.getDerivedStateFromProps,typeof k=="function"&&(Cv(s,u,k,p),_.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(u=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),u!==_.state&&Eh.enqueueReplaceState(_,_.state,null),vh(s,p,_,b),_.state=s.memoizedState),typeof _.componentDidMount=="function"&&(s.flags|=4194308)}function il(s,u){try{var p="",b=u;do p+=xe(b),b=b.return;while(b);var _=p}catch(k){_=` 39Error generating stack: `+k.message+` 40`+k.stack}return{value:s,source:u,stack:_,digest:null}}function jv(s,u,p){return{value:s,source:null,stack:p??null,digest:u??null}}function Nv(s,u){try{console.error(u.value)}
vendor: 37,530 bytes, line 40
40catch(p){setTimeout(function(){throw p})}}var e8=typeof WeakMap=="function"?WeakMap:Map;function _k(s,u,p){p=Vi(-1,p),p.tag=3,p.payload={element:null};var b=u.value;return p.callback=function(){Nh||(Nh=!0,Kv=b),Nv(s,u)},p}function Ok(s,u,p){p=Vi(-1,p),p.tag=3;var b=s.type.getDerivedStateFromError;if(typeof b=="function"){var _=u.value;p.payload=function(){return b(_)},p.callback=function(){Nv(s,u)}}var k=s.stateNode;return k!==null&&typeof k.componentDidCatch=="function"&&(p.callback=function(){Nv(s,u),typeof b!="function"&&(Do===null?Do=new Set([this]):Do.add(this));var N=u.stack;this.componentDidCatch(u.value,{componentStack:N!==null?N:""})}),p}function Ek(s,u,p){var b=s.pingCache;if(b===null){b=s.pingCache=new e8;var _=new Set;b.set(u,_)}else _=b.get(u),_===void 0&&(_=new Set,b.set(u,_));_.has(p)||(_.add(p),s=p8.bind(null,s,u,p),u.then(s,s))}function Pk(s){do{var u;if((u=s.tag===13)&&(u=s.memoizedState,u=u!==null?u.dehydrated!==null:!0),u)return s;s=s.return}while(s!==null);return null}function Ak(s,u,p,b,_){return(s.mode&1)===0?(s===u?s.flags|=65536:(s.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(u=Vi(-1,1),u.tag=2,Mo(p,u,1))),p.lanes|=1),s):(s.flags|=65536,s.lanes=_,s)}var t8=C.ReactCurrentOwner,Hn=!1;function In(s,u,p,b){u.child=s===null?KA(u,null,p,b):el(u,s.child,p,b)}function kk(s,u,p,b,_){p=p.render;var k=u.ref;return nl(u,_),b=_v(s,u,p,b,k,_),p=Ov(),s!==null&&!Hn?(u.updateQueue=s.updateQueue,u.flags&=-2053,s.lanes&=~_,Ki(s,u,_)):(Tt&&p&&av(u),u.flags|=1,In(s,u,b,_),u.child)}function Ck(s,u,p,b,_){if(s===null){var k=p.type;return typeof k=="function"&&!eb(k)&&k.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(u.tag=15,u.type=k,Tk(s,u,k,b,_)):(s=$h(p.type,null,b,u,u.mode,_),s.ref=u.ref,s.return=u,u.child=s)}if(k=s.child,(s.lanes&_)===0){var N=k.memoizedProps;if(p=p.compare,p=p!==null?p:hc,p(N,b)&&s.ref===u.ref)return Ki(s,u,_)}return u.flags|=1,s=Bo(k,b),s.ref=u.ref,s.return=u,u.child=s}function Tk(s,u,p,b,_){if(s!==null){var k=s.memoizedProps;if(hc(k,b)&&s.ref===u.ref)if(Hn=!1,u.pendingProps=b=k,(s.lanes&_)!==0)(s.flags&131072)!==0&&(Hn=!0);else return u.lanes=s.lanes,Ki(s,u,_)}return Rv(s,u,p,b,_)}function jk(s,u,p){var b=u.pendingProps,_=b.children,k=s!==null?s.memoizedState:null;if(b.mode==="hidden")if((u.mode&1)===0)u.memoizedState={baseLanes:0,cachePool:null,transitions:null},wt(al,dr),dr|=p;else{if((p&1073741824)===0)return s=k!==null?k.baseLanes|p:p,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:s,cachePool:null,transitions:null},u.updateQueue=null,wt(al,dr),dr|=s,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},b=k!==null?k.baseLanes:p,wt(al,dr),dr|=b}else k!==null?(b=k.baseLanes|p,u.memoizedState=null):b=p,wt(al,dr),dr|=b;return In(s,u,_,p),u.child}function Nk(s,u){var p=u.ref;(s===null&&p!==null||s!==null&&s.ref!==p)&&(u.flags|=512,u.flags|=2097152)}function Rv(s,u,p,b,_){var k=Wn(p)?Pa:Sn.current;return k=Xs(u,k),nl(u,_),p=_v(s,u,p,b,k,_),b=Ov(),s!==null&&!Hn?(u.updateQueue=s.updateQueue,u.flags&=-2053,s.lanes&=~_,Ki(s,u,_)):(Tt&&b&&av(u),u.flags|=1,In(s,u,p,_),u.child)}function Rk(s,u,p,b,_){if(Wn(p)){var k=!0;uh(u)}else k=!1;if(nl(u,_),u.stateNode===null)Ah(s,u),wk(u,p,b),Tv(u,p,b,_),b=!0;else if(s===null){var N=u.stateNode,U=u.memoizedProps;N.props=U;var G=N.context,ne=p.contextType;typeof ne=="object"&&ne!==null?ne=Cr(ne):(ne=Wn(p)?Pa:Sn.current,ne=Xs(u,ne));var fe=p.getDerivedStateFromProps,de=typeof fe=="function"||typeof N.getSnapshotBeforeUpdate=="function";de||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(U!==b||G!==ne)&&Sk(u,N,b,ne),Ro=!1;var ce=u.memoizedState;N.state=ce,vh(u,b,N,_),G=u.memoizedState,U!==b||ce!==G||Un.current||Ro?(typeof fe=="function"&&(Cv(u,p,fe,b),G=u.memoizedState),(U=Ro||xk(u,p,U,b,ce,G,ne))?(de||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount()),typeof N.componentDidMount=="function"&&(u.flags|=4194308)):(typeof N.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=b,u.memoizedState=G),N.props=b,N.state=G,N.context=ne,b=U):(typeof N.componentDidMount=="function"&&(u.flags|=4194308),b=!1)}else{N=u.stateNode,YA(s,u),U=u.memoizedProps,ne=u.type===u.elementType?U:Gr(u.type,U),N.props=ne,de=u.pendingProps,ce=N.context,G=p.contextType,typeof G=="object"&&G!==null?G=Cr(G):(G=Wn(p)?Pa:Sn.current,G=Xs(u,G));var _e=p.getDerivedStateFromProps;(fe=typeof _e=="function"||typeof N.getSnapshotBeforeUpdate=="function")||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(U!==de||ce!==G)&&Sk(u,N,b,G),Ro=!1,ce=u.memoizedState,N.state=ce,vh(u,b,N,_);var Ae=u.memoizedState;U!==de||ce!==Ae||Un.current||Ro?(typeof _e=="function"&&(Cv(u,p,_e,b),Ae=u.memoizedState),(ne=Ro||xk(u,p,ne,b,ce,Ae,G)||!1)?(fe||typeof N.UNSAFE_componentWillUpdate!="function"&&typeof N.componentWillUpdate!="function"||(typeof N.componentWillUpdate=="function"&&N.componentWillUpdate(b,Ae,G),typeof N.UNSAFE_componentWillUpdate=="function"&&N.UNSAFE_componentWillUpdate(b,Ae,G)),typeof N.componentDidUpdate=="function"&&(u.flags|=4),typeof N.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof N.componentDidUpdate!="function"||U===s.memoizedProps&&ce===s.memoizedState||(u.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||U===s.memoizedProps&&ce===s.memoizedState||(u.flags|=1024),u.memoizedProps=b,u.memoizedState=Ae),N.props=b,N.state=Ae,N.context=G,b=ne):(typeof N.componentDidUpdate!="function"||U===s.memoizedProps&&ce===s.memoizedState||(u.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||U===s.memoizedProps&&ce===s.memoizedState||(u.flags|=1024),b=!1)}return Mv(s,u,p,b,k,_)}function Mv(s,u,p,b,_,k){Nk(s,u);var N=(u.flags&128)!==0;if(!b&&!N)return _&&$A(u,p,!1),Ki(s,u,k);b=u.stateNode,t8.current=u;var U=N&&typeof p.getDerivedStateFromError!="function"?null:b.render();return u.flags|=1,s!==null&&N?(u.child=el(u,s.child,null,k),u.child=el(u,null,U,k)):In(s,u,U,k),u.memoizedState=b.state,_&&$A(u,p,!0),u.child}function Mk(s){var u=s.stateNode;u.pendingContext?DA(s,u.pendingContext,u.pendingContext!==u.context):u.context&&DA(s,u.context,!1),yv(s,u.containerInfo)}function Ik(s,u,p,b,_){return Zs(),cv(_),u.flags|=256,In(s,u,p,b),u.child}var Iv={dehydrated:null,treeContext:null,retryLane:0};function Dv(s){return{baseLanes:s,cachePool:null,transitions:null}}function Dk(s,u,p){var b=u.pendingProps,_=Mt.current,k=!1,N=(u.flags&128)!==0,U;if((U=N)||(U=s!==null&&s.memoizedState===null?!1:(_&2)!==0),U?(k=!0,u.flags&=-129):(s===null||s.memoizedState!==null)&&(_|=1),wt(Mt,_&1),s===null)return uv(u),s=u.memoizedState,s!==null&&(s=s.dehydrated,s!==null)?((u.mode&1)===0?u.lanes=1:s.data==="$!"?u.lanes=8:u.lanes=1073741824,null):(N=b.children,s=b.fallback,k?(b=u.mode,k=u.child,N={mode:"hidden",children:N},(b&1)===0&&k!==null?(k.childLanes=0,k.pendingProps=N):k=Fh(N,b,0,null),s=Da(s,b,p,null),k.return=u,s.return=u,k.sibling=s,u.child=k,u.child.memoizedState=Dv(p),u.memoizedState=Iv,s):Lv(u,N));if(_=s.memoizedState,_!==null&&(U=_.dehydrated,U!==null))return n8(s,u,N,b,U,_,p);if(k){k=b.fallback,N=u.mode,_=s.child,U=_.sibling;var G={mode:"hidden",children:b.children};return(N&1)===0&&u.child!==_?(b=u.child,b.childLanes=0,b.pendingProps=G,u.deletions=null):(b=Bo(_,G),b.subtreeFlags=_.subtreeFlags&14680064),U!==null?k=Bo(U,k):(k=Da(k,N,p,null),k.flags|=2),k.return=u,b.return=u,b.sibling=k,u.child=b,b=k,k=u.child,N=s.child.memoizedState,N=N===null?Dv(p):{baseLanes:N.baseLanes|p,cachePool:null,transitions:N.transitions},k.memoizedState=N,k.childLanes=s.childLanes&~p,u.memoizedState=Iv,b}return k=s.child,s=k.sibling,b=Bo(k,{mode:"visible",children:b.children}),(u.mode&1)===0&&(b.lanes=p),b.return=u,b.sibling=null,s!==null&&(p=u.deletions,p===null?(u.deletions=[s],u.flags|=16):p.push(s)),u.child=b,u.memoizedState=null,b}function Lv(s,u){return u=Fh({mode:"visible",children:u},s.mode,0,null),u.return=s,s.child=u}function Ph(s,u,p,b){return b!==null&&cv(b),el(u,s.child,null,p),s=Lv(u,u.pendingProps.children),s.flags|=2,u.memoizedState=null,s}function n8(s,u,p,b,_,k,N){if(p)return u.flags&256?(u.flags&=-257,b=jv(Error(n(422))),Ph(s,u,N,b)):u.memoizedState!==null?(u.child=s.child,u.flags|=128,null):(k=b.fallback,_=u.mode,b=Fh({mode:"visible",children:b.children},_,0,null),k=Da(k,_,N,null),k.flags|=2,b.return=u,k.return=u,b.sibling=k,u.child=b,(u.mode&1)!==0&&el(u,s.child,null,N),u.child.memoizedState=Dv(N),u.memoizedState=Iv,k);if((u.mode&1)===0)return Ph(s,u,N,null);if(_.data==="$!"){if(b=_.nextSibling&&_.nextSibling.dataset,b)var U=b.dgst;return b=U,k=Error(n(419)),b=jv(k,b,void 0),Ph(s,u,N,b)}if(U=(N&s.childLanes)!==0,Hn||U){if(b=un,b!==null){switch(N&-N){case 4:_=2;break;case 16:_=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:_=32;break;case 536870912:_=268435456;break;default:_=0}_=(_&(b.suspendedLanes|N))!==0?0:_,_!==0&&_!==k.retryLane&&(k.retryLane=_,Hi(s,_),Qr(b,s,_,-1))}return Zv(),b=jv(Error(n(421))),Ph(s,u,N,b)}return _.data==="$?"?(u.flags|=128,u.child=s.child,u=m8.bind(null,s),_._reactRetry=u,null):(s=k.treeContext,fr=Co(_.nextSibling),cr=u,Tt=!0,Kr=null,s!==null&&(Ar[kr++]=Ui,Ar[kr++]=Wi,Ar[kr++]=Aa,Ui=s.id,Wi=s.overflow,Aa=u),u=Lv(u,b.children),u.flags|=4096,u)}function Lk(s,u,p){s.lanes|=u;var b=s.alternate;b!==null&&(b.lanes|=u),pv(s.return,u,p)}function $v(s,u,p,b,_){var k=s.memoizedState;k===null?s.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:b,tail:p,tailMode:_}:(k.isBackwards=u,k.rendering=null,k.renderingStartTime=0,k.last=b,k.tail=p,k.tailMode=_)}function $k(s,u,p){var b=u.pendingProps,_=b.revealOrder,k=b.tail;if(In(s,u,b.children,p),b=Mt.current,(b&2)!==0)b=b&1|2,u.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=u.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Lk(s,p,u);else if(s.tag===19)Lk(s,p,u);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===u)break e;for(;s.sibling===null;){if(s.return===null||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}b&=1}if(wt(Mt,b),(u.mode&1)===0)u.memoizedState=null;else switch(_){case"forwards":for(p=u.child,_=null;p!==null;)s=p.alternate,s!==null&&bh(s)===null&&(_=p),p=p.sibling;p=_,p===null?(_=u.child,u.child=null):(_=p.sibling,p.sibling=null),$v(u,!1,_,p,k);break;case"backwards":for(p=null,_=u.child,u.child=null;_!==null;){if(s=_.alternate,s!==null&&bh(s)===null){u.child=_;break}s=_.sibling,_.sibling=p,p=_,_=s}$v(u,!0,p,null,k);break;case"together":$v(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function Ah(s,u){(u.mode&1)===0&&s!==null&&(s.alternate=null,u.alternate=null,u.flags|=2)}function Ki(s,u,p){if(s!==null&&(u.dependencies=s.dependencies),Na|=u.lanes,(p&u.childLanes)===0)return null;if(s!==null&&u.child!==s.child)throw Error(n(153));if(u.child!==null){for(s=u.child,p=Bo(s,s.pendingProps),u.child=p,p.return=u;s.sibling!==null;)s=s.sibling,p=p.sibling=Bo(s,s.pendingProps),p.return=u;p.sibling=null}return u.child}function r8(s,u,p){switch(u.tag){case 3:Mk(u),Zs();break;case 5:JA(u);break;case 1:Wn(u.type)&&uh(u);break;case 4:yv(u,u.stateNode.containerInfo);break;case 10:var b=u.type._context,_=u.memoizedProps.value;wt(mh,b._currentValue),b._currentValue=_;break;case 13:if(b=u.memoizedState,b!==null)return b.dehydrated!==null?(wt(Mt,Mt.current&1),u.flags|=128,null):(p&u.child.childLanes)!==0?Dk(s,u,p):(wt(Mt,Mt.current&1),s=Ki(s,u,p),s!==null?s.sibling:null);wt(Mt,Mt.current&1);break;case 19:if(b=(p&u.childLanes)!==0,(s.flags&128)!==0){if(b)return $k(s,u,p);u.flags|=128}if(_=u.memoizedState,_!==null&&(_.rendering=null,_.tail=null,_.lastEffect=null),wt(Mt,Mt.current),b)break;return null;case 22:case 23:return u.lanes=0,jk(s,u,p)}return Ki(s,u,p)}var Fk,Fv,Bk,qk;Fk=function(s,u){for(var p=u.child;p!==null;){if(p.tag===5||p.tag===6)s.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===u)break;for(;p.sibling===null;){if(p.return===null||p.return===u)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},Fv=function(){},Bk=function(s,u,p,b){var _=s.memoizedProps;if(_!==b){s=u.stateNode,Ta(mi.current);var k=null;switch(p){case"input":_=De(s,_),b=De(s,b),k=[];break;case"select":_=M({},_,{value:void 0}),b=M({},b,{value:void 0}),k=[];break;case"textarea":_=sr(s,_),b=sr(s,b),k=[];break;default:typeof _.onClick!="function"&&typeof b.onClick=="function"&&(s.onclick=ah)}gn(p,b);var N;p=null;for(ne in _)if(!b.hasOwnProperty(ne)&&_.hasOwnProperty(ne)&&_[ne]!=null)if(ne==="style"){var U=_[ne];for(N in U)U.hasOwnProperty(N)&&(p||(p={}),p[N]="")}else ne!=="dangerouslySetInnerHTML"&&ne!=="children"&&ne!=="suppressContentEditableWarning"&&ne!=="suppressHydrationWarning"&&ne!=="autoFocus"&&(i.hasOwnProperty(ne)?k||(k=[]):(k=k||[]).push(ne,null));for(ne in b){var G=b[ne];if(U=_!=null?_[ne]:void 0,b.hasOwnProperty(ne)&&G!==U&&(G!=null||U!=null))if(ne==="style")if(U){for(N in U)!U.hasOwnProperty(N)||G&&G.hasOwnProperty(N)||(p||(p={}),p[N]="");for(N in G)G.hasOwnProperty(N)&&U[N]!==G[N]&&(p||(p={}),p[N]=G[N])}else p||(k||(k=[]),k.push(ne,p)),p=G;else ne==="dangerouslySetInnerHTML"?(G=G?G.__html:void 0,U=U?U.__html:void 0,G!=null&&U!==G&&(k=k||[]).push(ne,G)):ne==="children"?typeof G!="string"&&typeof G!="number"||(k=k||[]).push(ne,""+G):ne!=="suppressContentEditableWarning"&&ne!=="suppressHydrationWarning"&&(i.hasOwnProperty(ne)?(G!=null&&ne==="onScroll"&&At("scroll",s),k||U===G||(k=[])):(k=k||[]).push(ne,G))}p&&(k=k||[]).push("style",p);var ne=k;(u.updateQueue=ne)&&(u.flags|=4)}},qk=function(s,u,p,b){p!==b&&(u.flags|=4)};function kc(s,u){if(!Tt)switch(s.tailMode){case"hidden":u=s.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?s.tail=null:p.sibling=null;break;case"collapsed":p=s.tail;for(var b=null;p!==null;)p.alternate!==null&&(b=p),p=p.sibling;b===null?u||s.tail===null?s.tail=null:s.tail.sibling=null:b.sibling=null}}function On(s){var u=s.alternate!==null&&s.alternate.child===s.child,p=0,b=0;if(u)for(var _=s.child;_!==null;)p|=_.lanes|_.childLanes,b|=_.subtreeFlags&14680064,b|=_.flags&14680064,_.return=s,_=_.sibling;else for(_=s.child;_!==null;)p|=_.lanes|_.childLanes,b|=_.subtreeFlags,b|=_.flags,_.return=s,_=_.sibling;return s.subtreeFlags|=b,s.childLanes=p,u}function i8(s,u,p){var b=u.pendingProps;switch(sv(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return On(u),null;case 1:return Wn(u.type)&&lh(),On(u),null;case 3:return b=u.stateNode,rl(),kt(Un),kt(Sn),xv(),b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),(s===null||s.child===null)&&(hh(u)?u.flags|=4:s===null||s.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Kr!==null&&(Xv(Kr),Kr=null))),Fv(s,u),On(u),null;case 5:vv(u);var _=Ta(_c.current);if(p=u.type,s!==null&&u.stateNode!=null)Bk(s,u,p,b,_),s.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!b){if(u.stateNode===null)throw Error(n(166));return On(u),null}if(s=Ta(mi.current),hh(u)){b=u.stateNode,p=u.type;var k=u.memoizedProps;switch(b[pi]=u,b[vc]=k,s=(u.mode&1)!==0,p){case"dialog":At("cancel",b),At("close",b);break;case"iframe":case"object":case"embed":At("load",b);break;case"video":case"audio":for(_=0;_<mc.length;_++)At(mc[_],b);break;case"source":At("error",b);break;case"img":case"image":case"link":At("error",b),At("load",b);break;case"details":At("toggle",b);break;case"input":ot(b,k),At("invalid",b);break;case"select":b._wrapperState={wasMultiple:!!k.multiple},At("invalid",b);break;case"textarea":wo(b,k),At("invalid",b)}gn(p,k),_=null;for(var N in k)if(k.hasOwnProperty(N)){var U=k[N];N==="children"?typeof U=="string"?b.textContent!==U&&(k.suppressHydrationWarning!==!0&&oh(b.textContent,U,s),_=["children",U]):typeof U=="number"&&b.textContent!==""+U&&(k.suppressHydrationWarning!==!0&&oh(b.textContent,U,s),_=["children",""+U]):i.hasOwnProperty(N)&&U!=null&&N==="onScroll"&&At("scroll",b)}switch(p){case"input":be(b),Mn(b,k,!0);break;case"textarea":be(b),Sa(b);break;case"select":case"option":break;default:typeof k.onClick=="function"&&(b.onclick=ah)}b=_,u.updateQueue=b,b!==null&&(u.flags|=4)}else{N=_.nodeType===9?_:_.ownerDocument,s==="http://www.w3.org/1999/xhtml"&&(s=se(p)),s==="http://www.w3.org/1999/xhtml"?p==="script"?(s=N.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof b.is=="string"?s=N.createElement(p,{is:b.is}):(s=N.createElement(p),p==="select"&&(N=s,b.multiple?N.multiple=!0:b.size&&(N.size=b.size))):s=N.createElementNS(s,p),s[pi]=u,s[vc]=b,Fk(s,u,!1,!1),u.stateNode=s;e:{switch(N=di(p,b),p){case"dialog":At("cancel",s),At("close",s),_=b;break;case"iframe":case"object":case"embed":At("load",s),_=b;break;case"video":case"audio":for(_=0;_<mc.length;_++)At(mc[_],s);_=b;break;case"source":At("error",s),_=b;break;case"img":case"image":case"link":At("error",s),At("load",s),_=b;break;case"details":At("toggle",s),_=b;break;case"input":ot(s,b),_=De(s,b),At("invalid",s);break;case"option":_=b;break;case"select":s._wrapperState={wasMultiple:!!b.multiple},_=M({},b,{value:void 0}),At("invalid",s);break;case"textarea":wo(s,b),_=sr(s,b),At("invalid",s);break;default:_=b}gn(p,_),U=_;for(k in U)if(U.hasOwnProperty(k)){var G=U[k];k==="style"?So(s,G):k==="dangerouslySetInnerHTML"?(G=G?G.__html:void 0,G!=null&&Ye(s,G)):k==="children"?typeof G=="string"?(p!=="textarea"||G!=="")&&Ze(s,G):typeof G=="number"&&Ze(s,""+G):k!=="suppressContentEditableWarning"&&k!=="suppressHydrationWarning"&&k!=="autoFocus"&&(i.hasOwnProperty(k)?G!=null&&k==="onScroll"&&At("scroll",s):G!=null&&E(s,k,G,N))}switch(p){case"input":be(s),Mn(s,b,!1);break;case"textarea":be(s),Sa(s);break;case"option":b.value!=null&&s.setAttribute("value",""+ve(b.value));break;case"select":s.multiple=!!b.multiple,k=b.value,k!=null?wn(s,!!b.multiple,k,!1):b.defaultValue!=null&&wn(s,!!b.multiple,b.defaultValue,!0);break;default:typeof _.onClick=="function"&&(s.onclick=ah)}switch(p){case"button":case"input":case"select":case"textarea":b=!!b.autoFocus;break e;case"img":b=!0;break e;default:b=!1}}b&&(u.flags|=4)}u.ref!==null&&(u.flags|=512,u.flags|=2097152)}return On(u),null;case 6:if(s&&u.stateNode!=null)qk(s,u,s.memoizedProps,b);else{if(typeof b!="string"&&u.stateNode===null)throw Error(n(166));if(p=Ta(_c.current),Ta(mi.current),hh(u)){if(b=u.stateNode,p=u.memoizedProps,b[pi]=u,(k=b.nodeValue!==p)&&(s=cr,s!==null))switch(s.tag){case 3:oh(b.nodeValue,p,(s.mode&1)!==0);break;case 5:s.memoizedProps.suppressHydrationWarning!==!0&&oh(b.nodeValue,p,(s.mode&1)!==0)}k&&(u.flags|=4)}else b=(p.nodeType===9?p:p.ownerDocument).createTextNode(b),b[pi]=u,u.stateNode=b}return On(u),null;case 13:if(kt(Mt),b=u.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(Tt&&fr!==null&&(u.mode&1)!==0&&(u.flags&128)===0)WA(),Zs(),u.flags|=98560,k=!1;else if(k=hh(u),b!==null&&b.dehydrated!==null){if(s===null){if(!k)throw Error(n(318));if(k=u.memoizedState,k=k!==null?k.dehydrated:null,!k)throw Error(n(317));k[pi]=u}else Zs(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;On(u),k=!1}else Kr!==null&&(Xv(Kr),Kr=null),k=!0;if(!k)return u.flags&65536?u:null}return(u.flags&128)!==0?(u.lanes=p,u):(b=b!==null,b!==(s!==null&&s.memoizedState!==null)&&b&&(u.child.flags|=8192,(u.mode&1)!==0&&(s===null||(Mt.current&1)!==0?Qt===0&&(Qt=3):Zv())),u.updateQueue!==null&&(u.flags|=4),On(u),null);case 4:return rl(),Fv(s,u),s===null&&gc(u.stateNode.containerInfo),On(u),null;case 10:return hv(u.type._context),On(u),null;case 17:return Wn(u.type)&&lh(),On(u),null;case 19:if(kt(Mt),k=u.memoizedState,k===null)return On(u),null;if(b=(u.flags&128)!==0,N=k.rendering,N===null)if(b)kc(k,!1);else{if(Qt!==0||s!==null&&(s.flags&128)!==0)for(s=u.child;s!==null;){if(N=bh(s),N!==null){for(u.flags|=128,kc(k,!1),b=N.updateQueue,b!==null&&(u.updateQueue=b,u.flags|=4),u.subtreeFlags=0,b=p,p=u.child;p!==null;)k=p,s=b,k.flags&=14680066,N=k.alternate,N===null?(k.childLanes=0,k.lanes=s,k.child=null,k.subtreeFlags=0,k.memoizedProps=null,k.memoizedState=null,k.updateQueue=null,k.dependencies=null,k.stateNode=null):(k.childLanes=N.childLanes,k.lanes=N.lanes,k.child=N.child,k.subtreeFlags=0,k.deletions=null,k.memoizedProps=N.memoizedProps,k.memoizedState=N.memoizedState,k.updateQueue=N.updateQueue,k.type=N.type,s=N.dependencies,k.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),p=p.sibling;return wt(Mt,Mt.current&1|2),u.child}s=s.sibling}k.tail!==null&&Bt()>sl&&(u.flags|=128,b=!0,kc(k,!1),u.lanes=4194304)}else{if(!b)if(s=bh(N),s!==null){if(u.flags|=128,b=!0,p=s.updateQueue,p!==null&&(u.updateQueue=p,u.flags|=4),kc(k,!0),k.tail===null&&k.tailMode==="hidden"&&!N.alternate&&!Tt)return On(u),null}else 2*Bt()-k.renderingStartTime>sl&&p!==1073741824&&(u.flags|=128,b=!0,kc(k,!1),u.lanes=4194304);k.isBackwards?(N.sibling=u.child,u.child=N):(p=k.last,p!==null?p.sibling=N:u.child=N,k.last=N)}return k.tail!==null?(u=k.tail,k.rendering=u,k.tail=u.sibling,k.renderingStartTime=Bt(),u.sibling=null,p=Mt.current,wt(Mt,b?p&1|2:p&1),u):(On(u),null);case 22:case 23:return Jv(),b=u.memoizedState!==null,s!==null&&s.memoizedState!==null!==b&&(u.flags|=8192),b&&(u.mode&1)!==0?(dr&1073741824)!==0&&(On(u),u.subtreeFlags&6&&(u.flags|=8192)):On(u),null;case 24:return null;case 25:return null}throw Error(n(156,u.tag))}function o8(s,u){switch(sv(u),u.tag){case 1:return Wn(u.type)&&lh(),s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 3:return rl(),kt(Un),kt(Sn),xv(),s=u.flags,(s&65536)!==0&&(s&128)===0?(u.flags=s&-65537|128,u):null;case 5:return vv(u),null;case 13:if(kt(Mt),s=u.memoizedState,s!==null&&s.dehydrated!==null){if(u.alternate===null)throw Error(n(340));Zs()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 19:return kt(Mt),null;case 4:return rl(),null;case 10:return hv(u.type._context),null;case 22:case 23:return Jv(),null;case 24:return null;default:return null}}var kh=!1,En=!1,a8=typeof WeakSet=="function"?WeakSet:Set,Oe=null;function ol(s,u){var p=s.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(b){Lt(s,u,b)}else p.current=null}function Bv(s,u,p){try{p()}catch(b){Lt(s,u,b)}}var zk=!1;function s8(s,u){if(Jy=Gd,s=xA(),Wy(s)){if("selectionStart"in s)var p={start:s.selectionStart,end:s.selectionEnd};else e:{p=(p=s.ownerDocument)&&p.defaultView||window;var b=p.getSelection&&p.getSelection();if(b&&b.rangeCount!==0){p=b.anchorNode;var _=b.anchorOffset,k=b.focusNode;b=b.focusOffset;try{p.nodeType,k.nodeType}catch{p=null;break e}var N=0,U=-1,G=-1,ne=0,fe=0,de=s,ce=null;t:for(;;){for(var _e;de!==p||_!==0&&de.nodeType!==3||(U=N+_),de!==k||b!==0&&de.nodeType!==3||(G=N+b),de.nodeType===3&&(N+=de.nodeValue.length),(_e=de.firstChild)!==null;)ce=de,de=_e;for(;;){if(de===s)break t;if(ce===p&&++ne===_&&(U=N),ce===k&&++fe===b&&(G=N),(_e=de.nextSibling)!==null)break;de=ce,ce=de.parentNode}de=_e}p=U===-1||G===-1?null:{start:U,end:G}}else p=null}p=p||{start:0,end:0}}else p=null;for(Zy={focusedElem:s,selectionRange:p},Gd=!1,Oe=u;Oe!==null;)if(u=Oe,s=u.child,(u.subtreeFlags&1028)!==0&&s!==null)s.return=u,Oe=s;else for(;Oe!==null;){u=Oe;try{var Ae=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(Ae!==null){var Te=Ae.memoizedProps,qt=Ae.memoizedState,ee=u.stateNode,Q=ee.getSnapshotBeforeUpdate(u.elementType===u.type?Te:Gr(u.type,Te),qt);ee.__reactInternalSnapshotBeforeUpdate=Q}break;case 3:var te=u.stateNode.containerInfo;te.nodeType===1?te.textContent="":te.nodeType===9&&te.documentElement&&te.removeChild(te.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(me){Lt(u,u.return,me)}if(s=u.sibling,s!==null){s.return=u.return,Oe=s;break}Oe=u.return}return Ae=zk,zk=!1,Ae}function Cc(s,u,p){var b=u.updateQueue;if(b=b!==null?b.lastEffect:null,b!==null){var _=b=b.next;do{if((_.tag&s)===s){var k=_.destroy;_.destroy=void 0,k!==void 0&&Bv(u,p,k)}_=_.next}while(_!==b)}}function Ch(s,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var p=u=u.next;do{if((p.tag&s)===s){var b=p.create;p.destroy=b()}p=p.next}while(p!==u)}}function qv(s){var u=s.ref;if(u!==null){var p=s.stateNode;switch(s.tag){case 5:s=p;break;default:s=p}typeof u=="function"?u(s):u.current=s}}function Uk(s){var u=s.alternate;u!==null&&(s.alternate=null,Uk(u)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(u=s.stateNode,u!==null&&(delete u[pi],delete u[vc],delete u[rv],delete u[UU],delete u[WU])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function Wk(s){return s.tag===5||s.tag===3||s.tag===4}function Hk(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||Wk(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function zv(s,u,p){var b=s.tag;if(b===5||b===6)s=s.stateNode,u?p.nodeType===8?p.parentNode.insertBefore(s,u):p.insertBefore(s,u):(p.nodeType===8?(u=p.parentNode,u.insertBefore(s,p)):(u=p,u.appendChild(s)),p=p._reactRootContainer,p!=null||u.onclick!==null||(u.onclick=ah));else if(b!==4&&(s=s.child,s!==null))for(zv(s,u,p),s=s.sibling;s!==null;)zv(s,u,p),s=s.sibling}function Uv(s,u,p){var b=s.tag;if(b===5||b===6)s=s.stateNode,u?p.insertBefore(s,u):p.appendChild(s);else if(b!==4&&(s=s.child,s!==null))for(Uv(s,u,p),s=s.sibling;s!==null;)Uv(s,u,p),s=s.sibling}var yn=null,Yr=!1;function Io(s,u,p){for(p=p.child;p!==null;)Vk(s,u,p),p=p.sibling}function Vk(s,u,p){if(hi&&typeof hi.onCommitFiberUnmount=="function")try{hi.onCommitFiberUnmount(zd,p)}catch{}switch(p.tag){case 5:En||ol(p,u);case 6:var b=yn,_=Yr;yn=null,Io(s,u,p),yn=b,Yr=_,yn!==null&&(Yr?(s=yn,p=p.stateNode,s.nodeType===8?s.parentNode.removeChild(p):s.removeChild(p)):yn.removeChild(p.stateNode));break;case 18:yn!==null&&(Yr?(s=yn,p=p.stateNode,s.nodeType===8?nv(s.parentNode,p):s.nodeType===1&&nv(s,p),sc(s)):nv(yn,p.stateNode));break;case 4:b=yn,_=Yr,yn=p.stateNode.containerInfo,Yr=!0,Io(s,u,p),yn=b,Yr=_;break;case 0:case 11:case 14:case 15:if(!En&&(b=p.updateQueue,b!==null&&(b=b.lastEffect,b!==null))){_=b=b.next;do{var k=_,N=k.destroy;k=k.tag,N!==void 0&&((k&2)!==0||(k&4)!==0)&&Bv(p,u,N),_=_.next}while(_!==b)}Io(s,u,p);break;case 1:if(!En&&(ol(p,u),b=p.stateNode,typeof b.componentWillUnmount=="function"))try{b.props=p.memoizedProps,b.state=p.memoizedState,b.componentWillUnmount()}catch(U){Lt(p,u,U)}Io(s,u,p);break;case 21:Io(s,u,p);break;case 22:p.mode&1?(En=(b=En)||p.memoizedState!==null,Io(s,u,p),En=b):Io(s,u,p);break;default:Io(s,u,p)}}function Kk(s){var u=s.updateQueue;if(u!==null){s.updateQueue=null;var p=s.stateNode;p===null&&(p=s.stateNode=new a8),u.forEach(function(b){var _=g8.bind(null,s,b);p.has(b)||(p.add(b),b.then(_,_))})}}function Xr(s,u){var p=u.deletions;if(p!==null)for(var b=0;b<p.length;b++){var _=p[b];try{var k=s,N=u,U=N;e:for(;U!==null;){switch(U.tag){case 5:yn=U.stateNode,Yr=!1;break e;case 3:yn=U.stateNode.containerInfo,Yr=!0;break e;case 4:yn=U.stateNode.containerInfo,Yr=!0;break e}U=U.return}if(yn===null)throw Error(n(160));Vk(k,N,_),yn=null,Yr=!1;var G=_.alternate;G!==null&&(G.return=null),_.return=null}catch(ne){Lt(_,u,ne)}}if(u.subtreeFlags&12854)for(u=u.child;u!==null;)Gk(u,s),u=u.sibling}function Gk(s,u){var p=s.alternate,b=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:if(Xr(u,s),yi(s),b&4){try{Cc(3,s,s.return),Ch(3,s)}catch(Te){Lt(s,s.return,Te)}try{Cc(5,s,s.return)}catch(Te){Lt(s,s.return,Te)}}break;case 1:Xr(u,s),yi(s),b&512&&p!==null&&ol(p,p.return);break;case 5:if(Xr(u,s),yi(s),b&512&&p!==null&&ol(p,p.return),s.flags&32){var _=s.stateNode;try{Ze(_,"")}catch(Te){Lt(s,s.return,Te)}}if(b&4&&(_=s.stateNode,_!=null)){var k=s.memoizedProps,N=p!==null?p.memoizedProps:k,U=s.type,G=s.updateQueue;if(s.updateQueue=null,G!==null)try{U==="input"&&k.type==="radio"&&k.name!=null&&at(_,k),di(U,N);var ne=di(U,k);for(N=0;N<G.length;N+=2){var fe=G[N],de=G[N+1];fe==="style"?So(_,de):fe==="dangerouslySetInnerHTML"?Ye(_,de):fe==="children"?Ze(_,de):E(_,fe,de,ne)}switch(U){case"input":bt(_,k);break;case"textarea":wa(_,k);break;case"select":var ce=_._wrapperState.wasMultiple;_._wrapperState.wasMultiple=!!k.multiple;var _e=k.value;_e!=null?wn(_,!!k.multiple,_e,!1):ce!==!!k.multiple&&(k.defaultValue!=null?wn(_,!!k.multiple,k.defaultValue,!0):wn(_,!!k.multiple,k.multiple?[]:"",!1))}_[vc]=k}catch(Te){Lt(s,s.return,Te)}}break;case 6:if(Xr(u,s),yi(s),b&4){if(s.stateNode===null)throw Error(n(162));_=s.stateNode,k=s.memoizedProps;try{_.nodeValue=k}catch(Te){Lt(s,s.return,Te)}}break;case 3:if(Xr(u,s),yi(s),b&4&&p!==null&&p.memoizedState.isDehydrated)try{sc(u.containerInfo)}catch(Te){Lt(s,s.return,Te)}break;case 4:Xr(u,s),yi(s);break;case 13:Xr(u,s),yi(s),_=s.child,_.flags&8192&&(k=_.memoizedState!==null,_.stateNode.isHidden=k,!k||_.alternate!==null&&_.alternate.memoizedState!==null||(Vv=Bt())),b&4&&Kk(s);break;case 22:if(fe=p!==null&&p.memoizedState!==null,s.mode&1?(En=(ne=En)||fe,Xr(u,s),En=ne):Xr(u,s),yi(s),b&8192){if(ne=s.memoizedState!==null,(s.stateNode.isHidden=ne)&&!fe&&(s.mode&1)!==0)for(Oe=s,fe=s.child;fe!==null;){for(de=Oe=fe;Oe!==null;){switch(ce=Oe,_e=ce.child,ce.tag){case 0:case 11:case 14:case 15:Cc(4,ce,ce.return);break;case 1:ol(ce,ce.return);var Ae=ce.stateNode;if(typeof Ae.componentWillUnmount=="function"){b=ce,p=ce.return;try{u=b,Ae.props=u.memoizedProps,Ae.state=u.memoizedState,Ae.componentWillUnmount()}catch(Te){Lt(b,p,Te)}}break;case 5:ol(ce,ce.return);break;case 22:if(ce.memoizedState!==null){Qk(de);continue}}_e!==null?(_e.return=ce,Oe=_e):Qk(de)}fe=fe.sibling}e:for(fe=null,de=s;;){if(de.tag===5){if(fe===null){fe=de;try{_=de.stateNode,ne?(k=_.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none"):(U=de.stateNode,G=de.memoizedProps.style,N=G!=null&&G.hasOwnProperty("display")?G.display:null,U.style.display=Pr("display",N))}catch(Te){Lt(s,s.return,Te)}}}else if(de.tag===6){if(fe===null)try{de.stateNode.nodeValue=ne?"":de.memoizedProps}catch(Te){Lt(s,s.return,Te)}}else if((de.tag!==22&&de.tag!==23||de.memoizedState===null||de===s)&&de.child!==null){de.child.return=de,de=de.child;continue}if(de===s)break e;for(;de.sibling===null;){if(de.return===null||de.return===s)break e;fe===de&&(fe=null),de=de.return}fe===de&&(fe=null),de.sibling.return=de.return,de=de.sibling}}break;case 19:Xr(u,s),yi(s),b&4&&Kk(s);break;case 21:break;default:Xr(u,s),yi(s)}}function yi(s){var u=s.flags;if(u&2){try{e:{for(var p=s.return;p!==null;){if(Wk(p)){var b=p;break e}p=p.return}throw Error(n(160))}switch(b.tag){case 5:var _=b.stateNode;b.flags&32&&(Ze(_,""),b.flags&=-33);var k=Hk(s);Uv(s,k,_);break;case 3:case 4:var N=b.stateNode.containerInfo,U=Hk(s);zv(s,U,N);break;default:throw Error(n(161))}}catch(G){Lt(s,s.return,G)}s.flags&=-3}u&4096&&(s.flags&=-4097)}function l8(s,u,p){Oe=s,Yk(s)}function Yk(s,u,p){for(var b=(s.mode&1)!==0;Oe!==null;){var _=Oe,k=_.child;if(_.tag===22&&b){var N=_.memoizedState!==null||kh;if(!N){var U=_.alternate,G=U!==null&&U.memoizedState!==null||En;U=kh;var ne=En;if(kh=N,(En=G)&&!ne)for(Oe=_;Oe!==null;)N=Oe,G=N.child,N.tag===22&&N.memoizedState!==null?Jk(_):G!==null?(G.return=N,Oe=G):Jk(_);for(;k!==null;)Oe=k,Yk(k),k=k.sibling;Oe=_,kh=U,En=ne}Xk(s)}else(_.subtreeFlags&8772)!==0&&k!==null?(k.return=_,Oe=k):Xk(s)}}function Xk(s){for(;Oe!==null;){var u=Oe;if((u.flags&8772)!==0){var p=u.alternate;try{if((u.flags&8772)!==0)switch(u.tag){case 0:case 11:case 15:En||Ch(5,u);break;case 1:var b=u.stateNode;if(u.flags&4&&!En)if(p===null)b.componentDidMount();else{var _=u.elementType===u.type?p.memoizedProps:Gr(u.type,p.memoizedProps);b.componentDidUpdate(_,p.memoizedState,b.__reactInternalSnapshotBeforeUpdate)}var k=u.updateQueue;k!==null&&QA(u,k,b);break;case 3:var N=u.updateQueue;if(N!==null){if(p=null,u.child!==null)switch(u.child.tag){case 5:p=u.child.stateNode;break;case 1:p=u.child.stateNode}QA(u,N,p)}break;case 5:var U=u.stateNode;if(p===null&&u.flags&4){p=U;var G=u.memoizedProps;switch(u.type){case"button":case"input":case"select":case"textarea":G.autoFocus&&p.focus();break;case"img":G.src&&(p.src=G.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(u.memoizedState===null){var ne=u.alternate;if(ne!==null){var fe=ne.memoizedState;if(fe!==null){var de=fe.dehydrated;de!==null&&sc(de)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}En||u.flags&512&&qv(u)}catch(ce){Lt(u,u.return,ce)}}if(u===s){Oe=null;break}if(p=u.sibling,p!==null){p.return=u.return,Oe=p;break}Oe=u.return}}function Qk(s){for(;Oe!==null;){var u=Oe;if(u===s){Oe=null;break}var p=u.sibling;if(p!==null){p.return=u.return,Oe=p;break}Oe=u.return}}function Jk(s){for(;Oe!==null;){var u=Oe;try{switch(u.tag){case 0:case 11:case 15:var p=u.return;try{Ch(4,u)}catch(G){Lt(u,p,G)}break;case 1:var b=u.stateNode;if(typeof b.componentDidMount=="function"){var _=u.return;try{b.componentDidMount()}catch(G){Lt(u,_,G)}}var k=u.return;try{qv(u)}catch(G){Lt(u,k,G)}break;case 5:var N=u.return;try{qv(u)}catch(G){Lt(u,N,G)}}}catch(G){Lt(u,u.return,G)}if(u===s){Oe=null;break}var U=u.sibling;if(U!==null){U.return=u.return,Oe=U;break}Oe=u.return}}var u8=Math.ceil,Th=C.ReactCurrentDispatcher,Wv=C.ReactCurrentOwner,jr=C.ReactCurrentBatchConfig,et=0,un=null,Ut=null,vn=0,dr=0,al=To(0),Qt=0,Tc=null,Na=0,jh=0,Hv=0,jc=null,Vn=null,Vv=0,sl=1/0,Gi=null,Nh=!1,Kv=null,Do=null,Rh=!1,Lo=null,Mh=0,Nc=0,Gv=null,Ih=-1,Dh=0;function Dn(){return(et&6)!==0?Bt():Ih!==-1?Ih:Ih=Bt()}function $o(s){return(s.mode&1)===0?1:(et&2)!==0&&vn!==0?vn&-vn:VU.transition!==null?(Dh===0&&(Dh=HP()),Dh):(s=mt,s!==0||(s=window.event,s=s===void 0?16:eA(s.type)),s)}function Qr(s,u,p,b){if(50<Nc)throw Nc=0,Gv=null,Error(n(185));nc(s,p,b),((et&2)===0||s!==un)&&(s===un&&((et&2)===0&&(jh|=p),Qt===4&&Fo(s,vn)),Kn(s,b),p===1&&et===0&&(u.mode&1)===0&&(sl=Bt()+500,ch&&No()))}function Kn(s,u){var p=s.callbackNode;V5(s,u);var b=Hd(s,s===un?vn:0);if(b===0)p!==null&&zP(p),s.callbackNode=null,s.callbackPriority=0;else if(u=b&-b,s.callbackPriority!==u){if(p!=null&&zP(p),u===1)s.tag===0?HU(eC.bind(null,s)):FA(eC.bind(null,s)),qU(function(){(et&6)===0&&No()}),p=null;else{switch(VP(b)){case 1:p=Ay;break;case 4:p=UP;break;case 16:p=qd;break;case 536870912:p=WP;break;default:p=qd}p=lC(p,Zk.bind(null,s))}s.callbackPriority=u,s.callbackNode=p}}function Zk(s,u){if(Ih=-1,Dh=0,(et&6)!==0)throw Error(n(327));var p=s.callbackNode;if(ll()&&s.callbackNode!==p)return null;var b=Hd(s,s===un?vn:0);if(b===0)return null;if((b&30)!==0||(b&s.expiredLanes)!==0||u)u=Lh(s,b);else{u=b;var _=et;et|=2;var k=nC();(un!==s||vn!==u)&&(Gi=null,sl=Bt()+500,Ma(s,u));do try{d8();break}catch(U){tC(s,U)}while(!0);dv(),Th.current=k,et=_,Ut!==null?u=0:(un=null,vn=0,u=Qt)}if(u!==0){if(u===2&&(_=ky(s),_!==0&&(b=_,u=Yv(s,_))),u===1)throw p=Tc,Ma(s,0),Fo(s,b),Kn(s,Bt()),p;if(u===6)Fo(s,b);else{if(_=s.current.alternate,(b&30)===0&&!c8(_)&&(u=Lh(s,b),u===2&&(k=ky(s),k!==0&&(b=k,u=Yv(s,k))),u===1))throw p=Tc,Ma(s,0),Fo(s,b),Kn(s,Bt()),p;switch(s.finishedWork=_,s.finishedLanes=b,u){case 0:case 1:throw Error(n(345));case 2:Ia(s,Vn,Gi);break;case 3:if(Fo(s,b),(b&130023424)===b&&(u=Vv+500-Bt(),10<u)){if(Hd(s,0)!==0)break;if(_=s.suspendedLanes,(_&b)!==b){Dn(),s.pingedLanes|=s.suspendedLanes&_;break}s.timeoutHandle=tv(Ia.bind(null,s,Vn,Gi),u);break}Ia(s,Vn,Gi);break;case 4:if(Fo(s,b),(b&4194240)===b)break;for(u=s.eventTimes,_=-1;0<b;){var N=31-Hr(b);k=1<<N,N=u[N],N>_&&(_=N),b&=~k}if(b=_,b=Bt()-b,b=(120>b?120:480>b?480:1080>b?1080:1920>b?1920:3e3>b?3e3:4320>b?4320:1960*u8(b/1960))-b,10<b){s.timeoutHandle=tv(Ia.bind(null,s,Vn,Gi),b);break}Ia(s,Vn,Gi);break;case 5:Ia(s,Vn,Gi);break;default:throw Error(n(329))}}}return Kn(s,Bt()),s.callbackNode===p?Zk.bind(null,s):null}function Yv(s,u){var p=jc;return s.current.memoizedState.isDehydrated&&(Ma(s,u).flags|=256),s=Lh(s,u),s!==2&&(u=Vn,Vn=p,u!==null&&Xv(u)),s}function Xv(s){Vn===null?Vn=s:Vn.push.apply(Vn,s)}function c8(s){for(var u=s;;){if(u.flags&16384){var p=u.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var b=0;b<p.length;b++){var _=p[b],k=_.getSnapshot;_=_.value;try{if(!Vr(k(),_))return!1}catch{return!1}}}if(p=u.child,u.subtreeFlags&16384&&p!==null)p.return=u,u=p;else{if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function Fo(s,u){for(u&=~Hv,u&=~jh,s.suspendedLanes|=u,s.pingedLanes&=~u,s=s.expirationTimes;0<u;){var p=31-Hr(u),b=1<<p;s[p]=-1,u&=~b}}function eC(s){if((et&6)!==0)throw Error(n(327));ll();var u=Hd(s,0);if((u&1)===0)return Kn(s,Bt()),null;var p=Lh(s,u);if(s.tag!==0&&p===2){var b=ky(s);b!==0&&(u=b,p=Yv(s,b))}if(p===1)throw p=Tc,Ma(s,0),Fo(s,u),Kn(s,Bt()),p;if(p===6)throw Error(n(345));return s.finishedWork=s.current.alternate,s.finishedLanes=u,Ia(s,Vn,Gi),Kn(s,Bt()),null}function Qv(s,u){var p=et;et|=1;try{return s(u)}finally{et=p,et===0&&(sl=Bt()+500,ch&&No())}}function Ra(s){Lo!==null&&Lo.tag===0&&(et&6)===0&&ll();var u=et;et|=1;var p=jr.transition,b=mt;try{if(jr.transition=null,mt=1,s)return s()}finally{mt=b,jr.transition=p,et=u,(et&6)===0&&No()}}function Jv(){dr=al.current,kt(al)}
vendor: 9,182 bytes, line 40
40function Ma(s,u){s.finishedWork=null,s.finishedLanes=0;var p=s.timeoutHandle;if(p!==-1&&(s.timeoutHandle=-1,BU(p)),Ut!==null)for(p=Ut.return;p!==null;){var b=p;switch(sv(b),b.tag){case 1:b=b.type.childContextTypes,b!=null&&lh();break;case 3:rl(),kt(Un),kt(Sn),xv();break;case 5:vv(b);break;case 4:rl();break;case 13:kt(Mt);break;case 19:kt(Mt);break;case 10:hv(b.type._context);break;case 22:case 23:Jv()}p=p.return}if(un=s,Ut=s=Bo(s.current,null),vn=dr=u,Qt=0,Tc=null,Hv=jh=Na=0,Vn=jc=null,Ca!==null){for(u=0;u<Ca.length;u++)if(p=Ca[u],b=p.interleaved,b!==null){p.interleaved=null;var _=b.next,k=p.pending;if(k!==null){var N=k.next;k.next=_,b.next=N}p.pending=b}Ca=null}return s}function tC(s,u){do{var p=Ut;try{if(dv(),xh.current=Oh,wh){for(var b=It.memoizedState;b!==null;){var _=b.queue;_!==null&&(_.pending=null),b=b.next}wh=!1}if(ja=0,ln=Xt=It=null,Oc=!1,Ec=0,Wv.current=null,p===null||p.return===null){Qt=1,Tc=u,Ut=null;break}e:{var k=s,N=p.return,U=p,G=u;if(u=vn,U.flags|=32768,G!==null&&typeof G=="object"&&typeof G.then=="function"){var ne=G,fe=U,de=fe.tag;if((fe.mode&1)===0&&(de===0||de===11||de===15)){var ce=fe.alternate;ce?(fe.updateQueue=ce.updateQueue,fe.memoizedState=ce.memoizedState,fe.lanes=ce.lanes):(fe.updateQueue=null,fe.memoizedState=null)}var _e=Pk(N);if(_e!==null){_e.flags&=-257,Ak(_e,N,U,k,u),_e.mode&1&&Ek(k,ne,u),u=_e,G=ne;var Ae=u.updateQueue;if(Ae===null){var Te=new Set;Te.add(G),u.updateQueue=Te}else Ae.add(G);break e}else{if((u&1)===0){Ek(k,ne,u),Zv();break e}G=Error(n(426))}}else if(Tt&&U.mode&1){var qt=Pk(N);if(qt!==null){(qt.flags&65536)===0&&(qt.flags|=256),Ak(qt,N,U,k,u),cv(il(G,U));break e}}k=G=il(G,U),Qt!==4&&(Qt=2),jc===null?jc=[k]:jc.push(k),k=N;do{switch(k.tag){case 3:k.flags|=65536,u&=-u,k.lanes|=u;var ee=_k(k,G,u);XA(k,ee);break e;case 1:U=G;var Q=k.type,te=k.stateNode;if((k.flags&128)===0&&(typeof Q.getDerivedStateFromError=="function"||te!==null&&typeof te.componentDidCatch=="function"&&(Do===null||!Do.has(te)))){k.flags|=65536,u&=-u,k.lanes|=u;var me=Ok(k,U,u);XA(k,me);break e}}k=k.return}while(k!==null)}iC(p)}catch(je){u=je,Ut===p&&p!==null&&(Ut=p=p.return);continue}break}while(!0)}function nC(){var s=Th.current;return Th.current=Oh,s===null?Oh:s}function Zv(){(Qt===0||Qt===3||Qt===2)&&(Qt=4),un===null||(Na&268435455)===0&&(jh&268435455)===0||Fo(un,vn)}function Lh(s,u){var p=et;et|=2;var b=nC();(un!==s||vn!==u)&&(Gi=null,Ma(s,u));do try{f8();break}catch(_){tC(s,_)}while(!0);if(dv(),et=p,Th.current=b,Ut!==null)throw Error(n(261));return un=null,vn=0,Qt}function f8(){for(;Ut!==null;)rC(Ut)}function d8(){for(;Ut!==null&&!L5();)rC(Ut)}function rC(s){var u=sC(s.alternate,s,dr);s.memoizedProps=s.pendingProps,u===null?iC(s):Ut=u,Wv.current=null}function iC(s){var u=s;do{var p=u.alternate;if(s=u.return,(u.flags&32768)===0){if(p=i8(p,u,dr),p!==null){Ut=p;return}}else{if(p=o8(p,u),p!==null){p.flags&=32767,Ut=p;return}if(s!==null)s.flags|=32768,s.subtreeFlags=0,s.deletions=null;else{Qt=6,Ut=null;return}}if(u=u.sibling,u!==null){Ut=u;return}Ut=u=s}while(u!==null);Qt===0&&(Qt=5)}function Ia(s,u,p){var b=mt,_=jr.transition;try{jr.transition=null,mt=1,h8(s,u,p,b)}finally{jr.transition=_,mt=b}return null}function h8(s,u,p,b){do ll();while(Lo!==null);if((et&6)!==0)throw Error(n(327));p=s.finishedWork;var _=s.finishedLanes;if(p===null)return null;if(s.finishedWork=null,s.finishedLanes=0,p===s.current)throw Error(n(177));s.callbackNode=null,s.callbackPriority=0;var k=p.lanes|p.childLanes;if(K5(s,k),s===un&&(Ut=un=null,vn=0),(p.subtreeFlags&2064)===0&&(p.flags&2064)===0||Rh||(Rh=!0,lC(qd,function(){return ll(),null})),k=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||k){k=jr.transition,jr.transition=null;var N=mt;mt=1;var U=et;et|=4,Wv.current=null,s8(s,p),Gk(p,s),RU(Zy),Gd=!!Jy,Zy=Jy=null,s.current=p,l8(p),$5(),et=U,mt=N,jr.transition=k}else s.current=p;if(Rh&&(Rh=!1,Lo=s,Mh=_),k=s.pendingLanes,k===0&&(Do=null),q5(p.stateNode),Kn(s,Bt()),u!==null)for(b=s.onRecoverableError,p=0;p<u.length;p++)_=u[p],b(_.value,{componentStack:_.stack,digest:_.digest});if(Nh)throw Nh=!1,s=Kv,Kv=null,s;return(Mh&1)!==0&&s.tag!==0&&ll(),k=s.pendingLanes,(k&1)!==0?s===Gv?Nc++:(Nc=0,Gv=s):Nc=0,No(),null}function ll(){if(Lo!==null){var s=VP(Mh),u=jr.transition,p=mt;try{if(jr.transition=null,mt=16>s?16:s,Lo===null)var b=!1;else{if(s=Lo,Lo=null,Mh=0,(et&6)!==0)throw Error(n(331));var _=et;for(et|=4,Oe=s.current;Oe!==null;){var k=Oe,N=k.child;if((Oe.flags&16)!==0){var U=k.deletions;if(U!==null){for(var G=0;G<U.length;G++){var ne=U[G];for(Oe=ne;Oe!==null;){var fe=Oe;switch(fe.tag){case 0:case 11:case 15:Cc(8,fe,k)}var de=fe.child;if(de!==null)de.return=fe,Oe=de;else for(;Oe!==null;){fe=Oe;var ce=fe.sibling,_e=fe.return;if(Uk(fe),fe===ne){Oe=null;break}if(ce!==null){ce.return=_e,Oe=ce;break}Oe=_e}}}var Ae=k.alternate;if(Ae!==null){var Te=Ae.child;if(Te!==null){Ae.child=null;do{var qt=Te.sibling;Te.sibling=null,Te=qt}while(Te!==null)}}Oe=k}}if((k.subtreeFlags&2064)!==0&&N!==null)N.return=k,Oe=N;else e:for(;Oe!==null;){if(k=Oe,(k.flags&2048)!==0)switch(k.tag){case 0:case 11:case 15:Cc(9,k,k.return)}var ee=k.sibling;if(ee!==null){ee.return=k.return,Oe=ee;break e}Oe=k.return}}var Q=s.current;for(Oe=Q;Oe!==null;){N=Oe;var te=N.child;if((N.subtreeFlags&2064)!==0&&te!==null)te.return=N,Oe=te;else e:for(N=Q;Oe!==null;){if(U=Oe,(U.flags&2048)!==0)try{switch(U.tag){case 0:case 11:case 15:Ch(9,U)}}catch(je){Lt(U,U.return,je)}if(U===N){Oe=null;break e}var me=U.sibling;if(me!==null){me.return=U.return,Oe=me;break e}Oe=U.return}}if(et=_,No(),hi&&typeof hi.onPostCommitFiberRoot=="function")try{hi.onPostCommitFiberRoot(zd,s)}catch{}b=!0}return b}finally{mt=p,jr.transition=u}}return!1}function oC(s,u,p){u=il(p,u),u=_k(s,u,1),s=Mo(s,u,1),u=Dn(),s!==null&&(nc(s,1,u),Kn(s,u))}function Lt(s,u,p){if(s.tag===3)oC(s,s,p);else for(;u!==null;){if(u.tag===3){oC(u,s,p);break}else if(u.tag===1){var b=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(Do===null||!Do.has(b))){s=il(p,s),s=Ok(u,s,1),u=Mo(u,s,1),s=Dn(),u!==null&&(nc(u,1,s),Kn(u,s));break}}u=u.return}}function p8(s,u,p){var b=s.pingCache;b!==null&&b.delete(u),u=Dn(),s.pingedLanes|=s.suspendedLanes&p,un===s&&(vn&p)===p&&(Qt===4||Qt===3&&(vn&130023424)===vn&&500>Bt()-Vv?Ma(s,0):Hv|=p),Kn(s,u)}function aC(s,u){u===0&&((s.mode&1)===0?u=1:(u=Wd,Wd<<=1,(Wd&130023424)===0&&(Wd=4194304)));var p=Dn();s=Hi(s,u),s!==null&&(nc(s,u,p),Kn(s,p))}function m8(s){var u=s.memoizedState,p=0;u!==null&&(p=u.retryLane),aC(s,p)}function g8(s,u){var p=0;switch(s.tag){case 13:var b=s.stateNode,_=s.memoizedState;_!==null&&(p=_.retryLane);break;case 19:b=s.stateNode;break;default:throw Error(n(314))}b!==null&&b.delete(u),aC(s,p)}var sC;sC=function(s,u,p){if(s!==null)if(s.memoizedProps!==u.pendingProps||Un.current)Hn=!0;else{if((s.lanes&p)===0&&(u.flags&128)===0)return Hn=!1,r8(s,u,p);Hn=(s.flags&131072)!==0}else Hn=!1,Tt&&(u.flags&1048576)!==0&&BA(u,dh,u.index);switch(u.lanes=0,u.tag){case 2:var b=u.type;Ah(s,u),s=u.pendingProps;var _=Xs(u,Sn.current);nl(u,p),_=_v(null,u,b,s,_,p);var k=Ov();return u.flags|=1,typeof _=="object"&&_!==null&&typeof _.render=="function"&&_.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,Wn(b)?(k=!0,uh(u)):k=!1,u.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,gv(u),_.updater=Eh,u.stateNode=_,_._reactInternals=u,Tv(u,b,s,p),u=Mv(null,u,b,!0,k,p)):(u.tag=0,Tt&&k&&av(u),In(null,u,_,p),u=u.child),u;case 16:b=u.elementType;e:{switch(Ah(s,u),s=u.pendingProps,_=b._init,b=_(b._payload),u.type=b,_=u.tag=v8(b),s=Gr(b,s),_){case 0:u=Rv(null,u,b,s,p);break e;case 1:u=Rk(null,u,b,s,p);break e;case 11:u=kk(null,u,b,s,p);break e;case 14:u=Ck(null,u,b,Gr(b.type,s),p);break e}throw Error(n(306,b,""))}return u;case 0:return b=u.type,_=u.pendingProps,_=u.elementType===b?_:Gr(b,_),Rv(s,u,b,_,p);case 1:return b=u.type,_=u.pendingProps,_=u.elementType===b?_:Gr(b,_),Rk(s,u,b,_,p);case 3:e:{if(Mk(u),s===null)throw Error(n(387));b=u.pendingProps,k=u.memoizedState,_=k.element,YA(s,u),vh(u,b,null,p);var N=u.memoizedState;if(b=N.element,k.isDehydrated)if(k={element:b,isDehydrated:!1,cache:N.cache,pendingSuspenseBoundaries:N.pendingSuspenseBoundaries,transitions:N.transitions},u.updateQueue.baseState=k,u.memoizedState=k,u.flags&256){_=il(Error(n(423)),u),u=Ik(s,u,b,p,_);break e}else if(b!==_){_=il(Error(n(424)),u),u=Ik(s,u,b,p,_);break e}else for(fr=Co(u.stateNode.containerInfo.firstChild),cr=u,Tt=!0,Kr=null,p=KA(u,null,b,p),u.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(Zs(),b===_){u=Ki(s,u,p);break e}In(s,u,b,p)}u=u.child}return u;case 5:return JA(u),s===null&&uv(u),b=u.type,_=u.pendingProps,k=s!==null?s.memoizedProps:null,N=_.children,ev(b,_)?N=null:k!==null&&ev(b,k)&&(u.flags|=32),Nk(s,u),In(s,u,N,p),u.child;case 6:return s===null&&uv(u),null;case 13:return Dk(s,u,p);case 4:return yv(u,u.stateNode.containerInfo),b=u.pendingProps,s===null?u.child=el(u,null,b,p):In(s,u,b,p),u.child;case 11:return b=u.type,_=u.pendingProps,_=u.elementType===b?_:Gr(b,_),kk(s,u,b,_,p);case 7:return In(s,u,u.pendingProps,p),u.child;case 8:return In(s,u,u.pendingProps.children,p),u.child;case 12:return In(s,u,u.pendingProps.children,p),u.child;
vendor: 7,106 bytes, line 40
40case 10:e:{if(b=u.type._context,_=u.pendingProps,k=u.memoizedProps,N=_.value,wt(mh,b._currentValue),b._currentValue=N,k!==null)if(Vr(k.value,N)){if(k.children===_.children&&!Un.current){u=Ki(s,u,p);break e}}else for(k=u.child,k!==null&&(k.return=u);k!==null;){var U=k.dependencies;if(U!==null){N=k.child;for(var G=U.firstContext;G!==null;){if(G.context===b){if(k.tag===1){G=Vi(-1,p&-p),G.tag=2;var ne=k.updateQueue;if(ne!==null){ne=ne.shared;var fe=ne.pending;fe===null?G.next=G:(G.next=fe.next,fe.next=G),ne.pending=G}}k.lanes|=p,G=k.alternate,G!==null&&(G.lanes|=p),pv(k.return,p,u),U.lanes|=p;break}G=G.next}}else if(k.tag===10)N=k.type===u.type?null:k.child;else if(k.tag===18){if(N=k.return,N===null)throw Error(n(341));N.lanes|=p,U=N.alternate,U!==null&&(U.lanes|=p),pv(N,p,u),N=k.sibling}else N=k.child;if(N!==null)N.return=k;else for(N=k;N!==null;){if(N===u){N=null;break}if(k=N.sibling,k!==null){k.return=N.return,N=k;break}N=N.return}k=N}In(s,u,_.children,p),u=u.child}return u;case 9:return _=u.type,b=u.pendingProps.children,nl(u,p),_=Cr(_),b=b(_),u.flags|=1,In(s,u,b,p),u.child;case 14:return b=u.type,_=Gr(b,u.pendingProps),_=Gr(b.type,_),Ck(s,u,b,_,p);case 15:return Tk(s,u,u.type,u.pendingProps,p);case 17:return b=u.type,_=u.pendingProps,_=u.elementType===b?_:Gr(b,_),Ah(s,u),u.tag=1,Wn(b)?(s=!0,uh(u)):s=!1,nl(u,p),wk(u,b,_),Tv(u,b,_,p),Mv(null,u,b,!0,s,p);case 19:return $k(s,u,p);case 22:return jk(s,u,p)}throw Error(n(156,u.tag))};function lC(s,u){return qP(s,u)}function y8(s,u,p,b){this.tag=s,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nr(s,u,p,b){return new y8(s,u,p,b)}function eb(s){return s=s.prototype,!(!s||!s.isReactComponent)}function v8(s){if(typeof s=="function")return eb(s)?1:0;if(s!=null){if(s=s.$$typeof,s===$)return 11;if(s===V)return 14}return 2}function Bo(s,u){var p=s.alternate;return p===null?(p=Nr(s.tag,u,s.key,s.mode),p.elementType=s.elementType,p.type=s.type,p.stateNode=s.stateNode,p.alternate=s,s.alternate=p):(p.pendingProps=u,p.type=s.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=s.flags&14680064,p.childLanes=s.childLanes,p.lanes=s.lanes,p.child=s.child,p.memoizedProps=s.memoizedProps,p.memoizedState=s.memoizedState,p.updateQueue=s.updateQueue,u=s.dependencies,p.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},p.sibling=s.sibling,p.index=s.index,p.ref=s.ref,p}function $h(s,u,p,b,_,k){var N=2;if(b=s,typeof s=="function")eb(s)&&(N=1);else if(typeof s=="string")N=5;else e:switch(s){case j:return Da(p.children,_,k,u);case R:N=8,_|=8;break;case L:return s=Nr(12,p,u,_|2),s.elementType=L,s.lanes=k,s;case B:return s=Nr(13,p,u,_),s.elementType=B,s.lanes=k,s;case W:return s=Nr(19,p,u,_),s.elementType=W,s.lanes=k,s;case J:return Fh(p,_,k,u);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case q:N=10;break e;case D:N=9;break e;case $:N=11;break e;case V:N=14;break e;case Y:N=16,b=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return u=Nr(N,p,u,_),u.elementType=s,u.type=b,u.lanes=k,u}function Da(s,u,p,b){return s=Nr(7,s,b,u),s.lanes=p,s}function Fh(s,u,p,b){return s=Nr(22,s,b,u),s.elementType=J,s.lanes=p,s.stateNode={isHidden:!1},s}function tb(s,u,p){return s=Nr(6,s,null,u),s.lanes=p,s}function nb(s,u,p){return u=Nr(4,s.children!==null?s.children:[],s.key,u),u.lanes=p,u.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},u}function b8(s,u,p,b,_){this.tag=u,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cy(0),this.expirationTimes=Cy(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cy(0),this.identifierPrefix=b,this.onRecoverableError=_,this.mutableSourceEagerHydrationData=null}function rb(s,u,p,b,_,k,N,U,G){return s=new b8(s,u,p,U,G),u===1?(u=1,k===!0&&(u|=8)):u=0,k=Nr(3,null,null,u),s.current=k,k.stateNode=s,k.memoizedState={element:b,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},gv(k),s}function x8(s,u,p){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:A,key:b==null?null:""+b,children:s,containerInfo:u,implementation:p}}function uC(s){if(!s)return jo;s=s._reactInternals;e:{if(Oa(s)!==s||s.tag!==1)throw Error(n(170));var u=s;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(Wn(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(u!==null);throw Error(n(171))}if(s.tag===1){var p=s.type;if(Wn(p))return LA(s,p,u)}return u}function cC(s,u,p,b,_,k,N,U,G){return s=rb(p,b,!0,s,_,k,N,U,G),s.context=uC(null),p=s.current,b=Dn(),_=$o(p),k=Vi(b,_),k.callback=u??null,Mo(p,k,_),s.current.lanes=_,nc(s,_,b),Kn(s,b),s}function Bh(s,u,p,b){var _=u.current,k=Dn(),N=$o(_);return p=uC(p),u.context===null?u.context=p:u.pendingContext=p,u=Vi(k,N),u.payload={element:s},b=b===void 0?null:b,b!==null&&(u.callback=b),s=Mo(_,u,N),s!==null&&(Qr(s,_,N,k),yh(s,_,N)),N}function qh(s){if(s=s.current,!s.child)return null;switch(s.child.tag){case 5:return s.child.stateNode;default:return s.child.stateNode}}function fC(s,u){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var p=s.retryLane;s.retryLane=p!==0&&p<u?p:u}}function ib(s,u){fC(s,u),(s=s.alternate)&&fC(s,u)}function w8(){return null}var dC=typeof reportError=="function"?reportError:function(s){console.error(s)};function ob(s){this._internalRoot=s}zh.prototype.render=ob.prototype.render=function(s){var u=this._internalRoot;if(u===null)throw Error(n(409));Bh(s,u,null,null)},zh.prototype.unmount=ob.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var u=s.containerInfo;Ra(function(){Bh(null,s,null,null)}),u[qi]=null}};function zh(s){this._internalRoot=s}zh.prototype.unstable_scheduleHydration=function(s){if(s){var u=YP();s={blockedOn:null,target:s,priority:u};for(var p=0;p<Po.length&&u!==0&&u<Po[p].priority;p++);Po.splice(p,0,s),p===0&&JP(s)}};function ab(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function Uh(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function hC(){}function S8(s,u,p,b,_){if(_){if(typeof b=="function"){var k=b;b=function(){var ne=qh(N);k.call(ne)}}var N=cC(u,b,s,0,null,!1,!1,"",hC);return s._reactRootContainer=N,s[qi]=N.current,gc(s.nodeType===8?s.parentNode:s),Ra(),N}for(;_=s.lastChild;)s.removeChild(_);if(typeof b=="function"){var U=b;b=function(){var ne=qh(G);U.call(ne)}}var G=rb(s,0,!1,null,null,!1,!1,"",hC);return s._reactRootContainer=G,s[qi]=G.current,gc(s.nodeType===8?s.parentNode:s),Ra(function(){Bh(u,G,p,b)}
vendor: 5,115 bytes, line 40
40),G}function Wh(s,u,p,b,_){var k=p._reactRootContainer;if(k){var N=k;if(typeof _=="function"){var U=_;_=function(){var G=qh(N);U.call(G)}}Bh(u,N,s,_)}else N=S8(p,u,s,_,b);return qh(N)}KP=function(s){switch(s.tag){case 3:var u=s.stateNode;if(u.current.memoizedState.isDehydrated){var p=tc(u.pendingLanes);p!==0&&(Ty(u,p|1),Kn(u,Bt()),(et&6)===0&&(sl=Bt()+500,No()))}break;case 13:Ra(function(){var b=Hi(s,1);if(b!==null){var _=Dn();Qr(b,s,1,_)}}),ib(s,1)}},jy=function(s){if(s.tag===13){var u=Hi(s,134217728);if(u!==null){var p=Dn();Qr(u,s,134217728,p)}ib(s,134217728)}},GP=function(s){if(s.tag===13){var u=$o(s),p=Hi(s,u);if(p!==null){var b=Dn();Qr(p,s,u,b)}ib(s,u)}},YP=function(){return mt},XP=function(s,u){var p=mt;try{return mt=s,u()}finally{mt=p}},_y=function(s,u,p){switch(u){case"input":if(bt(s,p),u=p.name,p.type==="radio"&&u!=null){for(p=s;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll("input[name="+JSON.stringify(""+u)+'][type="radio"]'),u=0;u<p.length;u++){var b=p[u];if(b!==s&&b.form===s.form){var _=sh(b);if(!_)throw Error(n(90));ie(b),bt(b,_)}}}break;case"textarea":wa(s,p);break;case"select":u=p.value,u!=null&&wn(s,!!p.multiple,u,!1)}},MP=Qv,IP=Ra;var _8={usingClientEntryPoint:!1,Events:[bc,Gs,sh,NP,RP,Qv]},Rc={findFiberByHostInstance:Ea,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},O8={bundleType:Rc.bundleType,version:Rc.version,rendererPackageName:Rc.rendererPackageName,rendererConfig:Rc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=FP(s),s===null?null:s.stateNode},findFiberByHostInstance:Rc.findFiberByHostInstance||w8,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hh.isDisabled&&Hh.supportsFiber)try{zd=Hh.inject(O8),hi=Hh}catch{}}return Gn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_8,Gn.createPortal=function(s,u){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ab(u))throw Error(n(200));return x8(s,u,null,p)},Gn.createRoot=function(s,u){if(!ab(s))throw Error(n(299));var p=!1,b="",_=dC;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(b=u.identifierPrefix),u.onRecoverableError!==void 0&&(_=u.onRecoverableError)),u=rb(s,1,!1,null,null,p,!1,b,_),s[qi]=u.current,gc(s.nodeType===8?s.parentNode:s),new ob(u)},Gn.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var u=s._reactInternals;if(u===void 0)throw typeof s.render=="function"?Error(n(188)):(s=Object.keys(s).join(","),Error(n(268,s)));return s=FP(u),s=s===null?null:s.stateNode,s},Gn.flushSync=function(s){return Ra(s)},Gn.hydrate=function(s,u,p){if(!Uh(u))throw Error(n(200));return Wh(null,s,u,!0,p)},Gn.hydrateRoot=function(s,u,p){if(!ab(s))throw Error(n(405));var b=p!=null&&p.hydratedSources||null,_=!1,k="",N=dC;if(p!=null&&(p.unstable_strictMode===!0&&(_=!0),p.identifierPrefix!==void 0&&(k=p.identifierPrefix),p.onRecoverableError!==void 0&&(N=p.onRecoverableError)),u=cC(u,null,s,1,p??null,_,!1,k,N),s[qi]=u.current,gc(s),b)for(s=0;s<b.length;s++)p=b[s],_=p._getVersion,_=_(p._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[p,_]:u.mutableSourceEagerHydrationData.push(p,_);return new zh(u)},Gn.render=function(s,u,p){if(!Uh(u))throw Error(n(200));return Wh(null,s,u,!1,p)},Gn.unmountComponentAtNode=function(s){if(!Uh(s))throw Error(n(40));return s._reactRootContainer?(Ra(function(){Wh(null,null,s,!1,function(){s._reactRootContainer=null,s[qi]=null})}),!0):!1},Gn.unstable_batchedUpdates=Qv,Gn.unstable_renderSubtreeIntoContainer=function(s,u,p,b){if(!Uh(p))throw Error(n(200));if(s==null||s._reactInternals===void 0)throw Error(n(38));return Wh(s,u,p,!1,b)},Gn.version="18.3.1-next-f1338f8080-20240426",Gn}var SC;function d$(){if(SC)return cb.exports;SC=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),cb.exports=R8(),cb.exports}var _C;function M8(){if(_C)return Gh;_C=1;var e=d$();return Gh.createRoot=e.createRoot,Gh.hydrateRoot=e.hydrateRoot,Gh}var I8=M8();const D8=tt(I8),L8=20,$8=1e6,ro={ADD_TOAST:"ADD_TOAST",UPDATE_TOAST:"UPDATE_TOAST",DISMISS_TOAST:"DISMISS_TOAST",REMOVE_TOAST:"REMOVE_TOAST"};let hb=0;function F8(){return hb=(hb+1)%Number.MAX_VALUE,hb.toString()}const pb=new Map,OC=e=>{if(pb.has(e))return;const t=setTimeout(()=>{pb.delete(e),uf({type:ro.REMOVE_TOAST,toastId:e})},$8);pb.set(e,t)},B8=(e,t)=>{switch(t.type){case ro.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,L8)};case ro.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};
40case ro.DISMISS_TOAST:{const{toastId:n}=t;return n?OC(n):e.toasts.forEach(r=>{OC(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case ro.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Op=[];let Ep={toasts:[]};function uf(e){Ep=B8(Ep,e),Op.forEach(t=>{t(Ep)})}function q8({...e}){const t=F8(),n=i=>uf({type:ro.UPDATE_TOAST,toast:{...i,id:t}}),r=()=>uf({type:ro.DISMISS_TOAST,toastId:t});return uf({type:ro.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function z8(){const[e,t]=T.useState(Ep);return T.useEffect(()=>(Op.push(t),()=>{const n=Op.indexOf(t);n>-1&&Op.splice(n,1)}),[e]),{...e,toast:q8,dismiss:n=>uf({type:ro.DISMISS_TOAST,toastId:n})}}function h$(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=h$(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function We(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=h$(e))&&(r&&(r+=" "),r+=t);return r}const EC=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,PC=We,Cs=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return PC(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,a=Object.keys(i).map(f=>{const d=n==null?void 0:n[f],h=o==null?void 0:o[f];if(d===null)return null;const m=EC(d)||EC(h);return i[f][m]}),l=n&&Object.entries(n).reduce((f,d)=>{let[h,m]=d;return m===void 0||(f[h]=m),f},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,d)=>{let{class:h,className:m,...g}=d;return Object.entries(g).every(w=>{let[y,x]=w;return Array.isArray(x)?x.includes({...o,...l}[y]):{...o,...l}[y]===x})?[...f,h,m]:f},[]);return PC(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.475.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const U8=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),p$=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 46 * @license lucide-react v0.475.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var W8={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 51 * @license lucide-react v0.475.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const H8=T.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:a,...l},c)=>T.createElement("svg",{ref:c,...W8,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:p$("lucide",i),...l},[...a.map(([f,d])=>T.createElement(f,d)),...Array.isArray(o)?o:[o]]));/** 56 * @license lucide-react v0.475.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const pt=(e,t)=>{const n=T.forwardRef(({className:r,...i},o)=>T.createElement(H8,{ref:o,iconNode:t,className:p$(`lucide-${U8(e)}`,r),...i}));return n.displayName=`${e}`,n};/** 61 * @license lucide-react v0.475.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const V8=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],PO=pt("ArrowLeft",V8);/** 66 * @license lucide-react v0.475.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const K8=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],G8=pt("ArrowRight",K8);/** 71 * @license lucide-react v0.475.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const Y8=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],eg=pt("Calendar",Y8);/** 76 * @license lucide-react v0.475.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const X8=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Q8=pt("ChartColumn",X8);/** 81 * @license lucide-react v0.475.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const J8=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Z8=pt("Check",J8);
85/** 86 * @license lucide-react v0.475.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const eW=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],m$=pt("ChevronDown",eW);/** 91 * @license lucide-react v0.475.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const tW=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],nW=pt("ChevronUp",tW);/** 96 * @license lucide-react v0.475.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const rW=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],mb=pt("CircleAlert",rW);/** 101 * @license lucide-react v0.475.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const iW=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],oW=pt("DollarSign",iW);/** 106 * @license lucide-react v0.475.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const aW=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],g$=pt("Download",aW);/** 111 * @license lucide-react v0.475.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const sW=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],AC=pt("ExternalLink",sW);/** 116 * @license lucide-react v0.475.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const lW=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],uW=pt("FileText",lW);/** 121 * @license lucide-react v0.475.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const cW=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],fW=pt("Filter",cW);/** 126 * @license lucide-react v0.475.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const dW=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],hW=pt("LayoutDashboard",dW);/** 131 * @license lucide-react v0.475.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const pW=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],y$=pt("MapPin",pW);/** 136 * @license lucide-react v0.475.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const mW=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],kC=pt("PanelLeft",mW);/** 141 * @license lucide-react v0.475.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const gW=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],yW=pt("Pencil",gW);/** 146 * @license lucide-react v0.475.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const vW=[["path",{d:"M19 5c-1.5 0-2.8 1.4-3 2-3.5-1.5-11-.3-11 5 0 1.8 0 3 2 4.5V20h4v-2h3v2h4v-4c1-.5 1.7-1 2-2h2v-4h-2c0-1-.5-1.5-1-2V5z",key:"1ivx2i"}],["path",{d:"M2 9v1c0 1.1.9 2 2 2h1",key:"nm575m"}],["path",{d:"M16 11h.01",key:"xkw8gn"}]],v$=pt("PiggyBank",vW);/** 151 * @license lucide-react v0.475.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const bW=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],wf=pt("Plus",bW);/** 156 * @license lucide-react v0.475.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const xW=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]],wW=pt("Receipt",xW);/** 161 * @license lucide-react v0.475.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const SW=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],b$=pt("Save",SW);/** 166 * @license lucide-react v0.475.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const _W=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],OW=pt("Search",_W);/** 171 * @license lucide-react v0.475.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const EW=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Sf=pt("Sparkles",EW);/** 176 * @license lucide-react v0.475.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const PW=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],ca=pt("Target",PW);/** 181 * @license lucide-react v0.475.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const AW=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
vendor: 6,533 bytes, lines 185-210
185],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Bp=pt("Trash2",AW);/** 186 * @license lucide-react v0.475.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const kW=[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]],Pl=pt("TrendingDown",kW);/** 191 * @license lucide-react v0.475.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const CW=[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]],so=pt("TrendingUp",CW);/** 196 * @license lucide-react v0.475.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const TW=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],jW=pt("TriangleAlert",TW);/** 201 * @license lucide-react v0.475.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const NW=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],x$=pt("Users",NW);/** 206 * @license lucide-react v0.475.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const RW=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],AO=pt("X",RW),kO="-",MW=e=>{const t=DW(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const l=a.split(kO);return l[0]===""&&l.length!==1&&l.shift(),w$(l,t)||IW(a)},getConflictingClassGroupIds:(a,l)=>{const c=n[a]||[];return l&&r[a]?[...c,...r[a]]:c}}},w$=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?w$(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(kO);return(a=t.validators.find(({validator:l})=>l(o)))==null?void 0:a.classGroupId},CC=/^\[(.+)\]$/,IW=e=>{if(CC.test(e)){const t=CC.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},DW=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)rS(n[i],r,i,t);return r},rS=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:TC(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(LW(i)){rS(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{rS(a,TC(t,o),n,r)})})},TC=(e,t)=>{let n=e;return t.split(kO).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},LW=e=>e.isThemeGetter,$W=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let a=n.get(o);if(a!==void 0)return a;if((a=r.get(o))!==void 0)return i(o,a),a},set(o,a){n.has(o)?n.set(o,a):i(o,a)}}},iS="!",oS=":",FW=oS.length,BW=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let a=0,l=0,c=0,f;for(let w=0;w<i.length;w++){let y=i[w];if(a===0&&l===0){if(y===oS){o.push(i.slice(c,w)),c=w+FW;continue}if(y==="/"){f=w;continue}}y==="["?a++:y==="]"?a--:y==="("?l++:y===")"&&l--}const d=o.length===0?i:i.substring(c),h=qW(d),m=h!==d,g=f&&f>c?f-c:void 0;return{modifiers:o,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:g}};if(t){const i=t+oS,o=r;r=a=>a.startsWith(i)?o(a.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},qW=e=>e.endsWith(iS)?e.substring(0,e.length-1):e.startsWith(iS)?e.substring(1):e,zW=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let o=[];return r.forEach(a=>{a[0]==="["||t[a]?(i.push(...o.sort(),a),o=[]):o.push(a)}),i.push(...o.sort()),i}},UW=e=>({cache:$W(e.cacheSize),parseClassName:BW(e),sortModifiers:zW(e),...MW(e)}),WW=/\s+/,HW=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,a=[],l=e.trim().split(WW);let c="";for(let f=l.length-1;f>=0;f-=1){const d=l[f],{isExternal:h,modifiers:m,hasImportantModifier:g,baseClassName:w,maybePostfixModifierPosition:y}=n(d);if(h){c=d+(c.length>0?" "+c:c);continue}let x=!!y,S=r(x?w.substring(0,y):w);if(!S){if(!x){c=d+(c.length>0?" "+c:c);continue}if(S=r(w),!S){c=d+(c.length>0?" "+c:c);continue}x=!1}const P=o(m).join(":"),E=g?P+iS:P,C=E+S;if(a.includes(C))continue;a.push(C);const O=i(S,x);for(let A=0;A<O.length;++A){const j=O[A];a.push(E+j)}c=d+(c.length>0?" "+c:c)}return c};function VW(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=S$(t))&&(r&&(r+=" "),r+=n);return r}const S$=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=S$(e[r]))&&(n&&(n+=" "),n+=t);return n};function KW(e,...t){let n,r,i,o=a;function a(c){const f=t.reduce((d,h)=>h(d),e());return n=UW(f),r=n.cache.get,i=n.cache.set,o=l,l(c)}function l(c){const f=r(c);if(f)return f;const d=HW(c,n);return i(c,d),d}return function(){return o(VW.apply(null,arguments))}}const Jt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},_$=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,O$=/^\((?:(\w[\w-]*):)?(.+)\)$/i,GW=/^\d+\/\d+$/,YW=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,XW=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,QW=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,JW=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ZW=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ul=e=>GW.test(e),Ge=e=>!!e&&!Number.isNaN(Number(e)),zo=e=>!!e&&Number.isInteger(Number(e)),gb=e=>e.endsWith("%")&&Ge(e.slice(0,-1)),Yi=e=>YW.test(e),eH=()=>!0,tH=e=>XW.test(e)&&!QW.test(e),E$=()=>!1,nH=e=>JW.test(e),rH=e=>ZW.test(e),iH=e=>!ke(e)&&!Ce(e),oH=e=>Au(e,k$,E$),ke=e=>_$.test(e),La=e=>Au(e,C$,tH),yb=e=>
vendor: 4,132 bytes, line 210
210Au(e,cH,Ge),jC=e=>Au(e,P$,E$),aH=e=>Au(e,A$,rH),Yh=e=>Au(e,T$,nH),Ce=e=>O$.test(e),Ic=e=>ku(e,C$),sH=e=>ku(e,fH),NC=e=>ku(e,P$),lH=e=>ku(e,k$),uH=e=>ku(e,A$),Xh=e=>ku(e,T$,!0),Au=(e,t,n)=>{const r=_$.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ku=(e,t,n=!1)=>{const r=O$.exec(e);return r?r[1]?t(r[1]):n:!1},P$=e=>e==="position"||e==="percentage",A$=e=>e==="image"||e==="url",k$=e=>e==="length"||e==="size"||e==="bg-size",C$=e=>e==="length",cH=e=>e==="number",fH=e=>e==="family-name",T$=e=>e==="shadow",dH=()=>{const e=Jt("color"),t=Jt("font"),n=Jt("text"),r=Jt("font-weight"),i=Jt("tracking"),o=Jt("leading"),a=Jt("breakpoint"),l=Jt("container"),c=Jt("spacing"),f=Jt("radius"),d=Jt("shadow"),h=Jt("inset-shadow"),m=Jt("text-shadow"),g=Jt("drop-shadow"),w=Jt("blur"),y=Jt("perspective"),x=Jt("aspect"),S=Jt("ease"),P=Jt("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...C(),Ce,ke],A=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],R=()=>[Ce,ke,c],L=()=>[ul,"full","auto",...R()],q=()=>[zo,"none","subgrid",Ce,ke],D=()=>["auto",{span:["full",zo,Ce,ke]},zo,Ce,ke],$=()=>[zo,"auto",Ce,ke],B=()=>["auto","min","max","fr",Ce,ke],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...R()],J=()=>[ul,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],F=()=>[e,Ce,ke],Z=()=>[...C(),NC,jC,{position:[Ce,ke]}],M=()=>["no-repeat",{repeat:["","x","y","space","round"]}],z=()=>["auto","cover","contain",lH,oH,{size:[Ce,ke]}],X=()=>[gb,Ic,La],I=()=>["","none","full",f,Ce,ke],ue=()=>["",Ge,Ic,La],xe=()=>["solid","dashed","dotted","double"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[Ge,gb,NC,jC],ve=()=>["","none",w,Ce,ke],ae=()=>["none",Ge,Ce,ke],he=()=>["none",Ge,Ce,ke],be=()=>[Ge,Ce,ke],ie=()=>[ul,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Yi],breakpoint:[Yi],color:[eH],container:[Yi],"drop-shadow":[Yi],ease:["in","out","in-out"],font:[iH],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Yi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Yi],shadow:[Yi],spacing:["px",Ge],text:[Yi],"text-shadow":[Yi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ul,ke,Ce,x]}],container:["container"],columns:[{columns:[Ge,ke,Ce,l]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}
vendor: 11,167 bytes, line 210
210],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[zo,"auto",Ce,ke]}],basis:[{basis:[ul,"full","auto",l,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ge,ul,"auto","initial","none",ke]}],grow:[{grow:["",Ge,Ce,ke]}],shrink:[{shrink:["",Ge,Ce,ke]}],order:[{order:[zo,"first","last","none",Ce,ke]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[l,"screen",...J()]}],"min-w":[{"min-w":[l,"screen","none",...J()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...J()]}],h:[{h:["screen","lh",...J()]}],"min-h":[{"min-h":["screen","lh","none",...J()]}],"max-h":[{"max-h":["screen","lh",...J()]}],"font-size":[{text:["base",n,Ic,La]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Ce,yb]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gb,ke]}],"font-family":[{font:[sH,ke,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Ce,ke]}],"line-clamp":[{"line-clamp":[Ge,"none",Ce,yb]}],leading:[{leading:[o,...R()]}],"list-image":[{"list-image":["none",Ce,ke]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ce,ke]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ge,"from-font","auto",Ce,La]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Ge,"auto",Ce,ke]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce,ke]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce,ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Z()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},zo,Ce,ke],radial:["",Ce,ke],conic:[zo,Ce,ke]},uH,aH]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...xe(),"hidden","none"]}],"divide-style":[{divide:[...xe(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ge,Ce,ke]}],"outline-w":[{outline:["",Ge,Ic,La]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",d,Xh,Yh]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",h,Xh,Yh]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Ge,La]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",m,Xh,Yh]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Ge,Ce,ke]}],"mix-blend":[{"mix-blend":[...we(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":we()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ge]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[Ce,ke]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[Ge]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Z()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ce,ke]}],filter:[{filter:["","none",Ce,ke]}],blur:[{blur:ve()}],brightness:[{brightness:[Ge,Ce,ke]}],contrast:[{contrast:[Ge,Ce,ke]}],"drop-shadow":[{"drop-shadow":["","none",g,Xh,Yh]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",Ge,Ce,ke]}],"hue-rotate":[{"hue-rotate":[Ge,Ce,ke]}],invert:[{invert:["",Ge,Ce,ke]}],saturate:[{saturate:[Ge,Ce,ke]}],sepia:[{sepia:["",Ge,Ce,ke]}],"backdrop-filter":[{"backdrop-filter":["","none",Ce,ke]}],"backdrop-blur":[{"backdrop-blur":ve()}],"backdrop-brightness":[{"backdrop-brightness":[Ge,Ce,ke]}],"backdrop-contrast":[{"backdrop-contrast":[Ge,Ce,ke]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ge,Ce,ke]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ge,Ce,ke]}],"backdrop-invert":[{"backdrop-invert":["",Ge,Ce,ke]}],"backdrop-opacity":[{"backdrop-opacity":[Ge,Ce,ke]}],"backdrop-saturate":[{"backdrop-saturate":[Ge,Ce,ke]}],"backdrop-sepia":[{"backdrop-sepia":["",Ge,Ce,ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ce,ke]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ge,"initial",Ce,ke]}],ease:[{ease:["linear","initial",S,Ce,ke]}],delay:[{delay:[Ge,Ce,ke]}],animate:[{animate:["none",P,Ce,ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,Ce,ke]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":["scale-3d"],skew:[{skew:be()}],"skew-x":[{"skew-x":be()}
vendor: 7,086 bytes, line 210
210],"skew-y":[{"skew-y":be()}],transform:[{transform:[Ce,ke,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce,ke]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ce,ke]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[Ge,Ic,La,yb]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},hH=KW(dH);function Pe(...e){return hH(We(e))}const j$=T.forwardRef(({...e},t)=>v.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));j$.displayName="ToastProvider";const N$=T.forwardRef(({...e},t)=>v.jsx("div",{ref:t,className:"fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",...e}));N$.displayName="ToastViewport";const pH=Cs("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),R$=T.forwardRef(({className:e,variant:t,...n},r)=>v.jsx("div",{ref:r,className:Pe(pH({variant:t}),e),...n}));R$.displayName="Toast";const mH=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:Pe("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));mH.displayName="ToastAction";const M$=T.forwardRef(({className:e,...t},n)=>v.jsx("button",{ref:n,className:Pe("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 4,532 bytes, line 210
210/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:v.jsx(AO,{className:"h-4 w-4"})}));M$.displayName="ToastClose";const I$=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:Pe("text-sm font-semibold",e),...t}));I$.displayName="ToastTitle";const D$=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:Pe("text-sm opacity-90",e),...t}));D$.displayName="ToastDescription";function gH(){const{toasts:e}=z8();return v.jsxs(j$,{children:[e.map(function({id:t,title:n,description:r,action:i,...o}){return v.jsxs(R$,{...o,children:[v.jsxs("div",{className:"grid gap-1",children:[n&&v.jsx(I$,{children:n}),r&&v.jsx(D$,{children:r})]}),i,v.jsx(M$,{})]},t)}),v.jsx(N$,{})]})}var Cu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},yH={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Yo,_O,t$,vH=(t$=class{constructor(){Ne(this,Yo,yH);Ne(this,_O,!1)}setTimeoutProvider(e){Se(this,Yo,e)}setTimeout(e,t){return K(this,Yo).setTimeout(e,t)}clearTimeout(e){K(this,Yo).clearTimeout(e)}setInterval(e,t){return K(this,Yo).setInterval(e,t)}clearInterval(e){K(this,Yo).clearInterval(e)}},Yo=new WeakMap,_O=new WeakMap,t$),Va=new vH;function bH(e){setTimeout(e,0)}var ps=typeof window>"u"||"Deno"in globalThis;function Fn(){}function xH(e,t){return typeof e=="function"?e(t):e}function aS(e){return typeof e=="number"&&e>=0&&e!==1/0}function L$(e,t){return Math.max(e+(t||0)-Date.now(),0)}function aa(e,t){return typeof e=="function"?e(t):e}function Lr(e,t){return typeof e=="function"?e(t):e}function RC(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:l}=e;if(a){if(r){if(t.queryHash!==CO(a,t.options))return!1}else if(!_f(t.queryKey,a))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||o&&!o(t))}function MC(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(ms(t.options.mutationKey)!==ms(o))return!1}else if(!_f(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function CO(e,t){return((t==null?void 0:t.queryKeyHashFn)||ms)(e)}function ms(e){return JSON.stringify(e,(t,n)=>sS(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function _f(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>_f(e[n],t[n])):!1}var wH=Object.prototype.hasOwnProperty;function $$(e,t){if(e===t)return e;const n=IC(e)&&IC(t);if(!n&&!(sS(e)&&sS(t)))return t;const i=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),a=o.length,l=n?new Array(a):{};let c=0;for(let f=0;f<a;f++){const d=n?f:o[f],h=e[d],m=t[d];if(h===m){l[d]=h,(n?f<i:wH.call(e,d))&&c++;continue}if(h===null||m===null||typeof h!="object"||typeof m!="object"){l[d]=m;continue}const g=$$(h,m);l[d]=g,g===h&&c++}return i===a&&c===i?e:l}function qp(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function IC(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function sS(e){if(!DC(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!DC(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function DC(e){return Object.prototype.toString.call(e)==="[object Object]"}function SH(e){return new Promise(t=>{Va.setTimeout(t,e)})}function lS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?$$(e,t):t}function _H(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function OH(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var TO=Symbol();function F$(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===TO?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function B$(e,t){return typeof e=="function"?e(...t):!!e}
vendor: 3,133 bytes, line 210
210var Ja,Xo,$l,n$,EH=(n$=class extends Cu{constructor(){super();Ne(this,Ja);Ne(this,Xo);Ne(this,$l);Se(this,$l,t=>{if(!ps&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){K(this,Xo)||this.setEventListener(K(this,$l))}onUnsubscribe(){var t;this.hasListeners()||((t=K(this,Xo))==null||t.call(this),Se(this,Xo,void 0))}setEventListener(t){var n;Se(this,$l,t),(n=K(this,Xo))==null||n.call(this),Se(this,Xo,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){K(this,Ja)!==t&&(Se(this,Ja,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof K(this,Ja)=="boolean"?K(this,Ja):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ja=new WeakMap,Xo=new WeakMap,$l=new WeakMap,n$),jO=new EH;function uS(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var PH=bH;function AH(){let e=[],t=0,n=l=>{l()},r=l=>{l()},i=PH;const o=l=>{t?e.push(l):i(()=>{n(l)})},a=()=>{const l=e;e=[],l.length&&i(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||a()}return c},batchCalls:l=>(...c)=>{o(()=>{l(...c)})},schedule:o,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{i=l}}}var tn=AH(),Fl,Qo,Bl,r$,kH=(r$=class extends Cu{constructor(){super();Ne(this,Fl,!0);Ne(this,Qo);Ne(this,Bl);Se(this,Bl,t=>{if(!ps&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){K(this,Qo)||this.setEventListener(K(this,Bl))}onUnsubscribe(){var t;this.hasListeners()||((t=K(this,Qo))==null||t.call(this),Se(this,Qo,void 0))}setEventListener(t){var n;Se(this,Bl,t),(n=K(this,Qo))==null||n.call(this),Se(this,Qo,t(this.setOnline.bind(this)))}setOnline(t){K(this,Fl)!==t&&(Se(this,Fl,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return K(this,Fl)}},Fl=new WeakMap,Qo=new WeakMap,Bl=new WeakMap,r$),zp=new kH;function CH(e){return Math.min(1e3*2**e,3e4)}function q$(e){return(e??"online")==="online"?zp.isOnline():!0}var cS=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function z$(e){let t=!1,n=0,r;const i=uS(),o=()=>i.status!=="pending",a=y=>{var x;if(!o()){const S=new cS(y);m(S),(x=e.onCancel)==null||x.call(e,S)}},l=()=>{t=!0},c=()=>{t=!1},f=()=>jO.isFocused()&&(e.networkMode==="always"||zp.isOnline())&&e.canRun(),d=()=>q$(e.networkMode)&&e.canRun(),h=y=>{o()||(r==null||r(),i.resolve(y))},m=y=>{o()||(r==null||r(),i.reject(y))},g=()=>new Promise(y=>{var x;r=S=>{(o()||f())&&y(S)},(x=e.onPause)==null||x.call(e)}).then(()=>{var y;r=void 0,o()||(y=e.onContinue)==null||y.call(e)}),w=()=>
vendor: 4,376 bytes, line 210
210{if(o())return;let y;const x=n===0?e.initialPromise:void 0;try{y=x??e.fn()}catch(S){y=Promise.reject(S)}Promise.resolve(y).then(h).catch(S=>{var A;if(o())return;const P=e.retry??(ps?0:3),E=e.retryDelay??CH,C=typeof E=="function"?E(n,S):E,O=P===!0||typeof P=="number"&&n<P||typeof P=="function"&&P(n,S);if(t||!O){m(S);return}n++,(A=e.onFail)==null||A.call(e,n,S),SH(C).then(()=>f()?void 0:g()).then(()=>{t?m(S):w()})})};return{promise:i,status:()=>i.status,cancel:a,continue:()=>(r==null||r(),i),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?w():g().then(w),i)}}var Za,i$,U$=(i$=class{constructor(){Ne(this,Za)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),aS(this.gcTime)&&Se(this,Za,Va.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ps?1/0:300*1e3))}clearGcTimeout(){K(this,Za)&&(Va.clearTimeout(K(this,Za)),Se(this,Za,void 0))}},Za=new WeakMap,i$),es,ql,Dr,ts,fn,hd,ns,ei,Qi,o$,TH=(o$=class extends U${constructor(t){super();Ne(this,ei);Ne(this,es);Ne(this,ql);Ne(this,Dr);Ne(this,ts);Ne(this,fn);Ne(this,hd);Ne(this,ns);Se(this,ns,!1),Se(this,hd,t.defaultOptions),this.setOptions(t.options),this.observers=[],Se(this,ts,t.client),Se(this,Dr,K(this,ts).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Se(this,es,LC(this.options)),this.state=t.state??K(this,es),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=K(this,fn))==null?void 0:t.promise}setOptions(t){if(this.options={...K(this,hd),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=LC(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),Se(this,es,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&K(this,Dr).remove(this)}setData(t,n){const r=lS(this.state.data,t,this.options);return Ke(this,ei,Qi).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Ke(this,ei,Qi).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=K(this,fn))==null?void 0:r.promise;return(i=K(this,fn))==null||i.cancel(t),n?n.then(Fn).catch(Fn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(K(this,es))}isActive(){return this.observers.some(t=>Lr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===TO||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>aa(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!L$(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=K(this,fn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=K(this,fn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),K(this,Dr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(K(this,fn)&&(K(this,ns)?K(this,fn).cancel({revert:!0}):K(this,fn).cancelRetry()),this.scheduleGc()),K(this,Dr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ke(this,ei,Qi).call(this,{type:"invalidate"})}async fetch(t,n){var c,f,d,h,m,g,w,y,x,S,P,E;if(this.state.fetchStatus!=="idle"&&((c=K(this,fn))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(K(this,fn))return K(this,fn).continueRetry(),K(this,fn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const C=this.observers.find(O=>O.options.queryFn);C&&this.setOptions(C.options)}const r=new AbortController,i=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(Se(this,ns,!0),r.signal)}
210)},o=()=>{const C=F$(this.options,n),A=(()=>{const j={client:K(this,ts),queryKey:this.queryKey,meta:this.meta};return i(j),j})();return Se(this,ns,!1),this.options.persister?this.options.persister(C,A,this):C(A)},l=(()=>{const C={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:K(this,ts),state:this.state,fetchFn:o};return i(C),C})();(f=this.options.behavior)==null||f.onFetch(l,this),Se(this,ql,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&Ke(this,ei,Qi).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta}),Se(this,fn,z$({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:C=>{C instanceof cS&&C.revert&&this.setState({...K(this,ql),fetchStatus:"idle"}),r.abort()},onFail:(C,O)=>{Ke(this,ei,Qi).call(this,{type:"failed",failureCount:C,error:O})},onPause:()=>{Ke(this,ei,Qi).call(this,{type:"pause"})},onContinue:()=>{Ke(this,ei,Qi).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const C=await K(this,fn).start();if(C===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(C),(g=(m=K(this,Dr).config).onSuccess)==null||g.call(m,C,this),(y=(w=K(this,Dr).config).onSettled)==null||y.call(w,C,this.state.error,this),C}catch(C){if(C instanceof cS){if(C.silent)return K(this,fn).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw Ke(this,ei,Qi).call(this,{type:"error",error:C}),(S=(x=K(this,Dr).config).onError)==null||S.call(x,C,this),(E=(P=K(this,Dr).config).onSettled)==null||E.call(P,this.state.data,C,this),C}finally{this.scheduleGc()}}},es=new WeakMap,ql=new WeakMap,Dr=new WeakMap,ts=new WeakMap,fn=new WeakMap,hd=new WeakMap,ns=new WeakMap,ei=new WeakSet,Qi=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...W$(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Se(this,ql,t.manual?i:void 0),i;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),tn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),K(this,Dr).notify({query:this,type:"updated",action:t})})},o$);function W$(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:q$(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function LC(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Xn,Qe,pd,Ln,rs,zl,Zi,Jo,md,Ul,Wl,is,os,Zo,Hl,dt,ef,fS,dS,hS,pS,mS,gS,yS,H$,a$,jH=(a$=class extends Cu{constructor(t,n){super();Ne(this,dt);Ne(this,Xn);Ne(this,Qe);Ne(this,pd);Ne(this,Ln);Ne(this,rs);Ne(this,zl);Ne(this,Zi);Ne(this,Jo);Ne(this,md);Ne(this,Ul);Ne(this,Wl);Ne(this,is);Ne(this,os);Ne(this,Zo);Ne(this,Hl,new Set);this.options=n,Se(this,Xn,t),Se(this,Jo,null),Se(this,Zi,uS()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(K(this,Qe).addObserver(this),$C(K(this,Qe),this.options)?Ke(this,dt,ef).call(this):this.updateResult(),Ke(this,dt,pS).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return vS(K(this,Qe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return vS(K(this,Qe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ke(this,dt,mS).call(this),Ke(this,dt,gS).call(this),K(this,Qe).removeObserver(this)}setOptions(t){const n=this.options,r=K(this,Qe);if(this.options=K(this,Xn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Lr(this.options.enabled,K(this,Qe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ke(this,dt,yS).call(this),K(this,Qe).setOptions(this.options),n._defaulted&&!qp(this.options,n)&&K(this,Xn).getQueryCache().notify({type:"observerOptionsUpdated",query:K(this,Qe),observer:this});const i=this.hasListeners();i&&FC(K(this,Qe),r,this.options,n)&&Ke(this,dt,ef).call(this),this.updateResult(),i&&(K(this,Qe)!==r||Lr(this.options.enabled,K(this,Qe))!==Lr(n.enabled,K(this,Qe))||aa(this.options.staleTime,K(this,Qe))!==aa(n.staleTime,K(this,Qe)))&&Ke(this,dt,fS).call(this);const o=Ke(this,dt,dS).call(this);i&&(K(this,Qe)!==r||Lr(this.options.enabled,K(this,Qe))!==Lr(n.enabled,K(this,Qe))||o!==K(this,Zo)
vendor: 10,058 bytes, line 210
210)&&Ke(this,dt,hS).call(this,o)}getOptimisticResult(t){const n=K(this,Xn).getQueryCache().build(K(this,Xn),t),r=this.createResult(n,t);return RH(this,r)&&(Se(this,Ln,r),Se(this,zl,this.options),Se(this,rs,K(this,Qe).state)),r}getCurrentResult(){return K(this,Ln)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&!this.options.experimental_prefetchInRender&&K(this,Zi).status==="pending"&&K(this,Zi).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,i))})}trackProp(t){K(this,Hl).add(t)}getCurrentQuery(){return K(this,Qe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=K(this,Xn).defaultQueryOptions(t),r=K(this,Xn).getQueryCache().build(K(this,Xn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Ke(this,dt,ef).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),K(this,Ln)))}createResult(t,n){var L;const r=K(this,Qe),i=this.options,o=K(this,Ln),a=K(this,rs),l=K(this,zl),f=t!==r?t.state:K(this,pd),{state:d}=t;let h={...d},m=!1,g;if(n._optimisticResults){const q=this.hasListeners(),D=!q&&$C(t,n),$=q&&FC(t,r,n,i);(D||$)&&(h={...h,...W$(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:w,errorUpdatedAt:y,status:x}=h;g=h.data;let S=!1;if(n.placeholderData!==void 0&&g===void 0&&x==="pending"){let q;o!=null&&o.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(q=o.data,S=!0):q=typeof n.placeholderData=="function"?n.placeholderData((L=K(this,Wl))==null?void 0:L.state.data,K(this,Wl)):n.placeholderData,q!==void 0&&(x="success",g=lS(o==null?void 0:o.data,q,n),m=!0)}if(n.select&&g!==void 0&&!S)if(o&&g===(a==null?void 0:a.data)&&n.select===K(this,md))g=K(this,Ul);else try{Se(this,md,n.select),g=n.select(g),g=lS(o==null?void 0:o.data,g,n),Se(this,Ul,g),Se(this,Jo,null)}catch(q){Se(this,Jo,q)}K(this,Jo)&&(w=K(this,Jo),g=K(this,Ul),y=Date.now(),x="error");const P=h.fetchStatus==="fetching",E=x==="pending",C=x==="error",O=E&&P,A=g!==void 0,R={status:x,fetchStatus:h.fetchStatus,isPending:E,isSuccess:x==="success",isError:C,isInitialLoading:O,isLoading:O,data:g,dataUpdatedAt:h.dataUpdatedAt,error:w,errorUpdatedAt:y,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>f.dataUpdateCount||h.errorUpdateCount>f.errorUpdateCount,isFetching:P,isRefetching:P&&!E,isLoadingError:C&&!A,isPaused:h.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:C&&A,isStale:NO(t,n),refetch:this.refetch,promise:K(this,Zi),isEnabled:Lr(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const q=B=>{R.status==="error"?B.reject(R.error):R.data!==void 0&&B.resolve(R.data)},D=()=>{const B=Se(this,Zi,R.promise=uS());q(B)},$=K(this,Zi);switch($.status){case"pending":t.queryHash===r.queryHash&&q($);break;case"fulfilled":(R.status==="error"||R.data!==$.value)&&D();break;case"rejected":(R.status!=="error"||R.error!==$.reason)&&D();break}}return R}updateResult(){const t=K(this,Ln),n=this.createResult(K(this,Qe),this.options);if(Se(this,rs,K(this,Qe).state),Se(this,zl,this.options),K(this,rs).data!==void 0&&Se(this,Wl,K(this,Qe)),qp(n,t))return;Se(this,Ln,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!K(this,Hl).size)return!0;const a=new Set(o??K(this,Hl));return this.options.throwOnError&&a.add("error"),Object.keys(K(this,Ln)).some(l=>{const c=l;return K(this,Ln)[c]!==t[c]&&a.has(c)})};Ke(this,dt,H$).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ke(this,dt,pS).call(this)}},Xn=new WeakMap,Qe=new WeakMap,pd=new WeakMap,Ln=new WeakMap,rs=new WeakMap,zl=new WeakMap,Zi=new WeakMap,Jo=new WeakMap,md=new WeakMap,Ul=new WeakMap,Wl=new WeakMap,is=new WeakMap,os=new WeakMap,Zo=new WeakMap,Hl=new WeakMap,dt=new WeakSet,ef=function(t){Ke(this,dt,yS).call(this);let n=K(this,Qe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Fn)),n},fS=function(){Ke(this,dt,mS).call(this);const t=aa(this.options.staleTime,K(this,Qe));if(ps||K(this,Ln).isStale||!aS(t))return;const r=L$(K(this,Ln).dataUpdatedAt,t)+1;Se(this,is,Va.setTimeout(()=>{K(this,Ln).isStale||this.updateResult()},r))},dS=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(K(this,Qe)):this.options.refetchInterval)??!1},hS=function(t){Ke(this,dt,gS).call(this),Se(this,Zo,t),!(ps||Lr(this.options.enabled,K(this,Qe))===!1||!aS(K(this,Zo))||K(this,Zo)===0)&&Se(this,os,Va.setInterval(()=>{(this.options.refetchIntervalInBackground||jO.isFocused())&&Ke(this,dt,ef).call(this)},K(this,Zo)))},pS=function(){Ke(this,dt,fS).call(this),Ke(this,dt,hS).call(this,Ke(this,dt,dS).call(this))},mS=function(){K(this,is)&&(Va.clearTimeout(K(this,is)),Se(this,is,void 0))},gS=function(){K(this,os)&&(Va.clearInterval(K(this,os)),Se(this,os,void 0))},yS=function(){const t=K(this,Xn).getQueryCache().build(K(this,Xn),this.options);if(t===K(this,Qe))return;const n=K(this,Qe);Se(this,Qe,t),Se(this,pd,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},H$=function(t){tn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(K(this,Ln))}),K(this,Xn).getQueryCache().notify({query:K(this,Qe),type:"observerResultsUpdated"})})},a$);function NH(e,t){return Lr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function $C(e,t){return NH(e,t)||e.state.data!==void 0&&vS(e,t,t.refetchOnMount)}function vS(e,t,n){if(Lr(t.enabled,e)!==!1&&aa(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&NO(e,t)}return!1}function FC(e,t,n,r){return(e!==t||Lr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&NO(e,n)}function NO(e,t){return Lr(t.enabled,e)!==!1&&e.isStaleByTime(aa(t.staleTime,e))}function RH(e,t){return!qp(e.getCurrentResult(),t)}function BC(e){return{onFetch:(t,n)=>{var d,h,m,g,w;const r=t.options,i=(m=(h=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:h.fetchMore)==null?void 0:m.direction,o=((g=t.state.data)==null?void 0:g.pages)||[],a=((w=t.state.data)==null?void 0:w.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const f=async()=>{let y=!1;const x=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},S=F$(t.options,t.fetchOptions),P=async(E,C,O)=>{if(y)return Promise.reject();if(C==null&&E.pages.length)return Promise.resolve(E);const j=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:C,direction:O?"backward":"forward",meta:t.options.meta};return x(D),D})(),R=await S(j),{maxPages:L}=t.options,q=O?OH:_H;return{pages:q(E.pages,R,L),pageParams:q(E.pageParams,C,L)}};if(i&&o.length){const E=i==="backward",C=E?MH:qC,O={pages:o,pageParams:a},A=C(r,O);l=await P(O,A,E)}else{const E=e??o.length;do{const C=c===0?a[0]??r.initialPageParam:qC(r,l);if(c>0&&C==null)break;l=await P(l,C),c++}while(c<E)}return l};t.options.persister?t.fetchFn=()=>{var y,x;return(x=(y=t.options).persister)==null?void 0:x.call(y,f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function qC(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function MH(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var gd,xi,$n,as,wi,Ho,s$,IH=(s$=class extends U${constructor(t){super();Ne(this,wi);Ne(this,gd);Ne(this,xi);Ne(this,$n);Ne(this,as);Se(this,gd,t.client),this.mutationId=t.mutationId,Se(this,$n,t.mutationCache),Se(this,xi,[]),this.state=t.state||V$(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){K(this,xi).includes(t)||(K(this,xi).push(t),this.clearGcTimeout(),K(this,$n).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Se(this,xi,K(this,xi).filter(n=>n!==t)),this.scheduleGc(),K(this,$n).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){K(this,xi).length||(this.state.status==="pending"?this.scheduleGc():K(this,$n).remove(this))}continue(){var t;return((t=K(this,as))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,l,c,f,d,h,m,g,w,y,x,S,P,E,C,O,A,j,R,L;const n=()=>{Ke(this,wi,Ho).call(this,{type:"continue"})},r={client:K(this,gd),meta:this.options.meta,mutationKey:this.options.mutationKey};Se(this,as,z$({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(q,D)=>{Ke(this,wi,Ho).call(this,{type:"failed",failureCount:q,error:D})},onPause:()=>{Ke(this,wi,Ho).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>K(this,$n).canRun(this)}));const i=this.state.status==="pending",o=!K(this,as).canStart();try{if(i)n();else{Ke(this,wi,Ho).call(this,{type:"pending",variables:t,isPaused:o}),await((l=(a=K(this,$n).config).onMutate)==null?void 0:l.call(a,t,this,r));const D=await((f=(c=this.options).onMutate)==null?void 0:f.call(c,t,r));D!==this.state.context&&Ke(this,wi,Ho).call(this,{type:"pending",context:D,variables:t,isPaused:o})}const q=await K(this,as).start();return await((h=(d=K(this,$n).config).onSuccess)==null?void 0:h.call(d,q,t,this.state.context,this,r)),await((g=(m=this.options).onSuccess)==null?void 0:g.call(m,q,t,this.state.context,r)),await((y=(w=K(this,$n).config).onSettled)==null?void 0:y.call(w,q,null,this.state.variables,this.state.context,this,r)),await((S=(x=this.options).onSettled)==null?void 0:S.call(x,q,null,t,this.state.context,r)),Ke(this,wi,Ho).call(this,{type:"success",data:q}),q}catch(q){try{throw await((E=(P=K(this,$n).config).onError)==null?void 0:E.
210call(P,q,t,this.state.context,this,r)),await((O=(C=this.options).onError)==null?void 0:O.call(C,q,t,this.state.context,r)),await((j=(A=K(this,$n).config).onSettled)==null?void 0:j.call(A,void 0,q,this.state.variables,this.state.context,this,r)),await((L=(R=this.options).onSettled)==null?void 0:L.call(R,void 0,q,t,this.state.context,r)),q}finally{Ke(this,wi,Ho).call(this,{type:"error",error:q})}}finally{K(this,$n).runNext(this)}}},gd=new WeakMap,xi=new WeakMap,$n=new WeakMap,as=new WeakMap,wi=new WeakSet,Ho=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),tn.batch(()=>{K(this,xi).forEach(r=>{r.onMutationUpdate(t)}),K(this,$n).notify({mutation:this,type:"updated",action:t})})},s$);function V$(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var eo,ti,yd,l$,DH=(l$=class extends Cu{constructor(t={}){super();Ne(this,eo);Ne(this,ti);Ne(this,yd);this.config=t,Se(this,eo,new Set),Se(this,ti,new Map),Se(this,yd,0)}build(t,n,r){const i=new IH({client:t,mutationCache:this,mutationId:++Vh(this,yd)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){K(this,eo).add(t);const n=Qh(t);if(typeof n=="string"){const r=K(this,ti).get(n);r?r.push(t):K(this,ti).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(K(this,eo).delete(t)){const n=Qh(t);if(typeof n=="string"){const r=K(this,ti).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&K(this,ti).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Qh(t);if(typeof n=="string"){const r=K(this,ti).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Qh(t);if(typeof n=="string"){const i=(r=K(this,ti).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){tn.batch(()=>{K(this,eo).forEach(t=>{this.notify({type:"removed",mutation:t})}),K(this,eo).clear(),K(this,ti).clear()})}getAll(){return Array.from(K(this,eo))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>MC(n,r))}findAll(t={}){return this.getAll().filter(n=>MC(t,n))}notify(t){tn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return tn.batch(()=>Promise.all(t.map(n=>n.continue().catch(Fn))))}},eo=new WeakMap,ti=new WeakMap,yd=new WeakMap,l$);function Qh(e){var t;return(t=e.options.scope)==null?void 0:t.id}var to,ea,Qn,no,fo,Pp,bS,u$,LH=(u$=class extends Cu{constructor(n,r){super();Ne(this,fo);Ne(this,to);Ne(this,ea);Ne(this,Qn);Ne(this,no);Se(this,to,n),this.setOptions(r),this.bindMethods(),Ke(this,fo,Pp).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=K(this,to).defaultMutationOptions(n),qp(this.options,r)||K(this,to).getMutationCache().notify({type:"observerOptionsUpdated",mutation:K(this,Qn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ms(r.mutationKey)!==ms(this.options.mutationKey)?this.reset():((i=K(this,Qn))==null?void 0:i.state.status)==="pending"&&K(this,Qn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=K(this,Qn))==null||n.removeObserver(this)}onMutationUpdate(n){Ke(this,fo,Pp).call(this),Ke(this,fo,bS).call(this,n)}getCurrentResult(){return K(this,ea)}reset(){var n;(n=K(this,Qn))==null||n.removeObserver(this),Se(this,Qn,void 0),Ke(this,fo,Pp).call(this),Ke(this,fo,bS).call(this)}mutate(n,r){var i;return Se(this,no,r),(i=K(this,Qn))==null||i.removeObserver(this),Se(this,Qn,K(this,to).getMutationCache().build(K(this,to),this.options)),K(this,Qn).addObserver(this),K(this,Qn).execute(n)}},to=new WeakMap,ea=new WeakMap,Qn=new WeakMap,no=new WeakMap,fo=new WeakSet,Pp=function(){var r;const n=((r=K(this,Qn))==null?void 0:r.state)??V$();Se(this,ea,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},bS=function(n){tn.batch(()=>{var r,i,o,a,l,c,f,d;
vendor: 6,688 bytes, line 210
210if(K(this,no)&&this.hasListeners()){const h=K(this,ea).variables,m=K(this,ea).context,g={client:K(this,to),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((i=(r=K(this,no)).onSuccess)==null||i.call(r,n.data,h,m,g),(a=(o=K(this,no)).onSettled)==null||a.call(o,n.data,null,h,m,g)):(n==null?void 0:n.type)==="error"&&((c=(l=K(this,no)).onError)==null||c.call(l,n.error,h,m,g),(d=(f=K(this,no)).onSettled)==null||d.call(f,void 0,n.error,h,m,g))}this.listeners.forEach(h=>{h(K(this,ea))})})},u$),Si,c$,$H=(c$=class extends Cu{constructor(t={}){super();Ne(this,Si);this.config=t,Se(this,Si,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??CO(i,n);let a=this.get(o);return a||(a=new TH({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){K(this,Si).has(t.queryHash)||(K(this,Si).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=K(this,Si).get(t.queryHash);n&&(t.destroy(),n===t&&K(this,Si).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){tn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return K(this,Si).get(t)}getAll(){return[...K(this,Si).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>RC(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>RC(t,r)):n}notify(t){tn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){tn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){tn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Si=new WeakMap,c$),$t,ta,na,Vl,Kl,ra,Gl,Yl,f$,FH=(f$=class{constructor(e={}){Ne(this,$t);Ne(this,ta);Ne(this,na);Ne(this,Vl);Ne(this,Kl);Ne(this,ra);Ne(this,Gl);Ne(this,Yl);Se(this,$t,e.queryCache||new $H),Se(this,ta,e.mutationCache||new DH),Se(this,na,e.defaultOptions||{}),Se(this,Vl,new Map),Se(this,Kl,new Map),Se(this,ra,0)}mount(){Vh(this,ra)._++,K(this,ra)===1&&(Se(this,Gl,jO.subscribe(async e=>{e&&(await this.resumePausedMutations(),K(this,$t).onFocus())})),Se(this,Yl,zp.subscribe(async e=>{e&&(await this.resumePausedMutations(),K(this,$t).onOnline())})))}unmount(){var e,t;Vh(this,ra)._--,K(this,ra)===0&&((e=K(this,Gl))==null||e.call(this),Se(this,Gl,void 0),(t=K(this,Yl))==null||t.call(this),Se(this,Yl,void 0))}isFetching(e){return K(this,$t).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return K(this,ta).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=K(this,$t).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=K(this,$t).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(aa(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return K(this,$t).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=K(this,$t).get(r.queryHash),o=i==null?void 0:i.state.data,a=xH(t,o);if(a!==void 0)return K(this,$t).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return tn.batch(()=>K(this,$t).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=K(this,$t).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=K(this,$t);tn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=K(this,$t);return tn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=tn.batch(()=>K(this,$t).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Fn).catch(Fn)}invalidateQueries(e,t={}){return tn.batch(()=>(K(this,$t).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=tn.batch(()=>K(this,$t).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Fn)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Fn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=K(this,$t).build(this,t);return n.isStaleByTime(aa(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Fn).catch(Fn)}fetchInfiniteQuery(e){return e.behavior=BC(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Fn).catch(Fn)}ensureInfiniteQueryData(e){return e.behavior=BC(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return zp.isOnline()?K(this,ta).resumePausedMutations():Promise.resolve()}getQueryCache(){return K(this,$t)}getMutationCache(){return K(this,ta)}getDefaultOptions(){return K(this,na)}setDefaultOptions(e){Se(this,na,e)}setQueryDefaults(e,t){K(this,Vl).set(ms(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...K(this,Vl).values()],n={};return t.forEach(r=>{_f(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){K(this,Kl).set(ms(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...K(this,Kl).values()],n={};return t.forEach(r=>{_f(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...K(this,na).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=CO(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===TO&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...K(this,na).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){K(this,$t).clear(),K(this,ta).clear()}},$t=new WeakMap,ta=new WeakMap,na=new WeakMap,Vl=new WeakMap,Kl=new WeakMap,ra=new WeakMap,Gl=new WeakMap,Yl=new WeakMap,f$),K$=T.createContext(void 0),RO=e=>{const t=T.useContext(K$);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},BH=({client:e,children:t})=>(T.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(K$.Provider,{value:e,children:t})),G$=T.createContext(!1),qH=()=>T.useContext(G$);G$.Provider;function zH(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
210var UH=T.createContext(zH()),WH=()=>T.useContext(UH),HH=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},VH=e=>{T.useEffect(()=>{e.clearReset()},[e])},KH=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||B$(n,[e.error,r])),GH=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},YH=(e,t)=>e.isLoading&&e.isFetching&&!t,XH=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,zC=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function QH(e,t,n){var h,m,g,w,y;const r=qH(),i=WH(),o=RO(),a=o.defaultQueryOptions(e);(m=(h=o.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||m.call(h,a),a._optimisticResults=r?"isRestoring":"optimistic",GH(a),HH(a,i),VH(i);const l=!o.getQueryCache().get(a.queryHash),[c]=T.useState(()=>new t(o,a)),f=c.getOptimisticResult(a),d=!r&&e.subscribed!==!1;if(T.useSyncExternalStore(T.useCallback(x=>{const S=d?c.subscribe(tn.batchCalls(x)):Fn;return c.updateResult(),S},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),T.useEffect(()=>{c.setOptions(a)},[a,c]),XH(a,f))throw zC(a,c,i);if(KH({result:f,errorResetBoundary:i,throwOnError:a.throwOnError,query:o.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw f.error;if((w=(g=o.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||w.call(g,a,f),a.experimental_prefetchInRender&&!ps&&YH(f,r)){const x=l?zC(a,c,i):(y=o.getQueryCache().get(a.queryHash))==null?void 0:y.promise;x==null||x.catch(Fn).finally(()=>{c.updateResult()})}return a.notifyOnChangeProps?f:c.trackResult(f)}function Of(e,t){return QH(e,jH)}function vb(e,t){const n=RO(),[r]=T.useState(()=>new LH(n,e));T.useEffect(()=>{r.setOptions(e)},[r,e]);const i=T.useSyncExternalStore(T.useCallback(a=>r.subscribe(tn.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=T.useCallback((a,l)=>{r.mutate(a,l).catch(Fn)},[r]);if(i.error&&B$(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}const JH=new FH({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});var vd=d$();const ZH=tt(vd);/** 211 * @remix-run/router v1.23.0 212 * 213 * Copyright (c) Remix Software Inc. 214 * 215 * This source code is licensed under the MIT license found in the 216 * LICENSE.md file in the root directory of this source tree. 217 * 218 * @license MIT 219 */function Ef(){return Ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ef.apply(this,arguments)}var ia;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ia||(ia={}));const UC="popstate";function eV(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:l}=r.location;return xS("",{pathname:o,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Up(i)}return nV(t,n,null,e)}function Gt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Y$(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function tV(){return Math.random().toString(36).substr(2,8)}function WC(e,t){return{usr:e.state,key:e.key,idx:t}}function xS(e,t,n,r){return n===void 0&&(n=null),Ef({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Tu(t):t,{state:n,key:t&&t.key||r||tV()})}function Up(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Tu(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function nV(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l=ia.Pop,c=null,f=d();f==null&&(f=0,a.replaceState(Ef({},a.state,{idx:f}),""));function d(){return(a.state||{idx:null}).idx}function h(){l=ia.Pop;let x=d(),S=x==null?null:x-f;f=x,c&&c({action:l,location:y.location,delta:S})}function m(x,S){l=ia.Push;let P=xS(y.location,x,S);f=d()+1;let E=WC(P,f),C=y.createHref(P);try{a.pushState(E,"",C)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;i.location.assign(C)}o&&c&&c({action:l,location:y.location,delta:1})}function g(x,S){l=ia.Replace;let P=xS(y.location,x,S);f=d();let E=WC(P,f),C=y.createHref(P);a.replaceState(E,"",C),o&&c&&c({action:l,location:y.location,delta:0})}function w(x){let S=i.location.origin!=="null"?i.location.origin:i.location.href,P=typeof x=="str
219ing"?x:Up(x);return P=P.replace(/ $/,"%20"),Gt(S,"No window.location.(origin|href) available to create URL for href: "+P),new URL(P,S)}let y={get action(){return l},get location(){return e(i,a)},listen(x){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(UC,h),c=x,()=>{i.removeEventListener(UC,h),c=null}},createHref(x){return t(i,x)},createURL:w,encodeLocation(x){let S=w(x);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:m,replace:g,go(x){return a.go(x)}};return y}var HC;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(HC||(HC={}));function rV(e,t,n){return n===void 0&&(n="/"),iV(e,t,n)}function iV(e,t,n,r){let i=typeof t=="string"?Tu(t):t,o=MO(i.pathname||"/",n);if(o==null)return null;let a=X$(e);oV(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let f=yV(o);l=pV(a[c],f)}return l}function X$(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,l)=>{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(Gt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let f=sa([r,c.relativePath]),d=n.concat(c);o.children&&o.children.length>0&&(Gt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),X$(o.children,t,d,f)),!(o.path==null&&!o.index)&&t.push({path:f,score:dV(f,o.index),routesMeta:d})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let c of Q$(o.path))i(o,a,c)}),t}function Q$(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=Q$(r.join("/")),l=[];return l.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function oV(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:hV(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const aV=/^:[\w-]+$/,sV=3,lV=2,uV=1,cV=10,fV=-2,VC=e=>e==="*";function dV(e,t){let n=e.split("/"),r=n.length;return n.some(VC)&&(r+=fV),t&&(r+=lV),n.filter(i=>!VC(i)).reduce((i,o)=>i+(aV.test(o)?sV:o===""?uV:cV),r)}function hV(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function pV(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],f=l===r.length-1,d=o==="/"?t:t.slice(o.length)||"/",h=mV({path:c.relativePath,caseSensitive:c.caseSensitive,end:f},d),m=c.route;if(!h)return null;
vendor: 13,498 bytes, lines 219-237
219Object.assign(i,h.params),a.push({params:i,pathname:sa([o,h.pathname]),pathnameBase:wV(sa([o,h.pathnameBase])),route:m}),h.pathnameBase!=="/"&&(o=sa([o,h.pathnameBase]))}return a}function mV(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=gV(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((f,d,h)=>{let{paramName:m,isOptional:g}=d;if(m==="*"){let y=l[h]||"";a=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const w=l[h];return g&&!w?f[m]=void 0:f[m]=(w||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:a,pattern:e}}function gV(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Y$(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function yV(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Y$(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function MO(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function vV(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Tu(e):e;return{pathname:n?n.startsWith("/")?n:bV(n,t):t,search:SV(r),hash:_V(i)}}function bV(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function bb(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function xV(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function J$(e,t){let n=xV(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Z$(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Tu(e):(i=Ef({},e),Gt(!i.pathname||!i.pathname.includes("?"),bb("?","pathname","search",i)),Gt(!i.pathname||!i.pathname.includes("#"),bb("#","pathname","hash",i)),Gt(!i.search||!i.search.includes("#"),bb("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let m=a.split("/");for(;m[0]==="..";)m.shift(),h-=1;i.pathname=m.join("/")}l=h>=0?t[h]:"/"}let c=vV(i,l),f=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||d)&&(c.pathname+="/"),c}const sa=e=>e.join("/").replace(/\/\/+/g,"/"),wV=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),SV=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_V=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function OV(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const eF=["post","put","patch","delete"];new Set(eF);const EV=["get",...eF];new Set(EV);/** 220 * React Router v6.30.1 221 * 222 * Copyright (c) Remix Software Inc. 223 * 224 * This source code is licensed under the MIT license found in the 225 * LICENSE.md file in the root directory of this source tree. 226 * 227 * @license MIT 228 */function Pf(){return Pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pf.apply(this,arguments)}const IO=T.createContext(null),PV=T.createContext(null),Ts=T.createContext(null),tg=T.createContext(null),js=T.createContext({outlet:null,matches:[],isDataRoute:!1}),tF=T.createContext(null);function AV(e,t){let{relative:n}=t===void 0?{}:t;bd()||Gt(!1);let{basename:r,navigator:i}=T.useContext(Ts),{hash:o,pathname:a,search:l}=rF(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:sa([r,a])),i.createHref({pathname:c,search:l,hash:o})}function bd(){return T.useContext(tg)!=null}function Ns(){return bd()||Gt(!1),T.useContext(tg).location}function nF(e){T.useContext(Ts).static||T.useLayoutEffect(e)}function ng(){let{isDataRoute:e}=T.useContext(js);return e?BV():kV()}function kV(){bd()||Gt(!1);let e=T.useContext(IO),{basename:t,future:n,navigator:r}=T.useContext(Ts),{matches:i}=T.useContext(js),{pathname:o}=Ns(),a=JSON.stringify(J$(i,n.v7_relativeSplatPath)),l=T.useRef(!1);return nF(()=>{l.current=!0}),T.useCallback(function(f,d){if(d===void 0&&(d={}),!l.current)return;if(typeof f=="number"){r.go(f);return}let h=Z$(f,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:sa([t,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[t,r,a,o,e])}function rF(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=T.useContext(Ts),{matches:i}=T.useContext(js),{pathname:o}=Ns(),a=JSON.stringify(J$(i,r.v7_relativeSplatPath));return T.useMemo(()=>Z$(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function CV(e,t){return TV(e,t)}function TV(e,t,n,r){bd()||Gt(!1);let{navigator:i}=T.useContext(Ts),{matches:o}=T.useContext(js),a=o[o.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let f=Ns(),d;if(t){var h;let x=typeof t=="string"?Tu(t):t;c==="/"||(h=x.pathname)!=null&&h.startsWith(c)||Gt(!1),d=x}else d=f;let m=d.pathname||"/",g=m;if(c!=="/"){let x=c.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(x.length).join("/")}let w=rV(e,{pathname:g}),y=IV(w&&w.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:sa([c,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:sa([c,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&y?T.createElement(tg.Provider,{value:{location:Pf({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ia.Pop}},y):y}function jV(){let e=FV(),t=OV(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),n?T.createElement("pre",{style:i},n):null,null)}const NV=T.createElement(jV,null);class RV extends T.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?T.createElement(js.Provider,{value:this.props.routeContext},T.createElement(tF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function MV(e){let{routeContext:t,match:n,children:r}=e,i=T.useContext(IO);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(js.Provider,{value:t},r)}function IV(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let d=a.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);d>=0||Gt(!1),a=a.slice(0,Math.min(a.length,d+1))}let c=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<a.length;d++){let h=a[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(f=d),h.route.id){let{loaderData:m,errors:g}=n,w=h.route.loader&&m[h.route.id]===void 0&&(!g||g[h.route.id]===void 0);if(h.route.lazy||w){c=!0,f>=0?a=a.slice(0,f+1):a=[a[0]];break}}}return a.reduceRight((d,h,m)=>{let g,w=!1,y=null,x=null;n&&(g=l&&h.route.id?l[h.route.id]:void 0,y=h.route.errorElement||NV,c&&(f<0&&m===0?(qV("route-fallback"),w=!0,x=null):f===m&&(w=!0,x=h.route.hydrateFallbackElement||null)));let S=t.concat(a.slice(0,m+1)),P=()=>{let E;return g?E=y:w?E=x:h.route.Component?E=T.createElement(h.route.Component,null):h.route.element?E=h.route.element:E=d,T.createElement(MV,{match:h,routeContext:{outlet:d,matches:S,isDataRoute:n!=null},children:E})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?T.createElement(RV,{location:n.location,revalidation:n.revalidation,component:y,error:g,children:P(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):P()},null)}var iF=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(iF||{}),oF=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(oF||{});function DV(e){let t=T.useContext(IO);return t||Gt(!1),t}function LV(e){let t=T.useContext(PV);return t||Gt(!1),t}function $V(e){let t=T.useContext(js);return t||Gt(!1),t}function aF(e){let t=$V(),n=t.matches[t.matches.length-1];return n.route.id||Gt(!1),n.route.id}function FV(){var e;let t=T.useContext(tF),n=LV(),r=aF();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function BV(){let{router:e}=DV(iF.UseNavigateStable),t=aF(oF.UseNavigateStable),n=T.useRef(!1);return nF(()=>{n.current=!0}),T.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Pf({fromRouteId:t},o)))},[e,t])}const KC={};function qV(e,t,n){KC[e]||(KC[e]=!0)}function zV(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ap(e){Gt(!1)}function UV(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ia.Pop,navigator:o,static:a=!1,future:l}=e;bd()&&Gt(!1);let c=t.replace(/^\/*/,"/"),f=T.useMemo(()=>({basename:c,navigator:o,static:a,future:Pf({v7_relativeSplatPath:!1},l)}),[c,l,o,a]);typeof r=="string"&&(r=Tu(r));let{pathname:d="/",search:h="",hash:m="",state:g=null,key:w="default"}=r,y=T.useMemo(()=>{let x=MO(d,c);return x==null?null:{location:{pathname:x,search:h,hash:m,state:g,key:w},navigationType:i}},[c,d,h,m,g,w,i]);return y==null?null:T.createElement(Ts.Provider,{value:f},T.createElement(tg.Provider,{children:n,value:y}))}function WV(e){let{children:t,location:n}=e;return CV(wS(t),n)}new Promise(()=>{});function wS(e,t){t===void 0&&(t=[]);let n=[];return T.Children.forEach(e,(r,i)=>{if(!T.isValidElement(r))return;let o=[...t,i];if(r.type===T.Fragment){n.push.apply(n,wS(r.props.children,o));return}r.type!==Ap&&Gt(!1),!r.props.index||!r.props.children||Gt(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=wS(r.props.children,o)),n.push(a)}),n}/** 229 * React Router DOM v6.30.1 230 * 231 * Copyright (c) Remix Software Inc. 232 * 233 * This source code is licensed under the MIT license found in the 234 * LICENSE.md file in the root directory of this source tree. 235 * 236 * @license MIT 237 */function SS(){return SS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SS.apply(this,arguments)}function HV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function VV(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function KV(e,t){return e.button===0&&(!t||t==="_self")&&!VV(e)}const GV=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],YV="6";try{window.__reactRouterVersion=YV}catch{}const XV="startTransition",GC=EO[XV];function QV(e){let{basename:t,children:n,future:r,window:i}=e,o=T.useRef();o.current==null&&(o.current=eV({window:i,v5Compat:!0}));let a=o.current,[l,c]=T.useState({action:a.action,location:a.location}),{v7_startTransition:f}=r||{},d=T.useCallback(h=>{f&&GC?GC(()=>c(h)):c(h)},[c,f]);return T.useLayoutEffect(()=>a.listen(d),[a,d]),T.useEffect(()=>
237zV(r),[r]),T.createElement(UV,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const JV=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ZV=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xl=T.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:l,target:c,to:f,preventScrollReset:d,viewTransition:h}=t,m=HV(t,GV),{basename:g}=T.useContext(Ts),w,y=!1;if(typeof f=="string"&&ZV.test(f)&&(w=f,JV))try{let E=new URL(window.location.href),C=f.startsWith("//")?new URL(E.protocol+f):new URL(f),O=MO(C.pathname,g);C.origin===E.origin&&O!=null?f=O+C.search+C.hash:y=!0}catch{}let x=AV(f,{relative:i}),S=e9(f,{replace:a,state:l,target:c,preventScrollReset:d,relative:i,viewTransition:h});function P(E){r&&r(E),E.defaultPrevented||S(E)}return T.createElement("a",SS({},m,{href:w||x,onClick:y||o?r:P,ref:n,target:c}))});var YC;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(YC||(YC={}));var XC;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(XC||(XC={}));function e9(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:l}=t===void 0?{}:t,c=ng(),f=Ns(),d=rF(e,{relative:a});return T.useCallback(h=>{if(KV(h,n)){h.preventDefault();let m=r!==void 0?r:Up(f)===Up(d);c(e,{replace:m,state:i,preventScrollReset:o,relative:a,viewTransition:l})}},[f,c,d,r,i,n,e,o,a,l])}function sF(e,t){return function(){return e.apply(t,arguments)}}const{toString:t9}=Object.prototype,{getPrototypeOf:DO}=Object,{iterator:rg,toStringTag:lF}=Symbol,ig=(e=>t=>{const n=t9.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ui=e=>(e=e.toLowerCase(),t=>ig(t)===e),og=e=>t=>typeof t===e,{isArray:ju}=Array,Ql=og("undefined");function xd(e){return e!==null&&!Ql(e)&&e.constructor!==null&&!Ql(e.constructor)&&tr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const uF=ui("ArrayBuffer");function n9(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&uF(e.buffer),t}const r9=og("string"),tr=og("function"),cF=og("number"),wd=e=>e!==null&&typeof e=="object",i9=e=>e===!0||e===!1,kp=e=>{if(ig(e)!=="object")return!1;const t=DO(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(lF in e)&&!(rg in e)},o9=e=>{if(!wd(e)||xd(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},a9=ui("Date"),s9=ui("File"),l9=ui("Blob"),u9=ui("FileList"),c9=e=>wd(e)&&tr(e.pipe),f9=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||tr(e.append)&&((t=ig(e))==="formdata"||t==="object"&&tr(e.toString)&&e.toString()==="[object FormData]"))},d9=ui("URLSearchParams"),[h9,p9,m9,g9]=["ReadableStream","Request","Response","Headers"].map(ui),y9=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Sd(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ju(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(xd(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let l;for(r=0;r<a;r++)l=o[r],t.call(null,e[l],l,e)}}function fF(e,t){if(xd(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ka=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,dF=e=>!Ql(e)&&e!==Ka;function _S(){const{caseless:e,skipUndefined:t}=dF(this)&&this||{},n={},r=(i,o)=>{const a=e&&fF(n,o)||o;kp(n[a])&&kp(i)?n[a]=_S(n[a],i):kp(i)?n[a]=_S({},i):ju(i)?n[a]=i.slice():(!t||!Ql(i))&&(n[a]=i)};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Sd(arguments[i],r);return n}const v9=(e,t,n,{allOwnKeys:r}={})=>(Sd(t,(i,o)=>{n&&tr(i)?e[o]=sF(i,n):e[o]=i},{allOwnKeys:r}),e),b9=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),x9=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},w9=(e,t,n,r)=>{let i,o,a;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&DO(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},S9=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},_9=e=>{if(!e)return null;if(ju(e))return e;let t=e.length;if(!cF(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},O9=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&DO(Uint8Array)),E9=(e,t)=>{const r=(e&&e[rg]).call(e);let i;for(;
vendor: 2,055 bytes, line 237
237(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},P9=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},A9=ui("HTMLFormElement"),k9=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),QC=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),C9=ui("RegExp"),hF=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Sd(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},T9=e=>{hF(e,(t,n)=>{if(tr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(tr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},j9=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return ju(e)?r(e):r(String(e).split(t)),n},N9=()=>{},R9=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function M9(e){return!!(e&&tr(e.append)&&e[lF]==="FormData"&&e[rg])}const I9=e=>{const t=new Array(10),n=(r,i)=>{if(wd(r)){if(t.indexOf(r)>=0)return;if(xd(r))return r;if(!("toJSON"in r)){t[i]=r;const o=ju(r)?[]:{};return Sd(r,(a,l)=>{const c=n(a,i+1);!Ql(c)&&(o[l]=c)}),t[i]=void 0,o}}return r};return n(e,0)},D9=ui("AsyncFunction"),L9=e=>e&&(wd(e)||tr(e))&&tr(e.then)&&tr(e.catch),pF=((e,t)=>e?setImmediate:t?((n,r)=>(Ka.addEventListener("message",({source:i,data:o})=>{i===Ka&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ka.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",tr(Ka.postMessage)),$9=typeof queueMicrotask<"u"?queueMicrotask.bind(Ka):typeof process<"u"&&process.nextTick||pF,F9=e=>e!=null&&tr(e[rg]),re={isArray:ju,isArrayBuffer:uF,isBuffer:xd,isFormData:f9,isArrayBufferView:n9,isString:r9,isNumber:cF,isBoolean:i9,isObject:wd,isPlainObject:kp,isEmptyObject:o9,isReadableStream:h9,isRequest:p9,isResponse:m9,isHeaders:g9,isUndefined:Ql,isDate:a9,isFile:s9,isBlob:l9,isRegExp:C9,isFunction:tr,isStream:c9,isURLSearchParams:d9,isTypedArray:O9,isFileList:u9,forEach:Sd,merge:_S,extend:v9,trim:y9,stripBOM:b9,
vendor: 4,988 bytes, line 237
237inherits:x9,toFlatObject:w9,kindOf:ig,kindOfTest:ui,endsWith:S9,toArray:_9,forEachEntry:E9,matchAll:P9,isHTMLForm:A9,hasOwnProperty:QC,hasOwnProp:QC,reduceDescriptors:hF,freezeMethods:T9,toObjectSet:j9,toCamelCase:k9,noop:N9,toFiniteNumber:R9,findKey:fF,global:Ka,isContextDefined:dF,isSpecCompliantForm:M9,toJSONObject:I9,isAsyncFn:D9,isThenable:L9,setImmediate:pF,asap:$9,isIterable:F9};function He(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}re.inherits(He,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:re.toJSONObject(this.config),code:this.code,status:this.status}}});const mF=He.prototype,gF={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{gF[e]={value:e}});Object.defineProperties(He,gF);Object.defineProperty(mF,"isAxiosError",{value:!0});He.from=(e,t,n,r,i,o)=>{const a=Object.create(mF);re.toFlatObject(e,a,function(d){return d!==Error.prototype},f=>f!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return He.call(a,l,c,n,r,i),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",o&&Object.assign(a,o),a};const B9=null;function OS(e){return re.isPlainObject(e)||re.isArray(e)}function yF(e){return re.endsWith(e,"[]")?e.slice(0,-2):e}function JC(e,t,n){return e?e.concat(t).map(function(i,o){return i=yF(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function q9(e){return re.isArray(e)&&!e.some(OS)}const z9=re.toFlatObject(re,{},null,function(t){return/^is[A-Z]/.test(t)});function ag(e,t,n){if(!re.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=re.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,x){return!re.isUndefined(x[y])});const r=n.metaTokens,i=n.visitor||d,o=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&re.isSpecCompliantForm(t);if(!re.isFunction(i))throw new TypeError("visitor must be a function");function f(w){if(w===null)return"";if(re.isDate(w))return w.toISOString();if(re.isBoolean(w))return w.toString();if(!c&&re.isBlob(w))throw new He("Blob is not supported. Use a Buffer instead.");return re.isArrayBuffer(w)||re.isTypedArray(w)?c&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function d(w,y,x){let S=w;if(w&&!x&&typeof w=="object"){if(re.endsWith(y,"{}"))y=r?y:y.slice(0,-2),w=JSON.stringify(w);else if(re.isArray(w)&&q9(w)||(re.isFileList(w)||re.endsWith(y,"[]"))&&(S=re.toArray(w)))return y=yF(y),S.forEach(function(E,C){!(re.isUndefined(E)||E===null)&&t.append(a===!0?JC([y],C,o):a===null?y:y+"[]",f(E))}),!1}return OS(w)?!0:(t.append(JC(x,y,o),f(w)),!1)}const h=[],m=Object.assign(z9,{defaultVisitor:d,convertValue:f,isVisitable:OS});function g(w,y){if(!re.isUndefined(w)){if(h.indexOf(w)!==-1)throw Error("Circular reference detected in "+y.join("."));h.push(w),re.forEach(w,function(S,P){(!(re.isUndefined(S)||S===null)&&i.call(t,S,re.isString(P)?P.trim():P,y,m))===!0&&g(S,y?y.concat(P):[P])}),h.pop()}}if(!re.isObject(e))throw new TypeError("data must be an object");return g(e),t}function ZC(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function LO(e,t){this._pairs=[],e&&ag(e,this,t)}const vF=LO.prototype;vF.append=function(t,n){this._pairs.push([t,n])};vF.toString=function(t){const n=t?function(r){return t.call(this,r,ZC)}:ZC;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function U9(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function bF(e,t,n){if(!t)return e;const r=n&&n.encode||U9;re.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=re.isURLSearchParams(t)?t.toString():new LO(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class eT{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){re.forEach(this.handlers,function(r){r!==null&&t(r)})}}const xF={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},W9=typeof URLSearchParams<"u"?URLSearchParams:LO,H9=typeof FormData<"u"?FormData:null,V9=typeof Blob<"u"?Blob:null,K9={isBrowser:!0,classes:{
vendor: 11,131 bytes, lines 237-239
237URLSearchParams:W9,FormData:H9,Blob:V9},protocols:["http","https","file","blob","url","data"]},$O=typeof window<"u"&&typeof document<"u",ES=typeof navigator=="object"&&navigator||void 0,G9=$O&&(!ES||["ReactNative","NativeScript","NS"].indexOf(ES.product)<0),Y9=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",X9=$O&&window.location.href||"http://localhost",Q9=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$O,hasStandardBrowserEnv:G9,hasStandardBrowserWebWorkerEnv:Y9,navigator:ES,origin:X9},Symbol.toStringTag,{value:"Module"})),Cn={...Q9,...K9};function J9(e,t){return ag(e,new Cn.classes.URLSearchParams,{visitor:function(n,r,i,o){return Cn.isNode&&re.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function Z9(e){return re.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function e7(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function wF(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=o>=n.length;return a=!a&&re.isArray(i)?i.length:a,c?(re.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!l):((!i[a]||!re.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&re.isArray(i[a])&&(i[a]=e7(i[a])),!l)}if(re.isFormData(e)&&re.isFunction(e.entries)){const n={};return re.forEachEntry(e,(r,i)=>{t(Z9(r),i,n,0)}),n}return null}function t7(e,t,n){if(re.isString(e))try{return(t||JSON.parse)(e),re.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const _d={transitional:xF,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=re.isObject(t);if(o&&re.isHTMLForm(t)&&(t=new FormData(t)),re.isFormData(t))return i?JSON.stringify(wF(t)):t;if(re.isArrayBuffer(t)||re.isBuffer(t)||re.isStream(t)||re.isFile(t)||re.isBlob(t)||re.isReadableStream(t))return t;if(re.isArrayBufferView(t))return t.buffer;if(re.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return J9(t,this.formSerializer).toString();if((l=re.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return ag(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),t7(t)):t}],transformResponse:[function(t){const n=this.transitional||_d.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(re.isResponse(t)||re.isReadableStream(t))return t;if(t&&re.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(l){if(a)throw l.name==="SyntaxError"?He.from(l,He.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Cn.classes.FormData,Blob:Cn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};re.forEach(["delete","get","head","post","put","patch"],e=>{_d.headers[e]={}});const n7=re.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),r7=e=>{const t={};let n,r,i;return e&&e.split(` 238`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&n7[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},tT=Symbol("internals");function Dc(e){return e&&String(e).trim().toLowerCase()}function Cp(e){return e===!1||e==null?e:re.isArray(e)?e.map(Cp):String(e)}function i7(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const o7=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xb(e,t,n,r,i){if(re.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!re.isString(t)){if(re.isString(r))return t.indexOf(r)!==-1;if(re.isRegExp(r))return r.test(t)}}function a7(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function s7(e,t){const n=re.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}let nr=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(l,c,f){const d=Dc(c);if(!d)throw new Error("header name must be a non-empty string");const h=re.findKey(i,d);(!h||i[h]===void 0||f===!0||f===void 0&&i[h]!==!1)&&(i[h||c]=Cp(l))}const a=(l,c)=>re.forEach(l,(f,d)=>o(f,d,c));if(re.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(re.isString(t)&&(t=t.trim())&&!o7(t))a(r7(t),n);else if(re.isObject(t)&&re.isIterable(t)){let l={},c,f;for(const d of t){if(!re.isArray(d))throw TypeError("Object iterator must return a key-value pair");l[f=d[0]]=(c=l[f])?re.isArray(c)?[...c,d[1]]:[c,d[1]]:d[1]}a(l,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Dc(t),t){const r=re.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return i7(i);if(re.isFunction(n))return n.call(this,i,r);if(re.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Dc(t),t){const r=re.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||xb(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=Dc(a),a){const l=re.findKey(r,a);l&&(!n||xb(r,r[l],l,n))&&(delete r[l],i=!0)}}return re.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||xb(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return re.forEach(this,(i,o)=>{const a=re.findKey(r,o);if(a){n[a]=Cp(i),delete n[o];return}const l=t?a7(o):String(o).trim();l!==o&&delete n[o],n[l]=Cp(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return re.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&re.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 239`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[tT]=this[tT]={accessors:{}}).accessors,i=this.prototype;function o(a){const l=Dc(a);r[l]||(s7(i,a),r[l]=!0)}return re.isArray(t)?t.forEach(o):o(t),this}};nr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);re.reduceDescriptors(nr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});re.freezeMethods(nr);function wb(e,t){const n=this||_d,r=t||n,i=nr.from(r.headers);let o=r.data;return re.forEach(e,function(l){o=l.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function SF(e){return!!(e&&e.__CANCEL__)}function Nu(e,t,n){He.call(this,e??"canceled",He.ERR_CANCELED,t,n),this.name="CanceledError"}re.inherits(Nu,He,{__CANCEL__:!0});function _F(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new He("Request failed with status code "+n.status,[He.ERR_BAD_REQUEST,He.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function l7(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function u7(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),d=r[o];a||(a=f),n[i]=c,r[i]=f;let h=o,m=0;for(;h!==i;)m+=n[h++],h=h%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),f-a<t)return;const g=d&&f-d;return g?Math.round(m*1e3/g):void 0}}function c7(e,t){let n=0,r=1e3/t,i,o;const a=(f,d=Date.now())=>{n=d,i=null,o&&(clearTimeout(o),o=null),e(...f)};return[(...f)=>{const d=Date.now(),h=d-n;h>=r?a(f,d):(i=f,o||(o=setTimeout(()=>{o=null,a(i)},r-h)))},()=>i&&a(i)]}const Wp=(e,t,n=3)=>{let r=0;const i=u7(50,250);return c7(o=>{const a=o.loaded,l=o.lengthComputable?o.total:void 0,c=a-r,f=i(c),d=a<=l;r=a;const h={loaded:a,total:l,progress:l?a/l:void 0,bytes:c,rate:f||void 0,estimated:f&&l&&d?(l-a)/f:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},n)},nT=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},rT=e=>(...t)=>re.asap(()=>e(...t)),f7=Cn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Cn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Cn.origin),Cn.navigator&&/(msie|trident)/i.test(Cn.navigator.userAgent)):()=>!0,d7=Cn.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];re.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),re.isString(r)&&a.push("path="+r),re.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function h7(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function p7(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function OF(e,t,n){let r=!h7(t);return e&&(r||n==!1)?p7(e,t):t}const iT=e=>e instanceof nr?{...e}:e;function gs(e,t){t=t||{};const n={};function r(f,d,h,m){return re.isPlainObject(f)&&re.isPlainObject(d)?re.merge.call({caseless:m},f,d):re.isPlainObject(d)?re.merge({},d):re.isArray(d)?d.slice():d}function i(f,d,h,m){if(re.isUndefined(d)){if(!re.isUndefined(f))return r(void 0,f,h,m)}else return r(f,d,h,m)}function o(f,d){if(!re.isUndefined(d))return r(void 0,d)}function a(f,d){if(re.isUndefined(d)){if(!re.isUndefined(f))return r(void 0,f)}else return r(void 0,d)}function l(f,d,h){if(h in t)return r(f,d);if(h in e)return r(void 0,f)}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(f,d,h)=>i(iT(f),iT(d),h,!0)};return re.forEach(Object.keys({...e,...t}),function(d){const h=c[d]||i,m=h(e[d],t[d],d);re.isUndefined(m)&&h!==l||(n[d]=m)}),n}const EF=e=>{const t=gs({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:l}=t;if(t.headers=a=nr.from(a),t.url=bF(OF(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),re.is
vendor: 6,655 bytes, line 239
239FormData(n)){if(Cn.hasStandardBrowserEnv||Cn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(re.isFunction(n.getHeaders)){const c=n.getHeaders(),f=["content-type","content-length"];Object.entries(c).forEach(([d,h])=>{f.includes(d.toLowerCase())&&a.set(d,h)})}}if(Cn.hasStandardBrowserEnv&&(r&&re.isFunction(r)&&(r=r(t)),r||r!==!1&&f7(t.url))){const c=i&&o&&d7.read(o);c&&a.set(i,c)}return t},m7=typeof XMLHttpRequest<"u",g7=m7&&function(e){return new Promise(function(n,r){const i=EF(e);let o=i.data;const a=nr.from(i.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:f}=i,d,h,m,g,w;function y(){g&&g(),w&&w(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let x=new XMLHttpRequest;x.open(i.method.toUpperCase(),i.url,!0),x.timeout=i.timeout;function S(){if(!x)return;const E=nr.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),O={data:!l||l==="text"||l==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:E,config:e,request:x};_F(function(j){n(j),y()},function(j){r(j),y()},O),x=null}"onloadend"in x?x.onloadend=S:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(S)},x.onabort=function(){x&&(r(new He("Request aborted",He.ECONNABORTED,e,x)),x=null)},x.onerror=function(C){const O=C&&C.message?C.message:"Network Error",A=new He(O,He.ERR_NETWORK,e,x);A.event=C||null,r(A),x=null},x.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const O=i.transitional||xF;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new He(C,O.clarifyTimeoutError?He.ETIMEDOUT:He.ECONNABORTED,e,x)),x=null},o===void 0&&a.setContentType(null),"setRequestHeader"in x&&re.forEach(a.toJSON(),function(C,O){x.setRequestHeader(O,C)}),re.isUndefined(i.withCredentials)||(x.withCredentials=!!i.withCredentials),l&&l!=="json"&&(x.responseType=i.responseType),f&&([m,w]=Wp(f,!0),x.addEventListener("progress",m)),c&&x.upload&&([h,g]=Wp(c),x.upload.addEventListener("progress",h),x.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(d=E=>{x&&(r(!E||E.type?new Nu(null,e,x):E),x.abort(),x=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const P=l7(i.url);if(P&&Cn.protocols.indexOf(P)===-1){r(new He("Unsupported protocol "+P+":",He.ERR_BAD_REQUEST,e));return}x.send(o||null)})},y7=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(f){if(!i){i=!0,l();const d=f instanceof Error?f:this.reason;r.abort(d instanceof He?d:new Nu(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,o(new He(`timeout ${t} of ms exceeded`,He.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>f.addEventListener("abort",o));const{signal:c}=r;return c.unsubscribe=()=>re.asap(l),c}},v7=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},b7=async function*(e,t){for await(const n of x7(e))yield*v7(n,t)},x7=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},oT=(e,t,n,r)=>{const i=b7(e,t);let o=0,a,l=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:f,value:d}=await i.next();if(f){l(),c.close();return}let h=d.byteLength;if(n){let m=o+=h;n(m)}c.enqueue(new Uint8Array(d))}catch(f){throw l(f),f}},cancel(c){return l(c),i.return()}},{highWaterMark:2})},aT=64*1024,{isFunction:Jh}=re,w7=(({Request:e,Response:t})=>({Request:e,Response:t}))(re.global),{ReadableStream:sT,TextEncoder:lT}=re.global,uT=(e,...t)=>{try{return!!e(...t)}catch{return!1}},S7=e=>{e=re.merge.call({skipUndefined:!0},w7,e);const{fetch:t,Request:n,Response:r}=e,i=t?Jh(t):typeof fetch=="function",o=Jh(n),a=Jh(r);if(!i)return!1;const l=i&&Jh(sT),c=i&&(typeof lT=="function"?(w=>y=>w.encode(y))(new lT):async w=>new Uint8Array(await new n(w).arrayBuffer())),f=o&&l&&uT(()=>{let w=!1;const y=new n(Cn.origin,{body:new sT,method:"POST",get duplex(){return w=!0,"half"}}).headers.has("Content-Type");return w&&!y}),d=a&&l&&uT(()=>re.isReadableStream(new r("").body)),h={stream:d&&(w=>w.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(w=>{!h[w]&&(h[w]=(y,x)=>{let S=y&&y[w];if(S)return S.call(y);throw new He(`Response type '${w}' is not supported`,He.ERR_NOT_SUPPORT,x)})});const m=async w=>{if(w==null)return 0;if(re.isBlob(w))return w.size;if(re.isSpecCompliantForm(w))return(await new n(Cn.origin,{method:"POST",body:w}).arrayBuffer()).byteLength;if(re.isArrayBufferView(w)||re.isArrayBuffer(w))return w.byteLength;if(re.isURLSearchParams(w)&&(w=w+""),re.isString(w))return(await c(w)).byteLength},g=async(w,y)=>{const x=re.toFiniteNumber(w.getContentLength());return x??m(y)};return async w=>{let{url:y,method:x,data:S,signal:P,cancelToken:E,timeout:C,onDownloadProgress:O,onUploadProgress:A,responseType:j,headers:R,withCredentials:L="same-origin",fetchOptions:q}=EF(w),D=t||fetch;j=j?(j+"").toLowerCase():"text";let $=y7([P,E&&E.toAbortSignal()],C),B=null;const W=$&&$.unsubscribe&&(()=>{$.unsubscribe()});let V;try{if(A&&f&&x!=="get"&&x!=="head"&&(V=await g(R,S))!==0){let z=new n(y,{method:"POST",body:S,duplex:"half"}),X;if(re.isFormData(S)&&(X=z.headers.get("content-type"))&&R.setContentType(X),z.body){const[I,ue]=nT(V,Wp(rT(A)));S=oT(z.body,aT,I,ue)}}re.isString(L)||(L=L?"include":"omit");const Y=o&&"credentials"in n.prototype,J={...q,signal:$,method:x.toUpperCase(),headers:R.normalize().toJSON(),body:S,duplex:"half",credentials:Y?L:void 0};B=o&&new n(y,J);let F=await(o?D(B,q):D(y,J));const Z=d&&(j==="stream"||j==="response");if(d&&(O||Z&&W)){const z={};["status","statusText","headers"].forEach(xe=>{z[xe]=F[xe]});const X=re.toFiniteNumber(F.headers.get("content-length")),[I,ue]=O&&nT(X,Wp(rT(O),!0))||[];F=new r(oT(F.body,aT,I,()=>{ue&&ue(),W&&W()}),z)}j=j||"text";let M=await h[re.findKey(h,j)||"text"](F,w);return!Z&&W&&W(),await new Promise((z,X)=>{_F(z,X,{data:M,headers:nr.from(F.headers),status:F.status,statusText:F.statusText,config:w,request:B})})}catch(Y){throw W&&W(),Y&&Y.name==="TypeError"&&/Load failed|fetch/i.test(Y.message)?Object.assign(new He("Network Error",He.ERR_NETWORK,w,B),{cause:Y.cause||Y}):He.from(Y,Y&&Y.code,w,B)}}},_7=new Map,PF=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let a=o.length,l=a,c,f,d=_7;for(;l--;
vendor: 4,253 bytes, lines 239-242
239)c=o[l],f=d.get(c),f===void 0&&d.set(c,f=l?new Map:S7(t)),d=f;return f};PF();const PS={http:B9,xhr:g7,fetch:{get:PF}};re.forEach(PS,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const cT=e=>`- ${e}`,O7=e=>re.isFunction(e)||e===null||e===!1,AF={getAdapter:(e,t)=>{e=re.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let a=0;a<n;a++){r=e[a];let l;if(i=r,!O7(r)&&(i=PS[(l=String(r)).toLowerCase()],i===void 0))throw new He(`Unknown adapter '${l}'`);if(i&&(re.isFunction(i)||(i=i.get(t))))break;o[l||"#"+a]=i}if(!i){const a=Object.entries(o).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let l=n?a.length>1?`since : 240`+a.map(cT).join(` 241`):" "+cT(a[0]):"as no adapter specified";throw new He("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i},adapters:PS};function Sb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Nu(null,e)}function fT(e){return Sb(e),e.headers=nr.from(e.headers),e.data=wb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),AF.getAdapter(e.adapter||_d.adapter,e)(e).then(function(r){return Sb(e),r.data=wb.call(e,e.transformResponse,r),r.headers=nr.from(r.headers),r},function(r){return SF(r)||(Sb(e),r&&r.response&&(r.response.data=wb.call(e,e.transformResponse,r.response),r.response.headers=nr.from(r.response.headers))),Promise.reject(r)})}const kF="1.12.2",sg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{sg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const dT={};sg.transitional=function(t,n,r){function i(o,a){return"[Axios v"+kF+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,l)=>{if(t===!1)throw new He(i(a," has been removed"+(n?" in "+n:"")),He.ERR_DEPRECATED);return n&&!dT[a]&&(dT[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,l):!0}};sg.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function E7(e,t,n){if(typeof e!="object")throw new He("options must be an object",He.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const l=e[o],c=l===void 0||a(l,o,e);if(c!==!0)throw new He("option "+o+" must be "+c,He.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new He("Unknown option "+o,He.ERR_BAD_OPTION)}}const Tp={assertOptions:E7,validators:sg},vi=Tp.validators;let ss=class{constructor(t){this.defaults=t||{},this.interceptors={request:new eT,response:new eT}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` 242`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=gs(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Tp.assertOptions(r,{silentJSONParsing:vi.transitional(vi.boolean),forcedJSONParsing:vi.transitional(vi.boolean),clarifyTimeoutError:vi.transitional(vi.boolean)},!1),i!=null&&(re.isFunction(i)?n.paramsSerializer={serialize:i}:Tp.assertOptions(i,{encode:vi.function,serialize:vi.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Tp.assertOptions(n,{baseUrl:vi.spelling("baseURL"),withXsrfToken:vi.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&re.merge(o.common,o[n.method]);o&&re.forEach(["delete","get","head","post","put","patch","common"],w=>{delete o[w]}),n.headers=nr.concat(a,o);const l=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const f=[];this.interceptors.response.forEach(function(y){f.push(y.fulfilled,y.rejected)});let d,h=0,m;if(!c){const w=[fT.bind(this),void 0];
vendor: 2,103 bytes, line 242
242for(w.unshift(...l),w.push(...f),m=w.length,d=Promise.resolve(n);h<m;)d=d.then(w[h++],w[h++]);return d}m=l.length;let g=n;for(;h<m;){const w=l[h++],y=l[h++];try{g=w(g)}catch(x){y.call(this,x);break}}try{d=fT.call(this,g)}catch(w){return Promise.reject(w)}for(h=0,m=f.length;h<m;)d=d.then(f[h++],f[h++]);return d}getUri(t){t=gs(this.defaults,t);const n=OF(t.baseURL,t.url,t.allowAbsoluteUrls);return bF(n,t.params,t.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(t){ss.prototype[t]=function(n,r){return this.request(gs(r||{},{method:t,url:n,data:(r||{}).data}))}});re.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,l){return this.request(gs(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}ss.prototype[t]=n(),ss.prototype[t+"Form"]=n(!0)});let P7=class CF{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(l=>{r.subscribe(l),o=l}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,l){r.reason||(r.reason=new Nu(o,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new CF(function(i){t=i}),cancel:t}}};function A7(e){return function(n){return e.apply(null,n)}}function k7(e){return re.isObject(e)&&e.isAxiosError===!0}const AS={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
242alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(AS).forEach(([e,t])=>{AS[t]=e});function TF(e){const t=new ss(e),n=sF(ss.prototype.request,t);return re.extend(n,ss.prototype,t,{allOwnKeys:!0}),re.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return TF(gs(e,i))},n}const zt=TF(_d);zt.Axios=ss;zt.CanceledError=Nu;zt.CancelToken=P7;zt.isCancel=SF;zt.VERSION=kF;zt.toFormData=ag;zt.AxiosError=He;zt.Cancel=zt.CanceledError;zt.all=function(t){return Promise.all(t)};zt.spread=A7;zt.isAxiosError=k7;zt.mergeConfig=gs;zt.AxiosHeaders=nr;zt.formToJSON=e=>wF(re.isHTMLForm(e)?new FormData(e):e);zt.getAdapter=AF.getAdapter;zt.HttpStatusCode=AS;zt.default=zt;const{Axios:kwe,AxiosError:Cwe,CanceledError:Twe,isCancel:jwe,CancelToken:Nwe,VERSION:Rwe,all:Mwe,Cancel:Iwe,isAxiosError:Dwe,spread:Lwe,toFormData:$we,AxiosHeaders:Fwe,HttpStatusCode:Bwe,formToJSON:qwe,getAdapter:zwe,mergeConfig:Uwe}=zt,C7=typeof window>"u",hT=!C7&&window.self!==window.top,_b=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),bn=[];for(let e=0;e<256;++e)bn.push((e+256).toString(16).slice(1));function T7(e,t=0){return(bn[e[t+0]]+bn[e[t+1]]+bn[e[t+2]]+bn[e[t+3]]+"-"+bn[e[t+4]]+bn[e[t+5]]+"-"+bn[e[t+6]]+bn[e[t+7]]+"-"+bn[e[t+8]]+bn[e[t+9]]+"-"+bn[e[t+10]]+bn[e[t+11]]+bn[e[t+12]]+bn[e[t+13]]+bn[e[t+14]]+bn[e[t+15]]).toLowerCase()}let Ob;const j7=new Uint8Array(16);function N7(){if(!Ob){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ob=crypto.getRandomValues.bind(crypto)}return Ob(j7)}const R7=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),pT={randomUUID:R7};function M7(e,t,n){var i;e=e||{};const r=e.random??((i=e.rng)==null?void 0:i.call(e))??N7();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,T7(r)}function I7(e,t,n){return pT.randomUUID&&!e?pT.randomUUID():M7(e)}class jF extends Error{constructor(t,n,r,i,o){super(t),this.name="Base44Error",this.status=n,this.code=r,this.data=i,this.originalError=o}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function tf({baseURL:e,headers:t={},token:n,interceptResponses:r=!0,onError:i}){const o=zt.create({baseURL:e,headers:{"Content-Type":"application/json",Accept:"application/json",...t}});return n&&(o.defaults.headers.common.Authorization=`Bearer ${n}`),o.interceptors.request.use(a=>{typeof window<"u"&&a.headers.set("X-Origin-URL",window.location.href);const l=I7();if(a.requestId=l,hT)try{window.parent.postMessage({type:"api-request-start",requestId:l,data:{url:e+a.url,method:a.method,body:a.data instanceof FormData?"[FormData object]":a.data}},"*")}catch{}return a}),r&&o.interceptors.response.use(a=>{var l;const c=(l=a.config)===null||l===void 0?void 0:l.requestId;try{hT&&c&&window.parent.postMessage({type:"api-request-end",requestId:c,data:{statusCode:a.status,response:a.data}},"*")}catch{}return a.data},a=>{var l,c,f,d,h,m,g,w;const y=((c=(l=a.response)===null||l===void 0?void 0:l.data)===null||c===void 0?void 0:c.message)||((d=(f=a.response)===null||f===void 0?void 0:f.data)===null||d===void 0?void 0:d.detail)||a.message,x=new jF(y,(h=a.response)===null||h===void 0?void 0:h.status,(g=(m=a.response)===null||m===void 0?void 0:m.data)===null||g===void 0?void 0:g.code,(w=a.response)===null||w===void 0?void 0:w.data,a);return i==null||i(x),Promise.reject(x)}),o}function mT(e,t){return new Proxy({},{get(n,r){if(!(typeof r!="string"||r==="then"||r.startsWith("_")))return D7(e,t,r)}})}function D7(e,t,n){const r=`/apps/${t}/entities/${n}`;return{async list(i,o,a,l){const c={};return i&&(c.sort=i),o&&(c.limit=o),a&&(c.skip=a),l&&(c.fields=Array.isArray(l)?l.
242join(","):l),e.get(r,{params:c})},async filter(i,o,a,l,c){const f={q:JSON.stringify(i)};return o&&(f.sort=o),a&&(f.limit=a),l&&(f.skip=l),c&&(f.fields=Array.isArray(c)?c.join(","):c),e.get(r,{params:f})},async get(i){return e.get(`${r}/${i}`)},async create(i){return e.post(r,i)},async update(i,o){return e.put(`${r}/${i}`,o)},async delete(i){return e.delete(`${r}/${i}`)},async deleteMany(i){return e.delete(r,{data:i})},async bulkCreate(i){return e.post(`${r}/bulk`,i)},async importEntities(i){const o=new FormData;return o.append("file",i,i.name),e.post(`${r}/import`,o,{headers:{"Content-Type":"multipart/form-data"}})}}}function L7(e,t){return{async call(n,r,i){if(!(n!=null&&n.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(r!=null&&r.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:o,queryParams:a,...l}=i??{},c={...l,...o&&{path_params:o},...a&&{query_params:a}};return await e.post(`/apps/${t}/integrations/custom/${n}/${r}`,c)}}}function gT(e,t){const n=L7(e,t);return new Proxy({},{get(r,i){if(!(typeof i!="string"||i==="then"||i.startsWith("_")))return i==="custom"?n:new Proxy({},{get(o,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return async l=>{if(typeof l=="string")throw new Error(`Integration ${a} must receive an object with named parameters, received: ${l}`);let c,f;return l instanceof FormData||l&&Object.values(l).some(d=>d instanceof File)?(c=new FormData,Object.keys(l).forEach(d=>{l[d]instanceof File?c.append(d,l[d],l[d].name):typeof l[d]=="object"&&l[d]!==null?c.append(d,JSON.stringify(l[d])):c.append(d,l[d])}),f="multipart/form-data"):(c=l,f="application/json"),i==="Core"?e.post(`/apps/${t}/integration-endpoints/Core/${a}`,c||l,{headers:{"Content-Type":f}}):e.post(`/apps/${t}/integration-endpoints/installable/${i}/integration-endpoints/${a}`,c||l,{headers:{"Content-Type":f}})}}})}})}function $7(e,t,n,r){return{async me(){return e.get(`/apps/${n}/entities/User/me`)},async updateMe(i){return e.put(`/apps/${n}/entities/User/me`,i)},redirectToLogin(i){var o;if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const a=i?new URL(i,window.location.origin).toString():window.location.href,l=`${(o=r.appBaseUrl)!==null&&o!==void 0?o:""}/login?from_url=${encodeURIComponent(a)}`;window.location.href=l},logout(i){if(delete e.defaults.headers.common.Authorization,typeof window<"u"&&window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch(o){console.error("Failed to remove token from localStorage:",o)}typeof window<"u"&&(i?window.location.href=i:window.location.reload())},setToken(i,o=!0){if(i&&(e.defaults.headers.common.Authorization=`Bearer ${i}`,t.defaults.headers.common.Authorization=`Bearer ${i}`,o&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",i),window.localStorage.setItem("token",i)}catch(a){console.error("Failed to save token to localStorage:",a)}},async loginViaEmailPassword(i,o,a){var l;try{const c=await e.post(`/apps/${n}/auth/login`,{email:i,password:o,...a&&{turnstile_token:a}}),{access_token:f,user:d}=c;return f&&this.setToken(f),{access_token:f,user:d}}catch(c){throw((l=c.response)===null||l===void 0?void 0:l.status)===401&&await this.logout(),c}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(i,o){return e.post(`/apps/${n}/users/invite-user`,{user_email:i,role:o})},register(i){return e.post(`/apps/${n}/auth/register`,i)},verifyOtp({email:i,otpCode:o}){return e.post(`/apps/${n}/auth/verify-otp`,{email:i,otp_code:o})},resendOtp(i){return e.post(`/apps/${n}/auth/resend-otp`,{email:i})},resetPasswordRequest(i){return e.post(`/apps/${n}/auth/reset-password-request`,{email:i})},resetPassword({resetToken:i,newPassword:o}){return e.post(`/apps/${n}/auth/reset-password`,{reset_token:i,new_password:o})},changePassword({userId:i,currentPassword:o,newPassword:a}){return e.post(`/apps/${n}/auth/change-password`,{user_id:i,current_password:o,new_password:a})}}}function F7(e,t,n){return{async getAccessToken(r){const i=`/apps/${t}/auth/sso/accesstoken/${r}`,o={};return n&&(o["on-behalf-of"]=`Bearer ${n}`),e.get(i,{headers:o})}}}
242function B7(e,t){return{async getAccessToken(n){if(!n||typeof n!="string")throw new Error("Integration type is required and must be a string");return(await e.get(`/apps/${t}/external-auth/tokens/${n}`)).access_token}}}function lg(e={}){const{storageKey:t="base44_access_token",paramName:n="access_token",saveToStorage:r=!0,removeFromUrl:i=!0}=e;let o=null;if(typeof window<"u"&&window.location)try{const a=new URLSearchParams(window.location.search);if(o=a.get(n),o){if(r&&NF(o,{storageKey:t}),i){a.delete(n);const l=`${window.location.pathname}${a.toString()?`?${a.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,l)}return o}}catch(a){console.error("Error retrieving token from URL:",a)}if(typeof window<"u"&&window.localStorage)try{return o=window.localStorage.getItem(t),o}catch(a){console.error("Error retrieving token from local storage:",a)}return null}function NF(e,t){const{storageKey:n="base44_access_token"}=t;if(typeof window>"u"||!window.localStorage||!e)return!1;try{return window.localStorage.setItem(n,e),window.localStorage.setItem("token",e),!0}catch(r){return console.error("Error saving token to local storage:",r),!1}}function q7(e){const{storageKey:t="base44_access_token"}=e;if(typeof window>"u"||!window.localStorage)return!1;try{return window.localStorage.removeItem(t),!0}catch(n){return console.error("Error removing token from local storage:",n),!1}}function z7(e,t){const{serverUrl:n,appId:r,loginPath:i="/login"}=t;if(!n||!r)throw new Error("serverUrl and appId are required to construct login URL");const o=encodeURIComponent(e||(typeof window<"u"?window.location.href:""));return`${n}${i}?from_url=${o}&app_id=${r}`}function yT(e,t){return{async invoke(n,r){if(typeof r=="string")throw new Error(`Function ${n} must receive an object with named parameters, received: ${r}`);let i,o;return r instanceof FormData||r&&Object.values(r).some(a=>a instanceof File)?(i=new FormData,Object.keys(r).forEach(a=>{r[a]instanceof File?i.append(a,r[a],r[a].name):typeof r[a]=="object"&&r[a]!==null?i.append(a,JSON.stringify(r[a])):i.append(a,r[a])}),o="multipart/form-data"):(i=r,o="application/json"),e.post(`/apps/${t}/functions/${n}`,i||r,{headers:{"Content-Type":o}})}}}function vT({axios:e,getSocket:t,appId:n,serverUrl:r,token:i}){const o=`/apps/${n}/agents`;return{getConversations:()=>e.get(`${o}/conversations`),getConversation:g=>e.get(`${o}/conversations/${g}`),listConversations:g=>e.get(`${o}/conversations`,{params:g}),createConversation:g=>e.post(`${o}/conversations`,g),addMessage:async(g,w)=>{const y=`/agent-conversations/${g.id}`;return await t().updateModel(y,{...g,messages:[...g.messages||[],w]}),e.post(`${o}/conversations/${g.id}/messages`,w)},subscribeToConversation:(g,w)=>{const y=`/agent-conversations/${g}`;return t().subscribeToRoom(y,{connect:()=>{},update_model:({data:S})=>{const P=JSON.parse(S);w==null||w(P)}})},getWhatsAppConnectURL:g=>{const w=`${r}/api/apps/${n}/agents/${encodeURIComponent(g)}/whatsapp`,y=i??lg();return y?`${w}?token=${y}`:w}}}function bT(e,t){const n=`/app-logs/${t}`;return{async logUserInApp(r){await e.post(`${n}/log-user-in-app/${r}`)},async fetchLogs(r={}){return await e.get(n,{params:r})},async getStats(r={}){return await e.get(`${n}/stats`,{params:r})}}}function U7(e,t){return{async inviteUser(n,r){if(r!=="user"&&r!=="admin")throw new Error(`Invalid role: "${r}". Role must be either "user" or "admin".`);return await e.post(`/apps/${t}/runtime/users/invite-user`,{user_email:n,role:r})}}}const ji=Object.create(null);ji.open="0";ji.close="1";ji.ping="2";ji.pong="3";ji.message="4";ji.upgrade="5";ji.noop="6";const jp=Object.create(null);Object.keys(ji).forEach(e=>{jp[ji[e]]=e});const kS={type:"error",data:"parser error"},RF=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",MF=typeof ArrayBuffer=="function",IF=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,FO=({type:e,data:t},n,r)=>RF&&t instanceof Blob?n?r(t):xT(t,r):MF&&(t instanceof ArrayBuffer||IF(t))?n?r(t):xT(new Blob([t]),r):r(ji[e]+(t||"")),xT=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function wT(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Eb;function W7(e,t){if(RF&&e.data instanceof Blob)return e.data.arrayBuffer().then(wT).then(t);
vendor: 39,004 bytes, line 242
242if(MF&&(e.data instanceof ArrayBuffer||IF(e.data)))return t(wT(e.data));FO(e,!1,n=>{Eb||(Eb=new TextEncoder),t(Eb.encode(n))})}const ST="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<ST.length;e++)nf[ST.charCodeAt(e)]=e;const H7=e=>{let t=e.length*.75,n=e.length,r,i=0,o,a,l,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const f=new ArrayBuffer(t),d=new Uint8Array(f);for(r=0;r<n;r+=4)o=nf[e.charCodeAt(r)],a=nf[e.charCodeAt(r+1)],l=nf[e.charCodeAt(r+2)],c=nf[e.charCodeAt(r+3)],d[i++]=o<<2|a>>4,d[i++]=(a&15)<<4|l>>2,d[i++]=(l&3)<<6|c&63;return f},V7=typeof ArrayBuffer=="function",BO=(e,t)=>{if(typeof e!="string")return{type:"message",data:DF(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:K7(e.substring(1),t)}:jp[n]?e.length>1?{type:jp[n],data:e.substring(1)}:{type:jp[n]}:kS},K7=(e,t)=>{if(V7){const n=H7(e);return DF(n,t)}else return{base64:!0,data:e}},DF=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},LF="�",G7=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,a)=>{FO(o,!1,l=>{r[a]=l,++i===n&&t(r.join(LF))})})},Y7=(e,t)=>{const n=e.split(LF),r=[];for(let i=0;i<n.length;i++){const o=BO(n[i],t);if(r.push(o),o.type==="error")break}return r};function X7(){return new TransformStream({transform(e,t){W7(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let Pb;function Zh(e){return e.reduce((t,n)=>t+n.length,0)}function ep(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function Q7(e,t){Pb||(Pb=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(a,l){for(n.push(a);;){if(r===0){if(Zh(n)<1)break;const c=ep(n,1);o=(c[0]&128)===128,i=c[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Zh(n)<2)break;const c=ep(n,2);i=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(r===2){if(Zh(n)<8)break;const c=ep(n,8),f=new DataView(c.buffer,c.byteOffset,c.length),d=f.getUint32(0);if(d>Math.pow(2,21)-1){l.enqueue(kS);break}i=d*Math.pow(2,32)+f.getUint32(4),r=3}else{if(Zh(n)<i)break;const c=ep(n,i);l.enqueue(BO(o?c:Pb.decode(c),t)),r=0}if(i===0||i>e){l.enqueue(kS);break}}}})}const $F=4;function Kt(e){if(e)return J7(e)}function J7(e){for(var t in Kt.prototype)e[t]=Kt.prototype[t];return e}Kt.prototype.on=Kt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Kt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Kt.prototype.off=Kt.prototype.removeListener=Kt.prototype.removeAllListeners=Kt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};Kt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};Kt.prototype.emitReserved=Kt.prototype.emit;Kt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Kt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const ug=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),$r=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Z7="arraybuffer";function FF(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const eK=$r.setTimeout,tK=$r.clearTimeout;function cg(e,t){t.useNativeTimers?(e.setTimeoutFn=eK.bind($r),e.clearTimeoutFn=tK.bind($r)):(e.setTimeoutFn=$r.setTimeout.bind($r),e.clearTimeoutFn=$r.clearTimeout.bind($r))}const nK=1.33;function rK(e){return typeof e=="string"?iK(e):Math.ceil((e.byteLength||e.size)*nK)}function iK(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function BF(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function oK(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function aK(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class sK extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class qO extends Kt{constructor(t){super(),this.writable=!1,cg(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new sK(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=BO(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=oK(t);return n.length?"?"+n:""}}class lK extends qO{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Y7(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,G7(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=BF()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let qF=!1;try{qF=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const uK=qF;function cK(){}class fK extends lK{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Ai extends Kt{constructor(t,n,r){super(),this.createRequest=t,cg(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=FF(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=Ai.requestsCount++,Ai.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=cK,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Ai.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Ai.requestsCount=0;Ai.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",_T);else if(typeof addEventListener=="function"){const e="onpagehide"in $r?"pagehide":"unload";addEventListener(e,_T,!1)}}function _T(){for(let e in Ai.requests)Ai.requests.hasOwnProperty(e)&&Ai.requests[e].abort()}const dK=(function(){const e=zF({xdomain:!1});return e&&e.responseType!==null})();class hK extends fK{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=dK&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Ai(zF,this.uri(),t)}}function zF(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||uK))return new XMLHttpRequest}catch{}if(!t)try{return new $r[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const UF=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class pK extends qO{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=UF?{}:FF(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;FO(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}i&&ug(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=BF()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Ab=$r.WebSocket||$r.MozWebSocket;class mK extends pK{createSocket(t,n,r){return UF?new Ab(t,n,r):n?new Ab(t,n):new Ab(t)}doWrite(t,n){this.ws.send(n)}}class gK extends qO{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=Q7(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=X7();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const o=()=>{r.read().then(({done:l,value:c})=>{l||(this.onPacket(c),o())}).catch(l=>{})};o();const a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&ug(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const yK={websocket:mK,webtransport:gK,polling:hK},vK=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,bK=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function CS(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=vK.exec(e||""),o={},a=14;for(;a--;)o[bK[a]]=i[a]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=xK(o,o.path),o.queryKey=wK(o,o.query),o}function xK(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function wK(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}const TS=typeof addEventListener=="function"&&typeof removeEventListener=="function",Np=[];TS&&addEventListener("offline",()=>{Np.forEach(e=>e())},!1);class la extends Kt{constructor(t,n){if(super(),this.binaryType=Z7,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=CS(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=CS(n.host).host);cg(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=aK(this.opts.query)),TS&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Np.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=$F,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&la.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",la.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=rK(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,ug(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(la.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),TS&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Np.indexOf(this._offlineEventListener);r!==-1&&Np.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}la.protocol=$F;class SK extends la{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;la.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;la.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(d(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=n.name,this.emitReserved("upgradeError",m)}}))};function o(){r||(r=!0,d(),n.close(),n=null)}const a=h=>{const m=new Error("probe error: "+h);m.transport=n.name,o(),this.emitReserved("upgradeError",m)};function l(){a("transport closed")}function c(){a("socket closed")}function f(h){n&&h.name!==n.name&&o()}const d=()=>{n.removeListener("open",i),n.removeListener("error",a),n.removeListener("close",l),this.off("close",c),this.off("upgrading",f)};n.once("open",i),n.once("error",a),n.once("close",l),this.once("close",c),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let _K=class extends SK{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>yK[i]).filter(i=>!!i)),super(t,r)}};function OK(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=CS(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const EK=typeof ArrayBuffer=="function",PK=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,WF=Object.prototype.toString,AK=typeof Blob=="function"||typeof Blob<"u"&&WF.call(Blob)==="[object BlobConstructor]",kK=typeof File=="function"||typeof File<"u"&&WF.call(File)==="[object FileConstructor]";function zO(e){return EK&&(e instanceof ArrayBuffer||PK(e))||AK&&e instanceof Blob||kK&&e instanceof File}function Rp(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Rp(e[n]))return!0;return!1}if(zO(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Rp(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Rp(e[n]))return!0;return!1}function CK(e){const t=[],n=e.data,r=e;return r.data=jS(n,t),r.attachments=t.length,{packet:r,buffers:t}}function jS(e,t){if(!e)return e;if(zO(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=jS(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=jS(e[r],t));return n}return e}function TK(e,t){return e.data=NS(e.data,t),delete e.attachments,e}function NS(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=NS(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=NS(e[n],t));return e}const jK=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],NK=5;var Je;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Je||(Je={}));class RK{constructor(t){this.replacer=t}encode(t){return(t.type===Je.EVENT||t.type===Je.ACK)&&Rp(t)?this.encodeAsBinary({type:t.type===Je.EVENT?Je.BINARY_EVENT:Je.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Je.BINARY_EVENT||t.type===Je.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=CK(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function OT(e){return Object.prototype.toString.call(e)==="[object Object]"}class UO extends Kt{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===Je.BINARY_EVENT;r||n.type===Je.BINARY_ACK?(n.type=r?Je.EVENT:Je.ACK,this.reconstructor=new MK(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(zO(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(Je[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Je.BINARY_EVENT||r.type===Je.BINARY_ACK){const o=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const a=t.substring(o,n);if(a!=Number(a)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(a)}if(t.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(o,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const a=t.charAt(n);if(a==null||Number(a)!=a){--n;break}if(n===t.length)break}r.id=Number(t.substring(o,n+1))}if(t.charAt(++n)){const o=this.tryParse(t.substr(n));if(UO.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Je.CONNECT:return OT(n);case Je.DISCONNECT:return n===void 0;case Je.CONNECT_ERROR:return typeof n=="string"||OT(n);case Je.EVENT:case Je.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&jK.indexOf(n[0])===-1);case Je.ACK:case Je.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class MK{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=TK(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const IK=Object.freeze(Object.defineProperty({__proto__:null,Decoder:UO,Encoder:RK,get PacketType(){return Je},protocol:NK},Symbol.toStringTag,{value:"Module"}));function ni(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const DK=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class HF extends Kt{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[ni(t,"open",this.onopen.bind(this)),ni(t,"packet",this.onpacket.bind(this)),ni(t,"error",this.onerror.bind(this)),ni(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,o;if(DK.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const a={type:Je.EVENT,data:n};if(a.options={},a.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const d=this.ids++,h=n.pop();this._registerAckCallback(d,h),a.id=d}const l=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,c=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!l||(c?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===t&&this.sendBuffer.splice(l,1);n.call(this,new Error("operation has timed out"))},i),a=(...l)=>{this.io.clearTimeoutFn(o),n.apply(this,l)};a.withError=!0,this.acks[t]=a}emitWithAck(t,...n){return new Promise((r,i)=>{const o=(a,l)=>a?i(a):r(l);o.withError=!0,n.push(o),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Je.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Je.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Je.EVENT:case Je.BINARY_EVENT:this.onevent(t);break;case Je.ACK:case Je.BINARY_ACK:this.onack(t);break;case Je.DISCONNECT:this.ondisconnect();break;case Je.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:Je.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Je.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function Ru(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ru.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Ru.prototype.reset=function(){this.attempts=0};Ru.prototype.setMin=function(e){this.ms=e};Ru.prototype.setMax=function(e){this.max=e};Ru.prototype.setJitter=function(e){this.jitter=e};class RS extends Kt{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,cg(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Ru({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||IK;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new _K(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=ni(n,"open",function(){r.onopen(),t&&t()}),o=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),t?t(l):this.maybeReconnectOnOpen()},a=ni(n,"error",o);if(this._timeout!==!1){const l=this._timeout,c=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},l);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(ni(t,"ping",this.onping.bind(this)),ni(t,"data",this.ondata.bind(this)),ni(t,"error",this.onerror.bind(this)),ni(t,"close",this.onclose.bind(this)),ni(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){ug(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new HF(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}
242cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Lc={};function Mp(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=OK(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,a=Lc[i]&&o in Lc[i].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let c;return l?c=new RS(r,t):(Lc[i]||(Lc[i]=new RS(r,t)),c=Lc[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(Mp,{Manager:RS,Socket:HF,io:Mp,connect:Mp});function ET(e,t){var n;const r=Mp(e.serverUrl,{path:e.mountPath,transports:e.transports,query:{app_id:e.appId,token:(n=e.token)!==null&&n!==void 0?n:lg()}});return r.on("connect",async()=>{var i;return console.log("connect",r.id),(i=t.connect)===null||i===void 0?void 0:i.call(t)}),r.on("update_model",async i=>{var o;return(o=t.update_model)===null||o===void 0?void 0:o.call(t,i)}),r.on("error",async i=>{var o;return(o=t.error)===null||o===void 0?void 0:o.call(t,i)}),r.on("connect_error",async i=>{var o;return console.error("connect_error",i),(o=t.error)===null||o===void 0?void 0:o.call(t,i)}),r}function LK({config:e}){let t={...e};const n={},r={connect:async()=>{const g=[];Object.keys(n).forEach(w=>{c(w);const y=h(w);y==null||y.forEach(({connect:x})=>{const S=async()=>x==null?void 0:x();g.push(S())})}),await Promise.all(g)},update_model:async g=>{const y=h(g.room).map(x=>{var S;return(S=x.update_model)===null||S===void 0?void 0:S.call(x,g)});await Promise.all(y)},error:async g=>{console.error("error",g);const w=Object.values(n).flat().map(y=>{var x;return(x=y.error)===null||x===void 0?void 0:x.call(y,g)});await Promise.all(w)}};let i=ET(e,r);function o(){a()}function a(){i&&i.disconnect()}function l(g){o(),t={...t,...g},i=ET(t,r)}function c(g){i.emit("join",g)}function f(g){i.emit("leave",g)}async function d(g,w){var y;const x=JSON.stringify(w);return(y=r.update_model)===null||y===void 0?void 0:y.call(r,{room:g,data:x})}function h(g){return n[g]}return{socket:i,subscribeToRoom:(g,w)=>(n[g]||(c(g),n[g]=[]),n[g].push(w),()=>{var y,x;n[g]=(x=(y=n[g])===null||y===void 0?void 0:y.filter(S=>S!==w))!==null&&x!==void 0?x:[],n[g].length===0&&f(g)}),updateConfig:l,updateModel:d,disconnect:a}}const $c=typeof window<"u"?window:{base44SharedInstances:{}};function $K(e,t){return $c.base44SharedInstances||($c.base44SharedInstances={}),$c.base44SharedInstances[e]||($c.base44SharedInstances[e]={instance:t()}),$c.base44SharedInstances[e].instance}const FK="__user_heartbeat_event__",PT="analytics-enable",AT="base44_analytics_session_id",BK={enabled:!1,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},qK="analytics",Vt=$K(qK,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,sessionContext:null,config:{...BK,...VK()}})),zK=({axiosClient:e,serverUrl:t,appId:n,userAuthModule:r})=>{var i;const{maxQueueSize:o,throttleTime:a,batchSize:l}=Vt.config;if(!(!((i=Vt.config)===null||i===void 0)&&i.enabled))return{track:()=>{},cleanup:()=>{}};let c;const f=`${t}/api/apps/${n}/analytics/track/batch`,d=async E=>{await e.request({method:"POST",url:`/apps/${n}/analytics/track/batch`,data:{events:E}})},h=E=>{try{const C=JSON.stringify({events:E}),O=new Blob([C],{type:"application/json"});return typeof navigator>"u"||C.length>6e4||!navigator.sendBeacon(f,O)}catch{return!1}},m=async(E,C={})=>
242{if(E.length===0)return;const O=await HK(r),A=E.map(WK(O));try{(!C.isBeacon||!h(A))&&await d(A)}catch{}},g=()=>{CT(m,{throttleTime:a,batchSize:l})},w=E=>{if(Vt.requestsQueue.length>=o)return;const C=UK();Vt.requestsQueue.push({...E,...C}),g()},y=()=>{CT(m,{throttleTime:a,batchSize:l}),c=TT(w)},x=()=>{kT(),c==null||c();const E=Vt.requestsQueue.splice(0);m(E,{isBeacon:!0})},S=()=>{typeof window>"u"||(document.visibilityState==="hidden"?x():document.visibilityState==="visible"&&y())},P=()=>{kT(),c==null||c(),typeof window<"u"&&window.removeEventListener("visibilitychange",S)};return g(),c=TT(w),typeof window<"u"&&window.addEventListener("visibilitychange",S),{track:w,cleanup:P}};function kT(){Vt.isProcessing=!1}async function CT(e,t){if(Vt.isProcessing)return;Vt.isProcessing=!0;const{throttleTime:n=1e3,batchSize:r=30}=t??{};for(;Vt.isProcessing&&Vt.requestsQueue.length>0;){const i=Vt.requestsQueue.splice(0,r);i.length&&await e(i),await new Promise(o=>setTimeout(o,n))}Vt.isProcessing=!1}function TT(e){var t;if(Vt.isHeartBeatProcessing||((t=Vt.config.heartBeatInterval)!==null&&t!==void 0?t:0)<10)return()=>{};Vt.isHeartBeatProcessing=!0;const n=setInterval(()=>{e({eventName:FK})},Vt.config.heartBeatInterval);return()=>{clearInterval(n),Vt.isHeartBeatProcessing=!1}}function UK(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function WK(e){return t=>({event_name:t.eventName,properties:t.properties,timestamp:t.timestamp,page_url:t.pageUrl,...e})}let kb=null;async function HK(e){if(!Vt.sessionContext){if(!kb){const t=KK();kb=e.me().then(n=>({user_id:n.id,session_id:t})).catch(()=>({user_id:null,session_id:t}))}Vt.sessionContext=await kb}return Vt.sessionContext}function VK(){if(typeof window>"u")return;const t=new URLSearchParams(window.location.search).get(PT);if(t==null||!t.length)return;const n=new URLSearchParams(window.location.search);n.delete(PT);const r=window.location.pathname+(n.toString()?"?"+n.toString():"");return window.history.replaceState({},"",r),{enabled:t==="true"}}function KK(){if(typeof window>"u")return _b();try{const e=localStorage.getItem(AT);if(!e){const t=_b();return localStorage.setItem(AT,t),t}return e}catch{return _b()}}function WO(e){const{serverUrl:t="https://base44.app",appId:n,token:r,serviceToken:i,requiresAuth:o=!1,appBaseUrl:a,options:l,functionsVersion:c,headers:f}=e,d={serverUrl:t,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:n,token:r};let h=null;const m=()=>(h||(h=LK({config:d})),h),g={...f,"X-App-Id":String(n)},w=c?{...g,"Base44-Functions-Version":c}:g,y=tf({baseURL:`${t}/api`,headers:g,token:r,onError:l==null?void 0:l.onError}),x=tf({baseURL:`${t}/api`,headers:w,token:r,interceptResponses:!1,onError:l==null?void 0:l.onError}),S=tf({baseURL:`${t}/api`,headers:g,token:i,onError:l==null?void 0:l.onError}),P=tf({baseURL:`${t}/api`,headers:w,token:i,interceptResponses:!1}),E=$7(y,x,n,{appBaseUrl:a}),C={entities:mT(y,n),integrations:gT(y,n),auth:E,functions:yT(x,n),agents:vT({axios:y,getSocket:m,appId:n,serverUrl:t,token:r}),appLogs:bT(y,n),users:U7(y,n),analytics:zK({axiosClient:y,serverUrl:t,appId:n,userAuthModule:E}),cleanup:()=>{C.analytics.cleanup(),h&&h.disconnect()}},O={entities:mT(S,n),integrations:gT(S,n),sso:F7(S,n,r),connectors:B7(S,n),functions:yT(P,n),agents:vT({axios:S,getSocket:m,appId:n,serverUrl:t,token:r}),appLogs:bT(S,n),cleanup:()=>{h&&h.disconnect()}};if(typeof window<"u"){const j=r||lg();j&&C.auth.setToken(j)}return o&&typeof window<"u"&&setTimeout(async()=>{try{await C.auth.isAuthenticated()||C.auth.redirectToLogin(window.location.href)}catch(j){console.error("Authentication check failed:",j),C.auth.redirectToLogin(window.location.href)}},0),{...C,setToken(j){C.auth.setToken(j),h&&h.updateConfig({token:j}),d.token=j},getConfig(){return{serverUrl:t,appId:n,requiresAuth:o}},get asServiceRole(){if(!i)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return O}}}function GK(e){const t=e.headers.get("Authorization"),n=e.headers.get("Base44-Service-Authorization"),r=e.headers.get("Base44-App-Id"),i=e.headers.get("Base44-Api-Url"),o=e.headers.get("Base44-Functions-Version"),a=e.headers.get("Base44-State");if(!r)throw new Error("Base44-App-Id header is required, but is was not found on the request");let l,c;if(n!==null){if(n===""||!n.startsWith("Bearer ")||n.split(" ").length!==2)throw new Error('Invalid authorization header format. Expected "Bearer <token>"');l=n.split(" ")[1]}if(t!==null){if(t===""||!t.startsWith("Bearer ")||t.split(" ").length!==2)throw new Error('Invalid authorization header format. Expected "Bearer <token>"');c=t.split(" ")[1]}const f={};return a&&(f["Base44-State"]=a),WO({serverUrl:i||"https://base44.app",appId:r,token:c,serviceToken:l,functionsVersion:o??void 0,headers:f})}const YK=Object.freeze(Object.defineProperty({__proto__:null,Base44Error:jF,createClient:WO,createClientFromRequest:GK,getAccessToken:lg,getLoginUrl:z7,removeAccessToken:q7,saveAcce
242ssToken:NF},Symbol.toStringTag,{value:"Module"})),VF=typeof window>"u",XK=VF?{localStorage:new Map}:window,cf=XK.localStorage,QK=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase(),cl=(e,{defaultValue:t=void 0,removeFromUrl:n=!1}={})=>{if(VF)return t;const r=`base44_${QK(e)}`,i=new URLSearchParams(window.location.search),o=i.get(e);if(n){i.delete(e);const l=`${window.location.pathname}${i.toString()?`?${i.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,l)}if(o)return cf.setItem(r,o),o;if(t)return cf.setItem(r,t),t;const a=cf.getItem(r);return a||null},JK=()=>(cl("clear_access_token")==="true"&&(cf.removeItem("base44_access_token"),cf.removeItem("token")),{appId:cl("app_id",{defaultValue:"68d6b1e1b844437c4d1d7614"}),token:cl("access_token",{removeFromUrl:!0}),fromUrl:cl("from_url",{defaultValue:window.location.href}),functionsVersion:cl("functions_version",{defaultValue:"prod"}),appBaseUrl:cl("app_base_url",{defaultValue:void 0})}),rf={...JK()},{appId:ZK,token:eG,functionsVersion:tG,appBaseUrl:nG}=rf,rn=WO({appId:ZK,token:eG,functionsVersion:tG,serverUrl:"",requiresAuth:!1,appBaseUrl:nG}),KF=T.createContext(),rG=({children:e})=>{const[t,n]=T.useState(null),[r,i]=T.useState(!1),[o,a]=T.useState(!0),[l,c]=T.useState(!0),[f,d]=T.useState(null),[h,m]=T.useState(null);T.useEffect(()=>{g()},[]);const g=async()=>{var S,P;try{c(!0),d(null);const E=tf({baseURL:"/api/apps/public",headers:{"X-App-Id":rf.appId},token:rf.token,interceptResponses:!0});try{const C=await E.get(`/prod/public-settings/by-id/${rf.appId}`);m(C),rf.token?await w():(a(!1),i(!1)),c(!1)}catch(C){if(console.error("App state check failed:",C),C.status===403&&((P=(S=C.data)==null?void 0:S.extra_data)!=null&&P.reason)){const O=C.data.extra_data.reason;d(O==="auth_required"?{type:"auth_required",message:"Authentication required"}:O==="user_not_registered"?{type:"user_not_registered",message:"User not registered for this app"}:{type:O,message:C.message})}else d({type:"unknown",message:C.message||"Failed to load app"});c(!1),a(!1)}}catch(E){console.error("Unexpected error:",E),d({type:"unknown",message:E.message||"An unexpected error occurred"}),c(!1),a(!1)}},w=async()=>{try{a(!0);const S=await rn.auth.me();n(S),i(!0),a(!1)}catch(S){console.error("User auth check failed:",S),a(!1),i(!1),(S.status===401||S.status===403)&&d({type:"auth_required",message:"Authentication required"})}},y=(S=!0)=>{n(null),i(!1),S?rn.auth.logout(window.location.href):rn.auth.logout()},x=()=>{rn.auth.redirectToLogin(window.location.href)};return v.jsx(KF.Provider,{value:{user:t,isAuthenticated:r,isLoadingAuth:o,isLoadingPublicSettings:l,authError:f,appPublicSettings:h,logout:y,navigateToLogin:x,checkAppState:g},children:e})},GF=()=>{const e=T.useContext(KF);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e};var Cb={};const iG=A8(YK);var jT;function oG(){if(jT)return Cb;jT=1;const{createClient:e}=iG;return Cb.base44=e({appId:"68d6b1e1b844437c4d1d7614",serverUrl:"https://base44.app"}),Cb}var Tb,NT;function aG(){if(NT)return Tb;NT=1;const{base44:e}=oG();return Tb=new Proxy({},{get:(t,n)=>new Proxy({},{get:(r,i)=>{if(n==="User"){if(i==="me")return e.auth.me;if(i==="loginWithRedirect"||i==="login")return e.auth.loginWithRedirect;if(i==="logout")return e.auth.logout;if(i==="updateMyUserData")return e.auth.updateMe}return e.entities[n][i]}})}),Tb}var Jl=aG();function RT(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function YF(...e){return t=>{let n=!1;const r=e.map(i=>{const o=RT(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():RT(e[i],null)}}}}function Dt(...e){return T.useCallback(YF(...e),e)}function Zl(e){const t=sG(e),n=T.forwardRef((r,i)=>{const{children:o,...a}=r,l=T.Children.toArray(o),c=l.find(uG);if(c){const f=c.props.children,d=l.map(h=>h===c?T.Children.count(f)>1?T.Children.only(null):T.isValidElement(f)?f.props.children:null:h);return v.jsx(t,{...a,ref:i,children:T.isValidElement(f)?T.cloneElement(f,void 0,d):null})}return v.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}var Mu=Zl("Slot");function sG(e){const t=T.forwardRef((n,r)=>{const{children:i,...o}=n;if(T.isValidElement(i)){const a=fG(i),l=cG(o,i.props);return i.type!==T.Fragment&&(l.ref=r?YF(r,a):a),T.cloneElement(i,l)}return T.Children.count(i)>1?T.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var XF=Symbol("radix.slottable");function lG(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=XF,t}function uG(e){return T.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===XF}function cG(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...l)=>{const c=o(...l);return i(...l),c}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}
242:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function fG(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const dG=Cs("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),ht=T.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},o)=>{const a=r?Mu:"button";return v.jsx(a,{className:Pe(dG({variant:t,size:n,className:e})),ref:o,...i})});ht.displayName="Button";const jt=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:Pe("rounded-xl border bg-card text-card-foreground shadow",e),...t}));jt.displayName="Card";const Tn=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:Pe("flex flex-col space-y-1.5 p-6",e),...t}));Tn.displayName="CardHeader";const jn=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:Pe("font-semibold leading-none tracking-tight",e),...t}));jn.displayName="CardTitle";const hG=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:Pe("text-sm text-muted-foreground",e),...t}));hG.displayName="CardDescription";const Nt=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:Pe("p-6 pt-0",e),...t}));Nt.displayName="CardContent";const pG=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:Pe("flex items-center p-6 pt-0",e),...t}));pG.displayName="CardFooter";const qr=T.forwardRef(({className:e,type:t,...n},r)=>v.jsx("input",{type:t,className:Pe("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));qr.displayName="Input";var mG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ut=mG.reduce((e,t)=>{const n=Zl(`Primitive.${t}`),r=T.forwardRef((i,o)=>{const{asChild:a,...l}=i,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(c,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function gG(e,t){e&&vd.flushSync(()=>e.dispatchEvent(t))}var yG="Label",QF=T.forwardRef((e,t)=>v.jsx(ut.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));QF.displayName=yG;var JF=QF;const vG=Cs("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),An=T.forwardRef(({className:e,...t},n)=>v.jsx(JF,{ref:n,className:Pe(vG(),e),...t}));An.displayName=JF.displayName;function MT(e,[t,n]){return Math.min(n,Math.max(t,e))}function st(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function bG(e,t){const n=T.createContext(t),r=o=>{const{children:a,...l}=o,c=T.useMemo(()=>l,Object.values(l));return v.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function i(o){const a=T.useContext(n);if(a)return a;
vendor: 44,057 bytes, line 242
242if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,i]}function Iu(e,t=[]){let n=[];function r(o,a){const l=T.createContext(a),c=n.length;n=[...n,a];const f=h=>{var S;const{scope:m,children:g,...w}=h,y=((S=m==null?void 0:m[e])==null?void 0:S[c])||l,x=T.useMemo(()=>w,Object.values(w));return v.jsx(y.Provider,{value:x,children:g})};f.displayName=o+"Provider";function d(h,m){var y;const g=((y=m==null?void 0:m[e])==null?void 0:y[c])||l,w=T.useContext(g);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${o}\``)}return[f,d]}const i=()=>{const o=n.map(a=>T.createContext(a));return function(l){const c=(l==null?void 0:l[e])||o;return T.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return i.scopeName=e,[r,xG(i,...t)]}function xG(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=r.reduce((l,{useScope:c,scopeName:f})=>{const h=c(o)[`__scope${f}`];return{...l,...h}},{});return T.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function wG(e){const t=e+"CollectionProvider",[n,r]=Iu(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=y=>{const{scope:x,children:S}=y,P=H.useRef(null),E=H.useRef(new Map).current;return v.jsx(i,{scope:x,itemMap:E,collectionRef:P,children:S})};a.displayName=t;const l=e+"CollectionSlot",c=Zl(l),f=H.forwardRef((y,x)=>{const{scope:S,children:P}=y,E=o(l,S),C=Dt(x,E.collectionRef);return v.jsx(c,{ref:C,children:P})});f.displayName=l;const d=e+"CollectionItemSlot",h="data-radix-collection-item",m=Zl(d),g=H.forwardRef((y,x)=>{const{scope:S,children:P,...E}=y,C=H.useRef(null),O=Dt(x,C),A=o(d,S);return H.useEffect(()=>(A.itemMap.set(C,{ref:C,...E}),()=>void A.itemMap.delete(C))),v.jsx(m,{[h]:"",ref:O,children:P})});g.displayName=d;function w(y){const x=o(e+"CollectionConsumer",y);return H.useCallback(()=>{const P=x.collectionRef.current;if(!P)return[];const E=Array.from(P.querySelectorAll(`[${h}]`));return Array.from(x.itemMap.values()).sort((A,j)=>E.indexOf(A.ref.current)-E.indexOf(j.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:f,ItemSlot:g},w,r]}var SG=T.createContext(void 0);function _G(e){const t=T.useContext(SG);return e||t||"ltr"}function ys(e){const t=T.useRef(e);return T.useEffect(()=>{t.current=e}),T.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function OG(e,t=globalThis==null?void 0:globalThis.document){const n=ys(e);T.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var EG="DismissableLayer",MS="dismissableLayer.update",PG="dismissableLayer.pointerDownOutside",AG="dismissableLayer.focusOutside",IT,ZF=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fg=T.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...c}=e,f=T.useContext(ZF),[d,h]=T.useState(null),m=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=T.useState({}),w=Dt(t,j=>h(j)),y=Array.from(f.layers),[x]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),S=y.indexOf(x),P=d?y.indexOf(d):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,C=P>=S,O=TG(j=>{const R=j.target,L=[...f.branches].some(q=>q.contains(R));!C||L||(i==null||i(j),a==null||a(j),j.defaultPrevented||l==null||l())},m),A=jG(j=>{const R=j.target;[...f.branches].some(q=>q.contains(R))||(o==null||o(j),a==null||a(j),j.defaultPrevented||l==null||l())},m);return OG(j=>{P===f.layers.size-1&&(r==null||r(j),!j.defaultPrevented&&l&&(j.preventDefault(),l()))},m),T.useEffect(()=>{if(d)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(IT=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),DT(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=IT)}},[d,m,n,f]),T.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),DT())},[d,f]),T.useEffect(()=>{const j=()=>g({});return document.addEventListener(MS,j),()=>document.removeEventListener(MS,j)},[]),v.jsx(ut.div,{...c,ref:w,style:{pointerEvents:E?C?"auto":"none":void 0,...e.style},onFocusCapture:st(e.onFocusCapture,A.onFocusCapture),onBlurCapture:st(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:st(e.onPointerDownCapture,O.onPointerDownCapture)})});fg.displayName=EG;var kG="DismissableLayerBranch",CG=T.forwardRef((e,t)=>{const n=T.useContext(ZF),r=T.useRef(null),i=Dt(t,r);return T.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),v.jsx(ut.div,{...e,ref:i})});CG.displayName=kG;function TG(e,t=globalThis==null?void 0:globalThis.document){const n=ys(e),r=T.useRef(!1),i=T.useRef(()=>{});return T.useEffect(()=>{const o=l=>{if(l.target&&!r.current){let c=function(){eB(PG,n,f,{discrete:!0})};const f={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function jG(e,t=globalThis==null?void 0:globalThis.document){const n=ys(e),r=T.useRef(!1);return T.useEffect(()=>{const i=o=>{o.target&&!r.current&&eB(AG,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function DT(){const e=new CustomEvent(MS);document.dispatchEvent(e)}function eB(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?gG(i,o):i.dispatchEvent(o)}var jb=0;function tB(){T.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??LT()),document.body.insertAdjacentElement("beforeend",e[1]??LT()),jb++,()=>{jb===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),jb--}},[])}function LT(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Nb="focusScope.autoFocusOnMount",Rb="focusScope.autoFocusOnUnmount",$T={bubbles:!1,cancelable:!0},NG="FocusScope",HO=T.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[l,c]=T.useState(null),f=ys(i),d=ys(o),h=T.useRef(null),m=Dt(t,y=>c(y)),g=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(r){let y=function(E){if(g.paused||!l)return;const C=E.target;l.contains(C)?h.current=C:Vo(h.current,{select:!0})},x=function(E){if(g.paused||!l)return;const C=E.relatedTarget;C!==null&&(l.contains(C)||Vo(h.current,{select:!0}))},S=function(E){if(document.activeElement===document.body)for(const O of E)O.removedNodes.length>0&&Vo(l)};document.addEventListener("focusin",y),document.addEventListener("focusout",x);const P=new MutationObserver(S);return l&&P.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",x),P.disconnect()}}},[r,l,g.paused]),T.useEffect(()=>{if(l){BT.add(g);const y=document.activeElement;if(!l.contains(y)){const S=new CustomEvent(Nb,$T);l.addEventListener(Nb,f),l.dispatchEvent(S),S.defaultPrevented||(RG($G(nB(l)),{select:!0}),document.activeElement===y&&Vo(l))}return()=>{l.removeEventListener(Nb,f),setTimeout(()=>{const S=new CustomEvent(Rb,$T);l.addEventListener(Rb,d),l.dispatchEvent(S),S.defaultPrevented||Vo(y??document.body,{select:!0}),l.removeEventListener(Rb,d),BT.remove(g)},0)}}},[l,f,d,g]);const w=T.useCallback(y=>{if(!n&&!r||g.paused)return;const x=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,S=document.activeElement;if(x&&S){const P=y.currentTarget,[E,C]=MG(P);E&&C?!y.shiftKey&&S===C?(y.preventDefault(),n&&Vo(E,{select:!0})):y.shiftKey&&S===E&&(y.preventDefault(),n&&Vo(C,{select:!0})):S===P&&y.preventDefault()}},[n,r,g.paused]);return v.jsx(ut.div,{tabIndex:-1,...a,ref:m,onKeyDown:w})});HO.displayName=NG;function RG(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Vo(r,{select:t}),document.activeElement!==n)return}function MG(e){const t=nB(e),n=FT(t,e),r=FT(t.reverse(),e);return[n,r]}function nB(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function FT(e,t){for(const n of e)if(!IG(n,{upTo:t}))return n}function IG(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function DG(e){return e instanceof HTMLInputElement&&"select"in e}function Vo(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&DG(e)&&t&&e.select()}}var BT=LG();function LG(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=qT(e,t),e.unshift(t)},remove(t){var n;e=qT(e,t),(n=e[0])==null||n.resume()}}}function qT(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function $G(e){return e.filter(t=>t.tagName!=="A")}var Nn=globalThis!=null&&globalThis.document?T.useLayoutEffect:()=>{},FG=EO[" useId ".trim().toString()]||(()=>{}),BG=0;function ls(e){const[t,n]=T.useState(FG());return Nn(()=>{n(r=>r??String(BG++))},[e]),t?`radix-${t}`:""}const qG=["top","right","bottom","left"],fa=Math.min,vr=Math.max,Hp=Math.round,tp=Math.floor,ki=e=>({x:e,y:e}),zG={left:"right",right:"left",bottom:"top",top:"bottom"},UG={start:"end",end:"start"};function IS(e,t,n){return vr(e,fa(t,n))}function ho(e,t){return typeof e=="function"?e(t):e}function po(e){return e.split("-")[0]}function Du(e){return e.split("-")[1]}function VO(e){return e==="x"?"y":"x"}function KO(e){return e==="y"?"height":"width"}const WG=new Set(["top","bottom"]);function Ei(e){return WG.has(po(e))?"y":"x"}function GO(e){return VO(Ei(e))}function HG(e,t,n){n===void 0&&(n=!1);const r=Du(e),i=GO(e),o=KO(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Vp(a)),[a,Vp(a)]}function VG(e){const t=Vp(e);return[DS(e),t,DS(t)]}function DS(e){return e.replace(/start|end/g,t=>UG[t])}const zT=["left","right"],UT=["right","left"],KG=["top","bottom"],GG=["bottom","top"];function YG(e,t,n){switch(e){case"top":case"bottom":return n?t?UT:zT:t?zT:UT;case"left":case"right":return t?KG:GG;default:return[]}}function XG(e,t,n,r){const i=Du(e);let o=YG(po(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(DS)))),o}function Vp(e){return e.replace(/left|right|bottom|top/g,t=>zG[t])}function QG(e){return{top:0,right:0,bottom:0,left:0,...e}}function rB(e){return typeof e!="number"?QG(e):{top:e,right:e,bottom:e,left:e}}function Kp(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function WT(e,t,n){let{reference:r,floating:i}=e;const o=Ei(t),a=GO(t),l=KO(a),c=po(t),f=o==="y",d=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,m=r[l]/2-i[l]/2;let g;switch(c){case"top":g={x:d,y:r.y-i.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:h};break;case"left":g={x:r.x-i.width,y:h};break;default:g={x:r.x,y:r.y}}switch(Du(t)){case"start":g[a]-=m*(n&&f?-1:1);break;case"end":g[a]+=m*(n&&f?-1:1);break}return g}const JG=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=o.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let f=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:h}=WT(f,r,c),m=r,g={},w=0;for(let y=0;y<l.length;y++){const{name:x,fn:S}=l[y],{x:P,y:E,data:C,reset:O}=await S({x:d,y:h,initialPlacement:r,placement:m,strategy:i,middlewareData:g,rects:f,platform:a,elements:{reference:e,floating:t}});d=P??d,h=E??h,g={...g,[x]:{...g[x],...C}},O&&w<=50&&(w++,typeof O=="object"&&(O.placement&&(m=O.placement),O.rects&&(f=O.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:d,y:h}=WT(f,m,c)),y=-1)}return{x:d,y:h,placement:m,strategy:i,middlewareData:g}};async function Af(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:l,strategy:c}=e,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:m=!1,padding:g=0}=ho(t,e),w=rB(g),x=l[m?h==="floating"?"reference":"floating":h],S=Kp(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(x)))==null||n?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:f,rootBoundary:d,strategy:c})),P=h==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),C=await(o.isElement==null?void 0:o.isElement(E))?await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},O=Kp(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:P,offsetParent:E,strategy:c}):P);return{top:(S.top-O.top+w.top)/C.y,bottom:(O.bottom-S.bottom+w.bottom)/C.y,left:(S.left-O.left+w.left)/C.x,right:(O.right-S.right+w.right)/C.x}}const ZG=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:l,middlewareData:c}=t,{element:f,padding:d=0}=ho(e,t)||{};if(f==null)return{};const h=rB(d),m={x:n,y:r},g=GO(i),w=KO(g),y=await a.getDimensions(f),x=g==="y",S=x?"top":"left",P=x?"bottom":"right",E=x?"clientHeight":"clientWidth",C=o.reference[w]+o.reference[g]-m[g]-o.floating[w],O=m[g]-o.reference[g],A=await(a.getOffsetParent==null?void 0:a.getOffsetParent(f));let j=A?A[E]:0;(!j||!await(a.isElement==null?void 0:a.isElement(A)))&&(j=l.floating[E]||o.floating[w]);const R=C/2-O/2,L=j/2-y[w]/2-1,q=fa(h[S],L),D=fa(h[P],L),$=q,B=j-y[w]-D,W=j/2-y[w]/2+R,V=IS($,W,B),Y=!c.arrow&&Du(i)!=null&&W!==V&&o.reference[w]/2-(W<$?q:D)-y[w]/2<0,J=Y?W<$?W-$:W-B:0;return{[g]:m[g]+J,data:{[g]:V,centerOffset:W-V-J,...Y&&{alignmentOffset:J}},reset:Y}}}),eY=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:c,elements:f}=t,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:y=!0,...x}=ho(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const S=po(i),P=Ei(l),E=po(l)===l,C=await(c.isRTL==null?void 0:c.isRTL(f.floating)),O=m||(E||!y?[Vp(l)]:VG(l)),A=w!=="none";!m&&A&&O.push(...XG(l,y,w,C));const j=[l,...O],R=await Af(t,x),L=[];let q=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&L.push(R[S]),h){const W=HG(i,a,C);L.push(R[W[0]],R[W[1]])}if(q=[...q,{placement:i,overflows:L}],!L.every(W=>W<=0)){var D,$;const W=(((D=o.flip)==null?void 0:D.index)||0)+1,V=j[W];if(V&&(!(h==="alignment"?P!==Ei(V):!1)||q.every(F=>Ei(F.placement)===P?F.overflows[0]>0:!0)))return{data:{index:W,overflows:q},reset:{placement:V}};let Y=($=q.filter(J=>J.overflows[0]<=0).sort((J,F)=>J.overflows[1]-F.overflows[1])[0])==null?void 0:$.placement;if(!Y)switch(g){case"bestFit":{var B;const J=(B=q.filter(F=>{if(A){const Z=Ei(F.placement);return Z===P||Z==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(Z=>Z>0).reduce((Z,M)=>Z+M,0)]).sort((F,Z)=>F[1]-Z[1])[0])==null?void 0:B[0];J&&(Y=J);break}case"initialPlacement":Y=l;break}if(i!==Y)return{reset:{placement:Y}}}return{}}}};function HT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function VT(e){return qG.some(t=>e[t]>=0)}const tY=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=ho(e,t);switch(r){case"referenceHidden":{const o=await Af(t,{...i,elementContext:"reference"}),a=HT(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:VT(a)}}}case"escaped":{const o=await Af(t,{...i,altBoundary:!0}),a=HT(o,n.floating);return{data:{escapedOffsets:a,escaped:VT(a)}}}default:return{}}}}},iB=new Set(["left","top"]);async function nY(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=po(n),l=Du(n),c=Ei(n)==="y",f=iB.has(a)?-1:1,d=o&&c?-1:1,h=ho(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:w}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof w=="number"&&(g=l==="end"?w*-1:w),c?{x:g*d,y:m*f}:{x:m*f,y:g*d}}const rY=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:l}=t,c=await nY(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:a}}}}},iY=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:x=>{let{x:S,y:P}=x;return{x:S,y:P}}},...c}=ho(e,t),f={x:n,y:r},d=await Af(t,c),h=Ei(po(i)),m=VO(h);let g=f[m],w=f[h];if(o){const x=m==="y"?"top":"left",S=m==="y"?"bottom":"right",P=g+d[x],E=g-d[S];g=IS(P,g,E)}if(a){const x=h==="y"?"top":"left",S=h==="y"?"bottom":"right",P=w+d[x],E=w-d[S];w=IS(P,w,E)}const y=l.fn({...t,[m]:g,[h]:w});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[m]:o,[h]:a}}}}}},oY=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:l=0,mainAxis:c=!0,crossAxis:f=!0}=ho(e,t),d={x:n,y:r},h=Ei(i),m=VO(h);let g=d[m],w=d[h];const y=ho(l,t),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const E=m==="y"?"height":"width",C=o.reference[m]-o.floating[E]+x.mainAxis,O=o.reference[m]+o.reference[E]-x.mainAxis;g<C?g=C:g>O&&(g=O)}if(f){var S,P;const E=m==="y"?"width":"height",C=iB.has(po(i)),O=o.reference[h]-o.floating[E]+(C&&((S=a.offset)==null?void 0:S[h])||0)+(C?0:x.crossAxis),A=o.reference[h]+o.reference[E]+(C?0:((P=a.offset)==null?void 0:P[h])||0)-(C?x.crossAxis:0);w<O?w=O:w>A&&(w=A)}return{[m]:g,[h]:w}}}},aY=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:l}=t,{apply:c=()=>{},...f}=ho(e,t),d=await Af(t,f),h=po(i),m=Du(i),g=Ei(i)==="y",{width:w,height:y}=o.floating;let x,S;h==="top"||h==="bottom"?(x=h,S=m===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(S=h,x=m==="end"?"top":"bottom");const P=y-d.top-d.bottom,E=w-d.left-d.right,C=fa(y-d[x],P),O=fa(w-d[S],E),A=!t.middlewareData.shift;let j=C,R=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=P),A&&!m){const q=vr(d.left,0),D=vr(d.right,0),$=vr(d.top,0),B=vr(d.bottom,0);g?R=w-2*(q!==0||D!==0?q+D:vr(d.left,d.right)):j=y-2*($!==0||B!==0?$+B:vr(d.top,d.bottom))}await c({...t,availableWidth:R,availableHeight:j});const L=await a.getDimensions(l.floating);return w!==L.width||y!==L.height?{reset:{rects:!0}}:{}}}};function dg(){return typeof window<"u"}function Lu(e){return oB(e)?(e.nodeName||"").toLowerCase():"#document"}function Sr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Di(e){var t;return(t=(oB(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function oB(e){return dg()?e instanceof Node||e instanceof Sr(e).Node:!1}function si(e){return dg()?e instanceof Element||e instanceof Sr(e).Element:!1}function Ni(e){return dg()?e instanceof HTMLElement||e instanceof Sr(e).HTMLElement:!1}function KT(e){return!dg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Sr(e).ShadowRoot}const sY=new Set(["inline","contents"]);function Od(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=li(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!sY.has(i)}const lY=new Set(["table","td","th"]);function uY(e){return lY.has(Lu(e))}const cY=[":popover-open",":modal"];function hg(e){return cY.some(t=>{try{return e.matches(t)}catch{return!1}})}const fY=["transform","translate","scale","rotate","perspective"],dY=["transform","translate","scale","rotate","perspective","filter"],hY=["paint","layout","strict","content"];function YO(e){const t=XO(),n=si(e)?li(e):e;return fY.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||dY.some(r=>(n.willChange||"").includes(r))||hY.some(r=>(n.contain||"").includes(r))}function pY(e){let t=da(e);for(;Ni(t)&&!eu(t);){if(YO(t))return t;if(hg(t))return null;t=da(t)}return null}function XO(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mY=new Set(["html","body","#document"]);function eu(e){return mY.has(Lu(e))}function li(e){return Sr(e).getComputedStyle(e)}function pg(e){return si(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function da(e){if(Lu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||KT(e)&&e.host||Di(e);return KT(t)?t.host:t}function aB(e){const t=da(e);return eu(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ni(t)&&Od(t)?t:aB(t)}function kf(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=aB(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Sr(i);if(o){const l=LS(a);return t.concat(a,a.visualViewport||[],Od(i)?i:[],l&&n?kf(l):[])}return t.concat(i,kf(i,[],n))}function LS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sB(e){const t=li(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ni(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=Hp(n)!==o||Hp(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function QO(e){return si(e)?e:e.contextElement}function Al(e){const t=QO(e);if(!Ni(t))return ki(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=sB(t);let a=(o?Hp(n.width):n.width)/r,l=(o?Hp(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const gY=ki(0);function lB(e){const t=Sr(e);return!XO()||!t.visualViewport?gY:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yY(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Sr(e)?!1:t}function vs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=QO(e);let a=ki(1);t&&(r?si(r)&&(a=Al(r)):a=Al(e));const l=yY(o,n,r)?lB(o):ki(0);let c=(i.left+l.x)/a.x,f=(i.top+l.y)/a.y,d=i.width/a.x,h=i.height/a.y;if(o){const m=Sr(o),g=r&&si(r)?Sr(r):r;let w=m,y=LS(w);for(;y&&r&&g!==w;){const x=Al(y),S=y.getBoundingClientRect(),P=li(y),E=S.left+(y.clientLeft+parseFloat(P.paddingLeft))*x.x,C=S.top+(y.clientTop+parseFloat(P.paddingTop))*x.y;c*=x.x,f*=x.y,d*=x.x,h*=x.y,c+=E,f+=C,w=Sr(y),y=LS(w)}}return Kp({width:d,height:h,x:c,y:f})}function mg(e,t){const n=pg(e).scrollLeft;return t?t.left+n:vs(Di(e)).left+n}function uB(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-mg(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function vY(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=Di(r),l=t?hg(t.floating):!1;if(r===a||l&&o)return n;let c={scrollLeft:0,scrollTop:0},f=ki(1);const d=ki(0),h=Ni(r);if((h||!h&&!o)&&((Lu(r)!=="body"||Od(a))&&(c=pg(r)),Ni(r))){const g=vs(r);f=Al(r),d.x=g.x+r.clientLeft,d.y=g.y+r.clientTop}const m=a&&!h&&!o?uB(a,c):ki(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+d.x+m.x,y:n.y*f.y-c.scrollTop*f.y+d.y+m.y}}function bY(e){return Array.from(e.getClientRects())}function xY(e){const t=Di(e),n=pg(e),r=e.ownerDocument.body,i=vr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=vr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+mg(e);const l=-n.scrollTop;return li(r).direction==="rtl"&&(a+=vr(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}const GT=25;function wY(e,t){const n=Sr(e),r=Di(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;const d=XO();(!d||d&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}const f=mg(r);if(f<=0){const d=r.ownerDocument,h=d.body,m=getComputedStyle(h),g=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,w=Math.abs(r.clientWidth-h.clientWidth-g);w<=GT&&(o-=w)}else f<=GT&&(o+=f);return{width:o,height:a,x:l,y:c}}const SY=new Set(["absolute","fixed"]);function _Y(e,t){const n=vs(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Ni(e)?Al(e):ki(1),a=e.clientWidth*o.x,l=e.clientHeight*o.y,c=i*o.x,f=r*o.y;return{width:a,height:l,x:c,y:f}}function YT(e,t,n){let r;if(t==="viewport")r=wY(e,n);else if(t==="document")r=xY(Di(e));else if(si(t))r=_Y(t,n);else{const i=lB(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Kp(r)}function cB(e,t){const n=da(e);return n===t||!si(n)||eu(n)?!1:li(n).position==="fixed"||cB(n,t)}function OY(e,t){const n=t.get(e);if(n)return n;let r=kf(e,[],!1).filter(l=>si(l)&&Lu(l)!=="body"),i=null;const o=li(e).position==="fixed";let a=o?da(e):e;for(;si(a)&&!eu(a);){const l=li(a),c=YO(a);!c&&l.position==="fixed"&&(i=null),(o?!c&&!i:!c&&l.position==="static"&&!!i&&SY.has(i.position)||Od(a)&&!c&&cB(e,a))?r=r.filter(d=>d!==a):i=l,a=da(a)}return t.set(e,r),r}function EY(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?hg(t)?[]:OY(t,this._c):[].concat(n),r],l=a[0],c=a.reduce((f,d)=>{const h=YT(t,d,i);return f.top=vr(h.top,f.top),f.right=fa(h.right,f.right),f.bottom=fa(h.bottom,f.bottom),f.left=vr(h.left,f.left),f},YT(t,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function PY(e){const{width:t,height:n}=sB(e);return{width:t,height:n}}function AY(e,t,n){const r=Ni(t),i=Di(t),o=n==="fixed",a=vs(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const c=ki(0);function f(){c.x=mg(i)}if(r||!r&&!o)if((Lu(t)!=="body"||Od(i))&&(l=pg(t)),r){const g=vs(t,!0,o,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else i&&f();o&&!r&&i&&f();const d=i&&!r&&!o?uB(i,l):ki(0),h=a.left+l.scrollLeft-c.x-d.x,m=a.top+l.scrollTop-c.y-d.y;return{x:h,y:m,width:a.width,height:a.height}}function Mb(e){return li(e).position==="static"}function XT(e,t){if(!Ni(e)||li(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Di(e)===n&&(n=n.ownerDocument.body),n}function fB(e,t){const n=Sr(e);if(hg(e))return n;if(!Ni(e)){let i=da(e);for(;i&&!eu(i);){if(si(i)&&!Mb(i))return i;i=da(i)}return n}let r=XT(e,t);for(;r&&uY(r)&&Mb(r);)r=XT(r,t);return r&&eu(r)&&Mb(r)&&!YO(r)?n:r||pY(e)||n}const kY=async function(e){const t=this.getOffsetParent||fB,n=this.getDimensions,r=await n(e.floating);return{reference:AY(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function CY(e){return li(e).direction==="rtl"}const TY={convertOffsetParentRelativeRectToViewportRelativeRect:vY,getDocumentElement:Di,getClippingRect:EY,getOffsetParent:fB,getElementRects:kY,getClientRects:bY,getDimensions:PY,getScale:Al,isElement:si,isRTL:CY};function dB(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jY(e,t){let n=null,r;const i=Di(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),o();const f=e.getBoundingClientRect(),{left:d,top:h,width:m,height:g}=f;if(l||t(),!m||!g)return;const w=tp(h),y=tp(i.clientWidth-(d+m)),x=tp(i.clientHeight-(h+g)),S=tp(d),E={rootMargin:-w+"px "+-y+"px "+-x+"px "+-S+"px",threshold:vr(0,fa(1,c))||1};let C=!0;function O(A){const j=A[0].intersectionRatio;if(j!==c){if(!C)return a();j?a(!1,j):r=setTimeout(()=>{a(!1,1e-7)},1e3)}j===1&&!dB(f,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(O,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(O,E)}n.observe(e)}return a(!0),o}function NY(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,f=QO(e),d=i||o?[...f?kf(f):[],...kf(t)]:[];d.forEach(S=>{i&&S.addEventListener("scroll",n,{passive:!0}),o&&S.addEventListener("resize",n)});const h=f&&l?jY(f,n):null;let m=-1,g=null;a&&(g=new ResizeObserver(S=>{let[P]=S;P&&P.target===f&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=g)==null||E.observe(t)})),n()}),f&&!c&&g.observe(f),g.observe(t));let w,y=c?vs(e):null;c&&x();function x(){const S=vs(e);y&&!dB(y,S)&&n(),y=S,w=requestAnimationFrame(x)}return n(),()=>{var S;d.forEach(P=>{i&&P.removeEventListener("scroll",n),o&&P.removeEventListener("resize",n)}),h==null||h(),(S=g)==null||S.disconnect(),g=null,c&&cancelAnimationFrame(w)}}const RY=rY,MY=iY,IY=eY,DY=aY,LY=tY,QT=ZG,$Y=oY,FY=(e,t,n)=>{const r=new Map,i={platform:TY,...n},o={...i.platform,_c:r};return JG(e,t,{...i,platform:o})};var BY=typeof document<"u",qY=function(){},Ip=BY?T.useLayoutEffect:qY;function Gp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Gp(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Gp(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function hB(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function JT(e,t){const n=hB(e);return Math.round(t*n)/n}function Ib(e){const t=T.useRef(e);return Ip(()=>{t.current=e}),t}function zY(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:l=!0,whileElementsMounted:c,open:f}=e,[d,h]=T.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=T.useState(r);Gp(m,r)||g(r);const[w,y]=T.useState(null),[x,S]=T.useState(null),P=T.useCallback(F=>{F!==A.current&&(A.current=F,y(F))},[]),E=T.useCallback(F=>{F!==j.current&&(j.current=F,S(F))},[]),C=o||w,O=a||x,A=T.useRef(null),j=T.useRef(null),R=T.useRef(d),L=c!=null,q=Ib(c),D=Ib(i),$=Ib(f),B=T.useCallback(()=>{if(!A.current||!j.current)return;const F={placement:t,strategy:n,middleware:m};D.current&&(F.platform=D.current),FY(A.current,j.current,F).then(Z=>{const M={...Z,isPositioned:$.current!==!1};W.current&&!Gp(R.current,M)&&(R.current=M,vd.flushSync(()=>{h(M)}))})},[m,t,n,D,$]);Ip(()=>{f===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,h(F=>({...F,isPositioned:!1})))},[f]);const W=T.useRef(!1);Ip(()=>(W.current=!0,()=>{W.current=!1}),[]),Ip(()=>{if(C&&(A.current=C),O&&(j.current=O),C&&O){if(q.current)return q.current(C,O,B);B()}},[C,O,B,q,L]);const V=T.useMemo(()=>({reference:A,floating:j,setReference:P,setFloating:E}),[P,E]),Y=T.useMemo(()=>({reference:C,floating:O}),[C,O]),J=T.useMemo(()=>{const F={position:n,left:0,top:0};if(!Y.floating)return F;const Z=JT(Y.floating,d.x),M=JT(Y.floating,d.y);return l?{...F,transform:"translate("+Z+"px, "+M+"px)",...hB(Y.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Z,top:M}},[n,l,Y.floating,d.x,d.y]);return T.useMemo(()=>({...d,update:B,refs:V,elements:Y,floatingStyles:J}),[d,B,V,Y,J])}const UY=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?QT({element:r.current,padding:i}).fn(n):{}:r?QT({element:r,padding:i}).fn(n):{}}}},WY=(e,t)=>({...RY(e),options:[e,t]}),HY=(e,t)=>({...MY(e),options:[e,t]}),VY=(e,t)=>({...$Y(e),options:[e,t]}),KY=(e,t)=>({...IY(e),options:[e,t]}),GY=(e,t)=>({...DY(e),options:[e,t]}),YY=(e,t)=>({...LY(e),options:[e,t]}),XY=(e,t)=>({...UY(e),options:[e,t]});var QY="Arrow",pB=T.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return v.jsx(ut.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});pB.displayName=QY;var JY=pB;function ZY(e){const[t,n]=T.useState(void 0);return Nn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let a,l;if("borderBoxSize"in o){const c=o.borderBoxSize,f=Array.isArray(c)?c[0]:c;a=f.inlineSize,l=f.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var JO="Popper",[mB,gg]=Iu(JO),[eX,gB]=mB(JO),yB=e=>{const{__scopePopper:t,children:n}=e,[r,i]=T.useState(null);return v.jsx(eX,{scope:t,anchor:r,onAnchorChange:i,children:n})};yB.displayName=JO;var vB="PopperAnchor",bB=T.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=gB(vB,n),a=T.useRef(null),l=Dt(t,a),c=T.useRef(null);return T.useEffect(()=>{const f=c.current;c.current=(r==null?void 0:r.current)||a.current,f!==c.current&&o.onAnchorChange(c.current)}),r?null:v.jsx(ut.div,{...i,ref:l})});bB.displayName=vB;var ZO="PopperContent",[tX,nX]=mB(ZO),xB=T.forwardRef((e,t)=>{var le,ve,ae,he,be,ie;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:f=[],collisionPadding:d=0,sticky:h="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:w,...y}=e,x=gB(ZO,n),[S,P]=T.useState(null),E=Dt(t,Ue=>P(Ue)),[C,O]=T.useState(null),A=ZY(C),j=(A==null?void 0:A.width)??0,R=(A==null?void 0:A.height)??0,L=r+(o!=="center"?"-"+o:""),q=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},D=Array.isArray(f)?f:[f],$=D.length>0,B={padding:q,boundary:D.filter(iX),altBoundary:$},{refs:W,floatingStyles:V,placement:Y,isPositioned:J,middlewareData:F}=zY({strategy:"fixed",placement:L,whileElementsMounted:(...Ue)=>NY(...Ue,{animationFrame:g==="always"}),elements:{reference:x.anchor},middleware:[WY({mainAxis:i+R,alignmentAxis:a}),c&&HY({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?VY():void 0,...B}),c&&KY({...B}),GY({...B,apply:({elements:Ue,rects:De,availableWidth:ot,availableHeight:at})=>{const{width:bt,height:Mn}=De.reference,sn=Ue.floating.style;sn.setProperty("--radix-popper-available-width",`${ot}px`),sn.setProperty("--radix-popper-available-height",`${at}px`),sn.setProperty("--radix-popper-anchor-width",`${bt}px`),sn.setProperty("--radix-popper-anchor-height",`${Mn}px`)}}),C&&XY({element:C,padding:l}),oX({arrowWidth:j,arrowHeight:R}),m&&YY({strategy:"referenceHidden",...B})]}),[Z,M]=_B(Y),z=ys(w);Nn(()=>{J&&(z==null||z())},[J,z]);const X=(le=F.arrow)==null?void 0:le.x,I=(ve=F.arrow)==null?void 0:ve.y,ue=((ae=F.arrow)==null?void 0:ae.centerOffset)!==0,[xe,we]=T.useState();return Nn(()=>{S&&we(window.getComputedStyle(S).zIndex)},[S]),v.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:J?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:xe,"--radix-popper-transform-origin":[(he=F.transformOrigin)==null?void 0:he.x,(be=F.transformOrigin)==null?void 0:be.y].join(" "),...((ie=F.hide)==null?void 0:ie.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(tX,{scope:n,placedSide:Z,onArrowChange:O,arrowX:X,arrowY:I,shouldHideArrow:ue,children:v.jsx(ut.div,{"data-side":Z,"data-align":M,...y,ref:E,style:{...y.style,animation:J?void 0:"none"}})})})});xB.displayName=ZO;var wB="PopperArrow",rX={top:"bottom",right:"left",bottom:"top",left:"right"},SB=T.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=nX(wB,r),a=rX[o.placedSide];return v.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:v.jsx(JY,{...i,ref:n,style:{...i.style,display:"block"}})})});SB.displayName=wB;function iX(e){return e!==null}var oX=e=>({name:"transformOrigin",options:e,fn(t){var x,S,P;const{placement:n,rects:r,middlewareData:i}=t,a=((x=i.arrow)==null?void 0:x.centerOffset)!==0,l=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[f,d]=_B(n),h={start:"0%",center:"50%",end:"100%"}[d],m=(((S=i.arrow)==null?void 0:S.x)??0)+l/2,g=(((P=i.arrow)==null?void 0:P.y)??0)+c/2;let w="",y="";return f==="bottom"?(w=a?h:`${m}px`,y=`${-c}px`):f==="top"?(w=a?h:`${m}px`,y=`${r.floating.height+c}px`):f==="right"?(w=`${-c}px`,y=a?h:`${g}px`):f==="left"&&(w=`${r.floating.width+c}px`,y=a?h:`${g}px`),{data:{x:w,y}}}});function _B(e){const[t,n="center"]=e.split("-");return[t,n]}var OB=yB,EB=bB,PB=xB,AB=SB,aX="Portal",yg=T.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[i,o]=T.useState(!1);Nn(()=>o(!0),[]);const a=n||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?ZH.createPortal(v.jsx(ut.div,{...r,ref:t}),a):null});yg.displayName=aX;var sX=EO[" useInsertionEffect ".trim().toString()]||Nn;function Yp({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,a]=lX({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:i;{const d=T.useRef(e!==void 0);T.useEffect(()=>{const h=d.current;h!==l&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const f=T.useCallback(d=>{var h;if(l){const m=uX(d)?d(e):d;m!==e&&((h=a.current)==null||h.call(a,m))}else o(d)},[l,e,o,a]);return[c,f]}function lX({defaultProp:e,onChange:t}){const[n,r]=T.useState(e),i=T.useRef(n),o=T.useRef(t);return sX(()=>{o.current=t},[t]),T.useEffect(()=>{var a;i.current!==n&&((a=o.current)==null||a.call(o,n),i.current=n)},[n,i]),[n,r,o]}function uX(e){return typeof e=="function"}function cX(e){const t=T.useRef({value:e,previous:e});return T.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var kB=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),fX="VisuallyHidden",CB=T.forwardRef((e,t)=>v.jsx(ut.span,{...e,ref:t,style:{...kB,...e.style}}));CB.displayName=fX;var dX=CB,hX=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},fl=new WeakMap,np=new WeakMap,rp={},Db=0,TB=function(e){return e&&(e.host||TB(e.parentNode))},pX=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=TB(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},mX=function(e,t,n,r){var i=pX(t,Array.isArray(e)?e:[e]);rp[n]||(rp[n]=new WeakMap);var o=rp[n],a=[],l=new Set,c=new Set(i),f=function(h){!h||l.has(h)||(l.add(h),f(h.parentNode))};i.forEach(f);var d=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(m){if(l.has(m))d(m);else try{var g=m.getAttribute(r),w=g!==null&&g!=="false",y=(fl.get(m)||0)+1,x=(o.get(m)||0)+1;fl.set(m,y),o.set(m,x),a.push(m),y===1&&w&&np.set(m,!0),x===1&&m.setAttribute(n,"true"),w||m.setAttribute(r,"true")}catch(S){console.error("aria-hidden: cannot operate on ",m,S)}})};return d(t),l.clear(),Db++,function(){a.forEach(function(h){var m=fl.get(h)-1,g=o.get(h)-1;fl.set(h,m),o.set(h,g),m||(np.has(h)||h.removeAttribute(r),np.delete(h)),g||h.removeAttribute(n)}),Db--,Db||(fl=new WeakMap,fl=new WeakMap,np=new WeakMap,rp={})}},jB=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=hX(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),mX(r,i,n,"aria-hidden")):function(){return null}},_i=function(){return _i=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},_i.apply(this,arguments)};function NB(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function gX(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var Dp="right-scroll-bar-position",Lp="width-before-scroll-bar",yX="with-scroll-bars-hidden",vX="--removed-body-scroll-bar-size";function Lb(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bX(e,t){var n=T.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var xX=typeof window<"u"?T.useLayoutEffect:T.useEffect,ZT=new WeakMap;function wX(e,t){var n=bX(null,function(r){return e.forEach(function(i){return Lb(i,r)})});return xX(function(){var r=ZT.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;i.forEach(function(l){o.has(l)||Lb(l,null)}),o.forEach(function(l){i.has(l)||Lb(l,a)})}ZT.set(n,e)},[e]),n}function SX(e){return e}function _X(e,t){t===void 0&&(t=SX);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(l){return l!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(l){return o(l)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var l=n;n=[],l.forEach(o),a=n}var c=function(){var d=a;a=[],d.forEach(o)},f=function(){return Promise.resolve().then(c)};f(),n={push:function(d){a.push(d),f()},filter:function(d){return a=a.filter(d),n}}}};return i}function OX(e){e===void 0&&(e={});var t=_X(null);return t.options=_i({async:!0,ssr:!1},e),t}var RB=function(e){var t=e.sideCar,n=NB(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return T.createElement(r,_i({},n))};RB.isSideCarExport=!0;function EX(e,t){return e.useMedium(t),RB}var MB=OX(),$b=function(){},vg=T.forwardRef(function(e,t){var n=T.useRef(null),r=T.useState({onScrollCapture:$b,onWheelCapture:$b,onTouchMoveCapture:$b}),i=r[0],o=r[1],a=e.forwardProps,l=e.children,c=e.className,f=e.removeScrollBar,d=e.enabled,h=e.shards,m=e.sideCar,g=e.noRelative,w=e.noIsolation,y=e.inert,x=e.allowPinchZoom,S=e.as,P=S===void 0?"div":S,E=e.gapMode,C=NB(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=m,A=wX([n,t]),j=_
vendor: 9,510 bytes, lines 242-282
242i(_i({},C),i);return T.createElement(T.Fragment,null,d&&T.createElement(O,{sideCar:MB,removeScrollBar:f,shards:h,noRelative:g,noIsolation:w,inert:y,setCallbacks:o,allowPinchZoom:!!x,lockRef:n,gapMode:E}),a?T.cloneElement(T.Children.only(l),_i(_i({},j),{ref:A})):T.createElement(P,_i({},j,{className:c,ref:A}),l))});vg.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};vg.classNames={fullWidth:Lp,zeroRight:Dp};var PX=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function AX(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=PX();return t&&e.setAttribute("nonce",t),e}function kX(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function CX(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var TX=function(){var e=0,t=null;return{add:function(n){e==0&&(t=AX())&&(kX(t,n),CX(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},jX=function(){var e=TX();return function(t,n){T.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},IB=function(){var e=jX(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},NX={left:0,top:0,right:0,gap:0},Fb=function(e){return parseInt(e||"",10)||0},RX=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Fb(n),Fb(r),Fb(i)]},MX=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return NX;var t=RX(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},IX=IB(),kl="data-scroll-locked",DX=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),` 243 .`.concat(yX,` { 244 overflow: hidden `).concat(r,`; 245 padding-right: `).concat(l,"px ").concat(r,`; 246 } 247 body[`).concat(kl,`] { 248 overflow: hidden `).concat(r,`; 249 overscroll-behavior: contain; 250 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 251 padding-left: `.concat(i,`px; 252 padding-top: `).concat(o,`px; 253 padding-right: `).concat(a,`px; 254 margin-left:0; 255 margin-top:0; 256 margin-right: `).concat(l,"px ").concat(r,`; 257 `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),` 258 } 259 260 .`).concat(Dp,` { 261 right: `).concat(l,"px ").concat(r,`; 262 } 263 264 .`).concat(Lp,` { 265 margin-right: `).concat(l,"px ").concat(r,`; 266 } 267 268 .`).concat(Dp," .").concat(Dp,` { 269 right: 0 `).concat(r,`; 270 } 271 272 .`).concat(Lp," .").concat(Lp,` { 273 margin-right: 0 `).concat(r,`; 274 } 275 276 body[`).concat(kl,`] { 277 `).concat(vX,": ").concat(l,`px; 278 } 279`)},ej=function(){var e=parseInt(document.body.getAttribute(kl)||"0",10);return isFinite(e)?e:0},LX=function(){T.useEffect(function(){return document.body.setAttribute(kl,(ej()+1).toString()),function(){var e=ej()-1;e<=0?document.body.removeAttribute(kl):document.body.setAttribute(kl,e.toString())}},[])},$X=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;LX();var o=T.useMemo(function(){return MX(i)},[i]);return T.createElement(IX,{styles:DX(o,!t,i,n?"":"!important")})},$S=!1;if(typeof window<"u")try{var ip=Object.defineProperty({},"passive",{get:function(){return $S=!0,!0}});window.addEventListener("test",ip,ip),window.removeEventListener("test",ip,ip)}catch{$S=!1}var dl=$S?{passive:!1}:!1,FX=function(e){return e.tagName==="TEXTAREA"},DB=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!FX(e)&&n[t]==="visible")},BX=function(e){return DB(e,"overflowY")},qX=function(e){return DB(e,"overflowX")},tj=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=LB(e,r);if(i){var o=$B(e,r),a=o[1],l=o[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},zX=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},UX=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},LB=function(e,t){return e==="v"?BX(t):qX(t)},$B=function(e,t){return e==="v"?zX(t):UX(t)},WX=function(e,t){return e==="h"&&t==="rtl"?-1:1},HX=function(e,t,n,r,i){var o=WX(e,window.getComputedStyle(t).direction),a=o*r,l=n.target,c=t.contains(l),f=!1,d=a>0,h=0,m=0;do{if(!l)break;var g=$B(e,l),w=g[0],y=g[1],x=g[2],S=y-x-o*w;(w||S)&&LB(e,l)&&(h+=S,m+=w);var P=l.parentNode;l=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(d&&Math.abs(h)<1||!d&&Math.abs(m)<1)&&(f=!0),f},op=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nj=function(e){return[e.deltaX,e.deltaY]},rj=function(e){return e&&"current"in e?e.current:e},VX=function(e,t){return e[0]===t[0]&&e[1]===t[1]},KX=function(e){return` 280 .block-interactivity-`.concat(e,` {pointer-events: none;} 281 .allow-interactivity-`).concat(e,` {pointer-events: all;} 282`)},GX=0,hl=[];function YX(e){var t=T.useRef([]),n=T.useRef([0,0]),r=T.useRef(),i=T.useState(GX++)[0],o=T.useState(IB)[0],a=T.useRef(e);T.useEffect(function(){a.current=e},[e]),T.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var y=gX([e.lockRef.current],(e.shards||[]).map(rj),!0).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),y.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=T.useCallback(function(y,x){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!a.current.allowPinchZoom;var S=op(y),P=n.current,E="deltaX"in y?y.deltaX:P[0]-S[0],C="deltaY"in y?y.deltaY:P[1]-S[1],O,A=y.target,j=Math.abs(E)>Math.abs(C)?"h":"v";if("touches"in y&&j==="h"&&A.type==="range")return!1;var R=tj(j,A);if(!R)return!0;if(R?O=j:(O=j==="v"?"h":"v",R=tj(j,A)),!R)return!1;if(!r.current&&"changedTouches"in y&&(E||C)&&(r.current=O),!O)return!0;var L=r.current||O;return HX(L,x,y,L==="h"?E:C)},[]),c=T.useCallback(function(y){var x=y;if(!(!hl.length||hl[hl.length-1]!==o)){var S="deltaY"in x?nj(x):op(x),P=t.current.filter(function(O){return O.name===x.type&&(O.target===x.target||x.target===O.shadowParent)&&VX(O.delta,S)})[0];if(P&&P.should){x.cancelable&&x.preventDefault();return}if(!P){var E=(a.current.shards||[]).map(rj).filter(Boolean).filter(function(O){return O.contains(x.target)}),C=E.length>0?l(x,E[0]):!a.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),f=T.useCallback(function(y,x,S,P){var E={name:y,delta:x,target:S,should:P,shadowParent:XX(S)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(C){return C!==E})},1)},[]),d=T.useCallback(function(y){n.current=op(y),r.current=void 0},[]),h=T.useCallback(function(y){f(y.type,nj(y),y.target,l(y,e.lockRef.current))},[]),m=T.useCallback(function(y){f(y.type,op(y),y.target,l(y,e.lockRef.current))},[]);T.useEffect(function(){return hl.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",c,dl),document.addEventListener("touchmove",c,dl),document.addEventListener("touchstart",d,dl),function(){hl=hl.filter(function(y){return y!==o}),document.removeEventListener("wheel",c,dl),document.removeEventListener("touchmove",c,dl),document.removeEventListener("touchstart",d,dl)}},[]);var g=e.removeScrollBar,w=e.inert;return T.createElement(T.Fragment,null,w?T.createElement(o,{styles:KX(i)}):null,g?T.createElement($X,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function XX(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const QX=EX(MB,YX);var eE=T.forwardRef(function(e,t){return T.createElement(vg,_i({},e,{ref:t,sideCar:QX}))});eE.classNames=vg.classNames;var JX=[" ","Enter","ArrowUp","ArrowDown"],ZX=[" ","Enter"],bs="Select",[bg,xg,eQ]=wG(bs),[$u]=Iu(bs,[eQ,gg]),wg=gg(),[tQ,pa]=$u(bs),[nQ,rQ]=$u(bs),FB=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:o,value:a,defaultValue:l,onValueChange:c,dir:f,name:d,autoComplete:h,disabled:m,required:g,form:w}=e,y=wg(t),[x,S]=T.useState(null),[P,E]=T.useState(null),[C,O]=T.useState(!1),A=_G(f),[j,R]=Yp({prop:r,defaultProp:i??!1,onChange:o,caller:bs}),[L,q]=Yp({prop:a,defaultProp:l,onChange:c,caller:bs}),D=T.useRef(null),$=x?w||!!x.closest("form"):!0,[B,W]=T.useState(new Set),V=Array.from(B).map(Y=>Y.props.value).join(";");return v.jsx(OB,{...y,children:v.jsxs(tQ,{required:g,scope:t,trigger:x,onTriggerChange:S,valueNode:P,onValueNodeChange:E,valueNodeHasChildren:C,onValueNodeHasChildrenChange:O,contentId:ls(),value:L,onValueChange:q,open:j,onOpenChange:R,dir:A,triggerPointerDownPosRef:D,disabled:m,children:[v.jsx(bg.Provider,{scope:t,children:v.jsx(nQ,{scope:e.__scopeSelect,onNativeOptionAdd:T.useCallback(Y=>{W(J=>new Set(J).add(Y))},[]),onNativeOptionRemove:T.useCallback(Y=>{W(J=>{const F=new Set(J);return F.delete(Y),F})},[]),children:n})}),$?v.jsxs(u4,{"aria-hidden":!0,required:g,tabIndex:-1,name:d,autoComplete:h,value:L,onChange:Y=>q(Y.target.value),disabled:m,form:w,children:[L===void 0?v.jsx("option",{value:""}):null,Array.from(B)]},V):null]})})};FB.displayName=bs;var BB="SelectTrigger",qB=T.forwardRef((e,t)=>
vendor: 15,097 bytes, line 282
282{const{__scopeSelect:n,disabled:r=!1,...i}=e,o=wg(n),a=pa(BB,n),l=a.disabled||r,c=Dt(t,a.onTriggerChange),f=xg(n),d=T.useRef("touch"),[h,m,g]=f4(y=>{const x=f().filter(E=>!E.disabled),S=x.find(E=>E.value===a.value),P=d4(x,y,S);P!==void 0&&a.onValueChange(P.value)}),w=y=>{l||(a.onOpenChange(!0),g()),y&&(a.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return v.jsx(EB,{asChild:!0,...o,children:v.jsx(ut.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":c4(a.value)?"":void 0,...i,ref:c,onClick:st(i.onClick,y=>{y.currentTarget.focus(),d.current!=="mouse"&&w(y)}),onPointerDown:st(i.onPointerDown,y=>{d.current=y.pointerType;const x=y.target;x.hasPointerCapture(y.pointerId)&&x.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(w(y),y.preventDefault())}),onKeyDown:st(i.onKeyDown,y=>{const x=h.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&m(y.key),!(x&&y.key===" ")&&JX.includes(y.key)&&(w(),y.preventDefault())})})})});qB.displayName=BB;var zB="SelectValue",UB=T.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:a="",...l}=e,c=pa(zB,n),{onValueNodeHasChildrenChange:f}=c,d=o!==void 0,h=Dt(t,c.onValueNodeChange);return Nn(()=>{f(d)},[f,d]),v.jsx(ut.span,{...l,ref:h,style:{pointerEvents:"none"},children:c4(c.value)?v.jsx(v.Fragment,{children:a}):o})});UB.displayName=zB;var iQ="SelectIcon",WB=T.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return v.jsx(ut.span,{"aria-hidden":!0,...i,ref:t,children:r||"â¼"})});WB.displayName=iQ;var oQ="SelectPortal",HB=e=>v.jsx(yg,{asChild:!0,...e});HB.displayName=oQ;var xs="SelectContent",VB=T.forwardRef((e,t)=>{const n=pa(xs,e.__scopeSelect),[r,i]=T.useState();if(Nn(()=>{i(new DocumentFragment)},[]),!n.open){const o=r;return o?vd.createPortal(v.jsx(KB,{scope:e.__scopeSelect,children:v.jsx(bg.Slot,{scope:e.__scopeSelect,children:v.jsx("div",{children:e.children})})}),o):null}return v.jsx(GB,{...e,ref:t})});VB.displayName=xs;var Zr=10,[KB,ma]=$u(xs),aQ="SelectContentImpl",sQ=Zl("SelectContent.RemoveScroll"),GB=T.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:a,side:l,sideOffset:c,align:f,alignOffset:d,arrowPadding:h,collisionBoundary:m,collisionPadding:g,sticky:w,hideWhenDetached:y,avoidCollisions:x,...S}=e,P=pa(xs,n),[E,C]=T.useState(null),[O,A]=T.useState(null),j=Dt(t,le=>C(le)),[R,L]=T.useState(null),[q,D]=T.useState(null),$=xg(n),[B,W]=T.useState(!1),V=T.useRef(!1);T.useEffect(()=>{if(E)return jB(E)},[E]),tB();const Y=T.useCallback(le=>{const[ve,...ae]=$().map(ie=>ie.ref.current),[he]=ae.slice(-1),be=document.activeElement;for(const ie of le)if(ie===be||(ie==null||ie.scrollIntoView({block:"nearest"}),ie===ve&&O&&(O.scrollTop=0),ie===he&&O&&(O.scrollTop=O.scrollHeight),ie==null||ie.focus(),document.activeElement!==be))return},[$,O]),J=T.useCallback(()=>Y([R,E]),[Y,R,E]);T.useEffect(()=>{B&&J()},[B,J]);const{onOpenChange:F,triggerPointerDownPosRef:Z}=P;T.useEffect(()=>{if(E){let le={x:0,y:0};const ve=he=>{var be,ie;le={x:Math.abs(Math.round(he.pageX)-(((be=Z.current)==null?void 0:be.x)??0)),y:Math.abs(Math.round(he.pageY)-(((ie=Z.current)==null?void 0:ie.y)??0))}},ae=he=>{le.x<=10&&le.y<=10?he.preventDefault():E.contains(he.target)||F(!1),document.removeEventListener("pointermove",ve),Z.current=null};return Z.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",ae,{capture:!0})}}},[E,F,Z]),T.useEffect(()=>{const le=()=>F(!1);return window.addEventListener("blur",le),window.addEventListener("resize",le),()=>{window.removeEventListener("blur",le),window.removeEventListener("resize",le)}},[F]);const[M,z]=f4(le=>{const ve=$().filter(be=>!be.disabled),ae=ve.find(be=>be.ref.current===document.activeElement),he=d4(ve,le,ae);he&&setTimeout(()=>he.ref.current.focus())}),X=T.useCallback((le,ve,ae)=>{const he=!V.current&&!ae;(P.value!==void 0&&P.value===ve||he)&&(L(le),he&&(V.current=!0))},[P.value]),I=T.useCallback(()=>E==null?void 0:E.focus(),[E]),ue=T.useCallback((le,ve,ae)=>{const he=!V.current&&!ae;(P.value!==void 0&&P.value===ve||he)&&D(le)},[P.value]),xe=r==="popper"?FS:YB,we=xe===FS?{side:l,sideOffset:c,align:f,alignOffset:d,arrowPadding:h,collisionBoundary:m,collisionPadding:g,sticky:w,hideWhenDetached:y,avoidCollisions:x}:{};return v.jsx(KB,{scope:n,content:E,viewport:O,onViewportChange:A,itemRefCallback:X,selectedItem:R,onItemLeave:I,itemTextRefCallback:ue,focusSelectedItem:J,selectedItemText:q,position:r,isPositioned:B,searchRef:M,children:v.jsx(eE,{as:sQ,allowPinchZoom:!0,children:v.jsx(HO,{asChild:!0,trapped:P.open,onMountAutoFocus:le=>{le.preventDefault()},onUnmountAutoFocus:st(i,le=>{var ve;(ve=P.trigger)==null||ve.focus({preventScroll:!0}),le.preventDefault()}),children:v.jsx(fg,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:le=>le.preventDefault(),onDismiss:()=>P.onOpenChange(!1),children:v.jsx(xe,{role:"listbox",id:P.contentId,"data-state":P.open?"open":"closed",dir:P.dir,onContextMenu:le=>le.preventDefault(),...S,...we,onPlaced:()=>W(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:st(S.onKeyDown,le=>{const ve=le.ctrlKey||le.altKey||le.metaKey;if(le.key==="Tab"&&le.preventDefault(),!ve&&le.key.length===1&&z(le.key),["ArrowUp","ArrowDown","Home","End"].includes(le.key)){let he=$().filter(be=>!be.disabled).map(be=>be.ref.current);if(["ArrowUp","End"].includes(le.key)&&(he=he.slice().reverse()),["ArrowUp","ArrowDown"].includes(le.key)){const be=le.target,ie=he.indexOf(be);he=he.slice(ie+1)}setTimeout(()=>Y(he)),le.preventDefault()}})})})})})})});GB.displayName=aQ;var lQ="SelectItemAlignedPosition",YB=T.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,o=pa(xs,n),a=ma(xs,n),[l,c]=T.useState(null),[f,d]=T.useState(null),h=Dt(t,j=>d(j)),m=xg(n),g=T.useRef(!1),w=T.useRef(!0),{viewport:y,selectedItem:x,selectedItemText:S,focusSelectedItem:P}=a,E=T.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&f&&y&&x&&S){const j=o.trigger.getBoundingClientRect(),R=f.getBoundingClientRect(),L=o.valueNode.getBoundingClientRect(),q=S.getBoundingClientRect();if(o.dir!=="rtl"){const be=q.left-R.left,ie=L.left-be,Ue=j.left-ie,De=j.width+Ue,ot=Math.max(De,R.width),at=window.innerWidth-Zr,bt=MT(ie,[Zr,Math.max(Zr,at-ot)]);l.style.minWidth=De+"px",l.style.left=bt+"px"}else{const be=R.right-q.right,ie=window.innerWidth-L.right-be,Ue=window.innerWidth-j.right-ie,De=j.width+Ue,ot=Math.max(De,R.width),at=window.innerWidth-Zr,bt=MT(ie,[Zr,Math.max(Zr,at-ot)]);l.style.minWidth=De+"px",l.style.right=bt+"px"}const D=m(),$=window.innerHeight-Zr*2,B=y.scrollHeight,W=window.getComputedStyle(f),V=parseInt(W.borderTopWidth,10),Y=parseInt(W.paddingTop,10),J=parseInt(W.borderBottomWidth,10),F=parseInt(W.paddingBottom,10),Z=V+Y+B+F+J,M=Math.min(x.offsetHeight*5,Z),z=window.getComputedStyle(y),X=parseInt(z.paddingTop,10),I=parseInt(z.paddingBottom,10),ue=j.top+j.height/2-Zr,xe=$-ue,we=x.offsetHeight/2,le=x.offsetTop+we,ve=V+Y+le,ae=Z-ve;if(ve<=ue){const be=D.length>0&&x===D[D.length-1].ref.current;l.style.bottom="0px";const ie=f.clientHeight-y.offsetTop-y.offsetHeight,Ue=Math.max(xe,we+(be?I:0)+ie+J),De=ve+Ue;l.style.height=De+"px"}else{const be=D.length>0&&x===D[0].ref.current;l.style.top="0px";const Ue=Math.max(ue,V+y.offsetTop+(be?X:0)+we)+ae;l.style.height=Ue+"px",y.scrollTop=ve-ue+y.offsetTop}l.style.margin=`${Zr}px 0`,l.style.minHeight=M+"px",l.style.maxHeight=$+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[m,o.trigger,o.valueNode,l,f,y,x,S,o.dir,r]);Nn(()=>E(),[E]);const[C,O]=T.useState();Nn(()=>{f&&O(window.getComputedStyle(f).zIndex)},[f]);const A=T.useCallback(j=>{j&&w.current===!0&&(E(),P==null||P(),w.current=!1)},[E,P]);return v.jsx(cQ,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:g,onScrollButtonChange:A,children:v.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:v.jsx(ut.div,{...i,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});YB.displayName=lQ;var uQ="SelectPopperPosition",FS=T.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Zr,...o}=e,a=wg(n);return v.jsx(PB,{...a,...o,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});FS.displayName=uQ;var[cQ,tE]=$u(xs,{}),BS="SelectViewport",XB=T.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,o=ma(BS,n),a=tE(BS,n),l=Dt(t,o.onViewportChange),c=T.useRef(0);return v.jsxs(v.Fragment,{children:[v.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),v.jsx(bg.Slot,{scope:n,children:v.jsx(ut.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:st(i.onScroll,f=>{const d=f.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:m}=a;if(m!=null&&m.current&&h){const g=Math.abs(c.current-d.scrollTop);if(g>0){const w=window.innerHeight-Zr*2,y=parseFloat(h.style.minHeight),x=parseFloat(h.style.height),S=Math.max(y,x);if(S<w){const P=S+g,E=Math.min(w,P),C=P-E;h.style.height=E+"px",h.style.bottom==="0px"&&(d.scrollTop=C>0?C:0,h.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})});XB.displayName=BS;var QB="SelectGroup",[fQ,dQ]=$u(QB),hQ=T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=ls();return v.jsx(fQ,{scope:n,id:i,children:v.jsx(ut.div,{role:"group","aria-labelledby":i,...r,ref:t})})});hQ.displayName=QB;var JB="SelectLabel",ZB=T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=dQ(JB,n);return v.jsx(ut.div,{id:i.id,...r,ref:t})});ZB.displayName=JB;var Xp="SelectItem",[pQ,e4]=$u(Xp),t4=T.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...a}=e,l=pa(Xp,n),c=ma(Xp,n),f=l.value===r,[d,h]=T.useState(o??""),[m,g]=T.useState(!1),w=Dt(t,P=>{var E;return(E=c.itemRefCallback)==null?void 0:E.call(c,P,r,i)}),y=ls(),x=T.useRef("touch"),S=()=>{i||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return v.jsx(pQ,{scope:n,value:r,disabled:i,textId:y,isSelected:f,onItemTextChange:T.useCallback(P=>{h(E=>E||((P==null?void 0:P.textContent)??"").trim())},[]),children:v.jsx(bg.ItemSlot,{scope:n,value:r,disabled:i,textValue:d,children:v.jsx(ut.div,{role:"option","aria-labelledby":y,"data-highlighted":m?"":void 0,"aria-selected":f&&m,"data-state":f?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...a,ref:w,onFocus:st(a.onFocus,()=>g(!0)),onBlur:st(a.onBlur,()=>g(!1)),onClick:st(a.onClick,()=>{x.current!=="mouse"&&S()}),onPointerUp:st(a.onPointerUp,()=>{x.current==="mouse"&&S()}),onPointerDown:st(a.onPointerDown,P=>{x.current=P.pointerType}),onPointerMove:st(a.onPointerMove,P=>{var E;x.current=P.pointerType,i?(E=c.onItemLeave)==null||E.call(c):x.current==="mouse"&&P.currentTarget.focus({preventScroll:!0})}),onPointerLeave:st(a.onPointerLeave,P=>{var E;P.currentTarget===document.activeElement&&((E=c.onItemLeave)==null||E.call(c))}),onKeyDown:st(a.onKeyDown,P=>{var C;((C=c.searchRef)==null?void 0:C.current)!==""&&P.key===" "||(ZX.includes(P.key)&&S(),P.key===" "&&P.preventDefault())})})})})});t4.displayName=Xp;var of="SelectItemText",n4=T.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...o}=e,a=pa(of,n),l=ma(of,n),c=e4(of,n),f=rQ(of,n),[d,h]=T.useState(null),m=Dt(t,S=>h(S),c.onItemTextChange,S=>{var P;return(P=l.itemTextRefCallback)==null?void 0:P.call(l,S,c.value,c.disabled)}),g=d==null?void 0:d.textContent,w=T.useMemo(()=>v.jsx("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:y,onNativeOptionRemove:x}=f;return Nn(()=>(y(w),()=>x(w)),[y,x,w]),v.jsxs(v.Fragment,{children:[v.jsx(ut.span,{id:c.textId,...o,ref:m}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?vd.createPortal(o.children,a.valueNode):null]})});n4.displayName=of;var r4="SelectItemIndicator",i4=T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return e4(r4,n).isSelected?v.jsx(ut.span,{"aria-hidden":!0,...r,ref:t}):null});i4.displayName=r4;var qS="SelectScrollUpButton",o4=T.forwardRef((e,t)=>{const n=ma(qS,e.__scopeSelect),r=tE(qS,e.__scopeSelect),[i,o]=T.useState(!1),a=Dt(t,r.onScrollButtonChange);return Nn(()=>{if(n.viewport&&n.isPositioned){let l=function(){const f=c.scrollTop>0;o(f)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?v.jsx(s4,{...e,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null});o4.displayName=qS;var zS="SelectScrollDownButton",a4=T.forwardRef((e,t)=>{const n=ma(zS,e.__scopeSelect),r=tE(zS,e.__scopeSelect),[i,o]=T.useState(!1),a=Dt(t,r.onScrollButtonChange);return Nn(()=>{if(n.viewport&&n.isPositioned){let l=function(){const f=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<f;o(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),i?v.jsx(s4,{...e,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=n;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null});a4.displayName=zS;var s4=T.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,o=ma("SelectScrollButton",n),a=T.useRef(null),l=xg(n),c=T.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return T.useEffect(()=>()=>c(),[c]),Nn(()=>{var d;const f=l().find(h=>h.ref.current===document.activeElement);(d=f==null?void 0:f.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),v.jsx(ut.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:st(i.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:st(i.onPointerMove,()=>{var f;(f=o.onItemLeave)==null||f.call(o),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:st(i.onPointerLeave,()=>{c()})})}),mQ="SelectSeparator",l4=T.forwardRef((e,t)=>
vendor: 4,075 bytes, line 282
282{const{__scopeSelect:n,...r}=e;return v.jsx(ut.div,{"aria-hidden":!0,...r,ref:t})});l4.displayName=mQ;var US="SelectArrow",gQ=T.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=wg(n),o=pa(US,n),a=ma(US,n);return o.open&&a.position==="popper"?v.jsx(AB,{...i,...r,ref:t}):null});gQ.displayName=US;var yQ="SelectBubbleInput",u4=T.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=T.useRef(null),o=Dt(r,i),a=cX(t);return T.useEffect(()=>{const l=i.current;if(!l)return;const c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==t&&d){const h=new Event("change",{bubbles:!0});d.call(l,t),l.dispatchEvent(h)}},[a,t]),v.jsx(ut.select,{...n,style:{...kB,...n.style},ref:o,defaultValue:t})});u4.displayName=yQ;function c4(e){return e===""||e===void 0}function f4(e){const t=ys(e),n=T.useRef(""),r=T.useRef(0),i=T.useCallback(a=>{const l=n.current+a;t(l),(function c(f){n.current=f,window.clearTimeout(r.current),f!==""&&(r.current=window.setTimeout(()=>c(""),1e3))})(l)},[t]),o=T.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return T.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function d4(e,t,n){const i=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let a=vQ(e,Math.max(o,0));i.length===1&&(a=a.filter(f=>f!==n));const c=a.find(f=>f.textValue.toLowerCase().startsWith(i.toLowerCase()));return c!==n?c:void 0}function vQ(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var bQ=FB,h4=qB,xQ=UB,wQ=WB,SQ=HB,p4=VB,_Q=XB,m4=ZB,g4=t4,OQ=n4,EQ=i4,y4=o4,v4=a4,b4=l4;const Cl=bQ,Tl=xQ,us=T.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(h4,{ref:r,className:Pe("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,v.jsx(wQ,{asChild:!0,children:v.jsx(m$,{className:"h-4 w-4 opacity-50"})})]}));us.displayName=h4.displayName;const x4=T.forwardRef(({className:e,...t},n)=>v.jsx(y4,{ref:n,className:Pe("flex cursor-default items-center justify-center py-1",e),...t,children:v.jsx(nW,{className:"h-4 w-4"})}));x4.displayName=y4.displayName;const w4=T.forwardRef(({className:e,...t},n)=>v.jsx(v4,{ref:n,className:Pe("flex cursor-default items-center justify-center py-1",e),...t,children:v.jsx(m$,{className:"h-4 w-4"})}));w4.displayName=v4.displayName;const cs=T.forwardRef(({className:e,children:t,position:n="popper",...r},i)=>v.jsx(SQ,{children:v.jsxs(p4,{ref:i,className:Pe("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[v.jsx(x4,{}),v.jsx(_Q,{className:Pe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),v.jsx(w4,{})]})}));cs.displayName=p4.displayName;const PQ=T.forwardRef(({className:e,...t},n)=>v.jsx(m4,{ref:n,className:Pe("px-2 py-1.5 text-sm font-semibold",e),...t}));PQ.displayName=m4.displayName;const Jn=T.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(g4,{ref:r,className:Pe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[v.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:v.jsx(EQ,{
282children:v.jsx(Z8,{className:"h-4 w-4"})})}),v.jsx(OQ,{children:t})]}));Jn.displayName=g4.displayName;const AQ=T.forwardRef(({className:e,...t},n)=>v.jsx(b4,{ref:n,className:Pe("-mx-1 my-1 h-px bg-muted",e),...t}));AQ.displayName=b4.displayName;const Sg=T.forwardRef(({className:e,...t},n)=>v.jsx("textarea",{className:Pe("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));Sg.displayName="Textarea";function Zn(e){return"/"+e.replace(/ /g,"-")}const kQ=Cs("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),jl=T.forwardRef(({className:e,variant:t,...n},r)=>v.jsx("div",{ref:r,role:"alert",className:Pe(kQ({variant:t}),e),...n}));jl.displayName="Alert";const CQ=T.forwardRef(({className:e,...t},n)=>v.jsx("h5",{ref:n,className:Pe("mb-1 font-medium leading-none tracking-tight",e),...t}));CQ.displayName="AlertTitle";const Nl=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:Pe("text-sm [&_p]:leading-relaxed",e),...t}));Nl.displayName="AlertDescription";const ij=[{value:"salary",label:"Salary"},{value:"dividends",label:"Dividends"},{value:"pension",label:"Pension"},{value:"freelance",label:"Freelance"},{value:"bonus",label:"Bonus"},{value:"other_income",label:"Other Income"}],oj=[{value:"rent",label:"Rent"},{value:"mortgage",label:"Mortgage"},{value:"groceries",label:"Groceries"},{value:"transportation",label:"Transportation"},{value:"dining_out",label:"Dining Out"},{value:"utilities",label:"Utilities"},{value:"insurance",label:"Insurance"},{value:"healthcare",label:"Healthcare"},{value:"entertainment",label:"Entertainment"},{value:"shopping",label:"Shopping"},{value:"other_expense",label:"Other Expense"}],Bb=()=>({type:"",category:"",amount:"",description:"",date:new Date().toISOString().split("T")[0],classification:""});function TQ(){const e=ng(),[t,n]=T.useState(Bb()),[r,i]=T.useState(!1),[o,a]=T.useState(!1),[l,c]=T.useState(""),[f,d]=T.useState(null);T.useEffect(()=>{n(Bb()),c("")},[]);const h=(y,x)=>{n(S=>({...S,[y]:x})),y==="type"&&(n(S=>({...S,category:"",classification:""})),d(null)),(y==="category"||y==="classification")&&d(null)},m=async()=>{if(!t.description&&!t.amount){c("Please enter a description or amount first");return}a(!0),c("");try{const y=await Jl.Transaction.list("-date",50),S=(t.type==="income"?ij:oj).map(C=>C.value).join(", "),P=`You are a financial transaction categorization assistant. Analyze this transaction and suggest the most appropriate category and classification. 283 284Transaction Details: 285- Type: ${t.type||"not specified"} 286- Description: ${t.description||"none"} 287- Amount: â¬${t.amount||"0"} 288 289Available categories for ${t.type}: ${S} 290 291${t.type==="expense"?"Available classifications: need, want, future":""} 292 293${y.length>0?` 294User's past transaction patterns (learn from these): 295${y.slice(0,20).map(C=>`- "${C.description}" (â¬${C.amount}) was categorized as "${C.category}"${C.classification?` and classified as "${C.classification}"`:""}`).join(` 296`)} 297`:""} 298 299Based on the description, amount, and user's past patterns, suggest: 3001. The most appropriate category (must be one from the available categories) 3012. ${t.type==="expense"?"Classification (need/want/future)":"No classification needed for income"} 3023. A brief explanation (1 sentence) 303 304Return ONLY valid JSON.`,E=await rn.integrations.Core.InvokeLLM({prompt:P,response_json_schema:{type:"object",properties:{category:{type:"string"},classification:{type:"string"},explanation:{type:"string"}},required:["category","explanation"]}});d(E),n(C=>({...C,category:E.category,...t.type==="expense"&&E.classification?{classification:E.classification}:{}}))}catch(y){console.error("AI categorization error:",y),c("Failed to categorize. Please select manually.")}a(!1)},g=async y=>{y.preventDefault(),c(""),i(!0);try{await Jl.Transaction.create({...t,amount:parseFloat(t.amount)}),n(Bb()),e(Zn("Dashboard"))}catch{c("Failed to save transaction. Please try again.")}i(!1)},w=t.type==="income"?ij:oj;return v.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-blue-50 p-4 md:p-8",children:v.jsxs("div",{className:"max-w-2xl mx-auto
304space-y-8",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(ht,{variant:"outline",size:"icon",onClick:()=>e(Zn("Dashboard")),className:"bg-white/80 backdrop-blur-sm border-slate-200/60 hover:bg-white",children:v.jsx(PO,{className:"w-5 h-5"})}),v.jsxs("div",{children:[v.jsx("h1",{className:"text-3xl font-bold text-slate-900 tracking-tight",children:"Add Transaction"}),v.jsx("p",{className:"text-slate-600",children:"Record your income or expense"})]})]}),v.jsxs(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-xl",children:[v.jsx(Tn,{className:"pb-6",children:v.jsxs(jn,{className:"flex items-center gap-2 text-xl font-bold text-slate-900",children:[v.jsx("span",{className:"text-2xl text-emerald-600",children:"â¬"}),"Transaction Details"]})}),v.jsxs(Nt,{children:[l&&v.jsx(jl,{variant:"destructive",className:"mb-6",children:v.jsx(Nl,{children:l})}),v.jsxs("form",{onSubmit:g,className:"space-y-6",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx(An,{htmlFor:"type",className:"text-slate-700 font-medium",children:"Transaction Type"}),v.jsxs(Cl,{value:t.type,onValueChange:y=>h("type",y),children:[v.jsx(us,{className:"bg-white border-slate-200",children:v.jsx(Tl,{placeholder:"Select transaction type"})}),v.jsxs(cs,{children:[v.jsx(Jn,{value:"income",children:"Income"}),v.jsx(Jn,{value:"expense",children:"Expense"})]})]})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(An,{htmlFor:"description",className:"text-slate-700 font-medium",children:"Description"}),v.jsx(Sg,{id:"description",value:t.description,onChange:y=>h("description",y.target.value),placeholder:"e.g., Weekly grocery shopping at Carrefour",className:"bg-white border-slate-200 min-h-[80px]"})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(An,{htmlFor:"amount",className:"text-slate-700 font-medium",children:"Amount (EUR)"}),v.jsxs("div",{className:"relative",children:[v.jsx("span",{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-slate-400 text-sm font-medium",children:"â¬"}),v.jsx(qr,{id:"amount",type:"number",min:"0",step:"0.01",value:t.amount,onChange:y=>h("amount",y.target.value),placeholder:"0.00",className:"pl-8 bg-white border-slate-200",required:!0})]})]}),t.type&&(t.description||t.amount)&&v.jsxs("div",{className:"bg-gradient-to-r from-purple-50 to-blue-50 p-4 rounded-lg border border-purple-200",children:[v.jsxs("div",{className:"flex items-center justify-between gap-4",children:[v.jsxs("div",{className:"flex-1",children:[v.jsxs("p",{className:"text-sm font-medium text-slate-900 flex items-center gap-2",children:[v.jsx(Sf,{className:"w-4 h-4 text-purple-600"}),"AI-Powered Categorization"]}),v.jsx("p",{className:"text-xs text-slate-600 mt-1",children:"Let AI suggest the best category based on your transaction"})]}),v.jsx(ht,{type:"button",onClick:m,disabled:o,className:"bg-gradient-to-r from-purple-600 to-blue-600 hover:from-purple-700 hover:to-blue-700 text-white",children:o?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-white border-t-transparent mr-2"}),"Analyzing..."]}):v.jsxs(v.Fragment,{children:[v.jsx(Sf,{className:"w-4 h-4 mr-2"}),"Auto-Categorize"]})})]}),f&&v.jsx("div",{className:"mt-3 p-3 bg-white rounded-lg border border-purple-100",children:v.jsxs("p",{className:"text-xs text-slate-600",children:[v.jsx("span",{className:"font-semibold text-purple-700",children:"AI Suggestion:"})," ",f.explanation]})})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(An,{htmlFor:"category",className:"text-slate-700 font-medium",children:"Category"}),v.jsxs(Cl,{value:t.category,onValueChange:y=>h("category",y),disabled:!t.type,children:[v.jsx(us,{className:"bg-white border-slate-200",children:v.jsx(Tl,{placeholder:"Select category"})}),v.jsx(cs,{children:w.map(y=>v.jsx(Jn,{value:y.value,children:y.label},y.value))})]})]}),t.type==="expense"&&v.jsxs("div",{className:"space-y-2",children:[v.jsx(An,{htmlFor:"classification",className:"text-slate-700 font-medium",children:"Classification"}),v.jsxs(Cl,{value:t.classification,onValueChange:y=>h("classification",y),children:[v.jsx(us,{className:"bg-white border-slate-200",children:v.jsx(Tl,{placeholder:"Select classification"})}),v.jsxs(cs,{children:[v.jsx(Jn,{value:"need",children:"Need"}),v.jsx(Jn,{value:"want",children:"Want"}),v.jsx(Jn,{value:"future",children:"Future"})]})]})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(An,{htmlFor:"date",className:"text-slate-700 font-medium",children:"Date"}),v.jsxs("div",{className:"relative",children:[v.jsx(eg,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-slate-400 w-4 h-4 pointer-events-none"}),v.jsx(qr,{id:"date",type:"date",value:t.date,onChange:y=>h("date",y.target.value),className:"pl-10 bg-white border-slate-200",required:!0})]}),v.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"You can manually type or select a date from the calendar"})]}),v.jsx("div",{className:"pt-4",children:v.jsx(ht,{type:"submit",disabled:r||!t.type||!t.category||!t.amount||t.type==="expense"&&!t.classification,className:"w-full bg-gradient-to-r from-blue-600 to-emerald-500 hover:from-blue-700 hover:to-emerald-600 text-white shadow-lg hover:shadow-xl transition-all duration-300 py-6",children:r?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"animate-spin rounded-full h-5 w-5 border-2 border-white border-t-transparent mr-2"}),"Saving Transaction..."]}):v.jsxs(v.Fragment,{children:[v.jsx(b$,{className:"w-5 h-5 mr-2"}),"Save Transaction"]})})})]})]})]})]})})}function vt({className:e,...t}){return v.jsx("div",{className:Pe("animate-pulse rounded-md bg-primary/10",e),...t})}function ap({title:e,value:t,icon:n,color:r,isPercentage:i=!1,isLoading:o}){const a={emerald:"text-emerald-600 bg-emerald-50 border-emerald-100",red:"text-red-600 bg-red-50 border-red-100",blue:"text-blue-600 bg-blue-50 border-blue-100",yellow:"text-yellow-600 bg-yellow-50 border-yellow-100"},l=c=>i?`${c.toFixed(1)}
304%`:`â¬${c.toLocaleString()}`;return v.jsx(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg hover:shadow-xl transition-all duration-300",children:v.jsx(Nt,{className:"p-6",children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx("p",{className:"text-sm font-medium text-slate-600",children:e}),o?v.jsx(vt,{className:"h-8 w-24"}):v.jsx("p",{className:"text-3xl font-bold text-slate-900",children:l(t)})]}),v.jsx("div",{className:`p-3 rounded-2xl border ${a[r]||a.blue}`,children:v.jsx(n,{className:"w-6 h-6"})})]})})})}var qb,aj;function ir(){if(aj)return qb;aj=1;var e=Array.isArray;return qb=e,qb}var zb,sj;function S4(){if(sj)return zb;sj=1;var e=typeof Kh=="object"&&Kh&&Kh.Object===Object&&Kh;return zb=e,zb}var Ub,lj;function Li(){if(lj)return Ub;lj=1;var e=S4(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Ub=n,Ub}var Wb,uj;function Ed(){if(uj)return Wb;uj=1;var e=Li(),t=e.Symbol;return Wb=t,Wb}var Hb,cj;function jQ(){if(cj)return Hb;cj=1;var e=Ed(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(a){var l=n.call(a,i),c=a[i];try{a[i]=void 0;var f=!0}catch{}var d=r.call(a);return f&&(l?a[i]=c:delete a[i]),d}return Hb=o,Hb}var Vb,fj;function NQ(){if(fj)return Vb;fj=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Vb=n,Vb}var Kb,dj;function vo(){if(dj)return Kb;dj=1;var e=Ed(),t=jQ(),n=NQ(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(l){return l==null?l===void 0?i:r:o&&o in Object(l)?t(l):n(l)}return Kb=a,Kb}var Gb,hj;function bo(){if(hj)return Gb;hj=1;function e(t){return t!=null&&typeof t=="object"}return Gb=e,Gb}var Yb,pj;function Fu(){if(pj)return Yb;pj=1;var e=vo(),t=bo(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Yb=r,Yb}var Xb,mj;function nE(){if(mj)return Xb;mj=1;var e=ir(),t=Fu(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,a){if(e(o))return!1;var l=typeof o;return l=="number"||l=="symbol"||l=="boolean"||o==null||t(o)?!0:r.test(o)||!n.test(o)||a!=null&&o in Object(a)}return Xb=i,Xb}var Qb,gj;function ga(){if(gj)return Qb;gj=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Qb=e,Qb}var Jb,yj;function rE(){if(yj)return Jb;yj=1;var e=vo(),t=ga(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function a(l){if(!t(l))return!1;var c=e(l);return c==r||c==i||c==n||c==o}return Jb=a,Jb}var Zb,vj;function RQ(){if(vj)return Zb;vj=1;var e=Li(),t=e["__core-js_shared__"];return Zb=t,Zb}var e0,bj;function MQ(){if(bj)return e0;bj=1;
vendor: 5,983 bytes, line 304
304var e=RQ(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return e0=n,e0}var t0,xj;function _4(){if(xj)return t0;xj=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return t0=n,t0}var n0,wj;function IQ(){if(wj)return n0;wj=1;var e=rE(),t=MQ(),n=ga(),r=_4(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,a=Function.prototype,l=Object.prototype,c=a.toString,f=l.hasOwnProperty,d=RegExp("^"+c.call(f).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(m){if(!n(m)||t(m))return!1;var g=e(m)?d:o;return g.test(r(m))}return n0=h,n0}var r0,Sj;function DQ(){if(Sj)return r0;Sj=1;function e(t,n){return t==null?void 0:t[n]}return r0=e,r0}var i0,_j;function Rs(){if(_j)return i0;_j=1;var e=IQ(),t=DQ();function n(r,i){var o=t(r,i);return e(o)?o:void 0}return i0=n,i0}var o0,Oj;function _g(){if(Oj)return o0;Oj=1;var e=Rs(),t=e(Object,"create");return o0=t,o0}var a0,Ej;function LQ(){if(Ej)return a0;Ej=1;var e=_g();function t(){this.__data__=e?e(null):{},this.size=0}return a0=t,a0}var s0,Pj;function $Q(){if(Pj)return s0;Pj=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return s0=e,s0}var l0,Aj;function FQ(){if(Aj)return l0;Aj=1;var e=_g(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(o){var a=this.__data__;if(e){var l=a[o];return l===t?void 0:l}return r.call(a,o)?a[o]:void 0}return l0=i,l0}var u0,kj;function BQ(){if(kj)return u0;kj=1;var e=_g(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var o=this.__data__;return e?o[i]!==void 0:n.call(o,i)}return u0=r,u0}var c0,Cj;function qQ(){if(Cj)return c0;Cj=1;var e=_g(),t="__lodash_hash_undefined__";function n(r,i){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&i===void 0?t:i,this}return c0=n,c0}var f0,Tj;function zQ(){if(Tj)return f0;Tj=1;var e=LQ(),t=$Q(),n=FQ(),r=BQ(),i=qQ();function o(a){var l=-1,c=a==null?0:a.length;for(this.clear();++l<c;){var f=a[l];this.set(f[0],f[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,f0=o,f0}var d0,jj;function UQ(){if(jj)return d0;jj=1;function e(){this.__data__=[],this.size=0}return d0=e,d0}var h0,Nj;function iE(){if(Nj)return h0;Nj=1;function e(t,n){return t===n||t!==t&&n!==n}return h0=e,h0}var p0,Rj;function Og(){if(Rj)return p0;Rj=1;var e=iE();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return p0=t,p0}var m0,Mj;function WQ(){if(Mj)return m0;Mj=1;var e=Og(),t=Array.prototype,n=t.splice;function r(i){var o=this.__data__,a=e(o,i);if(a<0)return!1;var l=o.length-1;return a==l?o.pop():n.call(o,a,1),--this.size,!0}return m0=r,m0}var g0,Ij;function HQ(){if(Ij)return g0;Ij=1;var e=Og();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return g0=t,g0}var y0,Dj;function VQ(){if(Dj)return y0;Dj=1;var e=Og();function t(n){return e(this.__data__,n)>-1}return y0=t,y0}var v0,Lj;function KQ(){if(Lj)return v0;Lj=1;var e=Og();function t(n,r){var i=this.__data__,o=e(i,n);return o<0?(++this.size,i.push([n,r])):i[o][1]=r,this}return v0=t,v0}var b0,$j;function Eg(){if($j)return b0;$j=1;var e=UQ(),t=WQ(),n=HQ(),r=VQ(),i=KQ();function o(a){var l=-1,c=a==null?0:a.length;for(this.clear();++l<c;){var f=a[l];this.set(f[0],f[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,b0=o,b0}var x0,Fj;function oE(){if(Fj)return x0;Fj=1;var e=Rs(),t=Li(),n=e(t,"Map");return x0=n,x0}var w0,Bj;function GQ(){if(Bj)return w0;Bj=1;var e=zQ(),t=Eg(),n=oE();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return w0=r,w0}var S0,qj;function YQ(){if(qj)return S0;qj=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return S0=e,S0}var _0,zj;function Pg(){if(zj)return _0;zj=1;var e=YQ();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return _0=t,_0}var O0,Uj;function XQ(){if(Uj)return O0;Uj=1;var e=Pg();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return O0=t,O0}var E0,Wj;function QQ(){if(Wj)return E0;Wj=1;var e=Pg();function t(n){return e(this,n).get(n)}return E0=t,E0}var P0,Hj;function JQ(){if(Hj)return P0;Hj=1;var e=Pg();function t(n){return e(this,n).has(n)}return P0=t,P0}var A0,Vj;function ZQ(){if(Vj)return A0;Vj=1;var e=Pg();function t(n,r){var i=e(this,n),o=i.size;return i.set(n,r),this.size+=i.size==o?0:1,this}return A0=t,A0}var k0,Kj;function aE(){if(Kj)return k0;Kj=1;var e=GQ(),t=XQ(),n=QQ(),r=JQ(),i=ZQ();function o(a){var l=-1,c=a==null?0:a.length;for(this.clear();++l<c;){var f=a[l];this.set(f[0],f[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,k0=o,k0}var C0,Gj;function O4(){if(Gj)return C0;Gj=1;var e=aE(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var o=function(){var a=arguments,l=i?i.apply(this,a):a[0],c=o.cache;if(c.has(l))return c.get(l);var f=r.apply(this,a);return o.cache=c.set(l,f)||c,f};return o.cache=new(n.Cache||e),o}return n.Cache=e,C0=n,C0}var T0,Yj;function eJ(){if(Yj)return T0;Yj=1;var e=O4(),t=500;function n(r){var i=e(r,function(a){return o.size===t&&o.clear(),a}),o=i.cache;return i}return T0=n,T0}var j0,Xj;function tJ(){if(Xj)return j0;Xj=1;var e=eJ(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var o=[];return i.charCodeAt(0)===46&&o.push(""),i.replace(t,function(a,l,c,f){o.push(c?f.replace(n,"$1"):l||a)}),o});return j0=r,j0}var N0,Qj;function sE(){if(Qj)return N0;Qj=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=Array(i);++r<i;)o[r]=n(t[r],r,t);return o}return N0=e,N0}var R0,Jj;
vendor: 9,765 bytes, lines 304-312
304function nJ(){if(Jj)return R0;Jj=1;var e=Ed(),t=sE(),n=ir(),r=Fu(),i=e?e.prototype:void 0,o=i?i.toString:void 0;function a(l){if(typeof l=="string")return l;if(n(l))return t(l,a)+"";if(r(l))return o?o.call(l):"";var c=l+"";return c=="0"&&1/l==-1/0?"-0":c}return R0=a,R0}var M0,Zj;function E4(){if(Zj)return M0;Zj=1;var e=nJ();function t(n){return n==null?"":e(n)}return M0=t,M0}var I0,eN;function P4(){if(eN)return I0;eN=1;var e=ir(),t=nE(),n=tJ(),r=E4();function i(o,a){return e(o)?o:t(o,a)?[o]:n(r(o))}return I0=i,I0}var D0,tN;function Ag(){if(tN)return D0;tN=1;var e=Fu();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return D0=t,D0}var L0,nN;function lE(){if(nN)return L0;nN=1;var e=P4(),t=Ag();function n(r,i){i=e(i,r);for(var o=0,a=i.length;r!=null&&o<a;)r=r[t(i[o++])];return o&&o==a?r:void 0}return L0=n,L0}var $0,rN;function A4(){if(rN)return $0;rN=1;var e=lE();function t(n,r,i){var o=n==null?void 0:e(n,r);return o===void 0?i:o}return $0=t,$0}var rJ=A4();const _r=tt(rJ);var F0,iN;function iJ(){if(iN)return F0;iN=1;function e(t){return t==null}return F0=e,F0}var oJ=iJ();const ze=tt(oJ);var B0,oN;function aJ(){if(oN)return B0;oN=1;var e=vo(),t=ir(),n=bo(),r="[object String]";function i(o){return typeof o=="string"||!t(o)&&n(o)&&e(o)==r}return B0=i,B0}var sJ=aJ();const ws=tt(sJ);var lJ=rE();const Be=tt(lJ);var uJ=ga();const Bu=tt(uJ);var q0={exports:{}},ct={};/** 305 * @license React 306 * react-is.production.min.js 307 * 308 * Copyright (c) Facebook, Inc. and its affiliates. 309 * 310 * This source code is licensed under the MIT license found in the 311 * LICENSE file in the root directory of this source tree. 312 */var aN;function cJ(){if(aN)return ct;aN=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),w;w=Symbol.for("react.module.reference");function y(x){if(typeof x=="object"&&x!==null){var S=x.$$typeof;switch(S){case e:switch(x=x.type,x){case n:case i:case r:case f:case d:return x;default:switch(x=x&&x.$$typeof,x){case l:case a:case c:case m:case h:case o:return x;default:return S}}case t:return S}}}return ct.ContextConsumer=a,ct.ContextProvider=o,ct.Element=e,ct.ForwardRef=c,ct.Fragment=n,ct.Lazy=m,ct.Memo=h,ct.Portal=t,ct.Profiler=i,ct.StrictMode=r,ct.Suspense=f,ct.SuspenseList=d,ct.isAsyncMode=function(){return!1},ct.isConcurrentMode=function(){return!1},ct.isContextConsumer=function(x){return y(x)===a},ct.isContextProvider=function(x){return y(x)===o},ct.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},ct.isForwardRef=function(x){return y(x)===c},ct.isFragment=function(x){return y(x)===n},ct.isLazy=function(x){return y(x)===m},ct.isMemo=function(x){return y(x)===h},ct.isPortal=function(x){return y(x)===t},ct.isProfiler=function(x){return y(x)===i},ct.isStrictMode=function(x){return y(x)===r},ct.isSuspense=function(x){return y(x)===f},ct.isSuspenseList=function(x){return y(x)===d},ct.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===i||x===r||x===f||x===d||x===g||typeof x=="object"&&x!==null&&(x.$$typeof===m||x.$$typeof===h||x.$$typeof===o||x.$$typeof===a||x.$$typeof===c||x.$$typeof===w||x.getModuleId!==void 0)},ct.typeOf=y,ct}var sN;function fJ(){return sN||(sN=1,q0.exports=cJ()),q0.exports}var dJ=fJ(),z0,lN;function k4(){if(lN)return z0;lN=1;var e=vo(),t=bo(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return z0=r,z0}var U0,uN;function hJ(){if(uN)return U0;uN=1;var e=k4();function t(n){return e(n)&&n!=+n}return U0=t,U0}var pJ=hJ();const Pd=tt(pJ);var mJ=k4();const gJ=tt(mJ);var Bn=function(t){return t===0?0:t>0?1:-1},Ga=function(t){return ws(t)&&t.indexOf("%")===t.length-1},ge=function(t){return gJ(t)&&!Pd(t)},yJ=function(t){return ze(t)},on=function(t){return ge(t)||ws(t)},vJ=0,qu=function(t){var n=++vJ;return"".concat(t||"").concat(n)},qn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ge(t)&&!ws(t))return r;var o;if(Ga(t)){var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return Pd(o)&&(o=r),i&&o>n&&(o=n),o},Go=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},bJ=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},br=function(t,n){return ge(t)&&ge(n)?function(r){return t+r*(n-t)}:function(){return n}};function Qp(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):_r(r,t))===n})}var xJ=function(t,n){return ge(t)&&ge(n)?t-n:ws(t)&&ws(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Rl(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function WS(e){"@babel/helpers - typeof";return WS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},WS(e)}var wJ=["viewBox","children"],SJ=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","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","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","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","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],cN=["points","pathLength"],W0={svg:wJ,polygon:cN,polyline:cN},uE=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
312ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Jp=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(T.isValidElement(t)&&(r=t.props),!Bu(r))return null;var i={};return Object.keys(r).forEach(function(o){uE.includes(o)&&(i[o]=n||function(a){return r[o](r,a)})}),i},_J=function(t,n,r){return function(i){return t(n,r,i),null}},Ss=function(t,n,r){if(!Bu(t)||WS(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var a=t[o];uE.includes(o)&&typeof a=="function"&&(i||(i={}),i[o]=_J(a,n,r))}),i},OJ=["children"],EJ=["children"];function fN(e,t){if(e==null)return{};var n=PJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function PJ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function HS(e){"@babel/helpers - typeof";return HS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},HS(e)}var dN={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"}
vendor: 6,228 bytes, line 312
312,lo=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},hN=null,H0=null,cE=function e(t){if(t===hN&&Array.isArray(H0))return H0;var n=[];return T.Children.forEach(t,function(r){ze(r)||(dJ.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),H0=n,hN=t,n};function Or(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return lo(i)}):r=[lo(t)],cE(e).forEach(function(i){var o=_r(i,"type.displayName")||_r(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function gr(e,t){var n=Or(e,t);return n&&n[0]}var pN=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!ge(r)||r<=0||!ge(i)||i<=0)},AJ=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],kJ=function(t){return t&&t.type&&ws(t.type)&&AJ.indexOf(t.type)>=0},CJ=function(t){return t&&HS(t)==="object"&&"clipDot"in t},TJ=function(t,n,r,i){var o,a=(o=W0==null?void 0:W0[i])!==null&&o!==void 0?o:[];return n.startsWith("data-")||!Be(t)&&(i&&a.includes(n)||SJ.includes(n))||r&&uE.includes(n)},Ie=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(T.isValidElement(t)&&(i=t.props),!Bu(i))return null;var o={};return Object.keys(i).forEach(function(a){var l;TJ((l=i)===null||l===void 0?void 0:l[a],a,n,r)&&(o[a]=i[a])}),o},VS=function e(t,n){if(t===n)return!0;var r=T.Children.count(t);if(r!==T.Children.count(n))return!1;if(r===0)return!0;if(r===1)return mN(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],a=n[i];if(Array.isArray(o)||Array.isArray(a)){if(!e(o,a))return!1}else if(!mN(o,a))return!1}return!0},mN=function(t,n){if(ze(t)&&ze(n))return!0;if(!ze(t)&&!ze(n)){var r=t.props||{},i=r.children,o=fN(r,OJ),a=n.props||{},l=a.children,c=fN(a,EJ);return i&&l?Rl(o,c)&&VS(i,l):!i&&!l?Rl(o,c):!1}return!1},gN=function(t,n){var r=[],i={};return cE(t).forEach(function(o,a){if(kJ(o))r.push(o);else if(o){var l=lo(o.type),c=n[l]||{},f=c.handler,d=c.once;if(f&&(!d||!i[l])){var h=f(o,l,a);r.push(h),i[l]=!0}}}),r},jJ=function(t){var n=t&&t.type;return n&&dN[n]?dN[n]:null},NJ=function(t,n){return cE(n).indexOf(t)},RJ=["children","width","height","viewBox","className","style","title","desc"];function KS(){return KS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KS.apply(this,arguments)}function MJ(e,t){if(e==null)return{};var n=IJ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function IJ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function GS(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,a=e.style,l=e.title,c=e.desc,f=MJ(e,RJ),d=i||{width:n,height:r,x:0,y:0},h=We("recharts-surface",o);return H.createElement("svg",KS({},Ie(f,!0,"svg"),{className:h,width:n,height:r,style:a,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),H.createElement("title",null,l),H.createElement("desc",null,c),t)}var DJ=["children","className"];function YS(){return YS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YS.apply(this,arguments)}function LJ(e,t){if(e==null)return{};var n=$J(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $J(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var rt=H.forwardRef(function(e,t){var n=e.children,r=e.className,i=LJ(e,DJ),o=We("recharts-layer",r);return H.createElement("g",YS({className:o},Ie(i,!0),{ref:t}),n)}),ai=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o]},V0,yN;function FJ(){if(yN)return V0;yN=1;function e(t,n,r){var i=-1,o=t.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var a=Array(o);++i<o;)a[i]=t[i+n];return a}return V0=e,V0}var K0,vN;function BJ(){if(vN)return K0;vN=1;var e=FJ();function t(n,r,i){var o=n.length;return i=i===void 0?o:i,!r&&i>=o?n:e(n,r,i)}return K0=t,K0}var G0,bN;function C4(){if(bN)return G0;bN=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,o="\\ufe0e\\ufe0f",a="\\u200d",l=RegExp("["+a+e+i+o+"]");function c(f){return l.test(f)}return G0=c,G0}var Y0,xN;function qJ(){if(xN)return Y0;xN=1;function e(t){return t.split("")}return Y0=e,Y0}var X0,wN;function zJ(){if(wN)return X0;wN=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,o="\\ufe0e\\ufe0f",a="["+e+"]",l="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",f="(?:"+l+"|"+c+")",d="[^"+e+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",w=f+"?",y="["+o+"]?",x="(?:"+g+"(?:"+[d,h,m].join("|")+")"+y+w+")*",S=y+w+x,P="(?:"+[d+l+"?",l,h,m,a].join("|")+")",E=RegExp(c+"(?="+c+")|"+P+S,"g");function C(O){return O.match(E)||[]}return X0=C,X0}var Q0,SN;
vendor: 4,187 bytes, line 312
312function UJ(){if(SN)return Q0;SN=1;var e=qJ(),t=C4(),n=zJ();function r(i){return t(i)?n(i):e(i)}return Q0=r,Q0}var J0,_N;function WJ(){if(_N)return J0;_N=1;var e=BJ(),t=C4(),n=UJ(),r=E4();function i(o){return function(a){a=r(a);var l=t(a)?n(a):void 0,c=l?l[0]:a.charAt(0),f=l?e(l,1).join(""):a.slice(1);return c[o]()+f}}return J0=i,J0}var Z0,ON;function HJ(){if(ON)return Z0;ON=1;var e=WJ(),t=e("toUpperCase");return Z0=t,Z0}var VJ=HJ();const kg=tt(VJ);function Ot(e){return function(){return e}}const T4=Math.cos,Zp=Math.sin,ci=Math.sqrt,em=Math.PI,Cg=2*em,XS=Math.PI,QS=2*XS,qa=1e-6,KJ=QS-qa;function j4(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function GJ(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return j4;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class YJ{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?j4:GJ(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,l=this._y1,c=r-t,f=i-n,d=a-t,h=l-n,m=d*d+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(m>qa)if(!(Math.abs(h*c-f*d)>qa)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let g=r-a,w=i-l,y=c*c+f*f,x=g*g+w*w,S=Math.sqrt(y),P=Math.sqrt(m),E=o*Math.tan((XS-Math.acos((y+m-x)/(2*S*P)))/2),C=E/P,O=E/S;Math.abs(C-1)>qa&&this._append`L${t+C*d},${n+C*h}`,this._append`A${o},${o},0,0,${+(h*g>d*w)},${this._x1=t+O*c},${this._y1=n+O*f}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),c=r*Math.sin(i),f=t+l,d=n+c,h=1^a,m=a?i-o:o-i;this._x1===null?this._append`M${f},${d}`:(Math.abs(this._x1-f)>qa||Math.abs(this._y1-d)>qa)&&this._append`L${f},${d}`,r&&(m<0&&(m=m%QS+QS),m>KJ?this._append`A${r},${r},0,1,${h},${t-l},${n-c}A${r},${r},0,1,${h},${this._x1=f},${this._y1=d}`:m>qa&&this._append`A${r},${r},0,${+(m>=XS)},${h},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function fE(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new YJ(t)}function dE(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function N4(e){this._context=e}N4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Tg(e){return new N4(e)}function R4(e){return e[0]}function M4(e){return e[1]}function I4(e,t){var n=Ot(!0),r=null,i=Tg,o=null,a=fE(l);e=typeof e=="function"?e:e===void 0?R4:Ot(e),t=typeof t=="function"?t:t===void 0?M4:Ot(t);function l(c){var f,d=(c=dE(c)).length,h,m=!1,g;for(r==null&&(o=i(g=a())),f=0;f<=d;++f)!(f<d&&n(h=c[f],f,c))===m&&((m=!m)?o.lineStart():o.lineEnd()),m&&o.point(+e(h,f,c),+t(h,f,c));if(g)return o=null,g+""||null}return l.x=function(c){return arguments.length?(e=typeof c=="function"?c:Ot(+c),l):e},l.y=function(c){return arguments.length?(t=typeof c=="function"?c:Ot(+c),l):t},l.defined=function(c){return arguments.length?(n=typeof c=="function"?c:Ot(!!c),l):n},l.curve=function(c){return arguments.length?(i=c,r!=null&&(o=i(r)),l):i},l.context=function(c){return arguments.length?(c==null?r=o=null:o=i(r=c),l):r},l}
vendor: 10,203 bytes, line 312
312function sp(e,t,n){var r=null,i=Ot(!0),o=null,a=Tg,l=null,c=fE(f);e=typeof e=="function"?e:e===void 0?R4:Ot(+e),t=typeof t=="function"?t:Ot(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?M4:Ot(+n);function f(h){var m,g,w,y=(h=dE(h)).length,x,S=!1,P,E=new Array(y),C=new Array(y);for(o==null&&(l=a(P=c())),m=0;m<=y;++m){if(!(m<y&&i(x=h[m],m,h))===S)if(S=!S)g=m,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),w=m-1;w>=g;--w)l.point(E[w],C[w]);l.lineEnd(),l.areaEnd()}S&&(E[m]=+e(x,m,h),C[m]=+t(x,m,h),l.point(r?+r(x,m,h):E[m],n?+n(x,m,h):C[m]))}if(P)return l=null,P+""||null}function d(){return I4().defined(i).curve(a).context(o)}return f.x=function(h){return arguments.length?(e=typeof h=="function"?h:Ot(+h),r=null,f):e},f.x0=function(h){return arguments.length?(e=typeof h=="function"?h:Ot(+h),f):e},f.x1=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:Ot(+h),f):r},f.y=function(h){return arguments.length?(t=typeof h=="function"?h:Ot(+h),n=null,f):t},f.y0=function(h){return arguments.length?(t=typeof h=="function"?h:Ot(+h),f):t},f.y1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:Ot(+h),f):n},f.lineX0=f.lineY0=function(){return d().x(e).y(t)},f.lineY1=function(){return d().x(e).y(n)},f.lineX1=function(){return d().x(r).y(t)},f.defined=function(h){return arguments.length?(i=typeof h=="function"?h:Ot(!!h),f):i},f.curve=function(h){return arguments.length?(a=h,o!=null&&(l=a(o)),f):a},f.context=function(h){return arguments.length?(h==null?o=l=null:l=a(o=h),f):o},f}class D4{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function XJ(e){return new D4(e,!0)}function QJ(e){return new D4(e,!1)}const hE={draw(e,t){const n=ci(t/em);e.moveTo(n,0),e.arc(0,0,n,0,Cg)}},JJ={draw(e,t){const n=ci(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},L4=ci(1/3),ZJ=L4*2,eZ={draw(e,t){const n=ci(t/ZJ),r=n*L4;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},tZ={draw(e,t){const n=ci(t),r=-n/2;e.rect(r,r,n,n)}},nZ=.8908130915292852,$4=Zp(em/10)/Zp(7*em/10),rZ=Zp(Cg/10)*$4,iZ=-T4(Cg/10)*$4,oZ={draw(e,t){const n=ci(t*nZ),r=rZ*n,i=iZ*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=Cg*o/5,l=T4(a),c=Zp(a);e.lineTo(c*n,-l*n),e.lineTo(l*r-c*i,c*r+l*i)}e.closePath()}},ex=ci(3),aZ={draw(e,t){const n=-ci(t/(ex*3));e.moveTo(0,n*2),e.lineTo(-ex*n,-n),e.lineTo(ex*n,-n),e.closePath()}},Rr=-.5,Mr=ci(3)/2,JS=1/ci(12),sZ=(JS/2+1)*3,lZ={draw(e,t){const n=ci(t/sZ),r=n/2,i=n*JS,o=r,a=n*JS+n,l=-o,c=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(l,c),e.lineTo(Rr*r-Mr*i,Mr*r+Rr*i),e.lineTo(Rr*o-Mr*a,Mr*o+Rr*a),e.lineTo(Rr*l-Mr*c,Mr*l+Rr*c),e.lineTo(Rr*r+Mr*i,Rr*i-Mr*r),e.lineTo(Rr*o+Mr*a,Rr*a-Mr*o),e.lineTo(Rr*l+Mr*c,Rr*c-Mr*l),e.closePath()}};function uZ(e,t){let n=null,r=fE(i);e=typeof e=="function"?e:Ot(e||hE),t=typeof t=="function"?t:Ot(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:Ot(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Ot(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function tm(){}function nm(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function F4(e){this._context=e}F4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:nm(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:nm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function cZ(e){return new F4(e)}function B4(e){this._context=e}B4.prototype={areaStart:tm,areaEnd:tm,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:nm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function fZ(e){return new B4(e)}function q4(e){this._context=e}q4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:nm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dZ(e){return new q4(e)}function z4(e){this._context=e}z4.prototype={areaStart:tm,areaEnd:tm,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function hZ(e){return new z4(e)}function EN(e){return e<0?-1:1}function PN(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),l=(o*i+a*r)/(r+i);return(EN(o)+EN(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(l))||0}function AN(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function tx(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,l=(o-r)/3;e._context.bezierCurveTo(r+l,i+l*t,o-l,a-l*n,o,a)}function rm(e){this._context=e}rm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:tx(this,this._t0,AN(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,tx(this,AN(this,n=PN(this,e,t)),n);break;default:tx(this,this._t0,n=PN(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function U4(e){this._context=new W4(e)}(U4.prototype=Object.create(rm.prototype)).point=function(e,t){rm.prototype.point.call(this,t,e)};function W4(e){this._context=e}W4.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function pZ(e){return new rm(e)}function mZ(e){return new U4(e)}function H4(e){this._context=e}H4.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=kN(e),i=kN(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function kN(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function gZ(e){return new H4(e)}function jg(e,t){this._context=e,this._t=t}jg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 17,723 bytes, lines 312-315
312default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function yZ(e){return new jg(e,.5)}function vZ(e){return new jg(e,0)}function bZ(e){return new jg(e,1)}function tu(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,l=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<l;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function ZS(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function xZ(e,t){return e[t]}function wZ(e){const t=[];return t.key=e,t}function SZ(){var e=Ot([]),t=ZS,n=tu,r=xZ;function i(o){var a=Array.from(e.apply(this,arguments),wZ),l,c=a.length,f=-1,d;for(const h of o)for(l=0,++f;l<c;++l)(a[l][f]=[0,+r(h,a[l].key,f,o)]).data=h;for(l=0,d=dE(t(a));l<c;++l)a[d[l]].index=l;return n(a,d),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Ot(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:Ot(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?ZS:typeof o=="function"?o:Ot(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??tu,i):n},i}function _Z(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}tu(e,t)}}function OZ(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,l=0;a<i;++a)l+=e[a][n][1]||0;r[n][1]+=r[n][0]=-l/2}tu(e,t)}}function EZ(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var l=0,c=0,f=0;l<a;++l){for(var d=e[t[l]],h=d[r][1]||0,m=d[r-1][1]||0,g=(h-m)/2,w=0;w<l;++w){var y=e[t[w]],x=y[r][1]||0,S=y[r-1][1]||0;g+=x-S}c+=h,f+=g*h}i[r-1][1]+=i[r-1][0]=n,c&&(n-=f/c)}i[r-1][1]+=i[r-1][0]=n,tu(e,t)}}function Cf(e){"@babel/helpers - typeof";return Cf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cf(e)}var PZ=["type","size","sizeType"];function e_(){return e_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e_.apply(this,arguments)}function CN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function TN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CN(Object(n),!0).forEach(function(r){AZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AZ(e,t,n){return t=kZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kZ(e){var t=CZ(e,"string");return Cf(t)=="symbol"?t:t+""}function CZ(e,t){if(Cf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TZ(e,t){if(e==null)return{};var n=jZ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jZ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var V4={symbolCircle:hE,symbolCross:JJ,symbolDiamond:eZ,symbolSquare:tZ,symbolStar:oZ,symbolTriangle:aZ,symbolWye:lZ},NZ=Math.PI/180,RZ=function(t){var n="symbol".concat(kg(t));return V4[n]||hE},MZ=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*NZ;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},IZ=function(t,n){V4["symbol".concat(kg(t))]=n},pE=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,o=i===void 0?64:i,a=t.sizeType,l=a===void 0?"area":a,c=TZ(t,PZ),f=TN(TN({},c),{},{type:r,size:o,sizeType:l}),d=function(){var x=RZ(r),S=uZ().type(x).size(MZ(o,l,r));return S()},h=f.className,m=f.cx,g=f.cy,w=Ie(f,!0);return m===+m&&g===+g&&o===+o?H.createElement("path",e_({},w,{className:We("recharts-symbols",h),transform:"translate(".concat(m,", ").concat(g,")"),d:d()})):null};pE.registerSymbol=IZ;function nu(e){"@babel/helpers - typeof";return nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nu(e)}function t_(){return t_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t_.apply(this,arguments)}function jN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jN(Object(n),!0).forEach(function(r){Tf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,G4(r.key),r)}}function FZ(e,t,n){return t&&$Z(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BZ(e,t,n){return t=im(t),qZ(e,K4()?Reflect.construct(t,n||[],im(e).constructor):t.apply(e,n))}function qZ(e,t){if(t&&(nu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zZ(e)}function zZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(K4=function(){return!!e})()}function im(e){return im=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},im(e)}function UZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n_(e,t)}function n_(e,t){return n_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},n_(e,t)}function Tf(e,t,n){return t=G4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G4(e){var t=WZ(e,"string");return nu(t)=="symbol"?t:t+""}function WZ(e,t){if(nu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ir=32,mE=(function(e){function t(){return LZ(this,t),BZ(this,t,arguments)}return UZ(t,e),FZ(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=Ir/2,a=Ir/6,l=Ir/3,c=r.inactive?i:r.color;if(r.type==="plainline")return H.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:Ir,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return H.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(o,"h").concat(l,` 313 A`).concat(a,",").concat(a,",0,1,1,").concat(2*l,",").concat(o,` 314 H`).concat(Ir,"M").concat(2*l,",").concat(o,` 315 A`).concat(a,",").concat(a,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return H.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Ir/8,"h").concat(Ir,"v").concat(Ir*3/4,"h").concat(-Ir,"z"),className:"recharts-legend-icon"});if(H.isValidElement(r.legendIcon)){var f=DZ({},r);return delete f.legendIcon,H.cloneElement(r.legendIcon,f)}return H.createElement(pE,{fill:c,cx:o,cy:o,size:Ir,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,o=i.payload,a=i.iconSize,l=i.layout,c=i.formatter,f=i.inactiveColor,d={x:0,y:0,width:Ir,height:Ir},h={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(g,w){var y=g.formatter||c,x=We(Tf(Tf({"recharts-legend-item":!0},"legend-item-".concat(w),!0),"inactive",g.inactive));if(g.type==="none")return null;var S=Be(g.value)?null:g.value;ai(!Be(g.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var P=g.inactive?f:g.color;return H.createElement("li",t_({className:x,style:h,key:"legend-item-".concat(w)},Ss(r.props,g,w)),H.createElement(GS,{width:a,height:a,viewBox:d,style:m},r.renderIcon(g)),H.createElement("span",{className:"recharts-legend-item-text",style:{color:P}},y?y(S,g,w):S))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,a=r.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return H.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])})(T.PureComponent);Tf(mE,"displayName","Legend");Tf(mE,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var nx,NN;function HZ(){if(NN)return nx;NN=1;var e=Eg();function t(){this.__data__=new e,this.size=0}return nx=t,nx}var rx,RN;function VZ(){if(RN)return rx;RN=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return rx=e,rx}var ix,MN;function KZ(){if(MN)return ix;MN=1;function e(t){return this.__data__.get(t)}return ix=e,ix}var ox,IN;function GZ(){if(IN)return ox;IN=1;function e(t){return this.__data__.has(t)}return ox=e,ox}var ax,DN;function YZ(){if(DN)return ax;DN=1;var e=Eg(),t=oE(),n=aE(),r=200;function i(o,a){var l=this.__data__;if(l instanceof e){var c=l.__data__;if(!t||c.length<r-1)return c.push([o,a]),this.size=++l.size,this;l=this.__data__=new n(c)}return l.set(o,a),this.size=l.size,this}return ax=i,ax}var sx,LN;function Y4(){if(LN)return sx;LN=1;var e=Eg(),t=HZ(),n=VZ(),r=KZ(),i=GZ(),o=YZ();function a(l){var c=this.__data__=new e(l);this.size=c.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=o,sx=a,sx}var lx,$N;function XZ(){if($N)return lx;$N=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return lx=t,lx}var ux,FN;function QZ(){if(FN)return ux;FN=1;function e(t){return this.__data__.has(t)}return ux=e,ux}var cx,BN;function X4(){if(BN)return cx;BN=1;var e=aE(),t=XZ(),n=QZ();function r(i){var o=-1,a=i==null?0:i.length;for(this.__data__=new e;++o<a;)this.add(i[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,cx=r,cx}var fx,qN;function Q4(){if(qN)return fx;qN=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return fx=e,fx}var dx,zN;function J4(){if(zN)return dx;zN=1;function e(t,n){return t.has(n)}return dx=e,dx}var hx,UN;function Z4(){if(UN)return hx;UN=1;var e=X4(),t=Q4(),n=J4(),r=1,i=2;function o(a,l,c,f,d,h){var m=c&r,g=a.length,w=l.length;if(g!=w&&!(m&&w>g))return!1;var y=h.get(a),x=h.get(l);if(y&&x)return y==l&&x==a;var S=-1,P=!0,E=c&i?new e:void 0;for(h.set(a,l),h.set(l,a);++S<g;){var C=a[S],O=l[S];if(f)var A=m?f(O,C,S,l,a,h):f(C,O,S,a,l,h);if(A!==void 0){if(A)continue;P=!1;break}if(E){if(!t(l,function(j,R){if(!n(E,R)&&(C===j||d(C,j,c,f,h)))return E.push(R)})){P=!1;break}}else if(!(C===O||d(C,O,c,f,h))){P=!1;break}}return h.delete(a),h.delete(l),P}return hx=o,hx}var px,WN;function JZ(){if(WN)return px;WN=1;var e=Li(),t=e.Uint8Array;return px=t,px}var mx,HN;function ZZ(){if(HN)return mx;HN=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,o){r[++n]=[o,i]}),r}return mx=e,mx}var gx,VN;function gE(){if(VN)return gx;VN=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return gx=e,gx}var yx,KN;function eee(){if(KN)return yx;KN=1;var e=Ed(),t=JZ(),n=iE(),r=Z4(),i=ZZ(),o=gE(),a=1,l=2,c="[object Boolean]",f="[object Date]",d="[object Error]",h="[object Map]",m="[object Number]",g="[object RegExp]",w="[object Set]",y="[object String]",x="[object Symbol]",S="[object ArrayBuffer]",P="[object DataView]",E=e?e.prototype:void 0,C=E?E.valueOf:void 0;function O(A,j,R,L,q,D,$){switch(R){case P:if(A.byteLength!=j.byteLength||A.byteOffset!=j.byteOffset)return!1;A=A.buffer,j=j.buffer;case S:return!(A.byteLength!=j.byteLength||!D(new t(A),new t(j)));case c:case f:case m:return n(+A,+j);case d:return A.name==j.name&&A.message==j.message;case g:case y:return A==j+"";case h:var B=i;case w:var W=L&a;if(B||(B=o),A.size!=j.size&&!W)return!1;var V=$.get(A);if(V)return V==j;L|=l,$.set(A,j);var Y=r(B(A),B(j),L,q,D,$);return $.delete(A),Y;case x:if(C)return C.call(A)==C.call(j)}return!1}return yx=O,yx}var vx,GN;function e3(){if(GN)return vx;GN=1;function e(t,n){for(var r=-1,i=n.length,o=t.length;++r<i;)t[o+r]=n[r];return t}return vx=e,vx}var bx,YN;function tee(){if(YN)return bx;YN=1;var e=e3(),t=ir();function n(r,i,o){var a=i(r);return t(r)?a:e(a,o(r))}return bx=n,bx}var xx,XN;function nee(){if(XN)return xx;XN=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=0,a=[];++r<i;){var l=t[r];n(l,r,t)&&(a[o++]=l)}return a}return xx=e,xx}var wx,QN;function ree(){if(QN)return wx;QN=1;function e(){return[]}return wx=e,wx}var Sx,JN;function iee(){if(JN)return Sx;JN=1;var e=nee(),t=ree(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(l){return r.call(a,l)}))}:t;return Sx=o,Sx}var _x,ZN;function oee(){if(ZN)return _x;ZN=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return _x=e,_x}var Ox,eR;function aee(){if(eR)return Ox;eR=1;var e=vo(),t=bo(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return Ox=r,Ox}var Ex,tR;function yE(){if(tR)return Ex;tR=1;var e=aee(),t=bo(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(a){return t(a)&&r.call(a,"callee")&&!i.call(a,"callee")};return Ex=o,Ex}var af={exports:{}},Px,nR;function see(){if(nR)return Px;nR=1;function e(){return!1}return Px=e,Px}af.exports;var rR;function t3(){return rR||(rR=1,(function(e,t){var n=Li(),r=see(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,l=a?n.Buffer:void 0,c=l?l.isBuffer:void 0,f=c||r;e.exports=f})(af,af.exports)),af.exports}var Ax,iR;function vE(){if(iR)return Ax;iR=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var o=typeof r;return i=i??e,!!i&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return Ax=n,Ax}var kx,oR;function bE(){if(oR)return kx;oR=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return kx=t,kx}var Cx,aR;function lee(){if(aR)return Cx;aR=1;var e=vo(),t=bE(),n=bo(),r="[object Arguments]",i="[object Array]",o="[object Boolean]",a="[object Date]",l="[object Error]",c="[object Function]",f="[object Map]",d="[object Number]",h="[object Object]",m="[object RegExp]",g="[object Set]",w="[object String]",y="[object WeakMap]",x="[object ArrayBuffer]",S="[object DataView]",P="[object Float32Array]",E="[object Float64Array]",C="[object Int8Array]",O="[object Int16Array]",A="[object Int32Array]",j="[object Uint8Array]",R="[object Uint8ClampedArray]",L="[object Uint16Array]",q="[object Uint32Array]",D={};D[P]=D[E]=D[C]=D[O]=D[A]=D[j]=D[R]=D[L]=D[q]=!0,D[r]=D[i]=D[x]=D[o]=D[S]=D[a]=D[l]=D[c]=D[f]=D[d]=D[h]=D[m]=D[g]=D[w]=D[y]=!1;function $(B){return n(B)&&t(B.length)&&!!D[e(B)]}return Cx=$,Cx}var Tx,sR;function n3(){if(sR)return Tx;sR=1;function e(t){return function(n){return t(n)}}return Tx=e,Tx}var sf={exports:{}};sf.exports;var lR;function uee(){return lR||(lR=1,(function(e,t){var n=S4(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,l=(function(){try{var c=i&&i.require&&i.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}})();e.exports=l})(sf,sf.exports)),sf.exports}var jx,uR;function r3(){if(uR)return jx;uR=1;var e=lee(),t=n3(),n=uee(),r=n&&n.isTypedArray,i=r?t(r):e;return jx=i,jx}var Nx,cR;function cee(){if(cR)return Nx;cR=1;var e=oee(),t=yE(),n=ir(),r=t3(),i=vE(),o=r3(),a=Object.prototype,l=a.hasOwnProperty;function c(f,d){var h=n(f),m=!h&&t(f),g=!h&&!m&&r(f),w=!h&&!m&&!g&&o(f),y=h||m||g||w,x=y?e(f.length,String):[],S=x.length;for(var P in f)(d||l.call(f,P))&&!(y&&(P=="length"||g&&(P=="offset"||P=="parent")||w&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||i(P,S)))&&x.push(P);return x}return Nx=c,Nx}var Rx,fR;function fee(){if(fR)return Rx;fR=1;var e=Object.prototype;
vendor: 3,080 bytes, line 315
315function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return Rx=t,Rx}var Mx,dR;function i3(){if(dR)return Mx;dR=1;function e(t,n){return function(r){return t(n(r))}}return Mx=e,Mx}var Ix,hR;function dee(){if(hR)return Ix;hR=1;var e=i3(),t=e(Object.keys,Object);return Ix=t,Ix}var Dx,pR;function hee(){if(pR)return Dx;pR=1;var e=fee(),t=dee(),n=Object.prototype,r=n.hasOwnProperty;function i(o){if(!e(o))return t(o);var a=[];for(var l in Object(o))r.call(o,l)&&l!="constructor"&&a.push(l);return a}return Dx=i,Dx}var Lx,mR;function Ad(){if(mR)return Lx;mR=1;var e=rE(),t=bE();function n(r){return r!=null&&t(r.length)&&!e(r)}return Lx=n,Lx}var $x,gR;function Ng(){if(gR)return $x;gR=1;var e=cee(),t=hee(),n=Ad();function r(i){return n(i)?e(i):t(i)}return $x=r,$x}var Fx,yR;function pee(){if(yR)return Fx;yR=1;var e=tee(),t=iee(),n=Ng();function r(i){return e(i,n,t)}return Fx=r,Fx}var Bx,vR;function mee(){if(vR)return Bx;vR=1;var e=pee(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(o,a,l,c,f,d){var h=l&t,m=e(o),g=m.length,w=e(a),y=w.length;if(g!=y&&!h)return!1;for(var x=g;x--;){var S=m[x];if(!(h?S in a:r.call(a,S)))return!1}var P=d.get(o),E=d.get(a);if(P&&E)return P==a&&E==o;var C=!0;d.set(o,a),d.set(a,o);for(var O=h;++x<g;){S=m[x];var A=o[S],j=a[S];if(c)var R=h?c(j,A,S,a,o,d):c(A,j,S,o,a,d);if(!(R===void 0?A===j||f(A,j,l,c,d):R)){C=!1;break}O||(O=S=="constructor")}if(C&&!O){var L=o.constructor,q=a.constructor;L!=q&&"constructor"in o&&"constructor"in a&&!(typeof L=="function"&&L instanceof L&&typeof q=="function"&&q instanceof q)&&(C=!1)}return d.delete(o),d.delete(a),C}return Bx=i,Bx}var qx,bR;function gee(){if(bR)return qx;bR=1;var e=Rs(),t=Li(),n=e(t,"DataView");return qx=n,qx}var zx,xR;function yee(){if(xR)return zx;xR=1;var e=Rs(),t=Li(),n=e(t,"Promise");return zx=n,zx}var Ux,wR;function o3(){if(wR)return Ux;wR=1;var e=Rs(),t=Li(),n=e(t,"Set");return Ux=n,Ux}var Wx,SR;function vee(){if(SR)return Wx;SR=1;var e=Rs(),t=Li(),n=e(t,"WeakMap");return Wx=n,Wx}var Hx,_R;function bee(){if(_R)return Hx;_R=1;var e=gee(),t=oE(),n=yee(),r=o3(),i=vee(),o=vo(),a=_4(),l="[object Map]",c="[object Object]",f="[object Promise]",d="[object Set]",h="[object WeakMap]",m="[object DataView]",g=a(e),w=a(t),y=a(n),x=a(r),S=a(i),P=o;return(e&&P(new e(new ArrayBuffer(1)))!=m||t&&P(new t)!=l||n&&P(n.resolve())!=f||r&&P(new r)!=d||i&&P(new i)!=h)&&(P=function(E){var C=o(E),O=C==c?E.constructor:void 0,A=O?a(O):"";if(A)switch(A){case g:return m;case w:return l;case y:return f;case x:return d;case S:return h}return C}),Hx=P,Hx}var Vx,OR;function xee(){if(OR)return Vx;OR=1;var e=Y4(),t=Z4(),n=eee(),r=mee(),i=bee(),o=ir(),a=t3(),l=r3(),c=1,f="[object Arguments]",d="[object Array]",h="[object Object]",m=Object.prototype,g=m.hasOwnProperty;function w(y,x,S,P,E,C){var O=o(y),A=o(x),j=O?d:i(y),R=A?d:i(x);j=j==f?h:j,R=R==f?h:R;var L=j==h,q=R==h,D=j==R;if(D&&a(y)){if(!a(x))return!1;O=!0,L=!1}if(D&&!L)return C||(C=new e),O||l(y)?t(y,x,S,P,E,C):n(y,x,j,S,P,E,C);if(!(S&c)){var $=L&&g.call(y,"__wrapped__"),B=q&&g.call(x,"__wrapped__");
vendor: 48,501 bytes, lines 315-323
315if($||B){var W=$?y.value():y,V=B?x.value():x;return C||(C=new e),E(W,V,S,P,C)}}return D?(C||(C=new e),r(y,x,S,P,E,C)):!1}return Vx=w,Vx}var Kx,ER;function xE(){if(ER)return Kx;ER=1;var e=xee(),t=bo();function n(r,i,o,a,l){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,o,a,n,l)}return Kx=n,Kx}var Gx,PR;function wee(){if(PR)return Gx;PR=1;var e=Y4(),t=xE(),n=1,r=2;function i(o,a,l,c){var f=l.length,d=f,h=!c;if(o==null)return!d;for(o=Object(o);f--;){var m=l[f];if(h&&m[2]?m[1]!==o[m[0]]:!(m[0]in o))return!1}for(;++f<d;){m=l[f];var g=m[0],w=o[g],y=m[1];if(h&&m[2]){if(w===void 0&&!(g in o))return!1}else{var x=new e;if(c)var S=c(w,y,g,o,a,x);if(!(S===void 0?t(y,w,n|r,c,x):S))return!1}}return!0}return Gx=i,Gx}var Yx,AR;function a3(){if(AR)return Yx;AR=1;var e=ga();function t(n){return n===n&&!e(n)}return Yx=t,Yx}var Xx,kR;function See(){if(kR)return Xx;kR=1;var e=a3(),t=Ng();function n(r){for(var i=t(r),o=i.length;o--;){var a=i[o],l=r[a];i[o]=[a,l,e(l)]}return i}return Xx=n,Xx}var Qx,CR;function s3(){if(CR)return Qx;CR=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return Qx=e,Qx}var Jx,TR;function _ee(){if(TR)return Jx;TR=1;var e=wee(),t=See(),n=s3();function r(i){var o=t(i);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(a){return a===i||e(a,i,o)}}return Jx=r,Jx}var Zx,jR;function Oee(){if(jR)return Zx;jR=1;function e(t,n){return t!=null&&n in Object(t)}return Zx=e,Zx}var ew,NR;function Eee(){if(NR)return ew;NR=1;var e=P4(),t=yE(),n=ir(),r=vE(),i=bE(),o=Ag();function a(l,c,f){c=e(c,l);for(var d=-1,h=c.length,m=!1;++d<h;){var g=o(c[d]);if(!(m=l!=null&&f(l,g)))break;l=l[g]}return m||++d!=h?m:(h=l==null?0:l.length,!!h&&i(h)&&r(g,h)&&(n(l)||t(l)))}return ew=a,ew}var tw,RR;function Pee(){if(RR)return tw;RR=1;var e=Oee(),t=Eee();function n(r,i){return r!=null&&t(r,i,e)}return tw=n,tw}var nw,MR;function Aee(){if(MR)return nw;MR=1;var e=xE(),t=A4(),n=Pee(),r=nE(),i=a3(),o=s3(),a=Ag(),l=1,c=2;function f(d,h){return r(d)&&i(h)?o(a(d),h):function(m){var g=t(m,d);return g===void 0&&g===h?n(m,d):e(h,g,l|c)}}return nw=f,nw}var rw,IR;function zu(){if(IR)return rw;IR=1;function e(t){return t}return rw=e,rw}var iw,DR;function kee(){if(DR)return iw;DR=1;function e(t){return function(n){return n==null?void 0:n[t]}}return iw=e,iw}var ow,LR;function Cee(){if(LR)return ow;LR=1;var e=lE();function t(n){return function(r){return e(r,n)}}return ow=t,ow}var aw,$R;function Tee(){if($R)return aw;$R=1;var e=kee(),t=Cee(),n=nE(),r=Ag();function i(o){return n(o)?e(r(o)):t(o)}return aw=i,aw}var sw,FR;function $i(){if(FR)return sw;FR=1;var e=_ee(),t=Aee(),n=zu(),r=ir(),i=Tee();function o(a){return typeof a=="function"?a:a==null?n:typeof a=="object"?r(a)?t(a[0],a[1]):e(a):i(a)}return sw=o,sw}var lw,BR;function l3(){if(BR)return lw;BR=1;function e(t,n,r,i){for(var o=t.length,a=r+(i?1:-1);i?a--:++a<o;)if(n(t[a],a,t))return a;return-1}return lw=e,lw}var uw,qR;function jee(){if(qR)return uw;qR=1;function e(t){return t!==t}return uw=e,uw}var cw,zR;function Nee(){if(zR)return cw;zR=1;function e(t,n,r){for(var i=r-1,o=t.length;++i<o;)if(t[i]===n)return i;return-1}return cw=e,cw}var fw,UR;function Ree(){if(UR)return fw;UR=1;var e=l3(),t=jee(),n=Nee();function r(i,o,a){return o===o?n(i,o,a):e(i,t,a)}return fw=r,fw}var dw,WR;function Mee(){if(WR)return dw;WR=1;var e=Ree();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return dw=t,dw}var hw,HR;function Iee(){if(HR)return hw;HR=1;function e(t,n,r){for(var i=-1,o=t==null?0:t.length;++i<o;)if(r(n,t[i]))return!0;return!1}return hw=e,hw}var pw,VR;function Dee(){if(VR)return pw;VR=1;function e(){}return pw=e,pw}var mw,KR;function Lee(){if(KR)return mw;KR=1;var e=o3(),t=Dee(),n=gE(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(o){return new e(o)}:t;return mw=i,mw}var gw,GR;function $ee(){if(GR)return gw;GR=1;var e=X4(),t=Mee(),n=Iee(),r=J4(),i=Lee(),o=gE(),a=200;function l(c,f,d){var h=-1,m=t,g=c.length,w=!0,y=[],x=y;if(d)w=!1,m=n;else if(g>=a){var S=f?null:i(c);if(S)return o(S);w=!1,m=r,x=new e}else x=f?[]:y;e:for(;++h<g;){var P=c[h],E=f?f(P):P;if(P=d||P!==0?P:0,w&&E===E){for(var C=x.length;C--;)if(x[C]===E)continue e;f&&x.push(E),y.push(P)}else m(x,E,d)||(x!==y&&x.push(E),y.push(P))}return y}return gw=l,gw}var yw,YR;function Fee(){if(YR)return yw;YR=1;var e=$i(),t=$ee();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return yw=n,yw}var Bee=Fee();const XR=tt(Bee);function u3(e,t,n){return t===!0?XR(e,n):Be(t)?XR(e,t):e}function ru(e){"@babel/helpers - typeof";return ru=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ru(e)}var qee=["ref"];function QR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QR(Object(n),!0).forEach(function(r){Rg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f3(r.key),r)}}function Uee(e,t,n){return t&&JR(e.prototype,t),n&&JR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wee(e,t,n){return t=om(t),Hee(e,c3()?Reflect.construct(t,n||[],om(e).constructor):t.apply(e,n))}function Hee(e,t){if(t&&(ru(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vee(e)}function Vee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c3=function(){return!!e})()}function om(e){return om=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},om(e)}function Kee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r_(e,t)}function r_(e,t){return r_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},r_(e,t)}function Rg(e,t,n){return t=f3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f3(e){var t=Gee(e,"string");return ru(t)=="symbol"?t:t+""}function Gee(e,t){if(ru(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ru(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Yee(e,t){if(e==null)return{};var n=Xee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xee(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Qee(e){return e.value}function Jee(e,t){if(H.isValidElement(e))return H.cloneElement(e,t);if(typeof e=="function")return H.createElement(e,t);t.ref;var n=Yee(t,qee);return H.createElement(mE,n)}var ZR=1,fs=(function(e){function t(){var n;zee(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Wee(this,t,[].concat(i)),Rg(n,"lastBoundingBox",{width:-1,height:-1}),n}return Kee(t,e),Uee(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>ZR||Math.abs(i.height-this.lastBoundingBox.height)>ZR)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Xi({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,a=i.align,l=i.verticalAlign,c=i.margin,f=i.chartWidth,d=i.chartHeight,h,m;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&o==="vertical"){var g=this.getBBoxSnapshot();h={left:((f||0)-g.width)/2}}else h=a==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var w=this.getBBoxSnapshot();m={top:((d||0)-w.height)/2}}else m=l==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Xi(Xi({},h),m)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,a=i.width,l=i.height,c=i.wrapperStyle,f=i.payloadUniqBy,d=i.payload,h=Xi(Xi({position:"absolute",width:a||"auto",height:l||"auto"},this.getDefaultPosition(c)),c);return H.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(g){r.wrapperNode=g}},Jee(o,Xi(Xi({},this.props),{},{payload:u3(d,f,Qee)})))}}],[{key:"getWithHeight",value:function(r,i){var o=Xi(Xi({},this.defaultProps),r.props),a=o.layout;return a==="vertical"&&ge(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||i}:null}}])})(T.PureComponent);Rg(fs,"displayName","Legend");Rg(fs,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var vw,eM;function Zee(){if(eM)return vw;eM=1;var e=Ed(),t=yE(),n=ir(),r=e?e.isConcatSpreadable:void 0;function i(o){return n(o)||t(o)||!!(r&&o&&o[r])}return vw=i,vw}var bw,tM;function d3(){if(tM)return bw;tM=1;var e=e3(),t=Zee();function n(r,i,o,a,l){var c=-1,f=r.length;for(o||(o=t),l||(l=[]);++c<f;){var d=r[c];i>0&&o(d)?i>1?n(d,i-1,o,a,l):e(l,d):a||(l[l.length]=d)}return l}return bw=n,bw}var xw,nM;function ete(){if(nM)return xw;nM=1;function e(t){return function(n,r,i){for(var o=-1,a=Object(n),l=i(n),c=l.length;c--;){var f=l[t?c:++o];if(r(a[f],f,a)===!1)break}return n}}return xw=e,xw}var ww,rM;function tte(){if(rM)return ww;rM=1;var e=ete(),t=e();return ww=t,ww}var Sw,iM;function h3(){if(iM)return Sw;iM=1;var e=tte(),t=Ng();function n(r,i){return r&&e(r,i,t)}return Sw=n,Sw}var _w,oM;function nte(){if(oM)return _w;oM=1;var e=Ad();function t(n,r){return function(i,o){if(i==null)return i;if(!e(i))return n(i,o);for(var a=i.length,l=r?a:-1,c=Object(i);(r?l--:++l<a)&&o(c[l],l,c)!==!1;);return i}}return _w=t,_w}var Ow,aM;function wE(){if(aM)return Ow;aM=1;var e=h3(),t=nte(),n=t(e);return Ow=n,Ow}var Ew,sM;function p3(){if(sM)return Ew;sM=1;var e=wE(),t=Ad();function n(r,i){var o=-1,a=t(r)?Array(r.length):[];return e(r,function(l,c,f){a[++o]=i(l,c,f)}),a}return Ew=n,Ew}var Pw,lM;function rte(){if(lM)return Pw;lM=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return Pw=e,Pw}var Aw,uM;function ite(){if(uM)return Aw;uM=1;var e=Fu();function t(n,r){if(n!==r){var i=n!==void 0,o=n===null,a=n===n,l=e(n),c=r!==void 0,f=r===null,d=r===r,h=e(r);if(!f&&!h&&!l&&n>r||l&&c&&d&&!f&&!h||o&&c&&d||!i&&d||!a)return 1;if(!o&&!l&&!h&&n<r||h&&i&&a&&!o&&!l||f&&i&&a||!c&&a||!d)return-1}return 0}return Aw=t,Aw}var kw,cM;function ote(){if(cM)return kw;cM=1;var e=ite();function t(n,r,i){for(var o=-1,a=n.criteria,l=r.criteria,c=a.length,f=i.length;++o<c;){var d=e(a[o],l[o]);if(d){if(o>=f)return d;var h=i[o];return d*(h=="desc"?-1:1)}}return n.index-r.index}return kw=t,kw}var Cw,fM;function ate(){if(fM)return Cw;fM=1;var e=sE(),t=lE(),n=$i(),r=p3(),i=rte(),o=n3(),a=ote(),l=zu(),c=ir();function f(d,h,m){h.length?h=e(h,function(y){return c(y)?function(x){return t(x,y.length===1?y[0]:y)}:y}):h=[l];var g=-1;h=e(h,o(n));var w=r(d,function(y,x,S){var P=e(h,function(E){return E(y)});return{criteria:P,index:++g,value:y}});return i(w,function(y,x){return a(y,x,m)})}return Cw=f,Cw}var Tw,dM;function ste(){if(dM)return Tw;dM=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Tw=e,Tw}var jw,hM;function lte(){if(hM)return jw;hM=1;var e=ste(),t=Math.max;function n(r,i,o){return i=t(i===void 0?r.length-1:i,0),function(){for(var a=arguments,l=-1,c=t(a.length-i,0),f=Array(c);++l<c;)f[l]=a[i+l];l=-1;for(var d=Array(i+1);++l<i;)d[l]=a[l];return d[i]=o(f),e(r,this,d)}}return jw=n,jw}var Nw,pM;function ute(){if(pM)return Nw;pM=1;function e(t){return function(){return t}}return Nw=e,Nw}var Rw,mM;function m3(){if(mM)return Rw;mM=1;var e=Rs(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Rw=t,Rw}var Mw,gM;function cte(){if(gM)return Mw;gM=1;var e=ute(),t=m3(),n=zu(),r=t?function(i,o){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:n;return Mw=r,Mw}var Iw,yM;function fte(){if(yM)return Iw;yM=1;var e=800,t=16,n=Date.now;function r(i){var o=0,a=0;return function(){var l=n(),c=t-(l-a);if(a=l,c>0){if(++o>=e)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}return Iw=r,Iw}var Dw,vM;function dte(){if(vM)return Dw;vM=1;var e=cte(),t=fte(),n=t(e);return Dw=n,Dw}var Lw,bM;function hte(){if(bM)return Lw;bM=1;var e=zu(),t=lte(),n=dte();function r(i,o){return n(t(i,o,e),i+"")}return Lw=r,Lw}var $w,xM;function Mg(){if(xM)return $w;xM=1;var e=iE(),t=Ad(),n=vE(),r=ga();function i(o,a,l){if(!r(l))return!1;var c=typeof a;return(c=="number"?t(l)&&n(a,l.length):c=="string"&&a in l)?e(l[a],o):!1}return $w=i,$w}var Fw,wM;function pte(){if(wM)return Fw;wM=1;var e=d3(),t=ate(),n=hte(),r=Mg(),i=n(function(o,a){if(o==null)return[];var l=a.length;return l>1&&r(o,a[0],a[1])?a=[]:l>2&&r(a[0],a[1],a[2])&&(a=[a[0]]),t(o,e(a,1),[])});return Fw=i,Fw}var mte=pte();const SE=tt(mte);function jf(e){"@babel/helpers - typeof";return jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jf(e)}function i_(){return i_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i_.apply(this,arguments)}function gte(e,t){return xte(e)||bte(e,t)||vte(e,t)||yte()}function yte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 316In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vte(e,t){if(e){if(typeof e=="string")return SM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SM(e,t)}}function SM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bte(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){f=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return l}}function xte(e){if(Array.isArray(e))return e}function _M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_M(Object(n),!0).forEach(function(r){wte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wte(e,t,n){return t=Ste(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ste(e){var t=_te(e,"string");return jf(t)=="symbol"?t:t+""}function _te(e,t){if(jf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ote(e){return Array.isArray(e)&&on(e[0])&&on(e[1])?e.join(" ~ "):e}var Ete=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,o=i===void 0?{}:i,a=t.itemStyle,l=a===void 0?{}:a,c=t.labelStyle,f=c===void 0?{}:c,d=t.payload,h=t.formatter,m=t.itemSorter,g=t.wrapperClassName,w=t.labelClassName,y=t.label,x=t.labelFormatter,S=t.accessibilityLayer,P=S===void 0?!1:S,E=function(){if(d&&d.length){var $={padding:0,margin:0},B=(m?SE(d,m):d).map(function(W,V){if(W.type==="none")return null;var Y=Bw({display:"block",paddingTop:4,paddingBottom:4,color:W.color||"#000"},l),J=W.formatter||h||Ote,F=W.value,Z=W.name,M=F,z=Z;if(J&&M!=null&&z!=null){var X=J(F,Z,W,V,d);if(Array.isArray(X)){var I=gte(X,2);M=I[0],z=I[1]}else M=X}return H.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(V),style:Y},on(z)?H.createElement("span",{className:"recharts-tooltip-item-name"},z):null,on(z)?H.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,H.createElement("span",{className:"recharts-tooltip-item-value"},M),H.createElement("span",{className:"recharts-tooltip-item-unit"},W.unit||""))});return H.createElement("ul",{className:"recharts-tooltip-item-list",style:$},B)}return null},C=Bw({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),O=Bw({margin:0},f),A=!ze(y),j=A?y:"",R=We("recharts-default-tooltip",g),L=We("recharts-tooltip-label",w);A&&x&&d!==void 0&&d!==null&&(j=x(y,d));var q=P?{role:"status","aria-live":"assertive"}:{};return H.createElement("div",i_({className:R,style:C},q),H.createElement("p",{className:L,style:O},H.isValidElement(j)?j:"".concat(j)),E())};function Nf(e){"@babel/helpers - typeof";return Nf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nf(e)}function lp(e,t,n){return t=Pte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pte(e){var t=Ate(e,"string");return Nf(t)=="symbol"?t:t+""}function Ate(e,t){if(Nf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fc="recharts-tooltip-wrapper",kte={visibility:"hidden"};function Cte(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return We(Fc,lp(lp(lp(lp({},"".concat(Fc,"-right"),ge(n)&&t&&ge(t.x)&&n>=t.x),"".concat(Fc,"-left"),ge(n)&&t&&ge(t.x)&&n<t.x),"".concat(Fc,"-bottom"),ge(r)&&t&&ge(t.y)&&r>=t.y),"".concat(Fc,"-top"),ge(r)&&t&&ge(t.y)&&r<t.y))}function OM(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,o=e.position,a=e.reverseDirection,l=e.tooltipDimension,c=e.viewBox,f=e.viewBoxDimension;if(o&&ge(o[r]))return o[r];var d=n[r]-l-i,h=n[r]+i;if(t[r])return a[r]?d:h;if(a[r]){var m=d,g=c[r];return m<g?Math.max(h,c[r]):Math.max(d,c[r])}var w=h+l,y=c[r]+f;return w>y?Math.max(d,c[r]):Math.max(h,c[r])}function Tte(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function jte(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,l=e.useTranslate3d,c=e.viewBox,f,d,h;return a.height>0&&a.width>0&&n?(d=OM({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:c,viewBoxDimension:c.width}),h=OM({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:c,viewBoxDimension:c.height}),f=Tte({translateX:d,translateY:h,useTranslate3d:l})):f=kte,{cssProperties:f,cssClasses:Cte({translateX:d,translateY:h,coordinate:n})}}function iu(e){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iu(e)}function EM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function PM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EM(Object(n),!0).forEach(function(r){a_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rte(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y3(r.key),r)}}function Mte(e,t,n){return t&&Rte(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ite(e,t,n){return t=am(t),Dte(e,g3()?Reflect.construct(t,n||[],am(e).constructor):t.apply(e,n))}function Dte(e,t){if(t&&(iu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lte(e)}function Lte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g3=function(){return!!e})()}function am(e){return am=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},am(e)}function $te(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o_(e,t)}function o_(e,t){return o_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},o_(e,t)}function a_(e,t,n){return t=y3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y3(e){var t=Fte(e,"string");return iu(t)=="symbol"?t:t+""}function Fte(e,t){if(iu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var AM=1,Bte=(function(e){function t(){var n;Nte(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Ite(this,t,[].concat(i)),a_(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),a_(n,"handleKeyDown",function(a){if(a.key==="Escape"){var l,c,f,d;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(c=n.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&l!==void 0?l:0,y:(f=(d=n.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&f!==void 0?f:0}})}}),n}return $te(t,e),Mte(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>AM||Math.abs(r.height-this.state.lastBoundingBox.height)>AM)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,l=i.animationDuration,c=i.animationEasing,f=i.children,d=i.coordinate,h=i.hasPayload,m=i.isAnimationActive,g=i.offset,w=i.position,y=i.reverseDirection,x=i.useTranslate3d,S=i.viewBox,P=i.wrapperStyle,E=jte({allowEscapeViewBox:a,coordinate:d,offsetTopLeft:g,position:w,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:S}),C=E.cssClasses,O=E.cssProperties,A=PM(PM({transition:m&&o?"transform ".concat(l,"ms ").concat(c):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&h?"visible":"hidden",position:"absolute",top:0,left:0},P);return H.createElement("div",{tabIndex:-1,className:C,style:A,ref:function(R){r.wrapperNode=R}},f)}}])})(T.PureComponent),qte=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ms={isSsr:qte()};function ou(e){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ou(e)}function kM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function CM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kM(Object(n),!0).forEach(function(r){_E(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ute(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b3(r.key),r)}}function Wte(e,t,n){return t&&Ute(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hte(e,t,n){return t=sm(t),Vte(e,v3()?Reflect.construct(t,n||[],sm(e).constructor):t.apply(e,n))}function Vte(e,t){if(t&&(ou(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kte(e)}function Kte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v3=function(){return!!e})()}function sm(e){return sm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sm(e)}function Gte(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s_(e,t)}function s_(e,t){return s_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},s_(e,t)}function _E(e,t,n){return t=b3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b3(e){var t=Yte(e,"string");return ou(t)=="symbol"?t:t+""}function Yte(e,t){if(ou(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ou(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Xte(e){return e.dataKey}function Qte(e,t){return H.isValidElement(e)?H.cloneElement(e,t):typeof e=="function"?H.createElement(e,t):H.createElement(Ete,t)}var yr=(function(e){function t(){return zte(this,t),Hte(this,t,arguments)}return Gte(t,e),Wte(t,[{key:"render",value:function(){var r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,l=i.animationDuration,c=i.animationEasing,f=i.content,d=i.coordinate,h=i.filterNull,m=i.isAnimationActive,g=i.offset,w=i.payload,y=i.payloadUniqBy,x=i.position,S=i.reverseDirection,P=i.useTranslate3d,E=i.viewBox,C=i.wrapperStyle,O=w??[];h&&O.length&&(O=u3(w.filter(function(j){return j.value!=null&&(j.hide!==!0||r.props.includeHidden)}),y,Xte));var A=O.length>0;return H.createElement(Bte,{allowEscapeViewBox:a,animationDuration:l,animationEasing:c,isAnimationActive:m,active:o,coordinate:d,hasPayload:A,offset:g,position:x,reverseDirection:S,useTranslate3d:P,viewBox:E,wrapperStyle:C},Qte(f,CM(CM({},this.props),{},{payload:O})))}}])})(T.PureComponent);_E(yr,"displayName","Tooltip");_E(yr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ms.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var qw,TM;function Jte(){if(TM)return qw;TM=1;var e=Li(),t=function(){return e.Date.now()};return qw=t,qw}var zw,jM;function Zte(){if(jM)return zw;jM=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return zw=t,zw}var Uw,NM;function ene(){if(NM)return Uw;NM=1;var e=Zte(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return Uw=n,Uw}var Ww,RM;function x3(){if(RM)return Ww;RM=1;var e=ene(),t=ga(),n=Fu(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt;function c(f){if(typeof f=="number")return f;if(n(f))return r;if(t(f)){var d=typeof f.valueOf=="function"?f.valueOf():f;f=t(d)?d+"":d}if(typeof f!="string")return f===0?f:+f;f=e(f);var h=o.test(f);return h||a.test(f)?l(f.slice(2),h?2:8):i.test(f)?r:+f}return Ww=c,Ww}var Hw,MM;function tne(){if(MM)return Hw;MM=1;var e=ga(),t=Jte(),n=x3(),r="Expected a function",i=Math.max,o=Math.min;function a(l,c,f){var d,h,m,g,w,y,x=0,S=!1,P=!1,E=!0;if(typeof l!="function")throw new TypeError(r);c=n(c)||0,e(f)&&(S=!!f.leading,P="maxWait"in f,m=P?i(n(f.maxWait)||0,c):m,E="trailing"in f?!!f.trailing:E);function C(B){var W=d,V=h;return d=h=void 0,x=B,g=l.apply(V,W),g}function O(B){return x=B,w=setTimeout(R,c),S?C(B):g}function A(B){var W=B-y,V=B-x,Y=c-W;return P?o(Y,m-V):Y}function j(B){var W=B-y,V=B-x;return y===void 0||W>=c||W<0||P&&V>=m}function R(){var B=t();if(j(B))return L(B);w=setTimeout(R,A(B))}function L(B){return w=void 0,E&&d?C(B):(d=h=void 0,g)}function q(){w!==void 0&&clearTimeout(w),x=0,d=y=h=w=void 0}function D(){return w===void 0?g:L(t())}function $(){var B=t(),W=j(B);if(d=arguments,h=this,y=B,W){if(w===void 0)return O(y);if(P)return clearTimeout(w),w=setTimeout(R,c),C(y)}return w===void 0&&(w=setTimeout(R,c)),g}return $.cancel=q,$.flush=D,$}return Hw=a,Hw}var Vw,IM;function nne(){if(IM)return Vw;IM=1;var e=tne(),t=ga(),n="Expected a function";function r(i,o,a){var l=!0,c=!0;if(typeof i!="function")throw new TypeError(n);return t(a)&&(l="leading"in a?!!a.leading:l,c="trailing"in a?!!a.trailing:c),e(i,o,{leading:l,maxWait:o,trailing:c})}return Vw=r,Vw}var rne=nne();const w3=tt(rne);function Rf(e){"@babel/helpers - typeof";return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rf(e)}function DM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function up(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DM(Object(n),!0).forEach(function(r){ine(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ine(e,t,n){return t=one(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function one(e){var t=ane(e,"string");return Rf(t)=="symbol"?t:t+""}function ane(e,t){if(Rf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sne(e,t){return fne(e)||cne(e,t)||une(e,t)||lne()}function lne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 317In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function une(e,t){if(e){if(typeof e=="string")return LM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LM(e,t)}}function LM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){f=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return l}}function fne(e){if(Array.isArray(e))return e}var Ig=T.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,o=e.width,a=o===void 0?"100%":o,l=e.height,c=l===void 0?"100%":l,f=e.minWidth,d=f===void 0?0:f,h=e.minHeight,m=e.maxHeight,g=e.children,w=e.debounce,y=w===void 0?0:w,x=e.id,S=e.className,P=e.onResize,E=e.style,C=E===void 0?{}:E,O=T.useRef(null),A=T.useRef();A.current=P,T.useImperativeHandle(t,function(){return Object.defineProperty(O.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),O.current},configurable:!0})});var j=T.useState({containerWidth:i.width,containerHeight:i.height}),R=sne(j,2),L=R[0],q=R[1],D=T.useCallback(function(B,W){q(function(V){var Y=Math.round(B),J=Math.round(W);return V.containerWidth===Y&&V.containerHeight===J?V:{containerWidth:Y,containerHeight:J}})},[]);T.useEffect(function(){var B=function(Z){var M,z=Z[0].contentRect,X=z.width,I=z.height;D(X,I),(M=A.current)===null||M===void 0||M.call(A,X,I)};y>0&&(B=w3(B,y,{trailing:!0,leading:!1}));var W=new ResizeObserver(B),V=O.current.getBoundingClientRect(),Y=V.width,J=V.height;return D(Y,J),W.observe(O.current),function(){W.disconnect()}},[D,y]);var $=T.useMemo(function(){var B=L.containerWidth,W=L.containerHeight;if(B<0||W<0)return null;ai(Ga(a)||Ga(c),`The width(%s) and height(%s) are both fixed numbers, 318 maybe you don't need to use a ResponsiveContainer.`,a,c),ai(!n||n>0,"The aspect(%s) must be greater than zero.",n);var V=Ga(a)?B:a,Y=Ga(c)?W:c;n&&n>0&&(V?Y=V/n:Y&&(V=Y*n),m&&Y>m&&(Y=m)),ai(V>0||Y>0,`The width(%s) and height(%s) of chart should be greater than 0, 319 please check the style of container, or the props width(%s) and height(%s), 320 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 321 height and width.`,V,Y,a,c,d,h,n);var J=!Array.isArray(g)&&lo(g.type).endsWith("Chart");return H.Children.map(g,function(F){return H.isValidElement(F)?T.cloneElement(F,up({width:V,height:Y},J?{style:up({height:"100%",width:"100%",maxHeight:Y,maxWidth:V},F.props.style)}:{})):F})},[n,g,c,m,h,d,L,a]);return H.createElement("div",{id:x?"".concat(x):void 0,className:We("recharts-responsive-container",S),style:up(up({},C),{},{width:a,height:c,minWidth:d,minHeight:h,maxHeight:m}),ref:O},$)}),kd=function(t){return null};kd.displayName="Cell";function Mf(e){"@babel/helpers - typeof";return Mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mf(e)}function $M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function l_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$M(Object(n),!0).forEach(function(r){dne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dne(e,t,n){return t=hne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hne(e){var t=pne(e,"string");return Mf(t)=="symbol"?t:t+""}function pne(e,t){if(Mf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pl={widthCache:{},cacheCount:0},mne=2e3,gne={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},FM="recharts_measurement_span";function yne(e){var t=l_({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var ff=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ms.isSsr)return{width:0,height:0};var r=yne(n),i=JSON.stringify({text:t,copyStyle:r});if(pl.widthCache[i])return pl.widthCache[i];try{var o=document.getElementById(FM);o||(o=document.createElement("span"),o.setAttribute("id",FM),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=l_(l_({},gne),r);Object.assign(o.style,a),o.textContent="".concat(t);var l=o.getBoundingClientRect(),c={width:l.width,height:l.height};return pl.widthCache[i]=c,++pl.cacheCount>mne&&(pl.cacheCount=0,pl.widthCache={}),c}catch{return{width:0,height:0}}},vne=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function If(e){"@babel/helpers - typeof";return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},If(e)}function lm(e,t){return Sne(e)||wne(e,t)||xne(e,t)||bne()}function bne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 322In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xne(e,t){if(e){if(typeof e=="string")return BM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BM(e,t)}}function BM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,f=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){f=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return l}}function Sne(e){if(Array.isArray(e))return e}function _ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ene(r.key),r)}}function One(e,t,n){return t&&qM(e.prototype,t),n&&qM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ene(e){var t=Pne(e,"string");return If(t)=="symbol"?t:t+""}function Pne(e,t){if(If(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(If(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,UM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ane=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,kne=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,S3={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Cne=Object.keys(S3),wl="NaN";function Tne(e,t){return e*S3[t]}var cp=(function(){function e(t,n){_ne(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!Ane.test(n)&&(this.num=NaN,this.unit=""),Cne.includes(n)&&(this.num=Tne(t,n),this.unit="px")}return One(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,i=(r=kne.exec(n))!==null&&r!==void 0?r:[],o=lm(i,3),a=o[1],l=o[2];return new e(parseFloat(a),l??"")}}])})();function _3(e){if(e.includes(wl))return wl;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=zM.exec(t))!==null&&n!==void 0?n:[],i=lm(r,4),o=i[1],a=i[2],l=i[3],c=cp.parse(o??""),f=cp.parse(l??""),d=a==="*"?c.multiply(f):c.divide(f);if(d.isNaN())return wl;t=t.replace(zM,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,m=(h=UM.exec(t))!==null&&h!==void 0?h:[],g=lm(m,4),w=g[1],y=g[2],x=g[3],S=cp.parse(w??""),P=cp.parse(x??""),E=y==="+"?S.add(P):S.subtract(P);if(E.isNaN())return wl;t=t.replace(UM,E.toString())}return t}var WM=/\(([^()]*)\)/;function jne(e){for(var t=e;t.includes("(");){var n=WM.exec(t),r=lm(n,2),i=r[1];t=t.replace(WM,_3(i))}return t}function Nne(e){var t=e.replace(/\s+/g,"");return t=jne(t),t=_3(t),t}function Rne(e){try{return Nne(e)}catch{return wl}}function Kw(e){var t=Rne(e.slice(5,-1));return t===wl?"":t}var Mne=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Ine=["dx","dy","angle","className","breakAll"];function u_(){return u_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u_.apply(this,arguments)}function HM(e,t){if(e==null)return{};var n=Dne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dne(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function VM(e,t){return Bne(e)||Fne(e,t)||$ne(e,t)||Lne()}function Lne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 323In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $ne(e,t){if(e){if(typeof e=="string")return KM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KM(e,t)}}function KM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,f=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){f=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return l}}function Bne(e){if(Array.isArray(e))return e}var O3=/[ \f\n\r\t\v\u2028\u2029]+/,E3=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var o=[];ze(n)||(r?o=n.toString().split(""):o=n.toString().split(O3));var a=o.map(function(c){return{word:c,width:ff(c,i).width}}),l=r?0:ff(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:l}}catch{return null}},qne=function(t,n,r,i,o){var a=t.maxLines,l=t.children,c=t.style,f=t.breakAll,d=ge(a),h=l,m=function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return V.reduce(function(Y,J){var F=J.word,Z=J.width,M=Y[Y.length-1];if(M&&(i==null||o||M.width+Z+r<Number(i)))M.words.push(F),M.width+=Z+r;else{var z={words:[F],width:Z};Y.push(z)}return Y},[])},g=m(n),w=function(V){return V.reduce(function(Y,J){return Y.width>J.width?Y:J})};if(!d)return g;for(var y="â¦",x=function(V){var Y=h.slice(0,V),J=E3({breakAll:f,style:c,children:Y+y}).wordsWithComputedWidth,F=m(J),Z=F.length>a||w(F).width>Number(i);return[Z,F]},S=0,P=h.length-1,E=0,C;S<=P&&E<=h.length-1;){var O=Math.floor((S+P)/2),A=O-1,j=x(A),R=VM(j,2),L=R[0],q=R[1],D=x(O),$=VM(D,1),B=$[0];if(!L&&!B&&(S=O+1),L&&B&&(P=O-1),!L&&B){C=q;break}E++}return C||g},GM=function(t){var n=ze(t)?[]:t.toString().split(O3);return[{words:n}]},zne=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,l=t.maxLines;if((n||r)&&!Ms.isSsr){var c,f,d=E3({breakAll:a,children:i,style:o});if(d){var h=d.wordsWithComputedWidth,m=d.spaceWidth;c=h,f=m}else return GM(i);return qne({breakAll:a,children:i,maxLines:l,style:o},c,f,n,r)}return GM(i)},YM="#808080",_s=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.lineHeight,l=a===void 0?"1em":a,c=t.capHeight,f=c===void 0?"0.71em":c,d=t.scaleToFit,h=d===void 0?!1:d,m=t.textAnchor,g=m===void 0?"start":m,w=t.verticalAnchor,y=w===void 0?"end":w,x=t.fill,S=x===void 0?YM:x,P=HM(t,Mne),E=T.useMemo(function(){return zne({breakAll:P.breakAll,children:P.children,maxLines:P.maxLines,scaleToFit:h,style:P.style,width:P.width})},[P.breakAll,P.children,P.maxLines,h,P.style,P.width]),C=P.dx,O=P.dy,A=P.angle,j=P.className,R=P.breakAll,L=HM(P,Ine);if(!on(r)||!on(o))return null;var q=r+(ge(C)?C:0),D=o+(ge(O)?O:0),$;switch(y){case"start":$=Kw("calc(".concat(f,")"));break;case"middle":$=Kw("calc(".concat((E.length-1)/2," * -").concat(l," + (").concat(f," / 2))"));break;default:$=Kw("calc(".concat(E.length-1," * -").concat(l,")"));break}var B=[];if(h){var W=E[0].width,V=P.width;B.push("scale(".concat((ge(V)?V/W:1)/W,")"))}return A&&B.push("rotate(".concat(A,", ").concat(q,", ").concat(D,")")),B.length&&(L.transform=B.join(" ")),H.createElement("text",u_({},Ie(L,!0),{x:q,y:D,className:We("recharts-text",j),textAnchor:g,fill:S.includes("url")?YM:S}
323),E.map(function(Y,J){var F=Y.words.join(R?"":" ");return H.createElement("tspan",{x:q,dy:J===0?$:l,key:"".concat(F,"-").concat(J)},F)}))};function ua(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Une(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function OE(e){let t,n,r;e.length!==2?(t=ua,n=(l,c)=>ua(e(l),c),r=(l,c)=>e(l)-c):(t=e===ua||e===Une?e:Wne,n=e,r=e);function i(l,c,f=0,d=l.length){if(f<d){if(t(c,c)!==0)return d;do{const h=f+d>>>1;n(l[h],c)<0?f=h+1:d=h}while(f<d)}return f}function o(l,c,f=0,d=l.length){if(f<d){if(t(c,c)!==0)return d;do{const h=f+d>>>1;n(l[h],c)<=0?f=h+1:d=h}while(f<d)}return f}function a(l,c,f=0,d=l.length){const h=i(l,c,f,d-1);return h>f&&r(l[h-1],c)>-r(l[h],c)?h-1:h}return{left:i,center:a,right:o}}function Wne(){return 0}function P3(e){return e===null?NaN:+e}function*Hne(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Vne=OE(ua),Cd=Vne.right;OE(P3).center;class XM extends Map{constructor(t,n=Yne){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(QM(this,t))}has(t){return super.has(QM(this,t))}set(t,n){return super.set(Kne(this,t),n)}delete(t){return super.delete(Gne(this,t))}}function QM({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Kne({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Gne({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Yne(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Xne(e=ua){if(e===ua)return A3;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function A3(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Qne=Math.sqrt(50),Jne=Math.sqrt(10),Zne=Math.sqrt(2);function um(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=Qne?10:o>=Jne?5:o>=Zne?2:1;let l,c,f;return i<0?(f=Math.pow(10,-i)/a,l=Math.round(e*f),c=Math.round(t*f),l/f<e&&++l,c/f>t&&--c,f=-f):(f=Math.pow(10,i)*a,l=Math.round(e/f),c=Math.round(t/f),l*f<e&&++l,c*f>t&&--c),c<l&&.5<=n&&n<2?um(e,t,n*2):[l,c,f]}function c_(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?um(t,e,n):um(e,t,n);if(!(o>=i))return[];const l=o-i+1,c=new Array(l);if(r)if(a<0)for(let f=0;f<l;++f)c[f]=(o-f)/-a;else for(let f=0;f<l;++f)c[f]=(o-f)*a;else if(a<0)for(let f=0;f<l;++f)c[f]=(i+f)/-a;else for(let f=0;f<l;++f)c[f]=(i+f)*a;return c}function f_(e,t,n){return t=+t,e=+e,n=+n,um(e,t,n)[2]}function d_(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?f_(t,e,n):f_(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function JM(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function ZM(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function k3(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?A3:Xne(i);r>n;){if(r-n>600){const c=r-n+1,f=t-n+1,d=Math.log(c),h=.5*Math.exp(2*d/3),m=.5*Math.sqrt(d*h*(c-h)/c)*(f-c/2<0?-1:1),g=Math.max(n,Math.floor(t-f*h/c+m)),w=Math.min(r,Math.floor(t+(c-f)*h/c+m));k3(e,t,g,w,i)}const o=e[t];let a=n,l=r;for(Bc(e,n,t),i(e[r],o)>0&&Bc(e,n,r);a<l;){for(Bc(e,a,l),++a,--l;i(e[a],o)<0;)++a;for(;i(e[l],o)>0;)--l}i(e[n],o)===0?Bc(e,n,l):(++l,Bc(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Bc(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ere(e,t,n){if(e=Float64Array.from(Hne(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return ZM(e);if(t>=1)return JM(e);var r,i=(r-1)*t,o=Math.floor(i),a=JM(k3(e,o).subarray(0,o+1)),l=ZM(e.subarray(o+1));return a+(l-a)*(i-o)}}function tre(e,t,n=P3){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),l=+n(e[o+1],o+1,e);return a+(l-a)*(i-o)}}function nre(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function Wr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function xo(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}
vendor: 10,889 bytes, line 323
323const h_=Symbol("implicit");function EE(){var e=new XM,t=[],n=[],r=h_;function i(o){let a=e.get(o);if(a===void 0){if(r!==h_)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new XM;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return EE(t,n).unknown(r)},Wr.apply(i,arguments),i}function Df(){var e=EE().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,l=!1,c=0,f=0,d=.5;delete e.unknown;function h(){var m=t().length,g=i<r,w=g?i:r,y=g?r:i;o=(y-w)/Math.max(1,m-c+f*2),l&&(o=Math.floor(o)),w+=(y-w-o*(m-c))*d,a=o*(1-c),l&&(w=Math.round(w),a=Math.round(a));var x=nre(m).map(function(S){return w+o*S});return n(g?x.reverse():x)}return e.domain=function(m){return arguments.length?(t(m),h()):t()},e.range=function(m){return arguments.length?([r,i]=m,r=+r,i=+i,h()):[r,i]},e.rangeRound=function(m){return[r,i]=m,r=+r,i=+i,l=!0,h()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(m){return arguments.length?(l=!!m,h()):l},e.padding=function(m){return arguments.length?(c=Math.min(1,f=+m),h()):c},e.paddingInner=function(m){return arguments.length?(c=Math.min(1,m),h()):c},e.paddingOuter=function(m){return arguments.length?(f=+m,h()):f},e.align=function(m){return arguments.length?(d=Math.max(0,Math.min(1,m)),h()):d},e.copy=function(){return Df(t(),[r,i]).round(l).paddingInner(c).paddingOuter(f).align(d)},Wr.apply(h(),arguments)}function C3(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return C3(t())},e}function df(){return C3(Df.apply(null,arguments).paddingInner(1))}function PE(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function T3(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Td(){}var Lf=.7,cm=1/Lf,Ml="\\s*([+-]?\\d+)\\s*",$f="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ci="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rre=/^#([0-9a-f]{3,8})$/,ire=new RegExp(`^rgb\\(${Ml},${Ml},${Ml}\\)$`),ore=new RegExp(`^rgb\\(${Ci},${Ci},${Ci}\\)$`),are=new RegExp(`^rgba\\(${Ml},${Ml},${Ml},${$f}\\)$`),sre=new RegExp(`^rgba\\(${Ci},${Ci},${Ci},${$f}\\)$`),lre=new RegExp(`^hsl\\(${$f},${Ci},${Ci}\\)$`),ure=new RegExp(`^hsla\\(${$f},${Ci},${Ci},${$f}\\)$`),eI={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};PE(Td,Ff,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:tI,formatHex:tI,formatHex8:cre,formatHsl:fre,formatRgb:nI,toString:nI});function tI(){return this.rgb().formatHex()}function cre(){return this.rgb().formatHex8()}function fre(){return j3(this).formatHsl()}function nI(){return this.rgb().formatRgb()}function Ff(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rre.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?rI(t):n===3?new er(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?fp(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?fp(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ire.exec(e))?new er(t[1],t[2],t[3],1):(t=ore.exec(e))?new er(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=are.exec(e))?fp(t[1],t[2],t[3],t[4]):(t=sre.exec(e))?fp(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=lre.exec(e))?aI(t[1],t[2]/100,t[3]/100,1):(t=ure.exec(e))?aI(t[1],t[2]/100,t[3]/100,t[4]):eI.hasOwnProperty(e)?rI(eI[e]):e==="transparent"?new er(NaN,NaN,NaN,0):null}function rI(e){return new er(e>>16&255,e>>8&255,e&255,1)}function fp(e,t,n,r){return r<=0&&(e=t=n=NaN),new er(e,t,n,r)}function dre(e){return e instanceof Td||(e=Ff(e)),e?(e=e.rgb(),new er(e.r,e.g,e.b,e.opacity)):new er}function p_(e,t,n,r){return arguments.length===1?dre(e):new er(e,t,n,r??1)}function er(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}PE(er,p_,T3(Td,{brighter(e){return e=e==null?cm:Math.pow(cm,e),new er(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Lf:Math.pow(Lf,e),new er(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new er(ds(this.r),ds(this.g),ds(this.b),fm(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:iI,formatHex:iI,formatHex8:hre,formatRgb:oI,toString:oI}));function iI(){return`#${Ya(this.r)}${Ya(this.g)}${Ya(this.b)}`}function hre(){return`#${Ya(this.r)}${Ya(this.g)}${Ya(this.b)}${Ya((isNaN(this.opacity)?1:this.opacity)*255)}`}function oI(){const e=fm(this.opacity);return`${e===1?"rgb(":"rgba("}${ds(this.r)}, ${ds(this.g)}, ${ds(this.b)}${e===1?")":`, ${e})`}`}function fm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ds(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ya(e){return e=ds(e),(e<16?"0":"")+e.toString(16)}function aI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new oi(e,t,n,r)}function j3(e){if(e instanceof oi)return new oi(e.h,e.s,e.l,e.opacity);if(e instanceof Td||(e=Ff(e)),!e)return new oi;if(e instanceof oi)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,l=o-i,c=(o+i)/2;return l?(t===o?a=(n-r)/l+(n<r)*6:n===o?a=(r-t)/l+2:a=(t-n)/l+4,l/=c<.5?o+i:2-o-i,a*=60):l=c>0&&c<1?0:a,new oi(a,l,c,e.opacity)}function pre(e,t,n,r){return arguments.length===1?j3(e):new oi(e,t,n,r??1)}function oi(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}PE(oi,pre,T3(Td,{brighter(e){return e=e==null?cm:Math.pow(cm,e),new oi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Lf:Math.pow(Lf,e),new oi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new er(Gw(e>=240?e-240:e+120,i,r),Gw(e,i,r),Gw(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new oi(sI(this.h),dp(this.s),dp(this.l),fm(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 e=fm(this.opacity);return`${e===1?"hsl(":"hsla("}${sI(this.h)}, ${dp(this.s)*100}%, ${dp(this.l)*100}%${e===1?")":`, ${e})`}`}}));function sI(e){return e=(e||0)%360,e<0?e+360:e}function dp(e){return Math.max(0,Math.min(1,e||0))}function Gw(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const AE=e=>()=>e;function mre(e,t){return function(n){return e+n*t}}function gre(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function yre(e){return(e=+e)==1?N3:function(t,n){return n-t?gre(t,n,e):AE(isNaN(t)?n:t)}}function N3(e,t){var n=t-e;return n?mre(e,n):AE(isNaN(e)?t:e)}const lI=(function e(t){var n=yre(t);function r(i,o){var a=n((i=p_(i)).r,(o=p_(o)).r),l=n(i.g,o.g),c=n(i.b,o.b),f=N3(i.opacity,o.opacity);return function(d){return i.r=a(d),i.g=l(d),i.b=c(d),i.opacity=f(d),i+""}}return r.gamma=e,r})(1);function vre(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function bre(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function xre(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=Uu(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(l){for(a=0;a<r;++a)o[a]=i[a](l);return o}}function wre(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function dm(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Sre(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Uu(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var m_=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Yw=new RegExp(m_.source,"g");function _re(e){return function(){return e}}function Ore(e){return function(t){return e(t)+""}}function Ere(e,t){var n=m_.lastIndex=Yw.lastIndex=0,r,i,o,a=-1,l=[],c=[];for(e=e+"",t=t+"";(r=m_.exec(e))&&(i=Yw.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),l[a]?l[a]+=o:l[++a]=o),(r=r[0])===(i=i[0])?l[a]?l[a]+=i:l[++a]=i:(l[++a]=null,c.push({i:a,x:dm(r,i)}
vendor: 4,638 bytes, line 323
323)),n=Yw.lastIndex;return n<t.length&&(o=t.slice(n),l[a]?l[a]+=o:l[++a]=o),l.length<2?c[0]?Ore(c[0].x):_re(t):(t=c.length,function(f){for(var d=0,h;d<t;++d)l[(h=c[d]).i]=h.x(f);return l.join("")})}function Uu(e,t){var n=typeof t,r;return t==null||n==="boolean"?AE(t):(n==="number"?dm:n==="string"?(r=Ff(t))?(t=r,lI):Ere:t instanceof Ff?lI:t instanceof Date?wre:bre(t)?vre:Array.isArray(t)?xre:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Sre:dm)(e,t)}function kE(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Pre(e,t){t===void 0&&(t=e,e=Uu);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var l=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[l](a-l)}}function Are(e){return function(){return e}}function hm(e){return+e}var uI=[0,1];function zn(e){return e}function g_(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Are(isNaN(t)?NaN:.5)}function kre(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Cre(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=g_(i,r),o=n(a,o)):(r=g_(r,i),o=n(o,a)),function(l){return o(r(l))}}function Tre(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=g_(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(l){var c=Cd(e,l,1,r)-1;return o[c](i[c](l))}}function jd(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Dg(){var e=uI,t=uI,n=Uu,r,i,o,a=zn,l,c,f;function d(){var m=Math.min(e.length,t.length);return a!==zn&&(a=kre(e[0],e[m-1])),l=m>2?Tre:Cre,c=f=null,h}function h(m){return m==null||isNaN(m=+m)?o:(c||(c=l(e.map(r),t,n)))(r(a(m)))}return h.invert=function(m){return a(i((f||(f=l(t,e.map(r),dm)))(m)))},h.domain=function(m){return arguments.length?(e=Array.from(m,hm),d()):e.slice()},h.range=function(m){return arguments.length?(t=Array.from(m),d()):t.slice()},h.rangeRound=function(m){return t=Array.from(m),n=kE,d()},h.clamp=function(m){return arguments.length?(a=m?!0:zn,d()):a!==zn},h.interpolate=function(m){return arguments.length?(n=m,d()):n},h.unknown=function(m){return arguments.length?(o=m,h):o},function(m,g){return r=m,i=g,d()}}function CE(){return Dg()(zn,zn)}function jre(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function pm(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function au(e){return e=pm(Math.abs(e)),e?e[1]:NaN}function Nre(e,t){return function(n,r){for(var i=n.length,o=[],a=0,l=e[0],c=0;i>0&&l>0&&(c+l+1>r&&(l=Math.max(1,r-c)),o.push(n.substring(i-=l,i+l)),!((c+=l+1)>r));)l=e[a=(a+1)%e.length];return o.reverse().join(t)}}function Rre(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Mre=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bf(e){if(!(t=Mre.exec(e)))throw new Error("invalid format: "+e);var t;return new TE({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Bf.prototype=TE.prototype;function TE(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}TE.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 Ire(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var R3;function Dre(e,t){var n=pm(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(R3=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+pm(e,Math.max(0,t+o-1))[0]}function cI(e,t){var n=pm(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const fI={"%":(e,t)=>
vendor: 5,608 bytes, line 323
323(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:jre,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>cI(e*100,t),r:cI,s:Dre,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function dI(e){return e}var hI=Array.prototype.map,pI=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Lre(e){var t=e.grouping===void 0||e.thousands===void 0?dI:Nre(hI.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?dI:Rre(hI.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"â":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function f(h){h=Bf(h);var m=h.fill,g=h.align,w=h.sign,y=h.symbol,x=h.zero,S=h.width,P=h.comma,E=h.precision,C=h.trim,O=h.type;O==="n"?(P=!0,O="g"):fI[O]||(E===void 0&&(E=12),C=!0,O="g"),(x||m==="0"&&g==="=")&&(x=!0,m="0",g="=");var A=y==="$"?n:y==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",j=y==="$"?r:/[%p]/.test(O)?a:"",R=fI[O],L=/[defgprs%]/.test(O);E=E===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function q(D){var $=A,B=j,W,V,Y;if(O==="c")B=R(D)+B,D="";else{D=+D;var J=D<0||1/D<0;if(D=isNaN(D)?c:R(Math.abs(D),E),C&&(D=Ire(D)),J&&+D==0&&w!=="+"&&(J=!1),$=(J?w==="("?w:l:w==="-"||w==="("?"":w)+$,B=(O==="s"?pI[8+R3/3]:"")+B+(J&&w==="("?")":""),L){for(W=-1,V=D.length;++W<V;)if(Y=D.charCodeAt(W),48>Y||Y>57){B=(Y===46?i+D.slice(W+1):D.slice(W))+B,D=D.slice(0,W);break}}}P&&!x&&(D=t(D,1/0));var F=$.length+D.length+B.length,Z=F<S?new Array(S-F+1).join(m):"";switch(P&&x&&(D=t(Z+D,Z.length?S-B.length:1/0),Z=""),g){case"<":D=$+D+B+Z;break;case"=":D=$+Z+D+B;break;case"^":D=Z.slice(0,F=Z.length>>1)+$+D+B+Z.slice(F);break;default:D=Z+$+D+B;break}return o(D)}return q.toString=function(){return h+""},q}function d(h,m){var g=f((h=Bf(h),h.type="f",h)),w=Math.max(-8,Math.min(8,Math.floor(au(m)/3)))*3,y=Math.pow(10,-w),x=pI[8+w/3];return function(S){return g(y*S)+x}}return{format:f,formatPrefix:d}}var hp,jE,M3;$re({thousands:",",grouping:[3],currency:["$",""]});function $re(e){return hp=Lre(e),jE=hp.format,M3=hp.formatPrefix,hp}function Fre(e){return Math.max(0,-au(Math.abs(e)))}function Bre(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(au(t)/3)))*3-au(Math.abs(e)))}function qre(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,au(t)-au(e))+1}function I3(e,t,n,r){var i=d_(e,t,n),o;switch(r=Bf(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Bre(i,a))&&(r.precision=o),M3(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=qre(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Fre(i))&&(r.precision=o-(r.type==="%")*2);break}}return jE(r)}function ya(e){var t=e.domain;return e.ticks=function(n){var r=t();return c_(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return I3(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],l=r[o],c,f,d=10;for(l<a&&(f=a,a=l,l=f,f=i,i=o,o=f);d-- >0;){if(f=f_(a,l,n),f===c)return r[i]=a,r[o]=l,t(r);if(f>0)a=Math.floor(a/f)*f,l=Math.ceil(l/f)*f;else if(f<0)a=Math.ceil(a*f)/f,l=Math.floor(l*f)/f;else break;c=f}return e},e}function mm(){var e=CE();return e.copy=function(){return jd(e,mm())},Wr.apply(e,arguments),ya(e)}function D3(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,hm),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return D3(e).unknown(t)},e=arguments.length?Array.from(e,hm):[0,1],ya(n)}function L3(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function mI(e){return Math.log(e)}function gI(e){return Math.exp(e)}function zre(e){return-Math.log(-e)}function Ure(e){return-Math.exp(-e)}function Wre(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Hre(e){return e===10?Wre:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Vre(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function yI(e){return(t,n)=>-e(-t,n)}function NE(e){const t=e(mI,gI),n=t.domain;let r=10,i,o;function a(){return i=Vre(r),o=Hre(r),n()[0]<0?(i=yI(i),o=yI(o),e(zre,Ure)):e(mI,gI),t}return t.base=function(l){return arguments.length?(r=+l,a()):r},t.domain=function(l){return arguments.length?(n(l),a()):n()},t.ticks=l=>{const c=n();let f=c[0],d=c[c.length-1];const h=d<f;h&&([f,d]=[d,f]);let m=i(f),g=i(d),w,y;const x=l==null?10:+l;let S=[];if(!(r%1)&&g-m<x){if(m=Math.floor(m),g=Math.ceil(g),f>0){for(;m<=g;++m)for(w=1;w<r;++w)if(y=m<0?w/o(-m):w*o(m),!(y<f)){if(y>d)break;S.push(y)}}else for(;m<=g;++m)for(w=r-1;w>=1;--w)if(y=m>0?w/o(-m):w*o(m),!(y<f)){if(y>d)break;S.push(y)}S.length*2<x&&(S=c_(f,d,x))}else S=c_(m,g,Math.min(g-m,x)).map(o);return h?S.reverse():S},t.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=Bf(c)).precision==null&&(c.trim=!0),c=jE(c)),l===1/0)return c;const f=Math.max(1,r*l/t.ticks().length);return d=>{let h=d/o(Math.round(i(d)));return h*r<r-.5&&(h*=r),h<=f?c(d):""}},t.nice=()=>n(L3(n(),{floor:l=>o(Math.floor(i(l))),ceil:l=>o(Math.ceil(i(l)))})),t}function $3(){const e=NE(Dg()).domain([1,10]);return e.copy=()=>jd(e,$3()).base(e.base()),Wr.apply(e,arguments),e}
323function vI(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function bI(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function RE(e){var t=1,n=e(vI(t),bI(t));return n.constant=function(r){return arguments.length?e(vI(t=+r),bI(t)):t},ya(n)}function F3(){var e=RE(Dg());return e.copy=function(){return jd(e,F3()).constant(e.constant())},Wr.apply(e,arguments)}function xI(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Kre(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Gre(e){return e<0?-e*e:e*e}function ME(e){var t=e(zn,zn),n=1;function r(){return n===1?e(zn,zn):n===.5?e(Kre,Gre):e(xI(n),xI(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},ya(t)}function IE(){var e=ME(Dg());return e.copy=function(){return jd(e,IE()).exponent(e.exponent())},Wr.apply(e,arguments),e}function Yre(){return IE.apply(null,arguments).exponent(.5)}function wI(e){return Math.sign(e)*e*e}function Xre(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function B3(){var e=CE(),t=[0,1],n=!1,r;function i(o){var a=Xre(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(wI(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,hm)).map(wI)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return B3(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Wr.apply(i,arguments),ya(i)}function q3(){var e=[],t=[],n=[],r;function i(){var a=0,l=Math.max(1,t.length);for(n=new Array(l-1);++a<l;)n[a-1]=tre(e,a/l);return o}function o(a){return a==null||isNaN(a=+a)?r:t[Cd(n,a)]}return o.invertExtent=function(a){var l=t.indexOf(a);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let l of a)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(ua),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return q3().domain(e).range(t).unknown(r)},Wr.apply(o,arguments)}function z3(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(c){return c!=null&&c<=c?i[Cd(r,c,0,n)]:o}function l(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*t-(c-n)*e)/(n+1);return a}return a.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,l()):[e,t]},a.range=function(c){return arguments.length?(n=(i=Array.from(c)).length-1,l()):i.slice()},a.invertExtent=function(c){var f=i.indexOf(c);return f<0?[NaN,NaN]:f<1?[e,r[0]]:f>=n?[r[n-1],t]:[r[f-1],r[f]]},a.unknown=function(c){return arguments.length&&(o=c),a},a.thresholds=function(){return r.slice()},a.copy=function(){return z3().domain([e,t]).range(i).unknown(o)},Wr.apply(ya(a),arguments)}function U3(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Cd(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return U3().domain(e).range(t).unknown(n)},Wr.apply(i,arguments)}const Xw=new Date,Qw=new Date;function an(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),l=i.ceil(o);return o-a<l-o?a:l},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,l)=>{const c=[];if(o=i.ceil(o),l=l==null?1:Math.floor(l),!(o<a)||!(l>0))return c;let f;do c.push(f=new Date(+o)),t(o,l),e(o);while(f<o&&o<a);return c},i.filter=o=>an(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,l)=>{if(a>=a)if(l<0)for(;++l<=0;)for(;t(a,-1),!o(a););else for(;--l>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(Xw.setTime(+o),Qw.setTime(+a),e(Xw),e(Qw),Math.floor(n(Xw,Qw))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const gm=an(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);gm.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?an(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):gm);gm.range;const io=1e3,zr=io*60,oo=zr*60,mo=oo*24,DE=mo*7,SI=mo*30,Jw=mo*365,Xa=an(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*io)},(e,t)=>(t-e)/io,e=>e.getUTCSeconds());Xa.range;const LE=an(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*io)},(e,t)=>{e.setTime(+e+t*zr)},(e,t)=>(t-e)/zr,e=>e.getMinutes());LE.range;const $E=an(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*zr)},(e,t)=>(t-e)/zr,e=>e.getUTCMinutes());$E.range;const FE=an(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*io-e.getMinutes()*zr)},(e,t)=>{e.setTime(+e+t*oo)},(e,t)=>(t-e)/oo,e=>e.getHours());FE.range;const BE=an(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*oo)},(e,t)=>(t-e)/oo,e=>e.getUTCHours());BE.range;const Nd=an(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*zr)/mo,e=>e.getDate()-1);Nd.range;const Lg=an(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mo,e=>e.getUTCDate()-1);Lg.range;const W3=an(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mo,e=>Math.floor(e/mo));W3.range;function Is(e){return an(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*zr)/DE)}const $g=Is(0),ym=Is(1),Qre=Is(2),Jre=Is(3),su=Is(4),Zre=Is(5),eie=Is(6);$g.range;ym.range;Qre.range;Jre.range;su.range;Zre.range;eie.range;function Ds(e){return an(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/DE)}const Fg=Ds(0),vm=Ds(1),tie=Ds(2),nie=Ds(3),lu=Ds(4),rie=Ds(5),iie=Ds(6);Fg.range;vm.range;tie.range;nie.range;lu.range;rie.range;iie.range;const qE=an(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());qE.range;const zE=an(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());
vendor: 6,370 bytes, line 323
323zE.range;const go=an(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());go.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:an(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});go.range;const yo=an(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());yo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:an(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});yo.range;function H3(e,t,n,r,i,o){const a=[[Xa,1,io],[Xa,5,5*io],[Xa,15,15*io],[Xa,30,30*io],[o,1,zr],[o,5,5*zr],[o,15,15*zr],[o,30,30*zr],[i,1,oo],[i,3,3*oo],[i,6,6*oo],[i,12,12*oo],[r,1,mo],[r,2,2*mo],[n,1,DE],[t,1,SI],[t,3,3*SI],[e,1,Jw]];function l(f,d,h){const m=d<f;m&&([f,d]=[d,f]);const g=h&&typeof h.range=="function"?h:c(f,d,h),w=g?g.range(f,+d+1):[];return m?w.reverse():w}function c(f,d,h){const m=Math.abs(d-f)/h,g=OE(([,,x])=>x).right(a,m);if(g===a.length)return e.every(d_(f/Jw,d/Jw,h));if(g===0)return gm.every(Math.max(d_(f,d,h),1));const[w,y]=a[m/a[g-1][2]<a[g][2]/m?g-1:g];return w.every(y)}return[l,c]}const[oie,aie]=H3(yo,zE,Fg,W3,BE,$E),[sie,lie]=H3(go,qE,$g,Nd,FE,LE);function Zw(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function e1(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function qc(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function uie(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,l=e.months,c=e.shortMonths,f=zc(i),d=Uc(i),h=zc(o),m=Uc(o),g=zc(a),w=Uc(a),y=zc(l),x=Uc(l),S=zc(c),P=Uc(c),E={a:J,A:F,b:Z,B:M,c:null,d:kI,e:kI,f:Nie,g:zie,G:Wie,H:Cie,I:Tie,j:jie,L:V3,m:Rie,M:Mie,p:z,q:X,Q:jI,s:NI,S:Iie,u:Die,U:Lie,V:$ie,w:Fie,W:Bie,x:null,X:null,y:qie,Y:Uie,Z:Hie,"%":TI},C={a:I,A:ue,b:xe,B:we,c:null,d:CI,e:CI,f:Yie,g:ooe,G:soe,H:Vie,I:Kie,j:Gie,L:G3,m:Xie,M:Qie,p:le,q:ve,Q:jI,s:NI,S:Jie,u:Zie,U:eoe,V:toe,w:noe,W:roe,x:null,X:null,y:ioe,Y:aoe,Z:loe,"%":TI},O={a:q,A:D,b:$,B,c:W,d:PI,e:PI,f:Eie,g:EI,G:OI,H:AI,I:AI,j:wie,L:Oie,m:xie,M:Sie,p:L,q:bie,Q:Aie,s:kie,S:_ie,u:pie,U:mie,V:gie,w:hie,W:yie,x:V,X:Y,y:EI,Y:OI,Z:vie,"%":Pie};E.x=A(n,E),E.X=A(r,E),E.c=A(t,E),C.x=A(n,C),C.X=A(r,C),C.c=A(t,C);function A(ae,he){return function(be){var ie=[],Ue=-1,De=0,ot=ae.length,at,bt,Mn;for(be instanceof Date||(be=new Date(+be));++Ue<ot;)ae.charCodeAt(Ue)===37&&(ie.push(ae.slice(De,Ue)),(bt=_I[at=ae.charAt(++Ue)])!=null?at=ae.charAt(++Ue):bt=at==="e"?" ":"0",(Mn=he[at])&&(at=Mn(be,bt)),ie.push(at),De=Ue+1);return ie.push(ae.slice(De,Ue)),ie.join("")}}function j(ae,he){return function(be){var ie=qc(1900,void 0,1),Ue=R(ie,ae,be+="",0),De,ot;if(Ue!=be.length)return null;if("Q"in ie)return new Date(ie.Q);if("s"in ie)return new Date(ie.s*1e3+("L"in ie?ie.L:0));if(he&&!("Z"in ie)&&(ie.Z=0),"p"in ie&&(ie.H=ie.H%12+ie.p*12),ie.m===void 0&&(ie.m="q"in ie?ie.q:0),"V"in ie){if(ie.V<1||ie.V>53)return null;"w"in ie||(ie.w=1),"Z"in ie?(De=e1(qc(ie.y,0,1)),ot=De.getUTCDay(),De=ot>4||ot===0?vm.ceil(De):vm(De),De=Lg.offset(De,(ie.V-1)*7),ie.y=De.getUTCFullYear(),ie.m=De.getUTCMonth(),ie.d=De.getUTCDate()+(ie.w+6)%7):(De=Zw(qc(ie.y,0,1)),ot=De.getDay(),De=ot>4||ot===0?ym.ceil(De):ym(De),De=Nd.offset(De,(ie.V-1)*7),ie.y=De.getFullYear(),ie.m=De.getMonth(),ie.d=De.getDate()+(ie.w+6)%7)}else("W"in ie||"U"in ie)&&("w"in ie||(ie.w="u"in ie?ie.u%7:"W"in ie?1:0),ot="Z"in ie?e1(qc(ie.y,0,1)).getUTCDay():Zw(qc(ie.y,0,1)).getDay(),ie.m=0,ie.d="W"in ie?(ie.w+6)%7+ie.W*7-(ot+5)%7:ie.w+ie.U*7-(ot+6)%7);return"Z"in ie?(ie.H+=ie.Z/100|0,ie.M+=ie.Z%100,e1(ie)):Zw(ie)}}function R(ae,he,be,ie){for(var Ue=0,De=he.length,ot=be.length,at,bt;Ue<De;){if(ie>=ot)return-1;if(at=he.charCodeAt(Ue++),at===37){if(at=he.charAt(Ue++),bt=O[at in _I?he.charAt(Ue++):at],!bt||(ie=bt(ae,be,ie))<0)return-1}else if(at!=be.charCodeAt(ie++))return-1}return ie}function L(ae,he,be){var ie=f.exec(he.slice(be));return ie?(ae.p=d.get(ie[0].toLowerCase()),be+ie[0].length):-1}function q(ae,he,be){var ie=g.exec(he.slice(be));return ie?(ae.w=w.get(ie[0].toLowerCase()),be+ie[0].length):-1}function D(ae,he,be){var ie=h.exec(he.slice(be));return ie?(ae.w=m.get(ie[0].toLowerCase()),be+ie[0].length):-1}function $(ae,he,be){var ie=S.exec(he.slice(be));return ie?(ae.m=P.get(ie[0].toLowerCase()),be+ie[0].length):-1}function B(ae,he,be){var ie=y.exec(he.slice(be));return ie?(ae.m=x.get(ie[0].toLowerCase()),be+ie[0].length):-1}function W(ae,he,be){return R(ae,t,he,be)}function V(ae,he,be){return R(ae,n,he,be)}function Y(ae,he,be){return R(ae,r,he,be)}function J(ae){return a[ae.getDay()]}function F(ae){return o[ae.getDay()]}function Z(ae){return c[ae.getMonth()]}function M(ae){return l[ae.getMonth()]}function z(ae){return i[+(ae.getHours()>=12)]}function X(ae){return 1+~~(ae.getMonth()/3)}function I(ae){return a[ae.getUTCDay()]}function ue(ae){return o[ae.getUTCDay()]}function xe(ae){return c[ae.getUTCMonth()]}function we(ae){return l[ae.getUTCMonth()]}function le(ae){return i[+(ae.getUTCHours()>=12)]}function ve(ae){return 1+~~(ae.getUTCMonth()/3)}return{format:function(ae){var he=A(ae+="",E);return he.toString=function(){return ae},he},parse:function(ae){var he=j(ae+="",!1);return he.toString=function(){return ae},he},utcFormat:function(ae){var he=A(ae+="",C);return he.toString=function(){return ae},he},utcParse:function(ae){var he=j(ae+="",!0);return he.toString=function(){return ae},he}}}var _I={"-":"",_:" ",0:"0"},pn=/^\s*\d+/,cie=/^%/,fie=/[\\^$*+?|[\]().{}]/g;function it(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function die(e){return e.replace(fie,"\\$&")}function zc(e){return new RegExp("^(?:"+e.map(die).join("|")+")","i")}function Uc(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function hie(e,t,n){var r=pn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function pie(e,t,n){var r=pn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function mie(e,t,n){var r=pn.exec(t.slice(n,n+2));
vendor: 4,106 bytes, line 323
323return r?(e.U=+r[0],n+r[0].length):-1}function gie(e,t,n){var r=pn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function yie(e,t,n){var r=pn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function OI(e,t,n){var r=pn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function EI(e,t,n){var r=pn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function vie(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function bie(e,t,n){var r=pn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function xie(e,t,n){var r=pn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function PI(e,t,n){var r=pn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function wie(e,t,n){var r=pn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function AI(e,t,n){var r=pn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Sie(e,t,n){var r=pn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function _ie(e,t,n){var r=pn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Oie(e,t,n){var r=pn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Eie(e,t,n){var r=pn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Pie(e,t,n){var r=cie.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Aie(e,t,n){var r=pn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function kie(e,t,n){var r=pn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function kI(e,t){return it(e.getDate(),t,2)}function Cie(e,t){return it(e.getHours(),t,2)}function Tie(e,t){return it(e.getHours()%12||12,t,2)}function jie(e,t){return it(1+Nd.count(go(e),e),t,3)}function V3(e,t){return it(e.getMilliseconds(),t,3)}function Nie(e,t){return V3(e,t)+"000"}function Rie(e,t){return it(e.getMonth()+1,t,2)}function Mie(e,t){return it(e.getMinutes(),t,2)}function Iie(e,t){return it(e.getSeconds(),t,2)}function Die(e){var t=e.getDay();return t===0?7:t}function Lie(e,t){return it($g.count(go(e)-1,e),t,2)}function K3(e){var t=e.getDay();return t>=4||t===0?su(e):su.ceil(e)}function $ie(e,t){return e=K3(e),it(su.count(go(e),e)+(go(e).getDay()===4),t,2)}function Fie(e){return e.getDay()}function Bie(e,t){return it(ym.count(go(e)-1,e),t,2)}function qie(e,t){return it(e.getFullYear()%100,t,2)}function zie(e,t){return e=K3(e),it(e.getFullYear()%100,t,2)}function Uie(e,t){return it(e.getFullYear()%1e4,t,4)}function Wie(e,t){var n=e.getDay();return e=n>=4||n===0?su(e):su.ceil(e),it(e.getFullYear()%1e4,t,4)}function Hie(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+it(t/60|0,"0",2)+it(t%60,"0",2)}function CI(e,t){return it(e.getUTCDate(),t,2)}function Vie(e,t){return it(e.getUTCHours(),t,2)}function Kie(e,t){return it(e.getUTCHours()%12||12,t,2)}function Gie(e,t){return it(1+Lg.count(yo(e),e),t,3)}function G3(e,t){return it(e.getUTCMilliseconds(),t,3)}function Yie(e,t){return G3(e,t)+"000"}function Xie(e,t){return it(e.getUTCMonth()+1,t,2)}function Qie(e,t){return it(e.getUTCMinutes(),t,2)}function Jie(e,t){return it(e.getUTCSeconds(),t,2)}function Zie(e){var t=e.getUTCDay();return t===0?7:t}function eoe(e,t){return it(Fg.count(yo(e)-1,e),t,2)}function Y3(e){var t=e.getUTCDay();return t>=4||t===0?lu(e):lu.ceil(e)}function toe(e,t){return e=Y3(e),it(lu.count(yo(e),e)+(yo(e).getUTCDay()===4),t,2)}function noe(e){return e.getUTCDay()}function roe(e,t){return it(vm.count(yo(e)-1,e),t,2)}function ioe(e,t){return it(e.getUTCFullYear()%100,t,2)}function ooe(e,t){return e=Y3(e),it(e.getUTCFullYear()%100,t,2)}function aoe(e,t){return it(e.getUTCFullYear()%1e4,t,4)}function soe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?lu(e):lu.ceil(e),it(e.getUTCFullYear()%1e4,t,4)}function loe(){return"+0000"}function TI(){return"%"}function jI(e){return+e}function NI(e){return Math.floor(+e/1e3)}var ml,X3,Q3;uoe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
323ay","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 uoe(e){return ml=uie(e),X3=ml.format,ml.parse,Q3=ml.utcFormat,ml.utcParse,ml}function coe(e){return new Date(e)}function foe(e){return e instanceof Date?+e:+new Date(+e)}function UE(e,t,n,r,i,o,a,l,c,f){var d=CE(),h=d.invert,m=d.domain,g=f(".%L"),w=f(":%S"),y=f("%I:%M"),x=f("%I %p"),S=f("%a %d"),P=f("%b %d"),E=f("%B"),C=f("%Y");function O(A){return(c(A)<A?g:l(A)<A?w:a(A)<A?y:o(A)<A?x:r(A)<A?i(A)<A?S:P:n(A)<A?E:C)(A)}return d.invert=function(A){return new Date(h(A))},d.domain=function(A){return arguments.length?m(Array.from(A,foe)):m().map(coe)},d.ticks=function(A){var j=m();return e(j[0],j[j.length-1],A??10)},d.tickFormat=function(A,j){return j==null?O:f(j)},d.nice=function(A){var j=m();return(!A||typeof A.range!="function")&&(A=t(j[0],j[j.length-1],A??10)),A?m(L3(j,A)):d},d.copy=function(){return jd(d,UE(e,t,n,r,i,o,a,l,c,f))},d}function doe(){return Wr.apply(UE(sie,lie,go,qE,$g,Nd,FE,LE,Xa,X3).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function hoe(){return Wr.apply(UE(oie,aie,yo,zE,Fg,Lg,BE,$E,Xa,Q3).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Bg(){var e=0,t=1,n,r,i,o,a=zn,l=!1,c;function f(h){return h==null||isNaN(h=+h)?c:a(i===0?.5:(h=(o(h)-n)*i,l?Math.max(0,Math.min(1,h)):h))}f.domain=function(h){return arguments.length?([e,t]=h,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),f):[e,t]},f.clamp=function(h){return arguments.length?(l=!!h,f):l},f.interpolator=function(h){return arguments.length?(a=h,f):a};function d(h){return function(m){var g,w;return arguments.length?([g,w]=m,a=h(g,w),f):[a(0),a(1)]}}return f.range=d(Uu),f.rangeRound=d(kE),f.unknown=function(h){return arguments.length?(c=h,f):c},function(h){return o=h,n=h(e),r=h(t),i=n===r?0:1/(r-n),f}}function va(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function J3(){var e=ya(Bg()(zn));return e.copy=function(){return va(e,J3())},xo.apply(e,arguments)}function Z3(){var e=NE(Bg()).domain([1,10]);return e.copy=function(){return va(e,Z3()).base(e.base())},xo.apply(e,arguments)}function eq(){var e=RE(Bg());return e.copy=function(){return va(e,eq()).constant(e.constant())},xo.apply(e,arguments)}function WE(){var e=ME(Bg());return e.copy=function(){return va(e,WE()).exponent(e.exponent())},xo.apply(e,arguments)}function poe(){return WE.apply(null,arguments).exponent(.5)}function tq(){var e=[],t=zn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Cd(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(ua),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>ere(e,o/r))},n.copy=function(){return tq(t).domain(e)},xo.apply(n,arguments)}function qg(){var e=0,t=.5,n=1,r=1,i,o,a,l,c,f=zn,d,h=!1,m;function g(y){return isNaN(y=+y)?m:(y=.5+((y=+d(y))-o)*(r*y<r*o?l:c),f(h?Math.max(0,Math.min(1,y)):y))}g.domain=function(y){return arguments.length?([e,t,n]=y,i=d(e=+e),o=d(t=+t),a=d(n=+n),l=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),r=o<i?-1:1,g):[e,t,n]},g.clamp=function(y){return arguments.length?(h=!!y,g):h},g.interpolator=function(y){return arguments.length?(f=y,g):f};function w(y){return function(x){var S,P,E;return arguments.length?([S,P,E]=x,f=Pre(y,[S,P,E]),g):[f(0),f(.5),f(1)]}}return g.range=w(Uu),g.rangeRound=w(kE),g.unknown=function(y){return arguments.length?(m=y,g):m},function(y){return d=y,i=y(e),o=y(t),a=y(n),l=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),r=o<i?-1:1,g}}function nq(){var e=ya(qg()(zn));return e.copy=function(){return va(e,nq())},xo.apply(e,arguments)}function rq(){var e=NE(qg()).domain([.1,1,10]);return e.copy=function(){return va(e,rq()).base(e.base())},xo.apply(e,arguments)}function iq(){var e=RE(qg());
vendor: 70,855 bytes, lines 323-350
323return e.copy=function(){return va(e,iq()).constant(e.constant())},xo.apply(e,arguments)}function HE(){var e=ME(qg());return e.copy=function(){return va(e,HE()).exponent(e.exponent())},xo.apply(e,arguments)}function moe(){return HE.apply(null,arguments).exponent(.5)}const RI=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Df,scaleDiverging:nq,scaleDivergingLog:rq,scaleDivergingPow:HE,scaleDivergingSqrt:moe,scaleDivergingSymlog:iq,scaleIdentity:D3,scaleImplicit:h_,scaleLinear:mm,scaleLog:$3,scaleOrdinal:EE,scalePoint:df,scalePow:IE,scaleQuantile:q3,scaleQuantize:z3,scaleRadial:B3,scaleSequential:J3,scaleSequentialLog:Z3,scaleSequentialPow:WE,scaleSequentialQuantile:tq,scaleSequentialSqrt:poe,scaleSequentialSymlog:eq,scaleSqrt:Yre,scaleSymlog:F3,scaleThreshold:U3,scaleTime:doe,scaleUtc:hoe,tickFormat:I3},Symbol.toStringTag,{value:"Module"}));var t1,MI;function zg(){if(MI)return t1;MI=1;var e=Fu();function t(n,r,i){for(var o=-1,a=n.length;++o<a;){var l=n[o],c=r(l);if(c!=null&&(f===void 0?c===c&&!e(c):i(c,f)))var f=c,d=l}return d}return t1=t,t1}var n1,II;function oq(){if(II)return n1;II=1;function e(t,n){return t>n}return n1=e,n1}var r1,DI;function goe(){if(DI)return r1;DI=1;var e=zg(),t=oq(),n=zu();function r(i){return i&&i.length?e(i,n,t):void 0}return r1=r,r1}var yoe=goe();const Ug=tt(yoe);var i1,LI;function aq(){if(LI)return i1;LI=1;function e(t,n){return t<n}return i1=e,i1}var o1,$I;function voe(){if($I)return o1;$I=1;var e=zg(),t=aq(),n=zu();function r(i){return i&&i.length?e(i,n,t):void 0}return o1=r,o1}var boe=voe();const Wg=tt(boe);var a1,FI;function xoe(){if(FI)return a1;FI=1;var e=sE(),t=$i(),n=p3(),r=ir();function i(o,a){var l=r(o)?e:n;return l(o,t(a,3))}return a1=i,a1}var s1,BI;function woe(){if(BI)return s1;BI=1;var e=d3(),t=xoe();function n(r,i){return e(t(r,i),1)}return s1=n,s1}var Soe=woe();const _oe=tt(Soe);var l1,qI;function Ooe(){if(qI)return l1;qI=1;var e=xE();function t(n,r){return e(n,r)}return l1=t,l1}var Eoe=Ooe();const Rd=tt(Eoe);var Wu=1e9,Poe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},KE,Rt=!0,Ur="[DecimalError] ",hs=Ur+"Invalid argument: ",VE=Ur+"Exponent out of range: ",Hu=Math.floor,za=Math.pow,Aoe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,xr,dn=1e7,Ct=7,sq=9007199254740991,bm=Hu(sq/Ct),Ee={};Ee.absoluteValue=Ee.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Ee.comparedTo=Ee.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};Ee.decimalPlaces=Ee.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Ct;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Ee.dividedBy=Ee.div=function(e){return uo(this,new this.constructor(e))};Ee.dividedToIntegerBy=Ee.idiv=function(e){var t=this,n=t.constructor;return xt(uo(t,new n(e),0,1),n.precision)};Ee.equals=Ee.eq=function(e){return!this.cmp(e)};Ee.exponent=function(){return Yt(this)};Ee.greaterThan=Ee.gt=function(e){return this.cmp(e)>0};Ee.greaterThanOrEqualTo=Ee.gte=function(e){return this.cmp(e)>=0};Ee.isInteger=Ee.isint=function(){return this.e>this.d.length-2};Ee.isNegative=Ee.isneg=function(){return this.s<0};Ee.isPositive=Ee.ispos=function(){return this.s>0};Ee.isZero=function(){return this.s===0};Ee.lessThan=Ee.lt=function(e){return this.cmp(e)<0};Ee.lessThanOrEqualTo=Ee.lte=function(e){return this.cmp(e)<1};Ee.logarithm=Ee.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(xr))throw Error(Ur+"NaN");if(n.s<1)throw Error(Ur+(n.s?"NaN":"-Infinity"));return n.eq(xr)?new r(0):(Rt=!1,t=uo(qf(n,o),qf(e,o),o),Rt=!0,xt(t,i))};Ee.minus=Ee.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cq(t,e):lq(t,(e.s=-e.s,e))};Ee.modulo=Ee.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(Ur+"NaN");return n.s?(Rt=!1,t=uo(n,e,0,1).times(e),Rt=!0,n.minus(t)):xt(new r(n),i)};Ee.naturalExponential=Ee.exp=function(){return uq(this)};Ee.naturalLogarithm=Ee.ln=function(){return qf(this)};Ee.negated=Ee.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ee.plus=Ee.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?lq(t,e):cq(t,(e.s=-e.s,e))};Ee.precision=Ee.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(hs+e);if(t=Yt(i)+1,r=i.d.length-1,n=r*Ct+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Ee.squareRoot=Ee.sqrt=function(){var e,t,n,r,i,o,a,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error(Ur+"NaN")}for(e=Yt(l),Rt=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Pi(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Hu((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new c(t)):r=new c(i.toString()),n=c.precision,i=a=n+3;;)if(o=r,r=o.plus(uo(l,o,a+2)).times(.5),Pi(o.d).slice(0,a)===(t=Pi(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(xt(o,n+1,0),o.times(o).eq(l)){r=o;break}}else if(t!="9999")break;a+=4}return Rt=!0,xt(r,n)};Ee.times=Ee.mul=function(e){var t,n,r,i,o,a,l,c,f,d=this,h=d.constructor,m=d.d,g=(e=new h(e)).d;if(!d.s||!e.s)return new h(0);for(e.s*=d.s,n=d.e+e.e,c=m.length,f=g.length,c<f&&(o=m,m=g,g=o,a=c,c=f,f=a),o=[],a=c+f,r=a;r--;)o.push(0);for(r=f;--r>=0;){for(t=0,i=c+r;i>r;)l=o[i]+g[r]*m[i-r-1]+t,o[i--]=l%dn|0,t=l/dn|0;o[i]=(o[i]+t)%dn|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Rt?xt(e,h.precision):e};Ee.toDecimalPlaces=Ee.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Ri(e,0,Wu),t===void 0?t=r.rounding:Ri(t,0,8),xt(n,e+Yt(n)+1,t))};Ee.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Os(r,!0):(Ri(e,0,Wu),t===void 0?t=i.rounding:Ri(t,0,8),r=xt(new i(r),e+1,t),n=Os(r,!0,e+1)),n};Ee.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?Os(i):(Ri(e,0,Wu),t===void 0?t=o.rounding:Ri(t,0,8),r=xt(new o(i),e+Yt(i)+1,t),n=Os(r.abs(),!1,e+Yt(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};Ee.toInteger=Ee.toint=function(){var e=this,t=e.constructor;return xt(new t(e),Yt(e)+1,t.rounding)};Ee.toNumber=function(){return+this};Ee.toPower=Ee.pow=function(e){var t,n,r,i,o,a,l=this,c=l.constructor,f=12,d=+(e=new c(e));if(!e.s)return new c(xr);if(l=new c(l),!l.s){if(e.s<1)throw Error(Ur+"Infinity");return l}if(l.eq(xr))return l;if(r=c.precision,e.eq(xr))return xt(l,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=l.s,a){if((n=d<0?-d:d)<=sq){for(i=new c(xr),t=Math.ceil(r/Ct+4),Rt=!1;n%2&&(i=i.times(l),UI(i.d,t)),n=Hu(n/2),n!==0;)l=l.times(l),UI(l.d,t);return Rt=!0,e.s<0?new c(xr).div(i):xt(i,r)}}else if(o<0)throw Error(Ur+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,Rt=!1,i=e.times(qf(l,r+f)),Rt=!0,i=uq(i),i.s=o,i};Ee.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=Yt(i),r=Os(i,n<=o.toExpNeg||n>=o.toExpPos)):(Ri(e,1,Wu),t===void 0?t=o.rounding:Ri(t,0,8),i=xt(new o(i),e,t),n=Yt(i),r=Os(i,e<=n||n<=o.toExpNeg,e)),r};Ee.toSignificantDigits=Ee.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Ri(e,1,Wu),t===void 0?t=r.rounding:Ri(t,0,8)),xt(new r(n),e,t)};Ee.toString=Ee.valueOf=Ee.val=Ee.toJSON=Ee[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Yt(e),n=e.constructor;return Os(e,t<=n.toExpNeg||t>=n.toExpPos)};function lq(e,t){var n,r,i,o,a,l,c,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),Rt?xt(t,h):t;if(c=e.d,f=t.d,a=e.e,i=t.e,c=c.slice(),o=a-i,o){for(o<0?(r=c,o=-o,l=f.length):(r=f,i=a,l=c.length),a=Math.ceil(h/Ct),l=a>l?a+1:l+1,o>l&&(o=l,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(l=c.length,o=f.length,l-o<0&&(o=l,r=f,f=c,c=r),n=0;o;)n=(c[--o]=c[o]+f[o]+n)/dn|0,c[o]%=dn;for(n&&(c.unshift(n),++i),l=c.length;c[--l]==0;)c.pop();return t.d=c,t.e=i,Rt?xt(t,h):t}function Ri(e,t,n){if(e!==~~e||e<t||e>n)throw Error(hs+e)}function Pi(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)r=e[t]+"",n=Ct-r.length,n&&(o+=Ko(n)),o+=r;a=e[t],r=a+"",n=Ct-r.length,n&&(o+=Ko(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var uo=(function(){function e(r,i){var o,a=0,l=r.length;for(r=r.slice();l--;)o=r[l]*i+a,r[l]=o%dn|0,a=o/dn|0;return a&&r.unshift(a),r}function t(r,i,o,a){var l,c;if(o!=a)c=o>a?1:-1;else for(l=c=0;l<o;l++)if(r[l]!=i[l]){c=r[l]>i[l]?1:-1;break}return c}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]<i[o]?1:0,r[o]=a*dn+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,a){var l,c,f,d,h,m,g,w,y,x,S,P,E,C,O,A,j,R,L=r.constructor,q=r.s==i.s?1:-1,D=r.d,$=i.d;if(!r.s)return new L(r);if(!i.s)throw Error(Ur+"Division by zero");for(c=r.e-i.e,j=$.length,O=D.length,g=new L(q),w=g.d=[],f=0;$[f]==(D[f]||0);)++f;if($[f]>(D[f]||0)&&--c,o==null?P=o=L.precision:a?P=o+(Yt(r)-Yt(i))+1:P=o,P<0)return new L(0);if(P=P/Ct+2|0,f=0,j==1)for(d=0,$=$[0],P++;(f<O||d)&&P--;f++)E=d*dn+(D[f]||0),w[f]=E/$|0,d=E%$|0;else{for(d=dn/($[0]+1)|0,d>1&&($=e($,d),D=e(D,d),j=$.length,O=D.length),C=j,y=D.slice(0,j),x=y.length;x<j;)y[x++]=0;R=$.slice(),R.unshift(0),A=$[0],$[1]>=dn/2&&++A;do d=0,l=t($,y,j,x),l<0?(S=y[0],j!=x&&(S=S*dn+(y[1]||0)),d=S/A|0,d>1?(d>=dn&&(d=dn-1),h=e($,d),m=h.length,x=y.length,l=t(h,y,m,x),l==1&&(d--,n(h,j<m?R:$,m))):(d==0&&(l=d=1),h=$.slice()),m=h.length,m<x&&h.unshift(0),n(y,h,x),l==-1&&(x=y.length,l=t($,y,j,x),l<1&&(d++,n(y,j<x?R:$,x))),x=y.length):l===0&&(d++,y=[0]),w[f++]=d,l&&y[0]?y[x++]=D[C]||0:(y=[D[C]],x=1);while((C++<O||y[0]!==void 0)&&P--)}return w[0]||w.shift(),g.e=c,xt(g,a?o+Yt(g)+1:o)}})();function uq(e,t){var n,r,i,o,a,l,c=0,f=0,d=e.constructor,h=d.precision;if(Yt(e)>16)throw Error(VE+Yt(e));if(!e.s)return new d(xr);for(Rt=!1,l=h,a=new d(.03125);e.abs().gte(.1);)e=e.times(a),f+=5;for(r=Math.log(za(2,f))/Math.LN10*2+5|0,l+=r,n=i=o=new d(xr),d.precision=l;;){if(i=xt(i.times(e),l),n=n.times(++c),a=o.plus(uo(i,n,l)),Pi(a.d).slice(0,l)===Pi(o.d).slice(0,l)){for(;f--;)o=xt(o.times(o),l);return d.precision=h,t==null?(Rt=!0,xt(o,h)):o}o=a}}function Yt(e){for(var t=e.e*Ct,n=e.d[0];n>=10;n/=10)t++;return t}function u1(e,t,n){if(t>e.LN10.sd())throw Rt=!0,n&&(e.precision=n),Error(Ur+"LN10 precision limit exceeded");return xt(new e(e.LN10),t)}function Ko(e){for(var t="";e--;)t+="0";return t}function qf(e,t){var n,r,i,o,a,l,c,f,d,h=1,m=10,g=e,w=g.d,y=g.constructor,x=y.precision;if(g.s<1)throw Error(Ur+(g.s?"NaN":"-Infinity"));if(g.eq(xr))return new y(0);if(t==null?(Rt=!1,f=x):f=t,g.eq(10))return t==null&&(Rt=!0),u1(y,f);if(f+=m,y.precision=f,n=Pi(w),r=n.charAt(0),o=Yt(g),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=Pi(g.d),r=n.charAt(0),h++;o=Yt(g),r>1?(g=new y("0."+n),o++):g=new y(r+"."+n.slice(1))}else return c=u1(y,f+2,x).times(o+""),g=qf(new y(r+"."+n.slice(1)),f-m).plus(c),y.precision=x,t==null?(Rt=!0,xt(g,x)):g;for(l=a=g=uo(g.minus(xr),g.plus(xr),f),d=xt(g.times(g),f),i=3;;){if(a=xt(a.times(d),f),c=l.plus(uo(a,new y(i),f)),Pi(c.d).slice(0,f)===Pi(l.d).slice(0,f))return l=l.times(2),o!==0&&(l=l.plus(u1(y,f+2,x).times(o+""))),l=uo(l,new y(h),f),y.precision=x,t==null?(Rt=!0,xt(l,x)):l;l=c,i+=2}}function zI(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=Hu(n/Ct),e.d=[],r=(n+1)%Ct,n<0&&(r+=Ct),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Ct;r<i;)e.d.push(+t.slice(r,r+=Ct));t=t.slice(r),r=Ct-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Rt&&(e.e>bm||e.e<-bm))throw Error(VE+n)}else e.s=0,e.e=0,e.d=[0];return e}function xt(e,t,n){var r,i,o,a,l,c,f,d,h=e.d;for(a=1,o=h[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=Ct,i=t,f=h[d=0];else{if(d=Math.ceil((r+1)/Ct),o=h.length,d>=o)return e;for(f=o=h[d],a=1;o>=10;o/=10)a++;r%=Ct,i=r-Ct+a}if(n!==void 0&&(o=za(10,a-i-1),l=f/o%10|0,c=t<0||h[d+1]!==void 0||f%o,c=n<4?(l||c)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||c||n==6&&(r>0?i>0?f/za(10,a-i):0:h[d-1])%10&1||n==(e.s<0?8:7))),t<1||!h[0])return c?(o=Yt(e),h.length=1,t=t-o-1,h[0]=za(10,(Ct-t%Ct)%Ct),e.e=Hu(-t/Ct)||0):(h.length=1,h[0]=e.e=e.s=0),e;if(r==0?(h.length=d,o=1,d--):(h.length=d+1,o=za(10,Ct-r),h[d]=i>0?(f/za(10,a-i)%za(10,i)|0)*o:0),c)for(;;)if(d==0){(h[0]+=o)==dn&&(h[0]=1,++e.e);break}else{if(h[d]+=o,h[d]!=dn)break;h[d--]=0,o=1}for(r=h.length;h[--r]===0;)h.pop();if(Rt&&(e.e>bm||e.e<-bm))throw Error(VE+Yt(e));return e}function cq(e,t){var n,r,i,o,a,l,c,f,d,h,m=e.constructor,g=m.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new m(e),Rt?xt(t,g):t;if(c=e.d,h=t.d,r=t.e,f=e.e,c=c.slice(),a=f-r,a){for(d=a<0,d?(n=c,a=-a,l=h.length):(n=h,r=f,l=c.length),i=Math.max(Math.ceil(g/Ct),l)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=c.length,l=h.length,d=i<l,d&&(l=i),i=0;i<l;i++)if(c[i]!=h[i]){d=c[i]<h[i];break}a=0}for(d&&(n=c,c=h,h=n,t.s=-t.s),l=c.length,i=h.length-l;i>0;--i)c[l++]=0;for(i=h.length;i>a;){if(c[--i]<h[i]){for(o=i;o&&c[--o]===0;)c[o]=dn-1;--c[o],c[i]+=dn}c[i]-=h[i]}for(;c[--l]===0;)c.pop();for(;c[0]===0;c.shift())--r;return c[0]?(t.d=c,t.e=r,Rt?xt(t,g):t):new m(0)}function Os(e,t,n){var r,i=Yt(e),o=Pi(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+Ko(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Ko(-i-1)+o,n&&(r=n-a)>0&&(o+=Ko(r))):i>=a?(o+=Ko(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+Ko(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=Ko(r))),e.s<0?"-"+o:o}function UI(e,t){if(e.length>t)return e.length=t,!0}function fq(e){var t,n,r;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(hs+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return zI(a,o.toString())}else if(typeof o!="string")throw Error(hs+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,Aoe.test(o))zI(a,o);else throw Error(hs+o)}if(i.prototype=Ee,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=fq,i.config=i.set=koe,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function koe(e){if(!e||typeof e!="object")throw Error(Ur+"Object expected");var t,n,r,i=["precision",1,Wu,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(Hu(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(hs+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(hs+n+": "+r);return this}var KE=fq(Poe);xr=new KE(1);const yt=KE;function Coe(e){return Roe(e)||Noe(e)||joe(e)||Toe()}function Toe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 324In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function joe(e,t){if(e){if(typeof e=="string")return y_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y_(e,t)}}function Noe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Roe(e){if(Array.isArray(e))return y_(e)}function y_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Moe=function(t){return t},dq={},hq=function(t){return t===dq},WI=function(t){return function n(){return arguments.length===0||arguments.length===1&&hq(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},Ioe=function e(t,n){return t===1?n:WI(function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter(function(l){return l!==dq}).length;return a>=t?n.apply(void 0,i):e(t-a,WI(function(){for(var l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var d=i.map(function(h){return hq(h)?c.shift():h});return n.apply(void 0,Coe(d).concat(c))}))})},Hg=function(t){return Ioe(t.length,t)},v_=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},Doe=Hg(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Loe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Moe;var i=n.reverse(),o=i[0],a=i.slice(1);return function(){return a.reduce(function(l,c){return c(l)},o.apply(void 0,arguments))}},b_=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},pq=function(t){var n=null,r=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n&&o.every(function(l,c){return l===n[c]})||(n=o,r=t.apply(void 0,o)),r}};function $oe(e){var t;return e===0?t=1:t=Math.floor(new yt(e).abs().log(10).toNumber())+1,t}function Foe(e,t,n){for(var r=new yt(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var Boe=Hg(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),qoe=Hg(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),zoe=Hg(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Vg={rangeStep:Foe,getDigitCount:$oe,interpolateNumber:Boe,uninterpolateNumber:qoe,uninterpolateTruncation:zoe};function x_(e){return Hoe(e)||Woe(e)||mq(e)||Uoe()}function Uoe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 325In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Woe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Hoe(e){if(Array.isArray(e))return w_(e)}function zf(e,t){return Goe(e)||Koe(e,t)||mq(e,t)||Voe()}function Voe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 326In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mq(e,t){if(e){if(typeof e=="string")return w_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w_(e,t)}}function w_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Koe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),l;!(r=(l=a.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,o=c}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw o}}return n}}function Goe(e){if(Array.isArray(e))return e}function gq(e){var t=zf(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function yq(e,t,n){if(e.lte(0))return new yt(0);var r=Vg.getDigitCount(e.toNumber()),i=new yt(10).pow(r),o=e.div(i),a=r!==1?.05:.1,l=new yt(Math.ceil(o.div(a).toNumber())).add(n).mul(a),c=l.mul(i);return t?c:new yt(Math.ceil(c))}function Yoe(e,t,n){var r=1,i=new yt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new yt(10).pow(Vg.getDigitCount(e)-1),i=new yt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new yt(Math.floor(e)))}else e===0?i=new yt(Math.floor((t-1)/2)):n||(i=new yt(Math.floor(e)));var a=Math.floor((t-1)/2),l=Loe(Doe(function(c){return i.add(new yt(c-a).mul(r)).toNumber()}),v_);return l(0,t)}function vq(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new yt(0),tickMin:new yt(0),tickMax:new yt(0)};var o=yq(new yt(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new yt(0):(a=new yt(e).add(t).div(2),a=a.sub(new yt(a).mod(o)));var l=Math.ceil(a.sub(e).div(o).toNumber()),c=Math.ceil(new yt(t).sub(a).div(o).toNumber()),f=l+c+1;return f>n?vq(e,t,n,r,i+1):(f<n&&(c=t>0?c+(n-f):c,l=t>0?l:l+(n-f)),{step:o,tickMin:a.sub(new yt(l).mul(o)),tickMax:a.add(new yt(c).mul(o))})}function Xoe(e){var t=zf(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),l=gq([n,r]),c=zf(l,2),f=c[0],d=c[1];if(f===-1/0||d===1/0){var h=d===1/0?[f].concat(x_(v_(0,i-1).map(function(){return 1/0}))):[].concat(x_(v_(0,i-1).map(function(){return-1/0})),[d]);return n>r?b_(h):h}if(f===d)return Yoe(f,i,o);var m=vq(f,d,a,o),g=m.step,w=m.tickMin,y=m.tickMax,x=Vg.rangeStep(w,y.add(new yt(.1).mul(g)),g);return n>r?b_(x):x}function Qoe(e,t){var n=zf(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=gq([r,i]),l=zf(a,2),c=l[0],f=l[1];if(c===-1/0||f===1/0)return[r,i];if(c===f)return[c];var d=Math.max(t,2),h=yq(new yt(f).sub(c).div(d-1),o,0),m=[].concat(x_(Vg.rangeStep(new yt(c),new yt(f).sub(new yt(.99).mul(h)),h)),[f]);return r>i?b_(m):m}var Joe=pq(Xoe),Zoe=pq(Qoe),eae="Invariant failed";function Es(e,t){throw new Error(eae)}var tae=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function uu(e){"@babel/helpers - typeof";return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uu(e)}function xm(){return xm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xm.apply(this,arguments)}function nae(e,t){return aae(e)||oae(e,t)||iae(e,t)||rae()}function rae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 327In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iae(e,t){if(e){if(typeof e=="string")return HI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HI(e,t)}}function HI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){f=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return l}}function aae(e){if(Array.isArray(e))return e}function sae(e,t){if(e==null)return{};var n=lae(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function uae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wq(r.key),r)}}function fae(e,t,n){return t&&cae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dae(e,t,n){return t=wm(t),hae(e,bq()?Reflect.construct(t,n||[],wm(e).constructor):t.apply(e,n))}function hae(e,t){if(t&&(uu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pae(e)}function pae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bq=function(){return!!e})()}function wm(e){return wm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wm(e)}function mae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S_(e,t)}function S_(e,t){return S_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},S_(e,t)}function xq(e,t,n){return t=wq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wq(e){var t=gae(e,"string");return uu(t)=="symbol"?t:t+""}function gae(e,t){if(uu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Md=(function(e){function t(){return uae(this,t),dae(this,t,arguments)}return mae(t,e),fae(t,[{key:"render",value:function(){var r=this.props,i=r.offset,o=r.layout,a=r.width,l=r.dataKey,c=r.data,f=r.dataPointFormatter,d=r.xAxis,h=r.yAxis,m=sae(r,tae),g=Ie(m,!1);this.props.direction==="x"&&d.type!=="number"&&Es();var w=c.map(function(y){var x=f(y,l),S=x.x,P=x.y,E=x.value,C=x.errorVal;if(!C)return null;var O=[],A,j;if(Array.isArray(C)){var R=nae(C,2);A=R[0],j=R[1]}else A=j=C;if(o==="vertical"){var L=d.scale,q=P+i,D=q+a,$=q-a,B=L(E-A),W=L(E+j);O.push({x1:W,y1:D,x2:W,y2:$}),O.push({x1:B,y1:q,x2:W,y2:q}),O.push({x1:B,y1:D,x2:B,y2:$})}else if(o==="horizontal"){var V=h.scale,Y=S+i,J=Y-a,F=Y+a,Z=V(E-A),M=V(E+j);O.push({x1:J,y1:M,x2:F,y2:M}),O.push({x1:Y,y1:Z,x2:Y,y2:M}),O.push({x1:J,y1:Z,x2:F,y2:Z})}return H.createElement(rt,xm({className:"recharts-errorBar",key:"bar-".concat(O.map(function(z){return"".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))},g),O.map(function(z){return H.createElement("line",xm({},z,{key:"line-".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))}))});return H.createElement(rt,{className:"recharts-errorBars"},w)}}])})(H.Component);xq(Md,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});xq(Md,"displayName","ErrorBar");function Uf(e){"@babel/helpers - typeof";return Uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uf(e)}function VI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VI(Object(n),!0).forEach(function(r){yae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yae(e,t,n){return t=vae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vae(e){var t=bae(e,"string");return Uf(t)=="symbol"?t:t+""}function bae(e,t){if(Uf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sq=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=gr(n,fs);if(!a)return null;var l=fs.defaultProps,c=l!==void 0?$a($a({},l),a.props):{},f;return a.props&&a.props.payload?f=a.props&&a.props.payload:o==="children"?f=(r||[]).reduce(function(d,h){var m=h.item,g=h.props,w=g.sectors||g.data||[];return d.concat(w.map(function(y){return{type:a.props.iconType||m.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):f=(r||[]).map(function(d){var h=d.item,m=h.type.defaultProps,g=m!==void 0?$a($a({},m),h.props):{},w=g.dataKey,y=g.name,x=g.legendType,S=g.hide;return{inactive:S,dataKey:w,type:c.iconType||x||"square",color:GE(h),value:y||w,payload:g}}),$a($a($a({},c),fs.getWithHeight(a,i)),{},{payload:f,item:a})};function Wf(e){"@babel/helpers - typeof";return Wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wf(e)}function KI(e){return _ae(e)||Sae(e)||wae(e)||xae()}function xae(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 328In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wae(e,t){if(e){if(typeof e=="string")return __(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return __(e,t)}}function Sae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _ae(e){if(Array.isArray(e))return __(e)}function __(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GI(Object(n),!0).forEach(function(r){Il(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Il(e,t,n){return t=Oae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oae(e){var t=Eae(e,"string");return Wf(t)=="symbol"?t:t+""}function Eae(e,t){if(Wf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nn(e,t,n){return ze(e)||ze(t)?n:on(t)?_r(e,t,n):Be(t)?t(e):n}function hf(e,t,n,r){var i=_oe(e,function(l){return nn(l,t)});if(n==="number"){var o=i.filter(function(l){return ge(l)||parseFloat(l)});return o.length?[Wg(o),Ug(o)]:[1/0,-1/0]}var a=r?i.filter(function(l){return!ze(l)}):i;return a.map(function(l){return on(l)||l instanceof Date?l:""})}var Pae=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,f=0;f<l;f++){var d=f>0?i[f-1].coordinate:i[l-1].coordinate,h=i[f].coordinate,m=f>=l-1?i[0].coordinate:i[f+1].coordinate,g=void 0;if(Bn(h-d)!==Bn(m-h)){var w=[];if(Bn(m-h)===Bn(c[1]-c[0])){g=m;var y=h+c[1]-c[0];w[0]=Math.min(y,(y+d)/2),w[1]=Math.max(y,(y+d)/2)}else{g=d;var x=m+c[1]-c[0];w[0]=Math.min(h,(x+h)/2),w[1]=Math.max(h,(x+h)/2)}var S=[Math.min(h,(g+h)/2),Math.max(h,(g+h)/2)];if(t>S[0]&&t<=S[1]||t>=w[0]&&t<=w[1]){a=i[f].index;break}}else{var P=Math.min(d,m),E=Math.max(d,m);if(t>(P+h)/2&&t<=(E+h)/2){a=i[f].index;break}}}else for(var C=0;C<l;C++)if(C===0&&t<=(r[C].coordinate+r[C+1].coordinate)/2||C>0&&C<l-1&&t>(r[C].coordinate+r[C-1].coordinate)/2&&t<=(r[C].coordinate+r[C+1].coordinate)/2||C===l-1&&t>(r[C].coordinate+r[C-1].coordinate)/2){a=r[C].index;break}return a},GE=function(t){var n,r=t,i=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ft(Ft({},t.type.defaultProps),t.props):t.props,a=o.stroke,l=o.fill,c;switch(i){case"Line":c=a;break;case"Area":case"Radar":c=a&&a!=="none"?a:l;break;default:c=l;break}return c},Aae=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var a={},l=Object.keys(o),c=0,f=l.length;c<f;c++)for(var d=o[l[c]].stackGroups,h=Object.keys(d),m=0,g=h.length;m<g;m++){var w=d[h[m]],y=w.items,x=w.cateAxisId,S=y.filter(function(j){return lo(j.type).indexOf("Bar")>=0});if(S&&S.length){var P=S[0].type.defaultProps,E=P!==void 0?Ft(Ft({},P),S[0].props):S[0].props,C=E.barSize,O=E[x];a[O]||(a[O]=[]);var A=ze(C)?n:C;a[O].push({item:S[0],stackList:S.slice(1),barSize:ze(A)?void 0:qn(A,r,0)})}}return a},kae=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,l=t.maxBarSize,c=a.length;if(c<1)return null;var f=qn(n,i,0,!0),d,h=[];if(a[0].barSize===+a[0].barSize){var m=!1,g=i/c,w=a.reduce(function(C,O){return C+O.barSize||0},0);w+=(c-1)*f,w>=i&&(w-=(c-1)*f,f=0),w>=i&&g>0&&(m=!0,g*=.9,w=c*g);var y=(i-w)/2>>0,x={offset:y-f,size:0};d=a.reduce(function(C,O){var A={item:O.item,position:{offset:x.offset+x.size+f,size:m?g:O.barSize}},j=[].concat(KI(C),[A]);return x=j[j.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(R){j.push({item:R,position:x})}),j},h)}else{var S=qn(r,i,0,!0);i-2*S-(c-1)*f<=0&&(f=0);var P=(i-2*S-(c-1)*f)/c;P>1&&(P>>=0);var E=l===+l?Math.min(P,l):P;d=a.reduce(function(C,O,A){var j=[].concat(KI(C),[{item:O.item,position:{offset:S+(P+f)*A+(P-E)/2,size:E}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(R){j.push({item:R,position:j[j.length-1].position})}),j},h)}return d},Cae=function(t,n,r,i){var o=r.children,a=r.width,l=r.margin,c=a-(l.left||0)-(l.right||0),f=Sq({children:o,legendWidth:c});if(f){var d=i||{},h=d.width,m=d.height,g=f.align,w=f.verticalAlign,y=f.layout;if((y==="vertical"||y==="horizontal"&&w==="middle")&&g!=="center"&&ge(t[g]))return Ft(Ft({},t),{},Il({},g,t[g]+(h||0)));if((y==="horizontal"||y==="vertical"&&g==="center")&&w!=="middle"&&ge(t[w]))return Ft(Ft({},t),{},Il({},w,t[w]+(m||0)))}return t},Tae=function(t,n,r){return ze(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},_q=function(t,n,r,i,o){var a=n.props.children,l=Or(a,Md).filter(function(f){return Tae(i,o,f.props.direction)});if(l&&l.length){var c=l.map(function(f){return f.props.dataKey});return t.reduce(function(f,d){var h=nn(d,r);if(ze(h))return f;var m=Array.isArray(h)?[Wg(h),Ug(h)]:[h,h],g=c.reduce(function(w,y){var x=nn(d,y,0),S=m[0]-Math.abs(Array.isArray(x)?x[0]:x),P=m[1]+Math.abs(Array.isArray(x)?x[1]:x);return[Math.min(S,w[0]),Math.max(P,w[1])]},[1/0,-1/0]);return[Math.min(g[0],f[0]),Math.max(g[1],f[1])]},[1/0,-1/0])}return null},jae=function(t,n,r,i,o){var a=n.map(function(l){return _q(t,l,r,o,i)}).filter(function(l){return!ze(l)});return a&&a.length?a.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]):null},Oq=function(t,n,r,i,o){var a=n.map(function(c){var f=c.props.dataKey;return r==="number"&&f&&_q(t,c,f,i)||hf(t,f,r,o)});if(r==="number")return a.reduce(function(c,f){return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]);var l={};return a.reduce(function(c,f){for(var d=0,h=f.length;d<h;d++)l[f[d]]||(l[f[d]]=!0,c.push(f[d]));return c},[])},Eq=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},Pq=function(t,n,r,i){if(i)return t.map(function(c){return c.coordinate});var o,a,l=t.map(function(c){return c.coordinate===n&&(o=!0),c.coordinate===r&&(a=!0),c.coordinate});return o||l.push(n),a||l.push(r),l},ao=function(t,n,r){if(!t)return null;var i=t.scale,o=t.duplicateDomain,a=t.type,l=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,f=(n||r)&&a==="category"&&i.bandwidth?i.bandwidth()/c:0;if(f=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?Bn(l[0]-l[1])*2*f:f,n&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(h){var m=o?o.indexOf(h):h;return{coordinate:i(m)+f,value:h,offset:f}});return d.filter(function(h){return!Pd(h.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(h,m){return{coordinate:i(h)+f,value:h,index:m,offset:f}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(h){return{coordinate:i(h)+f,value:h,offset:f}}):i.domain().map(function(h,m){return{coordinate:i(h)+f,value:o?o[h]:h,index:m,offset:f}})},c1=new WeakMap,pp=function(t,n){if(typeof n!="function")return t;c1.has(t)||c1.set(t,new WeakMap);var r=c1.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},Aq=function(t,n,r){var i=t.scale,o=t.type,a=t.layout,l=t.axisType;if(i==="auto")return a==="radial"&&l==="radiusAxis"?{scale:Df(),realScaleType:"band"}:a==="radial"&&l==="angleAxis"?{scale:mm(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:df(),realScaleType:"point"}:o==="category"?{scale:Df(),realScaleType:"band"}:{scale:mm(),realScaleType:"linear"};if(ws(i)){var c="scale".concat(kg(i));return{scale:(RI[c]||df)(),realScaleType:RI[c]?c:"point"}}return Be(i)?{scale:i}:{scale:df(),realScaleType:"point"}},YI=1e-4,kq=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),o=Math.min(i[0],i[1])-YI,a=Math.max(i[0],i[1])+YI,l=t(n[0]),c=t(n[r-1]);(l<o||l>a||c<o||c>a)&&t.domain([n[0],n[r-1]])}},Nae=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},Rae=function(t,n){if(!n||n.length!==2||!ge(n[0])||!ge(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),o=[t[0],t[1]];return(!ge(t[0])||t[0]<r)&&(o[0]=r),(!ge(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<r&&(o[1]=r),o},Mae=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,a=0,l=0;l<n;++l){var c=Pd(t[l][r][1])?t[l][r][0]:t[l][r][1];c>=0?(t[l][r][0]=o,t[l][r][1]=o+c,o=t[l][r][1]):(t[l][r][0]=a,t[l][r][1]=a+c,a=t[l][r][1])}},Iae=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,a=0;a<n;++a){var l=Pd(t[a][r][1])?t[a][r][0]:t[a][r][1];l>=0?(t[a][r][0]=o,t[a][r][1]=o+l,o=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},Dae={sign:Mae,expand:_Z,none:tu,silhouette:OZ,wiggle:EZ,positive:Iae},Lae=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),o=Dae[r],a=SZ().keys(i).value(function(l,c){return+nn(l,c,0)}).order(ZS).offset(o);return a(t)},$ae=function(t,n,r,i,o,a){if(!t)return null;var l=a?n.reverse():n,c={},f=l.reduce(function(h,m){var g,w=(g=m.type)!==null&&g!==void 0&&g.defaultProps?Ft(Ft({},m.type.defaultProps),m.props):m.props,y=w.stackId,x=w.hide;if(x)return h;var S=w[r],P=h[S]||{hasStack:!1,stackGroups:{}};if(on(y)){var E=P.stackGroups[y]||{numericAxisId:r,cateAxisId:i,items:[]};E.items.push(m),P.hasStack=!0,P.stackGroups[y]=E}else P.stackGroups[qu("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[m]};return Ft(Ft({},h),{},Il({},S,P))},c),d={};return Object.keys(f).reduce(function(h,m){var g=f[m];if(g.hasStack){var w={};g.stackGroups=Object.keys(g.stackGroups).reduce(function(y,x){var S=g.stackGroups[x];return Ft(Ft({},y),{},Il({},x,{numericAxisId:r,cateAxisId:i,items:S.items,stackedData:Lae(t,S.items,o)}))},w)}return Ft(Ft({},h),{},Il({},m,g))},d)},Cq=function(t,n){var r=n.realScaleType,i=n.type,o=n.tickCount,a=n.originalDomain,l=n.allowDecimals,c=r||n.scale;if(c!=="auto"&&c!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var f=t.domain();if(!f.length)return null;var d=Joe(f,o,l);return t.domain([Wg(d),Ug(d)]),{niceTicks:d}}if(o&&i==="number"){var h=t.domain(),m=Zoe(h,o,l);return{niceTicks:m}}return null};function XI(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ze(i[t.dataKey])){var l=Qp(n,"value",i[t.dataKey]);if(l)return l.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var c=nn(i,ze(a)?t.dataKey:a);return ze(c)?null:t.scale(c)}var QI=function(t){var n=t.axis,r=t.ticks,i=t.offset,o=t.bandSize,a=t.entry,l=t.index;if(n.type==="category")return r[l]?r[l].coordinate+i:null;var c=nn(a,n.dataKey,n.domain[l]);return ze(c)?null:n.scale(c)-o/2+i},Fae=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return i<=0&&o>=0?0:o<0?o:i}return r[0]},Bae=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ft(Ft({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(on(o)){var a=n[o];if(a){var l=a.items.indexOf(t);return l>=0?a.stackedData[l]:null}}return null},qae=function(t){return t.reduce(function(n,r){return[Wg(r.concat([n[0]]).filter(ge)),Ug(r.concat([n[1]]).filter(ge))]},[1/0,-1/0])},Tq=function(t,n,r){return Object.keys(t).reduce(function(i,o){var a=t[o],l=a.stackedData,c=l.reduce(function(f,d){var h=qae(d.slice(n,r+1));return[Math.min(f[0],h[0]),Math.max(f[1],h[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},JI=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ZI=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,O_=function(t,n,r){if(Be(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(ge(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(JI.test(t[0])){var o=+JI.exec(t[0])[1];i[0]=n[0]-o}else Be(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(ge(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(ZI.test(t[1])){var a=+ZI.exec(t[1])[1];i[1]=n[1]+a}else Be(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Sm=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var o=SE(n,function(h){return h.coordinate}),a=1/0,l=1,c=o.length;l<c;l++){var f=o[l],d=o[l-1];a=Math.min((f.coordinate||0)-(d.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0},e2=function(t,n,r){return!t||!t.length||Rd(t,_r(r,"type.defaultProps.domain"))?n:t},jq=function(t,n){var r=t.type.defaultProps?Ft(Ft({},t.type.defaultProps),t.props):t.props,i=r.dataKey,o=r.name,a=r.unit,l=r.formatter,c=r.tooltipType,f=r.chartType,d=r.hide;return Ft(Ft({},Ie(t,!1)),{},{dataKey:i,unit:a,formatter:l,name:o||i,color:GE(t),value:nn(n,i),type:c,payload:n,chartType:f,hide:d})};function Hf(e){"@babel/helpers - typeof";return Hf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hf(e)}function t2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ji(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t2(Object(n),!0).forEach(function(r){Nq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nq(e,t,n){return t=zae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zae(e){var t=Uae(e,"string");return Hf(t)=="symbol"?t:t+""}function Uae(e,t){if(Hf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wae(e,t){return Gae(e)||Kae(e,t)||Vae(e,t)||Hae()}function Hae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 329In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vae(e,t){if(e){if(typeof e=="string")return n2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return n2(e,t)}}function n2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){f=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return l}}function Gae(e){if(Array.isArray(e))return e}var _m=Math.PI/180,Yae=function(t){return t*180/Math.PI},Pt=function(t,n,r,i){return{x:t+Math.cos(-_m*i)*r,y:n+Math.sin(-_m*i)*r}},Rq=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},Xae=function(t,n,r,i,o){var a=t.width,l=t.height,c=t.startAngle,f=t.endAngle,d=qn(t.cx,a,a/2),h=qn(t.cy,l,l/2),m=Rq(a,l,r),g=qn(t.innerRadius,m,0),w=qn(t.outerRadius,m,m*.8),y=Object.keys(n);return y.reduce(function(x,S){var P=n[S],E=P.domain,C=P.reversed,O;if(ze(P.range))i==="angleAxis"?O=[c,f]:i==="radiusAxis"&&(O=[g,w]),C&&(O=[O[1],O[0]]);else{O=P.range;var A=O,j=Wae(A,2);c=j[0],f=j[1]}var R=Aq(P,o),L=R.realScaleType,q=R.scale;q.domain(E).range(O),kq(q);var D=Cq(q,Ji(Ji({},P),{},{realScaleType:L})),$=Ji(Ji(Ji({},P),D),{},{range:O,radius:w,realScaleType:L,scale:q,cx:d,cy:h,innerRadius:g,outerRadius:w,startAngle:c,endAngle:f});return Ji(Ji({},x),{},Nq({},S,$))},{})},Qae=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(i-a,2))},Jae=function(t,n){var r=t.x,i=t.y,o=n.cx,a=n.cy,l=Qae({x:r,y:i},{x:o,y:a});if(l<=0)return{radius:l};var c=(r-o)/l,f=Math.acos(c);return i>a&&(f=2*Math.PI-f),{radius:l,angle:Yae(f),angleInRadian:f}},Zae=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),a=Math.min(i,o);return{startAngle:n-a*360,endAngle:r-a*360}},ese=function(t,n){var r=n.startAngle,i=n.endAngle,o=Math.floor(r/360),a=Math.floor(i/360),l=Math.min(o,a);return t+l*360},r2=function(t,n){var r=t.x,i=t.y,o=Jae({x:r,y:i},n),a=o.radius,l=o.angle,c=n.innerRadius,f=n.outerRadius;if(a<c||a>f)return!1;if(a===0)return!0;var d=Zae(n),h=d.startAngle,m=d.endAngle,g=l,w;if(h<=m){for(;g>m;)g-=360;for(;g<h;)g+=360;w=g>=h&&g<=m}else{for(;g>h;)g-=360;for(;g<m;)g+=360;w=g>=m&&g<=h}return w?Ji(Ji({},n),{},{radius:a,angle:ese(g,n)}):null},Mq=function(t){return!T.isValidElement(t)&&!Be(t)&&typeof t!="boolean"?t.className:""};function Vf(e){"@babel/helpers - typeof";return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vf(e)}var tse=["offset"];function nse(e){return ase(e)||ose(e)||ise(e)||rse()}function rse(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 330In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ise(e,t){if(e){if(typeof e=="string")return E_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E_(e,t)}}function ose(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ase(e){if(Array.isArray(e))return E_(e)}function E_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sse(e,t){if(e==null)return{};var n=lse(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lse(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function i2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function en(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i2(Object(n),!0).forEach(function(r){use(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function use(e,t,n){return t=cse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cse(e){var t=fse(e,"string");return Vf(t)=="symbol"?t:t+""}function fse(e,t){if(Vf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kf(){return Kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kf.apply(this,arguments)}var dse=function(t){var n=t.value,r=t.formatter,i=ze(t.children)?n:t.children;return Be(r)?r(i):i},hse=function(t,n){var r=Bn(n-t),i=Math.min(Math.abs(n-t),360);return r*i},pse=function(t,n,r){var i=t.position,o=t.viewBox,a=t.offset,l=t.className,c=o,f=c.cx,d=c.cy,h=c.innerRadius,m=c.outerRadius,g=c.startAngle,w=c.endAngle,y=c.clockWise,x=(h+m)/2,S=hse(g,w),P=S>=0?1:-1,E,C;i==="insideStart"?(E=g+P*a,C=y):i==="insideEnd"?(E=w-P*a,C=!y):i==="end"&&(E=w+P*a,C=y),C=S<=0?C:!C;var O=Pt(f,d,x,E),A=Pt(f,d,x,E+(C?1:-1)*359),j="M".concat(O.x,",").concat(O.y,` 331 A`).concat(x,",").concat(x,",0,1,").concat(C?0:1,`, 332 `).concat(A.x,",").concat(A.y),R=ze(t.id)?qu("recharts-radial-line-"):t.id;return H.createElement("text",Kf({},r,{dominantBaseline:"central",className:We("recharts-radial-bar-label",l)}),H.createElement("defs",null,H.createElement("path",{id:R,d:j})),H.createElement("textPath",{xlinkHref:"#".concat(R)},n))},mse=function(t){var n=t.viewBox,r=t.offset,i=t.position,o=n,a=o.cx,l=o.cy,c=o.innerRadius,f=o.outerRadius,d=o.startAngle,h=o.endAngle,m=(d+h)/2;if(i==="outside"){var g=Pt(a,l,f+r,m),w=g.x,y=g.y;return{x:w,y,textAnchor:w>=a?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:a,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:a,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:a,y:l,textAnchor:"middle",verticalAnchor:"end"};var x=(c+f)/2,S=Pt(a,l,x,m),P=S.x,E=S.y;return{x:P,y:E,textAnchor:"middle",verticalAnchor:"middle"}},gse=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,o=t.position,a=n,l=a.x,c=a.y,f=a.width,d=a.height,h=d>=0?1:-1,m=h*i,g=h>0?"end":"start",w=h>0?"start":"end",y=f>=0?1:-1,x=y*i,S=y>0?"end":"start",P=y>0?"start":"end";if(o==="top"){var E={x:l+f/2,y:c-h*i,textAnchor:"middle",verticalAnchor:g};return en(en({},E),r?{height:Math.max(c-r.y,0),width:f}:{})}if(o==="bottom"){var C={x:l+f/2,y:c+d+m,textAnchor:"middle",verticalAnchor:w};return en(en({},C),r?{height:Math.max(r.y+r.height-(c+d),0),width:f}:{})}if(o==="left"){var O={x:l-x,y:c+d/2,textAnchor:S,verticalAnchor:"middle"};return en(en({},O),r?{width:Math.max(O.x-r.x,0),height:d}:{})}if(o==="right"){var A={x:l+f+x,y:c+d/2,textAnchor:P,verticalAnchor:"middle"};return en(en({},A),r?{width:Math.max(r.x+r.width-A.x,0),height:d}:{})}var j=r?{width:f,height:d}:{};return o==="insideLeft"?en({x:l+x,y:c+d/2,textAnchor:P,verticalAnchor:"middle"},j):o==="insideRight"?en({x:l+f-x,y:c+d/2,textAnchor:S,verticalAnchor:"middle"},j):o==="insideTop"?en({x:l+f/2,y:c+m,textAnchor:"middle",verticalAnchor:w},j):o==="insideBottom"?en({x:l+f/2,y:c+d-m,textAnchor:"middle",verticalAnchor:g},j):o==="insideTopLeft"?en({x:l+x,y:c+m,textAnchor:P,verticalAnchor:w},j):o==="insideTopRight"?en({x:l+f-x,y:c+m,textAnchor:S,verticalAnchor:w},j):o==="insideBottomLeft"?en({x:l+x,y:c+d-m,textAnchor:P,verticalAnchor:g},j):o==="insideBottomRight"?en({x:l+f-x,y:c+d-m,textAnchor:S,verticalAnchor:g},j):Bu(o)&&(ge(o.x)||Ga(o.x))&&(ge(o.y)||Ga(o.y))?en({x:l+qn(o.x,f),y:c+qn(o.y,d),textAnchor:"end",verticalAnchor:"end"},j):en({x:l+f/2,y:c+d/2,textAnchor:"middle",verticalAnchor:"middle"},j)},yse=function(t){return"cx"in t&&ge(t.cx)};function hn(e){var t=e.offset,n=t===void 0?5:t,r=sse(e,tse),i=en({offset:n},r),o=i.viewBox,a=i.position,l=i.value,c=i.children,f=i.content,d=i.className,h=d===void 0?"":d,m=i.textBreakAll;if(!o||ze(l)&&ze(c)&&!T.isValidElement(f)&&!Be(f))return null;if(T.isValidElement(f))return T.cloneElement(f,i);var g;if(Be(f)){if(g=T.createElement(f,i),T.isValidElement(g))return g}else g=dse(i);var w=yse(o),y=Ie(i,!0);if(w&&(a==="insideStart"||a==="insideEnd"||a==="end"))return pse(i,g,y);var x=w?mse(i):gse(i);return H.createElement(_s,Kf({className:We("recharts-label",h)},y,x,{breakAll:m}),g)}hn.displayName="Label";var Iq=function(t){var n=t.cx,r=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,l=t.r,c=t.radius,f=t.innerRadius,d=t.outerRadius,h=t.x,m=t.y,g=t.top,w=t.left,y=t.width,x=t.height,S=t.clockWise,P=t.labelViewBox;if(P)return P;if(ge(y)&&ge(x)){if(ge(h)&&ge(m))return{x:h,y:m,width:y,height:x};if(ge(g)&&ge(w))return{x:g,y:w,width:y,height:x}}return ge(h)&&ge(m)?{x:h,y:m,width:0,height:0}:ge(n)&&ge(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:a||i||0,innerRadius:f||0,outerRadius:d||c||l||0,clockWise:S}:t.viewBox?t.viewBox:{}},vse=function(t,n){return t?t===!0?H.createElement(hn,{key:"label-implicit",viewBox:n}):on(t)?H.createElement(hn,{key:"label-implicit",viewBox:n,value:t}):T.isValidElement(t)?t.type===hn?T.cloneElement(t,{key:"label-implicit",viewBox:n}):H.createElement(hn,{key:"label-implicit",content:t,viewBox:n}):Be(t)?H.createElement(hn,{key:"label-implicit",content:t,viewBox:n}):Bu(t)?H.createElement(hn,Kf({viewBox:n},t,{key:"label-implicit"})):null:null},bse=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,o=Iq(t),a=Or(i,hn).map(function(c,f){return T.cloneElement(c,{viewBox:n||o,key:"label-".concat(f)})});if(!r)return a;var l=vse(t.label,n||o);return[l].concat(nse(a))};hn.parseViewBox=Iq;hn.renderCallByParent=bse;var f1,o2;function xse(){if(o2)return f1;o2=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return f1=e,f1}var wse=xse();const Sse=tt(wse);function Gf(e){"@babel/helpers - typeof";return Gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gf(e)}var _se=["valueAccessor"],Ose=["data","dataKey","clockWise","id","textBreakAll"];function Ese(e){return Cse(e)||kse(e)||Ase(e)||Pse()}function Pse(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 333In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ase(e,t){if(e){if(typeof e=="string")return P_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P_(e,t)}}function kse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cse(e){if(Array.isArray(e))return P_(e)}function P_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Om(){return Om=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Om.apply(this,arguments)}function a2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function s2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a2(Object(n),!0).forEach(function(r){Tse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tse(e,t,n){return t=jse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jse(e){var t=Nse(e,"string");return Gf(t)=="symbol"?t:t+""}function Nse(e,t){if(Gf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function l2(e,t){if(e==null)return{};var n=Rse(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rse(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Mse=function(t){return Array.isArray(t.value)?Sse(t.value):t.value};function co(e){var t=e.valueAccessor,n=t===void 0?Mse:t,r=l2(e,_se),i=r.data,o=r.dataKey,a=r.clockWise,l=r.id,c=r.textBreakAll,f=l2(r,Ose);return!i||!i.length?null:H.createElement(rt,{className:"recharts-label-list"},i.map(function(d,h){var m=ze(o)?n(d,h):nn(d&&d.payload,o),g=ze(l)?{}:{id:"".concat(l,"-").concat(h)};return H.createElement(hn,Om({},Ie(d,!0),f,g,{parentViewBox:d.parentViewBox,value:m,textBreakAll:c,viewBox:hn.parseViewBox(ze(a)?d:s2(s2({},d),{},{clockWise:a})),key:"label-".concat(h),index:h}))}))}co.displayName="LabelList";function Ise(e,t){return e?e===!0?H.createElement(co,{key:"labelList-implicit",data:t}):H.isValidElement(e)||Be(e)?H.createElement(co,{key:"labelList-implicit",data:t,content:e}):Bu(e)?H.createElement(co,Om({data:t},e,{key:"labelList-implicit"})):null:null}function Dse(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Or(r,co).map(function(a,l){return T.cloneElement(a,{data:t,key:"labelList-".concat(l)})});if(!n)return i;var o=Ise(e.label,t);return[o].concat(Ese(i))}co.renderCallByParent=Dse;function Yf(e){"@babel/helpers - typeof";return Yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yf(e)}function A_(){return A_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A_.apply(this,arguments)}function u2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function c2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u2(Object(n),!0).forEach(function(r){Lse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lse(e,t,n){return t=$se(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $se(e){var t=Fse(e,"string");return Yf(t)=="symbol"?t:t+""}function Fse(e,t){if(Yf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bse=function(t,n){var r=Bn(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},mp=function(t){var n=t.cx,r=t.cy,i=t.radius,o=t.angle,a=t.sign,l=t.isExternal,c=t.cornerRadius,f=t.cornerIsExternal,d=c*(l?1:-1)+i,h=Math.asin(c/d)/_m,m=f?o:o+a*h,g=Pt(n,r,d,m),w=Pt(n,r,i,m),y=f?o-a*h:o,x=Pt(n,r,d*Math.cos(h*_m),y);return{center:g,circleTangency:w,lineTangency:x,theta:h}},Dq=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,l=t.endAngle,c=Bse(a,l),f=a+c,d=Pt(n,r,o,a),h=Pt(n,r,o,f),m="M ".concat(d.x,",").concat(d.y,` 334 A `).concat(o,",").concat(o,`,0, 335 `).concat(+(Math.abs(c)>180),",").concat(+(a>f),`, 336 `).concat(h.x,",").concat(h.y,` 337 `);if(i>0){var g=Pt(n,r,i,a),w=Pt(n,r,i,f);m+="L ".concat(w.x,",").concat(w.y,` 338 A `).concat(i,",").concat(i,`,0, 339 `).concat(+(Math.abs(c)>180),",").concat(+(a<=f),`, 340 `).concat(g.x,",").concat(g.y," Z")}else m+="L ".concat(n,",").concat(r," Z");return m},qse=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,l=t.forceCornerRadius,c=t.cornerIsExternal,f=t.startAngle,d=t.endAngle,h=Bn(d-f),m=mp({cx:n,cy:r,radius:o,angle:f,sign:h,cornerRadius:a,cornerIsExternal:c}),g=m.circleTangency,w=m.lineTangency,y=m.theta,x=mp({cx:n,cy:r,radius:o,angle:d,sign:-h,cornerRadius:a,cornerIsExternal:c}),S=x.circleTangency,P=x.lineTangency,E=x.theta,C=c?Math.abs(f-d):Math.abs(f-d)-y-E;if(C<0)return l?"M ".concat(w.x,",").concat(w.y,` 341 a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0 342 a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0 343 `):Dq({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:f,endAngle:d});var O="M ".concat(w.x,",").concat(w.y,` 344 A`).concat(a,",").concat(a,",0,0,").concat(+(h<0),",").concat(g.x,",").concat(g.y,` 345 A`).concat(o,",").concat(o,",0,").concat(+(C>180),",").concat(+(h<0),",").concat(S.x,",").concat(S.y,` 346 A`).concat(a,",").concat(a,",0,0,").concat(+(h<0),",").concat(P.x,",").concat(P.y,` 347 `);if(i>0){var A=mp({cx:n,cy:r,radius:i,angle:f,sign:h,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),j=A.circleTangency,R=A.lineTangency,L=A.theta,q=mp({cx:n,cy:r,radius:i,angle:d,sign:-h,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),D=q.circleTangency,$=q.lineTangency,B=q.theta,W=c?Math.abs(f-d):Math.abs(f-d)-L-B;if(W<0&&a===0)return"".concat(O,"L").concat(n,",").concat(r,"Z");O+="L".concat($.x,",").concat($.y,` 348 A`).concat(a,",").concat(a,",0,0,").concat(+(h<0),",").concat(D.x,",").concat(D.y,` 349 A`).concat(i,",").concat(i,",0,").concat(+(W>180),",").concat(+(h>0),",").concat(j.x,",").concat(j.y,` 350 A`).concat(a,",").concat(a,",0,0,").concat(+(h<0),",").concat(R.x,",").concat(R.y,"Z")}else O+="L".concat(n,",").concat(r,"Z");return O},zse={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Lq=function(t){var n=c2(c2({},zse),t),r=n.cx,i=n.cy,o=n.innerRadius,a=n.outerRadius,l=n.cornerRadius,c=n.forceCornerRadius,f=n.cornerIsExternal,d=n.startAngle,h=n.endAngle,m=n.className;if(a<o||d===h)return null;var g=We("recharts-sector",m),w=a-o,y=qn(l,w,0,!0),x;return y>0&&Math.abs(d-h)<360?x=qse({cx:r,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(y,w/2),forceCornerRadius:c,cornerIsExternal:f,startAngle:d,endAngle:h}):x=Dq({cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:d,endAngle:h}),H.createElement("path",A_({},Ie(n,!0),{className:g,d:x,role:"img"}))};function Xf(e){"@babel/helpers - typeof";return Xf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xf(e)}function k_(){return k_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k_.apply(this,arguments)}function f2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function d2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f2(Object(n),!0).forEach(function(r){Use(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Use(e,t,n){return t=Wse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wse(e){var t=Hse(e,"string");return Xf(t)=="symbol"?t:t+""}function Hse(e,t){if(Xf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var h2={curveBasisClosed:fZ,curveBasisOpen:dZ,curveBasis:cZ,curveBumpX:XJ,curveBumpY:QJ,curveLinearClosed:hZ,curveLinear:Tg,curveMonotoneX:pZ,curveMonotoneY:mZ,curveNatural:gZ,curveStep:yZ,curveStepAfter:bZ,curveStepBefore:vZ},gp=function(t){return t.x===+t.x&&t.y===+t.y},Wc=function(t){return t.x},Hc=function(t){return t.y},Vse=function(t,n){if(Be(t))return t;var r="curve".concat(kg(t));return(r==="curveMonotone"||r==="curveBump")&&n?h2["".concat(r).concat(n==="vertical"?"Y":"X")]:h2[r]||Tg},Kse=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,o=i===void 0?[]:i,a=t.baseLine,l=t.layout,c=t.connectNulls,f=c===void 0?!1:c,d=Vse(r,l),h=f?o.filter(function(y){return gp(y)}):o,m;if(Array.isArray(a)){var g=f?a.filter(function(y){return gp(y)}):a,w=h.map(function(y,x){return d2(d2({},y),{},{base:g[x]})});return l==="vertical"?m=sp().y(Hc).x1(Wc).x0(function(y){return y.base.x}):m=sp().x(Wc).y1(Hc).y0(function(y){return y.base.y}),m.defined(gp).curve(d),m(w)}return l==="vertical"&&ge(a)?m=sp().y(Hc).x1(Wc).x0(a):ge(a)?m=sp().x(Wc).y1(Hc).y0(a):m=I4().x(Wc).y(Hc),m.defined(gp).curve(d),m(h)},Em=function(t){var n=t.className,r=t.points,i=t.path,o=t.pathRef;if((!r||!r.length)&&!i)return null;var a=r&&r.length?Kse(t):i;return T.createElement("path",k_({},Ie(t,!1),Jp(t),{className:We("recharts-curve",n),d:a,ref:o}))},d1={exports:{}},h1,p2;function Gse(){if(p2)return h1;p2=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return h1=e,h1}var p1,m2;function Yse(){if(m2)return p1;m2=1;var e=Gse();function t(){}function n(){}return n.resetWarningCache=t,p1=function(){function r(a,l,c,f,d,h){if(h!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},p1}var g2;function Xse(){return g2||(g2=1,d1.exports=Yse()()),d1.exports}var Qse=Xse();const ft=tt(Qse);var Jse=Object.getOwnPropertyNames,Zse=Object.getOwnPropertySymbols,ele=Object.prototype.hasOwnProperty;function y2(e,t){return function(r,i,o){return e(r,i,o)&&t(r,i,o)}}function yp(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var o=i.cache,a=o.get(n),l=o.get(r);if(a&&l)return a===r&&l===n;o.set(n,r),o.set(r,n);var c=e(n,r,i);return o.delete(n),o.delete(r),c}}function v2(e){return Jse(e).concat(Zse(e))}var tle=Object.hasOwn||(function(e,t){return ele.call(e,t)});function Ls(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var nle="__v",rle="__o",ile="_owner",b2=Object.getOwnPropertyDescriptor,x2=Object.keys;function ole(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function ale(e,t){return Ls(e.getTime(),t.getTime())}function sle(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function lle(e,t){return e===t}function w2(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),o=e.entries(),a,l,c=0;(a=o.next())&&!a.done;){for(var f=t.entries(),d=!1,h=0;(l=f.next())&&!l.done;){if(i[h]){h++;continue}var m=a.value,g=l.value;if(n.equals(m[0],g[0],c,h,e,t,n)&&n.equals(m[1],g[1],m[0],g[0],e,t,n)){d=i[h]=!0;break}h++}if(!d)return!1;c++}return!0}var ule=Ls;function cle(e,t,n){var r=x2(e),i=r.length;if(x2(t).length!==i)return!1;for(;i-- >0;)if(!$q(e,t,n,r[i]))return!1;return!0}function Vc(e,t,n){var r=v2(e),i=r.length;if(v2(t).length!==i)return!1;for(var o,a,l;i-- >0;)if(o=r[i],!$q(e,t,n,o)||(a=b2(e,o),l=b2(t,o),(a||l)&&(!a||!l||a.configurable!==l.configurable||a.enumerable!==l.enumerable||a.writable!==l.writable)))return!1;return!0}function fle(e,t){return Ls(e.valueOf(),t.valueOf())}function dle(e,t){return e.source===t.source&&e.flags===t.flags}function S2(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),o=e.values(),a,l;(a=o.next())&&!a.done;){for(var c=t.values(),f=!1,d=0;(l=c.next())&&!l.done;){if(!i[d]&&n.equals(a.value,l.value,a.value,l.value,e,t,n)){f=i[d]=!0;break}d++}if(!f)return!1}return!0}function hle(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function ple(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function $q(e,t,n,r){return(r===ile||r===rle||r===nle)&&(e.$$typeof||t.$$typeof)?!0:tle(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var mle="[object Arguments]",gle="[object Boolean]",yle="[object Date]",vle="[object Error]",ble="[object Map]",xle="[object Number]",wle="[object Object]",Sle="[object RegExp]",_le="[object Set]",Ole="[object String]",Ele="[object URL]",Ple=Array.isArray,_2=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,O2=Object.assign,Ale=Object.prototype.toString.call.bind(Object.prototype.toString);function kle(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,i=e.areFunctionsEqual,o=e.areMapsEqual,a=e.areNumbersEqual,l=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,f=e.areRegExpsEqual,d=e.areSetsEqual,h=e.areTypedArraysEqual,m=e.areUrlsEqual;return function(w,y,x){if(w===y)return!0;
350if(w==null||y==null)return!1;var S=typeof w;if(S!==typeof y)return!1;if(S!=="object")return S==="number"?a(w,y,x):S==="function"?i(w,y,x):!1;var P=w.constructor;if(P!==y.constructor)return!1;if(P===Object)return l(w,y,x);if(Ple(w))return t(w,y,x);if(_2!=null&&_2(w))return h(w,y,x);if(P===Date)return n(w,y,x);if(P===RegExp)return f(w,y,x);if(P===Map)return o(w,y,x);if(P===Set)return d(w,y,x);var E=Ale(w);return E===yle?n(w,y,x):E===Sle?f(w,y,x):E===ble?o(w,y,x):E===_le?d(w,y,x):E===wle?typeof w.then!="function"&&typeof y.then!="function"&&l(w,y,x):E===Ele?m(w,y,x):E===vle?r(w,y,x):E===mle?l(w,y,x):E===gle||E===xle||E===Ole?c(w,y,x):!1}}function Cle(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Vc:ole,areDatesEqual:ale,areErrorsEqual:sle,areFunctionsEqual:lle,areMapsEqual:r?y2(w2,Vc):w2,areNumbersEqual:ule,areObjectsEqual:r?Vc:cle,arePrimitiveWrappersEqual:fle,areRegExpsEqual:dle,areSetsEqual:r?y2(S2,Vc):S2,areTypedArraysEqual:r?Vc:hle,areUrlsEqual:ple};if(n&&(i=O2({},i,n(i))),t){var o=yp(i.areArraysEqual),a=yp(i.areMapsEqual),l=yp(i.areObjectsEqual),c=yp(i.areSetsEqual);i=O2({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:l,areSetsEqual:c})}return i}function Tle(e){return function(t,n,r,i,o,a,l){return e(t,n,l)}}function jle(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,o=e.strict;if(r)return function(c,f){var d=r(),h=d.cache,m=h===void 0?t?new WeakMap:void 0:h,g=d.meta;return n(c,f,{cache:m,equals:i,meta:g,strict:o})};if(t)return function(c,f){return n(c,f,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(c,f){return n(c,f,a)}}var Nle=ba();ba({strict:!0});ba({circular:!0});ba({circular:!0,strict:!0});ba({createInternalComparator:function(){return Ls}});ba({strict:!0,createInternalComparator:function(){return Ls}});ba({circular:!0,createInternalComparator:function(){return Ls}});ba({circular:!0,createInternalComparator:function(){return Ls},strict:!0});function ba(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,o=e.strict,a=o===void 0?!1:o,l=Cle(e),c=kle(l),f=r?r(c):Tle(c);return jle({circular:n,comparator:c,createState:i,equals:f,strict:a})}function Rle(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function E2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(o){n<0&&(n=o),o-n>t?(e(o),n=-1):Rle(i)};requestAnimationFrame(r)}function C_(e){"@babel/helpers - typeof";return C_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C_(e)}function Mle(e){return $le(e)||Lle(e)||Dle(e)||Ile()}function Ile(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 351In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dle(e,t){if(e){if(typeof e=="string")return P2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P2(e,t)}}function P2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Lle(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $le(e){if(Array.isArray(e))return e}function Fle(){var e={},t=function(){return null},n=!1,r=function i(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var a=o,l=Mle(a),c=l[0],f=l.slice(1);if(typeof c=="number"){E2(i.bind(null,f),c);return}i(c),E2(i.bind(null,f));return}C_(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function Qf(e){"@babel/helpers - typeof";return Qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qf(e)}function A2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function k2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
vendor: 58,791 bytes, lines 351-369
351t%2?A2(Object(n),!0).forEach(function(r){Fq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fq(e,t,n){return t=Ble(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ble(e){var t=qle(e,"string");return Qf(t)==="symbol"?t:String(t)}function qle(e,t){if(Qf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zle=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},Ule=function(t){return t},Wle=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},pf=function(t,n){return Object.keys(n).reduce(function(r,i){return k2(k2({},r),{},Fq({},i,t(i,n[i])))},{})},C2=function(t,n,r){return t.map(function(i){return"".concat(Wle(i)," ").concat(n,"ms ").concat(r)}).join(",")};function Hle(e,t){return Gle(e)||Kle(e,t)||Bq(e,t)||Vle()}function Vle(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 352In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){f=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return l}}function Gle(e){if(Array.isArray(e))return e}function Yle(e){return Jle(e)||Qle(e)||Bq(e)||Xle()}function Xle(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 353In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bq(e,t){if(e){if(typeof e=="string")return T_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T_(e,t)}}function Qle(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jle(e){if(Array.isArray(e))return T_(e)}function T_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Pm=1e-4,qq=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},zq=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},T2=function(t,n){return function(r){var i=qq(t,n);return zq(i,r)}},Zle=function(t,n){return function(r){var i=qq(t,n),o=[].concat(Yle(i.map(function(a,l){return a*l}).slice(1)),[0]);return zq(o,r)}},j2=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1],a=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,o=0,a=1,l=1;break;case"ease":i=.25,o=.1,a=.25,l=1;break;case"ease-in":i=.42,o=0,a=1,l=1;break;case"ease-out":i=.42,o=0,a=.58,l=1;break;case"ease-in-out":i=0,o=0,a=.58,l=1;break;default:{var c=n[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var f=c[1].split(")")[0].split(",").map(function(x){return parseFloat(x)}),d=Hle(f,4);i=d[0],o=d[1],a=d[2],l=d[3]}}}var h=T2(i,a),m=T2(o,l),g=Zle(i,a),w=function(S){return S>1?1:S<0?0:S},y=function(S){for(var P=S>1?1:S,E=P,C=0;C<8;++C){var O=h(E)-P,A=g(E);if(Math.abs(O-P)<Pm||A<Pm)return m(E);E=w(E-O/A)}return m(E)};return y.isStepper=!1,y},eue=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,o=i===void 0?8:i,a=t.dt,l=a===void 0?17:a,c=function(d,h,m){var g=-(d-h)*r,w=m*o,y=m+(g-w)*l/1e3,x=m*l/1e3+d;return Math.abs(x-h)<Pm&&Math.abs(y)<Pm?[h,0]:[x,y]};return c.isStepper=!0,c.dt=l,c},tue=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return j2(i);case"spring":return eue();default:if(i.split("(")[0]==="cubic-bezier")return j2(i)}return typeof i=="function"?i:null};function Jf(e){"@babel/helpers - typeof";return Jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jf(e)}function N2(e){return iue(e)||rue(e)||Uq(e)||nue()}function nue(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 354In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iue(e){if(Array.isArray(e))return N_(e)}function R2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R2(Object(n),!0).forEach(function(r){j_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function j_(e,t,n){return t=oue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oue(e){var t=aue(e,"string");return Jf(t)==="symbol"?t:String(t)}function aue(e,t){if(Jf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sue(e,t){return cue(e)||uue(e,t)||Uq(e,t)||lue()}function lue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 355In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uq(e,t){if(e){if(typeof e=="string")return N_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N_(e,t)}}function N_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){f=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return l}}function cue(e){if(Array.isArray(e))return e}var Am=function(t,n,r){return t+(n-t)*r},R_=function(t){var n=t.from,r=t.to;return n!==r},fue=function e(t,n,r){var i=pf(function(o,a){if(R_(a)){var l=t(a.from,a.to,a.velocity),c=sue(l,2),f=c[0],d=c[1];return xn(xn({},a),{},{from:f,velocity:d})}return a},n);return r<1?pf(function(o,a){return R_(a)?xn(xn({},a),{},{velocity:Am(a.velocity,i[o].velocity,r),from:Am(a.from,i[o].from,r)}):a},n):e(t,i,r-1)};const due=(function(e,t,n,r,i){var o=zle(e,t),a=o.reduce(function(x,S){return xn(xn({},x),{},j_({},S,[e[S],t[S]]))},{}),l=o.reduce(function(x,S){return xn(xn({},x),{},j_({},S,{from:e[S],velocity:0,to:t[S]}))},{}),c=-1,f,d,h=function(){return null},m=function(){return pf(function(S,P){return P.from},l)},g=function(){return!Object.values(l).filter(R_).length},w=function(S){f||(f=S);var P=S-f,E=P/n.dt;l=fue(n,l,E),i(xn(xn(xn({},e),t),m())),f=S,g()||(c=requestAnimationFrame(h))},y=function(S){d||(d=S);var P=(S-d)/r,E=pf(function(O,A){return Am.apply(void 0,N2(A).concat([n(P)]))},a);if(i(xn(xn(xn({},e),t),E)),P<1)c=requestAnimationFrame(h);else{var C=pf(function(O,A){return Am.apply(void 0,N2(A).concat([n(1)]))},a);i(xn(xn(xn({},e),t),C))}};return h=n.isStepper?w:y,function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(c)}}});function cu(e){"@babel/helpers - typeof";return cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cu(e)}var hue=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function pue(e,t){if(e==null)return{};var n=mue(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mue(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function m1(e){return bue(e)||vue(e)||yue(e)||gue()}function gue(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 356In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yue(e,t){if(e){if(typeof e=="string")return M_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M_(e,t)}}function vue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bue(e){if(Array.isArray(e))return M_(e)}function M_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M2(Object(n),!0).forEach(function(r){lf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lf(e,t,n){return t=Wq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wq(r.key),r)}}function Sue(e,t,n){return t&&wue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wq(e){var t=_ue(e,"string");return cu(t)==="symbol"?t:String(t)}function _ue(e,t){if(cu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I_(e,t)}function I_(e,t){return I_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},I_(e,t)}function Eue(e){var t=Pue();return function(){var r=km(e),i;if(t){var o=km(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return D_(this,i)}}function D_(e,t){if(t&&(cu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L_(e)}function L_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pue(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function km(e){return km=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},km(e)}var Mi=(function(e){Oue(n,e);var t=Eue(n);function n(r,i){var o;xue(this,n),o=t.call(this,r,i);var a=o.props,l=a.isActive,c=a.attributeName,f=a.from,d=a.to,h=a.steps,m=a.children,g=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(L_(o)),o.changeStyle=o.changeStyle.bind(L_(o)),!l||g<=0)return o.state={style:{}},typeof m=="function"&&(o.state={style:d}),D_(o);if(h&&h.length)o.state={style:h[0].style};else if(f){if(typeof m=="function")return o.state={style:f},D_(o);o.state={style:c?lf({},c,f):f}}else o.state={style:{}};return o}return Sue(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,a=i.canBegin;this.mounted=!0,!(!o||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isActive,l=o.canBegin,c=o.attributeName,f=o.shouldReAnimate,d=o.to,h=o.from,m=this.state.style;if(l){if(!a){var g={style:c?lf({},c,d):d};this.state&&m&&(c&&m[c]!==d||!c&&m!==d)&&this.setState(g);return}if(!(Nle(i.to,d)&&i.canBegin&&i.isActive)){var w=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=w||f?h:i.to;if(this.state&&m){var x={style:c?lf({},c,y):y};(c&&m[c]!==y||!c&&m!==y)&&this.setState(x)}this.runAnimation(Jr(Jr({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,a=i.from,l=i.to,c=i.duration,f=i.easing,d=i.begin,h=i.onAnimationEnd,m=i.onAnimationStart,g=due(a,l,tue(f),c,this.changeStyle),w=function(){o.stopJSAnimation=g()};this.manager.start([m,d,w,c,h])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,l=i.begin,c=i.onAnimationStart,f=a[0],d=f.style,h=f.duration,m=h===void 0?0:h,g=function(y,x,S){if(S===0)return y;var P=x.duration,E=x.easing,C=E===void 0?"ease":E,O=x.style,A=x.properties,j=x.onAnimationEnd,R=S>0?a[S-1]:x,L=A||Object.keys(O);if(typeof C=="function"||C==="spring")return[].concat(m1(y),[o.runJSAnimation.bind(o,{from:R.style,to:O,duration:P,easing:C}),P]);var q=C2(L,P,C),D=Jr(Jr(Jr({},R.style),O),{},{transition:q});return[].concat(m1(y),[D,P,j]).filter(Ule)};return this.manager.start([c].concat(m1(a.reduce(g,[d,Math.max(m,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Fle());var o=i.begin,a=i.duration,l=i.attributeName,c=i.to,f=i.easing,d=i.onAnimationStart,h=i.onAnimationEnd,m=i.steps,g=i.children,w=this.manager;if(this.unSubscribe=w.subscribe(this.handleStyleChange),typeof f=="function"||typeof g=="function"||f==="spring"){this.runJSAnimation(i);return}if(m.length>1){this.runStepAnimation(i);return}var y=l?lf({},l,c):c,x=C2(Object.keys(y),a,f);w.start([d,o,Jr(Jr({},y),{},{transition:x}),a,h])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var a=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=pue(i,hue),f=T.Children.count(o),d=this.state.style;if(typeof o=="function")return o(d);if(!l||f===0||a<=0)return o;var h=function(g){var w=g.props,y=w.style,x=y===void 0?{}:y,S=w.className,P=T.cloneElement(g,Jr(Jr({},c),{},{style:Jr(Jr({},x),d),className:S}));return P};return f===1?h(T.Children.only(o)):H.createElement("div",null,T.Children.map(o,function(m){return h(m)}))}}]),n})(T.PureComponent);Mi.displayName="Animate";Mi.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Mi.propTypes={from:ft.oneOfType([ft.object,ft.string]),to:ft.oneOfType([ft.object,ft.string]),attributeName:ft.string,duration:ft.number,begin:ft.number,easing:ft.oneOfType([ft.string,ft.func]),steps:ft.arrayOf(ft.shape({duration:ft.number.isRequired,style:ft.object.isRequired,easing:ft.oneOfType([ft.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ft.func]),properties:ft.arrayOf("string"),onAnimationEnd:ft.func})),children:ft.oneOfType([ft.node,ft.func]),isActive:ft.bool,canBegin:ft.bool,onAnimationEnd:ft.func,shouldReAnimate:ft.bool,onAnimationStart:ft.func,onAnimationReStart:ft.func};function Zf(e){"@babel/helpers - typeof";return Zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zf(e)}function Cm(){return Cm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cm.apply(this,arguments)}function Aue(e,t){return jue(e)||Tue(e,t)||Cue(e,t)||kue()}function kue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 357In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cue(e,t){if(e){if(typeof e=="string")return I2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I2(e,t)}}function I2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){f=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return l}}function jue(e){if(Array.isArray(e))return e}function D2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function L2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D2(Object(n),!0).forEach(function(r){Nue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nue(e,t,n){return t=Rue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rue(e){var t=Mue(e,"string");return Zf(t)=="symbol"?t:t+""}function Mue(e,t){if(Zf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $2=function(t,n,r,i,o){var a=Math.min(Math.abs(r)/2,Math.abs(i)/2),l=i>=0?1:-1,c=r>=0?1:-1,f=i>=0&&r>=0||i<0&&r<0?1:0,d;if(a>0&&o instanceof Array){for(var h=[0,0,0,0],m=0,g=4;m<g;m++)h[m]=o[m]>a?a:o[m];d="M".concat(t,",").concat(n+l*h[0]),h[0]>0&&(d+="A ".concat(h[0],",").concat(h[0],",0,0,").concat(f,",").concat(t+c*h[0],",").concat(n)),d+="L ".concat(t+r-c*h[1],",").concat(n),h[1]>0&&(d+="A ".concat(h[1],",").concat(h[1],",0,0,").concat(f,`, 358 `).concat(t+r,",").concat(n+l*h[1])),d+="L ".concat(t+r,",").concat(n+i-l*h[2]),h[2]>0&&(d+="A ".concat(h[2],",").concat(h[2],",0,0,").concat(f,`, 359 `).concat(t+r-c*h[2],",").concat(n+i)),d+="L ".concat(t+c*h[3],",").concat(n+i),h[3]>0&&(d+="A ".concat(h[3],",").concat(h[3],",0,0,").concat(f,`, 360 `).concat(t,",").concat(n+i-l*h[3])),d+="Z"}else if(a>0&&o===+o&&o>0){var w=Math.min(a,o);d="M ".concat(t,",").concat(n+l*w,` 361 A `).concat(w,",").concat(w,",0,0,").concat(f,",").concat(t+c*w,",").concat(n,` 362 L `).concat(t+r-c*w,",").concat(n,` 363 A `).concat(w,",").concat(w,",0,0,").concat(f,",").concat(t+r,",").concat(n+l*w,` 364 L `).concat(t+r,",").concat(n+i-l*w,` 365 A `).concat(w,",").concat(w,",0,0,").concat(f,",").concat(t+r-c*w,",").concat(n+i,` 366 L `).concat(t+c*w,",").concat(n+i,` 367 A `).concat(w,",").concat(w,",0,0,").concat(f,",").concat(t,",").concat(n+i-l*w," Z")}else d="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return d},Iue=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,o=n.x,a=n.y,l=n.width,c=n.height;if(Math.abs(l)>0&&Math.abs(c)>0){var f=Math.min(o,o+l),d=Math.max(o,o+l),h=Math.min(a,a+c),m=Math.max(a,a+c);return r>=f&&r<=d&&i>=h&&i<=m}return!1},Due={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},YE=function(t){var n=L2(L2({},Due),t),r=T.useRef(),i=T.useState(-1),o=Aue(i,2),a=o[0],l=o[1];T.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var C=r.current.getTotalLength();C&&l(C)}catch{}},[]);var c=n.x,f=n.y,d=n.width,h=n.height,m=n.radius,g=n.className,w=n.animationEasing,y=n.animationDuration,x=n.animationBegin,S=n.isAnimationActive,P=n.isUpdateAnimationActive;if(c!==+c||f!==+f||d!==+d||h!==+h||d===0||h===0)return null;var E=We("recharts-rectangle",g);return P?H.createElement(Mi,{canBegin:a>0,from:{width:d,height:h,x:c,y:f},to:{width:d,height:h,x:c,y:f},duration:y,animationEasing:w,isActive:P},function(C){var O=C.width,A=C.height,j=C.x,R=C.y;return H.createElement(Mi,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:y,isActive:S,easing:w},H.createElement("path",Cm({},Ie(n,!0),{className:E,d:$2(j,R,O,A,m),ref:r})))}):H.createElement("path",Cm({},Ie(n,!0),{className:E,d:$2(c,f,d,h,m)}))},Lue=["points","className","baseLinePoints","connectNulls"];function Sl(){return Sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sl.apply(this,arguments)}function $ue(e,t){if(e==null)return{};var n=Fue(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function F2(e){return Uue(e)||zue(e)||que(e)||Bue()}function Bue(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 368In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function que(e,t){if(e){if(typeof e=="string")return $_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $_(e,t)}}function zue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uue(e){if(Array.isArray(e))return $_(e)}function $_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var B2=function(t){return t&&t.x===+t.x&&t.y===+t.y},Wue=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){B2(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),B2(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},mf=function(t,n){var r=Wue(t);n&&(r=[r.reduce(function(o,a){return[].concat(F2(o),F2(a))},[])]);var i=r.map(function(o){return o.reduce(function(a,l,c){return"".concat(a).concat(c===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},Hue=function(t,n,r){var i=mf(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(mf(n.reverse(),r).slice(1))},Vue=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,o=t.connectNulls,a=$ue(t,Lue);if(!n||!n.length)return null;var l=We("recharts-polygon",r);if(i&&i.length){var c=a.stroke&&a.stroke!=="none",f=Hue(n,i,o);return H.createElement("g",{className:l},H.createElement("path",Sl({},Ie(a,!0),{fill:f.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:f})),c?H.createElement("path",Sl({},Ie(a,!0),{fill:"none",d:mf(n,o)})):null,c?H.createElement("path",Sl({},Ie(a,!0),{fill:"none",d:mf(i,o)})):null)}var d=mf(n,o);return H.createElement("path",Sl({},Ie(a,!0),{fill:d.slice(-1)==="Z"?a.fill:"none",className:l,d}))};function F_(){return F_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F_.apply(this,arguments)}var Kg=function(t){var n=t.cx,r=t.cy,i=t.r,o=t.className,a=We("recharts-dot",o);return n===+n&&r===+r&&i===+i?T.createElement("circle",F_({},Ie(t,!1),Jp(t),{className:a,cx:n,cy:r,r:i})):null};function ed(e){"@babel/helpers - typeof";return ed=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ed(e)}var Kue=["x","y","top","left","width","height","className"];function B_(){return B_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B_.apply(this,arguments)}function q2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q2(Object(n),!0).forEach(function(r){Yue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yue(e,t,n){return t=Xue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xue(e){var t=Que(e,"string");return ed(t)=="symbol"?t:t+""}function Que(e,t){if(ed(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ed(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jue(e,t){if(e==null)return{};var n=Zue(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var ece=function(t,n,r,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(n,"h").concat(r)},tce=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.top,l=a===void 0?0:a,c=t.left,f=c===void 0?0:c,d=t.width,h=d===void 0?0:d,m=t.height,g=m===void 0?0:m,w=t.className,y=Jue(t,Kue),x=Gue({x:r,y:o,top:l,left:f,width:h,height:g},y);return!ge(r)||!ge(o)||!ge(h)||!ge(g)||!ge(l)||!ge(f)?null:H.createElement("path",B_({},Ie(x,!0),{className:We("recharts-cross",w),d:ece(r,o,h,g,l,f)}))},g1,z2;function nce(){if(z2)return g1;z2=1;var e=zg(),t=oq(),n=$i();function r(i,o){return i&&i.length?e(i,n(o,2),t):void 0}return g1=r,g1}var rce=nce();const ice=tt(rce);var y1,U2;function oce(){if(U2)return y1;U2=1;var e=zg(),t=$i(),n=aq();function r(i,o){return i&&i.length?e(i,t(o,2),n):void 0}return y1=r,y1}var ace=oce();const sce=tt(ace);var lce=["cx","cy","angle","ticks","axisLine"],uce=["ticks","tick","angle","tickFormatter","stroke"];function fu(e){"@babel/helpers - typeof";return fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(e)}function gf(){return gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gf.apply(this,arguments)}function W2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W2(Object(n),!0).forEach(function(r){Gg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function H2(e,t){if(e==null)return{};var n=cce(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cce(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function fce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vq(r.key),r)}}function dce(e,t,n){return t&&V2(e.prototype,t),n&&V2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hce(e,t,n){return t=Tm(t),pce(e,Hq()?Reflect.construct(t,n||[],Tm(e).constructor):t.apply(e,n))}function pce(e,t){if(t&&(fu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mce(e)}function mce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hq=function(){return!!e})()}function Tm(e){return Tm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tm(e)}function gce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q_(e,t)}function q_(e,t){return q_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},q_(e,t)}function Gg(e,t,n){return t=Vq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vq(e){var t=yce(e,"string");return fu(t)=="symbol"?t:t+""}function yce(e,t){if(fu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yg=(function(e){function t(){return fce(this,t),hce(this,t,arguments)}return gce(t,e),dce(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,o=this.props,a=o.angle,l=o.cx,c=o.cy;return Pt(l,c,i,a)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,l=r.ticks,c=ice(l,function(d){return d.coordinate||0}),f=sce(l,function(d){return d.coordinate||0});return{cx:i,cy:o,startAngle:a,endAngle:a,innerRadius:f.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,l=r.ticks,c=r.axisLine,f=H2(r,lce),d=l.reduce(function(w,y){return[Math.min(w[0],y.coordinate),Math.max(w[1],y.coordinate)]},[1/0,-1/0]),h=Pt(i,o,d[0],a),m=Pt(i,o,d[1],a),g=Fa(Fa(Fa({},Ie(f,!1)),{},{fill:"none"},Ie(c,!1)),{},{x1:h.x,y1:h.y,x2:m.x,y2:m.y});return H.createElement("line",gf({className:"recharts-polar-radius-axis-line"},g))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,l=i.angle,c=i.tickFormatter,f=i.stroke,d=H2(i,uce),h=this.getTickTextAnchor(),m=Ie(d,!1),g=Ie(a,!1),w=o.map(function(y,x){var S=r.getTickValueCoord(y),P=Fa(Fa(Fa(Fa({textAnchor:h,transform:"rotate(".concat(90-l,", ").concat(S.x,", ").concat(S.y,")")},m),{},{stroke:"none",fill:f},g),{},{index:x},S),{},{payload:y});return H.createElement(rt,gf({className:We("recharts-polar-radius-axis-tick",Mq(a)),key:"tick-".concat(y.coordinate)},Ss(r.props,y,x)),t.renderTickItem(a,P,c?c(y.value,x):y.value))});return H.createElement(rt,{className:"recharts-polar-radius-axis-ticks"},w)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.axisLine,a=r.tick;return!i||!i.length?null:H.createElement(rt,{className:We("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),a&&this.renderTicks(),hn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return H.isValidElement(r)?a=H.cloneElement(r,i):Be(r)?a=r(i):a=H.createElement(_s,gf({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}])})(T.PureComponent);Gg(Yg,"displayName","PolarRadiusAxis");Gg(Yg,"axisType","radiusAxis");Gg(Yg,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function du(e){"@babel/helpers - typeof";return du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},du(e)}function Wa(){return Wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wa.apply(this,arguments)}function K2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ba(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K2(Object(n),!0).forEach(function(r){Xg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gq(r.key),r)}}function bce(e,t,n){return t&&G2(e.prototype,t),n&&G2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xce(e,t,n){return t=jm(t),wce(e,Kq()?Reflect.construct(t,n||[],jm(e).constructor):t.apply(e,n))}function wce(e,t){if(t&&(du(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sce(e)}function Sce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kq=function(){return!!e})()}function jm(e){return jm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jm(e)}function _ce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&z_(e,t)}function z_(e,t){return z_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},z_(e,t)}function Xg(e,t,n){return t=Gq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gq(e){var t=Oce(e,"string");return du(t)=="symbol"?t:t+""}function Oce(e,t){if(du(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(du(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ece=Math.PI/180,Y2=1e-5,Qg=(function(e){function t(){return vce(this,t),xce(this,t,arguments)}return _ce(t,e),bce(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.cx,a=i.cy,l=i.radius,c=i.orientation,f=i.tickSize,d=f||8,h=Pt(o,a,l,r.coordinate),m=Pt(o,a,l+(c==="inner"?-1:1)*d,r.coordinate);return{x1:h.x,y1:h.y,x2:m.x,y2:m.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,o=Math.cos(-r.coordinate*Ece),a;return o>Y2?a=i==="outer"?"start":"end":o<-Y2?a=i==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.radius,l=r.axisLine,c=r.axisLineType,f=Ba(Ba({},Ie(this.props,!1)),{},{fill:"none"},Ie(l,!1));if(c==="circle")return H.createElement(Kg,Wa({className:"recharts-polar-angle-axis-line"},f,{cx:i,cy:o,r:a}));var d=this.props.ticks,h=d.map(function(m){return Pt(i,o,a,m.coordinate)});return H.createElement(Vue,Wa({className:"recharts-polar-angle-axis-line"},f,{points:h}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,l=i.tickLine,c=i.tickFormatter,f=i.stroke,d=Ie(this.props,!1),h=Ie(a,!1),m=Ba(Ba({},d),{},{fill:"none"},Ie(l,!1)),g=o.map(function(w,y){var x=r.getTickLineCoord(w),S=r.getTickTextAnchor(w),P=Ba(Ba(Ba({textAnchor:S},d),{},{stroke:"none",fill:f},h),{},{index:y,payload:w,x:x.x2,y:x.y2});return H.createElement(rt,Wa({className:We("recharts-polar-angle-axis-tick",Mq(a)),key:"tick-".concat(w.coordinate)},Ss(r.props,w,y)),l&&H.createElement("line",Wa({className:"recharts-polar-angle-axis-tick-line"},m,x)),a&&t.renderTickItem(a,P,c?c(w.value,y):w.value))});return H.createElement(rt,{className:"recharts-polar-angle-axis-ticks"},g)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.radius,a=r.axisLine;return o<=0||!i||!i.length?null:H.createElement(rt,{className:We("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,o){var a;return H.isValidElement(r)?a=H.cloneElement(r,i):Be(r)?a=r(i):a=H.createElement(_s,Wa({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])})(T.PureComponent);Xg(Qg,"displayName","PolarAngleAxis");Xg(Qg,"axisType","angleAxis");Xg(Qg,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var v1,X2;function Pce(){if(X2)return v1;X2=1;var e=i3(),t=e(Object.getPrototypeOf,Object);return v1=t,v1}var b1,Q2;function Ace(){if(Q2)return b1;Q2=1;var e=vo(),t=Pce(),n=bo(),r="[object Object]",i=Function.prototype,o=Object.prototype,a=i.toString,l=o.hasOwnProperty,c=a.call(Object);function f(d){if(!n(d)||e(d)!=r)return!1;var h=t(d);if(h===null)return!0;var m=l.call(h,"constructor")&&h.constructor;return typeof m=="function"&&m instanceof m&&a.call(m)==c}return b1=f,b1}var kce=Ace();const Cce=tt(kce);var x1,J2;function Tce(){if(J2)return x1;J2=1;var e=vo(),t=bo(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return x1=r,x1}var jce=Tce();const Nce=tt(jce);function td(e){"@babel/helpers - typeof";return td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},td(e)}function Nm(){return Nm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nm.apply(this,arguments)}function Rce(e,t){return Lce(e)||Dce(e,t)||Ice(e,t)||Mce()}function Mce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 369In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ice(e,t){if(e){if(typeof e=="string")return Z2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z2(e,t)}}function Z2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dce(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){f=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return l}}function Lce(e){if(Array.isArray(e))return e}function eD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eD(Object(n),!0).forEach(function(r){$ce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $ce(e,t,n){return t=Fce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fce(e){var t=Bce(e,"string");return td(t)=="symbol"?t:t+""}function Bce(e,t){if(td(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(td(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nD=function(t,n,r,i,o){var a=r-i,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-a/2,",").concat(n+o),l+="L ".concat(t+r-a/2-i,",").concat(n+o),l+="L ".concat(t,",").concat(n," Z"),l},qce={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zce=function(t){var n=tD(tD({},qce),t),r=T.useRef(),i=T.useState(-1),o=Rce(i,2),a=o[0],l=o[1];T.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var E=r.current.getTotalLength();E&&l(E)}catch{}},[]);var c=n.x,f=n.y,d=n.upperWidth,h=n.lowerWidth,m=n.height,g=n.className,w=n.animationEasing,y=n.animationDuration,x=n.animationBegin,S=n.isUpdateAnimationActive;if(c!==+c||f!==+f||d!==+d||h!==+h||m!==+m||d===0&&h===0||m===0)return null;var P=We("recharts-trapezoid",g);return S?H.createElement(Mi,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:m,x:c,y:f},to:{upperWidth:d,lowerWidth:h,height:m,x:c,y:f},duration:y,animationEasing:w,isActive:S},function(E){var C=E.upperWidth,O=E.lowerWidth,A=E.height,j=E.x,R=E.y;return H.createElement(Mi,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:y,easing:w},H.createElement("path",Nm({},Ie(n,!0),{className:P,d:nD(j,R,C,O,A),ref:r})))}):H.createElement("g",null,H.createElement("path",Nm({},Ie(n,!0),{className:P,d:nD(c,f,d,h,m)})))},Uce=["option","shapeType","propTransformer","activeClassName","isActive"];function nd(e){"@babel/helpers - typeof";return nd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nd(e)}function Wce(e,t){if(e==null)return{};var n=Hce(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hce(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function rD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Rm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rD(Object(n),!0).forEach(function(r){Vce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vce(e,t,n){return t=Kce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kce(e){var t=Gce(e,"string");return nd(t)=="symbol"?t:t+""}function Gce(e,t){if(nd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yce(e,t){return Rm(Rm({},t),e)}function Xce(e,t){return e==="symbols"}function iD(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return H.createElement(YE,n);case"trapezoid":return H.createElement(zce,n);case"sector":return H.createElement(Lq,n);case"symbols":if(Xce(t))return H.createElement(pE,n);break;default:return null}}function Qce(e){return T.isValidElement(e)?e.props:e}function Yq(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?Yce:r,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,l=e.isActive,c=Wce(e,Uce),f;if(T.isValidElement(t))f=T.cloneElement(t,Rm(Rm({},c),Qce(t)));else if(Be(t))f=t(c);else if(Cce(t)&&!Nce(t)){var d=i(t,c);f=H.createElement(iD,{shapeType:n,elementProps:d})}else{var h=c;f=H.createElement(iD,{shapeType:n,elementProps:h})}return l?H.createElement(rt,{className:a},f):f}function Jg(e,t){return t!=null&&"trapezoids"in e.props}function Zg(e,t){return t!=null&&"sectors"in e.props}function rd(e,t){return t!=null&&"points"in e.props}function Jce(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,o=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&o}function Zce(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function efe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function tfe(e,t){var n;return Jg(e,t)?n=Jce:Zg(e,t)?n=Zce:rd(e,t)&&(n=efe),n}function nfe(e,t){var n;return Jg(e,t)?n="trapezoids":Zg(e,t)?n="sectors":rd(e,t)&&(n="points"),n}function rfe(e,t){if(Jg(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(Zg(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return rd(e,t)?t.payload:{}}function ife(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=nfe(n,t),o=rfe(n,t),a=r.filter(function(c,f){var d=Rd(o,c),h=n.props[i].filter(function(w){var y=tfe(n,t);return y(w,t)}),m=n.props[i].indexOf(h[h.length-1]),g=f===m;return d&&g}),l=r.indexOf(a[a.length-1]);return l}var $p;function hu(e){"@babel/helpers - typeof";return hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hu(e)}function _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_l.apply(this,arguments)}function oD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oD(Object(n),!0).forEach(function(r){Br(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ofe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qq(r.key),r)}}function afe(e,t,n){return t&&aD(e.prototype,t),n&&aD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sfe(e,t,n){return t=Mm(t),lfe(e,Xq()?Reflect.construct(t,n||[],Mm(e).constructor):t.apply(e,n))}function lfe(e,t){if(t&&(hu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ufe(e)}function ufe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xq=function(){return!!e})()}function Mm(e){return Mm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mm(e)}function cfe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U_(e,t)}function U_(e,t){return U_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},U_(e,t)}function Br(e,t,n){return t=Qq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qq(e){var t=ffe(e,"string");return hu(t)=="symbol"?t:t+""}function ffe(e,t){if(hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fi=(function(e){function t(n){var r;return ofe(this,t),r=sfe(this,t,[n]),Br(r,"pieRef",null),Br(r,"sectorRefs",[]),Br(r,"id",qu("recharts-pie-")),Br(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Be(i)&&i()}),Br(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Be(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return cfe(t,e),afe(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.label,l=o.labelLine,c=o.dataKey,f=o.valueKey,d=Ie(this.props,!1),h=Ie(a,!1),m=Ie(l,!1),g=a&&a.offsetRadius||20,w=r.map(function(y,x){var S=(y.startAngle+y.endAngle)/2,P=Pt(y.cx,y.cy,y.outerRadius+g,S),E=_t(_t(_t(_t({},d),y),{},{stroke:"none"},h),{},{index:x,textAnchor:t.getTextAnchor(P.x,y.cx)},P),C=_t(_t(_t(_t({},d),y),{},{fill:"none",stroke:y.fill},m),{},{index:x,points:[Pt(y.cx,y.cy,y.outerRadius,S),P]}),O=c;return ze(c)&&ze(f)?O="value":ze(c)&&(O=f),H.createElement(rt,{key:"label-".concat(y.startAngle,"-").concat(y.endAngle,"-").concat(y.midAngle,"-").concat(x)},l&&t.renderLabelLineItem(l,C,"line"),t.renderLabelItem(a,E,nn(y,O)))});return H.createElement(rt,{className:"recharts-pie-labels"},w)}},{key:"renderSectorsStatically",value:function(r){var i=this,o=this.props,a=o.activeShape,l=o.blendStroke,c=o.inactiveShape;return r.map(function(f,d){if((f==null?void 0:f.startAngle)===0&&(f==null?void 0:f.endAngle)===0&&r.length!==1)return null;var h=i.isActiveIndex(d),m=c&&i.hasActiveIndex()?c:null,g=h?a:m,w=_t(_t({},f),{},{stroke:l?f.fill:f.stroke,tabIndex:-1});return H.createElement(rt,_l({ref:function(x){x&&!i.sectorRefs.includes(x)&&i.sectorRefs.push(x)},tabIndex:-1,className:"recharts-pie-sector"},Ss(i.props,f,d),{key:"sector-".concat(f==null?void 0:f.startAngle,"-").concat(f==null?void 0:f.endAngle,"-").concat(f.midAngle,"-").concat(d)}),H.createElement(Yq,_l({option:g,isActive:h,shapeType:"sector"},w)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,o=i.sectors,a=i.isAnimationActive,l=i.animationBegin,c=i.animationDuration,f=i.animationEasing,d=i.animationId,h=this.state,m=h.prevSectors,g=h.prevIsAnimationActive;return H.createElement(Mi,{begin:l,duration:c,isActive:a,easing:f,from:{t:0},to:{t:1},key:"pie-".concat(d,"-").concat(g),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(w){var y=w.t,x=[],S=o&&o[0],P=S.startAngle;return o.forEach(function(E,C){var O=m&&m[C],A=C>0?_r(E,"paddingAngle",0):0;if(O){var j=br(O.endAngle-O.startAngle,E.endAngle-E.startAngle),R=_t(_t({},E),{},{startAngle:P+A,endAngle:P+j(y)+A});x.push(R),P=R.endAngle}else{var L=E.endAngle,q=E.startAngle,D=br(0,L-q),$=D(y),B=_t(_t({},E),{},{startAngle:P+A,endAngle:P+$+A});x.push(B),P=B.endAngle}}),H.createElement(rt,null,r.renderSectorsStatically(x))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var a=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[a].focus(),i.setState({sectorToFocus:a});break}case"ArrowRight":{var l=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,o=r.isAnimationActive,a=this.state.prevSectors;return o&&i&&i.length&&(!a||!Rd(a,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,o=i.hide,a=i.sectors,l=i.className,c=i.label,f=i.cx,d=i.cy,h=i.innerRadius,m=i.outerRadius,g=i.isAnimationActive,w=this.state.isAnimationFinished;if(o||!a||!a.length||!ge(f)||!ge(d)||!ge(h)||!ge(m))return null;var y=We("recharts-pie",l);return H.createElement(rt,{tabIndex:this.props.rootTabIndex,className:y,ref:function(S){r.pieRef=S}},this.renderSectors(),c&&this.renderLabels(a),hn.renderCallByParent(this.props,null,!1),(!g||w)&&co.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i,o){if(H.isValidElement(r))return H.cloneElement(r,i);if(Be(r))return r(i);var a=We("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return H.createElement(Em,_l({},i,{key:o,type:"linear",className:a}))}},{key:"renderLabelItem",value:function(r,i,o){if(H.isValidElement(r))return H.cloneElement(r,i);var a=o;if(Be(r)&&(a=r(i),H.isValidElement(a)))return a;var l=We("recharts-pie-label-text",typeof r!="boolean"&&!Be(r)?r.className:"");return H.createElement(_s,_l({},i,{alignmentBaseline:"middle",className:l}),a)}}])})(T.PureComponent);$p=Fi;Br(Fi,"displayName","Pie");Br(Fi,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Ms.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Br(Fi,"parseDeltaAngle",function(e,t){var n=Bn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Br(Fi,"getRealPieData",function(e){var t=e.data,n=e.children,r=Ie(e,!1),i=Or(n,kd);return t&&t.length?t.map(function(o,a){return _t(_t(_t({payload:o},r),o),i&&i[a]&&i[a].props)}):i&&i.length?i.map(function(o){return _t(_t({},r),o.props)}):[]});Br(Fi,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=Rq(i,o),l=r+qn(e.cx,i,i/2),c=n+qn(e.cy,o,o/2),f=qn(e.innerRadius,a,0),d=qn(e.outerRadius,a,a*.8),h=e.maxRadius||Math.sqrt(i*i+o*o)/2;return{cx:l,cy:c,innerRadius:f,outerRadius:d,maxRadius:h}});Br(Fi,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?_t(_t({},t.type.defaultProps),t.props):t.props,i=$p.getRealPieData(r);if(!i||!i.length)return null;var o=r.cornerRadius,a=r.startAngle,l=r.endAngle,c=r.paddingAngle,f=r.dataKey,d=r.nameKey,h=r.valueKey,m=r.tooltipType,g=Math.abs(r.minAngle),w=$p.parseCoordinateOfPie(r,n),y=$p.parseDeltaAngle(a,l),x=Math.abs(y),S=f;ze(f)&&ze(h)?(ai(!1,`Use "dataKey" to specify the value of pie,
370 the props "valueKey" will be deprecated in 1.1.0`),S="value"):ze(f)&&(ai(!1,`Use "dataKey" to specify the value of pie, 371 the props "valueKey" will be deprecated in 1.1.0`),S=h);var P=i.filter(function(R){return nn(R,S,0)!==0}).length,E=(x>=360?P:P-1)*c,C=x-P*g-E,O=i.reduce(function(R,L){var q=nn(L,S,0);return R+(ge(q)?q:0)},0),A;if(O>0){var j;A=i.map(function(R,L){var q=nn(R,S,0),D=nn(R,d,L),$=(ge(q)?q:0)/O,B;L?B=j.endAngle+Bn(y)*c*(q!==0?1:0):B=a;var W=B+Bn(y)*((q!==0?g:0)+$*C),V=(B+W)/2,Y=(w.innerRadius+w.outerRadius)/2,J=[{name:D,value:q,payload:R,dataKey:S,type:m}],F=Pt(w.cx,w.cy,Y,V);return j=_t(_t(_t({percent:$,cornerRadius:o,name:D,tooltipPayload:J,midAngle:V,middleRadius:Y,tooltipPosition:F},R),w),{},{value:nn(R,S),startAngle:B,endAngle:W,payload:R,paddingAngle:Bn(y)*c}),j})}return _t(_t({},w),{},{sectors:A,data:i})});var w1,sD;function dfe(){if(sD)return w1;sD=1;var e=Math.ceil,t=Math.max;function n(r,i,o,a){for(var l=-1,c=t(e((i-r)/(o||1)),0),f=Array(c);c--;)f[a?c:++l]=r,r+=o;return f}return w1=n,w1}var S1,lD;function Jq(){if(lD)return S1;lD=1;var e=x3(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var o=i<0?-1:1;return o*n}return i===i?i:0}return S1=r,S1}var _1,uD;function hfe(){if(uD)return _1;uD=1;var e=dfe(),t=Mg(),n=Jq();function r(i){return function(o,a,l){return l&&typeof l!="number"&&t(o,a,l)&&(a=l=void 0),o=n(o),a===void 0?(a=o,o=0):a=n(a),l=l===void 0?o<a?1:-1:n(l),e(o,a,l,i)}}return _1=r,_1}var O1,cD;function pfe(){if(cD)return O1;cD=1;var e=hfe(),t=e();return O1=t,O1}var mfe=pfe();const Im=tt(mfe);function id(e){"@babel/helpers - typeof";return id=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},id(e)}function fD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fD(Object(n),!0).forEach(function(r){Zq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zq(e,t,n){return t=gfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gfe(e){var t=yfe(e,"string");return id(t)=="symbol"?t:t+""}function yfe(e,t){if(id(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(id(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vfe=["Webkit","Moz","O","ms"],bfe=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=vfe.reduce(function(o,a){return dD(dD({},o),{},Zq({},a+r,n))},{});return i[t]=n,i};function pu(e){"@babel/helpers - typeof";return pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pu(e)}function Dm(){return Dm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dm.apply(this,arguments)}function hD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function E1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hD(Object(n),!0).forEach(function(r){mr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tz(r.key),r)}}function wfe(e,t,n){return t&&pD(e.prototype,t),n&&pD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sfe(e,t,n){return t=Lm(t),_fe(e,ez()?Reflect.construct(t,n||[],Lm(e).constructor):t.apply(e,n))}function _fe(e,t){if(t&&(pu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ofe(e)}function Ofe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ez(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ez=function(){return!!e})()}function Lm(e){return Lm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lm(e)}function Efe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W_(e,t)}function W_(e,t){return W_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},W_(e,t)}function mr(e,t,n){return t=tz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tz(e){var t=Pfe(e,"string");return pu(t)=="symbol"?t:t+""}function Pfe(e,t){if(pu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Afe=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,o=t.x,a=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var c=n.length,f=df().domain(Im(0,c)).range([o,o+a-l]),d=f.domain().map(function(h){return f(h)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:f(r),endX:f(i),scale:f,scaleValues:d}},mD=function(t){return t.changedTouches&&!!t.changedTouches.length},mu=(function(e){function t(n){var r;return xfe(this,t),r=Sfe(this,t,[n]),mr(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),mr(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),mr(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,o=i.endIndex,a=i.onDragEnd,l=i.startIndex;a==null||a({endIndex:o,startIndex:l})}),r.detachDragEndListener()}),mr(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),mr(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),mr(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),mr(r,"handleSlideDragStart",function(i){var o=mD(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}
vendor: 120,599 bytes, lines 371-376
371return Efe(t,e),wfe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,o=r.endX,a=this.state.scaleValues,l=this.props,c=l.gap,f=l.data,d=f.length-1,h=Math.min(i,o),m=Math.max(i,o),g=t.getIndexInRange(a,h),w=t.getIndexInRange(a,m);return{startIndex:g-g%c,endIndex:w===d?d:w-w%c}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,a=i.tickFormatter,l=i.dataKey,c=nn(o[r],l,r);return Be(a)?a(c,r):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,o=i.slideMoveStartX,a=i.startX,l=i.endX,c=this.props,f=c.x,d=c.width,h=c.travellerWidth,m=c.startIndex,g=c.endIndex,w=c.onChange,y=r.pageX-o;y>0?y=Math.min(y,f+d-h-l,f+d-h-a):y<0&&(y=Math.max(y,f-a,f-l));var x=this.getIndex({startX:a+y,endX:l+y});(x.startIndex!==m||x.endIndex!==g)&&w&&w(x),this.setState({startX:a+y,endX:l+y,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=mD(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,o=i.brushMoveStartX,a=i.movingTravellerId,l=i.endX,c=i.startX,f=this.state[a],d=this.props,h=d.x,m=d.width,g=d.travellerWidth,w=d.onChange,y=d.gap,x=d.data,S={startX:this.state.startX,endX:this.state.endX},P=r.pageX-o;P>0?P=Math.min(P,h+m-g-f):P<0&&(P=Math.max(P,h-f)),S[a]=f+P;var E=this.getIndex(S),C=E.startIndex,O=E.endIndex,A=function(){var R=x.length-1;return a==="startX"&&(l>c?C%y===0:O%y===0)||l<c&&O===R||a==="endX"&&(l>c?O%y===0:C%y===0)||l>c&&O===R};this.setState(mr(mr({},a,f+P),"brushMoveStartX",r.pageX),function(){w&&A()&&w(E)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,a=this.state,l=a.scaleValues,c=a.startX,f=a.endX,d=this.state[i],h=l.indexOf(d);if(h!==-1){var m=h+r;if(!(m===-1||m>=l.length)){var g=l[m];i==="startX"&&g>=f||i==="endX"&&g<=c||this.setState(mr({},i,g),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,l=r.height,c=r.fill,f=r.stroke;return H.createElement("rect",{stroke:f,fill:c,x:i,y:o,width:a,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,l=r.height,c=r.data,f=r.children,d=r.padding,h=T.Children.only(f);return h?H.cloneElement(h,{x:i,y:o,width:a,height:l,margin:d,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(r,i){var o,a,l=this,c=this.props,f=c.y,d=c.travellerWidth,h=c.height,m=c.traveller,g=c.ariaLabel,w=c.data,y=c.startIndex,x=c.endIndex,S=Math.max(r,this.props.x),P=E1(E1({},Ie(this.props,!1)),{},{x:S,y:f,width:d,height:h}),E=g||"Min value: ".concat((o=w[y])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=w[x])===null||a===void 0?void 0:a.name);return H.createElement(rt,{tabIndex:0,role:"slider","aria-label":E,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(O){["ArrowLeft","ArrowRight"].includes(O.key)&&(O.preventDefault(),O.stopPropagation(),l.handleTravellerMoveKeyboard(O.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(m,P))}},{key:"renderSlide",value:function(r,i){var o=this.props,a=o.y,l=o.height,c=o.stroke,f=o.travellerWidth,d=Math.min(r,i)+f,h=Math.max(Math.abs(i-r)-f,0);return H.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:d,y:a,width:h,height:l})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,o=r.endIndex,a=r.y,l=r.height,c=r.travellerWidth,f=r.stroke,d=this.state,h=d.startX,m=d.endX,g=5,w={pointerEvents:"none",fill:f};return H.createElement(rt,{className:"recharts-brush-texts"},H.createElement(_s,Dm({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,m)-g,y:a+l/2},w),this.getTextOfTick(i)),H.createElement(_s,Dm({textAnchor:"start",verticalAnchor:"middle",x:Math.max(h,m)+c+g,y:a+l/2},w),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,a=r.children,l=r.x,c=r.y,f=r.width,d=r.height,h=r.alwaysShowText,m=this.state,g=m.startX,w=m.endX,y=m.isTextActive,x=m.isSlideMoving,S=m.isTravellerMoving,P=m.isTravellerFocused;if(!i||!i.length||!ge(l)||!ge(c)||!ge(f)||!ge(d)||f<=0||d<=0)return null;var E=We("recharts-brush",o),C=H.Children.count(a)===1,O=bfe("userSelect","none");return H.createElement(rt,{className:E,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),C&&this.renderPanorama(),this.renderSlide(g,w),this.renderTravellerLayer(g,"startX"),this.renderTravellerLayer(w,"endX"),(y||x||S||P||h)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,a=r.width,l=r.height,c=r.stroke,f=Math.floor(o+l/2)-1;return H.createElement(H.Fragment,null,H.createElement("rect",{x:i,y:o,width:a,height:l,fill:c,stroke:"none"}),H.createElement("line",{x1:i+1,y1:f,x2:i+a-1,y2:f,fill:"none",stroke:"#fff"}),H.createElement("line",{x1:i+1,y1:f+2,x2:i+a-1,y2:f+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return H.isValidElement(r)?o=H.cloneElement(r,i):Be(r)?o=r(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(r,i){var o=r.data,a=r.width,l=r.x,c=r.travellerWidth,f=r.updateId,d=r.startIndex,h=r.endIndex;if(o!==i.prevData||f!==i.prevUpdateId)return E1({prevData:o,prevTravellerWidth:c,prevUpdateId:f,prevX:l,prevWidth:a},o&&o.length?Afe({data:o,width:a,x:l,travellerWidth:c,startIndex:d,endIndex:h}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||l!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([l,l+a-c]);var m=i.scale.domain().map(function(g){return i.scale(g)});return{prevData:o,prevTravellerWidth:c,prevUpdateId:f,prevX:l,prevWidth:a,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,a=0,l=o-1;l-a>1;){var c=Math.floor((a+l)/2);r[c]>i?l=c:a=c}return i>=r[l]?l:a}}])})(T.PureComponent);mr(mu,"displayName","Brush");mr(mu,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var P1,gD;function kfe(){if(gD)return P1;gD=1;var e=wE();function t(n,r){var i;return e(n,function(o,a,l){return i=r(o,a,l),!i}),!!i}return P1=t,P1}var A1,yD;function Cfe(){if(yD)return A1;yD=1;var e=Q4(),t=$i(),n=kfe(),r=ir(),i=Mg();function o(a,l,c){var f=r(a)?e:n;return c&&i(a,l,c)&&(l=void 0),f(a,t(l,3))}return A1=o,A1}var Tfe=Cfe();const jfe=tt(Tfe);var Ti=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},k1,vD;function Nfe(){if(vD)return k1;vD=1;var e=m3();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return k1=t,k1}var C1,bD;function Rfe(){if(bD)return C1;bD=1;var e=Nfe(),t=h3(),n=$i();function r(i,o){var a={};return o=n(o,3),t(i,function(l,c,f){e(a,c,o(l,c,f))}),a}return C1=r,C1}var Mfe=Rfe();const Ife=tt(Mfe);var T1,xD;function Dfe(){if(xD)return T1;xD=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(!n(t[r],r,t))return!1;return!0}return T1=e,T1}var j1,wD;function Lfe(){if(wD)return j1;wD=1;var e=wE();function t(n,r){var i=!0;return e(n,function(o,a,l){return i=!!r(o,a,l),i}),i}return j1=t,j1}var N1,SD;function $fe(){if(SD)return N1;SD=1;var e=Dfe(),t=Lfe(),n=$i(),r=ir(),i=Mg();function o(a,l,c){var f=r(a)?e:t;return c&&i(a,l,c)&&(l=void 0),f(a,n(l,3))}return N1=o,N1}var Ffe=$fe();const nz=tt(Ffe);var Bfe=["x","y"];function od(e){"@babel/helpers - typeof";return od=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},od(e)}function H_(){return H_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H_.apply(this,arguments)}function _D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_D(Object(n),!0).forEach(function(r){qfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_D(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qfe(e,t,n){return t=zfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zfe(e){var t=Ufe(e,"string");return od(t)=="symbol"?t:t+""}function Ufe(e,t){if(od(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(od(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wfe(e,t){if(e==null)return{};var n=Hfe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hfe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Vfe(e,t){var n=e.x,r=e.y,i=Wfe(e,Bfe),o="".concat(n),a=parseInt(o,10),l="".concat(r),c=parseInt(l,10),f="".concat(t.height||i.height),d=parseInt(f,10),h="".concat(t.width||i.width),m=parseInt(h,10);return Kc(Kc(Kc(Kc(Kc({},t),i),a?{x:a}:{}),c?{y:c}:{}),{},{height:d,width:m,name:t.name,radius:t.radius})}function OD(e){return H.createElement(Yq,H_({shapeType:"rectangle",propTransformer:Vfe,activeClassName:"recharts-active-bar"},e))}var Kfe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var o=ge(r)||yJ(r);return o?t(r,i):(o||Es(),n)}},Gfe=["value","background"],rz;function gu(e){"@babel/helpers - typeof";return gu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gu(e)}function Yfe(e,t){if(e==null)return{};var n=Xfe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xfe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function $m(){return $m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$m.apply(this,arguments)}function ED(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ED(Object(n),!0).forEach(function(r){oa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ED(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oz(r.key),r)}}function Jfe(e,t,n){return t&&PD(e.prototype,t),n&&PD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zfe(e,t,n){return t=Fm(t),ede(e,iz()?Reflect.construct(t,n||[],Fm(e).constructor):t.apply(e,n))}function ede(e,t){if(t&&(gu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tde(e)}function tde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iz=function(){return!!e})()}function Fm(e){return Fm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fm(e)}function nde(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V_(e,t)}function V_(e,t){return V_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},V_(e,t)}function oa(e,t,n){return t=oz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oz(e){var t=rde(e,"string");return gu(t)=="symbol"?t:t+""}function rde(e,t){if(gu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ha=(function(e){function t(){var n;Qfe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Zfe(this,t,[].concat(i)),oa(n,"state",{isAnimationFinished:!1}),oa(n,"id",qu("recharts-bar-")),oa(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),a&&a()}),oa(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),a&&a()}),n}return nde(t,e),Jfe(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,o=this.props,a=o.shape,l=o.dataKey,c=o.activeIndex,f=o.activeBar,d=Ie(this.props,!1);return r&&r.map(function(h,m){var g=m===c,w=g?f:a,y=Wt(Wt(Wt({},d),h),{},{isActive:g,option:w,index:m,dataKey:l,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return H.createElement(rt,$m({className:"recharts-bar-rectangle"},Ss(i.props,h,m),{key:"rectangle-".concat(h==null?void 0:h.x,"-").concat(h==null?void 0:h.y,"-").concat(h==null?void 0:h.value,"-").concat(m)}),H.createElement(OD,y))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,o=i.data,a=i.layout,l=i.isAnimationActive,c=i.animationBegin,f=i.animationDuration,d=i.animationEasing,h=i.animationId,m=this.state.prevData;return H.createElement(Mi,{begin:c,duration:f,isActive:l,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var w=g.t,y=o.map(function(x,S){var P=m&&m[S];if(P){var E=br(P.x,x.x),C=br(P.y,x.y),O=br(P.width,x.width),A=br(P.height,x.height);return Wt(Wt({},x),{},{x:E(w),y:C(w),width:O(w),height:A(w)})}if(a==="horizontal"){var j=br(0,x.height),R=j(w);return Wt(Wt({},x),{},{y:x.y+x.height-R,height:R})}var L=br(0,x.width),q=L(w);return Wt(Wt({},x),{},{width:q})});return H.createElement(rt,null,r.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,o=r.isAnimationActive,a=this.state.prevData;return o&&i&&i.length&&(!a||!Rd(a,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,o=i.data,a=i.dataKey,l=i.activeIndex,c=Ie(this.props.background,!1);return o.map(function(f,d){f.value;var h=f.background,m=Yfe(f,Gfe);if(!h)return null;var g=Wt(Wt(Wt(Wt(Wt({},m),{},{fill:"#eee"},h),c),Ss(r.props,f,d)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:a,index:d,className:"recharts-bar-background-rectangle"});return H.createElement(OD,$m({key:"background-bar-".concat(d),option:r.props.background,isActive:d===l},g))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.data,l=o.xAxis,c=o.yAxis,f=o.layout,d=o.children,h=Or(d,Md);if(!h)return null;var m=f==="vertical"?a[0].height/2:a[0].width/2,g=function(x,S){var P=Array.isArray(x.value)?x.value[1]:x.value;return{x:x.x,y:x.y,value:P,errorVal:nn(x,S)}},w={clipPath:r?"url(#clipPath-".concat(i,")"):null};return H.createElement(rt,w,h.map(function(y){return H.cloneElement(y,{key:"error-bar-".concat(i,"-").concat(y.props.dataKey),data:a,xAxis:l,yAxis:c,layout:f,offset:m,dataPointFormatter:g})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.data,a=r.className,l=r.xAxis,c=r.yAxis,f=r.left,d=r.top,h=r.width,m=r.height,g=r.isAnimationActive,w=r.background,y=r.id;if(i||!o||!o.length)return null;var x=this.state.isAnimationFinished,S=We("recharts-bar",a),P=l&&l.allowDataOverflow,E=c&&c.allowDataOverflow,C=P||E,O=ze(y)?this.id:y;return H.createElement(rt,{className:S},P||E?H.createElement("defs",null,H.createElement("clipPath",{id:"clipPath-".concat(O)},H.createElement("rect",{x:P?f:f-h/2,y:E?d:d-m/2,width:P?h:h*2,height:E?m:m*2}))):null,H.createElement(rt,{className:"recharts-bar-rectangles",clipPath:C?"url(#clipPath-".concat(O,")"):null},w?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(C,O),(!g||x)&&co.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])})(T.PureComponent);rz=ha;oa(ha,"displayName","Bar");oa(ha,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ms.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});oa(ha,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,l=e.xAxisTicks,c=e.yAxisTicks,f=e.stackedData,d=e.dataStartIndex,h=e.displayedData,m=e.offset,g=Nae(r,n);if(!g)return null;var w=t.layout,y=n.type.defaultProps,x=y!==void 0?Wt(Wt({},y),n.props):n.props,S=x.dataKey,P=x.children,E=x.minPointSize,C=w==="horizontal"?a:o,O=f?C.scale.domain():null,A=Fae({numericAxis:C}),j=Or(P,kd),R=h.map(function(L,q){var D,$,B,W,V,Y;f?D=Rae(f[d+q],O):(D=nn(L,S),Array.isArray(D)||(D=[A,D]));var J=Kfe(E,rz.defaultProps.minPointSize)(D[1],q);if(w==="horizontal"){var F,Z=[a.scale(D[0]),a.scale(D[1])],M=Z[0],z=Z[1];$=QI({axis:o,ticks:l,bandSize:i,offset:g.offset,entry:L,index:q}),B=(F=z??M)!==null&&F!==void 0?F:void 0,W=g.size;var X=M-z;if(V=Number.isNaN(X)?0:X,Y={x:$,y:a.y,width:W,height:a.height},Math.abs(J)>0&&Math.abs(V)<Math.abs(J)){var I=Bn(V||J)*(Math.abs(J)-Math.abs(V));B-=I,V+=I}}else{var ue=[o.scale(D[0]),o.scale(D[1])],xe=ue[0],we=ue[1];if($=xe,B=QI({axis:a,ticks:c,bandSize:i,offset:g.offset,entry:L,index:q}),W=we-xe,V=g.size,Y={x:o.x,y:B,width:o.width,height:V},Math.abs(J)>0&&Math.abs(W)<Math.abs(J)){var le=Bn(W||J)*(Math.abs(J)-Math.abs(W));W+=le}}return Wt(Wt(Wt({},L),{},{x:$,y:B,width:W,height:V,value:f?D:D[1],payload:L,background:Y},j&&j[q]&&j[q].props),{},{tooltipPayload:[jq(n,L)],tooltipPosition:{x:$+W/2,y:B+V/2}})});return Wt({data:R,layout:w},m)});function ad(e){"@babel/helpers - typeof";return ad=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ad(e)}function ide(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,az(r.key),r)}}function ode(e,t,n){return t&&AD(e.prototype,t),n&&AD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ri(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kD(Object(n),!0).forEach(function(r){ey(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ey(e,t,n){return t=az(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function az(e){var t=ade(e,"string");return ad(t)=="symbol"?t:t+""}function ade(e,t){if(ad(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ad(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sz=function(t,n,r,i,o){var a=t.width,l=t.height,c=t.layout,f=t.children,d=Object.keys(n),h={left:r.left,leftMirror:r.left,right:a-r.right,rightMirror:a-r.right,top:r.top,topMirror:r.top,bottom:l-r.bottom,bottomMirror:l-r.bottom},m=!!gr(f,ha);return d.reduce(function(g,w){var y=n[w],x=y.orientation,S=y.domain,P=y.padding,E=P===void 0?{}:P,C=y.mirror,O=y.reversed,A="".concat(x).concat(C?"Mirror":""),j,R,L,q,D;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var $=S[1]-S[0],B=1/0,W=y.categoricalDomain.sort(xJ);if(W.forEach(function(ue,xe){xe>0&&(B=Math.min((ue||0)-(W[xe-1]||0),B))}),Number.isFinite(B)){var V=B/$,Y=y.layout==="vertical"?r.height:r.width;if(y.padding==="gap"&&(j=V*Y/2),y.padding==="no-gap"){var J=qn(t.barCategoryGap,V*Y),F=V*Y/2;j=F-J-(F-J)/Y*J}}}i==="xAxis"?R=[r.left+(E.left||0)+(j||0),r.left+r.width-(E.right||0)-(j||0)]:i==="yAxis"?R=c==="horizontal"?[r.top+r.height-(E.bottom||0),r.top+(E.top||0)]:[r.top+(E.top||0)+(j||0),r.top+r.height-(E.bottom||0)-(j||0)]:R=y.range,O&&(R=[R[1],R[0]]);var Z=Aq(y,o,m),M=Z.scale,z=Z.realScaleType;M.domain(S).range(R),kq(M);var X=Cq(M,ri(ri({},y),{},{realScaleType:z}));i==="xAxis"?(D=x==="top"&&!C||x==="bottom"&&C,L=r.left,q=h[A]-D*y.height):i==="yAxis"&&(D=x==="left"&&!C||x==="right"&&C,L=h[A]-D*y.width,q=r.top);var I=ri(ri(ri({},y),X),{},{realScaleType:z,x:L,y:q,scale:M,width:i==="xAxis"?r.width:y.width,height:i==="yAxis"?r.height:y.height});return I.bandSize=Sm(I,X),!y.hide&&i==="xAxis"?h[A]+=(D?-1:1)*I.height:y.hide||(h[A]+=(D?-1:1)*I.width),ri(ri({},g),{},ey({},w,I))},{})},lz=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return{x:Math.min(r,o),y:Math.min(i,a),width:Math.abs(o-r),height:Math.abs(a-i)}},sde=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return lz({x:n,y:r},{x:i,y:o})},uz=(function(){function e(t){ide(this,e),this.scale=t}return ode(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+a}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],o=r[r.length-1];return i<=o?n>=i&&n<=o:n>=o&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])})();ey(uz,"EPS",1e-4);var XE=function(t){var n=Object.keys(t).reduce(function(r,i){return ri(ri({},r),{},ey({},i,uz.create(t[i])))},{});return ri(ri({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,l=o.position;return Ife(i,function(c,f){return n[f].apply(c,{bandAware:a,position:l})})},isInRange:function(i){return nz(i,function(o,a){return n[a].isInRange(o)})}})};function lde(e){return(e%180+180)%180}var ude=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=lde(i),a=o*Math.PI/180,l=Math.atan(r/n),c=a>l&&a<Math.PI-l?r/Math.sin(a):n/Math.cos(a);return Math.abs(c)},R1,CD;function cde(){if(CD)return R1;CD=1;var e=$i(),t=Ad(),n=Ng();function r(i){return function(o,a,l){var c=Object(o);if(!t(o)){var f=e(a,3);o=n(o),a=function(h){return f(c[h],h,c)}}var d=i(o,a,l);return d>-1?c[f?o[d]:d]:void 0}}return R1=r,R1}var M1,TD;function fde(){if(TD)return M1;TD=1;var e=Jq();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return M1=t,M1}var I1,jD;function dde(){if(jD)return I1;jD=1;var e=l3(),t=$i(),n=fde(),r=Math.max;function i(o,a,l){var c=o==null?0:o.length;if(!c)return-1;var f=l==null?0:n(l);return f<0&&(f=r(c+f,0)),e(o,t(a,3),f)}return I1=i,I1}var D1,ND;function hde(){if(ND)return D1;ND=1;var e=cde(),t=dde(),n=e(t);return D1=n,D1}var pde=hde();const mde=tt(pde);var gde=O4();const yde=tt(gde);var vde=yde(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),QE=T.createContext(void 0),JE=T.createContext(void 0),cz=T.createContext(void 0),fz=T.createContext({}),dz=T.createContext(void 0),hz=T.createContext(0),pz=T.createContext(0),RD=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.clipPathId,l=t.children,c=t.width,f=t.height,d=vde(o);return H.createElement(QE.Provider,{value:r},H.createElement(JE.Provider,{value:i},H.createElement(fz.Provider,{value:o},H.createElement(cz.Provider,{value:d},H.createElement(dz.Provider,{value:a},H.createElement(hz.Provider,{value:f},H.createElement(pz.Provider,{value:c},l)))))))},bde=function(){return T.useContext(dz)},mz=function(t){var n=T.useContext(QE);n==null&&Es();var r=n[t];return r==null&&Es(),r},xde=function(){var t=T.useContext(QE);return Go(t)},wde=function(){var t=T.useContext(JE),n=mde(t,function(r){return nz(r.domain,Number.isFinite)});return n||Go(t)},gz=function(t){var n=T.useContext(JE);n==null&&Es();var r=n[t];return r==null&&Es(),r},Sde=function(){var t=T.useContext(cz);return t},_de=function(){return T.useContext(fz)},ZE=function(){return T.useContext(pz)},eP=function(){return T.useContext(hz)};function yu(e){"@babel/helpers - typeof";return yu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yu(e)}function Ode(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ede(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vz(r.key),r)}}function Pde(e,t,n){return t&&Ede(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ade(e,t,n){return t=Bm(t),kde(e,yz()?Reflect.construct(t,n||[],Bm(e).constructor):t.apply(e,n))}function kde(e,t){if(t&&(yu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cde(e)}function Cde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yz=function(){return!!e})()}function Bm(e){return Bm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bm(e)}function Tde(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K_(e,t)}function K_(e,t){return K_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},K_(e,t)}function MD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ID(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MD(Object(n),!0).forEach(function(r){tP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tP(e,t,n){return t=vz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vz(e){var t=jde(e,"string");return yu(t)=="symbol"?t:t+""}function jde(e,t){if(yu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Nde(e,t){return Dde(e)||Ide(e,t)||Mde(e,t)||Rde()}function Rde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 372In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mde(e,t){if(e){if(typeof e=="string")return DD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DD(e,t)}}function DD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ide(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){f=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return l}}function Dde(e){if(Array.isArray(e))return e}function G_(){return G_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G_.apply(this,arguments)}var Lde=function(t,n){var r;return H.isValidElement(t)?r=H.cloneElement(t,n):Be(t)?r=t(n):r=H.createElement("line",G_({},n,{className:"recharts-reference-line-line"})),r},$de=function(t,n,r,i,o,a,l,c,f){var d=o.x,h=o.y,m=o.width,g=o.height;if(r){var w=f.y,y=t.y.apply(w,{position:a});if(Ti(f,"discard")&&!t.y.isInRange(y))return null;var x=[{x:d+m,y},{x:d,y}];return c==="left"?x.reverse():x}if(n){var S=f.x,P=t.x.apply(S,{position:a});if(Ti(f,"discard")&&!t.x.isInRange(P))return null;var E=[{x:P,y:h+g},{x:P,y:h}];return l==="top"?E.reverse():E}if(i){var C=f.segment,O=C.map(function(A){return t.apply(A,{position:a})});return Ti(f,"discard")&&jfe(O,function(A){return!t.isInRange(A)})?null:O}return null};function Fde(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,o=e.yAxisId,a=e.shape,l=e.className,c=e.alwaysShow,f=bde(),d=mz(i),h=gz(o),m=Sde();if(!f||!m)return null;ai(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var g=XE({x:d.scale,y:h.scale}),w=on(t),y=on(n),x=r&&r.length===2,S=$de(g,w,y,x,m,e.position,d.orientation,h.orientation,e);if(!S)return null;var P=Nde(S,2),E=P[0],C=E.x,O=E.y,A=P[1],j=A.x,R=A.y,L=Ti(e,"hidden")?"url(#".concat(f,")"):void 0,q=ID(ID({clipPath:L},Ie(e,!0)),{},{x1:C,y1:O,x2:j,y2:R});return H.createElement(rt,{className:We("recharts-reference-line",l)},Lde(a,q),hn.renderCallByParent(e,sde({x1:C,y1:O,x2:j,y2:R})))}var nP=(function(e){function t(){return Ode(this,t),Ade(this,t,arguments)}return Tde(t,e),Pde(t,[{key:"render",value:function(){return H.createElement(Fde,this.props)}}])})(H.Component);tP(nP,"displayName","ReferenceLine");tP(nP,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Y_(){return Y_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y_.apply(this,arguments)}function vu(e){"@babel/helpers - typeof";return vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vu(e)}function LD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $D(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LD(Object(n),!0).forEach(function(r){ty(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qde(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xz(r.key),r)}}function zde(e,t,n){return t&&qde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ude(e,t,n){return t=qm(t),Wde(e,bz()?Reflect.construct(t,n||[],qm(e).constructor):t.apply(e,n))}function Wde(e,t){if(t&&(vu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hde(e)}function Hde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bz=function(){return!!e})()}function qm(e){return qm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qm(e)}function Vde(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&X_(e,t)}function X_(e,t){return X_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},X_(e,t)}function ty(e,t,n){return t=xz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xz(e){var t=Kde(e,"string");return vu(t)=="symbol"?t:t+""}function Kde(e,t){if(vu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Gde=function(t){var n=t.x,r=t.y,i=t.xAxis,o=t.yAxis,a=XE({x:i.scale,y:o.scale}),l=a.apply({x:n,y:r},{bandAware:!0});return Ti(t,"discard")&&!a.isInRange(l)?null:l},ny=(function(e){function t(){return Bde(this,t),Ude(this,t,arguments)}return Vde(t,e),zde(t,[{key:"render",value:function(){var r=this.props,i=r.x,o=r.y,a=r.r,l=r.alwaysShow,c=r.clipPathId,f=on(i),d=on(o);if(ai(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!f||!d)return null;var h=Gde(this.props);if(!h)return null;var m=h.x,g=h.y,w=this.props,y=w.shape,x=w.className,S=Ti(this.props,"hidden")?"url(#".concat(c,")"):void 0,P=$D($D({clipPath:S},Ie(this.props,!0)),{},{cx:m,cy:g});return H.createElement(rt,{className:We("recharts-reference-dot",x)},t.renderDot(y,P),hn.renderCallByParent(this.props,{x:m-a,y:g-a,width:2*a,height:2*a}))}}])})(H.Component);ty(ny,"displayName","ReferenceDot");ty(ny,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});ty(ny,"renderDot",function(e,t){var n;return H.isValidElement(e)?n=H.cloneElement(e,t):Be(e)?n=e(t):n=H.createElement(Kg,Y_({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function Q_(){return Q_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q_.apply(this,arguments)}function bu(e){"@babel/helpers - typeof";return bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bu(e)}function FD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function BD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FD(Object(n),!0).forEach(function(r){ry(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xde(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sz(r.key),r)}}function Qde(e,t,n){return t&&Xde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jde(e,t,n){return t=zm(t),Zde(e,wz()?Reflect.construct(t,n||[],zm(e).constructor):t.apply(e,n))}function Zde(e,t){if(t&&(bu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ehe(e)}function ehe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wz=function(){return!!e})()}function zm(e){return zm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zm(e)}function the(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&J_(e,t)}function J_(e,t){return J_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},J_(e,t)}function ry(e,t,n){return t=Sz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sz(e){var t=nhe(e,"string");return bu(t)=="symbol"?t:t+""}function nhe(e,t){if(bu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rhe=function(t,n,r,i,o){var a=o.x1,l=o.x2,c=o.y1,f=o.y2,d=o.xAxis,h=o.yAxis;if(!d||!h)return null;var m=XE({x:d.scale,y:h.scale}),g={x:t?m.x.apply(a,{position:"start"}):m.x.rangeMin,y:r?m.y.apply(c,{position:"start"}):m.y.rangeMin},w={x:n?m.x.apply(l,{position:"end"}):m.x.rangeMax,y:i?m.y.apply(f,{position:"end"}):m.y.rangeMax};return Ti(o,"discard")&&(!m.isInRange(g)||!m.isInRange(w))?null:lz(g,w)},iy=(function(e){function t(){return Yde(this,t),Jde(this,t,arguments)}return the(t,e),Qde(t,[{key:"render",value:function(){var r=this.props,i=r.x1,o=r.x2,a=r.y1,l=r.y2,c=r.className,f=r.alwaysShow,d=r.clipPathId;ai(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=on(i),m=on(o),g=on(a),w=on(l),y=this.props.shape;if(!h&&!m&&!g&&!w&&!y)return null;var x=rhe(h,m,g,w,this.props);if(!x&&!y)return null;var S=Ti(this.props,"hidden")?"url(#".concat(d,")"):void 0;return H.createElement(rt,{className:We("recharts-reference-area",c)},t.renderRect(y,BD(BD({clipPath:S},Ie(this.props,!0)),x)),hn.renderCallByParent(this.props,x))}}])})(H.Component);ry(iy,"displayName","ReferenceArea");ry(iy,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});ry(iy,"renderRect",function(e,t){var n;return H.isValidElement(e)?n=H.cloneElement(e,t):Be(e)?n=e(t):n=H.createElement(YE,Q_({},t,{className:"recharts-reference-area-rect"})),n});function _z(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function ihe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return ude(r,n)}function ohe(e,t,n){var r=n==="width",i=e.x,o=e.y,a=e.width,l=e.height;return t===1?{start:r?i:o,end:r?i+a:o+l}:{start:r?i+a:o+l,end:r?i:o}}function Um(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function ahe(e,t){return _z(e,t+1)}function she(e,t,n,r,i){for(var o=(r||[]).slice(),a=t.start,l=t.end,c=0,f=1,d=a,h=function(){var w=r==null?void 0:r[c];if(w===void 0)return{v:_z(r,f)};var y=c,x,S=function(){return x===void 0&&(x=n(w,y)),x},P=w.coordinate,E=c===0||Um(e,P,S,d,l);E||(c=0,d=a,f+=1),E&&(d=P+e*(S()/2+i),c+=f)},m;f<=o.length;)if(m=h(),m)return m.v;return[]}function sd(e){"@babel/helpers - typeof";return sd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sd(e)}function qD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qD(Object(n),!0).forEach(function(r){lhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lhe(e,t,n){return t=uhe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uhe(e){var t=che(e,"string");return sd(t)=="symbol"?t:t+""}function che(e,t){if(sd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fhe(e,t,n,r,i){for(var o=(r||[]).slice(),a=o.length,l=t.start,c=t.end,f=function(m){var g=o[m],w,y=function(){return w===void 0&&(w=n(g,m)),w};if(m===a-1){var x=e*(g.coordinate+e*y()/2-c);o[m]=g=Pn(Pn({},g),{},{tickCoord:x>0?g.coordinate-x*e:g.coordinate})}else o[m]=g=Pn(Pn({},g),{},{tickCoord:g.coordinate});var S=Um(e,g.tickCoord,y,l,c);S&&(c=g.tickCoord-e*(y()/2+i),o[m]=Pn(Pn({},g),{},{isShow:!0}))},d=a-1;d>=0;d--)f(d);return o}function dhe(e,t,n,r,i,o){var a=(r||[]).slice(),l=a.length,c=t.start,f=t.end;if(o){var d=r[l-1],h=n(d,l-1),m=e*(d.coordinate+e*h/2-f);a[l-1]=d=Pn(Pn({},d),{},{tickCoord:m>0?d.coordinate-m*e:d.coordinate});var g=Um(e,d.tickCoord,function(){return h},c,f);g&&(f=d.tickCoord-e*(h/2+i),a[l-1]=Pn(Pn({},d),{},{isShow:!0}))}for(var w=o?l-1:l,y=function(P){var E=a[P],C,O=function(){return C===void 0&&(C=n(E,P)),C};if(P===0){var A=e*(E.coordinate-e*O()/2-c);a[P]=E=Pn(Pn({},E),{},{tickCoord:A<0?E.coordinate-A*e:E.coordinate})}else a[P]=E=Pn(Pn({},E),{},{tickCoord:E.coordinate});var j=Um(e,E.tickCoord,O,c,f);j&&(c=E.tickCoord+e*(O()/2+i),a[P]=Pn(Pn({},E),{},{isShow:!0}))},x=0;x<w;x++)y(x);return a}function rP(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,a=e.minTickGap,l=e.orientation,c=e.interval,f=e.tickFormatter,d=e.unit,h=e.angle;if(!i||!i.length||!r)return[];if(ge(c)||Ms.isSsr)return ahe(i,typeof c=="number"&&ge(c)?c:0);var m=[],g=l==="top"||l==="bottom"?"width":"height",w=d&&g==="width"?ff(d,{fontSize:t,letterSpacing:n}):{width:0,height:0},y=function(E,C){var O=Be(f)?f(E.value,C):E.value;return g==="width"?ihe(ff(O,{fontSize:t,letterSpacing:n}),w,h):ff(O,{fontSize:t,letterSpacing:n})[g]},x=i.length>=2?Bn(i[1].coordinate-i[0].coordinate):1,S=ohe(o,x,g);return c==="equidistantPreserveStart"?she(x,S,y,i,a):(c==="preserveStart"||c==="preserveStartEnd"?m=dhe(x,S,y,i,a,c==="preserveStartEnd"):m=fhe(x,S,y,i,a),m.filter(function(P){return P.isShow}))}var hhe=["viewBox"],phe=["viewBox"],mhe=["ticks"];function xu(e){"@babel/helpers - typeof";return xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xu(e)}function Ol(){return Ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ol.apply(this,arguments)}function zD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zD(Object(n),!0).forEach(function(r){iP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function L1(e,t){if(e==null)return{};var n=ghe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ghe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function yhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ez(r.key),r)}}function vhe(e,t,n){return t&&UD(e.prototype,t),n&&UD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function bhe(e,t,n){return t=Wm(t),xhe(e,Oz()?Reflect.construct(t,n||[],Wm(e).constructor):t.apply(e,n))}function xhe(e,t){if(t&&(xu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return whe(e)}function whe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Oz=function(){return!!e})()}function Wm(e){return Wm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wm(e)}function She(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z_(e,t)}function Z_(e,t){return Z_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Z_(e,t)}function iP(e,t,n){return t=Ez(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ez(e){var t=_he(e,"string");return xu(t)=="symbol"?t:t+""}function _he(e,t){if(xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Vu=(function(e){function t(n){var r;return yhe(this,t),r=bhe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return She(t,e),vhe(t,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,a=L1(r,hhe),l=this.props,c=l.viewBox,f=L1(l,phe);return!Rl(o,c)||!Rl(a,f)||!Rl(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.x,a=i.y,l=i.width,c=i.height,f=i.orientation,d=i.tickSize,h=i.mirror,m=i.tickMargin,g,w,y,x,S,P,E=h?-1:1,C=r.tickSize||d,O=ge(r.tickCoord)?r.tickCoord:r.coordinate;switch(f){case"top":g=w=r.coordinate,x=a+ +!h*c,y=x-E*C,P=y-E*m,S=O;break;case"left":y=x=r.coordinate,w=o+ +!h*l,g=w-E*C,S=g-E*m,P=O;break;case"right":y=x=r.coordinate,w=o+ +h*l,g=w+E*C,S=g+E*m,P=O;break;default:g=w=r.coordinate,x=a+ +h*c,y=x+E*C,P=y+E*m,S=O;break}return{line:{x1:g,y1:y,x2:w,y2:x},tick:{x:S,y:P}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a;switch(i){case"left":a=o?"start":"end";break;case"right":a=o?"end":"start";break;default:a="middle";break}return a}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a="end";switch(i){case"left":case"right":a="middle";break;case"top":a=o?"start":"end";break;default:a=o?"end":"start";break}return a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,l=r.height,c=r.orientation,f=r.mirror,d=r.axisLine,h=Zt(Zt(Zt({},Ie(this.props,!1)),Ie(d,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var m=+(c==="top"&&!f||c==="bottom"&&f);h=Zt(Zt({},h),{},{x1:i,y1:o+m*l,x2:i+a,y2:o+m*l})}else{var g=+(c==="left"&&!f||c==="right"&&f);h=Zt(Zt({},h),{},{x1:i+g*a,y1:o,x2:i+g*a,y2:o+l})}return H.createElement("line",Ol({},h,{className:We("recharts-cartesian-axis-line",_r(d,"className"))}))}},{key:"renderTicks",value:function(r,i,o){var a=this,l=this.props,c=l.tickLine,f=l.stroke,d=l.tick,h=l.tickFormatter,m=l.unit,g=rP(Zt(Zt({},this.props),{},{ticks:r}),i,o),w=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),x=Ie(this.props,!1),S=Ie(d,!1),P=Zt(Zt({},x),{},{fill:"none"},Ie(c,!1)),E=g.map(function(C,O){var A=a.getTickLineCoord(C),j=A.line,R=A.tick,L=Zt(Zt(Zt(Zt({textAnchor:w,verticalAnchor:y},x),{},{stroke:"none",fill:f},S),R),{},{index:O,payload:C,visibleTicksCount:g.length,tickFormatter:h});return H.createElement(rt,Ol({className:"recharts-cartesian-axis-tick",key:"tick-".concat(C.value,"-").concat(C.coordinate,"-").concat(C.tickCoord)},Ss(a.props,C,O)),c&&H.createElement("line",Ol({},P,j,{className:We("recharts-cartesian-axis-tick-line",_r(c,"className"))})),d&&t.renderTickItem(d,L,"".concat(Be(h)?h(C.value,O):C.value).concat(m||"")))});return H.createElement("g",{className:"recharts-cartesian-axis-ticks"},E)}},{key:"render",value:function(){var r=this,i=this.props,o=i.axisLine,a=i.width,l=i.height,c=i.ticksGenerator,f=i.className,d=i.hide;if(d)return null;var h=this.props,m=h.ticks,g=L1(h,mhe),w=m;return Be(c)&&(w=m&&m.length>0?c(this.props):c(g)),a<=0||l<=0||!w||!w.length?null:H.createElement(rt,{className:We("recharts-cartesian-axis",f),ref:function(x){r.layerReference=x}},o&&this.renderAxisLine(),this.renderTicks(w,this.state.fontSize,this.state.letterSpacing),hn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var a,l=We(i.className,"recharts-cartesian-axis-tick-value");return H.isValidElement(r)?a=H.cloneElement(r,Zt(Zt({},i),{},{className:l})):Be(r)?a=r(Zt(Zt({},i),{},{className:l})):a=H.createElement(_s,Ol({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}])})(T.Component);iP(Vu,"displayName","CartesianAxis");iP(Vu,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Ohe=["x1","y1","x2","y2","key"],Ehe=["offset"];function Ps(e){"@babel/helpers - typeof";return Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ps(e)}function WD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WD(Object(n),!0).forEach(function(r){Phe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Phe(e,t,n){return t=Ahe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ahe(e){var t=khe(e,"string");return Ps(t)=="symbol"?t:t+""}function khe(e,t){if(Ps(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qa(){return Qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qa.apply(this,arguments)}function HD(e,t){if(e==null)return{};var n=Che(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Che(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var The=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,o=t.y,a=t.width,l=t.height,c=t.ry;return H.createElement("rect",{x:i,y:o,ry:c,width:a,height:l,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function Pz(e,t){var n;if(H.isValidElement(e))n=H.cloneElement(e,t);else if(Be(e))n=e(t);else{var r=t.x1,i=t.y1,o=t.x2,a=t.y2,l=t.key,c=HD(t,Ohe),f=Ie(c,!1);f.offset;var d=HD(f,Ehe);n=H.createElement("line",Qa({},d,{x1:r,y1:i,x2:o,y2:a,fill:"none",key:l}))}return n}function jhe(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(l,c){var f=kn(kn({},e),{},{x1:t,y1:l,x2:t+n,y2:l,key:"line-".concat(c),index:c});return Pz(i,f)});return H.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function Nhe(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,o=e.verticalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(l,c){var f=kn(kn({},e),{},{x1:l,y1:t,x2:l,y2:t+n,key:"line-".concat(c),index:c});return Pz(i,f)});return H.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function Rhe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,o=e.width,a=e.height,l=e.horizontalPoints,c=e.horizontal,f=c===void 0?!0:c;if(!f||!t||!t.length)return null;var d=l.map(function(m){return Math.round(m+i-i)}).sort(function(m,g){return m-g});i!==d[0]&&d.unshift(0);var h=d.map(function(m,g){var w=!d[g+1],y=w?i+a-m:d[g+1]-m;if(y<=0)return null;var x=g%t.length;return H.createElement("rect",{key:"react-".concat(g),y:m,x:r,height:y,width:o,stroke:"none",fill:t[x],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return H.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function Mhe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,o=e.x,a=e.y,l=e.width,c=e.height,f=e.verticalPoints;if(!n||!r||!r.length)return null;var d=f.map(function(m){return Math.round(m+o-o)}).sort(function(m,g){return m-g});o!==d[0]&&d.unshift(0);var h=d.map(function(m,g){var w=!d[g+1],y=w?o+l-m:d[g+1]-m;if(y<=0)return null;var x=g%r.length;return H.createElement("rect",{key:"react-".concat(g),x:m,y:a,width:y,height:c,stroke:"none",fill:r[x],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return H.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var Ihe=function(t,n){var r=t.xAxis,i=t.width,o=t.height,a=t.offset;return Pq(rP(kn(kn(kn({},Vu.defaultProps),r),{},{ticks:ao(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.left,a.left+a.width,n)},Dhe=function(t,n){var r=t.yAxis,i=t.width,o=t.height,a=t.offset;return Pq(rP(kn(kn(kn({},Vu.defaultProps),r),{},{ticks:ao(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.top,a.top+a.height,n)},gl={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function oP(e){var t,n,r,i,o,a,l=ZE(),c=eP(),f=_de(),d=kn(kn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:gl.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:gl.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:gl.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:gl.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:gl.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:gl.verticalFill,x:ge(e.x)?e.x:f.left,y:ge(e.y)?e.y:f.top,width:ge(e.width)?e.width:f.width,height:ge(e.height)?e.height:f.height}),h=d.x,m=d.y,g=d.width,w=d.height,y=d.syncWithTicks,x=d.horizontalValues,S=d.verticalValues,P=xde(),E=wde();if(!ge(g)||g<=0||!ge(w)||w<=0||!ge(h)||h!==+h||!ge(m)||m!==+m)return null;var C=d.verticalCoordinatesGenerator||Ihe,O=d.horizontalCoordinatesGenerator||Dhe,A=d.horizontalPoints,j=d.verticalPoints;if((!A||!A.length)&&Be(O)){var R=x&&x.length,L=O({yAxis:E?kn(kn({},E),{},{ticks:R?x:E.ticks}):void 0,width:l,height:c,offset:f},R?!0:y);ai(Array.isArray(L),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Ps(L),"]")),Array.isArray(L)&&(A=L)}if((!j||!j.length)&&Be(C)){var q=S&&S.length,D=C({xAxis:P?kn(kn({},P),{},{ticks:q?S:P.ticks}):void 0,width:l,height:c,offset:f},q?!0:y);ai(Array.isArray(D),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Ps(D),"]")),Array.isArray(D)&&(j=D)}return H.createElement("g",{className:"recharts-cartesian-grid"},H.createElement(The,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),H.createElement(jhe,Qa({},d,{offset:f,horizontalPoints:A,xAxis:P,yAxis:E})),H.createElement(Nhe,Qa({},d,{offset:f,verticalPoints:j,xAxis:P,yAxis:E})),H.createElement(Rhe,Qa({},d,{horizontalPoints:A})),H.createElement(Mhe,Qa({},d,{verticalPoints:j})))}oP.displayName="CartesianGrid";var Lhe=["type","layout","connectNulls","ref"],$he=["key"];function wu(e){"@babel/helpers - typeof";return wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wu(e)}function VD(e,t){if(e==null)return{};var n=Fhe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fhe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function yf(){return yf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yf.apply(this,arguments)}function KD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KD(Object(n),!0).forEach(function(r){ii(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yl(e){return Uhe(e)||zhe(e)||qhe(e)||Bhe()}function Bhe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 373In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qhe(e,t){if(e){if(typeof e=="string")return eO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eO(e,t)}}function zhe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uhe(e){if(Array.isArray(e))return eO(e)}function eO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Whe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kz(r.key),r)}}function Hhe(e,t,n){return t&&GD(e.prototype,t),n&&GD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vhe(e,t,n){return t=Hm(t),Khe(e,Az()?Reflect.construct(t,n||[],Hm(e).constructor):t.apply(e,n))}function Khe(e,t){if(t&&(wu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ghe(e)}function Ghe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Az(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Az=function(){return!!e})()}function Hm(e){return Hm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hm(e)}function Yhe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tO(e,t)}function tO(e,t){return tO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tO(e,t)}function ii(e,t,n){return t=kz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kz(e){var t=Xhe(e,"string");return wu(t)=="symbol"?t:t+""}function Xhe(e,t){if(wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Id=(function(e){function t(){var n;Whe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Vhe(this,t,[].concat(i)),ii(n,"state",{isAnimationFinished:!0,totalLength:0}),ii(n,"generateSimpleStrokeDasharray",function(a,l){return"".concat(l,"px ").concat(a-l,"px")}),ii(n,"getStrokeDasharray",function(a,l,c){var f=c.reduce(function(S,P){return S+P});if(!f)return n.generateSimpleStrokeDasharray(l,a);for(var d=Math.floor(a/f),h=a%f,m=l-a,g=[],w=0,y=0;w<c.length;y+=c[w],++w)if(y+c[w]>h){g=[].concat(yl(c.slice(0,w)),[h-y]);break}var x=g.length%2===0?[0,m]:[m];return[].concat(yl(t.repeat(c,d)),yl(g),x).map(function(S){return"".concat(S,"px")}).join(", ")}),ii(n,"id",qu("recharts-line-")),ii(n,"pathRef",function(a){n.mainCurve=a}),ii(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),ii(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return Yhe(t,e),Hhe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.points,l=o.xAxis,c=o.yAxis,f=o.layout,d=o.children,h=Or(d,Md);if(!h)return null;var m=function(y,x){return{x:y.x,y:y.y,value:y.value,errorVal:nn(y.payload,x)}},g={clipPath:r?"url(#clipPath-".concat(i,")"):null};return H.createElement(rt,g,h.map(function(w){return H.cloneElement(w,{key:"bar-".concat(w.props.dataKey),data:a,xAxis:l,yAxis:c,layout:f,dataPointFormatter:m})}))}},{key:"renderDots",value:function(r,i,o){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var l=this.props,c=l.dot,f=l.points,d=l.dataKey,h=Ie(this.props,!1),m=Ie(c,!0),g=f.map(function(y,x){var S=hr(hr(hr({key:"dot-".concat(x),r:3},h),m),{},{index:x,cx:y.x,cy:y.y,value:y.value,dataKey:d,payload:y.payload,points:f});return t.renderDotItem(c,S)}),w={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return H.createElement(rt,yf({className:"recharts-line-dots",key:"dots"},w),g)}},{key:"renderCurveStatically",value:function(r,i,o,a){var l=this.props,c=l.type,f=l.layout,d=l.connectNulls;l.ref;var h=VD(l,Lhe),m=hr(hr(hr({},Ie(h,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:r},a),{},{type:c,layout:f,connectNulls:d});return H.createElement(Em,yf({},m,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var o=this,a=this.props,l=a.points,c=a.strokeDasharray,f=a.isAnimationActive,d=a.animationBegin,h=a.animationDuration,m=a.animationEasing,g=a.animationId,w=a.animateNewValues,y=a.width,x=a.height,S=this.state,P=S.prevPoints,E=S.totalLength;return H.createElement(Mi,{begin:d,duration:h,isActive:f,easing:m,from:{t:0},to:{t:1},key:"line-".concat(g),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(C){var O=C.t;if(P){var A=P.length/l.length,j=l.map(function($,B){var W=Math.floor(B*A);if(P[W]){var V=P[W],Y=br(V.x,$.x),J=br(V.y,$.y);return hr(hr({},$),{},{x:Y(O),y:J(O)})}if(w){var F=br(y*2,$.x),Z=br(x/2,$.y);return hr(hr({},$),{},{x:F(O),y:Z(O)})}return hr(hr({},$),{},{x:$.x,y:$.y})});return o.renderCurveStatically(j,r,i)}var R=br(0,E),L=R(O),q;if(c){var D="".concat(c).split(/[,\s]+/gim).map(function($){return parseFloat($)});q=o.getStrokeDasharray(L,E,D)}else q=o.generateSimpleStrokeDasharray(E,L);return o.renderCurveStatically(l,r,i,{strokeDasharray:q})})}},{key:"renderCurve",value:function(r,i){var o=this.props,a=o.points,l=o.isAnimationActive,c=this.state,f=c.prevPoints,d=c.totalLength;return l&&a&&a.length&&(!f&&d>0||!Rd(f,a))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(a,r,i)}},{key:"render",value:function(){var r,i=this.props,o=i.hide,a=i.dot,l=i.points,c=i.className,f=i.xAxis,d=i.yAxis,h=i.top,m=i.left,g=i.width,w=i.height,y=i.isAnimationActive,x=i.id;if(o||!l||!l.length)return null;var S=this.state.isAnimationFinished,P=l.length===1,E=We("recharts-line",c),C=f&&f.allowDataOverflow,O=d&&d.allowDataOverflow,A=C||O,j=ze(x)?this.id:x,R=(r=Ie(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},L=R.r,q=L===void 0?3:L,D=R.strokeWidth,$=D===void 0?2:D,B=CJ(a)?a:{},W=B.clipDot,V=W===void 0?!0:W,Y=q*2+$;return H.createElement(rt,{className:E},C||O?H.createElement("defs",null,H.createElement("clipPath",{id:"clipPath-".concat(j)},H.createElement("rect",{x:C?m:m-g/2,y:O?h:h-w/2,width:C?g:g*2,height:O?w:w*2})),!V&&H.createElement("clipPath",{id:"clipPath-dots-".concat(j)},H.createElement("rect",{x:m-Y/2,y:h-Y/2,width:g+Y,height:w+Y}))):null,!P&&this.renderCurve(A,j),this.renderErrorBar(A,j),(P||a)&&this.renderDots(A,V,j),(!y||S)&&co.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,i){for(var o=r.length%2!==0?[].concat(yl(r),[0]):r,a=[],l=0;l<i;++l)a=[].concat(yl(a),yl(o));return a}},{key:"renderDotItem",value:function(r,i){var o;if(H.isValidElement(r))o=H.cloneElement(r,i);else if(Be(r))o=r(i);else{var a=i.key,l=VD(i,$he),c=We("recharts-line-dot",typeof r!="boolean"?r.className:"");o=H.createElement(Kg,yf({key:a},l,{className:c}))}return o}}])})(T.PureComponent);ii(Id,"displayName","Line");ii(Id,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ms.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});ii(Id,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,l=e.bandSize,c=e.displayedData,f=e.offset,d=t.layout,h=c.map(function(m,g){var w=nn(m,a);return d==="horizontal"?{x:XI({axis:n,ticks:i,bandSize:l,entry:m,index:g}),y:ze(w)?null:r.scale(w),value:w,payload:m}:{x:ze(w)?null:n.scale(w),y:XI({axis:r,ticks:o,bandSize:l,entry:m,index:g}),value:w,payload:m}});return hr({points:h,layout:d},f)});function Su(e){"@babel/helpers - typeof";return Su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Su(e)}function Qhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jhe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jz(r.key),r)}}function Zhe(e,t,n){return t&&Jhe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function epe(e,t,n){return t=Vm(t),tpe(e,Cz()?Reflect.construct(t,n||[],Vm(e).constructor):t.apply(e,n))}function tpe(e,t){if(t&&(Su(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return npe(e)}function npe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cz=function(){return!!e})()}function Vm(e){return Vm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vm(e)}function rpe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nO(e,t)}function nO(e,t){return nO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},nO(e,t)}function Tz(e,t,n){return t=jz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jz(e){var t=ipe(e,"string");return Su(t)=="symbol"?t:t+""}function ipe(e,t){if(Su(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Su(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function rO(){return rO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rO.apply(this,arguments)}function ope(e){var t=e.xAxisId,n=ZE(),r=eP(),i=mz(t);return i==null?null:T.createElement(Vu,rO({},i,{className:We("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(a){return ao(a,!0)}}))}var Ku=(function(e){function t(){return Qhe(this,t),epe(this,t,arguments)}return rpe(t,e),Zhe(t,[{key:"render",value:function(){return T.createElement(ope,this.props)}}])})(T.Component);Tz(Ku,"displayName","XAxis");Tz(Ku,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function _u(e){"@babel/helpers - typeof";return _u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_u(e)}function ape(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function spe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mz(r.key),r)}}function lpe(e,t,n){return t&&spe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function upe(e,t,n){return t=Km(t),cpe(e,Nz()?Reflect.construct(t,n||[],Km(e).constructor):t.apply(e,n))}function cpe(e,t){if(t&&(_u(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fpe(e)}function fpe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nz=function(){return!!e})()}function Km(e){return Km=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Km(e)}function dpe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iO(e,t)}function iO(e,t){return iO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},iO(e,t)}function Rz(e,t,n){return t=Mz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mz(e){var t=hpe(e,"string");return _u(t)=="symbol"?t:t+""}function hpe(e,t){if(_u(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_u(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function oO(){return oO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oO.apply(this,arguments)}var ppe=function(t){var n=t.yAxisId,r=ZE(),i=eP(),o=gz(n);return o==null?null:T.createElement(Vu,oO({},o,{className:We("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(l){return ao(l,!0)}}))},Gu=(function(e){function t(){return ape(this,t),upe(this,t,arguments)}return dpe(t,e),lpe(t,[{key:"render",value:function(){return T.createElement(ppe,this.props)}}])})(T.Component);Rz(Gu,"displayName","YAxis");Rz(Gu,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function YD(e){return vpe(e)||ype(e)||gpe(e)||mpe()}function mpe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 374In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gpe(e,t){if(e){if(typeof e=="string")return aO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aO(e,t)}}function ype(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vpe(e){if(Array.isArray(e))return aO(e)}function aO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sO=function(t,n,r,i,o){var a=Or(t,nP),l=Or(t,ny),c=[].concat(YD(a),YD(l)),f=Or(t,iy),d="".concat(i,"Id"),h=i[0],m=n;if(c.length&&(m=c.reduce(function(y,x){if(x.props[d]===r&&Ti(x.props,"extendDomain")&&ge(x.props[h])){var S=x.props[h];return[Math.min(y[0],S),Math.max(y[1],S)]}return y},m)),f.length){var g="".concat(h,"1"),w="".concat(h,"2");m=f.reduce(function(y,x){if(x.props[d]===r&&Ti(x.props,"extendDomain")&&ge(x.props[g])&&ge(x.props[w])){var S=x.props[g],P=x.props[w];return[Math.min(y[0],S,P),Math.max(y[1],S,P)]}return y},m)}return o&&o.length&&(m=o.reduce(function(y,x){return ge(x)?[Math.min(y[0],x),Math.max(y[1],x)]:y},m)),m},$1={exports:{}},XD;function bpe(){return XD||(XD=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,f,d){this.fn=c,this.context=f,this.once=d||!1}function o(c,f,d,h,m){if(typeof d!="function")throw new TypeError("The listener must be a function");var g=new i(d,h||c,m),w=n?n+f:f;return c._events[w]?c._events[w].fn?c._events[w]=[c._events[w],g]:c._events[w].push(g):(c._events[w]=g,c._eventsCount++),c}function a(c,f){--c._eventsCount===0?c._events=new r:delete c._events[f]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var f=[],d,h;if(this._eventsCount===0)return f;for(h in d=this._events)t.call(d,h)&&f.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(d)):f},l.prototype.listeners=function(f){var d=n?n+f:f,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var m=0,g=h.length,w=new Array(g);m<g;m++)w[m]=h[m].fn;return w},l.prototype.listenerCount=function(f){var d=n?n+f:f,h=this._events[d];return h?h.fn?1:h.length:0},l.prototype.emit=function(f,d,h,m,g,w){var y=n?n+f:f;if(!this._events[y])return!1;var x=this._events[y],S=arguments.length,P,E;if(x.fn){switch(x.once&&this.removeListener(f,x.fn,void 0,!0),S){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,d),!0;case 3:return x.fn.call(x.context,d,h),!0;case 4:return x.fn.call(x.context,d,h,m),!0;case 5:return x.fn.call(x.context,d,h,m,g),!0;case 6:return x.fn.call(x.context,d,h,m,g,w),!0}for(E=1,P=new Array(S-1);E<S;E++)P[E-1]=arguments[E];x.fn.apply(x.context,P)}else{var C=x.length,O;for(E=0;E<C;E++)switch(x[E].once&&this.removeListener(f,x[E].fn,void 0,!0),S){case 1:x[E].fn.call(x[E].context);break;case 2:x[E].fn.call(x[E].context,d);break;case 3:x[E].fn.call(x[E].context,d,h);break;case 4:x[E].fn.call(x[E].context,d,h,m);break;default:if(!P)for(O=1,P=new Array(S-1);O<S;O++)P[O-1]=arguments[O];x[E].fn.apply(x[E].context,P)}}return!0},l.prototype.on=function(f,d,h){return o(this,f,d,h,!1)},l.prototype.once=function(f,d,h){return o(this,f,d,h,!0)},l.prototype.removeListener=function(f,d,h,m){var g=n?n+f:f;if(!this._events[g])return this;if(!d)return a(this,g),this;var w=this._events[g];if(w.fn)w.fn===d&&(!m||w.once)&&(!h||w.context===h)&&a(this,g);else{for(var y=0,x=[],S=w.length;y<S;y++)(w[y].fn!==d||m&&!w[y].once||h&&w[y].context!==h)&&x.push(w[y]);x.length?this._events[g]=x.length===1?x[0]:x:a(this,g)}return this},l.prototype.removeAllListeners=function(f){var d;return f?(d=n?n+f:f,this._events[d]&&a(this,d)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})($1)),$1.exports}var xpe=bpe();const wpe=tt(xpe);var F1=new wpe,B1="recharts.syncMouseEvents";function ld(e){"@babel/helpers - typeof";return ld=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ld(e)}function Spe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Iz(r.key),r)}}function Ope(e,t,n){return t&&_pe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function q1(e,t,n){return t=Iz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iz(e){var t=Epe(e,"string");return ld(t)=="symbol"?t:t+""}function Epe(e,t){if(ld(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ld(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ppe=(function(){function e(){Spe(this,e),q1(this,"activeIndex",0),q1(this,"coordinateList",[]),q1(this,"layout","horizontal")}return Ope(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,o=i===void 0?null:i,a=n.container,l=a===void 0?null:a,c=n.layout,f=c===void 0?null:c,d=n.offset,h=d===void 0?null:d,m=n.mouseHandlerCallback,g=m===void 0?null:m;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=f??this.layout,this.offset=h??this.offset,this.mouseHandlerCallback=g??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),o=i.x,a=i.y,l=i.height,c=this.coordinateList[this.activeIndex].coordinate,f=((n=window)===null||n===void 0?void 0:n.scrollX)||0,d=((r=window)===null||r===void 0?void 0:r.scrollY)||0,h=o+c+f,m=a+this.offset.top+l/2+d;this.mouseHandlerCallback({pageX:h,pageY:m})}}}])})();function Ape(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&ge(r)&&ge(i))return!0}return!1}function kpe(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function Dz(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,a=Pt(t,n,r,i),l=Pt(t,n,r,o);return{points:[a,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function Cpe(e,t,n){var r,i,o,a;if(e==="horizontal")r=t.x,o=r,i=n.top,a=n.top+n.height;else if(e==="vertical")i=t.y,a=i,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,c=t.cy,f=t.innerRadius,d=t.outerRadius,h=t.angle,m=Pt(l,c,f,h),g=Pt(l,c,d,h);r=m.x,i=m.y,o=g.x,a=g.y}else return Dz(t);return[{x:r,y:i},{x:o,y:a}]}function ud(e){"@babel/helpers - typeof";return ud=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ud(e)}function QD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QD(Object(n),!0).forEach(function(r){Tpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tpe(e,t,n){return t=jpe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jpe(e){var t=Npe(e,"string");return ud(t)=="symbol"?t:t+""}function Npe(e,t){if(ud(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ud(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rpe(e){var t,n,r=e.element,i=e.tooltipEventType,o=e.isActive,a=e.activeCoordinate,l=e.activePayload,c=e.offset,f=e.activeTooltipIndex,d=e.tooltipAxisBandSize,h=e.layout,m=e.chartName,g=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!g||!o||!a||m!=="ScatterChart"&&i!=="axis")return null;var w,y=Em;if(m==="ScatterChart")w=a,y=tce;else if(m==="BarChart")w=kpe(h,a,c,d),y=YE;else if(h==="radial"){var x=Dz(a),S=x.cx,P=x.cy,E=x.radius,C=x.startAngle,O=x.endAngle;w={cx:S,cy:P,startAngle:C,endAngle:O,innerRadius:E,outerRadius:E},y=Lq}else w={points:Cpe(h,a,c)},y=Em;var A=vp(vp(vp(vp({stroke:"#ccc",pointerEvents:"none"},c),w),Ie(g,!1)),{},{payload:l,payloadIndex:f,className:We("recharts-tooltip-cursor",g.className)});return T.isValidElement(g)?T.cloneElement(g,A):T.createElement(y,A)}var Mpe=["item"],Ipe=["children","className","width","height","style","compact","title","desc"];function Ou(e){"@babel/helpers - typeof";return Ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(e)}function El(){return El=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},El.apply(this,arguments)}function JD(e,t){return $pe(e)||Lpe(e,t)||$z(e,t)||Dpe()}function Dpe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 375In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lpe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){f=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(f)throw i}}return l}}function $pe(e){if(Array.isArray(e))return e}function ZD(e,t){if(e==null)return{};var n=Fpe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fpe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Bpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qpe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fz(r.key),r)}}function zpe(e,t,n){return t&&qpe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Upe(e,t,n){return t=Gm(t),Wpe(e,Lz()?Reflect.construct(t,n||[],Gm(e).constructor):t.apply(e,n))}function Wpe(e,t){if(t&&(Ou(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hpe(e)}function Hpe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lz=function(){return!!e})()}function Gm(e){return Gm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gm(e)}function Vpe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lO(e,t)}function lO(e,t){return lO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},lO(e,t)}function Eu(e){return Ype(e)||Gpe(e)||$z(e)||Kpe()}function Kpe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 376In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $z(e,t){if(e){if(typeof e=="string")return uO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uO(e,t)}}function Gpe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ype(e){if(Array.isArray(e))return uO(e)}function uO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eL(Object(n),!0).forEach(function(r){Le(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Le(e,t,n){return t=Fz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fz(e){var t=Xpe(e,"string");return Ou(t)=="symbol"?t:t+""}function Xpe(e,t){if(Ou(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ou(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qpe={xAxis:["bottom","top"],yAxis:["left","right"]},Jpe={width:"100%",height:"100%"},Bz={x:0,y:0};function bp(e){return e}var Zpe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},eme=function(t,n,r,i){var o=n.find(function(d){return d&&d.index===r});if(o){if(t==="horizontal")return{x:o.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:o.coordinate};if(t==="centric"){var a=o.coordinate,l=i.radius;return oe(oe(oe({},i),Pt(i.cx,i.cy,l,a)),{},{angle:a,radius:l})}var c=o.coordinate,f=i.angle;return oe(oe(oe({},i),Pt(i.cx,i.cy,c,f)),{},{angle:f,radius:c})}return Bz},oy=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,o=n.dataEndIndex,a=(r??[]).reduce(function(l,c){var f=c.props.data;return f&&f.length?[].concat(Eu(l),Eu(f)):l},[]);return a.length>0?a:t&&t.length&&ge(i)&&ge(o)?t.slice(i,o+1):[]};function qz(e){return e==="number"?[0,"auto"]:void 0}var cO=function(t,n,r,i){var o=t.graphicalItems,a=t.tooltipAxis,l=oy(n,t);return r<0||!o||!o.length||r>=l.length?null:o.reduce(function(c,f){var d,h=(d=f.props.data)!==null&&d!==void 0?d:n;h&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(h=h.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(a.dataKey&&!a.allowDuplicatedCategory){var g=h===void 0?l:h;m=Qp(g,a.dataKey,i)}else m=h&&h[r]||l[r];return m?[].concat(Eu(c),[jq(f,m)]):c},[])},tL=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},a=Zpe(o,r),l=t.orderedTooltipTicks,c=t.tooltipAxis,f=t.tooltipTicks,d=Pae(a,l,f,c);if(d>=0&&f){var h=f[d]&&f[d].value,m=cO(t,n,d,h),g=eme(r,l,d,o);return{activeTooltipIndex:d,activeLabel:h,activePayload:m,activeCoordinate:g}}return null},tme=function(t,n){var r=n.axes,i=n.graphicalItems,o=n.axisType,a=n.axisIdKey,l=n.stackGroups,c=n.dataStartIndex,f=n.dataEndIndex,d=t.layout,h=t.children,m=t.stackOffset,g=Eq(d,o);return r.reduce(function(w,y){var x,S=y.type.defaultProps!==void 0?oe(oe({},y.type.defaultProps),y.props):y.props,P=S.type,E=S.dataKey,C=S.allowDataOverflow,O=S.allowDuplicatedCategory,A=S.scale,j=S.ticks,R=S.includeHidden,L=S[a];if(w[L])return w;var q=oy(t.data,{graphicalItems:i.filter(function(X){var I,ue=a in X.props?X.props[a]:(I=X.type.defaultProps)===null||I===void 0?void 0:I[a];return ue===L}),dataStartIndex:c,dataEndIndex:f}),D=q.length,$,B,W;Ape(S.domain,C,P)&&($=O_(S.domain,null,C),g&&(P==="number"||A!=="auto")&&(W=hf(q,E,"category")));var V=qz(P);if(!$||$.length===0){var Y,J=(Y=S.domain)!==null&&Y!==void 0?Y:V;if(E){if($=hf(q,E,P),P==="category"&&g){var F=bJ($);O&&F?(B=$,$=Im(0,D)):O||($=e2(J,$,y).reduce(function(X,I){return X.indexOf(I)>=0?X:[].concat(Eu(X),[I])},[]))}else if(P==="category")O?$=$.filter(function(X){return X!==""&&!ze(X)}):$=e2(J,$,y).reduce(function(X,I){return X.indexOf(I)>=0||I===""||ze(I)?X:[].concat(Eu(X),[I])},[]);else if(P==="number"){var Z=jae(q,i.filter(function(X){var I,ue,xe=a in X.props?X.props[a]:(I=X.type.defaultProps)===null||I===void 0?void 0:I[a],we="hide"in X.props?X.props.hide:(ue=X.type.defaultProps)===null||ue===void 0?void 0:ue.hide;return xe===L&&(R||!we)}),E,o,d);Z&&($=Z)}g&&(P==="number"||A!=="auto")&&(W=hf(q,E,"category"))}else g?$=Im(0,D):l&&l[L]&&l[L].hasStack&&P==="number"?$=m==="expand"?[0,1]:Tq(l[L].stackGroups,c,f):$=Oq(q,i.filter(function(X){var I=a in X.props?X.props[a]:X.type.defaultProps[a],ue="hide"in X.props?X.props.hide:X.type.defaultProps.hide;return I===L&&(R||!ue)}),P,d,!0);if(P==="number")$=sO(h,$,L,o,j),J&&($=O_(J,$,C));else if(P==="category"&&J){var M=J,z=$.every(function(X){return M.indexOf(X)>=0});z&&($=M)}}return oe(oe({},w),{},Le({},L,oe(oe({},S),{},{axisType:o,domain:$,categoricalDomain:W,duplicateDomain:B,originalDomain:(x=S.domain)!==null&&x!==void 0?x:V,isCategorical:g,layout:d})))},{})},nme=function(t,n){var r=n.graphicalItems,i=n.Axis,o=n.axisType,a=n.axisIdKey,l=n.stackGroups,c=n.dataStartIndex,f=n.dataEndIndex,d=t.layout,h=t.children,m=oy(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:f}),g=m.length,w=Eq(d,o),y=-1;return r.reduce(function(x,S){var P=S.type.defaultProps!==void 0?oe(oe({},S.type.defaultProps),S.props):S.props,E=P[a],C=qz("number");if(!x[E]){y++;var O;return w?O=Im(0,g):l&&l[E]&&l[E].hasStack?(O=Tq(l[E].stackGroups,c,f),O=sO(h,O,E,o)):(O=O_(C,Oq(m,r.filter(function(A){var j,R,L=a in A.props?A.props[a]:(j=A.type.defaultProps)===null||j===void 0?void 0:j[a],q="hide"in A.props?A.props.hide:(R=A.type.defaultProps)===null||R===void 0?void 0:R.hide;return L===E&&!q}),"number",d),i.defaultProps.allowDataOverflow),O=sO(h,O,E,o)),oe(oe({},x),{},Le({},E,oe(oe({axisType:o},i.defaultProps),{},{hide:!0,orientation:_r(Qpe,"".concat(o,".").concat(y%2),null),domain:O,originalDomain:C,isCategorical:w,layout:d})))}return x},{})},rme=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,o=n.AxisComp,a=n.graphicalItems,l=n.stackGroups,c=n.dataStartIndex,f=n.dataEndIndex,d=t.children,h="".concat(i,"Id"),m=Or(d,o),g={};return m&&m.length?g=tme(t,{axes:m,graphicalItems:a,axisType:i,axisIdKey:h,stackGroups:l,dataStartIndex:c,dataEndIndex:f}):a&&a.length&&(g=nme(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:h,stackGroups:l,dataStartIndex:c,dataEndIndex:f})),g},ime=function(t){var n=Go(t),r=ao(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:SE(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Sm(n,r)}},nL=function(t){var n=t.children,r=t.defaultShowTooltip,i=gr(n,mu),o=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(a=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},ome=function(t){return!t||!t.length?!1:t.some(function(n){var r=lo(n&&n.type);return r&&r.indexOf("Bar")>=0})},rL=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},ame=function(t,n){var r=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,l=t.yAxisMap,c=l===void 0?{}:l,f=r.width,d=r.height,h=r.children,m=r.margin||{},g=gr(h,mu),w=gr(h,fs),y=Object.keys(c).reduce(function(O,A){var j=c[A],R=j.orientation;return!j.mirror&&!j.hide?oe(oe({},O),{},Le({},R,O[R]+j.width)):O},{left:m.left||0,right:m.right||0}),x=Object.keys(a).reduce(function(O,A){var j=a[A],R=j.orientation;return!j.mirror&&!j.hide?oe(oe({},O),{},Le({},R,_r(O,"".concat(R))+j.height)):O},{top:m.top||0,bottom:m.bottom||0}),S=oe(oe({},x),y),P=S.bottom;g&&(S.bottom+=g.props.height||mu.defaultProps.height),w&&n&&(S=Cae(S,i,r,n));var E=f-S.left-S.right,C=d-S.top-S.bottom;return oe(oe({brushBottom:P},S),{},{width:Math.max(E,0),height:Math.max(C,0)})},sme=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},aP=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,a=t.validateTooltipEventTypes,l=a===void 0?["axis"]:a,c=t.axisComponents,f=t.legendContent,d=t.formatAxisMap,h=t.defaultProps,m=function(S,P){var E=P.graphicalItems,C=P.stackGroups,O=P.offset,A=P.updateId,j=P.dataStartIndex,R=P.dataEndIndex,L=S.barSize,q=S.layout,D=S.barGap,$=S.barCategoryGap,B=S.maxBarSize,W=rL(q),V=W.numericAxisName,Y=W.cateAxisName,J=ome(E),F=[];return E.forEach(function(Z,M){var z=oy(S.data,{graphicalItems:[Z],dataStartIndex:j,dataEndIndex:R}),X=Z.type.defaultProps!==void 0?oe(oe({},Z.type.defaultProps),Z.props):Z.props,I=X.dataKey,ue=X.maxBarSize,xe=X["".concat(V,"Id")],we=X["".concat(Y,"Id")],le={},ve=c.reduce(function(wn,sr){var wo=P["".concat(sr.axisType,"Map")],wa=X["".concat(sr.axisType,"Id")];wo&&wo[wa]||sr.axisType==="zAxis"||Es();var Sa=wo[wa];return oe(oe({},wn),{},Le(Le({},sr.axisType,Sa),"".concat(sr.axisType,"Ticks"),ao(Sa)))},le),ae=ve[Y],he=ve["".concat(Y,"Ticks")],be=C&&C[xe]&&C[xe].hasStack&&Bae(Z,C[xe].stackGroups),ie=lo(Z.type).indexOf("Bar")>=0,Ue=Sm(ae,he),De=[],ot=J&&Aae({barSize:L,stackGroups:C,totalSize:sme(ve,Y)});if(ie){var at,bt,Mn=ze(ue)?B:ue,sn=(at=(bt=Sm(ae,he,!0))!==null&&bt!==void 0?bt:Mn)!==null&&at!==void 0?at:0;De=kae({barGap:D,barCategoryGap:$,bandSize:sn!==Ue?sn:Ue,sizeList:ot[we],maxBarSize:Mn}),sn!==Ue&&(De=De.map(function(wn){return oe(oe({},wn),{},{position:oe(oe({},wn.position),{},{offset:wn.position.offset-sn/2})})}))}var ar=Z&&Z.type&&Z.type.getComposedData;ar&&F.push({props:oe(oe({},ar(oe(oe({},ve),{},{displayedData:z,props:S,dataKey:I,item:Z,bandSize:Ue,barPosition:De,offset:O,stackedData:be,layout:q,dataStartIndex:j,dataEndIndex:R}))),{},Le(Le(Le({key:Z.key||"item-".concat(M)},V,ve[V]),Y,ve[Y]),"animationId",A)),childIndex:NJ(Z,S.children),item:Z})}),F},g=function(S,P){var E=S.props,C=S.dataStartIndex,O=S.dataEndIndex,A=S.updateId;if(!pN({props:E}))return null;var j=E.children,R=E.layout,L=E.stackOffset,q=E.data,D=E.reverseStackOrder,$=rL(R),B=$.numericAxisName,W=$.cateAxisName,V=Or(j,r),Y=$ae(q,V,"".concat(B,"Id"),"".concat(W,"Id"),L,D),J=c.reduce(function(X,I){var ue="".concat(I.axisType,"Map");return oe(oe({},X),{},Le({},ue,rme(E,oe(oe({},I),{},{graphicalItems:V,stackGroups:I.axisType===B&&Y,dataStartIndex:C,dataEndIndex:O}))))},{}),F=ame(oe(oe({},J),{},{props:E,graphicalItems:V}),P==null?void 0:P.legendBBox);Object.keys(J).forEach(function(X){J[X]=d(E,J[X],F,X.replace("Map",""),n)});var Z=J["".concat(W,"Map")],M=ime(Z),z=m(E,oe(oe({},J),{},{dataStartIndex:C,dataEndIndex:O,updateId:A,graphicalItems:V,stackGroups:Y,offset:F}));return oe(oe({formattedGraphicalItems:z,graphicalItems:V,offset:F,stackGroups:Y},M),J)},w=(function(x){function S(P){var E,C,O;return Bpe(this,S),O=Upe(this,S,[P]),Le(O,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Le(O,"accessibilityManager",new Ppe),Le(O,"handleLegendBBoxUpdate",function(A){if(A){var j=O.state,R=j.dataStartIndex,L=j.dataEndIndex,q=j.updateId;O.setState(oe({legendBBox:A},g({props:O.props,dataStartIndex:R,dataEndIndex:L,updateId:q},oe(oe({},O.state),{},{legendBBox:A}))))}}),Le(O,"handleReceiveSyncEvent",function(A,j,R){if(O.props.syncId===A){if(R===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent(j)}}),Le(O,"handleBrushChange",function(A){var j=A.startIndex,R=A.endIndex;if(j!==O.state.dataStartIndex||R!==O.state.dataEndIndex){var L=O.state.updateId;O.setState(function(){return oe({dataStartIndex:j,dataEndIndex:R},g({props:O.props,dataStartIndex:j,dataEndIndex:R,updateId:L},O.state))}),O.triggerSyncEvent({dataStartIndex:j,dataEndIndex:R})}}),Le(O,"handleMouseEnter",function(A){var j=O.getMouseInfo(A);if(j){var R=oe(oe({},j),{},{isTooltipActive:!0});O.setState(R),O.triggerSyncEvent(R);var L=O.props.onMouseEnter;Be(L)&&L(R,A)}}),Le(O,"triggeredAfterMouseMove",function(A){var j=O.getMouseInfo(A),R=j?oe(oe({},j),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(R),O.triggerSyncEvent(R);var L=O.props.onMouseMove;Be(L)&&L(R,A)}),Le(O,"handleItemMouseEnter",function(A){O.setState(function(){return{isTooltipActive:!0,activeItem:A,activePayload:A.tooltipPayload,activeCoordinate:A.tooltipPosition||{x:A.cx,y:A.cy}}})}),Le(O,"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),Le(O,"handleMouseMove",function(A){A.persist(),O.throttleTriggeredAfterMouseMove(A)}),Le(O,"handleMouseLeave",function(A){O.throttleTriggeredAfterMouseMove.cancel();var j={isTooltipActive:!1};O.setState(j),O.triggerSyncEvent(j);var R=O.props.onMouseLeave;Be(R)&&R(j,A)}),Le(O,"handleOuterEvent",function(A){var j=jJ(A),R=_r(O.props,"".concat(j));if(j&&Be(R)){var L,q;/.*touch.*/i.test(j)?q=O.getMouseInfo(A.changedTouches[0]):q=O.getMouseInfo(A),R((L=q)!==null&&L!==void 0?L:{},A)}}),Le(O,"handleClick",function(A){var j=O.getMouseInfo(A);if(j){var R=oe(oe({},j),{},{isTooltipActive:!0});O.setState(R),O.triggerSyncEvent(R);var L=O.props.onClick;Be(L)&&L(R,A)}}),Le(O,"handleMouseDown",function(A){var j=O.props.onMouseDown;if(Be(j)){var R=O.getMouseInfo(A);j(R,A)}}),Le(O,"handleMouseUp",function(A){var j=O.props.onMouseUp;if(Be(j)){var R=O.getMouseInfo(A);j(R,A)}}),Le(O,"handleTouchMove",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(A.changedTouches[0])}),Le(O,"handleTouchStart",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&O.handleMouseDown(A.changedTouches[0])}),Le(O,"handleTouchEnd",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&O.handleMouseUp(A.changedTouches[0])}),Le(O,"handleDoubleClick",function(A){var j=O.props.onDoubleClick;if(Be(j)){var R=O.getMouseInfo(A);j(R,A)}}),Le(O,"handleContextMenu",function(A){var j=O.props.onContextMenu;if(Be(j)){var R=O.getMouseInfo(A);j(R,A)}}),Le(O,"triggerSyncEvent",function(A){O.props.syncId!==void 0&&F1.emit(B1,O.props.syncId,A,O.eventEmitterSymbol)}),Le(O,"applySyncEvent",function(A){var j=O.props,R=j.layout,L=j.syncMethod,q=O.state.updateId,D=A.dataStartIndex,$=A.dataEndIndex;if(A.dataStartIndex!==void 0||A.dataEndIndex!==void 0)O.setState(oe({dataStartIndex:D,dataEndIndex:$},g({props:O.props,dataStartIndex:D,dataEndIndex:$,updateId:q},O.state)));else if(A.activeTooltipIndex!==void 0){var B=A.chartX,W=A.chartY,V=A.activeTooltipIndex,Y=O.state,J=Y.offset,F=Y.tooltipTicks;if(!J)return;if(typeof L=="function")V=L(F,A);else if(L==="value"){V=-1;for(var Z=0;Z<F.length;Z++)if(F[Z].value===A.activeLabel){V=Z;break}}var M=oe(oe({},J),{},{x:J.left,y:J.top}),z=Math.min(B,M.x+M.width),X=Math.min(W,M.y+M.height),I=F[V]&&F[V].value,ue=cO(O.state,O.props.data,V),xe=F[V]?{x:R==="horizontal"?F[V].coordinate:z,y:R==="horizontal"?X:F[V].coordinate}:Bz;O.setState(oe(oe({},A),{},{activeLabel:I,activeCoordinate:xe,activePayload:ue,activeTooltipIndex:V}))}else O.setState(A)}),Le(O,"renderCursor",function(A){var j,R=O.state,L=R.isTooltipActive,q=R.activeCoordinate,D=R.activePayload,$=R.offset,B=R.activeTooltipIndex,W=R.tooltipAxisBandSize,V=O.getTooltipEventType(),Y=(j=A.props.active)!==null&&j!==void 0?j:L,J=O.props.layout,F=A.key||"_recharts-cursor";return H.createElement(Rpe,{key:F,activeCoordinate:q,activePayload:D,activeTooltipIndex:B,chartName:n,element:A,isActive:Y,layout:J,offset:$,tooltipAxisBandSize:W,tooltipEventType:V})}),Le(O,"renderPolarAxis",function(A,j,R){var L=_r(A,"type.axisType"),q=_r(O.state,"".concat(L,"Map")),D=A.type.defaultProps,$=D!==void 0?oe(oe({},D),A.props):A.props,B=q&&q[$["".concat(L,"Id")]];return T.cloneElement(A,oe(oe({},B),{},{className:We(L,B.className),key:A.key||"".concat(j,"-").concat(R),ticks:ao(B,!0)}))}),Le(O,"renderPolarGrid",function(A){var j=A.props,R=j.radialLines,L=j.polarAngles,q=j.polarRadius,D=O.state,$=D.radiusAxisMap,B=D.angleAxisMap,W=Go($),V=Go(B),Y=V.cx,J=V.cy,F=V.innerRadius,Z=V.outerRadius;return T.cloneElement(A,{polarAngles:Array.isArray(L)?L:ao(V,!0).map(function(M){return M.coordinate}),polarRadius:Array.isArray(q)?q:ao(W,!0).map(function(M){return M.coordinate}),cx:Y,cy:J,innerRadius:F,outerRadius:Z,key:A.key||"polar-grid",radialLines:R})}),Le(O,"renderLegend",function(){var A=O.state.formattedGraphicalItems,j=O.props,R=j.children,L=j.width,q=j.height,D=O.props.margin||{},$=L-(D.left||0)-(D.right||0),B=Sq({children:R,formattedGraphicalItems:A,legendWidth:$,legendContent:f});if(!B)return null;var W=B.item,V=ZD(B,Mpe);return T.cloneElement(W,oe(oe({},V),{},{chartWidth:L,chartHeight:q,margin:D,onBBoxUpdate:O.handleLegendBBoxUpdate}))}),Le(O,"renderTooltip",function(){var A,j=O.props,R=j.children,L=j.accessibilityLayer,q=gr(R,yr);if(!q)return null;var D=O.state,$=D.isTooltipActive,B=D.activeCoordinate,W=D.activePayload,V=D.activeLabel,Y=D.offset,J=(A=q.props.active)!==null&&A!==void 0?A:$;return T.cloneElement(q,{viewBox:oe(oe({},Y),{},{x:Y.left,y:Y.top}),active:J,label:V,payload:J?W:[],coordinate:B,accessibilityLayer:L})}),Le(O,"renderBrush",function(A){var j=O.props,R=j.margin,L=j.data,q=O.state,D=q.offset,$=q.dataStartIndex,B=q.dataEndIndex,W=q.updateId;return T.cloneElement(A,{key:A.key||"_recharts-brush",onChange:pp(O.handleBrushChange,A.props.onChange),data:L,x:ge(A.props.x)?A.props.x:D.left,y:ge(A.props.y)?A.props.y:D.top+D.height+D.brushBottom-(R.bottom||0),width:ge(A.props.width)?A.props.width:D.width,startIndex:$,endIndex:B,updateId:"brush-".concat(W)})}),Le(O,"renderReferenceElement",function(A,j,R){if(!A)return null;var L=O,q=L.clipPathId,D=O.state,$=D.xAxisMap,B=D.yAxisMap,W=D.offset,V=A.type.defaultProps||{},Y=A.props,J=Y.xAxisId,F=J===void 0?V.xAxisId:J,Z=Y.yAxisId,M=Z===void 0?V.yAxisId:Z;return T.cloneElement(A,{key:A.key||"".concat(j,"-").concat(R),xAxis:$[F],yAxis:B[M],viewBox:{x:W.left,y:W.top,width:W.width,height:W.height},clipPathId:q})}),Le(O,"renderActivePoints",function(A){var j=A.item,R=A.activePoint,L=A.basePoint,q=A.childIndex,D=A.isRange,$=[],B=j.props.key,W=j.item.type.defaultProps!==void 0?oe(oe({},j.item.type.defaultProps),j.item.props):j.item.props,V=W.activeDot,Y=W.dataKey,J=oe(oe({index:q,dataKey:Y,cx:R.x,cy:R.y,r:4,fill:GE(j.item),strokeWidth:2,stroke:"#fff",payload:R.payload,value:R.value},Ie(V,!1)),Jp(V));return $.push(S.renderActiveDot(V,J,"".concat(B,"-activePoint-").concat(q))),L?$.push(S.renderActiveDot(V,oe(oe({},J),{},{cx:L.x,cy:L.y}),"".concat(B,"-basePoint-").concat(q))):D&&$.push(null),$}),Le(O,"renderGraphicChild",function(A,j,R){var L=O.filterFormatItem(A,j,R);if(!L)return null;var q=O.getTooltipEventType(),D=O.state,$=D.isTooltipActive,B=D.tooltipAxis,W=D.activeTooltipIndex,V=D.activeLabel,Y=O.props.children,J=gr(Y,yr),F=L.props,Z=F.points,M=F.isRange,z=F.baseLine,X=L.item.type.defaultProps!==void 0?oe(oe({},L.item.type.defaultProps),L.item.props):L.item.props,I=X.activeDot,ue=X.hide,xe=X.activeBar,we=X.activeShape,le=!!(!ue&&$&&J&&(I||xe||we)),ve={};q!=="axis"&&J&&J.props.trigger==="click"?ve={onClick:pp(O.handleItemMouseEnter,A.props.onClick)}:q!=="axis"&&(ve={onMouseLeave:pp(O.handleItemMouseLeave,A.props.onMouseLeave),onMouseEnter:pp(O.handleItemMouseEnter,A.props.onMouseEnter)});var ae=T.cloneElement(A,oe(oe({},L.props),ve));function he(sr){return typeof B.dataKey=="function"?B.dataKey(sr.payload):null}if(le)if(W>=0){var be,ie;if(B.dataKey&&!B.allowDuplicatedCategory){var Ue=typeof B.dataKey=="function"?he:"payload.".concat(B.dataKey.toString());be=Qp(Z,Ue,V),ie=M&&z&&Qp(z,Ue,V)}else be=Z==null?void 0:Z[W],ie=M&&z&&z[W];if(we||xe){var De=A.props.activeIndex!==void 0?A.props.activeIndex:W;return[T.cloneElement(A,oe(oe(oe({},L.props),ve),{},{activeIndex:De})),null,null]}if(!ze(be))return[ae].concat(Eu(O.renderActivePoints({item:L,activePoint:be,basePoint:ie,childIndex:W,isRange:M})))}else{var ot,at=(ot=O.getItemByXY(O.state.activeCoordinate))!==null&&ot!==void 0?ot:{graphicalItem:ae},bt=at.graphicalItem,Mn=bt.item,sn=Mn===void 0?A:Mn,ar=bt.childIndex,wn=oe(oe(oe({},L.props),ve),{},{activeIndex:ar});return[T.cloneElement(sn,wn),null,null]}return M?[ae,null,null]:[ae,null]}),Le(O,"renderCustomized",function(A,j,R){return T.cloneElement(A,oe(oe({key:"recharts-customized-".concat(R)},O.props),O.state))}),Le(O,"renderMap",{CartesianGrid:{handler:bp,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:bp},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:bp},YAxis:{handler:bp},Brush:{handler:O.renderBrush,once:!0},Bar:{handler:O.renderGraphicChild},Line:{handler:O.renderGraphicChild},Area:{handler:O.renderGraphicChild},Radar:{handler:O.renderGraphicChild},RadialBar:{handler:O.renderGraphicChild},Scatter:{handler:O.renderGraphicChild},Pie:{handler:O.renderGraphicChild},Funnel:{handler:O.renderGraphicChild},Tooltip:{handler:O.renderCursor,once:!0},PolarGrid:{handler:O.renderPolarGrid,once:!0},PolarAngleAxis:{handler:O.renderPolarAxis},PolarRadiusAxis:{handler:O.renderPolarAxis},Customized:{handler:O.renderCustomized}}),O.clipPathId="".concat((E=P.id)!==null&&E!==void 0?E:qu("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=w3(O.triggeredAfterMouseMove,(C=P.throttleDelay)!==null&&C!==void 0?C:1e3/60),O.state={},O}return Vpe(S,x),zpe(S,[{key:"componentDidMount",value:function(){var E,C;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(E=this.props.margin.left)!==null&&E!==void 0?E:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var E=this.props,C=E.children,O=E.data,A=E.height,j=E.layout,R=gr(C,yr);if(R){var L=R.props.defaultIndex;if(!(typeof L!="number"||L<0||L>this.state.tooltipTicks.length-1)){var q=this.state.tooltipTicks[L]&&this.state.tooltipTicks[L].value,D=cO(this.state,O,L,q),$=this.state.tooltipTicks[L].coordinate,B=(this.state.offset.top+A)/2,W=j==="horizontal",V=W?{x:$,y:B}:{y:$,x:B},Y=this.state.formattedGraphicalItems.find(function(F){var Z=F.item;return Z.type.name==="Scatter"});Y&&(V=oe(oe({},V),Y.props.points[L].tooltipPosition),D=Y.props.points[L].tooltipPayload);var J={activeTooltipIndex:L,isTooltipActive:!0,activeLabel:q,activePayload:D,activeCoordinate:V};this.setState(J),this.renderCursor(R),this.accessibilityManager.setIndex(L)}}}},{key:"getSnapshotBeforeUpdate",value:function(E,C){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==C.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==E.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==E.margin){var O,A;this.accessibilityManager.setDetails({offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0}})}return null}},{key:"componentDidUpdate",value:function(E){VS([gr(E.children,yr)],[gr(this.props.children,yr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var E=gr(this.props.children,yr);if(E&&typeof E.props.shared=="boolean"){var C=E.props.shared?"axis":"item";return l.indexOf(C)>=0?C:o}return o}},{key:"getMouseInfo",value:function(E){if(!this.container)return null;var C=this.container,O=C.getBoundingClientRect(),A=vne(O),j={chartX:Math.round(E.pageX-A.left),chartY:Math.round(E.pageY-A.top)},R=O.width/C.offsetWidth||1,L=this.inRange(j.chartX,j.chartY,R);if(!L)return null;var q=this.state,D=q.xAxisMap,$=q.yAxisMap,B=this.getTooltipEventType(),W=tL(this.state,this.props.data,this.props.layout,L);if(B!=="axis"&&D&&$){var V=Go(D).scale,Y=Go($).scale,J=V&&V.invert?V.invert(j.chartX):null,F=Y&&Y.invert?Y.invert(j.chartY):null;return oe(oe({},j),{},{xValue:J,yValue:F},W)}return W?oe(oe({},j),W):null}},{key:"inRange",value:function(E,C){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,A=this.props.layout,j=E/O,R=C/O;if(A==="horizontal"||A==="vertical"){var L=this.state.offset,q=j>=L.left&&j<=L.left+L.width&&R>=L.top&&R<=L.top+L.height;return q?{x:j,y:R}:null}var D=this.state,$=D.angleAxisMap,B=D.radiusAxisMap;if($&&B){var W=Go($);return r2({x:j,y:R},W)}return null}},{key:"parseEventsOfWrapper",value:function(){var E=this.props.children,C=this.getTooltipEventType(),O=gr(E,yr),A={};O&&C==="axis"&&(O.props.trigger==="click"?A={onClick:this.handleClick}:A={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var j=Jp(this.props,this.handleOuterEvent);return oe(oe({},j),A)}},{key:"addListener",value:function(){F1.on(B1,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){F1.removeListener(B1,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(E,C,O){for(var A=this.state.formattedGraphicalItems,j=0,R=A.length;j<R;j++){var L=A[j];if(L.item===E||L.props.key===E.key||C===lo(L.item.type)&&O===L.childIndex)return L}return null}},{key:"renderClipPath",value:function(){var E=this.clipPathId,C=this.state.offset,O=C.left,A=C.top,j=C.height,R=C.width;return H.createElement("defs",null,H.createElement("clipPath",{id:E},H.createElement("rect",{x:O,y:A,height:j,width:R})))}},{key:"getXScales",value:function(){var E=this.state.xAxisMap;return E?Object.entries(E).reduce(function(C,O){var A=JD(O,2),j=A[0],R=A[1];return oe(oe({},C),{},Le({},j,R.scale))},{}):null}},{key:"getYScales",value:function(){var E=this.state.yAxisMap;return E?Object.entries(E).reduce(function(C,O){var A=JD(O,2),j=A[0],R=A[1];return oe(oe({},C),{},Le({},j,R.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(E){var C;return(C=this.state.xAxisMap)===null||C===void 0||(C=C[E])===null||C===void 0?void 0:C.scale}},{key:"getYScaleByAxisId",value:function(E){var C;return(C=this.state.yAxisMap)===null||C===void 0||(C=C[E])===null||C===void 0?void 0:C.scale}},{key:"getItemByXY",value:function(E){var C=this.state,O=C.formattedGraphicalItems,A=C.activeItem;if(O&&O.length)for(var j=0,R=O.length;j<R;j++){var L=O[j],q=L.props,D=L.item,$=D.type.defaultProps!==void 0?oe(oe({},D.type.defaultProps),D.props):D.props,B=lo(D.type);if(B==="Bar"){var W=(q.data||[]).find(function(F){return Iue(E,F)});if(W)return{graphicalItem:L,payload:W}}else if(B==="RadialBar"){var V=(q.data||[]).find(function(F){return r2(E,F)});if(V)return{graphicalItem:L,payload:V}}else if(Jg(L,A)||Zg(L,A)||rd(L,A)){var Y=ife({graphicalItem:L,activeTooltipItem:A,itemData:$.data}),J=$.activeIndex===void 0?Y:$.activeIndex;return{graphicalItem:oe(oe({},L),{},{childIndex:J}),payload:rd(L,A)?$.data[Y]:L.props.data[Y]}}}return null}},{key:"render",value:function(){var E=this;if(!pN(this))return null;var C=this.props,O=C.children,A=C.className,j=C.width,R=C.height,L=C.style,q=C.compact,D=C.title,$=C.desc,B=ZD(C,Ipe),W=Ie(B,!1);if(q)return H.createElement(RD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},H.createElement(GS,El({},W,{width:j,height:R,title:D,desc:$}),this.renderClipPath(),gN(O,this.renderMap)));if(this.props.accessibilityLayer){var V,Y;W.tabIndex=(V=this.props.tabIndex)!==null&&V!==void 0?V:0,W.role=(Y=this.props.role)!==null&&Y!==void 0?Y:"application",W.onKeyDown=function(F){E.accessibilityManager.keyboardEvent(F)},W.onFocus=function(){E.accessibilityManager.focus()}}var J=this.parseEventsOfWrapper();return H.createElement(RD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},H.createElement("div",El({className:We("recharts-wrapper",A),style:oe({position:"relative",cursor:"default",width:j,height:R},L)},J,{ref:function(Z){E.container=Z}}),H.createElement(GS,El({},W,{width:j,height:R,title:D,desc:$,style:Jpe}),this.renderClipPath(),gN(O,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(T.Component);Le(w,"displayName",n),Le(w,"defaultProps",oe({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h)),Le(w,"getDerivedStateFromProps",function(x,S){var P=x.dataKey,E=x.data,C=x.children,O=x.width,A=x.height,j=x.layout,R=x.stackOffset,L=x.margin,q=S.dataStartIndex,D=S.dataEndIndex;if(S.updateId===void 0){var $=nL(x);return oe(oe(oe({},$),{},{updateId:0},g(oe(oe({props:x},$),{},{updateId:0}),S)),{},{prevDataKey:P,prevData:E,prevWidth:O,prevHeight:A,prevLayout:j,prevStackOffset:R,prevMargin:L,prevChildren:C})}if(P!==S.prevDataKey||E!==S.prevData||O!==S.prevWidth||A!==S.prevHeight||j!==S.prevLayout||R!==S.prevStackOffset||!Rl(L,S.prevMargin)){var B=nL(x),W={chartX:S.chartX,chartY:S.chartY,isTooltipActive:S.isTooltipActive},V=oe(oe({},tL(S,E,j)),{},{updateId:S.updateId+1}),Y=oe(oe(oe({},B),W),V);return oe(oe(oe({},Y),g(oe({props:x},Y),S)),{},{prevDataKey:P,prevData:E,prevWidth:O,prevHeight:A,prevLayout:j,prevStackOffset:R,prevMargin:L,prevChildren:C})}if(!VS(C,S.prevChildren)){var J,F,Z,M,z=gr(C,mu),X=z&&(J=(F=z.props)===null||F===void 0?void 0:F.startIndex)!==null&&J!==void 0?J:q,I=z&&(Z=(M=z.props)===null||M===void 0?void 0:M.endIndex)!==null&&Z!==void 0?Z:D,ue=X!==q||I!==D,xe=!ze(E),we=xe&&!ue?S.updateId:S.updateId+1;return oe(oe({updateId:we},g(oe(oe({props:x},S),{},{updateId:we,dataStartIndex:X,dataEndIndex:I}),S)),{},{prevChildren:C,dataStartIndex:X,dataEndIndex:I})}return null}),Le(w,"renderActiveDot",function(x,S,P){var E;return T.isValidElement(x)?E=T.cloneElement(x,S):Be(x)?E=x(S):E=H.createElement(Kg,S),H.createElement(rt,{className:"recharts-active-dot",ke
376y:P},E)});var y=T.forwardRef(function(S,P){return H.createElement(w,El({},S,{ref:P}))});return y.displayName=w.displayName,y},lme=aP({chartName:"LineChart",GraphicalChild:Id,axisComponents:[{axisType:"xAxis",AxisComp:Ku},{axisType:"yAxis",AxisComp:Gu}],formatAxisMap:sz}),ume=aP({chartName:"BarChart",GraphicalChild:ha,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Ku},{axisType:"yAxis",AxisComp:Gu}],formatAxisMap:sz}),zz=aP({chartName:"PieChart",GraphicalChild:Fi,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Qg},{axisType:"radiusAxis",AxisComp:Yg}],formatAxisMap:Xae,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function cme({transactions:e,isLoading:t}){const r=(()=>{const i={};return e.forEach(o=>{const a=new Date(o.date),l=`${a.getFullYear()}-${String(a.getMonth()+1).padStart(2,"0")}`;i[l]||(i[l]={income:0,expenses:0}),o.type==="income"?i[l].income+=o.amount:i[l].expenses+=o.amount}),Object.entries(i).map(([o,a])=>({month:new Date(o+"-01").toLocaleDateString("en-US",{month:"short",year:"2-digit"}),savingsRate:a.income>0?(a.income-a.expenses)/a.income*100:0,savings:a.income-a.expenses})).sort((o,a)=>o.month.localeCompare(a.month)).slice(-12)})();return v.jsxs(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg",children:[v.jsxs(Tn,{className:"pb-4",children:[v.jsx(jn,{className:"text-xl font-bold text-slate-900",children:"Savings Rate Trend"}),v.jsx("p",{className:"text-slate-600",children:"Monthly savings rate over the last 12 months"})]}),v.jsx(Nt,{children:t?v.jsx(vt,{className:"h-80 w-full"}):v.jsx(Ig,{width:"100%",height:300,children:v.jsxs(lme,{data:r,children:[v.jsx(oP,{strokeDasharray:"3 3",stroke:"#e2e8f0"}),v.jsx(Ku,{dataKey:"month",stroke:"#64748b"}),v.jsx(Gu,{stroke:"#64748b"}),v.jsx(yr,{content:({active:i,payload:o,label:a})=>i&&o&&o.length?v.jsxs("div",{className:"bg-white p-4 border border-slate-200 rounded-lg shadow-lg",children:[v.jsx("p",{className:"font-medium text-slate-900",children:a}),v.jsxs("p",{className:"text-emerald-600",children:["Savings Rate: ",o[0].value.toFixed(1),"%"]}),v.jsxs("p",{className:"text-slate-600",children:["Savings: â¬",o[0].payload.savings.toLocaleString()]})]}):null}),v.jsx(Id,{type:"monotone",dataKey:"savingsRate",stroke:"#059669",strokeWidth:3,dot:{fill:"#059669",strokeWidth:2,r:4},activeDot:{r:6,stroke:"#059669",strokeWidth:2}})]})})})]})}const fme={rent:"#ef4444",mortgage:"#dc2626",groceries:"#f97316",transportation:"#eab308",dining_out:"#84cc16",utilities:"#06b6d4",insurance:"#3b82f6",healthcare:"#8b5cf6",entertainment:"#ec4899",shopping:"#f43f5e",other_expense:"#64748b"};function dme({transactions:e,isLoading:t}){const r=(()=>{const i={};return e.filter(o=>o.type==="expense").forEach(o=>{i[o.category]||(i[o.category]=0),i[o.category]+=o.amount}),Object.entries(i).map(([o,a])=>({name:o.replace(/_/g," ").replace(/\b\w/g,l=>l.toUpperCase()),value:a,color:fme[o]||"#64748b"})).sort((o,a)=>a.value-o.value)})();return v.jsxs(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg",children:[v.jsxs(Tn,{className:"pb-4",children:[v.jsx(jn,{className:"text-xl font-bold text-slate-900",children:"Expense Breakdown"}),v.jsx("p",{className:"text-slate-600",children:"Where your money goes each month"})]}),v.jsx(Nt,{children:t?v.jsxs("div",{className:"flex",children:[v.jsx(vt,{className:"h-80 w-80"}),v.jsx("div",{className:"flex-1 ml-6 space-y-4",children:Array(6).fill(0).map((i,o)=>v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx(vt,{className:"h-4 w-4 rounded"}),v.jsx(vt,{className:"h-4 flex-1"}),v.jsx(vt,{className:"h-4 w-16"})]},o))})]}):r.length>0?v.jsxs("div",{className:"flex flex-col lg:flex-row items-center gap-6",children:[v.jsx("div",{className:"w-80 h-80",children:v.jsx(Ig,{width:"100%",height:"100%",children:v.jsxs(zz,{children:[v.jsx(Fi,{data:r,cx:"50%",cy:"50%",outerRadius:120,dataKey:"value",children:r.map((i,o)=>v.jsx(kd,{fill:i.color},`cell-${o}`))}),v.jsx(yr,{content:({active:i,payload:o})=>i&&o&&o.length?v.jsxs("div",{className:"bg-white p-3 border border-slate-200 rounded-lg shadow-lg",children:[v.jsx("p",{className:"font-medium text-slate-900",children:o[0].payload.name}),v.jsxs("p",{className:"text-slate-600",children:["â¬",o[0].value.toLocaleStr
376ing()]})]}):null})]})})}),v.jsx("div",{className:"flex-1 space-y-3",children:r.map((i,o)=>v.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg bg-slate-50/50",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("div",{className:"w-4 h-4 rounded",style:{backgroundColor:i.color}}),v.jsx("span",{className:"font-medium text-slate-900",children:i.name})]}),v.jsxs("span",{className:"font-bold text-slate-700",children:["â¬",i.value.toLocaleString()]})]},o))})]}):v.jsx("div",{className:"text-center py-12 text-slate-500",children:v.jsx("p",{children:"No expense data available"})})})]})}const hme={need:"#ef4444",want:"#f59e0b",future:"#10b981"};function pme({transactions:e,isLoading:t}){const n=e.filter(o=>o.type==="expense"&&o.classification).reduce((o,a)=>{const l=a.classification;return o[l]=(o[l]||0)+a.amount,o},{}),r=Object.entries(n).map(([o,a])=>({name:o.charAt(0).toUpperCase()+o.slice(1),value:a,color:hme[o]})).sort((o,a)=>a.value-o.value),i=r.reduce((o,a)=>o+a.value,0);return v.jsxs(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg",children:[v.jsxs(Tn,{children:[v.jsx(jn,{className:"text-xl font-bold text-slate-900",children:"Expense Classification"}),v.jsx("p",{className:"text-sm text-slate-600",children:"Breakdown of expenses by Need, Want, and Future"})]}),v.jsx(Nt,{children:t?v.jsx(vt,{className:"h-[300px] w-full"}):r.length>0?v.jsxs("div",{className:"space-y-6",children:[v.jsx(Ig,{width:"100%",height:250,children:v.jsxs(zz,{children:[v.jsx(Fi,{data:r,cx:"50%",cy:"50%",labelLine:!1,label:({name:o,percent:a})=>`${o} ${(a*100).toFixed(0)}%`,outerRadius:80,fill:"#8884d8",dataKey:"value",children:r.map((o,a)=>v.jsx(kd,{fill:o.color},`cell-${a}`))}),v.jsx(yr,{formatter:o=>`â¬${o.toLocaleString()}`,contentStyle:{backgroundColor:"rgba(255, 255, 255, 0.95)",border:"1px solid #e2e8f0",borderRadius:"8px"}})]})}),v.jsx("div",{className:"space-y-3",children:r.map(o=>v.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-50 rounded-lg",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("div",{className:"w-4 h-4 rounded-full",style:{backgroundColor:o.color}}),v.jsx("span",{className:"font-medium text-slate-700",children:o.name})]}),v.jsxs("div",{className:"text-right",children:[v.jsxs("p",{className:"font-bold text-slate-900",children:["â¬",o.value.toLocaleString()]}),v.jsxs("p",{className:"text-xs text-slate-500",children:[(o.value/i*100).toFixed(1),"%"]})]})]},o.name))})]}):v.jsx("div",{className:"h-[300px] flex items-center justify-center text-slate-500",children:v.jsx("p",{children:"No classified expense data available"})})})]})}const mme=Cs("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Uz({className:e,variant:t,...n}){return v.jsx("div",{className:Pe(mme({variant:t}),e),...n})}function Er(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function As(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Wz=6048e5,gme=864e5;let yme={};function ay(){return yme}function cd(e,t){var l,c,f,d;const n=ay(),r=(t==null?void 0:t.weekStartsOn)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((d=(f=n.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)??0,i=Er(e),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Ym(e){return cd(e,{weekStartsOn:1}
vendor: 4,368 bytes, line 376
376)}function Hz(e){const t=Er(e),n=t.getFullYear(),r=As(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Ym(r),o=As(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const a=Ym(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function iL(e){const t=Er(e);return t.setHours(0,0,0,0),t}function oL(e){const t=Er(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Vz(e,t){const n=iL(e),r=iL(t),i=+n-oL(n),o=+r-oL(r);return Math.round((i-o)/gme)}function vme(e){const t=Hz(e),n=As(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ym(n)}function bme(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function xme(e){if(!bme(e)&&typeof e!="number")return!1;const t=Er(e);return!isNaN(Number(t))}function Kz(e,t){const n=Er(e),r=Er(t),i=aL(n,r),o=Math.abs(Vz(n,r));n.setDate(n.getDate()-i*o);const a=+(aL(n,r)===-i),l=i*(o-a);return l===0?0:l}function aL(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function wme(e){const t=Er(e),n=As(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Sme={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},_me=(e,t,n)=>{let r;const i=Sme[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function z1(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Ome={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Eme={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Pme={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ame={date:z1({formats:Ome,defaultWidth:"full"}),time:z1({formats:Eme,defaultWidth:"full"}),dateTime:z1({formats:Pme,defaultWidth:"full"})},kme={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Cme=(e,t,n,r)=>kme[e];function Gc(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):a;i=e.formattingValues[l]||e.formattingValues[a]}else{const a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Tme={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},jme={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Nme={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Rme={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
376ay","Saturday"]},Mme={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Ime={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Dme=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Lme={ordinalNumber:Dme,era:Gc({values:Tme,defaultWidth:"wide"}),quarter:Gc({values:jme,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Gc({values:Nme,defaultWidth:"wide"}),day:Gc({values:Rme,defaultWidth:"wide"}),dayPeriod:Gc({values:Mme,defaultWidth:"wide",formattingValues:Ime,defaultFormattingWidth:"wide"})};function Yc(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?Fme(l,h=>h.test(a)):$me(l,h=>h.test(a));let f;f=e.valueCallback?e.valueCallback(c):c,f=n.valueCallback?n.valueCallback(f):f;const d=t.slice(a.length);return{value:f,rest:d}}}function $me(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Fme(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Bme(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const l=t.slice(i.length);return{value:a,rest:l}}}const qme=/^(\d+)(th|st|nd|rd)?/i,zme=/\d+/i,Ume={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Wme={any:[/^b/i,/^(a|c)/i]},Hme={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Vme={any:[/1/i,/2/i,/3/i,/4/i]},Kme={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Gme={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Yme={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Xme={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Qme={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Jme={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Zme={ordinalNumber:Bme({matchPattern:qme,parsePattern:zme,valueCallback:e=>parseInt(e,10)}),era:Yc({matchPatterns:Ume,defaultMatchWidth:"wide",parsePatterns:Wme,defaultParseWidth:"any"}),quarter:Yc({matchPatterns:Hme,defaultMatchWidth:"wide",parsePatterns:Vme,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Yc({matchPatterns:Kme,defaultMatchWidth:"wide",parsePatterns:Gme,defaultParseWidth:"any"}),day:Yc({matchPatterns:Yme,defaultMatchWidth:"wide",parsePatterns:Xme,defaultParseWidth:"any"}),dayPeriod:Yc({matchPatterns:Qme,defaultMatchWidth:"any",parsePatterns:Jme,defaultParseWidth:"any"})},ege={code:"en-US",formatDistance:_me,formatLong:Ame,formatRelative:Cme,localize:Lme,match:Zme,options:{weekStartsOn:0,firstWeekContainsDate:1}};function tge(e){const t=Er(e);return Vz(t,wme(t))+1}function nge(e){const t=Er(e),n=+Ym(t)-+vme(t);return Math.round(n/Wz)+1}function Gz(e,t){var d,h,m,g;const n=Er(e),r=n.getFullYear(),i=ay(),o=(t==null?void 0:t.firstWeekContainsDate)??((h=(d=t==null?void 0:t.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??i.firstWeekContainsDate??((g=(m=i.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,a=As(e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const l=cd(a,t),c=As(e,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const f=cd(c,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function rge(e,t){var l,c,f,d;const n=ay(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((d=(f=n.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??1,i=Gz(e,t),o=As(e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),cd(o,t)}function ige(e,t){const n=Er(e),r=+cd(n,t)-+rge(n,t);return Math.round(r/Wz)+1}function gt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Uo={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return gt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):gt(n+1,2)},d(e,t){return gt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return gt(e.getHours()%12||12,t.length)},H(e,t){return gt(e.getHours(),t.length)},m(e,t){return gt(e.getMinutes(),t.length)},s(e,t){return gt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return gt(i,t.length)}},vl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},sL={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Uo.y(e,t)},Y:function(e,t,n,r){const i=Gz(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return gt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):gt(o,t.length)},R:function(e,t){const n=Hz(e);return gt(n,t.length)},u:function(e,t){const n=e.getFullYear();return gt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return gt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return gt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Uo.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return gt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=ige(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):gt(i,t.length)},I:function(e,t,n){const r=nge(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):gt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Uo.d(e,t)},D:function(e,t,n){const r=tge(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):gt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return gt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return gt(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return gt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=vl.noon:r===0?i=vl.midnight:i=r/12>
vendor: 4,100 bytes, line 376
376=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=vl.evening:r>=12?i=vl.afternoon:r>=4?i=vl.morning:i=vl.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Uo.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Uo.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):gt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):gt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Uo.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Uo.s(e,t)},S:function(e,t){return Uo.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return uL(r);case"XXXX":case"XX":return Ua(r);case"XXXXX":case"XXX":default:return Ua(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return uL(r);case"xxxx":case"xx":return Ua(r);case"xxxxx":case"xxx":default:return Ua(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+lL(r,":");case"OOOO":default:return"GMT"+Ua(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+lL(r,":");case"zzzz":default:return"GMT"+Ua(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return gt(r,t.length)},T:function(e,t,n){const r=e.getTime();return gt(r,t.length)}};function lL(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+gt(o,2)}function uL(e,t){return e%60===0?(e>0?"-":"+")+gt(Math.abs(e)/60,2):Ua(e,t)}function Ua(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=gt(Math.trunc(r/60),2),o=gt(r%60,2);return n+i+t+o}const cL=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Yz=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},oge=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return cL(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",cL(r,t)).replace("{{time}}",Yz(i,t))},age={p:Yz,P:oge},sge=/^D+$/,lge=/^Y+$/,uge=["D","DD","YY","YYYY"];function cge(e){return sge.test(e)}function fge(e){return lge.test(e)}function dge(e,t,n){const r=hge(e,t,n);if(console.warn(r),uge.includes(e))throw new RangeError(r)}function hge(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const pge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mge=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gge=/^'([^]*?)'?$/,yge=/''/g,vge=/[a-zA-Z]/;function Ha(e,t,n){var d,h,m,g;const r=ay(),i=r.locale??ege,o=r.firstWeekContainsDate??((h=(d=r.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,a=r.weekStartsOn??((g=(m=r.locale)==null?void 0:m.options)==null?void 0:g.weekStartsOn)??0,l=Er(e);
376if(!xme(l))throw new RangeError("Invalid time value");let c=t.match(mge).map(w=>{const y=w[0];if(y==="p"||y==="P"){const x=age[y];return x(w,i.formatLong)}return w}).join("").match(pge).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const y=w[0];if(y==="'")return{isToken:!1,value:bge(w)};if(sL[y])return{isToken:!0,value:w};if(y.match(vge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:w}});i.localize.preprocessor&&(c=i.localize.preprocessor(l,c));const f={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return c.map(w=>{if(!w.isToken)return w.value;const y=w.value;(fge(y)||cge(y))&&dge(y,t,String(e));const x=sL[y[0]];return x(l,y,i.localize,f)}).join("")}function bge(e){const t=e.match(gge);return t?t[1].replace(yge,"'"):e}function xge({transactions:e,isLoading:t}){const n=r=>r.replace(/_/g," ").replace(/\b\w/g,i=>i.toUpperCase());return v.jsxs(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg",children:[v.jsxs(Tn,{className:"pb-4",children:[v.jsx(jn,{className:"text-xl font-bold text-slate-900",children:"Recent Transactions"}),v.jsx("p",{className:"text-slate-600",children:"Your latest financial activity"})]}),v.jsx(Nt,{children:v.jsx("div",{className:"space-y-4",children:t?Array(8).fill(0).map((r,i)=>v.jsxs("div",{className:"flex items-center justify-between p-3",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx(vt,{className:"h-8 w-8 rounded-full"}),v.jsxs("div",{className:"space-y-1",children:[v.jsx(vt,{className:"h-4 w-24"}),v.jsx(vt,{className:"h-3 w-16"})]})]}),v.jsx(vt,{className:"h-4 w-16"})]},i)):e.length>0?e.map((r,i)=>v.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg hover:bg-slate-50/50 transition-colors duration-200",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("div",{className:`p-2 rounded-full ${r.type==="income"?"bg-emerald-50 text-emerald-600":"bg-red-50 text-red-600"}`,children:r.type==="income"?v.jsx(so,{className:"w-4 h-4"}):v.jsx(Pl,{className:"w-4 h-4"})}),v.jsxs("div",{children:[v.jsx("p",{className:"font-medium text-slate-900",children:r.description||n(r.category)}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("p",{className:"text-xs text-slate-500",children:Ha(new Date(r.date),"MMM d, yyyy")}),v.jsx(Uz,{variant:"outline",className:"text-xs",children:n(r.category)})]})]})]}),v.jsx("div",{className:"text-right",children:v.jsxs("p",{className:`font-bold ${r.type==="income"?"text-emerald-600":"text-red-600"}`,children:[r.type==="income"?"+":"-","â¬",r.amount.toLocaleString()]})})]},i)):v.jsx("div",{className:"text-center py-8 text-slate-500",children:v.jsx("p",{children:"No recent transactions"})})})})]})}var sP="Progress",lP=100,[wge]=Iu(sP),[Sge,_ge]=wge(sP),Xz=T.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:i,getValueLabel:o=Oge,...a}=e;(i||i===0)&&!fL(i)&&console.error(Ege(`${i}`,"Progress"));const l=fL(i)?i:lP;r!==null&&!dL(r,l)&&console.error(Pge(`${r}`,"Progress"));const c=dL(r,l)?r:null,f=Xm(c)?o(c,l):void 0;return v.jsx(Sge,{scope:n,value:c,max:l,children:v.jsx(ut.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":Xm(c)?c:void 0,"aria-valuetext":f,role:"progressbar","data-state":Zz(c,l),"data-value":c??void 0,"data-max":l,...a,ref:t})})});Xz.displayName=sP;var Qz="ProgressIndicator",Jz=T.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,i=_ge(Qz,n);return v.jsx(ut.div,{"data-state":Zz(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});Jz.displayName=Qz;function Oge(e,t){return`${Math.round(e/t*100)}%`}function Zz(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Xm(e){return typeof e=="number"}function fL(e){return Xm(e)&&!isNaN(e)&&e>0}function dL(e,t){return Xm(e)&&!isNaN(e)&&e<=t&&e>=0}function Ege(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${lP}\`.`}function Pge(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be: 377 - a positive number 378 - less than the value passed to \`max\` (or ${lP} if no \`max\` prop is set) 379 - \`null\` or \`undefined\` if the progress is indeterminate. 380 381Defaulting to \`null\`.`}var e6=Xz,Age=Jz;const uP=T.forwardRef(({className:e,value:t,...n},r)=>v.jsx(e6,{ref:r,className:Pe("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:v.jsx(Age,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));uP.displayName=e6.displayName;function kge({goals:e,isLoading:t}){const n=e.filter(r=>r.current_amount/r.target_amount*100<100).slice(0,3);return v.jsxs(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg",children:[v.jsxs(Tn,{className:"pb-4",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(ca,{className:"w-5 h-5 text-blue-600"}),v.jsx(jn,{className:"text-xl font-bold text-slate-900",children:"Financial Goals"})]}),v.jsx(Xl,{to:Zn("Goals"),children:v.jsxs(ht,{variant:"ghost",size:"sm",className:"text-blue-600 hover:text-blue-700",children:["View All",v.jsx(G8,{className:"w-4 h-4 ml-1"})]})})]}),v.jsx("p",{className:"text-sm text-slate-600",children:"Track your progress towards financial targets"})]}),v.jsx(Nt,{children:t?v.jsx("div",{className:"space-y-4",children:[1,2,3].map(r=>v.jsx(vt,{className:"h-24 w-full"},r))}):n.length>
vendor: 9,359 bytes, lines 381-385
3810?v.jsx("div",{className:"space-y-4",children:n.map(r=>{const i=r.current_amount/r.target_amount*100,o=Kz(new Date(r.deadline),new Date);return v.jsxs("div",{className:"p-4 bg-slate-50 rounded-lg space-y-3",children:[v.jsxs("div",{className:"flex items-start justify-between",children:[v.jsxs("div",{className:"flex-1",children:[v.jsx("h4",{className:"font-semibold text-slate-900",children:r.name}),v.jsx("p",{className:"text-xs text-slate-500 mt-1",children:o>0?`${o} days left`:"Overdue"})]}),v.jsxs("div",{className:"text-right",children:[v.jsxs("p",{className:"text-sm font-bold text-slate-900",children:[i.toFixed(0),"%"]}),v.jsxs("p",{className:"text-xs text-slate-500",children:["â¬",r.current_amount.toLocaleString()," / â¬",r.target_amount.toLocaleString()]})]})]}),v.jsx(uP,{value:Math.min(i,100),className:"h-2"})]},r.id)})}):v.jsxs("div",{className:"text-center py-8",children:[v.jsx(ca,{className:"w-12 h-12 text-slate-300 mx-auto mb-3"}),v.jsx("p",{className:"text-slate-500 text-sm mb-4",children:"No active goals yet"}),v.jsx(Xl,{to:Zn("Goals"),children:v.jsxs(ht,{size:"sm",className:"bg-gradient-to-r from-blue-600 to-emerald-500 hover:from-blue-700 hover:to-emerald-600 text-white",children:[v.jsx(so,{className:"w-4 h-4 mr-2"}),"Create Your First Goal"]})})]})})]})}function Cge(e,t){return T.useReducer((n,r)=>t[n][r]??n,e)}var Yu=e=>{const{present:t,children:n}=e,r=Tge(t),i=typeof n=="function"?n({present:r.isPresent}):T.Children.only(n),o=Dt(r.ref,jge(i));return typeof n=="function"||r.isPresent?T.cloneElement(i,{ref:o}):null};Yu.displayName="Presence";function Tge(e){const[t,n]=T.useState(),r=T.useRef(null),i=T.useRef(e),o=T.useRef("none"),a=e?"mounted":"unmounted",[l,c]=Cge(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const f=xp(r.current);o.current=l==="mounted"?f:"none"},[l]),Nn(()=>{const f=r.current,d=i.current;if(d!==e){const m=o.current,g=xp(f);e?c("MOUNT"):g==="none"||(f==null?void 0:f.display)==="none"?c("UNMOUNT"):c(d&&m!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),Nn(()=>{if(t){let f;const d=t.ownerDocument.defaultView??window,h=g=>{const y=xp(r.current).includes(CSS.escape(g.animationName));if(g.target===t&&y&&(c("ANIMATION_END"),!i.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",f=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},m=g=>{g.target===t&&(o.current=xp(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{d.clearTimeout(f),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:T.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function xp(e){return(e==null?void 0:e.animationName)||"none"}function jge(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var sy="Dialog",[t6]=Iu(sy),[Nge,fi]=t6(sy),n6=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!0}=e,l=T.useRef(null),c=T.useRef(null),[f,d]=Yp({prop:r,defaultProp:i??!1,onChange:o,caller:sy});return v.jsx(Nge,{scope:t,triggerRef:l,contentRef:c,contentId:ls(),titleId:ls(),descriptionId:ls(),open:f,onOpenChange:d,onOpenToggle:T.useCallback(()=>d(h=>!h),[d]),modal:a,children:n})};n6.displayName=sy;var r6="DialogTrigger",Rge=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=fi(r6,n),o=Dt(t,i.triggerRef);return v.jsx(ut.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":dP(i.open),...r,ref:o,onClick:st(e.onClick,i.onOpenToggle)})});Rge.displayName=r6;var cP="DialogPortal",[Mge,i6]=t6(cP,{forceMount:void 0}),o6=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=fi(cP,t);return v.jsx(Mge,{scope:t,forceMount:n,children:T.Children.map(r,a=>v.jsx(Yu,{present:n||o.open,children:v.jsx(yg,{asChild:!0,container:i,children:a})}))})};o6.displayName=cP;var Qm="DialogOverlay",a6=T.forwardRef((e,t)=>{const n=i6(Qm,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=fi(Qm,e.__scopeDialog);return o.modal?v.jsx(Yu,{present:r||o.open,children:v.jsx(Dge,{...i,ref:t})}):null});a6.displayName=Qm;var Ige=Zl("DialogOverlay.RemoveScroll"),Dge=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=fi(Qm,n);return v.jsx(eE,{as:Ige,allowPinchZoom:!0,shards:[i.contentRef],children:v.jsx(ut.div,{"data-state":dP(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ks="DialogContent",s6=T.forwardRef((e,t)=>{const n=i6(ks,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=fi(ks,e.__scopeDialog);return v.jsx(Yu,{present:r||o.open,children:o.modal?v.jsx(Lge,{...i,ref:t}):v.jsx($ge,{...i,ref:t})})});s6.displayName=ks;var Lge=T.forwardRef((e,t)=>{const n=fi(ks,e.__scopeDialog),r=T.useRef(null),i=Dt(t,n.contentRef,r);return T.useEffect(()=>{const o=r.current;if(o)return jB(o)},[]),v.jsx(l6,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:st(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:st(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&o.preventDefault()}),onFocusOutside:st(e.onFocusOutside,o=>o.preventDefault())})}),$ge=T.forwardRef((e,t)=>{const n=fi(ks,e.__scopeDialog),r=T.useRef(!1),i=T.useRef(!1);return v.jsx(l6,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var a,l;(a=e.onCloseAutoFocus)==null||a.call(e,o),o.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var c,f;(c=e.onInteractOutside)==null||c.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=o.target;((f=n.triggerRef.current)==null?void 0:f.contains(a))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),l6=T.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=e,l=fi(ks,n),c=T.useRef(null),f=Dt(t,c);return tB(),v.jsxs(v.Fragment,{children:[v.jsx(HO,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:v.jsx(fg,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":dP(l.open),...a,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(Fge,{titleId:l.titleId}),v.jsx(qge,{contentRef:c,descriptionId:l.descriptionId})]})]})}),fP="DialogTitle",u6=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=fi(fP,n);return v.jsx(ut.h2,{id:i.titleId,...r,ref:t})});u6.displayName=fP;var c6="DialogDescription",f6=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=fi(c6,n);return v.jsx(ut.p,{id:i.descriptionId,...r,ref:t})});f6.displayName=c6;var d6="DialogClose",h6=T.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=fi(d6,n);return v.jsx(ut.button,{type:"button",...r,ref:t,onClick:st(e.onClick,()=>i.onOpenChange(!1))})});h6.displayName=d6;function dP(e){return e?"open":"closed"}var p6="DialogTitleWarning",[Hwe,m6]=bG(p6,{contentName:ks,titleName:fP,docsSlug:"dialog"}),Fge=({titleId:e})=>{const t=m6(p6),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 382 383If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 384 385For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return T.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Bge="DialogDescriptionWarning",qge=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${m6(Bge).contentName}}.`;return T.useEffect(()=>{var o;const i=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},g6=n6,y6=o6,ly=a6,uy=s6,cy=u6,fy=f6,v6=h6;const hP=g6,zge=y6,b6=T.forwardRef(({className:e,...t},n)=>v.jsx(ly,{ref:n,className:Pe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));b6.displayName=ly.displayName;const dy=T.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(zge,{children:[v.jsx(b6,{}),v.jsxs(uy,{ref:r,className:Pe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
385nded-lg",e),...n,children:[t,v.jsxs(v6,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[v.jsx(AO,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));dy.displayName=uy.displayName;const hy=({className:e,...t})=>v.jsx("div",{className:Pe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});hy.displayName="DialogHeader";const py=({className:e,...t})=>v.jsx("div",{className:Pe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});py.displayName="DialogFooter";const my=T.forwardRef(({className:e,...t},n)=>v.jsx(cy,{ref:n,className:Pe("text-lg font-semibold leading-none tracking-tight",e),...t}));my.displayName=cy.displayName;const pP=T.forwardRef(({className:e,...t},n)=>v.jsx(fy,{ref:n,className:Pe("text-sm text-muted-foreground",e),...t}));pP.displayName=fy.displayName;function Uge({open:e,onClose:t,transactions:n,metrics:r}){const[i,o]=T.useState(!1),a=async()=>{o(!0);try{const c=[["Date","Type","Category","Amount","Description"].join(","),...n.map(w=>[Ha(new Date(w.date),"yyyy-MM-dd"),w.type,w.category.replace(/_/g," "),w.amount,`"${(w.description||"").replace(/"/g,'""')}"`].join(","))].join(` 386`),f=["","--- FINANCIAL SUMMARY ---",`Export Date,${Ha(new Date,"yyyy-MM-dd HH:mm:ss")}`,`Total Transactions,${n.length}`,`Date Range,${n.length>0?Ha(new Date(Math.min(...n.map(w=>new Date(w.date)))),"yyyy-MM-dd"):"N/A"} to ${n.length>0?Ha(new Date(Math.max(...n.map(w=>new Date(w.date)))),"yyyy-MM-dd"):"N/A"}`,`Total Income,â¬${r.totalIncome.toLocaleString()}`,`Total Expenses,â¬${r.totalExpenses.toLocaleString()}`,`Net Savings,â¬${r.savings.toLocaleString()}`,`Savings Rate,${r.savingsRate.toFixed(1)}%`].join(` 387`),d=c+` 388`+f,h=new Blob([d],{type:"text/csv;charset=utf-8;"}),m=document.createElement("a"),g=URL.createObjectURL(h);m.setAttribute("href",g),m.setAttribute("download",`budgetflow-export-${Ha(new Date,"yyyy-MM-dd")}.csv`),m.style.visibility="hidden",document.body.appendChild(m),m.click(),document.body.removeChild(m),setTimeout(()=>{t()},1e3)}catch(l){console.error("Export failed:",l)}finally{o(!1)}};return v.jsx(hP,{open:e,onOpenChange:t,children:v.jsxs(dy,{className:"sm:max-w-md bg-white/95 backdrop-blur-sm border-slate-200/60",children:[v.jsx(hy,{className:"space-y-4",children:v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("div",{className:"p-3 bg-blue-50 rounded-2xl",children:v.jsx(uW,{className:"w-6 h-6 text-blue-600"})}),v.jsxs("div",{children:[v.jsx(my,{className:"text-xl font-bold text-slate-900",children:"Export Financial Data"}),v.jsx(pP,{className:"text-slate-600",children:"Download your transaction data and financial summary as an Excel file"})]})]})}),v.jsxs("div",{className:"space-y-4 py-4",children:[v.jsxs("div",{className:"bg-slate-50 rounded-lg p-4 space-y-3",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Q8,{className:"w-4 h-4 text-slate-500"}),v.jsx("span",{className:"font-medium text-slate-700",children:"Export Summary"})]}),v.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-slate-500",children:"Transactions"}),v.jsx("p",{className:"font-semibold text-slate-900",children:n.length})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-slate-500",children:"Time Period"}),v.jsx("p",{className:"font-semibold text-slate-900",children:"Last 12 months"})]})]})]}),v.jsxs("div",{className:"text-sm text-slate-600 space-y-2",children:[v.jsx("p",{className:"font-medium",children:"Your export will include:"}),v.jsxs("ul",{className:"list-disc list-inside space-y-1 ml-4",children:[v.jsx("li",{children:"All transaction details (date, type, category, amount, description)"}),v.jsx("li",{children:"Financial summary with totals and savings rate"}),v.jsx("li",{children:"Data formatted for Excel compatibility"})]})]})]}),v.jsxs(py,{className:"flex flex-col sm:flex-row gap-2",children:[v.jsx(ht,{variant:"outline",onClick:t,className:"w-full sm:w-auto",children:"Cancel"}),v.jsx(ht,{onClick:a,disabled:i||n.length===0,className:"bg-gradient-to-r from-blue-600 to-emerald-500 hover:from-blue-700 hover:to-emerald-600 text-white w-full sm:w-auto",children:i?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-white border-t-transparent mr-2"}),"Exporting..."]}):v.jsxs(v.Fragment,{children:[v.jsx(g$,{className:"w-4 h-4 mr-2"}),"Export to Excel"]})})]})]})})}function Wge({open:e,onClose:t,onConfirm:n,transactionCount:r}){const[i,o]=T.useState(""),[a,l]=T.useState(!1),c="DELETE ALL DATA",f=async()=>{i===c&&(l(!0),await n(),l(!1),o(""))},d=()=>{o(""),t()};return v.jsx(hP,{open:e,onOpenChange:d,children:v.jsxs(dy,{className:"sm:max-w-md bg-white/95 backdrop-blur-sm border-red-200/60",children:[v.jsx(hy,{className:"space-y-4",children:v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("div",{className:"p-3 bg-red-50 rounded-2xl",children:v.jsx(jW,{className:"w-6 h-6 text-red-600"})}
388),v.jsxs("div",{children:[v.jsx(my,{className:"text-xl font-bold text-slate-900",children:"Clear All Transaction Data"}),v.jsx(pP,{className:"text-slate-600",children:"This action cannot be undone. All your financial data will be permanently deleted."})]})]})}),v.jsxs("div",{className:"space-y-4 py-4",children:[v.jsxs("div",{className:"bg-red-50 border border-red-200 rounded-lg p-4 space-y-3",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Bp,{className:"w-4 h-4 text-red-600"}),v.jsx("span",{className:"font-medium text-red-800",children:"Warning: Permanent Deletion"})]}),v.jsxs("div",{className:"text-sm text-red-700",children:[v.jsx("p",{className:"mb-2",children:"You are about to delete:"}),v.jsxs("ul",{className:"list-disc list-inside space-y-1 ml-4",children:[v.jsxs("li",{children:[v.jsx("strong",{children:r})," transactions"]}),v.jsx("li",{children:"All income and expense records"}),v.jsx("li",{children:"Complete financial history"})]})]})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsxs(An,{htmlFor:"confirm-text",className:"text-sm font-medium text-slate-700",children:["To confirm, type ",v.jsx("span",{className:"font-bold text-red-600",children:c})," below:"]}),v.jsx(qr,{id:"confirm-text",value:i,onChange:h=>o(h.target.value),placeholder:"Type confirmation text here...",className:"border-red-200 focus:border-red-400"})]})]}),v.jsxs(py,{className:"flex flex-col sm:flex-row gap-2",children:[v.jsx(ht,{variant:"outline",onClick:d,className:"w-full sm:w-auto",children:"Cancel"}),v.jsx(ht,{variant:"destructive",onClick:f,disabled:i!==c||a,className:"bg-red-600 hover:bg-red-700 w-full sm:w-auto",children:a?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-2 border-white border-t-transparent mr-2"}),"Deleting All Data..."]}):v.jsxs(v.Fragment,{children:[v.jsx(Bp,{className:"w-4 h-4 mr-2"}),"Delete All Data"]})})]})]})})}function Hge(){const[e,t]=T.useState([]),[n,r]=T.useState(!0),[i,o]=T.useState(!1),[a,l]=T.useState(!1),{data:c=[],isLoading:f}=Of({queryKey:["goals"],queryFn:()=>rn.entities.Goal.list("-created_date",100)});T.useEffect(()=>{d();const S=()=>{document.hidden||d()};return document.addEventListener("visibilitychange",S),()=>{document.removeEventListener("visibilitychange",S)}},[]);const d=async()=>{r(!0);const S=await Jl.Transaction.list("-date",200),P=new Date;P.setMonth(P.getMonth()-12);const E=S.filter(C=>new Date(C.date)>=P);t(E),r(!1)},h=()=>{const S=e.filter(O=>O.type==="income").reduce((O,A)=>O+A.amount,0),P=e.filter(O=>O.type==="expense").reduce((O,A)=>O+A.amount,0),E=S-P,C=S>0?E/S*100:0;return{totalIncome:S,totalExpenses:P,savings:E,savingsRate:C}},m=async()=>{r(!0);for(const S of e)await Jl.Transaction.delete(S.id);await d(),l(!1)},{totalIncome:g,totalExpenses:w,savings:y,savingsRate:x}=h();return v.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-blue-50 p-4 md:p-8",children:v.jsxs("div",{className:"max-w-7xl mx-auto space-y-8",children:[v.jsxs("div",{className:"flex flex-col lg:flex-row justify-between items-start lg:items-center gap-6",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx("h1",{className:"text-4xl font-bold text-slate-900 tracking-tight",children:"Budget Console"}),v.jsx("p",{className:"text-slate-600 text-lg",children:"Track your budget data and get key metrics"})]}),v.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 w-full sm:w-auto",children:[v.jsxs(ht,{variant:"outline",onClick:()=>o(!0),className:"bg-white/80 border-slate-200/60 hover:bg-white text-slate-700 shadow-lg hover:shadow-xl transition-all duration-300",disabled:e.length===0,children:[v.jsx(g$,{className:"w-5 h-5 mr-2"}),"Export Data"]}),v.jsxs(ht,{variant:"outline",onClick:()=>l(!0),className:"bg-white/80 border-red-200/60 hover:bg-red-50 text-red-600 shadow-lg hover:shadow-xl transition-all duration-300",disabled:e.length===0,children:[v.jsx(Bp,{className:"w-5 h-5 mr-2"}),"Clear All Data"]}),v.jsx(Xl,{to:Zn("AddTransaction"),children:v.jsxs(ht,{className:"bg-gradient-to-r from-blue-600 to-emerald-500 hover:from-blue-700 hover:to-emerald-600 text-white shadow-lg hover:shadow-xl transition-all duration-300 w-full sm:w-auto",children:[v.jsx(wf,{className:"w-5 h-5 mr-2"}),"Add Transaction"]})})]})]}),v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[v.jsx(ap,{title:"Total Income",value:g,icon:so,color:"emerald",isLoading:n}),v.jsx(ap,{title:"Total Expenses",value:w,icon:Pl,color:"red",isLoading:n}),v.jsx(ap,{title:"Net Savings",value:y,icon:v$,color:y>=0?"emerald":"red",isLoading:n}),v.jsx(ap,{title:"Savings Rate",value:x,icon:oW,color:x>=20?"emerald":x>=10?"yellow":"red",isPercentage:!0,isLoading:n})]}),v.jsxs("div",{className:"grid lg:grid-cols-3 gap-8",children:[v.jsxs("div",{className:"lg:col-span-2 space-y-8",children:[v.jsx(cme,{transactions:e,isLoading:n}),v.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[v.jsx(dme,{transactions:e,isLoading:n}),v.jsx(pme,{transactions:e,isLoading:n})]})]}),v.jsxs("div",{className:"space-y-8",children:[v.jsx(kge,{goals:c,isLoading:f}),v.jsx(xge,{transactions:e.slice(0,10),isLoading:n})]})]}),v.jsx(Uge,{open:i,onClose:()=>o(!1),transactions:e,metrics:{totalIncome:g,totalExpenses:w,savings:y,savingsRate:x}}),v.jsx(Wge,{open:a,onClose:()=>l(!1),onConfirm:m,transactionCount:e.length})]})})}function Vge(){const[e,t]=T.useState([]),[n,r]=T.useState([]),[i,o]=T.useState(!0),[a,l]=T.useState(""),[c,f]=T.useState("all"),[d,h]=T.useState("all");T.useEffect(()=>{m()},[]),T.useEffect(()=>{g()},[e,a,c,d]);const m=async()=>{o(!0);const C=await Jl.Transaction.list("-date",200),O=new Date;O.setMonth(O.getMonth()-12);const A=C.filter(j=>new Date(j.date)>=O);t(A),o(!1)},g=()=>{let C=[...e];a&&(C=C.filter(O=>O.description&&O.description.toLowerCase().includes(a.toLowerCase())||O.category.toLowerCase().includes(a.toLowerCase()))),c!=="all"&&(C=C.filter(O=>O.type===c)),d!=="all"&&(C=C.filter(O=>O.category===d)),r(C)},w=C=>C.replace(/_/g," ").replace(/\b\w/g,O=>O.toUpperCase()),y=()=>[...new Set(e.map(O=>O.category))].sort(),x=()=>{const C=n.filter(A=>A.type==="income").reduce((A,j)=>A+j.amount,0),O=n.filter(A=>A.type==="expense").reduce((A,j)=>A+j.amount,0);return{income:C,expenses:O,net:C-O}},{income:S,expenses:P,net:E}=x();return v.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-blue-50 p-4 md:p-8",children:v.jsxs("div",{className:"max-w-6xl mx-auto
388space-y-8",children:[v.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-6",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx("h1",{className:"text-4xl font-bold text-slate-900 tracking-tight",children:"All Transactions"}),v.jsx("p",{className:"text-slate-600 text-lg",children:"Manage your financial records from the last 12 months"})]}),v.jsx(Xl,{to:Zn("AddTransaction"),children:v.jsxs(ht,{className:"bg-gradient-to-r from-blue-600 to-emerald-500 hover:from-blue-700 hover:to-emerald-600 text-white shadow-lg hover:shadow-xl transition-all duration-300",children:[v.jsx(wf,{className:"w-5 h-5 mr-2"}),"Add Transaction"]})})]}),v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[v.jsx(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg",children:v.jsx(Nt,{className:"p-6",children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-sm font-medium text-slate-600",children:"Total Income"}),v.jsxs("p",{className:"text-2xl font-bold text-emerald-600",children:["â¬",S.toLocaleString()]})]}),v.jsx("div",{className:"p-3 bg-emerald-50 rounded-2xl",children:v.jsx(so,{className:"w-6 h-6 text-emerald-600"})})]})})}),v.jsx(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg",children:v.jsx(Nt,{className:"p-6",children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-sm font-medium text-slate-600",children:"Total Expenses"}),v.jsxs("p",{className:"text-2xl font-bold text-red-600",children:["â¬",P.toLocaleString()]})]}),v.jsx("div",{className:"p-3 bg-red-50 rounded-2xl",children:v.jsx(Pl,{className:"w-6 h-6 text-red-600"})})]})})}),v.jsx(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg",children:v.jsx(Nt,{className:"p-6",children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-sm font-medium text-slate-600",children:"Net Amount"}),v.jsxs("p",{className:`text-2xl font-bold ${E>=0?"text-emerald-600":"text-red-600"}`,children:["â¬",E.toLocaleString()]})]}),v.jsx("div",{className:`p-3 rounded-2xl ${E>=0?"bg-emerald-50":"bg-red-50"}`,children:E>=0?v.jsx(so,{className:"w-6 h-6 text-emerald-600"}):v.jsx(Pl,{className:"w-6 h-6 text-red-600"})})]})})})]}),v.jsx(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg",children:v.jsx(Nt,{className:"p-6",children:v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx("label",{className:"text-sm font-medium text-slate-700",children:"Search"}),v.jsxs("div",{className:"relative",children:[v.jsx(OW,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-slate-400 w-4 h-4"}),v.jsx(qr,{placeholder:"Search transactions...",value:a,onChange:C=>l(C.target.value),className:"pl-10"})]})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("label",{className:"text-sm font-medium text-slate-700",children:"Type"}),v.jsxs(Cl,{value:c,onValueChange:f,children:[v.jsx(us,{children:v.jsx(Tl,{})}),v.jsxs(cs,{children:[v.jsx(Jn,{value:"all",children:"All Types"}),v.jsx(Jn,{value:"income",children:"Income"}),v.jsx(Jn,{value:"expense",children:"Expense"})]})]})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("label",{className:"text-sm font-medium text-slate-700",children:"Category"}),v.jsxs(Cl,{value:d,onValueChange:h,children:[v.jsx(us,{children:v.jsx(Tl,{})}),v.jsxs(cs,{children:[v.jsx(Jn,{value:"all",children:"All Categories"}),y().map(C=>v.jsx(Jn,{value:C,children:w(C)},C))]})]})]}),v.jsx("div",{className:"flex items-end",children:v.jsxs(ht,{variant:"outline",onClick:()=>{l(""),f("all"),h("all")},className:"w-full",children:[v.jsx(fW,{className:"w-4 h-4 mr-2"}),"Clear Filters"]})})]})})}),v.jsxs(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg",children:[v.jsx(Tn,{children:v.jsxs(jn,{className:"text-xl font-bold text-slate-900",children:["Transactions (",n.length,")"]})}),v.jsx(Nt,{children:v.jsx("div",{className:"space-y-4",children:i?Array(10).fill(0).map((C,O)=>v.jsxs("div",{className:"flex items-center justify-between p-4 border border-slate-100 rounded-lg",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(vt,{className:"h-10 w-10 rounded-full"}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(vt,{className:"h-4 w-32"}),v.jsx(vt,{className:"h-3 w-24"})]})]}),v.jsx(vt,{className:"h-4 w-20"})]},O)):n.length>0?n.map((C,O)=>v.jsxs("div",{className:"flex items-center justify-between p-4 border border-slate-100 rounded-lg hover:bg-slate-50/50 transition-colors duration-200",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx("div",{className:`p-3 rounded-full ${C.type==="income"?"bg-emerald-50 text-emerald-600":"bg-red-50 text-red-600"}`,children:C.type==="income"?v.jsx(so,{className:"w-5 h-5"}):v.jsx(Pl,{className:"w-5 h-5"})}),v.jsxs("div",{className:"space-y-1",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("h3",{className:"font-semibold text-slate-900",children:C.description||w(C.category)}),v.jsx(Uz,{variant:"outline",className:"text-xs",children:w(C.category)})]}),v.jsx("p",{className:"text-sm text-slate-500",children:Ha(new Date(C.date),"EEEE, MMMM d, yyyy")})]})]}),v.jsx("div",{className:"text-right",children:v.jsxs("p",{className:`text-lg font-bold ${C.type==="income"?"text-emerald-600":"text-red-600"}`,children:[C.type==="income"?"+":"-","â¬",C.amount.toLocaleStr
388ing()]})})]},O)):v.jsxs("div",{className:"text-center py-12 text-slate-500",children:[v.jsx("p",{className:"text-lg",children:"No transactions found"}),v.jsx("p",{className:"text-sm",children:"Try adjusting your filters or add some transactions"})]})})})]})]})})}function Kge(){const[e,t]=T.useState({family_members:1,city:""}),[n,r]=T.useState(!0),[i,o]=T.useState(!1),[a,l]=T.useState("");T.useEffect(()=>{c()},[]);const c=async()=>{r(!0);const h=await rn.auth.me();t({family_members:h.family_members||1,city:h.city||""}),r(!1)},f=async h=>{h.preventDefault(),o(!0),l(""),await rn.auth.updateMe(e),l("Settings saved successfully!"),o(!1),setTimeout(()=>l(""),3e3)},d=(h,m)=>{t(g=>({...g,[h]:m}))};return v.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-blue-50 p-4 md:p-8",children:v.jsxs("div",{className:"max-w-2xl mx-auto space-y-8",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx("h1",{className:"text-4xl font-bold text-slate-900 tracking-tight",children:"Settings"}),v.jsx("p",{className:"text-slate-600 text-lg",children:"Configure your household information"})]}),v.jsxs(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-xl",children:[v.jsxs(Tn,{className:"pb-6",children:[v.jsx(jn,{className:"text-xl font-bold text-slate-900",children:"Household Information"}),v.jsx("p",{className:"text-slate-600",children:"This helps us compare your budget to city averages"})]}),v.jsxs(Nt,{children:[a&&v.jsx(jl,{className:"mb-6 bg-emerald-50 border-emerald-200",children:v.jsx(Nl,{className:"text-emerald-800",children:a})}),v.jsxs("form",{onSubmit:f,className:"space-y-6",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsxs(An,{htmlFor:"family_members",className:"text-slate-700 font-medium flex items-center gap-2",children:[v.jsx(x$,{className:"w-4 h-4"}),"Number of Family Members"]}),v.jsx(qr,{id:"family_members",type:"number",min:"1",max:"20",value:e.family_members,onChange:h=>d("family_members",parseInt(h.target.value)),className:"bg-white border-slate-200",required:!0,disabled:n}),v.jsx("p",{className:"text-xs text-slate-500",children:"Include yourself and all dependents"})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsxs(An,{htmlFor:"city",className:"text-slate-700 font-medium flex items-center gap-2",children:[v.jsx(y$,{className:"w-4 h-4"}),"City"]}),v.jsx(qr,{id:"city",type:"text",value:e.city,onChange:h=>d("city",h.target.value),placeholder:"e.g., Paris, Lyon, Marseille",className:"bg-white border-slate-200",required:!0,disabled:n}),v.jsx("p",{className:"text-xs text-slate-500",children:"Enter your city of residence in France"})]}),v.jsx("div",{className:"pt-4",children:v.jsx(ht,{type:"submit",disabled:i||n||!e.city,className:"w-full bg-gradient-to-r from-blue-600 to-emerald-500 hover:from-blue-700 hover:to-emerald-600 text-white shadow-lg hover:shadow-xl transition-all duration-300 py-6",children:i?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"animate-spin rounded-full h-5 w-5 border-2 border-white border-t-transparent mr-2"}),"Saving..."]}):v.jsxs(v.Fragment,{children:[v.jsx(b$,{className:"w-5 h-5 mr-2"}),"Save Settings"]})})})]})]})]})]})})}function Gge(){const[e,t]=T.useState(null),[n,r]=T.useState([]),[i,o]=T.useState(null),[a,l]=T.useState(!0),[c,f]=T.useState(!1);T.useEffect(()=>{d()},[]);const d=async()=>{l(!0);const S=await rn.auth.me();t(S);const P=await Jl.Transaction.list("-date",200),E=new Date;E.setMonth(E.getMonth()-12);const C=P.filter(O=>new Date(O.date)>=E);r(C),l(!1),S.city&&S.family_members&&h(S.city,S.family_members)},h=async(S,P)=>{f(!0);try{const E=await rn.integrations.Core.InvokeLLM({prompt:`Provide average annual income and expenses for a household of ${P} people living in ${S}, France in 2026. 389 390 Include: 391 - Average annual household income (after tax) 392 - Average annual household expenses 393 - Break down expenses by major categories if possible 394 395 Return realistic figures based on French economic data and cost of living in ${S}.`,add_context_from_internet:!0,response_json_schema:{type:"object",properties:{annual_income:{type:"number",description:"Average annual household income in EUR"},annual_expenses:{type:"number",description:"Average annual household expenses in EUR"},monthly_income:{type:"number",description:"Average monthly household income in EUR"},monthly_expenses:{type:"number",description:"Average monthly household expenses in EUR"}}}});o(E)}catch(E){console.error("Error loading city averages:",E)}f(!1)},g=(()=>{const S=n.filter(O=>O.type==="income").reduce((O,A)=>O+A.amount,0),P=n.filter(O=>O.type==="expense").reduce((O,A)=>O+A.amount,0),E=S,C=P;return{annualIncome:E,annualExpenses:C,monthlyIncome:E/12,monthlyExpenses:C/12}})(),y=i?[{category:"Monthly Income","Your Household":g.monthlyIncome,"City Average":i.monthly_income},{category:"Monthly Expenses","Your Household":g.monthlyExpenses,"City Average":i.monthly_expenses}]:[],x=(S,P)=>(S-P)/P*100;return a?v.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-blue-50 p-4 md:p-8",children:v.jsxs("div",{className:"max-w-7xl mx-auto
395space-y-8",children:[v.jsx(vt,{className:"h-20 w-full"}),v.jsx(vt,{className:"h-96 w-full"})]})}):!(e!=null&&e.city)||!(e!=null&&e.family_members)?v.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-blue-50 p-4 md:p-8",children:v.jsxs("div",{className:"max-w-7xl mx-auto space-y-8",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx("h1",{className:"text-4xl font-bold text-slate-900 tracking-tight",children:"City Comparison"}),v.jsx("p",{className:"text-slate-600 text-lg",children:"Compare your budget to city averages"})]}),v.jsxs(jl,{className:"bg-yellow-50 border-yellow-200",children:[v.jsx(mb,{className:"w-4 h-4 text-yellow-600"}),v.jsx(Nl,{className:"text-yellow-800",children:"Please configure your household settings first to see city comparisons."})]}),v.jsx(Xl,{to:Zn("Settings"),children:v.jsx(ht,{className:"bg-gradient-to-r from-blue-600 to-emerald-500 hover:from-blue-700 hover:to-emerald-600 text-white",children:"Go to Settings"})})]})}):v.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-blue-50 p-4 md:p-8",children:v.jsxs("div",{className:"max-w-7xl mx-auto space-y-8",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx("h1",{className:"text-4xl font-bold text-slate-900 tracking-tight",children:"City Comparison"}),v.jsxs("p",{className:"text-slate-600 text-lg",children:["See how your complete family budget compares to ",e.city," averages"]})]}),v.jsxs(jl,{className:"bg-blue-50 border-blue-200",children:[v.jsx(mb,{className:"w-4 h-4 text-blue-600"}),v.jsxs(Nl,{className:"text-blue-800",children:["Your transactions represent your entire household of ",e.family_members," ",e.family_members===1?"person":"people",". We're comparing your total family income and expenses to the average for a ",e.family_members,"-person household in ",e.city,"."]})]}),v.jsx(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg",children:v.jsx(Nt,{className:"pt-6",children:v.jsxs("div",{className:"flex flex-wrap gap-6",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("div",{className:"w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center",children:v.jsx(y$,{className:"w-6 h-6 text-blue-600"})}),v.jsxs("div",{children:[v.jsx("p",{className:"text-sm text-slate-600",children:"City"}),v.jsx("p",{className:"text-lg font-bold text-slate-900",children:e.city})]})]}),v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("div",{className:"w-12 h-12 bg-emerald-100 rounded-lg flex items-center justify-center",children:v.jsx(x$,{className:"w-6 h-6 text-emerald-600"})}),v.jsxs("div",{children:[v.jsx("p",{className:"text-sm text-slate-600",children:"Family Members"}),v.jsx("p",{className:"text-lg font-bold text-slate-900",children:e.family_members})]})]})]})})}),c?v.jsxs(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg",children:[v.jsx(Tn,{children:v.jsx(jn,{children:"Loading city averages..."})}),v.jsx(Nt,{children:v.jsx(vt,{className:"h-96 w-full"})})]}):i?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[v.jsxs(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg",children:[v.jsx(Tn,{children:v.jsxs(jn,{className:"flex items-center gap-2 text-lg",children:[v.jsx(so,{className:"w-5 h-5 text-emerald-600"}),"Monthly Income Comparison"]})}),v.jsxs(Nt,{className:"space-y-4",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-sm text-slate-600",children:"Your Household"}),v.jsxs("p",{className:"text-2xl font-bold text-slate-900",children:["â¬",g.monthlyIncome.toLocaleString()]})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-sm text-slate-600",children:"City Average"}),v.jsxs("p",{className:"text-2xl font-bold text-slate-700",children:["â¬",i.monthly_income.toLocaleString()]})]}),v.jsxs("div",{className:"pt-2 border-t",children:[v.jsx("p",{className:"text-sm text-slate-600",children:"Difference"}),v.jsxs("p",{className:`text-xl font-bold ${x(g.monthlyIncome,i.monthly_income)>=0?"text-emerald-600":"text-red-600"}`,children:[x(g.monthlyIncome,i.monthly_income)>=0?"+":"",x(g.monthlyIncome,i.monthly_income).toFixed(1),"%"]})]})]})]}),v.jsxs(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg",children:[v.jsx(Tn,{children:v.jsxs(jn,{className:"flex items-center gap-2 text-lg",children:[v.jsx(Pl,{className:"w-5 h-5 text-red-600"}),"Monthly Expenses Comparison"]})}),v.jsxs(Nt,{className:"space-y-4",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-sm text-slate-600",children:"Your Household"}),v.jsxs("p",{className:"text-2xl font-bold text-slate-900",children:["â¬",g.monthlyExpenses.toLocaleStr
395ing()]})]}),v.jsxs("div",{children:[v.jsx("p",{className:"text-sm text-slate-600",children:"City Average"}),v.jsxs("p",{className:"text-2xl font-bold text-slate-700",children:["â¬",i.monthly_expenses.toLocaleString()]})]}),v.jsxs("div",{className:"pt-2 border-t",children:[v.jsx("p",{className:"text-sm text-slate-600",children:"Difference"}),v.jsxs("p",{className:`text-xl font-bold ${x(g.monthlyExpenses,i.monthly_expenses)<=0?"text-emerald-600":"text-red-600"}`,children:[x(g.monthlyExpenses,i.monthly_expenses)>=0?"+":"",x(g.monthlyExpenses,i.monthly_expenses).toFixed(1),"%"]})]})]})]})]}),v.jsxs(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg",children:[v.jsxs(Tn,{children:[v.jsx(jn,{children:"Visual Comparison"}),v.jsx("p",{className:"text-slate-600",children:"Your household vs city average (monthly)"})]}),v.jsx(Nt,{children:v.jsx(Ig,{width:"100%",height:400,children:v.jsxs(ume,{data:y,children:[v.jsx(oP,{strokeDasharray:"3 3",stroke:"#e2e8f0"}),v.jsx(Ku,{dataKey:"category",stroke:"#64748b"}),v.jsx(Gu,{stroke:"#64748b"}),v.jsx(yr,{formatter:S=>`â¬${S.toLocaleString()}`,contentStyle:{backgroundColor:"rgba(255, 255, 255, 0.95)",border:"1px solid #e2e8f0",borderRadius:"8px"}}),v.jsx(fs,{}),v.jsx(ha,{dataKey:"Your Household",fill:"#059669",radius:[8,8,0,0]}),v.jsx(ha,{dataKey:"City Average",fill:"#3b82f6",radius:[8,8,0,0]})]})})})]})]}):v.jsxs(jl,{className:"bg-blue-50 border-blue-200",children:[v.jsx(mb,{className:"w-4 h-4 text-blue-600"}),v.jsx(Nl,{className:"text-blue-800",children:"Unable to load city averages. Please try again later."})]})]})})}function hL({goal:e,onEdit:t,onDelete:n}){const r=e.current_amount/e.target_amount*100,i=Kz(new Date(e.deadline),new Date),o=i<0,a=r>=100;return v.jsxs(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg hover:shadow-xl transition-shadow",children:[v.jsx(Tn,{className:"pb-4",children:v.jsxs("div",{className:"flex items-start justify-between",children:[v.jsxs("div",{className:"flex items-start gap-3 flex-1",children:[v.jsx("div",{className:`p-2 rounded-lg ${e.type==="savings"?"bg-emerald-50":"bg-blue-50"}`,children:v.jsx(ca,{className:`w-5 h-5 ${e.type==="savings"?"text-emerald-600":"text-blue-600"}`})}),v.jsxs("div",{className:"flex-1",children:[v.jsx(jn,{className:"text-lg font-bold text-slate-900",children:e.name}),e.description&&v.jsx("p",{className:"text-sm text-slate-600 mt-1",children:e.description}),v.jsxs("div",{className:"flex items-center gap-2 mt-2 text-sm text-slate-500",children:[v.jsx(eg,{className:"w-4 h-4"}),v.jsx("span",{children:o?v.jsxs("span",{className:"text-red-600 font-medium",children:["Overdue by ",Math.abs(i)," days"]}):a?v.jsx("span",{className:"text-emerald-600 font-medium",children:"Goal achieved!"}):v.jsxs("span",{children:[i," days remaining"]})})]})]})]}),v.jsxs("div",{className:"flex gap-2",children:[v.jsx(ht,{variant:"ghost",size:"icon",onClick:()=>t(e),children:v.jsx(yW,{className:"w-4 h-4 text-slate-500"})}),v.jsx(ht,{variant:"ghost",size:"icon",onClick:()=>n(e),children:v.jsx(Bp,{className:"w-4 h-4 text-red-500"})})]})]})}),v.jsxs(Nt,{className:"space-y-4",children:[v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center justify-between mb-2",children:[v.jsx("span",{className:"text-sm font-medium text-slate-700",children:"Progress"}),v.jsxs("span",{className:"text-sm font-bold text-slate-900",children:[r.toFixed(1),"%"]})]}),v.jsx(uP,{value:Math.min(r,100),className:"h-3"})]}),v.jsxs("div",{className:"flex items-center justify-between pt-2 border-t border-slate-200",children:[v.jsxs("div",{children:[v.jsx("p",{className:"text-xs text-slate-500",children:"Current"}),v.jsxs("p",{className:"text-lg font-bold text-slate-900",children:["â¬",e.current_amount.toLocaleString()]})]}),v.jsx(so,{className:"w-5 h-5 text-slate-400"}),v.jsxs("div",{className:"text-right",children:[v.jsx("p",{className:"text-xs text-slate-500",children:"Target"}),v.jsxs("p",{className:"text-lg font-bold text-slate-900",children:["â¬",e.target_amount.toLocaleString()]})]})]}),v.jsxs("div",{className:"text-sm text-slate-600 bg-slate-50 p-3 rounded-lg",children:[v.jsxs("p",{className:"font-medium",children:["Remaining: â¬",(e.target_amount-e.current_amount).toLocaleStr
395ing()]}),!a&&i>0&&v.jsxs("p",{className:"text-xs text-slate-500 mt-1",children:["Save â¬",((e.target_amount-e.current_amount)/i).toFixed(2),"/day to reach goal"]})]})]})]})}function Yge({open:e,onClose:t,onSubmit:n,goal:r}){const[i,o]=T.useState({name:"",type:"savings",target_amount:"",current_amount:"0",deadline:"",description:""}),[a,l]=T.useState(!1);T.useEffect(()=>{o(r?{name:r.name,type:r.type,target_amount:r.target_amount.toString(),current_amount:r.current_amount.toString(),deadline:r.deadline,description:r.description||""}:{name:"",type:"savings",target_amount:"",current_amount:"0",deadline:"",description:""})},[r,e]);const c=async f=>{f.preventDefault(),l(!0);try{await n({...i,target_amount:parseFloat(i.target_amount),current_amount:parseFloat(i.current_amount)}),t()}catch(d){console.error("Error saving goal:",d)}l(!1)};return v.jsx(hP,{open:e,onOpenChange:t,children:v.jsxs(dy,{className:"sm:max-w-lg bg-white/95 backdrop-blur-sm",children:[v.jsx(hy,{children:v.jsx(my,{className:"text-xl font-bold text-slate-900",children:r?"Edit Goal":"Create New Goal"})}),v.jsxs("form",{onSubmit:c,className:"space-y-4",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx(An,{htmlFor:"name",children:"Goal Name"}),v.jsx(qr,{id:"name",value:i.name,onChange:f=>o({...i,name:f.target.value}),placeholder:"e.g., Emergency Fund, Pay off Credit Card",required:!0})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(An,{htmlFor:"type",children:"Goal Type"}),v.jsxs(Cl,{value:i.type,onValueChange:f=>o({...i,type:f}),children:[v.jsx(us,{children:v.jsx(Tl,{})}),v.jsxs(cs,{children:[v.jsx(Jn,{value:"savings",children:"Savings Target"}),v.jsx(Jn,{value:"debt_reduction",children:"Debt Reduction"})]})]})]}),v.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx(An,{htmlFor:"target_amount",children:"Target Amount (â¬)"}),v.jsx(qr,{id:"target_amount",type:"number",min:"0",step:"0.01",value:i.target_amount,onChange:f=>o({...i,target_amount:f.target.value}),placeholder:"10000",required:!0})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(An,{htmlFor:"current_amount",children:"Current Amount (â¬)"}),v.jsx(qr,{id:"current_amount",type:"number",min:"0",step:"0.01",value:i.current_amount,onChange:f=>o({...i,current_amount:f.target.value}),placeholder:"0",required:!0})]})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(An,{htmlFor:"deadline",children:"Target Deadline"}),v.jsxs("div",{className:"relative",children:[v.jsx(eg,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-slate-400 w-4 h-4 pointer-events-none"}),v.jsx(qr,{id:"deadline",type:"date",value:i.deadline,onChange:f=>o({...i,deadline:f.target.value}),className:"pl-10",required:!0})]})]}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(An,{htmlFor:"description",children:"Description (Optional)"}),v.jsx(Sg,{id:"description",value:i.description,onChange:f=>o({...i,description:f.target.value}),placeholder:"Add notes about this goal...",className:"min-h-[80px]"})]}),v.jsxs(py,{className:"gap-2",children:[v.jsx(ht,{type:"button",variant:"outline",onClick:t,children:"Cancel"}),v.jsx(ht,{type:"submit",disabled:a,className:"bg-gradient-to-r from-blue-600 to-emerald-500 hover:from-blue-700 hover:to-emerald-600 text-white",children:a?"Saving...":r?"Update Goal":"Create Goal"})]})]})]})})}function Xge(){const e=ng(),t=RO(),[n,r]=T.useState(!1),[i,o]=T.useState(null),{data:a=[],isLoading:l}=Of({queryKey:["goals"],queryFn:()=>rn.entities.Goal.list("-created_date",100)}),c=vb({mutationFn:x=>rn.entities.Goal.create(x),onSuccess:()=>{t.invalidateQueries({queryKey:["goals"]}),r(!1)}}),f=vb({mutationFn:({id:x,goalData:S})=>rn.entities.Goal.update(x,S),onSuccess:()=>{t.invalidateQueries({queryKey:["goals"]}),r(!1),o(null)}}),d=vb({mutationFn:x=>rn.entities.Goal.delete(x),onSuccess:()=>{t.invalidateQueries({queryKey:["goals"]})}}),h=async x=>{i?await f.mutateAsync({id:i.id,goalData:x}):await c.mutateAsync(x)},m=x=>{o(x),r(!0)},g=async x=>{confirm(`Are you sure you want to delete "${x.name}"?`)&&await d.mutateAsync(x.id)},w=a.filter(x=>x.current_amount/x.target_amount*100<100),y=a.filter(x=>x.current_amount/x.target_amount*100>=100);return v.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-blue-50 p-4 md:p-8",children:v.jsxs("div",{className:"max-w-7xl mx-auto
395space-y-8",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(ht,{variant:"outline",size:"icon",onClick:()=>e(Zn("Dashboard")),className:"bg-white/80 backdrop-blur-sm border-slate-200/60",children:v.jsx(PO,{className:"w-5 h-5"})}),v.jsxs("div",{children:[v.jsxs("h1",{className:"text-3xl font-bold text-slate-900 tracking-tight flex items-center gap-3",children:[v.jsx(ca,{className:"w-8 h-8 text-blue-600"}),"Financial Goals"]}),v.jsx("p",{className:"text-slate-600 mt-1",children:"Set and track your financial targets"})]})]}),v.jsxs(ht,{onClick:()=>{o(null),r(!0)},className:"bg-gradient-to-r from-blue-600 to-emerald-500 hover:from-blue-700 hover:to-emerald-600 text-white shadow-lg",children:[v.jsx(wf,{className:"w-5 h-5 mr-2"}),"New Goal"]})]}),w.length>0&&v.jsxs("div",{children:[v.jsxs("h2",{className:"text-xl font-bold text-slate-900 mb-4",children:["Active Goals (",w.length,")"]}),v.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:w.map(x=>v.jsx(hL,{goal:x,onEdit:m,onDelete:g},x.id))})]}),y.length>0&&v.jsxs("div",{children:[v.jsxs("h2",{className:"text-xl font-bold text-slate-900 mb-4",children:["Completed Goals (",y.length,")"]}),v.jsx("div",{className:"grid gap-6 md:grid-cols-2 lg:grid-cols-3",children:y.map(x=>v.jsx(hL,{goal:x,onEdit:m,onDelete:g},x.id))})]}),a.length===0&&!l&&v.jsxs("div",{className:"text-center py-16",children:[v.jsx(ca,{className:"w-24 h-24 text-slate-200 mx-auto mb-6"}),v.jsx("h3",{className:"text-2xl font-bold text-slate-900 mb-3",children:"No Goals Yet"}),v.jsx("p",{className:"text-slate-600 mb-6 max-w-md mx-auto",children:"Start your financial journey by creating your first goal. Set savings targets, plan debt reduction, and track your progress."}),v.jsxs(ht,{onClick:()=>{o(null),r(!0)},className:"bg-gradient-to-r from-blue-600 to-emerald-500 hover:from-blue-700 hover:to-emerald-600 text-white shadow-lg",children:[v.jsx(wf,{className:"w-5 h-5 mr-2"}),"Create Your First Goal"]})]}),v.jsx(Yge,{open:n,onClose:()=>{r(!1),o(null)},onSubmit:h,goal:i})]})})}function Qge(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Jge=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Zge=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,eye={};function pL(e,t){return(eye.jsx?Zge:Jge).test(e)}const tye=/[ \t\n\f\r]/g;function nye(e){return typeof e=="object"?e.type==="text"?mL(e.value):!1:mL(e)}function mL(e){return e.replace(tye,"")===""}class Dd{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Dd.prototype.normal={};Dd.prototype.property={};Dd.prototype.space=void 0;function x6(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Dd(n,r,t)}function fO(e){return e.toLowerCase()}class or{constructor(t,n){this.attribute=n,this.property=t}}or.prototype.attribute="";or.prototype.booleanish=!1;or.prototype.boolean=!1;or.prototype.commaOrSpaceSeparated=!1;or.prototype.commaSeparated=!1;or.prototype.defined=!1;or.prototype.mustUseProperty=!1;or.prototype.number=!1;or.prototype.overloadedBoolean=!1;or.prototype.property="";or.prototype.spaceSeparated=!1;or.prototype.space=void 0;let rye=0;const Ve=$s(),Ht=$s(),dO=$s(),pe=$s(),St=$s(),Dl=$s(),pr=$s();function $s(){return 2**++rye}const hO=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ve,booleanish:Ht,commaOrSpaceSeparated:pr,commaSeparated:Dl,number:pe,overloadedBoolean:dO,spaceSeparated:St},Symbol.toStringTag,{value:"Module"})),U1=Object.keys(hO);class mP extends or{constructor(t,n,r,i){let o=-1;if(super(t,n),gL(this,"space",i),typeof r=="number")for(;++o<U1.length;){const a=U1[o];gL(this,U1[o],(r&hO[a])===hO[a])}}}mP.prototype.defined=!0;function gL(e,t,n){n&&(e[t]=n)}function Xu(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new mP(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[fO(r)]=r,n[fO(o.attribute)]=r}return new Dd(t,n,e.space)}const w6=Xu({properties:{ariaActiveDescendant:null,ariaAtomic:Ht,ariaAutoComplete:null,ariaBusy:Ht,ariaChecked:Ht,ariaColCount:pe,ariaColIndex:pe,ariaColSpan:pe,ariaControl
vendor: 5,436 bytes, line 395
395s:St,ariaCurrent:null,ariaDescribedBy:St,ariaDetails:null,ariaDisabled:Ht,ariaDropEffect:St,ariaErrorMessage:null,ariaExpanded:Ht,ariaFlowTo:St,ariaGrabbed:Ht,ariaHasPopup:null,ariaHidden:Ht,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:St,ariaLevel:pe,ariaLive:null,ariaModal:Ht,ariaMultiLine:Ht,ariaMultiSelectable:Ht,ariaOrientation:null,ariaOwns:St,ariaPlaceholder:null,ariaPosInSet:pe,ariaPressed:Ht,ariaReadOnly:Ht,ariaRelevant:null,ariaRequired:Ht,ariaRoleDescription:St,ariaRowCount:pe,ariaRowIndex:pe,ariaRowSpan:pe,ariaSelected:Ht,ariaSetSize:pe,ariaSort:null,ariaValueMax:pe,ariaValueMin:pe,ariaValueNow:pe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function S6(e,t){return t in e?e[t]:t}function _6(e,t){return S6(e,t.toLowerCase())}const iye=Xu({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Dl,acceptCharset:St,accessKey:St,action:null,allow:null,allowFullScreen:Ve,allowPaymentRequest:Ve,allowUserMedia:Ve,alt:null,as:null,async:Ve,autoCapitalize:null,autoComplete:St,autoFocus:Ve,autoPlay:Ve,blocking:St,capture:null,charSet:null,checked:Ve,cite:null,className:St,cols:pe,colSpan:null,content:null,contentEditable:Ht,controls:Ve,controlsList:St,coords:pe|Dl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ve,defer:Ve,dir:null,dirName:null,disabled:Ve,download:dO,draggable:Ht,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ve,formTarget:null,headers:St,height:pe,hidden:dO,high:pe,href:null,hrefLang:null,htmlFor:St,httpEquiv:St,id:null,imageSizes:null,imageSrcSet:null,inert:Ve,inputMode:null,integrity:null,is:null,isMap:Ve,itemId:null,itemProp:St,itemRef:St,itemScope:Ve,itemType:St,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ve,low:pe,manifest:null,max:null,maxLength:pe,media:null,method:null,min:null,minLength:pe,multiple:Ve,muted:Ve,name:null,nonce:null,noModule:Ve,noValidate:Ve,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ve,optimum:pe,pattern:null,ping:St,placeholder:null,playsInline:Ve,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ve,referrerPolicy:null,rel:St,required:Ve,reversed:Ve,rows:pe,rowSpan:pe,sandbox:St,scope:null,scoped:Ve,seamless:Ve,selected:Ve,shadowRootClonable:Ve,shadowRootDelegatesFocus:Ve,shadowRootMode:null,shape:null,size:pe,sizes:null,slot:null,span:pe,spellCheck:Ht,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pe,step:null,style:null,tabIndex:pe,target:null,title:null,translate:null,type:null,typeMustMatch:Ve,useMap:null,value:Ht,width:pe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:St,axis:null,background:null,bgColor:null,border:pe,borderColor:null,bottomMargin:pe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ve,declare:Ve,event:null,face:null,frame:null,frameBorder:null,hSpace:pe,leftMargin:pe,link:null,longDesc:null,lowSrc:null,marginHeight:pe,marginWidth:pe,noResize:Ve,noHref:Ve,noShade:Ve,noWrap:Ve,object:null,profile:null,prompt:null,rev:null,rightMargin:pe,rules:null,scheme:null,scrolling:Ht,standby:null,summary:null,text:null,topMargin:pe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ve,disableRemotePlayback:Ve,prefix:null,property:null,results:pe,security:null,unselectable:null},space:"html",transform:_6}),oye=Xu({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
395dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:pr,accentHeight:pe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pe,amplitude:pe,arabicForm:null,ascent:pe,attributeName:null,attributeType:null,azimuth:pe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pe,by:null,calcMode:null,capHeight:pe,className:St,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
395dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:pe,diffuseConstant:pe,direction:null,display:null,dur:null,divisor:pe,dominantBaseline:null,download:Ve,dx:null,dy:null,edgeMode:null,editable:null,elevation:pe,enableBackground:null,end:null,event:null,exponent:pe,externalResourcesRequired:null,fill:null,fillOpacity:pe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Dl,g2:Dl,glyphName:Dl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pe,horizOriginX:pe,horizOriginY:pe,id:null,ideographic:pe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pe,k:pe,k1:pe,k2:pe,k3:pe,k4:pe,kernelMatrix:pr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:pe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:pe,overlineThickness:pe,paintOrder:null,panose1:null,path:null,pathLength:pe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:St,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pe,pointsAtY:pe,pointsAtZ:pe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:pr,rev:pr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pr,requiredFeatures:pr,requiredFonts:pr,requiredFormats:pr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:pe,specularExponent:pe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pe,strikethroughThickness:pe,string:null,stroke:null,strokeDashArray:pr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pe,strokeOpacity:pe,strokeWidth:null,style:null,surfaceScale:pe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pr,tabIndex:pe,tableValues:null,target:null,targetX:pe,targetY:pe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:pr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pe,underlineThickness:pe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pe,values:null,vAlphabetic:pe,vMathematical:pe,vectorEffect:null,vHanging:pe,vIdeographic:pe,version:null,vertAdvY:pe,vertOriginX:pe,vertOriginY:pe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:S6}),O6=Xu({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 3,000 bytes, lines 395-396
395,space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),E6=Xu({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_6}),P6=Xu({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),aye={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},sye=/[A-Z]/g,yL=/-[a-z]/g,lye=/^data[-\w.:]+$/i;function uye(e,t){const n=fO(t);let r=t,i=or;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&lye.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(yL,fye);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!yL.test(o)){let a=o.replace(sye,cye);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=mP}return new i(r,t)}function cye(e){return"-"+e.toLowerCase()}function fye(e){return e.charAt(1).toUpperCase()}const dye=x6([w6,iye,O6,E6,P6],"html"),gP=x6([w6,oye,O6,E6,P6],"svg");function hye(e){return e.join(" ").trim()}var bl={},W1,vL;function pye(){if(vL)return W1;vL=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c=` 396`,f="/",d="*",h="",m="comment",g="declaration";W1=function(y,x){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];x=x||{};var S=1,P=1;function E(B){var W=B.match(t);W&&(S+=W.length);var V=B.lastIndexOf(c);P=~V?B.length-V:P+B.length}function C(){var B={line:S,column:P};return function(W){return W.position=new O(B),R(),W}}function O(B){this.start=B,this.end={line:S,column:P},this.source=x.source}O.prototype.content=y;function A(B){var W=new Error(x.source+":"+S+":"+P+": "+B);if(W.reason=B,W.filename=x.source,W.line=S,W.column=P,W.source=y,!x.silent)throw W}function j(B){var W=B.exec(y);if(W){var V=W[0];return E(V),y=y.slice(V.length),W}}function R(){j(n)}function L(B){var W;for(B=B||[];W=q();)W!==!1&&B.push(W);return B}function q(){var B=C();if(!(f!=y.charAt(0)||d!=y.charAt(1))){for(var W=2;h!=y.charAt(W)&&(d!=y.charAt(W)||f!=y.charAt(W+1));)++W;if(W+=2,h===y.charAt(W-1))return A("End of comment missing");var V=y.slice(2,W-2);return P+=2,E(V),y=y.slice(W),P+=2,B({type:m,comment:V})}}function D(){var B=C(),W=j(r);if(W){if(q(),!j(i))return A("property missing ':'");var V=j(o),Y=B({type:g,property:w(W[0].replace(e,h)),value:V?w(V[0].replace(e,h)):h});return j(a),Y}}function $(){var B=[];L(B);for(var W;W=D();)W!==!1&&(B.push(W),L(B));return B}return R(),$()};function w(y){return y?y.replace(l,h):h}return W1}var bL;
vendor: 3,844 bytes, line 396
396function mye(){if(bL)return bl;bL=1;var e=bl&&bl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(bl,"__esModule",{value:!0}),bl.default=n;var t=e(pye());function n(r,i){var o=null;if(!r||typeof r!="string")return o;var a=(0,t.default)(r),l=typeof i=="function";return a.forEach(function(c){if(c.type==="declaration"){var f=c.property,d=c.value;l?i(f,d,c):d&&(o=o||{},o[f]=d)}}),o}return bl}var Xc={},xL;function gye(){if(xL)return Xc;xL=1,Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(f){return!f||n.test(f)||e.test(f)},a=function(f,d){return d.toUpperCase()},l=function(f,d){return"".concat(d,"-")},c=function(f,d){return d===void 0&&(d={}),o(f)?f:(f=f.toLowerCase(),d.reactCompat?f=f.replace(i,l):f=f.replace(r,l),f.replace(t,a))};return Xc.camelCase=c,Xc}var Qc,wL;function yye(){if(wL)return Qc;wL=1;var e=Qc&&Qc.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(mye()),n=gye();function r(i,o){var a={};return!i||typeof i!="string"||(0,t.default)(i,function(l,c){l&&c&&(a[(0,n.camelCase)(l,o)]=c)}),a}return r.default=r,Qc=r,Qc}var vye=yye();const bye=tt(vye),A6=k6("end"),yP=k6("start");function k6(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function xye(e){const t=yP(e),n=A6(e);if(t&&n)return{start:t,end:n}}function vf(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?SL(e.position):"start"in e||"end"in e?SL(e):"line"in e||"column"in e?pO(e):""}function pO(e){return _L(e&&e.line)+":"+_L(e&&e.column)}function SL(e){return pO(e&&e.start)+"-"+pO(e&&e.end)}function _L(e){return e&&typeof e=="number"?e:1}class Rn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const c=r.indexOf(":");c===-1?o.ruleId=r:(o.source=r.slice(0,c),o.ruleId=r.slice(c+1))}if(!o.place&&o.ancestors&&o.ancestors){const c=o.ancestors[o.ancestors.length-1];c&&(o.place=c.position)}const l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=vf(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Rn.prototype.file="";Rn.prototype.name="";Rn.prototype.reason="";Rn.prototype.message="";Rn.prototype.stack="";Rn.prototype.column=void 0;Rn.prototype.line=void 0;Rn.prototype.ancestors=void 0;Rn.prototype.cause=void 0;Rn.prototype.fatal=void 0;Rn.prototype.place=void 0;Rn.prototype.ruleId=void 0;Rn.prototype.source=void 0;const vP={}.hasOwnProperty,wye=new Map,Sye=/[A-Z]/g,_ye=new Set(["table","tbody","thead","tfoot","tr"]),Oye=new Set(["td","th"]),C6="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Eye(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Rye(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,347 bytes, line 396
396if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Nye(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?gP:dye,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=T6(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function T6(e,t,n){if(t.type==="element")return Pye(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Aye(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Cye(e,t,n);if(t.type==="mdxjsEsm")return kye(e,t);if(t.type==="root")return Tye(e,t,n);if(t.type==="text")return jye(e,t)}function Pye(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=gP,e.schema=i),e.ancestors.push(t);const o=N6(e,t.tagName,!1),a=Mye(e,t);let l=xP(e,t);return _ye.has(t.tagName)&&(l=l.filter(function(c){return typeof c=="string"?!nye(c):!0})),j6(e,a,o,t),bP(a,l),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function Aye(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}fd(e,t.position)}function kye(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);fd(e,t.position)}function Cye(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=gP,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:N6(e,t.name,!0),a=Iye(e,t),l=xP(e,t);return j6(e,a,o,t),bP(a,l),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function Tye(e,t,n){const r={};return bP(r,xP(e,t)),e.create(t,e.Fragment,r,n)}function jye(e,t){return t.value}function j6(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function bP(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Nye(e,t,n){return r;function r(i,o,a,l){const f=Array.isArray(a.children)?n:t;return l?f(o,a,l):f(o,a)}}function Rye(e,t){return n;function n(r,i,o,a){const l=Array.isArray(o.children),c=yP(r);return t(i,o,a,l,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function Mye(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&vP.call(t.properties,i)){const o=Dye(e,i,t.properties[i]);if(o){const[a,l]=o;e.tableCellAlignToStyle&&a==="align"&&typeof l=="string"&&Oye.has(t.tagName)?r=l:n[a]=l}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Iye(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const l=a.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else fd(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else fd(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function xP(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:wye;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const c=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(c){const f=i.get(c)||0;a=c+"-"+f,i.set(c,f+1)}}const l=T6(e,o,a);l!==void 0&&n.push(l)}return n}function Dye(e,t,n){const r=uye(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Qge(n):hye(n)),r.property==="style"){let i=typeof n=="object"?n:Lye(e,String(n));return e.stylePropertyNameCase==="css"&&(i=$ye(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?aye[r.property]||r.property:r.attribute,n]}}function Lye(e,t){try{return bye(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Rn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=C6+"#cannot-parse-style-attribute",i}}function N6(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,a;for(;++o<i.length;){const l=pL(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};a=a?{type:"MemberExpression",object:a,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}r=a}else r=pL(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return vP.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);fd(e)}function fd(e,t){const n=new Rn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=C6+"#cannot-handle-mdx-estrees-without-createevaluater",n}function $ye(e){const t={};let n;for(n in e)vP.call(e,n)&&(t[Fye(n)]=e[n]);return t}function Fye(e){let t=e.replace(Sye,Bye);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Bye(e){return"-"+e.toLowerCase()}const H1={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},qye={};function zye(e,t){const n=qye,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return R6(e,r,i)}function R6(e,t,n){if(Uye(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return OL(e.children,t,n)}return Array.isArray(e)?OL(e,t,n):""}function OL(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=R6(e[i],t,n);return r.join("")}function Uye(e){return!!(e&&typeof e=="object")}const EL=document.createElement("i");function wP(e){const t="&"+e+";";EL.innerHTML=t;const n=EL.textContent;
vendor: 10,925 bytes, line 396
396return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ii(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function Fr(e,t){return e.length>0?(Ii(e,e.length,0,t),e):t}const PL={}.hasOwnProperty;function Wye(e){const t={};let n=-1;for(;++n<e.length;)Hye(t,e[n]);return t}function Hye(e,t){let n;for(n in t){const i=(PL.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){PL.call(i,a)||(i[a]=[]);const l=o[a];Vye(i[a],Array.isArray(l)?l:l?[l]:[])}}}function Vye(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ii(e,0,0,r)}function M6(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ll(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Oi=xa(/[A-Za-z]/),wr=xa(/[\dA-Za-z]/),Kye=xa(/[#-'*+\--9=?A-Z^-~]/);function mO(e){return e!==null&&(e<32||e===127)}const gO=xa(/\d/),Gye=xa(/[\dA-Fa-f]/),Yye=xa(/[!-/:-@[-`{-~]/);function qe(e){return e!==null&&e<-2}function rr(e){return e!==null&&(e<0||e===32)}function lt(e){return e===-2||e===-1||e===32}const Xye=xa(new RegExp("\\p{P}|\\p{S}","u")),Qye=xa(/\s/);function xa(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Qu(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&wr(e.charCodeAt(n+1))&&wr(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const l=e.charCodeAt(n+1);o<56320&&l>56319&&l<57344?(a=String.fromCharCode(o,l),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Et(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(c){return lt(c)?(e.enter(n),l(c)):t(c)}function l(c){return lt(c)&&o++<i?(e.consume(c),l):(e.exit(n),t(c))}}const Jye={tokenize:Zye};function Zye(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Et(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),o(l)}function o(l){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,a(l)}function a(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return qe(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),a)}}const eve={tokenize:tve},AL={tokenize:nve};function tve(e){const t=this,n=[];let r=0,i,o,a;return l;function l(E){if(r<n.length){const C=n[r];return t.containerState=C[1],e.attempt(C[0].continuation,c,f)(E)}return f(E)}function c(E){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&P();const C=t.events.length;let O=C,A;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){A=t.events[O][1].end;break}S(r);let j=C;for(;j<t.events.length;)t.events[j][1].end={...A},j++;return Ii(t.events,O+1,0,t.events.slice(C)),t.events.length=j,f(E)}return l(E)}function f(E){if(r===n.length){if(!i)return m(E);if(i.currentConstruct&&i.currentConstruct.concrete)return w(E);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(AL,d,h)(E)}function d(E){return i&&P(),S(r),m(E)}function h(E){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,w(E)}function m(E){return t.containerState={},e.attempt(AL,g,w)(E)}function g(E){return r++,n.push([t.currentConstruct,t.containerState]),m(E)}function w(E){if(E===null){i&&P(),S(0),e.consume(E);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),y(E)}function y(E){if(E===null){x(e.exit("chunkFlow"),!0),S(0),e.consume(E);return}return qe(E)?(e.consume(E),x(e.exit("chunkFlow")),r=0,t.interrupt=void 0,l):(e.consume(E),y)}function x(E,C){const O=t.sliceStream(E);if(C&&O.push(null),E.previous=o,o&&(o.next=E),o=E,i.defineSkip(E.start),i.write(O),t.parser.lazy[E.start.line]){let A=i.events.length;for(;A--;)if(i.events[A][1].start.offset<a&&(!i.events[A][1].end||i.events[A][1].end.offset>a))return;const j=t.events.length;let R=j,L,q;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(L){q=t.events[R][1].end;break}L=!0}for(S(r),A=j;A<t.events.length;)t.events[A][1].end={...q},A++;Ii(t.events,R+1,0,t.events.slice(j)),t.events.length=A}}function S(E){let C=n.length;for(;C-- >E;){const O=n[C];t.containerState=O[1],O[0].exit.call(t,e)}n.length=E}function P(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function nve(e,t,n){return Et(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function kL(e){if(e===null||rr(e)||Qye(e))return 1;if(Xye(e))return 2}function SP(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const yO={name:"attention",resolveAll:rve,tokenize:ive};function rve(e,t){let n=-1,r,i,o,a,l,c,f,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},m={...e[n][1].start};CL(h,-c),CL(m,c),a={type:c>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},l={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},o={type:c>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?"strong":"emphasis",start:{...a.start},end:{...l.end}},e[r][1].end={...a.start},e[n][1].start={...l.end},f=[],e[r][1].end.offset-e[r][1].start.offset&&(f=Fr(f,[["enter",e[r][1],t],["exit",e[r][1],t]])),f=Fr(f,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),f=Fr(f,SP(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),f=Fr(f,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,f=Fr(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Ii(e,r-1,n-r+3,f),n=r+f.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function ive(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=kL(r);let o;return a;function a(c){return o=c,e.enter("attentionSequence"),l(c)}function l(c){if(c===o)return e.consume(c),l;const f=e.exit("attentionSequence"),d=kL(c),h=!d||d===2&&i||n.includes(c),m=!i||i===2&&d||n.includes(r);return f._open=!!(o===42?h:h&&(i||!m)),f._close=!!(o===42?m:m&&(d||!h)),t(c)}}function CL(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ove={name:"autolink",tokenize:ave};function ave(e,t,n){let r=0;return i;function i(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(g){return Oi(g)?(e.consume(g),a):g===64?n(g):f(g)}function a(g){return g===43||g===45||g===46||wr(g)?(r=1,l(g)):f(g)}function l(g){return g===58?(e.consume(g),r=0,c):(g===43||g===45||g===46||wr(g))&&r++<32?(e.consume(g),l):(r=0,f(g))}function c(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||mO(g)?n(g):(e.consume(g),c)}function f(g){return g===64?(e.consume(g),d):Kye(g)?(e.consume(g),f):n(g)}function d(g){return wr(g)?h(g):n(g)}function h(g){return g===46?(e.consume(g),r=0,d):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):m(g)}function m(g){if((g===45||wr(g))&&r++<63){const w=g===45?m:h;return e.consume(g),w}return n(g)}}const gy={partial:!0,tokenize:sve};function sve(e,t,n){return r;function r(o){return lt(o)?Et(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||qe(o)?t(o):n(o)}}const I6={continuation:{tokenize:uve},exit:cve,name:"blockQuote",tokenize:lve};function lve(e,t,n){const r=this;return i;function i(a){if(a===62){const l=r.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return lt(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function uve(e,t,n){const r=this;return i;function i(a){return lt(a)?Et(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(I6,t,n)(a)}}function cve(e){e.exit("blockQuote")}const D6={name:"characterEscape",tokenize:fve};function fve(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Yye(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const L6={name:"characterReference",tokenize:dve};function dve(e,t,n){const r=this;let i=0,o,a;return l;function l(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),c}function c(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),o=31,a=wr,d(h))}function f(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=Gye,d):(e.enter("characterReferenceValue"),o=7,a=gO,d(h))}function d(h){if(h===59&&i){const m=e.exit("characterReferenceValue");return a===wr&&!wP(r.sliceSerialize(m))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(h)&&i++<o?(e.consume(h),d):n(h)}}const TL={partial:!0,tokenize:pve},jL={concrete:!0,name:"codeFenced",tokenize:hve};function hve(e,t,n){const r=this,i={partial:!0,tokenize:O};let o=0,a=0,l;return c;function c(A){return f(A)}function f(A){const j=r.events[r.events.length-1];return o=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,l=A,e.enter("co
396deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(A)}function d(A){return A===l?(a++,e.consume(A),d):a<3?n(A):(e.exit("codeFencedFenceSequence"),lt(A)?Et(e,h,"whitespace")(A):h(A))}function h(A){return A===null||qe(A)?(e.exit("codeFencedFence"),r.interrupt?t(A):e.check(TL,y,C)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(A))}function m(A){return A===null||qe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(A)):lt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Et(e,g,"whitespace")(A)):A===96&&A===l?n(A):(e.consume(A),m)}function g(A){return A===null||qe(A)?h(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(A))}function w(A){return A===null||qe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(A)):A===96&&A===l?n(A):(e.consume(A),w)}function y(A){return e.attempt(i,C,x)(A)}function x(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),S}function S(A){return o>0&<(A)?Et(e,P,"linePrefix",o+1)(A):P(A)}function P(A){return A===null||qe(A)?e.check(TL,y,C)(A):(e.enter("codeFlowValue"),E(A))}function E(A){return A===null||qe(A)?(e.exit("codeFlowValue"),P(A)):(e.consume(A),E)}function C(A){return e.exit("codeFenced"),t(A)}function O(A,j,R){let L=0;return q;function q(V){return A.enter("lineEnding"),A.consume(V),A.exit("lineEnding"),D}function D(V){return A.enter("codeFencedFence"),lt(V)?Et(A,$,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):$(V)}function $(V){return V===l?(A.enter("codeFencedFenceSequence"),B(V)):R(V)}function B(V){return V===l?(L++,A.consume(V),B):L>=a?(A.exit("codeFencedFenceSequence"),lt(V)?Et(A,W,"whitespace")(V):W(V)):R(V)}function W(V){return V===null||qe(V)?(A.exit("codeFencedFence"),j(V)):R(V)}}}function pve(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const V1={name:"codeIndented",tokenize:gve},mve={partial:!0,tokenize:yve};function gve(e,t,n){const r=this;return i;function i(f){return e.enter("codeIndented"),Et(e,o,"linePrefix",5)(f)}function o(f){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(f):n(f)}function a(f){return f===null?c(f):qe(f)?e.attempt(mve,a,c)(f):(e.enter("codeFlowValue"),l(f))}function l(f){return f===null||qe(f)?(e.exit("codeFlowValue"),a(f)):(e.consume(f),l)}function c(f){return e.exit("codeIndented"),t(f)}}function yve(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):qe(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Et(e,o,"linePrefix",5)(a)}function o(a){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):qe(a)?i(a):n(a)}}const vve={name:"codeText",previous:xve,resolve:bve,tokenize:wve};function bve(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function xve(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function wve(e,t,n){let r=0,i,o;return a;function a(h){return e.enter("codeText"),e.enter("codeTextSequence"),l(h)}function l(h){return h===96?(e.consume(h),r++,l):(e.exit("codeTextSequence"),c(h))}function c(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),c):h===96?(o=e.enter("codeTextSequence"),i=0,d(h)):qe(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("codeTextData"),f(h))}function f(h){return h===null||h===32||h===96||qe(h)?(e.exit("codeTextData"),c(h)):(e.consume(h),f)}function d(h){return h===96?(e.consume(h),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(o.type="codeTextData",f(h))}}class Sve{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Jc(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Jc(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Jc(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Jc(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Jc(this.left,n.reverse())}}}
vendor: 9,040 bytes, line 396
396function Jc(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function $6(e){const t={};let n=-1,r,i,o,a,l,c,f;const d=new Sve(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(c=r[1]._tokenizer.events,o=0,o<c.length&&c[o][1].type==="lineEndingBlank"&&(o+=2),o<c.length&&c[o][1].type==="content"))for(;++o<c.length&&c[o][1].type!=="content";)c[o][1].type==="chunkText"&&(c[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,_ve(d,n)),n=t[n],f=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(a=d.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...d.get(i)[1].start},l=d.slice(i,n),l.unshift(r),d.splice(i,n-i+1,l))}}return Ii(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!f}function _ve(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const l=a.events,c=[],f={};let d,h,m=-1,g=n,w=0,y=0;const x=[y];for(;g;){for(;e.get(++i)[1]!==g;);o.push(i),g._tokenizer||(d=r.sliceStream(g),g.next||d.push(null),h&&a.defineSkip(g.start),g._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(d),g._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),h=g,g=g.next}for(g=n;++m<l.length;)l[m][0]==="exit"&&l[m-1][0]==="enter"&&l[m][1].type===l[m-1][1].type&&l[m][1].start.line!==l[m][1].end.line&&(y=m+1,x.push(y),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(a.events=[],g?(g._tokenizer=void 0,g.previous=void 0):x.pop(),m=x.length;m--;){const S=l.slice(x[m],x[m+1]),P=o.pop();c.push([P,P+S.length-1]),e.splice(P,2,S)}for(c.reverse(),m=-1;++m<c.length;)f[w+c[m][0]]=w+c[m][1],w+=c[m][1]-c[m][0]-1;return f}const Ove={resolve:Pve,tokenize:Ave},Eve={partial:!0,tokenize:kve};function Pve(e){return $6(e),e}function Ave(e,t){let n;return r;function r(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?o(l):qe(l)?e.check(Eve,a,o)(l):(e.consume(l),i)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function a(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function kve(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Et(e,o,"linePrefix")}function o(a){if(a===null||qe(a))return n(a);const l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function F6(e,t,n,r,i,o,a,l,c){const f=c||Number.POSITIVE_INFINITY;let d=0;return h;function h(S){return S===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(S),e.exit(o),m):S===null||S===32||S===41||mO(S)?n(S):(e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),y(S))}function m(S){return S===62?(e.enter(o),e.consume(S),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===62?(e.exit("chunkString"),e.exit(l),m(S)):S===null||S===60||qe(S)?n(S):(e.consume(S),S===92?w:g)}function w(S){return S===60||S===62||S===92?(e.consume(S),g):g(S)}function y(S){return!d&&(S===null||S===41||rr(S))?(e.exit("chunkString"),e.exit(l),e.exit(a),e.exit(r),t(S)):d<f&&S===40?(e.consume(S),d++,y):S===41?(e.consume(S),d--,y):S===null||S===32||S===40||mO(S)?n(S):(e.consume(S),S===92?x:y)}function x(S){return S===40||S===41||S===92?(e.consume(S),y):y(S)}}function B6(e,t,n,r,i,o){const a=this;let l=0,c;return f;function f(g){return e.enter(r),e.enter(i),e.consume(g),e.exit(i),e.enter(o),d}function d(g){return l>999||g===null||g===91||g===93&&!c||g===94&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(g):g===93?(e.exit(o),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):qe(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===null||g===91||g===93||qe(g)||l++>999?(e.exit("chunkString"),d(g)):(e.consume(g),c||(c=!lt(g)),g===92?m:h)}function m(g){return g===91||g===92||g===93?(e.consume(g),l++,h):h(g)}}function q6(e,t,n,r,i,o){let a;return l;function l(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),a=m===40?41:m,c):n(m)}function c(m){return m===a?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(o),f(m))}function f(m){return m===a?(e.exit(o),c(a)):m===null?n(m):qe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Et(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===a||m===null||qe(m)?(e.exit("chunkString"),f(m)):(e.consume(m),m===92?h:d)}function h(m){return m===a||m===92?(e.consume(m),d):d(m)}}function bf(e,t){let n;return r;function r(i){return qe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):lt(i)?Et(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Cve={name:"definition",tokenize:jve},Tve={partial:!0,tokenize:Nve};function jve(e,t,n){const r=this;let i;return o;function o(g){return e.enter("definition"),a(g)}function a(g){return B6.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function l(g){return i=Ll(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),c):n(g)}function c(g){return rr(g)?bf(e,f)(g):f(g)}function f(g){return F6(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function d(g){return e.attempt(Tve,h,h)(g)}function h(g){return lt(g)?Et(e,m,"whitespace")(g):m(g)}function m(g){return g===null||qe(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function Nve(e,t,n){return r;function r(l){return rr(l)?bf(e,i)(l):n(l)}function i(l){return q6(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return lt(l)?Et(e,a,"whitespace")(l):a(l)}function a(l){return l===null||qe(l)?t(l):n(l)}}const Rve={name:"hardBreakEscape",tokenize:Mve};function Mve(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return qe(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Ive={name:"headingAtx",resolve:Dve,tokenize:Lve};function Dve(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ii(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Lve(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),o(d)}function o(d){return e.enter("atxHeadingSequence"),a(d)}function a(d){return d===35&&r++<6?(e.consume(d),a):d===null||rr(d)?(e.exit("atxHeadingSequence"),l(d)):n(d)}function l(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||qe(d)?(e.exit("atxHeading"),t(d)):lt(d)?Et(e,l,"whitespace")(d):(e.enter("atxHeadingText"),f(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),l(d))}function f(d){return d===null||d===35||rr(d)?(e.exit("atxHeadingText"),l(d)):(e.consume(d),f)}}const $ve=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],NL=["pre","script","style","textarea"],Fve={concrete:!0,name:"htmlFlow",resolveTo:zve,tokenize:Uve},Bve={partial:!0,tokenize:Hve},qve={partial:!0,tokenize:Wve};function zve(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Uve(e,t,n){const r=this;let i,o,a,l,c;return f;function f(I){return d(I)}function d(I){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(I),h}function h(I){return I===33?(e.consume(I),m):I===47?(e.consume(I),o=!0,y):I===63?(e.consume(I),i=3,r.interrupt?t:M):Oi(I)?(e.consume(I),a=String.fromCharCode(I),x):n(I)}function m(I){return I===45?(e.consume(I),i=2,g):I===91?(e.consume(I),i=
vendor: 10,997 bytes, line 396
3965,l=0,w):Oi(I)?(e.consume(I),i=4,r.interrupt?t:M):n(I)}function g(I){return I===45?(e.consume(I),r.interrupt?t:M):n(I)}function w(I){const ue="CDATA[";return I===ue.charCodeAt(l++)?(e.consume(I),l===ue.length?r.interrupt?t:$:w):n(I)}function y(I){return Oi(I)?(e.consume(I),a=String.fromCharCode(I),x):n(I)}function x(I){if(I===null||I===47||I===62||rr(I)){const ue=I===47,xe=a.toLowerCase();return!ue&&!o&&NL.includes(xe)?(i=1,r.interrupt?t(I):$(I)):$ve.includes(a.toLowerCase())?(i=6,ue?(e.consume(I),S):r.interrupt?t(I):$(I)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(I):o?P(I):E(I))}return I===45||wr(I)?(e.consume(I),a+=String.fromCharCode(I),x):n(I)}function S(I){return I===62?(e.consume(I),r.interrupt?t:$):n(I)}function P(I){return lt(I)?(e.consume(I),P):q(I)}function E(I){return I===47?(e.consume(I),q):I===58||I===95||Oi(I)?(e.consume(I),C):lt(I)?(e.consume(I),E):q(I)}function C(I){return I===45||I===46||I===58||I===95||wr(I)?(e.consume(I),C):O(I)}function O(I){return I===61?(e.consume(I),A):lt(I)?(e.consume(I),O):E(I)}function A(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),c=I,j):lt(I)?(e.consume(I),A):R(I)}function j(I){return I===c?(e.consume(I),c=null,L):I===null||qe(I)?n(I):(e.consume(I),j)}function R(I){return I===null||I===34||I===39||I===47||I===60||I===61||I===62||I===96||rr(I)?O(I):(e.consume(I),R)}function L(I){return I===47||I===62||lt(I)?E(I):n(I)}function q(I){return I===62?(e.consume(I),D):n(I)}function D(I){return I===null||qe(I)?$(I):lt(I)?(e.consume(I),D):n(I)}function $(I){return I===45&&i===2?(e.consume(I),Y):I===60&&i===1?(e.consume(I),J):I===62&&i===4?(e.consume(I),z):I===63&&i===3?(e.consume(I),M):I===93&&i===5?(e.consume(I),Z):qe(I)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Bve,X,B)(I)):I===null||qe(I)?(e.exit("htmlFlowData"),B(I)):(e.consume(I),$)}function B(I){return e.check(qve,W,X)(I)}function W(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),V}function V(I){return I===null||qe(I)?B(I):(e.enter("htmlFlowData"),$(I))}function Y(I){return I===45?(e.consume(I),M):$(I)}function J(I){return I===47?(e.consume(I),a="",F):$(I)}function F(I){if(I===62){const ue=a.toLowerCase();return NL.includes(ue)?(e.consume(I),z):$(I)}return Oi(I)&&a.length<8?(e.consume(I),a+=String.fromCharCode(I),F):$(I)}function Z(I){return I===93?(e.consume(I),M):$(I)}function M(I){return I===62?(e.consume(I),z):I===45&&i===2?(e.consume(I),M):$(I)}function z(I){return I===null||qe(I)?(e.exit("htmlFlowData"),X(I)):(e.consume(I),z)}function X(I){return e.exit("htmlFlow"),t(I)}}function Wve(e,t,n){const r=this;return i;function i(a){return qe(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function Hve(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(gy,t,n)}}const Vve={name:"htmlText",tokenize:Kve};function Kve(e,t,n){const r=this;let i,o,a;return l;function l(M){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(M),c}function c(M){return M===33?(e.consume(M),f):M===47?(e.consume(M),O):M===63?(e.consume(M),E):Oi(M)?(e.consume(M),R):n(M)}function f(M){return M===45?(e.consume(M),d):M===91?(e.consume(M),o=0,w):Oi(M)?(e.consume(M),P):n(M)}function d(M){return M===45?(e.consume(M),g):n(M)}function h(M){return M===null?n(M):M===45?(e.consume(M),m):qe(M)?(a=h,J(M)):(e.consume(M),h)}function m(M){return M===45?(e.consume(M),g):h(M)}function g(M){return M===62?Y(M):M===45?m(M):h(M)}function w(M){const z="CDATA[";return M===z.charCodeAt(o++)?(e.consume(M),o===z.length?y:w):n(M)}function y(M){return M===null?n(M):M===93?(e.consume(M),x):qe(M)?(a=y,J(M)):(e.consume(M),y)}function x(M){return M===93?(e.consume(M),S):y(M)}function S(M){return M===62?Y(M):M===93?(e.consume(M),S):y(M)}function P(M){return M===null||M===62?Y(M):qe(M)?(a=P,J(M)):(e.consume(M),P)}function E(M){return M===null?n(M):M===63?(e.consume(M),C):qe(M)?(a=E,J(M)):(e.consume(M),E)}function C(M){return M===62?Y(M):E(M)}function O(M){return Oi(M)?(e.consume(M),A):n(M)}function A(M){return M===45||wr(M)?(e.consume(M),A):j(M)}function j(M){return qe(M)?(a=j,J(M)):lt(M)?(e.consume(M),j):Y(M)}function R(M){return M===45||wr(M)?(e.consume(M),R):M===47||M===62||rr(M)?L(M):n(M)}function L(M){return M===47?(e.consume(M),Y):M===58||M===95||Oi(M)?(e.consume(M),q):qe(M)?(a=L,J(M)):lt(M)?(e.consume(M),L):Y(M)}function q(M){return M===45||M===46||M===58||M===95||wr(M)?(e.consume(M),q):D(M)}function D(M){return M===61?(e.consume(M),$):qe(M)?(a=D,J(M)):lt(M)?(e.consume(M),D):L(M)}function $(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),i=M,B):qe(M)?(a=$,J(M)):lt(M)?(e.consume(M),$):(e.consume(M),W)}function B(M){return M===i?(e.consume(M),i=void 0,V):M===null?n(M):qe(M)?(a=B,J(M)):(e.consume(M),B)}function W(M){return M===null||M===34||M===39||M===60||M===61||M===96?n(M):M===47||M===62||rr(M)?L(M):(e.consume(M),W)}function V(M){return M===47||M===62||rr(M)?L(M):n(M)}function Y(M){return M===62?(e.consume(M),e.exit("htmlTextData"),e.exit("htmlText"),t):n(M)}function J(M){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),F}function F(M){return lt(M)?Et(e,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):Z(M)}function Z(M){return e.enter("htmlTextData"),a(M)}}const _P={name:"labelEnd",resolveAll:Qve,resolveTo:Jve,tokenize:Zve},Gve={tokenize:ebe},Yve={tokenize:tbe},Xve={tokenize:nbe};function Qve(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Ii(e,0,e.length,n),e}function Jve(e,t){let n=e.length,r=0,i,o,a,l;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const c={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},f={type:"label",start:{...e[o][1].start},end:{...e[a][1].end}},d={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[a-2][1].start}};return l=[["enter",c,t],["enter",f,t]],l=Fr(l,e.slice(o+1,o+r+3)),l=Fr(l,[["enter",d,t]]),l=Fr(l,SP(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),l=Fr(l,[["exit",d,t],e[a-2],e[a-1],["exit",f,t]]),l=Fr(l,e.slice(a+1)),l=Fr(l,[["exit",c,t]]),Ii(e,o,e.length,l),e}function Zve(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return l;function l(m){return o?o._inactive?h(m):(a=r.parser.defined.includes(Ll(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),c):n(m)}function c(m){return m===40?e.attempt(Gve,d,a?d:h)(m):m===91?e.attempt(Yve,d,a?f:h)(m):a?d(m):h(m)}function f(m){return e.attempt(Xve,d,h)(m)}function d(m){return t(m)}function h(m){return o._balanced=!0,n(m)}}function ebe(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return rr(h)?bf(e,o)(h):o(h)}function o(h){return h===41?d(h):F6(e,a,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function a(h){return rr(h)?bf(e,c)(h):d(h)}function l(h){return n(h)}function c(h){return h===34||h===39||h===40?q6(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):d(h)}function f(h){return rr(h)?bf(e,d)(h):d(h)}function d(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function tbe(e,t,n){const r=this;return i;function i(l){return B6.call(r,e,o,a,"reference","referenceMarker","referenceString")(l)}function o(l){return r.parser.defined.includes(Ll(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function a(l){return n(l)}}function nbe(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const rbe={name:"labelStartImage",resolveAll:_P.resolveAll,tokenize:ibe};function ibe(e,t,n){const r=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),a):n(l)}function a(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const obe={name:"labelStartLink",resolveAll:_P.resolveAll,tokenize:abe};function abe(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const K1={name:"lineEnding",tokenize:sbe};function sbe(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Et(e,t,"linePrefix")}}const Fp={name:"thematicBreak",tokenize:lbe};function lbe(e,t,n){let r=0,i;return o;function o(f){return e.enter("thematicBreak"),a(f)}function a(f){return i=f,l(f)}function l(f){return f===i?(e.enter("thematicBreakSequence"),c(f)):r>=3&&(f===null||qe(f))?(e.exit("thematicBreak"),t(f)):n(f)}function c(f){return f===i?(e.consume(f),r++,c):(e.exit("thematicBreakSequence"),lt(f)?Et(e,l,"whitespace")(f):l(f))}}const Yn={continuation:{tokenize:dbe},exit:pbe,name:"list",tokenize:fbe},ube={partial:!0,tokenize:mbe},cbe={partial:!0,tokenize:hbe};function fbe(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return l;function l(g){const w=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:gO(g)){if(r.containerState.type||(r.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(Fp,n,f)(g):f(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(g)}return n(g)}function c(g){return gO(g)&&++a<10?(e.consume(g),c):(!r.interrupt||a<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),f(g)):n(g)}function f(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(gy,r.interrupt?n:d,e.attempt(ube,m,h))}
vendor: 5,407 bytes, line 396
396function d(g){return r.containerState.initialBlankLine=!0,o++,m(g)}function h(g){return lt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),m):n(g)}function m(g){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function dbe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(gy,i,o);function i(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Et(e,t,"listItemIndent",r.containerState.size+1)(l)}function o(l){return r.containerState.furtherBlankLines||!lt(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(cbe,t,a)(l))}function a(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,Et(e,e.attempt(Yn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function hbe(e,t,n){const r=this;return Et(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function pbe(e){e.exit(this.containerState.type)}function mbe(e,t,n){const r=this;return Et(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!lt(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const RL={name:"setextUnderline",resolveTo:gbe,tokenize:ybe};function gbe(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function ybe(e,t,n){const r=this;let i;return o;function o(f){let d=r.events.length,h;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){h=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=f,a(f)):n(f)}function a(f){return e.enter("setextHeadingLineSequence"),l(f)}function l(f){return f===i?(e.consume(f),l):(e.exit("setextHeadingLineSequence"),lt(f)?Et(e,c,"lineSuffix")(f):c(f))}function c(f){return f===null||qe(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const vbe={tokenize:bbe};function bbe(e){const t=this,n=e.attempt(gy,r,e.attempt(this.parser.constructs.flowInitial,i,Et(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ove,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const xbe={resolveAll:U6()},wbe=z6("string"),Sbe=z6("text");function z6(e){return{resolveAll:U6(e==="text"?_be:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,l);return a;function a(d){return f(d)?o(d):l(d)}function l(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return f(d)?(n.exit("data"),o(d)):(n.consume(d),c)}function f(d){if(d===null)return!0;const h=i[d];let m=-1;if(h)for(;++m<h.length;){const g=h[m];if(!g.previous||g.previous.call(r,r.previous))return!0}return!1}}}function U6(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function _be(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,l=0,c;for(;o--;){const f=i[o];if(typeof f=="string"){for(a=f.length;f.charCodeAt(a-1)===32;)l++,a--;if(a)break;a=-1}else if(f===-2)c=!0,l++;else if(f!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const f={type:n===e.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:r.start._bufferIndex+a,_index:r.start._index+o,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...f.start},r.start.offset===r.end.offset?Object.assign(r,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}const Obe={42:Yn,43:Yn,45:Yn,48:Yn,49:Yn,50:Yn,51:Yn,52:Yn,53:Yn,54:Yn,55:Yn,56:Yn,57:Yn,62:I6},Ebe={91:Cve},Pbe={[-2]:V1,[-1]:V1,32:V1},Abe={35:Ive,42:Fp,45:[RL,Fp],60:Fve,61:RL,95:Fp,96:jL,126:jL},kbe={38:L6,92:D6},Cbe={[-5]:K1,[-4]:K1,[-3]:K1,33:rbe,38:L6,42:yO,60:[ove,Vve],91:obe,92:[Rve,D6],93:_P,95:yO,96:vve},Tbe={null:[yO,xbe]},jbe={null:[42,95]},Nbe={null:[]},Rbe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:jbe,contentInitial:Ebe,disable:Nbe,document:Obe,flow:Abe,flowInitial:Pbe,insideSpan:Tbe,string:kbe,text:Cbe},Symbol.toStringTag,{value:"Module"}));function Mbe(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
vendor: 20,794 bytes, lines 396-402
396olumn:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let a=[],l=[];const c={attempt:j(O),check:j(A),consume:P,enter:E,exit:C,interrupt:j(A,{interrupt:!0})},f={code:null,containerState:{},defineSkip:y,events:[],now:w,parser:e,previous:null,sliceSerialize:m,sliceStream:g,write:h};let d=t.tokenize.call(f,c);return t.resolveAll&&o.push(t),f;function h(D){return a=Fr(a,D),x(),a[a.length-1]!==null?[]:(R(t,0),f.events=SP(o,f.events,f),f.events)}function m(D,$){return Dbe(g(D),$)}function g(D){return Ibe(a,D)}function w(){const{_bufferIndex:D,_index:$,line:B,column:W,offset:V}=r;return{_bufferIndex:D,_index:$,line:B,column:W,offset:V}}function y(D){i[D.line]=D.column,q()}function x(){let D;for(;r._index<a.length;){const $=a[r._index];if(typeof $=="string")for(D=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===D&&r._bufferIndex<$.length;)S($.charCodeAt(r._bufferIndex));else S($)}}function S(D){d=d(D)}function P(D){qe(D)?(r.line++,r.column=1,r.offset+=D===-3?2:1,q()):D!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),f.previous=D}function E(D,$){const B=$||{};return B.type=D,B.start=w(),f.events.push(["enter",B,f]),l.push(B),B}function C(D){const $=l.pop();return $.end=w(),f.events.push(["exit",$,f]),$}function O(D,$){R(D,$.from)}function A(D,$){$.restore()}function j(D,$){return B;function B(W,V,Y){let J,F,Z,M;return Array.isArray(W)?X(W):"tokenize"in W?X([W]):z(W);function z(we){return le;function le(ve){const ae=ve!==null&&we[ve],he=ve!==null&&we.null,be=[...Array.isArray(ae)?ae:ae?[ae]:[],...Array.isArray(he)?he:he?[he]:[]];return X(be)(ve)}}function X(we){return J=we,F=0,we.length===0?Y:I(we[F])}function I(we){return le;function le(ve){return M=L(),Z=we,we.partial||(f.currentConstruct=we),we.name&&f.parser.constructs.disable.null.includes(we.name)?xe():we.tokenize.call($?Object.assign(Object.create(f),$):f,c,ue,xe)(ve)}}function ue(we){return D(Z,M),V}function xe(we){return M.restore(),++F<J.length?I(J[F]):Y}}}function R(D,$){D.resolveAll&&!o.includes(D)&&o.push(D),D.resolve&&Ii(f.events,$,f.events.length-$,D.resolve(f.events.slice($),f)),D.resolveTo&&(f.events=D.resolveTo(f.events,f))}function L(){const D=w(),$=f.previous,B=f.currentConstruct,W=f.events.length,V=Array.from(l);return{from:W,restore:Y};function Y(){r=D,f.previous=$,f.currentConstruct=B,f.events.length=W,l=V,q()}}function q(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ibe(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const l=a[0];typeof l=="string"?a[0]=l.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function Dbe(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=` 397`;break}case-3:{a=`\r 398`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}function Lbe(e){const r={constructs:Wye([Rbe,...(e||{}).extensions||[]]),content:i(Jye),defined:[],document:i(eve),flow:i(vbe),lazy:{},string:i(wbe),text:i(Sbe)};return r;function i(o){return a;function a(l){return Mbe(r,o,l)}}}function $be(e){for(;!$6(e););return e}const ML=/[\0\t\n\r]/g;function Fbe(){let e=1,t="",n=!0,r;return i;function i(o,a,l){const c=[];let f,d,h,m,g;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),h=0,t="",n&&(o.charCodeAt(0)===65279&&h++,n=void 0);h<o.length;){if(ML.lastIndex=h,f=ML.exec(o),m=f&&f.index!==void 0?f.index:o.length,g=o.charCodeAt(m),!f){t=o.slice(h);break}if(g===10&&h===m&&r)c.push(-3),r=void 0;else switch(r&&(c.push(-5),r=void 0),h<m&&(c.push(o.slice(h,m)),e+=m-h),g){case 0:{c.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,c.push(-2);e++<d;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:r=!0,e=1}h=m+1}return l&&(r&&c.push(-5),t&&c.push(t),c.push(null)),c}}const Bbe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qbe(e){return e.replace(Bbe,zbe)}function zbe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return M6(n.slice(o?2:1),o?16:10)}return wP(n)||e}const W6={}.hasOwnProperty;function Ube(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Wbe(n)($be(Lbe(n).document().write(Fbe()(e,t,!0))))}function Wbe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(sn),autolinkProtocol:L,autolinkEmail:L,atxHeading:o(ot),blockQuote:o(he),characterEscape:L,characterReference:L,codeFenced:o(be),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(be,a),codeText:o(ie,a),codeTextData:L,data:L,codeFlowValue:L,definition:o(Ue),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(De),hardBreakEscape:o(at),hardBreakTrailing:o(at),htmlFlow:o(bt,a),htmlFlowData:L,htmlText:o(bt,a),htmlTextData:L,image:o(Mn),label:a,link:o(sn),listItem:o(wn),listItemValue:m,listOrdered:o(ar,h),listUnordered:o(ar),paragraph:o(sr),reference:I,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(ot),strong:o(wo),thematicBreak:o(Sa)},exit:{atxHeading:c(),atxHeadingSequence:O,autolink:c(),autolinkEmail:ae,autolinkProtocol:ve,blockQuote:c(),characterEscapeValue:q,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:we,characterReference:le,codeFenced:c(x),codeFencedFence:y,codeFencedFenceInfo:g,codeFencedFenceMeta:w,codeFlowValue:q,codeIndented:c(S),codeText:c(V),codeTextData:q,data:q,definition:c(),definitionDestinationString:C,definitionLabelString:P,definitionTitleString:E,emphasis:c(),hardBreakEscape:c($),hardBreakTrailing:c($),htmlFlow:c(B),htmlFlowData:q,htmlText:c(W),htmlTextData:q,image:c(J),label:Z,labelText:F,lineEnding:D,link:c(Y),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ue,resourceDestinationString:M,resourceTitleString:z,resource:X,setextHeading:c(R),setextHeadingLineSequence:j,setextHeadingText:A,strong:c(),thematicBreak:c()}};H6(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(se){let ye={type:"root",children:[]};const $e={stack:[ye],tokenStack:[],config:t,enter:l,exit:f,buffer:a,resume:d,data:n},Ye=[];let Ze=-1;for(;++Ze<se.length;)if(se[Ze][1].type==="listOrdered"||se[Ze][1].type==="listUnordered")if(se[Ze][0]==="enter")Ye.push(Ze);else{const mn=Ye.pop();Ze=i(se,mn,Ze)}for(Ze=-1;++Ze<se.length;){const mn=t[se[Ze][0]];W6.call(mn,se[Ze][1].type)&&mn[se[Ze][1].type].call(Object.assign({sliceSerialize:se[Ze][2].sliceSerialize},$e),se[Ze][1])}if($e.tokenStack.length>0){const mn=$e.tokenStack[$e.tokenStack.length-1];(mn[1]||IL).call($e,void 0,mn[0])}for(ye.position={start:Wo(se.length>0?se[0][1].start:{line:1,column:1,offset:0}),end:Wo(se.length>0?se[se.length-2][1].end:{line:1,column:1,offset:0})},Ze=-1;++Ze<t.transforms.length;)ye=t.transforms[Ze](ye)||ye;return ye}function i(se,ye,$e){let Ye=ye-1,Ze=-1,mn=!1,Bi,Pr,So,_a;for(;++Ye<=$e;){const gn=se[Ye];switch(gn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{gn[0]==="enter"?Ze++:Ze--,_a=void 0;break}case"lineEndingBlank":{gn[0]==="enter"&&(Bi&&!_a&&!Ze&&!So&&(So=Ye),_a=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:_a=void 0}if(!Ze&&gn[0]==="enter"&&gn[1].type==="listItemPrefix"||Ze===-1&&gn[0]==="exit"&&(gn[1].type==="listUnordered"||gn[1].type==="listOrdered")){if(Bi){let di=Ye;for(Pr=void 0;di--;){const lr=se[di];if(lr[1].type==="lineEnding"||lr[1].type==="lineEndingBlank"){if(lr[0]==="exit")continue;Pr&&(se[Pr][1].type="lineEndingBlank",mn=!0),lr[1].type="lineEnding",Pr=di}else if(!(lr[1].type==="linePrefix"||lr[1].type==="blockQuotePrefix"||lr[1].type==="blockQuotePrefixWhitespace"||lr[1].type==="blockQuoteMarker"||lr[1].type==="listItemIndent"))break}So&&(!Pr||So<Pr)&&(Bi._spread=!0),Bi.end=Object.assign({},Pr?se[Pr][1].start:gn[1].end),se.splice(Pr||Ye,0,["exit",Bi,gn[2]]),Ye++,$e++}if(gn[1].type==="listItemPrefix"){const di={type:"listItem",_spread:!1,start:Object.assign({},gn[1].start),end:void 0};Bi=di,se.splice(Ye,0,["enter",di,gn[2]]),Ye++,$e++,So=void 0,_a=!0}}}return se[ye][1]._spread=mn,$e}function o(se,ye){return $e;function $e(Ye){l.call(this,se(Ye),Ye),ye&&ye.call(this,Ye)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(se,ye,$e){this.stack[this.stack.length-1].children.push(se),this.stack.push(se),this.tokenStack.push([ye,$e||void 0]),se.position={start:Wo(ye.start),end:void 0}}function c(se){return ye;function ye($e){se&&se.call(this,$e),f.call(this,$e)}}function f(se,ye){const $e=this.stack.pop(),Ye=this.tokenStack.pop();if(Ye)Ye[0].type!==se.type&&(ye?ye.call(this,se,Ye[0]):(Ye[1]||IL).call(this,se,Ye[0]));else throw new Error("Cannot close `"+se.type+"` ("+vf({start:se.start,end:se.end})+"): itâs not open");$e.position.end=Wo(se.end)}function d(){return zye(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function m(se){if(this.data.expectingFirstListItemValue){const ye=this.stack[this.stack.length-2];ye.start=Number.parseInt(this.sliceSerialize(se),10),this.data.expectingFirstListItemValue=void 0}}function g(){const se=this.resume(),ye=this.stack[this.stack.length-1];ye.lang=se}function w(){const se=this.resume(),ye=this.stack[this.stack.length-1];ye.meta=se}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function x(){const se=this.resume(),ye=this.stack[this.stack.length-1];ye.value=se.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const se=this.resume(),ye=this.stack[this.stack.length-1];ye.value=se.replace(/(\r?\n|\r)$/g,"")}function P(se){const ye=this.resume(),$e=this.stack[this.stack.length-1];$e.label=ye,$e.identifier=Ll(this.sliceSerialize(se)).toLowerCase()}function E(){const se=this.resume(),ye=this.stack[this.stack.length-1];ye.title=se}function C(){const se=this.resume(),ye=this.stack[this.stack.length-1];ye.url=se}function O(se){const ye=this.stack[this.stack.length-1];if(!ye.depth){const $e=this.sliceSerialize(se).length;ye.depth=$e}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function j(se){const ye=this.stack[this.stack.length-1];ye.depth=this.sliceSerialize(se).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function L(se){const $e=this.stack[this.stack.length-1].children;let Ye=$e[$e.length-1];(!Ye||Ye.type!=="text")&&(Ye=wa(),Ye.position={start:Wo(se.start),end:void 0},$e.push(Ye)),this.stack.push(Ye)}function q(se){const ye=this.stack.pop();ye.value+=this.sliceSerialize(se),ye.position.end=Wo(se.end)}function D(se){const ye=this.stack[this.stack.length-1];if(this.data.atHardBreak){const $e=ye.children[ye.children.length-1];$e.position.end=Wo(se.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ye.type)&&(L.call(this,se),q.call(this,se))}function $(){this.data.atHardBreak=!0}function B(){const se=this.resume(),ye=this.stack[this.stack.length-1];ye.value=se}function W(){const se=this.resume(),ye=this.stack[this.stack.length-1];ye.value=se}function V(){const se=this.resume(),ye=this.stack[this.stack.length-1];ye.value=se}function Y(){const se=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";se.type+="Reference",se.referenceType=ye,delete se.url,delete se.title}else delete se.identifier,delete se.label;this.data.referenceType=void 0}function J(){const se=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";se.type+="Reference",se.referenceType=ye,delete se.url,delete se.title}else delete se.identifier,delete se.label;this.data.referenceType=void 0}function F(se){const ye=this.sliceSerialize(se),$e=this.stack[this.stack.length-2];$e.label=qbe(ye),$e.identifier=Ll(ye).toLowerCase()}function Z(){const se=this.stack[this.stack.length-1],ye=this.resume(),$e=this.stack[this.stack.length-1];if(this.data.inReference=!0,$e.type==="link"){const Ye=se.children;$e.children=Ye}else $e.alt=ye}function M(){const se=this.resume(),ye=this.stack[this.stack.length-1];ye.url=se}function z(){const se=this.resume(),ye=this.stack[this.stack.length-1];ye.title=se}function X(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function ue(se){const ye=this.resume(),$e=this.stack[this.stack.length-1];$e.label=ye,$e.identifier=Ll(this.sliceSerialize(se)).toLowerCase(),this.data.referenceType="full"}function xe(se){this.data.characterReferenceType=se.type}function we(se){const ye=this.sliceSerialize(se),$e=this.data.characterReferenceType;let Ye;$e?(Ye=M6(ye,$e==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ye=wP(ye);const Ze=this.stack[this.stack.length-1];Ze.value+=Ye}function le(se){const ye=this.stack.pop();ye.position.end=Wo(se.end)}function ve(se){q.call(this,se);const ye=this.stack[this.stack.length-1];ye.url=this.sliceSerialize(se)}function ae(se){q.call(this,se);const ye=this.stack[this.stack.length-1];ye.url="mailto:"+this.sliceSerialize(se)}function he(){return{type:"blockquote",children:[]}}function be(){return{type:"code",lang:null,meta:null,value:""}}function ie(){return{type:"inlineCode",value:""}}function Ue(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function De(){return{type:"emphasis",children:[]}}function ot(){return{type:"heading",depth:0,children:[]}}function at(){return{type:"break"}}function bt(){return{type:"html",value:""}}function Mn(){return{type:"image",title:null,url:"",alt:null}}function sn(){return{type:"link",title:null,url:"",children:[]}}function ar(se){return{type:"list",ordered:se.type==="listOrdered",start:null,spread:se._spread,children:[]}}function wn(se){return{type:"listItem",spread:se._spread,checked:null,children:[]}}function sr(){return{type:"paragraph",children:[]}}function wo(){return{type:"strong",children:[]}}function wa(){return{type:"text",value:""}}function Sa(){return{type:"thematicBreak"}}}function Wo(e){return{line:e.line,column:e.column,offset:e.offset}}function H6(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?H6(e,r):Hbe(e,r)}}function Hbe(e,t){let n;for(n in t)if(W6.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function IL(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+vf({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+vf({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+vf({start:t.start,end:t.end})+") is still open")}function Vbe(e){const t=this;t.parser=n;function n(r){return Ube(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Kbe(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Gbe(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 399`}]}function Ybe(e,t){const n=t.value?t.value+` 400`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function Xbe(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Qbe(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Jbe(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Qu(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);l===void 0?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,l+=1,e.footnoteCounts.set(r,l);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,c);const f={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,f),e.applyData(t,f)}function Zbe(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function e0e(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function V6(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function t0e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return V6(e,t);const i={src:Qu(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function n0e(e,t){const n={src:Qu(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function r0e(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function i0e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return V6(e,t);const i={href:Qu(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function o0e(e,t){const n={href:Qu(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function a0e(e,t,n){const r=e.all(t),i=n?s0e(n):K6(t),o={},a=[];if(typeof t.checked=="boolean"){const d=r[0];let h;d&&d.type==="element"&&d.tagName==="p"?h=d:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){const d=r[l];(i||l!==0||d.type!=="element"||d.tagName!=="p")&&a.push({type:"text",value:` 401`}),d.type==="element"&&d.tagName==="p"&&!i?a.push(...d.children):a.push(d)}const c=r[r.length-1];c&&(i||c.type!=="element"||c.tagName!=="p")&&a.push({type:"text",value:` 402`});const f={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,f),e.applyData(t,f)}function s0e(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=K6(n[r])}return t}function K6(e){const t=e.spread;return t??e.children.length>1}function l0e(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function u0e(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function c0e(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function f0e(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function d0e(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=yP(t.children[1]),c=A6(t.children[t.children.length-1]);l&&c&&(a.position={start:l,end:c}),i.push(a)}const o={type:"element",tagName:"table",properties:{}
vendor: 4,682 bytes, line 402
402,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function h0e(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,l=a?a.length:t.children.length;let c=-1;const f=[];for(;++c<l;){const h=t.children[c],m={},g=a?a[c]:void 0;g&&(m.align=g);let w={type:"element",tagName:o,properties:m,children:[]};h&&(w.children=e.all(h),e.patch(h,w),w=e.applyData(h,w)),f.push(w)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(t,d),e.applyData(t,d)}function p0e(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const DL=9,LL=32;function m0e(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push($L(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push($L(t.slice(i),i>0,!1)),o.join("")}function $L(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===DL||o===LL;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===DL||o===LL;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function g0e(e,t){const n={type:"text",value:m0e(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function y0e(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const v0e={blockquote:Kbe,break:Gbe,code:Ybe,delete:Xbe,emphasis:Qbe,footnoteReference:Jbe,heading:Zbe,html:e0e,imageReference:t0e,image:n0e,inlineCode:r0e,linkReference:i0e,link:o0e,listItem:a0e,list:l0e,paragraph:u0e,root:c0e,strong:f0e,table:d0e,tableCell:p0e,tableRow:h0e,text:g0e,thematicBreak:y0e,toml:wp,yaml:wp,definition:wp,footnoteDefinition:wp};function wp(){}const G6=-1,yy=0,xf=1,Jm=2,OP=3,EP=4,PP=5,AP=6,Y6=7,X6=8,FL=typeof self=="object"?self:globalThis,b0e=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case yy:case G6:return n(a,i);case xf:{const l=n([],i);for(const c of a)l.push(r(c));return l}case Jm:{const l=n({},i);for(const[c,f]of a)l[r(c)]=r(f);return l}case OP:return n(new Date(a),i);case EP:{const{source:l,flags:c}=a;return n(new RegExp(l,c),i)}case PP:{const l=n(new Map,i);for(const[c,f]of a)l.set(r(c),r(f));return l}case AP:{const l=n(new Set,i);for(const c of a)l.add(r(c));return l}case Y6:{const{name:l,message:c}=a;return n(new FL[l](c),i)}case X6:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:l}=new Uint8Array(a);return n(new DataView(l),a)}}return n(new FL[o](a),i)};return r},BL=e=>b0e(new Map,e)(0),xl="",{toString:x0e}={},{keys:w0e}=Object,Zc=e=>{const t=typeof e;if(t!=="object"||!e)return[yy,t];const n=x0e.call(e).slice(8,-1);switch(n){case"Array":return[xf,xl];case"Object":return[Jm,xl];case"Date":return[OP,xl];case"RegExp":return[EP,xl];case"Map":return[PP,xl];case"Set":return[AP,xl];case"DataView":return[xf,n]}return n.includes("Array")?[xf,n]:n.includes("Error")?[Y6,n]:[Jm,n]},Sp=([e,t])=>e===yy&&(t==="function"||t==="symbol"),S0e=(e,t,n,r)=>{const i=(a,l)=>{const c=r.push(a)-1;return n.set(l,c),c},o=a=>{if(n.has(a))return n.get(a);let[l,c]=Zc(a);switch(l){case yy:{let d=a;switch(c){case"bigint":l=X6,d=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return i([G6],a)}return i([l,d],a)}case xf:{if(c){let m=a;return c==="DataView"?m=new Uint8Array(a.buffer):c==="ArrayBuffer"&&(m=new Uint8Array(a)),i([c,[...m]],a)}const d=[],h=i([l,d],a);for(const m of a)d.push(o(m));return h}case Jm:{if(c)switch(c){case"BigInt":return i([c,a.toString()],a);case"Boolean":case"Number":case"String":return i([c,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const d=[],h=i([l,d],a);for(const m of w0e(a))(e||!Sp(Zc(a[m])))&&d.push([o(m),o(a[m])]);return h}case OP:return i([l,a.toISOString()],a);case EP:{const{source:d,flags:h}=a;return i([l,{source:d,flags:h}],a)}case PP:{const d=[],h=i([l,d],a);for(const[m,g]of a)(e||!(Sp(Zc(m))||Sp(Zc(g))))&&d.push([o(m),o(g)]);return h}case AP:{const d=[],h=i([l,d],a);for(const m of a)(e||!Sp(Zc(m)))&&d.push(o(m));return h}}const{message:f}=a;return i([l,{name:c,message:f}],a)};return o},qL=(e,{json:t,lossy:n}={})=>{const r=[];return S0e(!(t||n),!!t,new Map,r)(e),r},Zm=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?BL(qL(e,t)):structuredClone(e):(e,t)=>BL(qL(e,t));function _0e(e,t){const n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function O0e(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}
vendor: 5,851 bytes, lines 402-408
402function E0e(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||_0e,r=e.options.footnoteBackLabel||O0e,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[c]);if(!f)continue;const d=e.all(f),h=String(f.identifier).toUpperCase(),m=Qu(h.toLowerCase());let g=0;const w=[],y=e.footnoteCounts.get(h);for(;y!==void 0&&++g<=y;){w.length>0&&w.push({type:"text",value:" "});let P=typeof n=="string"?n:n(c,g);typeof P=="string"&&(P={type:"text",value:P}),w.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(c,g),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const x=d[d.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const P=x.children[x.children.length-1];P&&P.type==="text"?P.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...w)}else d.push(...w);const S={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(d,!0)};e.patch(f,S),l.push(S)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Zm(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` 403`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` 404`}]}}const Q6=(function(e){if(e==null)return C0e;if(typeof e=="function")return vy(e);if(typeof e=="object")return Array.isArray(e)?P0e(e):A0e(e);if(typeof e=="string")return k0e(e);throw new Error("Expected function, string, or object as test")});function P0e(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Q6(e[n]);return vy(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function A0e(e){const t=e;return vy(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function k0e(e){return vy(t);function t(n){return n&&n.type===e}}function vy(e){return t;function t(n,r,i){return!!(T0e(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function C0e(){return!0}function T0e(e){return e!==null&&typeof e=="object"&&"type"in e}const J6=[],j0e=!0,zL=!1,N0e="skip";function R0e(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=Q6(i),a=r?-1:1;l(e,void 0,[])();function l(c,f,d){const h=c&&typeof c=="object"?c:{};if(typeof h.type=="string"){const g=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(c.type+(g?"<"+g+">":""))+")"})}return m;function m(){let g=J6,w,y,x;if((!t||o(c,f,d[d.length-1]||void 0))&&(g=M0e(n(c,d)),g[0]===zL))return g;if("children"in c&&c.children){const S=c;if(S.children&&g[0]!==N0e)for(y=(r?S.children.length:-1)+a,x=d.concat(S);y>-1&&y<S.children.length;){const P=S.children[y];if(w=l(P,y,x)(),w[0]===zL)return w;y=typeof w[1]=="number"?w[1]:y+a}}return g}}}function M0e(e){return Array.isArray(e)?e:typeof e=="number"?[j0e,e]:e==null?J6:[e]}function Z6(e,t,n,r){let i,o,a;typeof t=="function"&&typeof n!="function"?(o=void 0,a=t,i=n):(o=t,a=n,i=r),R0e(e,o,l,i);function l(c,f){const d=f[f.length-1],h=d?d.children.indexOf(c):void 0;return a(c,h,d)}}const vO={}.hasOwnProperty,I0e={};function D0e(e,t){const n=t||I0e,r=new Map,i=new Map,o=new Map,a={...v0e,...n.handlers},l={all:f,applyData:$0e,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:c,options:n,patch:L0e,wrap:B0e};return Z6(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const h=d.type==="definition"?r:i,m=String(d.identifier).toUpperCase();h.has(m)||h.set(m,d)}}),l;function c(d,h){const m=d.type,g=l.handlers[m];if(vO.call(l.handlers,m)&&g)return g(l,d,h);if(l.options.passThrough&&l.options.passThrough.includes(m)){if("children"in d){const{children:y,...x}=d,S=Zm(x);return S.children=l.all(d),S}return Zm(d)}return(l.options.unknownHandler||F0e)(l,d,h)}function f(d){const h=[];if("children"in d){const m=d.children;let g=-1;for(;++g<m.length;){const w=l.one(m[g],d);if(w){if(g&&m[g-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=UL(w.value)),!Array.isArray(w)&&w.type==="element")){const y=w.children[0];y&&y.type==="text"&&(y.value=UL(y.value))}Array.isArray(w)?h.push(...w):h.push(w)}}}return h}}function L0e(e,t){e.position&&(t.position=xye(e))}function $0e(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&o&&Object.assign(n.properties,Zm(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function F0e(e,t){const n=t.data||{},r="value"in t&&!(vO.call(n,"hProperties")||vO.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function B0e(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:` 405`});++r<e.length;)r&&n.push({type:"text",value:` 406`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` 407`}),n}function UL(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function WL(e,t){const n=D0e(e,t),r=n.one(e,void 0),i=E0e(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` 408`},i),o}function q0e(e,t){return e&&"run"in e?async function(n,r){const i=WL(n,{file:r,...t});await e.run(i,r)}:function(n,r){return WL(n,{file:r,...e||t})}}function HL(e){if(e)throw e}var G1,VL;
vendor: 11,251 bytes, line 408
408function z0e(){if(VL)return G1;VL=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},o=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var d=e.call(f,"constructor"),h=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!d&&!h)return!1;var m;for(m in f);return typeof m>"u"||e.call(f,m)},a=function(f,d){n&&d.name==="__proto__"?n(f,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):f[d.name]=d.newValue},l=function(f,d){if(d==="__proto__")if(e.call(f,d)){if(r)return r(f,d).value}else return;return f[d]};return G1=function c(){var f,d,h,m,g,w,y=arguments[0],x=1,S=arguments.length,P=!1;for(typeof y=="boolean"&&(P=y,y=arguments[1]||{},x=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});x<S;++x)if(f=arguments[x],f!=null)for(d in f)h=l(y,d),m=l(f,d),y!==m&&(P&&m&&(o(m)||(g=i(m)))?(g?(g=!1,w=h&&i(h)?h:[]):w=h&&o(h)?h:{},a(y,{name:d,newValue:c(P,w,m)})):typeof m<"u"&&a(y,{name:d,newValue:m}));return y},G1}var U0e=z0e();const Y1=tt(U0e);function bO(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function W0e(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);l(null,...i);function l(c,...f){const d=e[++o];let h=-1;if(c){a(c);return}for(;++h<i.length;)(f[h]===null||f[h]===void 0)&&(f[h]=i[h]);i=f,d?H0e(d,l)(...f):a(null,...f)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function H0e(e,t){let n;return r;function r(...a){const l=e.length>a.length;let c;l&&a.push(i);try{c=e.apply(this,a)}catch(f){const d=f;if(l&&n)throw d;return i(d)}l||(c&&c.then&&typeof c.then=="function"?c.then(o,i):c instanceof Error?i(c):o(c))}function i(a,...l){n||(n=!0,t(a,...l))}function o(a){i(null,a)}}const bi={basename:V0e,dirname:K0e,extname:G0e,join:Y0e,sep:"/"};function V0e(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ld(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(r=i):(l=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function K0e(e){if(Ld(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function G0e(e){Ld(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const l=e.codePointAt(t);if(l===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),l===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Y0e(...e){let t=-1,n;for(;++t<e.length;)Ld(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":X0e(n)}function X0e(e){Ld(e);const t=e.codePointAt(0)===47;let n=Q0e(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Q0e(e,t){let n="",r=0,i=-1,o=0,a=-1,l,c;for(;++a<=e.length;){if(a<e.length)l=e.codePointAt(a);else{if(l===47)break;l=47}if(l===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else l===46&&o>-1?o++:o=-1}return n}function Ld(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const J0e={cwd:Z0e};function Z0e(){return"/"}function xO(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function exe(e){if(typeof e=="string")e=new URL(e);else if(!xO(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return txe(e)}function txe(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const X1=["history","path","basename","stem","extname","dirname"];class e5{constructor(t){let n;t?xO(t)?n={path:t}:typeof t=="string"||nxe(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":J0e.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<X1.length;){const o=X1[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)X1.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?bi.basename(this.path):void 0}set basename(t){J1(t,"basename"),Q1(t,"basename"),this.path=bi.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?bi.dirname(this.path):void 0}set dirname(t){KL(this.basename,"dirname"),this.path=bi.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?bi.extname(this.path):void 0}set extname(t){if(Q1(t,"extname"),KL(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=bi.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){xO(t)&&(t=exe(t)),J1(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?bi.basename(this.path,this.extname):void 0}set stem(t){J1(t,"stem"),Q1(t,"stem"),this.path=bi.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Rn(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Q1(e,t){if(e&&e.includes(bi.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+bi.sep+"`")}function J1(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function KL(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function nxe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const rxe=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),ixe={}.hasOwnProperty;class kP extends rxe{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=W0e()}copy(){const t=new kP;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Y1(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(tS("data",this.frozen),this.namespace[t]=n,this):ixe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(tS("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=_p(t),r=this.parser||this.Parser;return Z1("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Z1("process",this.parser||this.Parser),eS("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,a){const l=_p(t),c=r.parse(l);r.run(c,l,function(d,h,m){if(d||!h||!m)return f(d);const g=h,w=r.stringify(g,m);sxe(w)?m.value=w:m.result=w,f(d,m)});function f(d,h){d||!h?a(d):o?o(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),Z1("processSync",this.parser||this.Parser),eS("processSync",this.compiler||this.Compiler),this.process(t,i),YL("processSync","process",n),r;function i(o,a){n=!0,HL(o),r=a}}run(t,n,r){GL(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(a,l){const c=_p(n);i.run(t,c,f);function f(d,h,m){const g=h||t;d?l(d):a?a(g):r(void 0,g,m)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),YL("runSync","run",r),i;function o(a,l){HL(a),i=l,r=!0}}stringify(t,n){this.freeze();const r=_p(n),i=this.compiler||this.Compiler;return eS("stringify",i),GL(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(tS("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(f){if(typeof f=="function")c(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[d,...h]=f;c(d,h)}else a(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function a(f){if(!("plugins"in f)&&!("settings"in f))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(f.plugins),f.settings&&(i.settings=Y1(!0,i.settings,f.settings))}function l(f){let d=-1;if(f!=null)if(Array.isArray(f))for(;++d<f.length;){const h=f[d];o(h)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function c(f,d){let h=-1,m=-1;for(;++h<r.length;)if(r[h][0]===f){m=h;break}if(m===-1)r.push([f,...d]);else if(d.length>0){let[g,...w]=d;const y=r[m][1];bO(y)&&bO(g)&&(g=Y1(!0,y,g)),r[m]=[f,g,...w]}}}}const oxe=new kP().freeze();function Z1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function eS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function tS(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function GL(e){if(!bO(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}
vendor: 4,222 bytes, line 408
408function YL(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function _p(e){return axe(e)?e:new e5(e)}function axe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function sxe(e){return typeof e=="string"||lxe(e)}function lxe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const uxe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",XL=[],QL={allowDangerousHtml:!0},cxe=/^(https?|ircs?|mailto|xmpp)$/i,fxe=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function dxe(e){const t=hxe(e),n=pxe(e);return mxe(t.runSync(t.parse(n),n),e)}function hxe(e){const t=e.rehypePlugins||XL,n=e.remarkPlugins||XL,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...QL}:QL;return oxe().use(Vbe).use(n).use(q0e,r).use(t)}function pxe(e){const t=e.children||"",n=new e5;return typeof t=="string"&&(n.value=t),n}function mxe(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,a=t.skipHtml,l=t.unwrapDisallowed,c=t.urlTransform||gxe;for(const d of fxe)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+uxe+d.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Z6(e,f),Eye(e,{Fragment:v.Fragment,components:i,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function f(d,h,m){if(d.type==="raw"&&m&&typeof h=="number")return a?m.children.splice(h,1):m.children[h]={type:"text",value:d.value},h;if(d.type==="element"){let g;for(g in H1)if(Object.hasOwn(H1,g)&&Object.hasOwn(d.properties,g)){const w=d.properties[g],y=H1[g];(y===null||y.includes(d.tagName))&&(d.properties[g]=c(String(w||""),g,d))}}if(d.type==="element"){let g=n?!n.includes(d.tagName):o?o.includes(d.tagName):!1;if(!g&&r&&typeof h=="number"&&(g=!r(d,h,m)),g&&m&&typeof h=="number")return l&&d.children?m.children.splice(h,1,...d.children):m.children.splice(h,1),h}}}function gxe(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||cxe.test(e.slice(0,t))?e:""}function yxe(){const e=ng(),[t,n]=T.useState(""),[r,i]=T.useState(null),[o,a]=T.useState(!1),{data:l=[]}=Of({queryKey:["transactions"],queryFn:()=>rn.entities.Transaction.list("-date",500)}),{data:c=[]}=Of({queryKey:["goals"],queryFn:()=>rn.entities.Goal.list("-created_date",100)}),f=[{title:"Monthly Spending Breakdown",icon:eg,query:"Analyze my spending for the last month. Break it down by category and show me where most of my money is going. Include insights on spending patterns."},{title:"Income vs Expense Trends",icon:so,query:"Show me the trend of my income versus expenses over the last 6 months. Am I saving more or less over time? What patterns do you notice?"},{title:"Goal Progress Analysis",icon:ca,query:"Analyze my progress towards all my financial goals. Are my current savings patterns aligned with reaching them on time? Provide specific recommendations."},{title:"Net Worth & Savings Rate",icon:v$,query:"Calculate my net savings over time and my average savings rate. How does this compare to re
408commended savings rates? What should I focus on improving?"}],d=async h=>{const m=h||t;if(m.trim()){a(!0),i(null);try{const g=l.filter(O=>O.type==="income").reduce((O,A)=>O+A.amount,0),w=l.filter(O=>O.type==="expense").reduce((O,A)=>O+A.amount,0),y=g-w,x=l.filter(O=>O.type==="expense").reduce((O,A)=>(O[A.category]=(O[A.category]||0)+A.amount,O),{}),S=l.filter(O=>O.type==="expense"&&O.classification).reduce((O,A)=>(O[A.classification]=(O[A.classification]||0)+A.amount,O),{}),P=c.map(O=>({name:O.name,type:O.type,target:O.target_amount,current:O.current_amount,progress:(O.current_amount/O.target_amount*100).toFixed(1)+"%",deadline:O.deadline})),E=`You are a financial advisor AI assistant. Generate a comprehensive financial report based on the user's request and their financial data. 409 410USER REQUEST: ${m} 411 412FINANCIAL DATA SUMMARY: 413- Total Transactions: ${l.length} 414- Total Income: â¬${g.toLocaleString()} 415- Total Expenses: â¬${w.toLocaleString()} 416- Net Savings: â¬${y.toLocaleString()} 417- Savings Rate: ${g>0?(y/g*100).toFixed(1):0}% 418 419EXPENSE BY CATEGORY: 420${Object.entries(x).map(([O,A])=>`- ${O}: â¬${A.toLocaleString()}`).join(` 421`)} 422 423EXPENSE BY CLASSIFICATION: 424${Object.entries(S).map(([O,A])=>`- ${O}: â¬${A.toLocaleString()}`).join(` 425`)} 426 427FINANCIAL GOALS: 428${P.length>0?P.map(O=>`- ${O.name} (${O.type}): ${O.progress} complete (â¬${O.current.toLocaleString()} / â¬${O.target.toLocaleString()}) - deadline: ${O.deadline}`).join(` 429`):"No goals set"} 430 431RECENT TRANSACTIONS (sample of last 10): 432${l.slice(0,10).map(O=>`- ${O.date}: ${O.description||O.category} - â¬${O.amount} (${O.type})`).join(` 433`)} 434 435Generate a detailed financial report that: 4361. Directly answers the user's question 4372. Provides specific insights based on the data 4383. Identifies trends and patterns 4394. Offers actionable recommendations 4405. Uses clear headings and structure 4416. Highlights both positive achievements and areas for improvement 442 443Format the response in Markdown with clear sections, bullet points, and emphasis where appropriate. Be specific with numbers and percentages.`,C=await rn.integrations.Core.InvokeLLM({prompt:E,add_context_from_internet:!1});i(C)}catch(g){console.error("Error generating report:",g),i("Failed to generate report. Please try again.")}a(!1)}};return v.jsx("div",{className:"min-h-screen bg-gradient-to-br from-slate-50 to-blue-50 p-4 md:p-8",children:v.jsxs("div",{className:"max-w-6xl mx-auto space-y-8",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(ht,{variant:"outline",size:"icon",onClick:()=>e(Zn("Dashboard")),className:"bg-white/80 backdrop-blur-sm border-slate-200/60",children:v.jsx(PO,{className:"w-5 h-5"})}),v.jsxs("div",{children:[v.jsxs("h1",{className:"text-3xl font-bold text-slate-900 tracking-tight flex items-center gap-3",children:[v.jsx(Sf,{className:"w-8 h-8 text-purple-600"}),"AI Financial Reports"]}),v.jsx("p",{className:"text-slate-600 mt-1",children:"Get personalized insights and analysis of your financial data"})]})]}),v.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-4 gap-4",children:f.map((h,m)=>v.jsx(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 hover:shadow-lg transition-shadow cursor-pointer",onClick:()=>{n(h.query),d(h.query)},children:v.jsx(Nt,{className:"p-4",children:v.jsxs("div",{className:"flex items-start gap-3",children:[v.jsx("div",{className:"p-2 bg-purple-50 rounded-lg",children:v.jsx(h.icon,{className:"w-5 h-5 text-purple-600"})}),v.jsxs("div",{className:"flex-1",children:[v.jsx("h3",{className:"font-semibold text-slate-900 text-sm mb-1",children:h.title}),v.jsx("p",{className:"text-xs text-slate-500 line-clamp-2",children:h.query})]})]})})},m))}),v.jsxs(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg",children:[v.jsxs(Tn,{children:[v.jsx(jn,{className:"text-xl font-bold text-slate-900",children:"Ask Anything About Your Finances"}),v.jsx("p",{className:"text-sm text-slate-600",children:"Describe what financial insights or analysis you'd like to see"})]}),v.jsxs(Nt,{className:"space-y-4",children:[v.jsx(Sg,{value:t,onChange:h=>n(h.target.value),placeholder:"e.g., How much did I spend on dining out this month compared to last month? What's my biggest expense category? Am I on track with my savings goals?",className:"min-h-[120px] bg-white border-slate-200"}),v.jsx(ht,{onClick:()=>d(),disabled:o||!t.trim(),className:"w-full bg-gradient-to-r from-purple-600 to-blue-600 hover:from-purple-700 hover:to-blue-700 text-white shadow-lg",children:o?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"animate-spin rounded-full h-5 w-5 border-2 border-white border-t-transparent mr-2"}),"Generating Report..."]}):v.jsxs(v.Fragment,{children:[v.jsx(Sf,{className:"w-5 h-5 mr-2"}),"Generate Report"]})})]})]}),o&&v.jsx(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg",children:v.jsxs(Nt,{className:"p-8 space-y-4",children:[v.jsx(vt,{className:"h-8 w-3/4"}),v.jsx(vt,{className:"h-4 w-full"}),v.jsx(vt,{className:"h-4 w-full"}),v.jsx(vt,{className:"h-4 w-5/6"}),v.jsx(vt,{className:"h-32 w-full mt-6"}),v.jsx(vt,{className:"h-4 w-full"}),v.jsx(vt,{className:"h-4 w-4/5"})]})}),r&&!o&&v.jsxs(jt,{className:"bg-white/80 backdrop-blur-sm border-slate-200/60 shadow-lg",children:[v.jsx(Tn,{className:"border-b border-slate-200",children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx(jn,{className:"text-xl font-bold text-slate-900",children:"Your Financial Report"}),v.jsx(ht,{variant:"outline",size:"sm",onClick:()=>{i(null),n("")},className:"text-slate-600",children:"New Report"})]})}),v.jsx(Nt,{className:"p-8",children:v.jsx("div",{className:"prose prose-slate max-w-none",children:v.jsx(dxe,{components:{h1:({node:h,...m})=>v.jsx("h1",{className:"text-2xl font-bold text-slate-900 mt-6 mb-4",...m}),h2:({node:h,...m})=>v.jsx("h2",{className:"text-xl font-bold text-slate-900 mt-6 mb-3",...m}),h3:({node:h,...m})=>v.jsx("h3",{className:"text-lg font-semibold text-slate-800 mt-4 mb-2",...m}),p:({node:h,...m})=>v.jsx("p",{className:"text-slate-700 mb-4 leading-relaxed",...m}),ul:({node:h,...m})=>v.jsx("ul",{className:"list-disc list-inside space-y-2 mb-4 text-slate-700",...m}),ol:({node:h,...m})=>v.jsx("ol",{className:"list-decimal list-inside space-y-2 mb-4 text-slate-700",...m}),li:({node:h,...m})=>v.jsx("li",{className:"ml-4",...m}),strong:({node:h,...m})=>v.jsx("strong",{className:"font-bold text-slate-900",...m}),em:({node:h,...m})=>v.jsx("em",{className:"italic text-purple-700",...m}
443),code:({node:h,...m})=>v.jsx("code",{className:"bg-slate-100 px-2 py-1 rounded text-sm font-mono text-slate-800",...m})},children:r})})})]})]})})}const nS=768;function vxe(){const[e,t]=T.useState(void 0);return T.useEffect(()=>{const n=window.matchMedia(`(max-width: ${nS-1}px)`),r=()=>{t(window.innerWidth<nS)};return n.addEventListener("change",r),t(window.innerWidth<nS),()=>n.removeEventListener("change",r)},[]),!!e}var bxe="Separator",JL="horizontal",xxe=["horizontal","vertical"],t5=T.forwardRef((e,t)=>{const{decorative:n,orientation:r=JL,...i}=e,o=wxe(r)?r:JL,l=n?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return v.jsx(ut.div,{"data-orientation":o,...l,...i,ref:t})});t5.displayName=bxe;function wxe(e){return xxe.includes(e)}var n5=t5;const r5=T.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},i)=>v.jsx(n5,{ref:i,decorative:n,orientation:t,className:Pe("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));r5.displayName=n5.displayName;const Sxe=g6,_xe=y6,i5=T.forwardRef(({className:e,...t},n)=>v.jsx(ly,{className:Pe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));i5.displayName=ly.displayName;const Oxe=Cs("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),o5=T.forwardRef(({side:e="right",className:t,children:n,...r},i)=>v.jsxs(_xe,{children:[v.jsx(i5,{}),v.jsxs(uy,{ref:i,className:Pe(Oxe({side:e}),t),...r,children:[v.jsxs(v6,{className:"absolute right-4 top-4 roun
443ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[v.jsx(AO,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));o5.displayName=uy.displayName;const Exe=T.forwardRef(({className:e,...t},n)=>v.jsx(cy,{ref:n,className:Pe("text-lg font-semibold text-foreground",e),...t}));Exe.displayName=cy.displayName;const Pxe=T.forwardRef(({className:e,...t},n)=>v.jsx(fy,{ref:n,className:Pe("text-sm text-muted-foreground",e),...t}));Pxe.displayName=fy.displayName;var[by]=Iu("Tooltip",[gg]),xy=gg(),a5="TooltipProvider",Axe=700,wO="tooltip.open",[kxe,CP]=by(a5),s5=e=>{const{__scopeTooltip:t,delayDuration:n=Axe,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,a=T.useRef(!0),l=T.useRef(!1),c=T.useRef(0);return T.useEffect(()=>{const f=c.current;return()=>window.clearTimeout(f)},[]),v.jsx(kxe,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:T.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:T.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:T.useCallback(f=>{l.current=f},[]),disableHoverableContent:i,children:o})};s5.displayName=a5;var dd="Tooltip",[Cxe,$d]=by(dd),l5=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:o,disableHoverableContent:a,delayDuration:l}=e,c=CP(dd,e.__scopeTooltip),f=xy(t),[d,h]=T.useState(null),m=ls(),g=T.useRef(0),w=a??c.disableHoverableContent,y=l??c.delayDuration,x=T.useRef(!1),[S,P]=Yp({prop:r,defaultProp:i??!1,onChange:j=>{j?(c.onOpen(),document.dispatchEvent(new CustomEvent(wO))):c.onClose(),o==null||o(j)},caller:dd}),E=T.useMemo(()=>S?x.current?"delayed-open":"instant-open":"closed",[S]),C=T.useCallback(()=>{window.clearTimeout(g.current),g.current=0,x.current=!1,P(!0)},[P]),O=T.useCallback(()=>{window.clearTimeout(g.current),g.current=0,P(!1)},[P]),A=T.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{x.current=!0,P(!0),g.current=0},y)},[y,P]);return T.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),v.jsx(OB,{...f,children:v.jsx(Cxe,{scope:t,contentId:m,open:S,stateAttribute:E,trigger:d,onTriggerChange:h,onTriggerEnter:T.useCallback(()=>{c.isOpenDelayedRef.current?A():C()},[c.isOpenDelayedRef,A,C]),onTriggerLeave:T.useCallback(()=>{w?O():(window.clearTimeout(g.current),g.current=0)},[O,w]),onOpen:C,onClose:O,disableHoverableContent:w,children:n})})};l5.displayName=dd;var SO="TooltipTrigger",u5=T.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=$d(SO,n),o=CP(SO,n),a=xy(n),l=T.useRef(null),c=Dt(t,l,i.onTriggerChange),f=T.useRef(!1),d=T.useRef(!1),h=T.useCallback(()=>f.current=!1,[]);return T.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),v.jsx(EB,{asChild:!0,...a,children:v.jsx(ut.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:c,onPointerMove:st(e.onPointerMove,m=>{m.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:st(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:st(e.onPointerDown,()=>{i.open&&i.onClose(),f.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:st(e.onFocus,()=>{f.current||i.onOpen()}),onBlur:st(e.onBlur,i.onClose),onClick:st(e.onClick,i.onClose)})})});u5.displayName=SO;var TP="TooltipPortal",[Txe,jxe]=by(TP,{forceMount:void 0}),c5=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=$d(TP,t);return v.jsx(Txe,{scope:t,forceMount:n,children:v.jsx(Yu,{present:n||o.open,children:v.jsx(yg,{asChild:!0,container:i,children:r})})})};c5.displayName=TP;var Pu="TooltipContent",f5=T.forwardRef((e,t)=>{const n=jxe(Pu,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=$d(Pu,e.__scopeTooltip);return v.jsx(Yu,{present:r||a.open,children:a.disableHoverableContent?v.jsx(d5,{side:i,...o,ref:t}):v.jsx(Nxe,{side:i,...o,ref:t})})}),Nxe=T.forwardRef((e,t)=>
vendor: 4,431 bytes, line 443
443{const n=$d(Pu,e.__scopeTooltip),r=CP(Pu,e.__scopeTooltip),i=T.useRef(null),o=Dt(t,i),[a,l]=T.useState(null),{trigger:c,onClose:f}=n,d=i.current,{onPointerInTransitChange:h}=r,m=T.useCallback(()=>{l(null),h(!1)},[h]),g=T.useCallback((w,y)=>{const x=w.currentTarget,S={x:w.clientX,y:w.clientY},P=Lxe(S,x.getBoundingClientRect()),E=$xe(S,P),C=Fxe(y.getBoundingClientRect()),O=qxe([...E,...C]);l(O),h(!0)},[h]);return T.useEffect(()=>()=>m(),[m]),T.useEffect(()=>{if(c&&d){const w=x=>g(x,d),y=x=>g(x,c);return c.addEventListener("pointerleave",w),d.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",w),d.removeEventListener("pointerleave",y)}}},[c,d,g,m]),T.useEffect(()=>{if(a){const w=y=>{const x=y.target,S={x:y.clientX,y:y.clientY},P=(c==null?void 0:c.contains(x))||(d==null?void 0:d.contains(x)),E=!Bxe(S,a);P?m():E&&(m(),f())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[c,d,a,f,m]),v.jsx(d5,{...e,ref:o})}),[Rxe,Mxe]=by(dd,{isInside:!1}),Ixe=lG("TooltipContent"),d5=T.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...l}=e,c=$d(Pu,n),f=xy(n),{onClose:d}=c;return T.useEffect(()=>(document.addEventListener(wO,d),()=>document.removeEventListener(wO,d)),[d]),T.useEffect(()=>{if(c.trigger){const h=m=>{const g=m.target;g!=null&&g.contains(c.trigger)&&d()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,d]),v.jsx(fg,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:h=>h.preventDefault(),onDismiss:d,children:v.jsxs(PB,{"data-state":c.stateAttribute,...f,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[v.jsx(Ixe,{children:r}),v.jsx(Rxe,{scope:n,isInside:!0,children:v.jsx(dX,{id:c.contentId,role:"tooltip",children:i||r})})]})})});f5.displayName=Pu;var h5="TooltipArrow",Dxe=T.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=xy(n);return Mxe(h5,n).isInside?null:v.jsx(AB,{...i,...r,ref:t})});Dxe.displayName=h5;function Lxe(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function $xe(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Fxe(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function Bxe(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const l=t[o],c=t[a],f=l.x,d=l.y,h=c.x,m=c.y;d>r!=m>r&&n<(h-f)*(r-d)/(m-d)+f&&(i=!i)}return i}function qxe(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),zxe(t)}function zxe(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const o=t[t.length-1],a=t[t.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const o=n[n.length-1],a=n[n.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Uxe=s5,Wxe=l5,Hxe=u5,Vxe=c5,p5=f5;const Kxe=Uxe,Gxe=Wxe,Yxe=Hxe,m5=T.forwardRef(({className:e,sideOffset:t=4,...n},r)=>v.jsx(Vxe,{children:v.jsx(p5,{ref:r,sideOffset:t,className:Pe("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
443de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));m5.displayName=p5.displayName;const Xxe="sidebar_state",Qxe=3600*24*7,Jxe="16rem",Zxe="18rem",ewe="3rem",twe="b",g5=T.createContext(null);function wy(){const e=T.useContext(g5);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const y5=T.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:o,...a},l)=>{const c=vxe(),[f,d]=T.useState(!1),[h,m]=T.useState(e),g=t??h,w=T.useCallback(P=>{const E=typeof P=="function"?P(g):P;n?n(E):m(E),document.cookie=`${Xxe}=${E}; path=/; max-age=${Qxe}`},[n,g]),y=T.useCallback(()=>c?d(P=>!P):w(P=>!P),[c,w,d]);T.useEffect(()=>{const P=E=>{E.key===twe&&(E.metaKey||E.ctrlKey)&&(E.preventDefault(),y())};return window.addEventListener("keydown",P),()=>window.removeEventListener("keydown",P)},[y]);const x=g?"expanded":"collapsed",S=T.useMemo(()=>({state:x,open:g,setOpen:w,isMobile:c,openMobile:f,setOpenMobile:d,toggleSidebar:y}),[x,g,w,c,f,d,y]);return v.jsx(g5.Provider,{value:S,children:v.jsx(Kxe,{delayDuration:0,children:v.jsx("div",{style:{"--sidebar-width":Jxe,"--sidebar-width-icon":ewe,...i},className:Pe("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:l,...a,children:o})})})});y5.displayName="SidebarProvider";const v5=T.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:i,...o},a)=>{const{isMobile:l,state:c,openMobile:f,setOpenMobile:d}=wy();return n==="none"?v.jsx("div",{className:Pe("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:a,...o,children:i}):l?v.jsx(Sxe,{open:f,onOpenChange:d,...o,children:v.jsx(o5,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Zxe},side:e,children:v.jsx("div",{className:"flex h-full w-full flex-col",children:i})})}):v.jsxs("div",{ref:a,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":c==="collapsed"?n:"","data-variant":t,"data-side":e,children:[v.jsx("div",{className:Pe("relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),v.jsx("div",{className:Pe("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...o,children:v.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:i})})]})});v5.displayName="Sidebar";const b5=T.forwardRef(({className:e,onClick:t,asChild:n=!1,...r},i)=>{const{toggleSidebar:o}=wy();return v.jsx(ht,{ref:i,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:Pe("h-7 w-7",e),onClick:a=>{t==null||t(a),o()},asChild:n,...r,children:n?v.jsx(kC,{}):v.jsxs(v.Fragment,{children:[v.jsx(kC,{}),v.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})})});b5.displayName="SidebarTrigger";const nwe=T.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=wy();return v.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:Pe("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});nwe.displayName="SidebarRail";const rwe=T.forwardRef(({className:e,...t},n)=>v.jsx("main",{ref:n,className:Pe("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-
443h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));rwe.displayName="SidebarInset";const iwe=T.forwardRef(({className:e,...t},n)=>v.jsx(qr,{ref:n,"data-sidebar":"input",className:Pe("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));iwe.displayName="SidebarInput";const x5=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"header",className:Pe("flex flex-col gap-2 p-2",e),...t}));x5.displayName="SidebarHeader";const w5=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"footer",className:Pe("flex flex-col gap-2 p-2",e),...t}));w5.displayName="SidebarFooter";const owe=T.forwardRef(({className:e,...t},n)=>v.jsx(r5,{ref:n,"data-sidebar":"separator",className:Pe("mx-2 w-auto bg-sidebar-border",e),...t}));owe.displayName="SidebarSeparator";const S5=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"content",className:Pe("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));S5.displayName="SidebarContent";const _5=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"group",className:Pe("relative flex w-full min-w-0 flex-col p-2",e),...t}));_5.displayName="SidebarGroup";const O5=T.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const i=t?Mu:"div";return v.jsx(i,{ref:r,"data-sidebar":"group-label",className:Pe("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});O5.displayName="SidebarGroupLabel";const awe=T.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const i=t?Mu:"button";return v.jsx(i,{ref:r,"data-sidebar":"group-action",className:Pe("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});awe.displayName="SidebarGroupAction";const E5=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"group-content",className:Pe("w-full text-sm",e),...t}));E5.displayName="SidebarGroupContent";const P5=T.forwardRef(({className:e,...t},n)=>v.jsx("ul",{ref:n,"data-sidebar":"menu",className:Pe("flex w-full min-w-0 flex-col gap-1",e),...t}));P5.displayName="SidebarMenu";const A5=T.forwardRef(({className:e,...t},n)=>v.jsx("li",{ref:n,"data-sidebar":"menu-item",className:Pe("group/menu-item relative",e),...t}));A5.displayName="SidebarMenuItem";const swe=Cs("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),k5=T.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:i,className:o,...a},l)=>{const c=e?Mu:"button",{isMobile:f,state:d}=wy(),h=v.jsx(c,{ref:l,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:Pe(swe({variant:n,size:r}),o),...a});return i?(typeof i=="string"&&(i={children:i}),v.jsxs(Gxe,{children:[v.jsx(Yxe,{asChild:!0,children:h}),v.jsx(m5,{side:"right",align:"center",hidden:d!=="collapsed"||f,...i})]})):h});k5.displayName="SidebarMenuButton";const lwe=T.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},i)=>{const o=t?Mu:"button";return v.jsx(o,{ref:i,"data-sidebar":"menu-action",className:Pe("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})});lwe.displayName="SidebarMenuAction";const uwe=T.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:Pe("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));uwe.displayName="SidebarMenuBadge";const cwe=T.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const i=T.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return v.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:Pe("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&v.jsx(vt,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),v.jsx(vt,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":i}})]})});cwe.displayName="SidebarMenuSkeleton";const fwe=T.forwardRef(({className:e,...t},n)=>v.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:Pe("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));fwe.displayName="SidebarMenuSub";const dwe=T.forwardRef(({...e},t)=>v.jsx("li",{ref:t,...e}));dwe.displayName="SidebarMenuSubItem";const hwe=T.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...i},o)=>{const a=e?Mu:"a";return v.jsx(a,{ref:o,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:Pe("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...i})});hwe.displayName="SidebarMenuSubButton";const pwe=[{title:"Dashboard",url:Zn("Dashboard"),icon:hW},{title:"Add Transaction",url:Zn("AddTransaction"),icon:wf},{title:"All Transactions",url:Zn("Transactions"),icon:wW},{title:"Goals",url:Zn("Goals"),icon:ca},{title:"AI Reports",url:Zn("AIReports"),icon:Sf}];function mwe({children:e,currentPageName:t}){const n=Ns();return v.jsx(y5,{children:v.jsxs("div",{className:"min-h-screen flex w-full bg-gradient-to-br from-slate-50 to-blue-50",children:[v.jsxs(v5,{className:"border-r border-slate-200/60 bg-white/80 backdrop-blur-sm",children:[v.jsx(x5,{className:"border-b border-slate-200/60 p-6",children:v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("div",{className:"w-10 h-10 bg-gradient-to-r from-blue-600 to-emerald-500 rounded-xl flex items-center justify-center shadow-lg",children:v.jsx(ca,{className:"w-6 h-6 text-white"})}),v.jsxs("div",{children:[v.jsx("h2",{className:"font-bold text-slate-900 text-lg",children:"BudgetFlow"}),v.jsx("p",{className:"text-xs text-slate-500 font-medium",children:"Financial Insights"})]})]})}),v.jsx(S5,{className:"p-4",children:v.jsxs(_5,{children:[v.jsx(O5,{className:"text-xs font-semibold text-slate-500 uppercase tracking-wider px-2 py-3",children:"Navigation"}),v.jsx(E5,{children:v.jsx(P5,{className:"space-y-1",children:pwe.map(r=>v.jsx(A5,{children:v.jsx(k5,{asChild:!0,className:`hover:bg-blue-50 hover:text-blue-700 transition-all duration-300 rounded-lg ${n.pathname===r.url?"bg-blue-50 text-blue-700 shadow-sm":"text-slate-600"}`,children:v.jsxs(Xl,{to:r.url,className:"flex items-center gap-3 px-3 py-3",children:[v.jsx(r.icon,{className:"w-5 h-5"}),v.jsx("span",{className:"font-medium",children:r.title})]})})},r.title))})})]})}),v.jsxs(w5,{className:"border-t border-slate-200/60 p-4",children:[v.jsx("a",{href:"https://myfrenchmoney.com",target:"_blank",rel:"noopener noreferrer",className:"block",children:v.jsxs(ht,{className:"w-full bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 text-white shadow-lg hover:shadow-xl transition-all duration-300",children:[v.jsx(AC,{className:"w-4 h-4 mr-2"}),"Visit MyFrenchMoney"]})}),v.jsx("p",{className:"text-xs text-slate-500 text-center mt-2",children:"Learn more about personal finance"})]})]}),v.jsxs("main",{className:"flex-1 flex flex-col",children:[v.jsx("header",{className:"bg-white/80 backdrop-blur-sm border-b border-slate-200/60 px-6 py-4 md:hidden",children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(b5,{className:"hover:bg-slate-100 p-2 rounded-lg transition-colors duration-200"}),v.jsx("h1",{className:"text-xl font-bold text-slate-900",children:"BudgetFlow"})]}),v.jsx("a",{href:"https://myfrenchmoney.com",target:"_blank",rel:"noopener noreferrer",children:v.jsxs(ht,{size:"sm",className:"bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 text-white",children:[v.jsx(AC,{className:"w-4 h-4 mr-1"}),"MyFrenchMoney"]})})]})}),v.jsx("div",{className:"flex-1 overflow-auto",children:e})]})]})})}const gwe={AddTransaction:TQ,Dashboard:Hge,Transactions:Vge,Settings:Kge,CityComparison:Gge,Goals:Xge,AIReports:yxe},C5={mainPage:"Dashboard",Pages:gwe,Layout:mwe};function ywe(){const e=Ns(),{isAuthenticated:t}=GF(),{Pages:n,mainPage:r}=C5,i=r;return T.useEffect(()=>{const o=e.pathname;let a;if(o==="/"||o==="")a=i;else{const l=o.replace(/^\//,"").split("/")[0];a=Object.keys(n).find(d=>d.toLowerCase()===l.toLowerCase())||null}t&&a&&rn.appLogs.logUserInApp(a).catch(()=>{})},[e,t,n,i]),null}function vwe({}){var i;const t=Ns().pathname.substring(1),{data:n,isFetched:r}=Of({queryKey:["user"],queryFn:async()=>{try{return{user:await rn.auth.me(),isAuthenticated:!0}}catch{return{user:null,isAuthenticated:!1}}}});return v.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:v.jsx("div",{className:"max-w-md w-full",children:v.jsxs("div",{className:"text-center space-y-6",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),v.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),v.jsxs("div",{className:"space-y-3",children:[v.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),v.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",v.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),r&&n.isAuthenticated&&((i=n.user)==null?void 0:i.role)==="admin"&&v.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:v.jsxs("div",{className:"flex items-start space-x-3",children:[v.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:v.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),v.jsxs("div",{className:"text-left space-y-1",children:[v.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),v.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),v.jsx("div",{className:"pt-6",children:v.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[v.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}const bwe=()=>v.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-slate-50",children:v.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-slate-100",children:v.jsxs("div",{className:"text-center",children:[v.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-orange-100",children:v.jsx("svg",{className:"w-8 h-8 text-orange-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),v.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-4",children:"Access Restricted"}),v.jsx("p",{className:"text-slate-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),v.jsxs("div",{className:"p-4 bg-slate-50 rounded-md text-sm text-slate-600",children:[v.jsx("p",{children:"If you believe this is an error, you can:"}),v.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[v.jsx("li",{children:"Verify you are logged in with the correct account"}),v.jsx("li",{children:"Contact the app administrator for access"}),v.jsx("li",{children:"Try logging out and back in again"})]})]})]})})}),{Pages:T5,Layout:ZL,mainPage:xwe}=C5,j5=xwe,wwe=T5[j5],e$=({children:e,currentPageName:t})=>ZL?v.jsx(ZL,{currentPageName:t,children:e}):v.jsx(v.Fragment,{children:e}),Swe=()=>{const{isLoadingAuth:e,isLoadingPublicSettings:t,authError:n,navigateToLogin:r}=GF();if(t||e)return v.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:v.jsx("div",{className:"w-8 h-8 border-4 border-slate-200 border-t-slate-800 rounded-full animate-spin"})});if(n){if(n.type==="user_not_registered")return v.jsx(bwe,{});if(n.type==="auth_required")return r(),null}return v.jsxs(WV,{children:[v.jsx(Ap,{path:"/",element:v.jsx(e$,{currentPageName:j5,children:v.jsx(wwe,{})})}),Object.entries(T5).map(([i,o])=>v.jsx(Ap,{path:`/${i}`,element:v.js
443x(e$,{currentPageName:i,children:v.jsx(o,{})})},i)),v.jsx(Ap,{path:"*",element:v.jsx(vwe,{})})]})};function _we(){return v.jsx(rG,{children:v.jsxs(BH,{client:JH,children:[v.jsxs(QV,{children:[v.jsx(ywe,{}),v.jsx(Swe,{})]}),v.jsx(gH,{})]})})}D8.createRoot(document.getElementById("root")).render(v.jsx(_we,{}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.