vendor: 6,236 bytes, lines 1-9
1var tT=e=>{throw TypeError(e)};var ab=(e,t,r)=>t.has(e)||tT("Cannot "+r);var K=(e,t,r)=>(ab(e,t,"read from private field"),r?r.call(e):t.get(e)),Ue=(e,t,r)=>t.has(e)?tT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Pe=(e,t,r,n)=>(ab(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),dr=(e,t,r)=>(ab(e,t,"access private method"),r);var Wh=(e,t,r,n)=>({set _(i){Pe(e,t,i,r)},get _(){return K(e,t,n)}});function FV(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[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"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var Hh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tI={exports:{}},bg={},rI={exports:{}},Me={};/** 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 hh=Symbol.for("react.element"),UV=Symbol.for("react.portal"),VV=Symbol.for("react.fragment"),zV=Symbol.for("react.strict_mode"),WV=Symbol.for("react.profiler"),HV=Symbol.for("react.provider"),qV=Symbol.for("react.context"),KV=Symbol.for("react.forward_ref"),YV=Symbol.for("react.suspense"),GV=Symbol.for("react.memo"),XV=Symbol.for("react.lazy"),rT=Symbol.iterator;function ZV(e){return e===null||typeof e!="object"?null:(e=rT&&e[rT]||e["@@iterator"],typeof e=="function"?e:null)}var nI={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},iI=Object.assign,aI={};function cu(e,t,r){this.props=e,this.context=t,this.refs=aI,this.updater=r||nI}cu.prototype.isReactComponent={};cu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};cu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function oI(){}oI.prototype=cu.prototype;function CS(e,t,r){this.props=e,this.context=t,this.refs=aI,this.updater=r||nI}var NS=CS.prototype=new oI;NS.constructor=CS;iI(NS,cu.prototype);NS.isPureReactComponent=!0;var nT=Array.isArray,sI=Object.prototype.hasOwnProperty,RS={current:null},lI={key:!0,ref:!0,__self:!0,__source:!0};function cI(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)sI.call(t,n)&&!lI.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:hh,type:e,key:a,ref:o,props:i,_owner:RS.current}}function JV(e,t){return{$$typeof:hh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function IS(e){return typeof e=="object"&&e!==null&&e.$$typeof===hh}function QV(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var iT=/\/+/g;function ob(e,t){return typeof e=="object"&&e!==null&&e.key!=null?QV(""+e.key):t.toString(36)}function Hp(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case hh:case UV:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+ob(o,0):n,nT(i)?(r="",e!=null&&(r=e.replace(iT,"$&/")+"/"),Hp(i,t,r,"",function(c){return c})):i!=null&&(IS(i)&&(i=JV(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(iT,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",nT(e))for(var s=0;s<e.length;s++){a=e[s];var l=n+ob(a,s);o+=Hp(a,t,r,l,i)}else if(l=ZV(e),typeof l=="function")for(e=l.call(e),s=0;!(a=e.next()).done;)a=a.value,l=n+ob(a,s++),o+=Hp(a,t,r,l,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function qh(e,t,r){if(e==null)return e;var n=[],i=0;return Hp(e,n,"","",function(a){return t.call(r,a,i++)}),n}function e6(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Nr={current:null},qp={transition:null},t6={ReactCurrentDispatcher:Nr,ReactCurrentBatchConfig:qp,ReactCurrentOwner:RS};function uI(){throw Error("act(...) is not supported in production builds of React.")}Me.Children={map:qh,forEach:function(e,t,r){qh(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return qh(e,function(){t++}),t},toArray:function(e){return qh(e,function(t){return t})||[]},only:function(e){if(!IS(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Me.Component=cu;Me.Fragment=VV;Me.Profiler=WV;Me.PureComponent=CS;Me.StrictMode=zV;Me.Suspense=YV;
vendor: 5,062 bytes, lines 9-25
9Me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=t6;Me.act=uI;Me.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=iI({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=RS.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)sI.call(t,l)&&!lI.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];n.children=s}return{$$typeof:hh,type:e.type,key:i,ref:a,props:n,_owner:o}};Me.createContext=function(e){return e={$$typeof:qV,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:HV,_context:e},e.Consumer=e};Me.createElement=cI;Me.createFactory=function(e){var t=cI.bind(null,e);return t.type=e,t};Me.createRef=function(){return{current:null}};Me.forwardRef=function(e){return{$$typeof:KV,render:e}};Me.isValidElement=IS;Me.lazy=function(e){return{$$typeof:XV,_payload:{_status:-1,_result:e},_init:e6}};Me.memo=function(e,t){return{$$typeof:GV,type:e,compare:t===void 0?null:t}};Me.startTransition=function(e){var t=qp.transition;qp.transition={};try{e()}finally{qp.transition=t}};Me.unstable_act=uI;Me.useCallback=function(e,t){return Nr.current.useCallback(e,t)};Me.useContext=function(e){return Nr.current.useContext(e)};Me.useDebugValue=function(){};Me.useDeferredValue=function(e){return Nr.current.useDeferredValue(e)};Me.useEffect=function(e,t){return Nr.current.useEffect(e,t)};Me.useId=function(){return Nr.current.useId()};Me.useImperativeHandle=function(e,t,r){return Nr.current.useImperativeHandle(e,t,r)};Me.useInsertionEffect=function(e,t){return Nr.current.useInsertionEffect(e,t)};Me.useLayoutEffect=function(e,t){return Nr.current.useLayoutEffect(e,t)};Me.useMemo=function(e,t){return Nr.current.useMemo(e,t)};Me.useReducer=function(e,t,r){return Nr.current.useReducer(e,t,r)};Me.useRef=function(e){return Nr.current.useRef(e)};Me.useState=function(e){return Nr.current.useState(e)};Me.useSyncExternalStore=function(e,t,r){return Nr.current.useSyncExternalStore(e,t,r)};Me.useTransition=function(){return Nr.current.useTransition()};Me.version="18.3.1";rI.exports=Me;var k=rI.exports;const E=Ye(k),$S=FV({__proto__:null,default:E},[k]);/** 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 r6=k,n6=Symbol.for("react.element"),i6=Symbol.for("react.fragment"),a6=Object.prototype.hasOwnProperty,o6=r6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s6={key:!0,ref:!0,__self:!0,__source:!0};function dI(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)a6.call(t,n)&&!s6.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:n6,type:e,key:a,ref:o,props:i,_owner:o6.current}}bg.Fragment=i6;bg.jsx=dI;bg.jsxs=dI;tI.exports=bg;var f=tI.exports,fI={exports:{}},un={},hI={exports:{}},pI={};/** 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 */(function(e){function t(R,M){var U=R.length;R.push(M);e:for(;0<U;){var Y=U-1>>>1,W=R[Y];if(0<i(W,M))R[Y]=M,R[U]=W,U=Y;else break e}}function r(R){return R.length===0?null:R[0]}function n(R){if(R.length===0)return null;var M=R[0],U=R.pop();if(U!==M){R[0]=U;e:for(var Y=0,W=R.length,X=W>>>1;Y<X;){var le=2*(Y+1)-1,we=R[le],Re=le+1,te=R[Re];if(0>i(we,U))Re<W&&0>i(te,we)?(R[Y]=te,R[Re]=U,Y=Re):(R[Y]=we,R[le]=U,Y=le);else if(Re<W&&0>i(te,U))R[Y]=te,R[Re]=U,Y=Re;else break e}}return M}function i(R,M){var U=R.sortIndex-M.sortIndex;return U!==0?U:R.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,d=null,h=3,p=!1,y=!1,m=!1,g=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(R){for(var M=r(c);M!==null;){if(M.callback===null)n(c);else if(M.startTime<=R)n(c),M.sortIndex=M.expirationTime,t(l,M);else break;M=r(c)}}function S(R){if(m=!1,x(R),!y)if(r(l)!==null)y=!0,D(w);else{var M=r(c);M!==null&&B(S,M.startTime-R)}}function w(R,M){y=!1,m&&(m=!1,b(T),T=-1),p=!0;var U=h;try{for(x(M),d=r(l);d!==null&&(!(d.expirationTime>M)||R&&!C());){var Y=d.callback;
vendor: 9,155 bytes, lines 25-34
25if(typeof Y=="function"){d.callback=null,h=d.priorityLevel;var W=Y(d.expirationTime<=M);M=e.unstable_now(),typeof W=="function"?d.callback=W:d===r(l)&&n(l),x(M)}else n(l);d=r(l)}if(d!==null)var X=!0;else{var le=r(c);le!==null&&B(S,le.startTime-M),X=!1}return X}finally{d=null,h=U,p=!1}}var _=!1,A=null,T=-1,j=5,P=-1;function C(){return!(e.unstable_now()-P<j)}function O(){if(A!==null){var R=e.unstable_now();P=R;var M=!0;try{M=A(!0,R)}finally{M?$():(_=!1,A=null)}}else _=!1}var $;if(typeof v=="function")$=function(){v(O)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,L=N.port2;N.port1.onmessage=O,$=function(){L.postMessage(null)}}else $=function(){g(O,0)};function D(R){A=R,_||(_=!0,$())}function B(R,M){T=g(function(){R(e.unstable_now())},M)}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(R){R.callback=null},e.unstable_continueExecution=function(){y||p||(y=!0,D(w))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(R){switch(h){case 1:case 2:case 3:var M=3;break;default:M=h}var U=h;h=M;try{return R()}finally{h=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,M){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var U=h;h=R;try{return M()}finally{h=U}},e.unstable_scheduleCallback=function(R,M,U){var Y=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?Y+U:Y):U=Y,R){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=U+W,R={id:u++,callback:M,priorityLevel:R,startTime:U,expirationTime:W,sortIndex:-1},U>Y?(R.sortIndex=U,t(c,R),r(l)===null&&R===r(c)&&(m?(b(T),T=-1):m=!0,B(S,U-Y))):(R.sortIndex=W,t(l,R),y||p||(y=!0,D(w))),R},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(R){var M=h;return function(){var U=h;h=M;try{return R.apply(this,arguments)}finally{h=U}}}})(pI);hI.exports=pI;var l6=hI.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 c6=k,ln=l6;function J(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var mI=new Set,zd={};function Gs(e,t){Sc(e,t),Sc(e+"Capture",t)}function Sc(e,t){for(zd[e]=t,e=0;e<t.length;e++)mI.add(t[e])}var fa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),X0=Object.prototype.hasOwnProperty,u6=/^[: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]*$/,aT={},oT={};function d6(e){return X0.call(oT,e)?!0:X0.call(aT,e)?!1:u6.test(e)?oT[e]=!0:(aT[e]=!0,!1)}function f6(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function h6(e,t,r,n){if(t===null||typeof t>"u"||f6(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Rr(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var lr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){lr[e]=new Rr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];lr[t]=new Rr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){lr[e]=new Rr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){lr[e]=new Rr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){lr[e]=new Rr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){lr[e]=new Rr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){lr[e]=new Rr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){lr[e]=new Rr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){lr[e]=new Rr(e,5,!1,e.toLowerCase(),null,!1,!1)});var MS=/[\-:]([a-z])/g;function DS(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(MS,DS);lr[t]=new Rr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(MS,DS);lr[t]=new Rr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(MS,DS);lr[t]=new Rr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){lr[e]=new Rr(e,1,!1,e.toLowerCase(),null,!1,!1)});lr.xlinkHref=new Rr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){lr[e]=new Rr(e,1,!1,e.toLowerCase(),null,!0,!0)});function LS(e,t,r,n){var i=lr.hasOwnProperty(t)?lr[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(h6(t,r,i,n)&&(r=null),n||i===null?d6(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var _a=c6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Kh=Symbol.for("react.element"),Ol=Symbol.for("react.portal"),Pl=Symbol.for("react.fragment"),BS=Symbol.for("react.strict_mode"),Z0=Symbol.for("react.profiler"),yI=Symbol.for("react.provider"),gI=Symbol.for("react.context"),FS=Symbol.for("react.forward_ref"),J0=Symbol.for("react.suspense"),Q0=Symbol.for("react.suspense_list"),US=Symbol.for("react.memo"),Ua=Symbol.for("react.lazy"),vI=Symbol.for("react.offscreen"),sT=Symbol.iterator;function $u(e){return e===null||typeof e!="object"?null:(e=sT&&e[sT]||e["@@iterator"],typeof e=="function"?e:null)}var _t=Object.assign,sb;function od(e){if(sb===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);sb=t&&t[1]||""}return` 34`+sb+e}var lb=!1;function cb(e,t){if(!e||lb)return"";lb=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}
vendor: 14,090 bytes, lines 34-37
34catch(c){if(c&&n&&typeof c.stack=="string"){for(var i=c.stack.split(` 35`),a=n.stack.split(` 36`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var l=` 37`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{lb=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?od(e):""}function p6(e){switch(e.tag){case 5:return od(e.type);case 16:return od("Lazy");case 13:return od("Suspense");case 19:return od("SuspenseList");case 0:case 2:case 15:return e=cb(e.type,!1),e;case 11:return e=cb(e.type.render,!1),e;case 1:return e=cb(e.type,!0),e;default:return""}}function ex(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Pl:return"Fragment";case Ol:return"Portal";case Z0:return"Profiler";case BS:return"StrictMode";case J0:return"Suspense";case Q0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case gI:return(e.displayName||"Context")+".Consumer";case yI:return(e._context.displayName||"Context")+".Provider";case FS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case US:return t=e.displayName||null,t!==null?t:ex(e.type)||"Memo";case Ua:t=e._payload,e=e._init;try{return ex(e(t))}catch{}}return null}function m6(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ex(t);case 8:return t===BS?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function So(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bI(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function y6(e){var t=bI(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yh(e){e._valueTracker||(e._valueTracker=y6(e))}function xI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=bI(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function vm(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function tx(e,t){var r=t.checked;return _t({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function lT(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=So(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function wI(e,t){t=t.checked,t!=null&&LS(e,"checked",t,!1)}function rx(e,t){wI(e,t);var r=So(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?nx(e,t.type,r):t.hasOwnProperty("defaultValue")&&nx(e,t.type,So(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cT(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function nx(e,t,r){(t!=="number"||vm(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var sd=Array.isArray;function Ql(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+So(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ix(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(J(91));return _t({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function uT(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(J(92));if(sd(r)){if(1<r.length)throw Error(J(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:So(r)}}function SI(e,t){var r=So(t.value),n=So(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function dT(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function _I(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ax(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_I(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Gh,kI=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Gh=Gh||document.createElement("div"),Gh.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Gh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wd(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var yd={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},g6=["Webkit","ms","Moz","O"];Object.keys(yd).forEach(function(e){g6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yd[t]=yd[e]})});function AI(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||yd.hasOwnProperty(e)&&yd[e]?(""+t).trim():t+"px"}function TI(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=AI(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var v6=_t({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 ox(e,t){if(t){if(v6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(J(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(J(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(J(61))}if(t.style!=null&&typeof t.style!="object")throw Error(J(62))}}function sx(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var lx=null;function VS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cx=null,ec=null,tc=null;function fT(e){if(e=yh(e)){if(typeof cx!="function")throw Error(J(280));var t=e.stateNode;t&&(t=kg(t),cx(e.stateNode,e.type,t))}}function EI(e){ec?tc?tc.push(e):tc=[e]:ec=e}function jI(){if(ec){var e=ec,t=tc;if(tc=ec=null,fT(e),t)for(e=0;e<t.length;e++)fT(t[e])}}function OI(e,t){return e(t)}function PI(){}var ub=!1;function CI(e,t,r){if(ub)return e(t,r);ub=!0;try{return OI(e,t,r)}finally{ub=!1,(ec!==null||tc!==null)&&(PI(),jI())}}function Hd(e,t){var r=e.stateNode;if(r===null)return null;var n=kg(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(J(231,t,typeof r));return r}var ux=!1;if(fa)try{var Mu={};Object.defineProperty(Mu,"passive",{get:function(){ux=!0}}),window.addEventListener("test",Mu,Mu),window.removeEventListener("test",Mu,Mu)}catch{ux=!1}function b6(e,t,r,n,i,a,o,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var gd=!1,bm=null,xm=!1,dx=null,x6={onError:function(e){gd=!0,bm=e}};function w6(e,t,r,n,i,a,o,s,l){gd=!1,bm=null,b6.apply(x6,arguments)}function S6(e,t,r,n,i,a,o,s,l){if(w6.apply(this,arguments),gd){if(gd){var c=bm;gd=!1,bm=null}else throw Error(J(198));xm||(xm=!0,dx=c)}}function Xs(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function NI(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function hT(e){if(Xs(e)!==e)throw Error(J(188))}function _6(e){var t=e.alternate;if(!t){if(t=Xs(e),t===null)throw Error(J(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return hT(i),e;if(a===n)return hT(i),t;a=a.sibling}throw Error(J(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,s=i.child;s;){if(s===r){o=!0,r=i,n=a;break}if(s===n){o=!0,n=i,r=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===r){o=!0,r=a,n=i;break}if(s===n){o=!0,n=a,r=i;break}s=s.sibling}if(!o)throw Error(J(189))}}if(r.alternate!==n)throw Error(J(190))}if(r.tag!==3)throw Error(J(188));return r.stateNode.current===r?e:t}function RI(e){return e=_6(e),e!==null?II(e):null}function II(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=II(e);if(t!==null)return t;e=e.sibling}return null}var $I=ln.unstable_scheduleCallback,pT=ln.unstable_cancelCallback,k6=ln.unstable_shouldYield,A6=ln.unstable_requestPaint,Nt=ln.unstable_now,T6=ln.unstable_getCurrentPriorityLevel,zS=ln.unstable_ImmediatePriority,MI=ln.unstable_UserBlockingPriority,wm=ln.unstable_NormalPriority,E6=ln.unstable_LowPriority,DI=ln.unstable_IdlePriority,xg=null,Ei=null;function j6(e){if(Ei&&typeof Ei.onCommitFiberRoot=="function")try{Ei.onCommitFiberRoot(xg,e,void 0,(e.current.flags&128)===128)}catch{}}var ei=Math.clz32?Math.clz32:C6,O6=Math.log,P6=Math.LN2;function C6(e){return e>>>=0,e===0?32:31-(O6(e)/P6|0)|0}var Xh=64,Zh=4194304;function ld(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Sm(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=ld(s):(a&=o,a!==0&&(n=ld(a)))}else o=r&~i,o!==0?n=ld(o):a!==0&&(n=ld(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-ei(t),i=1<<r,n|=e[r],t&=~i;return n}function N6(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function R6(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ei(a),s=1<<o,l=i[o];l===-1?(!(s&r)||s&n)&&(i[o]=N6(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}function fx(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function LI(){var e=Xh;return Xh<<=1,!(Xh&4194240)&&(Xh=64),e}function db(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function ph(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ei(t),e[t]=r}function I6(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-ei(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}function WS(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-ei(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var Xe=0;function BI(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var FI,HS,UI,VI,zI,hx=!1,Jh=[],lo=null,co=null,uo=null,qd=new Map,Kd=new Map,Ha=[],$6="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 mT(e,t){switch(e){case"focusin":case"focusout":lo=null;break;case"dragenter":case"dragleave":co=null;break;case"mouseover":case"mouseout":uo=null;break;case"pointerover":case"pointerout":qd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kd.delete(t.pointerId)}}function Du(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},t!==null&&(t=yh(t),t!==null&&HS(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function M6(e,t,r,n,i){switch(t){case"focusin":return lo=Du(lo,e,t,r,n,i),!0;case"dragenter":return co=Du(co,e,t,r,n,i),!0;case"mouseover":return uo=Du(uo,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return qd.set(a,Du(qd.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,Kd.set(a,Du(Kd.get(a)||null,e,t,r,n,i)),!0}return!1}function WI(e){var t=ls(e.target);if(t!==null){var r=Xs(t);if(r!==null){if(t=r.tag,t===13){if(t=NI(r),t!==null){e.blockedOn=t,zI(e.priority,function(){UI(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Kp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=px(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);lx=n,r.target.dispatchEvent(n),lx=null}else return t=yh(r),t!==null&&HS(t),e.blockedOn=r,!1;t.shift()}return!0}function yT(e,t,r){Kp(e)&&r.delete(t)}function D6(){hx=!1,lo!==null&&Kp(lo)&&(lo=null),co!==null&&Kp(co)&&(co=null),uo!==null&&Kp(uo)&&(uo=null),qd.forEach(yT),Kd.forEach(yT)}function Lu(e,t){e.blockedOn===t&&(e.blockedOn=null,hx||(hx=!0,ln.unstable_scheduleCallback(ln.unstable_NormalPriority,D6)))}function Yd(e){function t(i){return Lu(i,e)}if(0<Jh.length){Lu(Jh[0],e);for(var r=1;r<Jh.length;r++){var n=Jh[r];n.blockedOn===e&&(n.blockedOn=null)}}for(lo!==null&&Lu(lo,e),co!==null&&Lu(co,e),uo!==null&&Lu(uo,e),qd.forEach(t),Kd.forEach(t),r=0;r<Ha.length;r++)n=Ha[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Ha.length&&(r=Ha[0],r.blockedOn===null);)WI(r),r.blockedOn===null&&Ha.shift()}var rc=_a.ReactCurrentBatchConfig,_m=!0;function L6(e,t,r,n){var i=Xe,a=rc.transition;rc.transition=null;try{Xe=1,qS(e,t,r,n)}finally{Xe=i,rc.transition=a}}function B6(e,t,r,n){var i=Xe,a=rc.transition;rc.transition=null;try{Xe=4,qS(e,t,r,n)}finally{Xe=i,rc.transition=a}}function qS(e,t,r,n){if(_m){var i=px(e,t,r,n);if(i===null)wb(e,t,n,km,r),mT(e,n);else if(M6(i,e,t,r,n))n.stopPropagation();else if(mT(e,n),t&4&&-1<$6.indexOf(e)){for(;i!==null;){var a=yh(i);if(a!==null&&FI(a),a=px(e,t,r,n),a===null&&wb(e,t,n,km,r),a===i)break;i=a}i!==null&&n.stopPropagation()}else wb(e,t,n,null,r)}}var km=null;function px(e,t,r,n){if(km=null,e=VS(n),e=ls(e),e!==null)if(t=Xs(e),t===null)e=null;else if(r=t.tag,r===13){if(e=NI(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return km=e,null}
vendor: 10,401 bytes, line 37
37function HI(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(T6()){case zS:return 1;case MI:return 4;case wm:case E6:return 16;case DI:return 536870912;default:return 16}default:return 16}}var to=null,KS=null,Yp=null;function qI(){if(Yp)return Yp;var e,t=KS,r=t.length,n,i="value"in to?to.value:to.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return Yp=i.slice(e,1<n?1-n:void 0)}function Gp(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Qh(){return!0}function gT(){return!1}function dn(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Qh:gT,this.isPropagationStopped=gT,this}return _t(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Qh)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Qh)},persist:function(){},isPersistent:Qh}),t}var uu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},YS=dn(uu),mh=_t({},uu,{view:0,detail:0}),F6=dn(mh),fb,hb,Bu,wg=_t({},mh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:GS,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Bu&&(Bu&&e.type==="mousemove"?(fb=e.screenX-Bu.screenX,hb=e.screenY-Bu.screenY):hb=fb=0,Bu=e),fb)},movementY:function(e){return"movementY"in e?e.movementY:hb}}),vT=dn(wg),U6=_t({},wg,{dataTransfer:0}),V6=dn(U6),z6=_t({},mh,{relatedTarget:0}),pb=dn(z6),W6=_t({},uu,{animationName:0,elapsedTime:0,pseudoElement:0}),H6=dn(W6),q6=_t({},uu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),K6=dn(q6),Y6=_t({},uu,{data:0}),bT=dn(Y6),G6={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},X6={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"},Z6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function J6(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Z6[e])?!!t[e]:!1}function GS(){return J6}var Q6=_t({},mh,{key:function(e){if(e.key){var t=G6[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gp(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?X6[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:GS,charCode:function(e){return e.type==="keypress"?Gp(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gp(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),e8=dn(Q6),t8=_t({},wg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xT=dn(t8),r8=_t({},mh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:GS}),n8=dn(r8),i8=_t({},uu,{propertyName:0,elapsedTime:0,pseudoElement:0}),a8=dn(i8),o8=_t({},wg,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),s8=dn(o8),l8=[9,13,27,32],XS=fa&&"CompositionEvent"in window,vd=null;fa&&"documentMode"in document&&(vd=document.documentMode);var c8=fa&&"TextEvent"in window&&!vd,KI=fa&&(!XS||vd&&8<vd&&11>=vd),wT=" ",ST=!1;function YI(e,t){switch(e){case"keyup":return l8.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function GI(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cl=!1;function u8(e,t){switch(e){case"compositionend":return GI(t);case"keypress":return t.which!==32?null:(ST=!0,wT);case"textInput":return e=t.data,e===wT&&ST?null:e;default:return null}}function d8(e,t){if(Cl)return e==="compositionend"||!XS&&YI(e,t)?(e=qI(),Yp=KS=to=null,Cl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return KI&&t.locale!=="ko"?null:t.data;default:return null}}var f8={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 _T(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!f8[e.type]:t==="textarea"}function XI(e,t,r,n){EI(n),t=Am(t,"onChange"),0<t.length&&(r=new YS("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var bd=null,Gd=null;function h8(e){s$(e,0)}function Sg(e){var t=Il(e);if(xI(t))return e}function p8(e,t){if(e==="change")return t}var ZI=!1;if(fa){var mb;if(fa){var yb="oninput"in document;if(!yb){var kT=document.createElement("div");kT.setAttribute("oninput","return;"),yb=typeof kT.oninput=="function"}mb=yb}else mb=!1;ZI=mb&&(!document.documentMode||9<document.documentMode)}function AT(){bd&&(bd.detachEvent("onpropertychange",JI),Gd=bd=null)}function JI(e){if(e.propertyName==="value"&&Sg(Gd)){var t=[];XI(t,Gd,e,VS(e)),CI(h8,t)}}function m8(e,t,r){e==="focusin"?(AT(),bd=t,Gd=r,bd.attachEvent("onpropertychange",JI)):e==="focusout"&&AT()}function y8(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Sg(Gd)}function g8(e,t){if(e==="click")return Sg(t)}function v8(e,t){if(e==="input"||e==="change")return Sg(t)}function b8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ii=typeof Object.is=="function"?Object.is:b8;function Xd(e,t){if(ii(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!X0.call(t,i)||!ii(e[i],t[i]))return!1}return!0}function TT(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ET(e,t){var r=TT(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=TT(r)}}function QI(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?QI(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function e$(){for(var e=window,t=vm();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=vm(e.document)}return t}function ZS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function x8(e){var t=e$(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&QI(r.ownerDocument.documentElement,r)){if(n!==null&&ZS(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=ET(r,a);var o=ET(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var w8=fa&&"documentMode"in document&&11>=document.documentMode,Nl=null,mx=null,xd=null,yx=!1;function jT(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;yx||Nl==null||Nl!==vm(n)||(n=Nl,"selectionStart"in n&&ZS(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),xd&&Xd(xd,n)||(xd=n,n=Am(mx,"onSelect"),0<n.length&&(t=new YS("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Nl)))}function ep(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Rl={animationend:ep("Animation","AnimationEnd"),animationiteration:ep("Animation","AnimationIteration"),animationstart:ep("Animation","AnimationStart"),transitionend:ep("Transition","TransitionEnd")},gb={},t$={};fa&&(t$=document.createElement("div").style,"AnimationEvent"in window||(delete Rl.animationend.animation,delete Rl.animationiteration.animation,delete Rl.animationstart.animation),"TransitionEvent"in window||delete Rl.transitionend.transition);function _g(e){if(gb[e])return gb[e];if(!Rl[e])return e;var t=Rl[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in t$)return gb[e]=t[r];return e}var r$=_g("animationend"),n$=_g("animationiteration"),i$=_g("animationstart"),a$=_g("transitionend"),o$=new Map,OT="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 Po(e,t){o$.set(e,t),Gs(t,[e])}for(var vb=0;vb<OT.length;vb++){var bb=OT[vb],S8=bb.toLowerCase(),_8=bb[0].toUpperCase()+bb.slice(1);Po(S8,"on"+_8)}Po(r$,"onAnimationEnd");Po(n$,"onAnimationIteration");Po(i$,"onAnimationStart");Po("dblclick","onDoubleClick");Po("focusin","onFocus");Po("focusout","onBlur");Po(a$,"onTransitionEnd");Sc("onMouseEnter",["mouseout","mouseover"]);Sc("onMouseLeave",["mouseout","mouseover"]);Sc("onPointerEnter",["pointerout","pointerover"]);Sc("onPointerLeave",["pointerout","pointerover"]);Gs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Gs("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Gs("onBeforeInput",["compositionend","keypress","textInput","paste"]);Gs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Gs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Gs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cd="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(" "),k8=new Set("cancel close invalid load scroll toggle".split(" ").concat(cd));function PT(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,S6(n,t,void 0,e),e.currentTarget=null}function s$(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;PT(i,s,c),a=l}else for(o=0;o<n.length;o++){if(s=n[o],l=s.instance,c=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;PT(i,s,c),a=l}}}if(xm)throw e=dx,xm=!1,dx=null,e}function ut(e,t){var r=t[wx];r===void 0&&(r=t[wx]=new Set);var n=e+"__bubble";r.has(n)||(l$(t,e,2,!1),r.add(n))}function xb(e,t,r){var n=0;t&&(n|=4),l$(r,e,n,t)}var tp="_reactListening"+Math.random().toString(36).slice(2);function Zd(e){if(!e[tp]){e[tp]=!0,mI.forEach(function(r){r!=="selectionchange"&&(k8.has(r)||xb(r,!1,e),xb(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[tp]||(t[tp]=!0,xb("selectionchange",!1,t))}}function l$(e,t,r,n){switch(HI(t)){case 1:var i=L6;break;case 4:i=B6;break;default:i=qS}r=i.bind(null,t,r,e),i=void 0,!ux||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function wb(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var s=n.stateNode.containerInfo;
vendor: 5,572 bytes, lines 37-38
37if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;s!==null;){if(o=ls(s),o===null)return;if(l=o.tag,l===5||l===6){n=a=o;continue e}s=s.parentNode}}n=n.return}CI(function(){var c=a,u=VS(r),d=[];e:{var h=o$.get(e);if(h!==void 0){var p=YS,y=e;switch(e){case"keypress":if(Gp(r)===0)break e;case"keydown":case"keyup":p=e8;break;case"focusin":y="focus",p=pb;break;case"focusout":y="blur",p=pb;break;case"beforeblur":case"afterblur":p=pb;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=vT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=V6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=n8;break;case r$:case n$:case i$:p=H6;break;case a$:p=a8;break;case"scroll":p=F6;break;case"wheel":p=s8;break;case"copy":case"cut":case"paste":p=K6;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=xT}var m=(t&4)!==0,g=!m&&e==="scroll",b=m?h!==null?h+"Capture":null:h;m=[];for(var v=c,x;v!==null;){x=v;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,b!==null&&(S=Hd(v,b),S!=null&&m.push(Jd(v,S,x)))),g)break;v=v.return}0<m.length&&(h=new p(h,y,null,r,u),d.push({event:h,listeners:m}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&r!==lx&&(y=r.relatedTarget||r.fromElement)&&(ls(y)||y[ha]))break e;if((p||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,p?(y=r.relatedTarget||r.toElement,p=c,y=y?ls(y):null,y!==null&&(g=Xs(y),y!==g||y.tag!==5&&y.tag!==6)&&(y=null)):(p=null,y=c),p!==y)){if(m=vT,S="onMouseLeave",b="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(m=xT,S="onPointerLeave",b="onPointerEnter",v="pointer"),g=p==null?h:Il(p),x=y==null?h:Il(y),h=new m(S,v+"leave",p,r,u),h.target=g,h.relatedTarget=x,S=null,ls(u)===c&&(m=new m(b,v+"enter",y,r,u),m.target=x,m.relatedTarget=g,S=m),g=S,p&&y)t:{for(m=p,b=y,v=0,x=m;x;x=sl(x))v++;for(x=0,S=b;S;S=sl(S))x++;for(;0<v-x;)m=sl(m),v--;for(;0<x-v;)b=sl(b),x--;for(;v--;){if(m===b||b!==null&&m===b.alternate)break t;m=sl(m),b=sl(b)}m=null}else m=null;p!==null&&CT(d,h,p,m,!1),y!==null&&g!==null&&CT(d,g,y,m,!0)}}e:{if(h=c?Il(c):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var w=p8;else if(_T(h))if(ZI)w=v8;else{w=y8;var _=m8}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(w=g8);if(w&&(w=w(e,c))){XI(d,w,r,u);break e}_&&_(e,h,c),e==="focusout"&&(_=h._wrapperState)&&_.controlled&&h.type==="number"&&nx(h,"number",h.value)}switch(_=c?Il(c):window,e){case"focusin":(_T(_)||_.contentEditable==="true")&&(Nl=_,mx=c,xd=null);break;case"focusout":xd=mx=Nl=null;break;case"mousedown":yx=!0;break;case"contextmenu":case"mouseup":case"dragend":yx=!1,jT(d,r,u);break;case"selectionchange":if(w8)break;case"keydown":case"keyup":jT(d,r,u)}var A;if(XS)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Cl?YI(e,r)&&(T="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(T="onCompositionStart");T&&(KI&&r.locale!=="ko"&&(Cl||T!=="onCompositionStart"?T==="onCompositionEnd"&&Cl&&(A=qI()):(to=u,KS="value"in to?to.value:to.textContent,Cl=!0)),_=Am(c,T),0<_.length&&(T=new bT(T,e,null,r,u),d.push({event:T,listeners:_}),A?T.data=A:(A=GI(r),A!==null&&(T.data=A)))),(A=c8?u8(e,r):d8(e,r))&&(c=Am(c,"onBeforeInput"),0<c.length&&(u=new bT("onBeforeInput","beforeinput",null,r,u),d.push({event:u,listeners:c}),u.data=A))}s$(d,t)})}function Jd(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Am(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Hd(e,r),a!=null&&n.unshift(Jd(e,a,i)),a=Hd(e,t),a!=null&&n.push(Jd(e,a,i))),e=e.return}return n}function sl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function CT(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&c!==null&&(s=c,i?(l=Hd(r,a),l!=null&&o.unshift(Jd(r,l,s))):i||(l=Hd(r,a),l!=null&&o.push(Jd(r,l,s)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var A8=/\r\n?/g,T8=/\u0000|\uFFFD/g;function NT(e){return(typeof e=="string"?e:""+e).replace(A8,` 38`).replace(T8,"")}function rp(e,t,r){if(t=NT(t),NT(e)!==t&&r)throw Error(J(425))}function Tm(){}var gx=null,vx=null;function bx(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var xx=typeof setTimeout=="function"?setTimeout:void 0,E8=typeof clearTimeout=="function"?clearTimeout:void 0,RT=typeof Promise=="function"?Promise:void 0,j8=typeof queueMicrotask=="function"?queueMicrotask:typeof RT<"u"?function(e){return RT.resolve(null).then(e).catch(O8)}:xx;function O8(e){setTimeout(function(){throw e})}function Sb(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Yd(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}
vendor: 4,658 bytes, line 38
38while(r);Yd(t)}function fo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function IT(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var du=Math.random().toString(36).slice(2),wi="__reactFiber$"+du,Qd="__reactProps$"+du,ha="__reactContainer$"+du,wx="__reactEvents$"+du,P8="__reactListeners$"+du,C8="__reactHandles$"+du;function ls(e){var t=e[wi];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ha]||r[wi]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=IT(e);e!==null;){if(r=e[wi])return r;e=IT(e)}return t}e=r,r=e.parentNode}return null}function yh(e){return e=e[wi]||e[ha],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Il(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(J(33))}function kg(e){return e[Qd]||null}var Sx=[],$l=-1;function Co(e){return{current:e}}function pt(e){0>$l||(e.current=Sx[$l],Sx[$l]=null,$l--)}function ot(e,t){$l++,Sx[$l]=e.current,e.current=t}var _o={},br=Co(_o),Ur=Co(!1),Ns=_o;function _c(e,t){var r=e.type.contextTypes;if(!r)return _o;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Vr(e){return e=e.childContextTypes,e!=null}function Em(){pt(Ur),pt(br)}function $T(e,t,r){if(br.current!==_o)throw Error(J(168));ot(br,t),ot(Ur,r)}function c$(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(J(108,m6(e)||"Unknown",i));return _t({},r,n)}function jm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_o,Ns=br.current,ot(br,e),ot(Ur,Ur.current),!0}function MT(e,t,r){var n=e.stateNode;if(!n)throw Error(J(169));r?(e=c$(e,t,Ns),n.__reactInternalMemoizedMergedChildContext=e,pt(Ur),pt(br),ot(br,e)):pt(Ur),ot(Ur,r)}var ta=null,Ag=!1,_b=!1;function u$(e){ta===null?ta=[e]:ta.push(e)}function N8(e){Ag=!0,u$(e)}function No(){if(!_b&&ta!==null){_b=!0;var e=0,t=Xe;try{var r=ta;for(Xe=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}ta=null,Ag=!1}catch(i){throw ta!==null&&(ta=ta.slice(e+1)),$I(zS,No),i}finally{Xe=t,_b=!1}}return null}var Ml=[],Dl=0,Om=null,Pm=0,gn=[],vn=0,Rs=null,ia=1,aa="";function Qo(e,t){Ml[Dl++]=Pm,Ml[Dl++]=Om,Om=e,Pm=t}function d$(e,t,r){gn[vn++]=ia,gn[vn++]=aa,gn[vn++]=Rs,Rs=e;var n=ia;e=aa;var i=32-ei(n)-1;n&=~(1<<i),r+=1;var a=32-ei(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,ia=1<<32-ei(t)+i|r<<i|n,aa=a+e}else ia=1<<a|r<<i|n,aa=e}function JS(e){e.return!==null&&(Qo(e,1),d$(e,1,0))}function QS(e){for(;e===Om;)Om=Ml[--Dl],Ml[Dl]=null,Pm=Ml[--Dl],Ml[Dl]=null;for(;e===Rs;)Rs=gn[--vn],gn[vn]=null,aa=gn[--vn],gn[vn]=null,ia=gn[--vn],gn[vn]=null}var nn=null,rn=null,gt=!1,Xn=null;function f$(e,t){var r=xn(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function DT(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,nn=e,rn=fo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,nn=e,rn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Rs!==null?{id:ia,overflow:aa}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=xn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,nn=e,rn=null,!0):!1;default:return!1}}function _x(e){return(e.mode&1)!==0&&(e.flags&128)===0}function kx(e){if(gt){var t=rn;if(t){var r=t;if(!DT(e,t)){if(_x(e))throw Error(J(418));t=fo(r.nextSibling);var n=nn;t&&DT(e,t)?f$(n,r):(e.flags=e.flags&-4097|2,gt=!1,nn=e)}}else{if(_x(e))throw Error(J(418));e.flags=e.flags&-4097|2,gt=!1,nn=e}}}function LT(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;nn=e}function np(e){if(e!==nn)return!1;if(!gt)return LT(e),gt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!bx(e.type,e.memoizedProps)),t&&(t=rn)){if(_x(e))throw h$(),Error(J(418));for(;t;)f$(e,t),t=fo(t.nextSibling)}if(LT(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(J(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){rn=fo(e.nextSibling);break e}t--}
vendor: 4,315 bytes, line 38
38else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}rn=null}}else rn=nn?fo(e.stateNode.nextSibling):null;return!0}function h$(){for(var e=rn;e;)e=fo(e.nextSibling)}function kc(){rn=nn=null,gt=!1}function e_(e){Xn===null?Xn=[e]:Xn.push(e)}var R8=_a.ReactCurrentBatchConfig;function Fu(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(J(309));var n=r.stateNode}if(!n)throw Error(J(147,e));var i=n,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var s=i.refs;o===null?delete s[a]:s[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(J(284));if(!r._owner)throw Error(J(290,e))}return e}function ip(e,t){throw e=Object.prototype.toString.call(t),Error(J(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function BT(e){var t=e._init;return t(e._payload)}function p$(e){function t(b,v){if(e){var x=b.deletions;x===null?(b.deletions=[v],b.flags|=16):x.push(v)}}function r(b,v){if(!e)return null;for(;v!==null;)t(b,v),v=v.sibling;return null}function n(b,v){for(b=new Map;v!==null;)v.key!==null?b.set(v.key,v):b.set(v.index,v),v=v.sibling;return b}function i(b,v){return b=yo(b,v),b.index=0,b.sibling=null,b}function a(b,v,x){return b.index=x,e?(x=b.alternate,x!==null?(x=x.index,x<v?(b.flags|=2,v):x):(b.flags|=2,v)):(b.flags|=1048576,v)}function o(b){return e&&b.alternate===null&&(b.flags|=2),b}function s(b,v,x,S){return v===null||v.tag!==6?(v=Pb(x,b.mode,S),v.return=b,v):(v=i(v,x),v.return=b,v)}function l(b,v,x,S){var w=x.type;return w===Pl?u(b,v,x.props.children,S,x.key):v!==null&&(v.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Ua&&BT(w)===v.type)?(S=i(v,x.props),S.ref=Fu(b,v,x),S.return=b,S):(S=rm(x.type,x.key,x.props,null,b.mode,S),S.ref=Fu(b,v,x),S.return=b,S)}function c(b,v,x,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=Cb(x,b.mode,S),v.return=b,v):(v=i(v,x.children||[]),v.return=b,v)}function u(b,v,x,S,w){return v===null||v.tag!==7?(v=Es(x,b.mode,S,w),v.return=b,v):(v=i(v,x),v.return=b,v)}function d(b,v,x){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Pb(""+v,b.mode,x),v.return=b,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Kh:return x=rm(v.type,v.key,v.props,null,b.mode,x),x.ref=Fu(b,null,v),x.return=b,x;case Ol:return v=Cb(v,b.mode,x),v.return=b,v;case Ua:var S=v._init;return d(b,S(v._payload),x)}if(sd(v)||$u(v))return v=Es(v,b.mode,x,null),v.return=b,v;ip(b,v)}return null}function h(b,v,x,S){var w=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return w!==null?null:s(b,v,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Kh:return x.key===w?l(b,v,x,S):null;case Ol:return x.key===w?c(b,v,x,S):null;case Ua:return w=x._init,h(b,v,w(x._payload),S)}if(sd(x)||$u(x))return w!==null?null:u(b,v,x,S,null);ip(b,x)}return null}function p(b,v,x,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return b=b.get(x)||null,s(v,b,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Kh:return b=b.get(S.key===null?x:S.key)||null,l(v,b,S,w);case Ol:return b=b.get(S.key===null?x:S.key)||null,c(v,b,S,w);case Ua:var _=S._init;return p(b,v,x,_(S._payload),w)}if(sd(S)||$u(S))return b=b.get(x)||null,u(v,b,S,w,null);ip(v,S)}return null}function y(b,v,x,S){for(var w=null,_=null,A=v,T=v=0,j=null;A!==null&&T<x.length;T++){A.index>T?(j=A,A=null):j=A.sibling;var P=h(b,A,x[T],S);if(P===null){A===null&&(A=j);break}e&&A&&P.alternate===null&&t(b,A),v=a(P,v,T),_===null?w=P:_.sibling=P,_=P,A=j}if(T===x.length)return r(b,A),gt&&Qo(b,T),w;if(A===null){for(;T<x.length;T++)A=d(b,x[T],S),A!==null&&(v=a(A,v,T),_===null?w=A:_.sibling=A,_=A);return gt&&Qo(b,T),w}for(A=n(b,A);T<x.length;T++)j=p(A,b,T,x[T],S),j!==null&&(e&&j.alternate!==null&&A.delete(j.key===null?T:j.key),v=a(j,v,T),_===null?w=j:_.sibling=j,_=j);return e&&A.forEach(function(C){return t(b,C)}),gt&&Qo(b,T),w}function m(b,v,x,S){var w=$u(x);if(typeof w!="function")throw Error(J(150));if(x=w.call(x),x==null)throw Error(J(151));for(var _=w=null,A=v,T=v=0,j=null,P=x.next();A!==null&&!P.done;T++,P=x.next()){A.index>T?(j=A,A=null):j=A.sibling;var C=h(b,A,P.value,S);if(C===null){A===null&&(A=j);break}
vendor: 1,123 bytes, line 38
38e&&A&&C.alternate===null&&t(b,A),v=a(C,v,T),_===null?w=C:_.sibling=C,_=C,A=j}if(P.done)return r(b,A),gt&&Qo(b,T),w;if(A===null){for(;!P.done;T++,P=x.next())P=d(b,P.value,S),P!==null&&(v=a(P,v,T),_===null?w=P:_.sibling=P,_=P);return gt&&Qo(b,T),w}for(A=n(b,A);!P.done;T++,P=x.next())P=p(A,b,T,P.value,S),P!==null&&(e&&P.alternate!==null&&A.delete(P.key===null?T:P.key),v=a(P,v,T),_===null?w=P:_.sibling=P,_=P);return e&&A.forEach(function(O){return t(b,O)}),gt&&Qo(b,T),w}function g(b,v,x,S){if(typeof x=="object"&&x!==null&&x.type===Pl&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Kh:e:{for(var w=x.key,_=v;_!==null;){if(_.key===w){if(w=x.type,w===Pl){if(_.tag===7){r(b,_.sibling),v=i(_,x.props.children),v.return=b,b=v;break e}}else if(_.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Ua&&BT(w)===_.type){r(b,_.sibling),v=i(_,x.props),v.ref=Fu(b,_,x),v.return=b,b=v;break e}r(b,_);break}else t(b,_);_=_.sibling}x.type===Pl?(v=Es(x.props.children,b.mode,S,x.key),v.return=b,b=v):(S=rm(x.type,x.key,x.props,null,b.mode,S),S.ref=Fu(b,v,x),S.return=b,b=S)}return o(b);
vendor: 17,346 bytes, lines 38-40
38case Ol:e:{for(_=x.key;v!==null;){if(v.key===_)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){r(b,v.sibling),v=i(v,x.children||[]),v.return=b,b=v;break e}else{r(b,v);break}else t(b,v);v=v.sibling}v=Cb(x,b.mode,S),v.return=b,b=v}return o(b);case Ua:return _=x._init,g(b,v,_(x._payload),S)}if(sd(x))return y(b,v,x,S);if($u(x))return m(b,v,x,S);ip(b,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,v!==null&&v.tag===6?(r(b,v.sibling),v=i(v,x),v.return=b,b=v):(r(b,v),v=Pb(x,b.mode,S),v.return=b,b=v),o(b)):r(b,v)}return g}var Ac=p$(!0),m$=p$(!1),Cm=Co(null),Nm=null,Ll=null,t_=null;function r_(){t_=Ll=Nm=null}function n_(e){var t=Cm.current;pt(Cm),e._currentValue=t}function Ax(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function nc(e,t){Nm=e,t_=Ll=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Br=!0),e.firstContext=null)}function Tn(e){var t=e._currentValue;if(t_!==e)if(e={context:e,memoizedValue:t,next:null},Ll===null){if(Nm===null)throw Error(J(308));Ll=e,Nm.dependencies={lanes:0,firstContext:e}}else Ll=Ll.next=e;return t}var cs=null;function i_(e){cs===null?cs=[e]:cs.push(e)}function y$(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,i_(t)):(r.next=i.next,i.next=r),t.interleaved=r,pa(e,n)}function pa(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Va=!1;function a_(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function g$(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ca(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ho(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Be&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,pa(e,r)}return i=n.interleaved,i===null?(t.next=t,i_(n)):(t.next=i.next,i.next=t),n.interleaved=t,pa(e,r)}function Xp(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,WS(e,r)}}function FT(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Rm(e,t,r,n){var i=e.updateQueue;Va=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,o===null?a=c:o.next=c,o=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(a!==null){var d=i.baseState;o=0,u=c=l=null,s=a;do{var h=s.lane,p=s.eventTime;if((n&h)===h){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,m=s;switch(h=t,p=r,m.tag){case 1:if(y=m.payload,typeof y=="function"){d=y.call(p,d,h);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=m.payload,h=typeof y=="function"?y.call(p,d,h):y,h==null)break e;d=_t({},d,h);break e;case 2:Va=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=p,l=d):u=u.next=p,o|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;h=s,s=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);$s|=o,e.lanes=o,e.memoizedState=d}}function UT(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(J(191,i));i.call(n)}}}var gh={},ji=Co(gh),ef=Co(gh),tf=Co(gh);function us(e){if(e===gh)throw Error(J(174));return e}function o_(e,t){switch(ot(tf,t),ot(ef,e),ot(ji,gh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ax(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ax(t,e)}pt(ji),ot(ji,t)}function Tc(){pt(ji),pt(ef),pt(tf)}function v$(e){us(tf.current);var t=us(ji.current),r=ax(t,e.type);t!==r&&(ot(ef,e),ot(ji,r))}function s_(e){ef.current===e&&(pt(ji),pt(ef))}var xt=Co(0);function Im(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var kb=[];function l_(){for(var e=0;e<kb.length;e++)kb[e]._workInProgressVersionPrimary=null;kb.length=0}var Zp=_a.ReactCurrentDispatcher,Ab=_a.ReactCurrentBatchConfig,Is=0,St=null,qt=null,Jt=null,$m=!1,wd=!1,rf=0,I8=0;function fr(){throw Error(J(321))}function c_(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ii(e[r],t[r]))return!1;return!0}function u_(e,t,r,n,i,a){if(Is=a,St=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zp.current=e===null||e.memoizedState===null?L8:B8,e=r(n,i),wd){a=0;do{if(wd=!1,rf=0,25<=a)throw Error(J(301));a+=1,Jt=qt=null,t.updateQueue=null,Zp.current=F8,e=r(n,i)}while(wd)}if(Zp.current=Mm,t=qt!==null&&qt.next!==null,Is=0,Jt=qt=St=null,$m=!1,t)throw Error(J(300));return e}function d_(){var e=rf!==0;return rf=0,e}function pi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Jt===null?St.memoizedState=Jt=e:Jt=Jt.next=e,Jt}function En(){if(qt===null){var e=St.alternate;e=e!==null?e.memoizedState:null}else e=qt.next;var t=Jt===null?St.memoizedState:Jt.next;if(t!==null)Jt=t,qt=e;else{if(e===null)throw Error(J(310));qt=e,e={memoizedState:qt.memoizedState,baseState:qt.baseState,baseQueue:qt.baseQueue,queue:qt.queue,next:null},Jt===null?St.memoizedState=Jt=e:Jt=Jt.next=e}return Jt}function nf(e,t){return typeof t=="function"?t(e):t}function Tb(e){var t=En(),r=t.queue;if(r===null)throw Error(J(311));r.lastRenderedReducer=e;var n=qt,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){a=i.next,n=n.baseState;var s=o=null,l=null,c=a;do{var u=c.lane;if((Is&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=d,o=n):l=l.next=d,St.lanes|=u,$s|=u}c=c.next}while(c!==null&&c!==a);l===null?o=n:l.next=s,ii(n,t.memoizedState)||(Br=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do a=i.lane,St.lanes|=a,$s|=a,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Eb(e){var t=En(),r=t.queue;if(r===null)throw Error(J(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);ii(a,t.memoizedState)||(Br=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function b$(){}function x$(e,t){var r=St,n=En(),i=t(),a=!ii(n.memoizedState,i);if(a&&(n.memoizedState=i,Br=!0),n=n.queue,f_(_$.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||Jt!==null&&Jt.memoizedState.tag&1){if(r.flags|=2048,af(9,S$.bind(null,r,n,i,t),void 0,null),er===null)throw Error(J(349));Is&30||w$(r,t,i)}return i}function w$(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=St.updateQueue,t===null?(t={lastEffect:null,stores:null},St.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function S$(e,t,r,n){t.value=r,t.getSnapshot=n,k$(t)&&A$(e)}function _$(e,t,r){return r(function(){k$(t)&&A$(e)})}function k$(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ii(e,r)}catch{return!0}}function A$(e){var t=pa(e,1);t!==null&&ti(t,e,1,-1)}function VT(e){var t=pi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:nf,lastRenderedState:e},t.queue=e,e=e.dispatch=D8.bind(null,St,e),[t.memoizedState,e]}function af(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=St.updateQueue,t===null?(t={lastEffect:null,stores:null},St.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function T$(){return En().memoizedState}function Jp(e,t,r,n){var i=pi();St.flags|=e,i.memoizedState=af(1|t,r,void 0,n===void 0?null:n)}function Tg(e,t,r,n){var i=En();n=n===void 0?null:n;var a=void 0;if(qt!==null){var o=qt.memoizedState;if(a=o.destroy,n!==null&&c_(n,o.deps)){i.memoizedState=af(t,r,a,n);return}}St.flags|=e,i.memoizedState=af(1|t,r,a,n)}function zT(e,t){return Jp(8390656,8,e,t)}function f_(e,t){return Tg(2048,8,e,t)}function E$(e,t){return Tg(4,2,e,t)}function j$(e,t){return Tg(4,4,e,t)}function O$(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function P$(e,t,r){return r=r!=null?r.concat([e]):null,Tg(4,4,O$.bind(null,t,e),r)}function h_(){}function C$(e,t){var r=En();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&c_(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function N$(e,t){var r=En();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&c_(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function R$(e,t,r){return Is&21?(ii(r,t)||(r=LI(),St.lanes|=r,$s|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Br=!0),e.memoizedState=r)}function $8(e,t){var r=Xe;Xe=r!==0&&4>r?r:4,e(!0);var n=Ab.transition;Ab.transition={};try{e(!1),t()}finally{Xe=r,Ab.transition=n}}function I$(){return En().memoizedState}function M8(e,t,r){var n=mo(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},$$(e))M$(t,r);else if(r=y$(e,t,r,n),r!==null){var i=Cr();ti(r,e,n,i),D$(r,t,n)}}function D8(e,t,r){var n=mo(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if($$(e))M$(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,ii(s,o)){var l=t.interleaved;l===null?(i.next=i,i_(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=y$(e,t,i,n),r!==null&&(i=Cr(),ti(r,e,n,i),D$(r,t,n))}}function $$(e){var t=e.alternate;return e===St||t!==null&&t===St}function M$(e,t){wd=$m=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function D$(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,WS(e,r)}}var Mm={readContext:Tn,useCallback:fr,useContext:fr,useEffect:fr,useImperativeHandle:fr,useInsertionEffect:fr,useLayoutEffect:fr,useMemo:fr,useReducer:fr,useRef:fr,useState:fr,useDebugValue:fr,useDeferredValue:fr,useTransition:fr,useMutableSource:fr,useSyncExternalStore:fr,useId:fr,unstable_isNewReconciler:!1},L8={readContext:Tn,useCallback:function(e,t){return pi().memoizedState=[e,t===void 0?null:t],e},useContext:Tn,useEffect:zT,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Jp(4194308,4,O$.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Jp(4194308,4,e,t)},useInsertionEffect:function(e,t){return Jp(4,2,e,t)},useMemo:function(e,t){var r=pi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=pi();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=M8.bind(null,St,e),[n.memoizedState,e]},useRef:function(e){var t=pi();return e={current:e},t.memoizedState=e},useState:VT,useDebugValue:h_,useDeferredValue:function(e){return pi().memoizedState=e},useTransition:function(){var e=VT(!1),t=e[0];return e=$8.bind(null,e[1]),pi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=St,i=pi();if(gt){if(r===void 0)throw Error(J(407));r=r()}else{if(r=t(),er===null)throw Error(J(349));Is&30||w$(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,zT(_$.bind(null,n,a,e),[e]),n.flags|=2048,af(9,S$.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=pi(),t=er.identifierPrefix;if(gt){var r=aa,n=ia;r=(n&~(1<<32-ei(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=rf++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=I8++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},B8={readContext:Tn,useCallback:C$,useContext:Tn,useEffect:f_,useImperativeHandle:P$,useInsertionEffect:E$,useLayoutEffect:j$,useMemo:N$,useReducer:Tb,useRef:T$,useState:function(){return Tb(nf)},useDebugValue:h_,useDeferredValue:function(e){var t=En();return R$(t,qt.memoizedState,e)},useTransition:function(){var e=Tb(nf)[0],t=En().memoizedState;return[e,t]},useMutableSource:b$,useSyncExternalStore:x$,useId:I$,unstable_isNewReconciler:!1},F8={readContext:Tn,useCallback:C$,useContext:Tn,useEffect:f_,useImperativeHandle:P$,useInsertionEffect:E$,useLayoutEffect:j$,useMemo:N$,useReducer:Eb,useRef:T$,useState:function(){return Eb(nf)},useDebugValue:h_,useDeferredValue:function(e){var t=En();return qt===null?t.memoizedState=e:R$(t,qt.memoizedState,e)},useTransition:function(){var e=Eb(nf)[0],t=En().memoizedState;return[e,t]},useMutableSource:b$,useSyncExternalStore:x$,useId:I$,unstable_isNewReconciler:!1};function Vn(e,t){if(e&&e.defaultProps){t=_t({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Tx(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:_t({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Eg={isMounted:function(e){return(e=e._reactInternals)?Xs(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Cr(),i=mo(e),a=ca(n,i);a.payload=t,r!=null&&(a.callback=r),t=ho(e,a,i),t!==null&&(ti(t,e,i,n),Xp(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Cr(),i=mo(e),a=ca(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=ho(e,a,i),t!==null&&(ti(t,e,i,n),Xp(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Cr(),n=mo(e),i=ca(r,n);i.tag=2,t!=null&&(i.callback=t),t=ho(e,i,n),t!==null&&(ti(t,e,n,r),Xp(t,e,n))}};function WT(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!Xd(r,n)||!Xd(i,a):!0}function L$(e,t,r){var n=!1,i=_o,a=t.contextType;return typeof a=="object"&&a!==null?a=Tn(a):(i=Vr(t)?Ns:br.current,n=t.contextTypes,a=(n=n!=null)?_c(e,i):_o),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Eg,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function HT(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Eg.enqueueReplaceState(t,t.state,null)}function Ex(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},a_(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Tn(a):(a=Vr(t)?Ns:br.current,i.context=_c(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Tx(e,t,a,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Eg.enqueueReplaceState(i,i.state,null),Rm(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Ec(e,t){try{var r="",n=t;do r+=p6(n),n=n.return;while(n);var i=r}catch(a){i=` 39Error generating stack: `+a.message+` 40`+a.stack}return{value:e,source:t,stack:i,digest:null}}function jb(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function jx(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var U8=typeof WeakMap=="function"?WeakMap:Map;function B$(e,t,r){r=ca(-1,r),r.tag=3,r.payload={element:null};var n=t.value;
vendor: 7,433 bytes, line 40
40return r.callback=function(){Lm||(Lm=!0,Lx=n),jx(e,t)},r}function F$(e,t,r){r=ca(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){jx(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){jx(e,t),typeof n!="function"&&(po===null?po=new Set([this]):po.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function qT(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new U8;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=tz.bind(null,e,t,r),t.then(e,e))}function KT(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function YT(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=ca(-1,1),t.tag=2,ho(r,t,1))),r.lanes|=1),e)}var V8=_a.ReactCurrentOwner,Br=!1;function Sr(e,t,r,n){t.child=e===null?m$(t,null,r,n):Ac(t,e.child,r,n)}function GT(e,t,r,n,i){r=r.render;var a=t.ref;return nc(t,i),n=u_(e,t,r,n,a,i),r=d_(),e!==null&&!Br?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ma(e,t,i)):(gt&&r&&JS(t),t.flags|=1,Sr(e,t,n,i),t.child)}function XT(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!w_(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,U$(e,t,a,n,i)):(e=rm(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(r=r.compare,r=r!==null?r:Xd,r(o,n)&&e.ref===t.ref)return ma(e,t,i)}return t.flags|=1,e=yo(a,n),e.ref=t.ref,e.return=t,t.child=e}function U$(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(Xd(a,n)&&e.ref===t.ref)if(Br=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(Br=!0);else return t.lanes=e.lanes,ma(e,t,i)}return Ox(e,t,r,n,i)}function V$(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ot(Fl,Xr),Xr|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ot(Fl,Xr),Xr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,ot(Fl,Xr),Xr|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,ot(Fl,Xr),Xr|=n;return Sr(e,t,i,r),t.child}function z$(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ox(e,t,r,n,i){var a=Vr(r)?Ns:br.current;return a=_c(t,a),nc(t,i),r=u_(e,t,r,n,a,i),n=d_(),e!==null&&!Br?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ma(e,t,i)):(gt&&n&&JS(t),t.flags|=1,Sr(e,t,r,i),t.child)}function ZT(e,t,r,n,i){if(Vr(r)){var a=!0;jm(t)}else a=!1;if(nc(t,i),t.stateNode===null)Qp(e,t),L$(t,r,n),Ex(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,c=r.contextType;typeof c=="object"&&c!==null?c=Tn(c):(c=Vr(r)?Ns:br.current,c=_c(t,c));var u=r.getDerivedStateFromProps,d=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==n||l!==c)&&HT(t,o,n,c),Va=!1;var h=t.memoizedState;o.state=h,Rm(t,n,o,i),l=t.memoizedState,s!==n||h!==l||Ur.current||Va?(typeof u=="function"&&(Tx(t,r,u,n),l=t.memoizedState),(s=Va||WT(t,r,s,n,h,l,c))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=c,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,g$(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Vn(t.type,s),o.props=c,d=t.pendingProps,h=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=Tn(l):(l=Vr(r)?Ns:br.current,l=_c(t,l));var p=r.getDerivedStateFromProps;(u=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==d||h!==l)&&HT(t,o,n,l),Va=!1,h=t.memoizedState,o.state=h,Rm(t,n,o,i);var y=t.memoizedState;s!==d||h!==y||Ur.current||Va?(typeof p=="function"&&(Tx(t,r,p,n),y=t.memoizedState),(c=Va||WT(t,r,c,n,h,y,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,y,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,y,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=y),o.props=n,o.state=y,o.context=l,n=c):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return Px(e,t,r,n,a,i)}function Px(e,t,r,n,i,a){z$(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&MT(t,r,!1),ma(e,t,a);n=t.stateNode,V8.current=t;var s=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=Ac(t,e.child,null,a),t.child=Ac(t,null,s,a)):Sr(e,t,s,a),t.memoizedState=n.state,i&&MT(t,r,!0),t.child}function W$(e){var t=e.stateNode;t.pendingContext?$T(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$T(e,t.context,!1),o_(e,t.containerInfo)}function JT(e,t,r,n,i){return kc(),e_(i),t.flags|=256,Sr(e,t,r,n),t.child}var Cx={dehydrated:null,treeContext:null,retryLane:0};function Nx(e){return{baseLanes:e,cachePool:null,transitions:null}}function H$(e,t,r){var n=t.pendingProps,i=xt.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ot(xt,i&1),e===null)return kx(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,a?(n=t.mode,a=t.child,o={mode:"hidden",children:o},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Pg(o,n,0,null),e=Es(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Nx(r),t.memoizedState=Cx,e):p_(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return z8(e,t,o,n,s,i,r);if(a){a=n.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=yo(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=yo(s,a):(a=Es(a,o,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,o=e.child.memoizedState,o=o===null?Nx(r):{base
vendor: 7,075 bytes, line 40
40Lanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=Cx,n}return a=e.child,e=a.sibling,n=yo(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function p_(e,t){return t=Pg({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ap(e,t,r,n){return n!==null&&e_(n),Ac(t,e.child,null,r),e=p_(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function z8(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=jb(Error(J(422))),ap(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=Pg({mode:"visible",children:n.children},i,0,null),a=Es(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&Ac(t,e.child,null,o),t.child.memoizedState=Nx(o),t.memoizedState=Cx,a);if(!(t.mode&1))return ap(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(J(419)),n=jb(a,n,void 0),ap(e,t,o,n)}if(s=(o&e.childLanes)!==0,Br||s){if(n=er,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,pa(e,i),ti(n,e,i,-1))}return x_(),n=jb(Error(J(421))),ap(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=rz.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,rn=fo(i.nextSibling),nn=t,gt=!0,Xn=null,e!==null&&(gn[vn++]=ia,gn[vn++]=aa,gn[vn++]=Rs,ia=e.id,aa=e.overflow,Rs=t),t=p_(t,n.children),t.flags|=4096,t)}function QT(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ax(e.return,t,r)}function Ob(e,t,r,n,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function q$(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(Sr(e,t,n.children,r),n=xt.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&QT(e,r,t);else if(e.tag===19)QT(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ot(xt,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Im(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Ob(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Im(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Ob(t,!0,r,null,a);break;case"together":Ob(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qp(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ma(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),$s|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(J(153));if(t.child!==null){for(e=t.child,r=yo(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=yo(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function W8(e,t,r){switch(t.tag){case 3:W$(t),kc();break;case 5:v$(t);break;case 1:Vr(t.type)&&jm(t);break;case 4:o_(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ot(Cm,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ot(xt,xt.current&1),t.flags|=128,null):r&t.child.childLanes?H$(e,t,r):(ot(xt,xt.current&1),e=ma(e,t,r),e!==null?e.sibling:null);ot(xt,xt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return q$(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ot(xt,xt.current),n)break;return null;case 22:case 23:return t.lanes=0,V$(e,t,r)}return ma(e,t,r)}var K$,Rx,Y$,G$;K$=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Rx=function(){};Y$=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,us(ji.current);var a=null;switch(r){case"input":i=tx(e,i),n=tx(e,n),a=[];break;case"select":i=_t({},i,{value:void 0}),n=_t({},n,{value:void 0}),a=[];break;case"textarea":i=ix(e,i),n=ix(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Tm)}ox(r,n);var o;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(zd.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in n){var l=n[c];if(s=i!=null?i[c]:void 0,n.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(a||(a=[]),a.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(zd.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ut("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}r&&(a=a||[]).push("style",r);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};G$=function(e,t,r,n){r!==n&&(t.flags|=4)};function Uu(e,t){if(!gt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function hr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function H8(e,t,r){var n=t.pendingProps;switch(QS(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hr(t),null;case 1:return Vr(t.type)&&Em(),hr(t),null;
vendor: 32,900 bytes, line 40
40case 3:return n=t.stateNode,Tc(),pt(Ur),pt(br),l_(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(np(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Xn!==null&&(Ux(Xn),Xn=null))),Rx(e,t),hr(t),null;case 5:s_(t);var i=us(tf.current);if(r=t.type,e!==null&&t.stateNode!=null)Y$(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(J(166));return hr(t),null}if(e=us(ji.current),np(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[wi]=t,n[Qd]=a,e=(t.mode&1)!==0,r){case"dialog":ut("cancel",n),ut("close",n);break;case"iframe":case"object":case"embed":ut("load",n);break;case"video":case"audio":for(i=0;i<cd.length;i++)ut(cd[i],n);break;case"source":ut("error",n);break;case"img":case"image":case"link":ut("error",n),ut("load",n);break;case"details":ut("toggle",n);break;case"input":lT(n,a),ut("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},ut("invalid",n);break;case"textarea":uT(n,a),ut("invalid",n)}ox(r,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?n.textContent!==s&&(a.suppressHydrationWarning!==!0&&rp(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&rp(n.textContent,s,e),i=["children",""+s]):zd.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&ut("scroll",n)}switch(r){case"input":Yh(n),cT(n,a,!0);break;case"textarea":Yh(n),dT(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=Tm)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=_I(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[wi]=t,e[Qd]=n,K$(e,t,!1,!1),t.stateNode=e;e:{switch(o=sx(r,n),r){case"dialog":ut("cancel",e),ut("close",e),i=n;break;case"iframe":case"object":case"embed":ut("load",e),i=n;break;case"video":case"audio":for(i=0;i<cd.length;i++)ut(cd[i],e);i=n;break;case"source":ut("error",e),i=n;break;case"img":case"image":case"link":ut("error",e),ut("load",e),i=n;break;case"details":ut("toggle",e),i=n;break;case"input":lT(e,n),i=tx(e,n),ut("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=_t({},n,{value:void 0}),ut("invalid",e);break;case"textarea":uT(e,n),i=ix(e,n),ut("invalid",e);break;default:i=n}ox(r,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?TI(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&kI(e,l)):a==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Wd(e,l):typeof l=="number"&&Wd(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(zd.hasOwnProperty(a)?l!=null&&a==="onScroll"&&ut("scroll",e):l!=null&&LS(e,a,l,o))}switch(r){case"input":Yh(e),cT(e,n,!1);break;case"textarea":Yh(e),dT(e);break;case"option":n.value!=null&&e.setAttribute("value",""+So(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?Ql(e,!!n.multiple,a,!1):n.defaultValue!=null&&Ql(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Tm)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return hr(t),null;case 6:if(e&&t.stateNode!=null)G$(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(J(166));if(r=us(tf.current),us(ji.current),np(t)){if(n=t.stateNode,r=t.memoizedProps,n[wi]=t,(a=n.nodeValue!==r)&&(e=nn,e!==null))switch(e.tag){case 3:rp(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&rp(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[wi]=t,t.stateNode=n}return hr(t),null;case 13:if(pt(xt),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(gt&&rn!==null&&t.mode&1&&!(t.flags&128))h$(),kc(),t.flags|=98560,a=!1;else if(a=np(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(J(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(J(317));a[wi]=t}else kc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;hr(t),a=!1}else Xn!==null&&(Ux(Xn),Xn=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||xt.current&1?Yt===0&&(Yt=3):x_())),t.updateQueue!==null&&(t.flags|=4),hr(t),null);case 4:return Tc(),Rx(e,t),e===null&&Zd(t.stateNode.containerInfo),hr(t),null;case 10:return n_(t.type._context),hr(t),null;case 17:return Vr(t.type)&&Em(),hr(t),null;case 19:if(pt(xt),a=t.memoizedState,a===null)return hr(t),null;if(n=(t.flags&128)!==0,o=a.rendering,o===null)if(n)Uu(a,!1);else{if(Yt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Im(e),o!==null){for(t.flags|=128,Uu(a,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ot(xt,xt.current&1|2),t.child}e=e.sibling}a.tail!==null&&Nt()>jc&&(t.flags|=128,n=!0,Uu(a,!1),t.lanes=4194304)}else{if(!n)if(e=Im(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Uu(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!gt)return hr(t),null}else 2*Nt()-a.renderingStartTime>jc&&r!==1073741824&&(t.flags|=128,n=!0,Uu(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Nt(),t.sibling=null,r=xt.current,ot(xt,n?r&1|2:r&1),t):(hr(t),null);case 22:case 23:return b_(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Xr&1073741824&&(hr(t),t.subtreeFlags&6&&(t.flags|=8192)):hr(t),null;case 24:return null;case 25:return null}throw Error(J(156,t.tag))}function q8(e,t){switch(QS(t),t.tag){case 1:return Vr(t.type)&&Em(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tc(),pt(Ur),pt(br),l_(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return s_(t),null;case 13:if(pt(xt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(J(340));kc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pt(xt),null;case 4:return Tc(),null;case 10:return n_(t.type._context),null;case 22:case 23:return b_(),null;case 24:return null;default:return null}}var op=!1,yr=!1,K8=typeof WeakSet=="function"?WeakSet:Set,de=null;function Bl(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Et(e,t,n)}else r.current=null}function Ix(e,t,r){try{r()}catch(n){Et(e,t,n)}}var eE=!1;function Y8(e,t){if(gx=_m,e=e$(),ZS(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,c=0,u=0,d=e,h=null;t:for(;;){for(var p;d!==r||i!==0&&d.nodeType!==3||(s=o+i),d!==a||n!==0&&d.nodeType!==3||(l=o+n),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===e)break t;if(h===r&&++c===i&&(s=o),h===a&&++u===n&&(l=o),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(vx={focusedElem:e,selectionRange:r},_m=!1,de=t;de!==null;)if(t=de,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,de=e;else for(;de!==null;){t=de;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var m=y.memoizedProps,g=y.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:Vn(t.type,m),g);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(J(163))}}catch(S){Et(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,de=e;break}de=t.return}return y=eE,eE=!1,y}function Sd(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Ix(t,r,a)}i=i.next}while(i!==n)}}function jg(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function $x(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function X$(e){var t=e.alternate;t!==null&&(e.alternate=null,X$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[wi],delete t[Qd],delete t[wx],delete t[P8],delete t[C8])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Z$(e){return e.tag===5||e.tag===3||e.tag===4}function tE(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Z$(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mx(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Tm));else if(n!==4&&(e=e.child,e!==null))for(Mx(e,t,r),e=e.sibling;e!==null;)Mx(e,t,r),e=e.sibling}function Dx(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Dx(e,t,r),e=e.sibling;e!==null;)Dx(e,t,r),e=e.sibling}var ar=null,Kn=!1;function Na(e,t,r){for(r=r.child;r!==null;)J$(e,t,r),r=r.sibling}function J$(e,t,r){if(Ei&&typeof Ei.onCommitFiberUnmount=="function")try{Ei.onCommitFiberUnmount(xg,r)}catch{}switch(r.tag){case 5:yr||Bl(r,t);case 6:var n=ar,i=Kn;ar=null,Na(e,t,r),ar=n,Kn=i,ar!==null&&(Kn?(e=ar,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):ar.removeChild(r.stateNode));break;case 18:ar!==null&&(Kn?(e=ar,r=r.stateNode,e.nodeType===8?Sb(e.parentNode,r):e.nodeType===1&&Sb(e,r),Yd(e)):Sb(ar,r.stateNode));break;case 4:n=ar,i=Kn,ar=r.stateNode.containerInfo,Kn=!0,Na(e,t,r),ar=n,Kn=i;break;case 0:case 11:case 14:case 15:if(!yr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Ix(r,t,o),i=i.next}while(i!==n)}Na(e,t,r);break;case 1:if(!yr&&(Bl(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Et(r,t,s)}Na(e,t,r);break;case 21:Na(e,t,r);break;case 22:r.mode&1?(yr=(n=yr)||r.memoizedState!==null,Na(e,t,r),yr=n):Na(e,t,r);break;default:Na(e,t,r)}}function rE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new K8),t.forEach(function(n){var i=nz.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function $n(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:ar=s.stateNode,Kn=!1;break e;case 3:ar=s.stateNode.containerInfo,Kn=!0;break e;case 4:ar=s.stateNode.containerInfo,Kn=!0;break e}s=s.return}if(ar===null)throw Error(J(160));J$(a,o,i),ar=null,Kn=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){Et(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Q$(t,e),t=t.sibling}function Q$(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if($n(t,e),fi(e),n&4){try{Sd(3,e,e.return),jg(3,e)}catch(m){Et(e,e.return,m)}try{Sd(5,e,e.return)}catch(m){Et(e,e.return,m)}}break;case 1:$n(t,e),fi(e),n&512&&r!==null&&Bl(r,r.return);break;case 5:if($n(t,e),fi(e),n&512&&r!==null&&Bl(r,r.return),e.flags&32){var i=e.stateNode;try{Wd(i,"")}catch(m){Et(e,e.return,m)}}if(n&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=r!==null?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&wI(i,a),sx(s,o);var c=sx(s,a);for(o=0;o<l.length;o+=2){var u=l[o],d=l[o+1];u==="style"?TI(i,d):u==="dangerouslySetInnerHTML"?kI(i,d):u==="children"?Wd(i,d):LS(i,u,d,c)}switch(s){case"input":rx(i,a);break;case"textarea":SI(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?Ql(i,!!a.multiple,p,!1):h!==!!a.multiple&&(a.defaultValue!=null?Ql(i,!!a.multiple,a.defaultValue,!0):Ql(i,!!a.multiple,a.multiple?[]:"",!1))}i[Qd]=a}catch(m){Et(e,e.return,m)}}break;case 6:if($n(t,e),fi(e),n&4){if(e.stateNode===null)throw Error(J(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(m){Et(e,e.return,m)}}break;case 3:if($n(t,e),fi(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Yd(t.containerInfo)}catch(m){Et(e,e.return,m)}break;case 4:$n(t,e),fi(e);break;case 13:$n(t,e),fi(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(g_=Nt())),n&4&&rE(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(yr=(c=yr)||u,$n(t,e),yr=c):$n(t,e),fi(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(de=e,u=e.child;u!==null;){for(d=de=u;de!==null;){switch(h=de,p=h.child,h.tag){case 0:case 11:case 14:case 15:Sd(4,h,h.return);break;case 1:Bl(h,h.return);var y=h.stateNode;if(typeof y.componentWillUnmount=="function"){n=h,r=h.return;try{t=n,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(m){Et(n,r,m)}}break;case 5:Bl(h,h.return);break;case 22:if(h.memoizedState!==null){iE(d);continue}}p!==null?(p.return=h,de=p):iE(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{i=d.stateNode,c?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=AI("display",o))}catch(m){Et(e,e.return,m)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(m){Et(e,e.return,m)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:$n(t,e),fi(e),n&4&&rE(e);break;case 21:break;default:$n(t,e),fi(e)}}function fi(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Z$(r)){var n=r;break e}r=r.return}throw Error(J(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Wd(i,""),n.flags&=-33);var a=tE(e);Dx(e,a,i);break;case 3:case 4:var o=n.stateNode.containerInfo,s=tE(e);Mx(e,s,o);break;default:throw Error(J(161))}}catch(l){Et(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function G8(e,t,r){de=e,eM(e)}function eM(e,t,r){for(var n=(e.mode&1)!==0;de!==null;){var i=de,a=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||op;if(!o){var s=i.alternate,l=s!==null&&s.memoizedState!==null||yr;s=op;var c=yr;if(op=o,(yr=l)&&!c)for(de=i;de!==null;)o=de,l=o.child,o.tag===22&&o.memoizedState!==null?aE(i):l!==null?(l.return=o,de=l):aE(i);for(;a!==null;)de=a,eM(a),a=a.sibling;de=i,op=s,yr=c}nE(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,de=a):nE(e)}}function nE(e){for(;de!==null;){var t=de;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:yr||jg(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!yr)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Vn(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&UT(t,a,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}UT(t,o,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Yd(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(J(163))}yr||t.flags&512&&$x(t)}catch(h){Et(t,t.return,h)}}if(t===e){de=null;break}if(r=t.sibling,r!==null){r.return=t.return,de=r;break}de=t.return}}function iE(e){for(;de!==null;){var t=de;if(t===e){de=null;break}var r=t.sibling;if(r!==null){r.return=t.return,de=r;break}de=t.return}}function aE(e){for(;de!==null;){var t=de;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{jg(4,t)}catch(l){Et(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){Et(t,i,l)}}var a=t.return;try{$x(t)}catch(l){Et(t,a,l)}break;case 5:var o=t.return;try{$x(t)}catch(l){Et(t,o,l)}}}catch(l){Et(t,t.return,l)}if(t===e){de=null;break}var s=t.sibling;if(s!==null){s.return=t.return,de=s;break}de=t.return}}var X8=Math.ceil,Dm=_a.ReactCurrentDispatcher,m_=_a.ReactCurrentOwner,_n=_a.ReactCurrentBatchConfig,Be=0,er=null,Bt=null,sr=0,Xr=0,Fl=Co(0),Yt=0,of=null,$s=0,Og=0,y_=0,_d=null,Lr=null,g_=0,jc=1/0,Zi=null,Lm=!1,Lx=null,po=null,sp=!1,ro=null,Bm=0,kd=0,Bx=null,em=-1,tm=0;function Cr(){return Be&6?Nt():em!==-1?em:em=Nt()}function mo(e){return e.mode&1?Be&2&&sr!==0?sr&-sr:R8.transition!==null?(tm===0&&(tm=LI()),tm):(e=Xe,e!==0||(e=window.event,e=e===void 0?16:HI(e.type)),e):1}function ti(e,t,r,n){if(50<kd)throw kd=0,Bx=null,Error(J(185));ph(e,r,n),(!(Be&2)||e!==er)&&(e===er&&(!(Be&2)&&(Og|=r),Yt===4&&qa(e,sr)),zr(e,n),r===1&&Be===0&&!(t.mode&1)&&(jc=Nt()+500,Ag&&No()))}function zr(e,t){var r=e.callbackNode;R6(e,t);var n=Sm(e,e===er?sr:0);if(n===0)r!==null&&pT(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&pT(r),t===1)e.tag===0?N8(oE.bind(null,e)):u$(oE.bind(null,e)),j8(function(){!(Be&6)&&No()}),r=null;else{switch(BI(n)){case 1:r=zS;break;case 4:r=MI;break;case 16:r=wm;break;case 536870912:r=DI;break;default:r=wm}r=lM(r,tM.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function tM(e,t){if(em=-1,tm=0,Be&6)throw Error(J(327));var r=e.callbackNode;if(ic()&&e.callbackNode!==r)return null;var n=Sm(e,e===er?sr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Fm(e,n);else{t=n;var i=Be;Be|=2;var a=nM();(er!==e||sr!==t)&&(Zi=null,jc=Nt()+500,Ts(e,t));do try{Q8();break}catch(s){rM(e,s)}while(!0);r_(),Dm.current=a,Be=i,Bt!==null?t=0:(er=null,sr=0,t=Yt)}if(t!==0){if(t===2&&(i=fx(e),i!==0&&(n=i,t=Fx(e,i))),t===1)throw r=of,Ts(e,0),qa(e,n),zr(e,Nt()),r;if(t===6)qa(e,n);else{if(i=e.current.alternate,!(n&30)&&!Z8(i)&&(t=Fm(e,n),t===2&&(a=fx(e),a!==0&&(n=a,t=Fx(e,a))),t===1))throw r=of,Ts(e,0),qa(e,n),zr(e,Nt()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(J(345));case 2:es(e,Lr,Zi);break;case 3:if(qa(e,n),(n&130023424)===n&&(t=g_+500-Nt(),10<t)){if(Sm(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Cr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=xx(es.bind(null,e,Lr,Zi),t);break}es(e,Lr,Zi);break;case 4:if(qa(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-ei(n);a=1<<o,o=t[o],o>i&&(i=o),n&=~a}if(n=i,n=Nt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*X8(n/1960))-n,10<n){e.timeoutHandle=xx(es.bind(null,e,Lr,Zi),n);break}es(e,Lr,Zi);break;case 5:es(e,Lr,Zi);break;default:throw Error(J(329))}}}return zr(e,Nt()),e.callbackNode===r?tM.bind(null,e):null}function Fx(e,t){var r=_d;return e.current.memoizedState.isDehydrated&&(Ts(e,t).flags|=256),e=Fm(e,t),e!==2&&(t=Lr,Lr=r,t!==null&&Ux(t)),e}function Ux(e){Lr===null?Lr=e:Lr.push.apply(Lr,e)}function Z8(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!ii(a(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function qa(e,t){for(t&=~y_,t&=~Og,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-ei(t),n=1<<r;e[r]=-1,t&=~n}}function oE(e){if(Be&6)throw Error(J(327));ic();var t=Sm(e,0);if(!(t&1))return zr(e,Nt()),null;var r=Fm(e,t);if(e.tag!==0&&r===2){var n=fx(e);n!==0&&(t=n,r=Fx(e,n))}if(r===1)throw r=of,Ts(e,0),qa(e,t),zr(e,Nt()),r;if(r===6)throw Error(J(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,es(e,Lr,Zi),zr(e,Nt()),null}function v_(e,t){var r=Be;Be|=1;try{return e(t)}finally{Be=r,Be===0&&(jc=Nt()+500,Ag&&No())}}function Ms(e){ro!==null&&ro.tag===0&&!(Be&6)&&ic();var t=Be;Be|=1;var r=_n.transition,n=Xe;try{if(_n.transition=null,Xe=1,e)return e()}finally{Xe=n,_n.transition=r,Be=t,!(Be&6)&&No()}}function b_(){Xr=Fl.current,pt(Fl)}function Ts(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,E8(r)),Bt!==null)for(r=Bt.return;r!==null;){var n=r;switch(QS(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Em();break;case 3:Tc(),pt(Ur),pt(br),l_();break;case 5:s_(n);break;case 4:Tc();break;case 13:pt(xt);break;case 19:pt(xt);break;case 10:n_(n.type._context);break;case 22:case 23:b_()}r=r.return}if(er=e,Bt=e=yo(e.current,null),sr=Xr=t,Yt=0,of=null,y_=Og=$s=0,Lr=_d=null,cs!==null){for(t=0;t<cs.length;t++)if(r=cs[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,a=r.pending;if(a!==null){var o=a.next;a.next=i,n.next=o}r.pending=n}cs=null}return e}function rM(e,t){do{var r=Bt;try{if(r_(),Zp.current=Mm,$m){for(var n=St.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}$m=!1}if(Is=0,Jt=qt=St=null,wd=!1,rf=0,m_.current=null,r===null||r.return===null){Yt=1,of=t,Bt=null;break}e:{var a=e,o=r.return,s=r,l=t;if(t=sr,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=s,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=KT(o);if(p!==null){p.flags&=-257,YT(p,o,s,a,t),p.mode&1&&qT(a,c,t),t=p,l=c;var y=t.updateQueue;if(y===null){var m=new Set;m.add(l),t.updateQueue=m}else y.add(l);break e}else{if(!(t&1)){qT(a,c,t),x_();break e}l=Error(J(426))}}else if(gt&&s.mode&1){var g=KT(o);if(g!==null){!(g.flags&65536)&&(g.flags|=256),YT(g,o,s,a,t),e_(Ec(l,s));break e}}a=l=Ec(l,s),Yt!==4&&(Yt=2),_d===null?_d=[a]:_d.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var b=B$(a,l,t);FT(a,b);break e;case 1:s=l;var v=a.type,x=a.stateNode;if(!(a.flags&128)&&(typeof v.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(po===null||!po.has(x)))){a.flags|=65536,t&=-t,a.lanes|=t;var S=F$(a,s,t);FT(a,S);break e}}a=a.return}while(a!==null)}aM(r)}catch(w){t=w,Bt===r&&r!==null&&(Bt=r=r.return);continue}break}while(!0)}function nM(){var e=Dm.current;return Dm.current=Mm,e===null?Mm:e}function x_(){(Yt===0||Yt===3||Yt===2)&&(Yt=4),er===null||!($s&268435455)&&!(Og&268435455)||qa(er,sr)}function Fm(e,t){var r=Be;Be|=2;var n=nM();(er!==e||sr!==t)&&(Zi=null,Ts(e,t));do try{J8();break}catch(i){rM(e,i)}while(!0);if(r_(),Be=r,Dm.current=n,Bt!==null)throw Error(J(261));return er=null,sr=0,Yt}function J8(){for(;Bt!==null;)iM(Bt)}function Q8(){for(;Bt!==null&&!k6();)iM(Bt)}function iM(e){var t=sM(e.alternate,e,Xr);e.memoizedProps=e.pendingProps,t===null?aM(e):Bt=t,m_.current=null}function aM(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=q8(r,t),r!==null){r.flags&=32767,Bt=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Yt=6,Bt=null;return}}else if(r=H8(r,t,Xr),r!==null){Bt=r;return}if(t=t.sibling,t!==null){Bt=t;return}Bt=t=e}while(t!==null);Yt===0&&(Yt=5)}function es(e,t,r){var n=Xe,i=_n.transition;try{_n.transition=null,Xe=1,ez(e,t,r,n)}finally{_n.transition=i,Xe=n}return null}function ez(e,t,r,n){do ic();while(ro!==null);if(Be&6)throw Error(J(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(J(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(I6(e,a),e===er&&(Bt=er=null,sr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||sp||(sp=!0,lM(wm,function(){return ic(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=_n.transition,_n.transition=null;var o=Xe;Xe=1;var s=Be;Be|=4,m_.current=null,Y8(e,r),Q$(r,e),x8(vx),_m=!!gx,vx=gx=null,e.current=r,G8(r),A6(),Be=s,Xe=o,_n.transition=a}else e.current=r;if(sp&&(sp=!1,ro=e,Bm=i),a=e.pendingLanes,a===0&&(po=null),j6(r.stateNode),zr(e,Nt()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Lm)throw Lm=!1,e=Lx,Lx=null,e;return Bm&1&&e.tag!==0&&ic(),a=e.pendingLanes,a&1?e===Bx?kd++:(kd=0,Bx=e):kd=0,No(),null}function ic(){if(ro!==null){var e=BI(Bm),t=_n.transition,r=Xe;try{if(_n.transition=null,Xe=16>e?16:e,ro===null)var n=!1;else{if(e=ro,ro=null,Bm=0,Be&6)throw Error(J(331));var i=Be;for(Be|=4,de=e.current;de!==null;){var a=de,o=a.child;if(de.flags&16){var s=a.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(de=c;de!==null;){var u=de;switch(u.tag){case 0:case 11:case 15:Sd(8,u,a)}var d=u.child;if(d!==null)d.return=u,de=d;else for(;de!==null;){u=de;var h=u.sibling,p=u.return;if(X$(u),u===c){de=null;break}if(h!==null){h.return=p,de=h;break}de=p}}}var y=a.alternate;if(y!==null){var m=y.child;if(m!==null){y.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(m!==null)}}de=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,de=o;else e:for(;de!==null;){if(a=de,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Sd(9,a,a.return)}var b=a.sibling;if(b!==null){b.return=a.return,de=b;break e}de=a.return}}var v=e.current;for(de=v;de!==null;){o=de;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,de=x;else e:for(o=v;de!==null;){if(s=de,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:jg(9,s)}}catch(w){Et(s,s.return,w)}if(s===o){de=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,de=S;break e}de=s.return}}if(Be=i,No(),Ei&&typeof Ei.onPostCommitFiberRoot=="function")try{Ei.onPostCommitFiberRoot(xg,e)}catch{}n=!0}return n}finally{Xe=r,_n.transition=t}}return!1}function sE(e,t,r){t=Ec(r,t),t=B$(e,t,1),e=ho(e,t,1),t=Cr(),e!==null&&(ph(e,1,t),zr(e,t))}function Et(e,t,r){if(e.tag===3)sE(e,e,r);else for(;t!==null;){if(t.tag===3){sE(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(po===null||!po.has(n))){e=Ec(r,e),e=F$(t,e,1),t=ho(t,e,1),e=Cr(),t!==null&&(ph(t,1,e),zr(t,e));break}}t=t.return}}function tz(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Cr(),e.pingedLanes|=e.suspendedLanes&r,er===e&&(sr&r)===r&&(Yt===4||Yt===3&&(sr&130023424)===sr&&500>Nt()-g_?Ts(e,0):y_|=r),zr(e,t)}function oM(e,t){t===0&&(e.mode&1?(t=Zh,Zh<<=1,!(Zh&130023424)&&(Zh=4194304)):t=1);var r=Cr();e=pa(e,t),e!==null&&(ph(e,t,r),zr(e,r))}function rz(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),oM(e,r)}function nz(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(J(314))}n!==null&&n.delete(t),oM(e,r)}var sM;sM=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ur.current)Br=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Br=!1,W8(e,t,r);Br=!!(e.flags&131072)}else Br=!1,gt&&t.flags&1048576&&d$(t,Pm,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Qp(e,t),e=t.pendingProps;var i=_c(t,br.current);nc(t,r),i=u_(null,t,n,e,i,r);var a=d_();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Vr(n)?(a=!0,jm(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,a_(t),i.updater=Eg,t.stateNode=i,i._reactInternals=t,Ex(t,n,e,r),t=Px(null,t,n,!0,a,r)):(t.tag=0,gt&&a&&JS(t),Sr(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Qp(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=az(n),e=Vn(n,e),i){case 0:t=Ox(null,t,n,e,r);break e;case 1:t=ZT(null,t,n,e,r);break e;case 11:t=GT(null,t,n,e,r);break e;case 14:t=XT(null,t,n,Vn(n.type,e),r);break e}throw Error(J(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Vn(n,i),Ox(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Vn(n,i),ZT(e,t,n,i,r);case 3:e:{if(W$(t),e===null)throw Error(J(387));n=t.pendingProps,a=t.memoizedState,i=a.element,g$(e,t),Rm(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Ec(Error(J(423)),t),t=JT(e,t,n,r,i);break e}else if(n!==i){i=Ec(Error(J(424)),t),t=JT(e,t,n,r,i);break e}else for(rn=fo(t.stateNode.containerInfo.firstChild),nn=t,gt=!0,Xn=null,r=m$(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(kc(),n===i){t=ma(e,t,r);break e}Sr(e,t,n,r)}t=t.child}return t;case 5:return v$(t),e===null&&kx(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,bx(n,i)?o=null:a!==null&&bx(n,a)&&(t.flags|=32),z$(e,t),Sr(e,t,o,r),t.child;case 6:return e===null&&kx(t),null;case 13:return H$(e,t,r);case 4:return o_(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ac(t,null,n,r):Sr(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Vn(n,i),GT(e,t,n,i,r);case 7:return Sr(e,t,t.pendingProps,r),t.child;case 8:return Sr(e,t,t.pendingProps.children,r),t.child;case 12:return Sr(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,ot(Cm,n._currentValue),n._currentValue=o,a!==null)if(ii(a.value,o)){if(a.children===i.children&&!Ur.current){t=ma(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=ca(-1,r&-r),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),Ax(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(J(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),Ax(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Sr(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,nc(t,r),i=Tn(i),n=n(i),t.flags|=1,Sr(e,t,n,r),t.child;case 14:return n=t.type,i=Vn(n,t.pendingProps),i=Vn(n.type,i),XT(e,t,n,i,r);case 15:return U$(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Vn(n,i),Qp(e,t),t.tag=1,Vr(n)?(e=!0,jm(t)):e=!1,nc(t,r),L$(t,n,i),Ex(t,n,i,r),Px(null,t,n,!0,e,r);case 19:return q$(e,t,r);case 22:return V$(e,t,r)}throw Error(J(156,t.tag))};function lM(e,t){return $I(e,t)}function iz(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 5,125 bytes, line 40
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xn(e,t,r,n){return new iz(e,t,r,n)}function w_(e){return e=e.prototype,!(!e||!e.isReactComponent)}function az(e){if(typeof e=="function")return w_(e)?1:0;if(e!=null){if(e=e.$$typeof,e===FS)return 11;if(e===US)return 14}return 2}function yo(e,t){var r=e.alternate;return r===null?(r=xn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function rm(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")w_(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Pl:return Es(r.children,i,a,t);case BS:o=8,i|=8;break;case Z0:return e=xn(12,r,t,i|2),e.elementType=Z0,e.lanes=a,e;case J0:return e=xn(13,r,t,i),e.elementType=J0,e.lanes=a,e;case Q0:return e=xn(19,r,t,i),e.elementType=Q0,e.lanes=a,e;case vI:return Pg(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case yI:o=10;break e;case gI:o=9;break e;case FS:o=11;break e;case US:o=14;break e;case Ua:o=16,n=null;break e}throw Error(J(130,e==null?e:typeof e,""))}return t=xn(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Es(e,t,r,n){return e=xn(7,e,n,t),e.lanes=r,e}function Pg(e,t,r,n){return e=xn(22,e,n,t),e.elementType=vI,e.lanes=r,e.stateNode={isHidden:!1},e}function Pb(e,t,r){return e=xn(6,e,null,t),e.lanes=r,e}function Cb(e,t,r){return t=xn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oz(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=db(0),this.expirationTimes=db(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=db(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function S_(e,t,r,n,i,a,o,s,l){return e=new oz(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=xn(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},a_(a),e}function sz(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ol,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function cM(e){if(!e)return _o;e=e._reactInternals;e:{if(Xs(e)!==e||e.tag!==1)throw Error(J(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Vr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(J(171))}if(e.tag===1){var r=e.type;if(Vr(r))return c$(e,r,t)}return t}function uM(e,t,r,n,i,a,o,s,l){return e=S_(r,n,!0,e,i,a,o,s,l),e.context=cM(null),r=e.current,n=Cr(),i=mo(r),a=ca(n,i),a.callback=t??null,ho(r,a,i),e.current.lanes=i,ph(e,i,n),zr(e,n),e}function Cg(e,t,r,n){var i=t.current,a=Cr(),o=mo(i);return r=cM(r),t.context===null?t.context=r:t.pendingContext=r,t=ca(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=ho(i,t,o),e!==null&&(ti(e,i,o,a),Xp(e,i,o)),o}function Um(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function lE(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function __(e,t){lE(e,t),(e=e.alternate)&&lE(e,t)}function lz(){return null}var dM=typeof reportError=="function"?reportError:function(e){console.error(e)};function k_(e){this._internalRoot=e}Ng.prototype.render=k_.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(J(409));Cg(e,t,null,null)};Ng.prototype.unmount=k_.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ms(function(){Cg(null,e,null,null)}),t[ha]=null}};function Ng(e){this._internalRoot=e}Ng.prototype.unstable_scheduleHydration=function(e){if(e){var t=VI();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Ha.length&&t!==0&&t<Ha[r].priority;r++);Ha.splice(r,0,e),r===0&&WI(e)}};function A_(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Rg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function cE(){}function cz(e,t,r,n,i){if(i){if(typeof n=="function"){var a=n;
vendor: 5,313 bytes, line 40
40n=function(){var c=Um(o);a.call(c)}}var o=uM(t,n,e,0,null,!1,!1,"",cE);return e._reactRootContainer=o,e[ha]=o.current,Zd(e.nodeType===8?e.parentNode:e),Ms(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var c=Um(l);s.call(c)}}var l=S_(e,0,!1,null,null,!1,!1,"",cE);return e._reactRootContainer=l,e[ha]=l.current,Zd(e.nodeType===8?e.parentNode:e),Ms(function(){Cg(t,l,r,n)}),l}function Ig(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var s=i;i=function(){var l=Um(o);s.call(l)}}Cg(t,o,e,i)}else o=cz(r,t,e,i,n);return Um(o)}FI=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ld(t.pendingLanes);r!==0&&(WS(t,r|1),zr(t,Nt()),!(Be&6)&&(jc=Nt()+500,No()))}break;case 13:Ms(function(){var n=pa(e,1);if(n!==null){var i=Cr();ti(n,e,1,i)}}),__(e,1)}};HS=function(e){if(e.tag===13){var t=pa(e,134217728);if(t!==null){var r=Cr();ti(t,e,134217728,r)}__(e,134217728)}};UI=function(e){if(e.tag===13){var t=mo(e),r=pa(e,t);if(r!==null){var n=Cr();ti(r,e,t,n)}__(e,t)}};VI=function(){return Xe};zI=function(e,t){var r=Xe;try{return Xe=e,t()}finally{Xe=r}};cx=function(e,t,r){switch(t){case"input":if(rx(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=kg(n);if(!i)throw Error(J(90));xI(n),rx(n,i)}}}break;case"textarea":SI(e,r);break;case"select":t=r.value,t!=null&&Ql(e,!!r.multiple,t,!1)}};OI=v_;PI=Ms;var uz={usingClientEntryPoint:!1,Events:[yh,Il,kg,EI,jI,v_]},Vu={findFiberByHostInstance:ls,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},dz={bundleType:Vu.bundleType,version:Vu.version,rendererPackageName:Vu.rendererPackageName,rendererConfig:Vu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_a.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=RI(e),e===null?null:e.stateNode},findFiberByHostInstance:Vu.findFiberByHostInstance||lz,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 lp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lp.isDisabled&&lp.supportsFiber)try{xg=lp.inject(dz),Ei=lp}catch{}}un.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uz;un.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A_(t))throw Error(J(200));return sz(e,t,null,r)};un.createRoot=function(e,t){if(!A_(e))throw Error(J(299));var r=!1,n="",i=dM;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=S_(e,1,!1,null,null,r,!1,n,i),e[ha]=t.current,Zd(e.nodeType===8?e.parentNode:e),new k_(t)};un.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(J(188)):(e=Object.keys(e).join(","),Error(J(268,e)));return e=RI(t),e=e===null?null:e.stateNode,e};un.flushSync=function(e){return Ms(e)};un.hydrate=function(e,t,r){if(!Rg(t))throw Error(J(200));return Ig(null,e,t,!0,r)};un.hydrateRoot=function(e,t,r){if(!A_(e))throw Error(J(405));var n=r!=null&&r.hydratedSources||null,i=!1,a="",o=dM;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=uM(t,null,e,1,r??null,i,!1,a,o),e[ha]=t.current,Zd(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Ng(t)};un.render=function(e,t,r){if(!Rg(t))throw Error(J(200));return Ig(null,e,t,!1,r)};un.unmountComponentAtNode=function(e){if(!Rg(e))throw Error(J(40));return e._reactRootContainer?(Ms(function(){Ig(null,null,e,!1,function(){e._reactRootContainer=null,e[ha]=null})}),!0):!1};un.unstable_batchedUpdates=v_;un.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Rg(r))throw Error(J(200));if(e==null||e._reactInternals===void 0)throw Error(J(38));return Ig(e,t,r,!1,n)};un.version="18.3.1-next-f1338f8080-20240426";function fM(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fM)}catch(e){console.error(e)}}fM(),fI.exports=un;var Zs=fI.exports;const hM=Ye(Zs);var pM,uE=Zs;pM=uE.createRoot,uE.hydrateRoot;const fz=1,hz=1e6;let Nb=0;function pz(){return Nb=(Nb+1)%Number.MAX_SAFE_INTEGER,Nb.toString()}const Rb=new Map,dE=e=>{if(Rb.has(e))return;const t=setTimeout(()=>{Rb.delete(e),Ad({type:"REMOVE_TOAST",toastId:e})},hz);Rb.set(e,t)},mz=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,fz)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;
40return r?dE(r):e.toasts.forEach(n=>{dE(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},nm=[];let im={toasts:[]};function Ad(e){im=mz(im,e),nm.forEach(t=>{t(im)})}function Vx({...e}){const t=pz(),r=i=>Ad({type:"UPDATE_TOAST",toast:{...i,id:t}}),n=()=>Ad({type:"DISMISS_TOAST",toastId:t});return Ad({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||n()}}}),{id:t,dismiss:n,update:r}}function yz(){const[e,t]=k.useState(im);return k.useEffect(()=>(nm.push(t),()=>{const r=nm.indexOf(t);r>-1&&nm.splice(r,1)}),[e]),{...e,toast:Vx,dismiss:r=>Ad({type:"DISMISS_TOAST",toastId:r})}}function Le(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function fE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function mM(...e){return t=>{let r=!1;const n=e.map(i=>{const a=fE(i,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():fE(e[i],null)}}}}function Ot(...e){return k.useCallback(mM(...e),e)}function vh(e,t=[]){let r=[];function n(a,o){const s=k.createContext(o),l=r.length;r=[...r,o];const c=d=>{var b;const{scope:h,children:p,...y}=d,m=((b=h==null?void 0:h[e])==null?void 0:b[l])||s,g=k.useMemo(()=>y,Object.values(y));return f.jsx(m.Provider,{value:g,children:p})};c.displayName=a+"Provider";function u(d,h){var m;const p=((m=h==null?void 0:h[e])==null?void 0:m[l])||s,y=k.useContext(p);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[c,u]}const i=()=>{const a=r.map(o=>k.createContext(o));return function(s){const l=(s==null?void 0:s[e])||a;return k.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[n,gz(i,...t)]}function gz(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=n.reduce((s,{useScope:l,scopeName:c})=>{const d=l(a)[`__scope${c}`];return{...s,...d}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function sf(e){const t=bz(e),r=k.forwardRef((n,i)=>{const{children:a,...o}=n,s=k.Children.toArray(a),l=s.find(wz);if(l){const c=l.props.children,u=s.map(d=>d===l?k.Children.count(c)>1?k.Children.only(null):k.isValidElement(c)?c.props.children:null:d);return f.jsx(t,{...o,ref:i,children:k.isValidElement(c)?k.cloneElement(c,void 0,u):null})}return f.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}var vz=sf("Slot");function bz(e){const t=k.forwardRef((r,n)=>{const{children:i,...a}=r;if(k.isValidElement(i)){const o=_z(i),s=Sz(a,i.props);return i.type!==k.Fragment&&(s.ref=n?mM(n,o):o),k.cloneElement(i,s)}return k.Children.count(i)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var yM=Symbol("radix.slottable");function xz(e){const t=({children:r})=>f.jsx(f.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=yM,t}function wz(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yM}function Sz(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function _z(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function gM(e){const t=e+"CollectionProvider",[r,n]=vh(t),[i,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:g,children:b}=m,v=E.useRef(null),x=E.useRef(new Map).current;return f.jsx(i,{scope:g,itemMap:x,collectionRef:v,children:b})};o.displayName=t;const s=e+"CollectionSlot",l=sf(s),c=E.forwardRef((m,g)=>{const{scope:b,children:v}=m,x=a(s,b),S=Ot(g,x.collectionRef);return f.jsx(l,{ref:S,children:v})});c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",h=sf(u),p=E.forwardRef((m,g)=>{const{scope:b,children:v,...x}=m,S=E.useRef(null),w=Ot(g,S),_=a(u,b);return E.useEffect(()=>(_.itemMap.set(S,{ref:S,...x}
vendor: 9,175 bytes, line 40
40),()=>void _.itemMap.delete(S))),f.jsx(h,{[d]:"",ref:w,children:v})});p.displayName=u;function y(m){const g=a(e+"CollectionConsumer",m);return E.useCallback(()=>{const v=g.collectionRef.current;if(!v)return[];const x=Array.from(v.querySelectorAll(`[${d}]`));return Array.from(g.itemMap.values()).sort((_,A)=>x.indexOf(_.ref.current)-x.indexOf(A.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:o,Slot:c,ItemSlot:p},y,n]}var kz=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=kz.reduce((e,t)=>{const r=sf(`Primitive.${t}`),n=k.forwardRef((i,a)=>{const{asChild:o,...s}=i,l=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(l,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function vM(e,t){e&&Zs.flushSync(()=>e.dispatchEvent(t))}function ai(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Az(e,t=globalThis==null?void 0:globalThis.document){const r=ai(e);k.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Tz="DismissableLayer",zx="dismissableLayer.update",Ez="dismissableLayer.pointerDownOutside",jz="dismissableLayer.focusOutside",hE,bM=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$g=k.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...l}=e,c=k.useContext(bM),[u,d]=k.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=k.useState({}),y=Ot(t,A=>d(A)),m=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(g),v=u?m.indexOf(u):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,S=v>=b,w=Pz(A=>{const T=A.target,j=[...c.branches].some(P=>P.contains(T));!S||j||(i==null||i(A),o==null||o(A),A.defaultPrevented||s==null||s())},h),_=Cz(A=>{const T=A.target;[...c.branches].some(P=>P.contains(T))||(a==null||a(A),o==null||o(A),A.defaultPrevented||s==null||s())},h);return Az(A=>{v===c.layers.size-1&&(n==null||n(A),!A.defaultPrevented&&s&&(A.preventDefault(),s()))},h),k.useEffect(()=>{if(u)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(hE=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),pE(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=hE)}},[u,h,r,c]),k.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),pE())},[u,c]),k.useEffect(()=>{const A=()=>p({});return document.addEventListener(zx,A),()=>document.removeEventListener(zx,A)},[]),f.jsx(Ze.div,{...l,ref:y,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:Le(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Le(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Le(e.onPointerDownCapture,w.onPointerDownCapture)})});$g.displayName=Tz;var Oz="DismissableLayerBranch",xM=k.forwardRef((e,t)=>{const r=k.useContext(bM),n=k.useRef(null),i=Ot(t,n);return k.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),f.jsx(Ze.div,{...e,ref:i})});xM.displayName=Oz;function Pz(e,t=globalThis==null?void 0:globalThis.document){const r=ai(e),n=k.useRef(!1),i=k.useRef(()=>{});return k.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let l=function(){wM(Ez,r,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Cz(e,t=globalThis==null?void 0:globalThis.document){const r=ai(e),n=k.useRef(!1);return k.useEffect(()=>{const i=a=>{a.target&&!n.current&&wM(jz,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function pE(){const e=new CustomEvent(zx);document.dispatchEvent(e)}function wM(e,t,r,{discrete:n}){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?vM(i,a):i.dispatchEvent(a)}var Nz=$g,Rz=xM,cr=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},Iz="Portal",T_=k.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[i,a]=k.useState(!1);cr(()=>a(!0),[]);const o=r||i&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return o?hM.createPortal(f.jsx(Ze.div,{...n,ref:t}),o):null});T_.displayName=Iz;function $z(e,t){return k.useReducer((r,n)=>t[r][n]??r,e)}var E_=e=>{const{present:t,children:r}=e,n=Mz(t),i=typeof r=="function"?r({present:n.isPresent}):k.Children.only(r),a=Ot(n.ref,Dz(i));return typeof r=="function"||n.isPresent?k.cloneElement(i,{ref:a}):null};E_.displayName="Presence";function Mz(e){const[t,r]=k.useState(),n=k.useRef(null),i=k.useRef(e),a=k.useRef("none"),o=e?"mounted":"unmounted",[s,l]=$z(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const c=cp(n.current);a.current=s==="mounted"?c:"none"},[s]),cr(()=>{const c=n.current,u=i.current;if(u!==e){const h=a.current,p=cp(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==p?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),cr(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=p=>{const m=cp(n.current).includes(p.animationName);if(p.target===t&&m&&(l("ANIMATION_END"),!i.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},h=p=>{p.target===t&&(a.current=cp(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:k.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function cp(e){return(e==null?void 0:e.animationName)||"none"}function Dz(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Lz=$S[" useInsertionEffect ".trim().toString()]||cr;function Wx({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,a,o]=Bz({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:i;{const u=k.useRef(e!==void 0);k.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${n} is changing from ${d?"controlled":"uncontrolled"} to ${s?"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.`),u.current=s},[s,n])}const c=k.useCallback(u=>{var d;if(s){const h=Fz(u)?u(e):u;h!==e&&((d=o.current)==null||d.call(o,h))}else a(u)},[s,e,a,o]);return[l,c]}function Bz({defaultProp:e,onChange:t}){const[r,n]=k.useState(e),i=k.useRef(r),a=k.useRef(t);return Lz(()=>{a.current=t},[t]),k.useEffect(()=>{var o;i.current!==r&&((o=a.current)==null||o.call(a,r),i.current=r)},[r,i]),[r,n,a]}function Fz(e){return typeof e=="function"}var SM=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"}),Uz="VisuallyHidden",Mg=k.forwardRef((e,t)=>f.jsx(Ze.span,{...e,ref:t,style:{...SM,...e.style}}));Mg.displayName=Uz;var Vz=Mg,j_="ToastProvider",[O_,zz,Wz]=gM("Toast"),[_M,WNe]=vh("Toast",[Wz]),[Hz,Dg]=_M(j_),kM=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:a=50,children:o}=e,[s,l]=k.useState(null),[c,u]=k.useState(0),d=k.useRef(!1),h=k.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${j_}\`. Expected non-empty \`string\`.`),f.jsx(O_.Provider,{scope:t,children:f.jsx(Hz,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:a,toastCount:c,viewport:s,onViewportChange:l,onToastAdd:k.useCallback(()=>u(p=>p+1),[]),onToastRemove:k.useCallback(()=>u(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,children:o})})};kM.displayName=j_;var AM="ToastViewport",qz=["F8"],Hx="toast.viewportPause",qx="toast.viewportResume",TM=k.forwardRef((e,t)=>
40{const{__scopeToast:r,hotkey:n=qz,label:i="Notifications ({hotkey})",...a}=e,o=Dg(AM,r),s=zz(r),l=k.useRef(null),c=k.useRef(null),u=k.useRef(null),d=k.useRef(null),h=Ot(t,d,o.onViewportChange),p=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=o.toastCount>0;k.useEffect(()=>{const g=b=>{var x;n.length!==0&&n.every(S=>b[S]||b.code===S)&&((x=d.current)==null||x.focus())};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[n]),k.useEffect(()=>{const g=l.current,b=d.current;if(y&&g&&b){const v=()=>{if(!o.isClosePausedRef.current){const _=new CustomEvent(Hx);b.dispatchEvent(_),o.isClosePausedRef.current=!0}},x=()=>{if(o.isClosePausedRef.current){const _=new CustomEvent(qx);b.dispatchEvent(_),o.isClosePausedRef.current=!1}},S=_=>{!g.contains(_.relatedTarget)&&x()},w=()=>{g.contains(document.activeElement)||x()};return g.addEventListener("focusin",v),g.addEventListener("focusout",S),g.addEventListener("pointermove",v),g.addEventListener("pointerleave",w),window.addEventListener("blur",v),window.addEventListener("focus",x),()=>{g.removeEventListener("focusin",v),g.removeEventListener("focusout",S),g.removeEventListener("pointermove",v),g.removeEventListener("pointerleave",w),window.removeEventListener("blur",v),window.removeEventListener("focus",x)}}},[y,o.isClosePausedRef]);const m=k.useCallback(({tabbingDirection:g})=>{const v=s().map(x=>{const S=x.ref.current,w=[S,...aW(S)];return g==="forwards"?w:w.reverse()});return(g==="forwards"?v.reverse():v).flat()},[s]);return k.useEffect(()=>{const g=d.current;if(g){const b=v=>{var w,_,A;const x=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!x){const T=document.activeElement,j=v.shiftKey;if(v.target===g&&j){(w=c.current)==null||w.focus();return}const O=m({tabbingDirection:j?"backwards":"forwards"}),$=O.findIndex(N=>N===T);Ib(O.slice($+1))?v.preventDefault():j?(_=c.current)==null||_.focus():(A=u.current)==null||A.focus()}};return g.addEventListener("keydown",b),()=>g.removeEventListener("keydown",b)}},[s,m]),f.jsxs(Rz,{ref:l,role:"region","aria-label":i.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&f.jsx(Kx,{ref:c,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"forwards"});Ib(g)}}),f.jsx(O_.Slot,{scope:r,children:f.jsx(Ze.ol,{tabIndex:-1,...a,ref:h})}),y&&f.jsx(Kx,{ref:u,onFocusFromOutsideViewport:()=>{const g=m({tabbingDirection:"backwards"});Ib(g)}})]})});TM.displayName=AM;var EM="ToastFocusProxy",Kx=k.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...i}=e,a=Dg(EM,r);return f.jsx(Mg,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{var c;const s=o.relatedTarget;!((c=a.viewport)!=null&&c.contains(s))&&n()}})});Kx.displayName=EM;var bh="Toast",Kz="toast.swipeStart",Yz="toast.swipeMove",Gz="toast.swipeCancel",Xz="toast.swipeEnd",jM=k.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:i,onOpenChange:a,...o}=e,[s,l]=Wx({prop:n,defaultProp:i??!0,onChange:a,caller:bh});return f.jsx(E_,{present:r||s,children:f.jsx(Qz,{open:s,...o,ref:t,onClose:()=>l(!1),onPause:ai(e.onPause),onResume:ai(e.onResume),onSwipeStart:Le(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Le(e.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Le(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Le(e.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});jM.displayName=bh;var[Zz,Jz]=_M(bh,{onClose(){}}),Qz=k.forwardRef((e,t)=>
40{const{__scopeToast:r,type:n="foreground",duration:i,open:a,onClose:o,onEscapeKeyDown:s,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:h,onSwipeEnd:p,...y}=e,m=Dg(bh,r),[g,b]=k.useState(null),v=Ot(t,N=>b(N)),x=k.useRef(null),S=k.useRef(null),w=i||m.duration,_=k.useRef(0),A=k.useRef(w),T=k.useRef(0),{onToastAdd:j,onToastRemove:P}=m,C=ai(()=>{var L;(g==null?void 0:g.contains(document.activeElement))&&((L=m.viewport)==null||L.focus()),o()}),O=k.useCallback(N=>{!N||N===1/0||(window.clearTimeout(T.current),_.current=new Date().getTime(),T.current=window.setTimeout(C,N))},[C]);k.useEffect(()=>{const N=m.viewport;if(N){const L=()=>{O(A.current),c==null||c()},D=()=>{const B=new Date().getTime()-_.current;A.current=A.current-B,window.clearTimeout(T.current),l==null||l()};return N.addEventListener(Hx,D),N.addEventListener(qx,L),()=>{N.removeEventListener(Hx,D),N.removeEventListener(qx,L)}}},[m.viewport,w,l,c,O]),k.useEffect(()=>{a&&!m.isClosePausedRef.current&&O(w)},[a,w,m.isClosePausedRef,O]),k.useEffect(()=>(j(),()=>P()),[j,P]);const $=k.useMemo(()=>g?$M(g):null,[g]);return m.viewport?f.jsxs(f.Fragment,{children:[$&&f.jsx(eW,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:$}),f.jsx(Zz,{scope:r,onClose:C,children:Zs.createPortal(f.jsx(O_.ItemSlot,{scope:r,children:f.jsx(Nz,{asChild:!0,onEscapeKeyDown:Le(s,()=>{m.isFocusedToastEscapeKeyDownRef.current||C(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:f.jsx(Ze.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":m.swipeDirection,...y,ref:v,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Le(e.onKeyDown,N=>{N.key==="Escape"&&(s==null||s(N.nativeEvent),N.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,C()))}),onPointerDown:Le(e.onPointerDown,N=>{N.button===0&&(x.current={x:N.clientX,y:N.clientY})}),onPointerMove:Le(e.onPointerMove,N=>{if(!x.current)return;const L=N.clientX-x.current.x,D=N.clientY-x.current.y,B=!!S.current,R=["left","right"].includes(m.swipeDirection),M=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,U=R?M(0,L):0,Y=R?0:M(0,D),W=N.pointerType==="touch"?10:2,X={x:U,y:Y},le={originalEvent:N,delta:X};B?(S.current=X,up(Yz,d,le,{discrete:!1})):mE(X,m.swipeDirection,W)?(S.current=X,up(Kz,u,le,{discrete:!1}),N.target.setPointerCapture(N.pointerId)):(Math.abs(L)>W||Math.abs(D)>W)&&(x.current=null)}),onPointerUp:Le(e.onPointerUp,N=>{const L=S.current,D=N.target;if(D.hasPointerCapture(N.pointerId)&&D.releasePointerCapture(N.pointerId),S.current=null,x.current=null,L){const B=N.currentTarget,R={originalEvent:N,delta:L};mE(L,m.swipeDirection,m.swipeThreshold)?up(Xz,p,R,{discrete:!0}):up(Gz,h,R,{discrete:!0}),B.addEventListener("click",M=>M.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),eW=e=>{const{__scopeToast:t,children:r,...n}=e,i=Dg(bh,t),[a,o]=k.useState(!1),[s,l]=k.useState(!1);return nW(()=>o(!0)),k.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),s?null:f.jsx(T_,{asChild:!0,children:f.jsx(Mg,{...n,children:a&&f.jsxs(f.Fragment,{children:[i.label," ",r]})})})},tW="ToastTitle",OM=k.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return f.jsx(Ze.div,{...n,ref:t})});OM.displayName=tW;var rW="ToastDescription",PM=k.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return f.jsx(Ze.div,{...n,ref:t})});PM.displayName=rW;var CM="ToastAction",NM=k.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?f.jsx(IM,{altText:r,asChild:!0,children:f.jsx(P_,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${CM}\`. Expected non-empty \`string\`.`),null)});NM.displayName=CM;var RM="ToastClose",P_=k.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,i=Jz(RM,r);return f.jsx(IM,{asChild:!0,children:f.jsx(Ze.button,{type:"button",...n,ref:t,onClick:Le(e.onClick,i.onClose)})})});P_.displayName=RM;var IM=k.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...i}=e;return f.jsx(Ze.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...i,ref:t})});function $M(e){const t=[];
vendor: 4,279 bytes, lines 40-65
40return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),iW(n)){const i=n.ariaHidden||n.hidden||n.style.display==="none",a=n.dataset.radixToastAnnounceExclude==="";if(!i)if(a){const o=n.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...$M(n))}}),t}function up(e,t,r,{discrete:n}){const i=r.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?vM(i,a):i.dispatchEvent(a)}var mE=(e,t,r=0)=>{const n=Math.abs(e.x),i=Math.abs(e.y),a=n>i;return t==="left"||t==="right"?a&&n>r:!a&&i>r};function nW(e=()=>{}){const t=ai(e);cr(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function iW(e){return e.nodeType===e.ELEMENT_NODE}function aW(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ib(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var oW=kM,MM=TM,DM=jM,LM=OM,BM=PM,FM=NM,UM=P_;function VM(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=VM(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Te(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=VM(e))&&(n&&(n+=" "),n+=t);return n}const yE=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,gE=Te,zM=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return gE(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(c=>{const u=r==null?void 0:r[c],d=a==null?void 0:a[c];if(u===null)return null;const h=yE(u)||yE(d);return i[c][h]}),s=r&&Object.entries(r).reduce((c,u)=>{let[d,h]=u;return h===void 0||(c[d]=h),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:d,className:h,...p}=u;return Object.entries(p).every(y=>{let[m,g]=y;return Array.isArray(g)?g.includes({...a,...s}[m]):{...a,...s}[m]===g})?[...c,d,h]:c},[]);return gE(e,o,l,r==null?void 0:r.class,r==null?void 0:r.className)};/** 41 * @license lucide-react v0.462.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 sW=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),WM=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/** 46 * @license lucide-react v0.462.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 lW={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.462.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 cW=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...s},l)=>k.createElement("svg",{ref:l,...lW,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:WM("lucide",i),...s},[...o.map(([c,u])=>k.createElement(c,u)),...Array.isArray(a)?a:[a]]));/** 56 * @license lucide-react v0.462.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 se=(e,t)=>{const r=k.forwardRef(({className:n,...i},a)=>k.createElement(cW,{ref:a,iconNode:t,className:WM(`lucide-${sW(e)}`,n),...i}));return r.displayName=`${e}`,r};/** 61 * @license lucide-react v0.462.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 uW=se("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l
65-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/** 66 * @license lucide-react v0.462.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 dW=se("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 71 * @license lucide-react v0.462.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 HM=se("ArrowRightLeft",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]);/** 76 * @license lucide-react v0.462.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 Ds=se("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 81 * @license lucide-react v0.462.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 C_=se("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** 86 * @license lucide-react v0.462.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 fW=se("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);/** 91 * @license lucide-react v0.462.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 hW=se("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 96 * @license lucide-react v0.462.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 pW=se("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 101 * @license lucide-react v0.462.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 fu=se("CalendarCheck",[["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"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]);/** 106 * @license lucide-react v0.462.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 mW=se("CalendarDays",[["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"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/** 111 * @license lucide-react v0.462.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 yW=se("CalendarSync",[["path",{d:"M11 10v4h4",key:"172dkj"}],["path",{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5",key:"vu0qm5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5",key:"1qgeyt"}],["path",{d:"M21 22v-4h-4",key:"hrummi"}],["path",{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3",key:"mctw84"}],["path",{d:"M3 10h4",key:"1el30a"}],["path",{d:"M8 2v4",key:"1cmpym"}]]);/** 116 * @license lucide-react v0.462.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 qM=se("Calendar",[["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"}]]);/** 121 * @license lucide-react v0.462.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 xh=se("ChartColumn",[["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"}]]);/** 126 * @license lucide-react v0.462.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 gW=se("ChartPie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",ke
130y:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);/** 131 * @license lucide-react v0.462.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 N_=se("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 136 * @license lucide-react v0.462.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 lf=se("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 141 * @license lucide-react v0.462.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 KM=se("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 146 * @license lucide-react v0.462.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=se("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 151 * @license lucide-react v0.462.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=se("CircleAlert",[["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"}]]);/** 156 * @license lucide-react v0.462.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=se("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 161 * @license lucide-react v0.462.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 YM=se("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/** 166 * @license lucide-react v0.462.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 R_=se("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/** 171 * @license lucide-react v0.462.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 GM=se("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 176 * @license lucide-react v0.462.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 wW=se("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);/** 181 * @license lucide-react v0.462.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 Js=se("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/** 186 * @license lucide-react v0.462.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 SW=se("DatabaseZap",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]]);/** 191 * @license lucide-react v0.462.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 XM=se("DollarSign",[["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"}]]);/** 196 * @license lucide-react v0.462.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 ZM=se("Dumbbell",[["path",{d:"M14.4 14.4 9.6 9.6",key:"ic80wn"}],["path",{d:"M18.657 21.485a2 2 0 1 1-2.829-2.828l-1.767 1.768a2 2 0 1 1-2.829-2.829l6.364-6.364a2 2 0 1 1 2.829 2.829l-1.768 1.767a2 2 0 1 1 2.828 2.829z",key:"nnl7wr"}],["path",{d:"m21.5 21.5-1.4-1.4",key:"1f1ice"}],["path",{d:"M3.9 3.9 2.5 2.5",key:"1evmna"}],["path",{d:"M6.404 12.768a2 2 0 1 1-2.829-2.829l1.768-1.767a2 2 0 1 1-2.828-2.829l2.828-2.828a2 2 0 1 1 2.829 2.828l1.767-1.768a2 2 0 1 1 2.829 2.829z",key:"yhosts"}]]);/** 201 * @license lucide-react v0.462.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 _W=se("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/** 206 * @license lucide-react v0.462.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 JM=se("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 211 * @license lucide-react v0.462.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const I_=se("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** 216 * @license lucide-react v0.462.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const kW=se("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** 221 * @license lucide-react v0.462.0 - ISC 222 * 223 * This source code is licensed under the ISC license. 224 * See the LICENSE file in the root directory of this source tree. 225 */const AW=se("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/** 226 * @license lucide-react v0.462.0 - ISC 227 * 228 * This source code is licensed under the ISC license. 229 * See the LICENSE file in the root directory of this source tree. 230 */const TW=se("HeartHandshake",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]]);/** 231 * @license lucide-react v0.462.0 - ISC 232 * 233 * This source code is licensed under the ISC license. 234 * See the LICENSE file in the root directory of this source tree. 235 */const EW=se("Hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]);/** 236 * @license lucide-react v0.462.0 - ISC 237 * 238 * This source code is licensed under the ISC license. 239 * See the LICENSE file in the root directory of this source tree. 240 */const jW=se("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 241 * @license lucide-react v0.462.0 - ISC 242 * 243 * This source code is licensed under the ISC license. 244 * See the LICENSE file in the root directory of this source tree. 245 */const OW=se("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/** 246 * @license lucide-react v0.462.0 - ISC 247 * 248 * This source code is licensed under the ISC license. 249 * See the LICENSE file in the root directory of this source tree. 250 */const PW=se("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);/** 251 * @license lucide-react v0.462.0 - ISC 252 * 253 * This source code is licensed under the ISC license. 254 * See the LICENSE file in the root directory of this source tree. 255 */const CW=se("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** 256 * @license lucide-react v0.462.0 - ISC 257 * 258 * This source code is licensed under the ISC license. 259 * See the LICENSE file in the root directory of this source tree. 260 */const NW=se("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/** 261 * @license lucide-react v0.462.0 - ISC 262 * 263 * This source code is licensed under the ISC license. 264 * See the LICENSE file in the root directory of this source tree.
265 */const QM=se("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** 266 * @license lucide-react v0.462.0 - ISC 267 * 268 * This source code is licensed under the ISC license. 269 * See the LICENSE file in the root directory of this source tree. 270 */const RW=se("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/** 271 * @license lucide-react v0.462.0 - ISC 272 * 273 * This source code is licensed under the ISC license. 274 * See the LICENSE file in the root directory of this source tree. 275 */const eD=se("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/** 276 * @license lucide-react v0.462.0 - ISC 277 * 278 * This source code is licensed under the ISC license. 279 * See the LICENSE file in the root directory of this source tree. 280 */const tD=se("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/** 281 * @license lucide-react v0.462.0 - ISC 282 * 283 * This source code is licensed under the ISC license. 284 * See the LICENSE file in the root directory of this source tree. 285 */const wh=se("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 286 * @license lucide-react v0.462.0 - ISC 287 * 288 * This source code is licensed under the ISC license. 289 * See the LICENSE file in the root directory of this source tree. 290 */const IW=se("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 291 * @license lucide-react v0.462.0 - ISC 292 * 293 * This source code is licensed under the ISC license. 294 * See the LICENSE file in the root directory of this source tree. 295 */const Sh=se("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 296 * @license lucide-react v0.462.0 - ISC 297 * 298 * This source code is licensed under the ISC license. 299 * See the LICENSE file in the root directory of this source tree. 300 */const $W=se("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/** 301 * @license lucide-react v0.462.0 - ISC 302 * 303 * This source code is licensed under the ISC license. 304 * See the LICENSE file in the root directory of this source tree. 305 */const MW=se("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/** 306 * @license lucide-react v0.462.0 - ISC 307 * 308 * This source code is licensed under the ISC license. 309 * See the LICENSE file in the root directory of this source tree. 310 */const DW=se("Pencil",[["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"}]]);/** 311 * @license lucide-react v0.462.0 - ISC 312 * 313 * This source code is licensed under the ISC license. 314 * See the LICENSE file in the root directory of this source tree. 315 */const LW=se("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);/** 316 * @license lucide-react v0.462.0 - ISC 317 * 318 * This source code is licensed under the ISC license. 319 * See the LICENSE file in the root directory of this source tree. 320 */const rD=se("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/** 321 * @license lucide-react v0.462.0 - ISC 322 * 323 * This source code is licensed under the ISC license. 324 * See the LICENSE file in the root directory of this source tree. 325 */const $_=se("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** 326 * @license lucide-react v0.462.0 - ISC 327 * 328 * This source code is licensed under the ISC license. 329 * See the LICENSE file in the root directory of this source tree. 330 */const BW=se("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3
330kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** 331 * @license lucide-react v0.462.0 - ISC 332 * 333 * This source code is licensed under the ISC license. 334 * See the LICENSE file in the root directory of this source tree. 335 */const FW=se("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 336 * @license lucide-react v0.462.0 - ISC 337 * 338 * This source code is licensed under the ISC license. 339 * See the LICENSE file in the root directory of this source tree. 340 */const nD=se("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/** 341 * @license lucide-react v0.462.0 - ISC 342 * 343 * This source code is licensed under the ISC license. 344 * See the LICENSE file in the root directory of this source tree. 345 */const UW=se("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 346 * @license lucide-react v0.462.0 - ISC 347 * 348 * This source code is licensed under the ISC license. 349 * See the LICENSE file in the root directory of this source tree. 350 */const VW=se("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/** 351 * @license lucide-react v0.462.0 - ISC 352 * 353 * This source code is licensed under the ISC license. 354 * See the LICENSE file in the root directory of this source tree. 355 */const zW=se("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/** 356 * @license lucide-react v0.462.0 - ISC 357 * 358 * This source code is licensed under the ISC license. 359 * See the LICENSE file in the root directory of this source tree. 360 */const M_=se("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/** 361 * @license lucide-react v0.462.0 - ISC 362 * 363 * This source code is licensed under the ISC license. 364 * See the LICENSE file in the root directory of this source tree. 365 */const WW=se("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** 366 * @license lucide-react v0.462.0 - ISC 367 * 368 * This source code is licensed under the ISC license. 369 * See the LICENSE file in the root directory of this source tree. 370 */const iD=se("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/** 371 * @license lucide-react v0.462.0 - ISC 372 * 373 * This source code is licensed under the ISC license. 374 * See the LICENSE file in the root directory of this source tree. 375 */const HW=se("Ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);/** 376 * @license lucide-react v0.462.0 - ISC 377 * 378 * This source code is licensed under the ISC license. 379 * See the LICENSE file in the root directory of this source tree. 380 */const qW=se("TrendingUp",[["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"}]]);/** 381 * @license lucide-react v0.462.0 - ISC 382 * 383 * This source code is licensed under the ISC license. 384 * See the LICENSE file in the root directory of this source tree. 385 */const Lg=se("UserCheck",[["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"}
vendor: 8,949 bytes, lines 385-420
385],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/** 386 * @license lucide-react v0.462.0 - ISC 387 * 388 * This source code is licensed under the ISC license. 389 * See the LICENSE file in the root directory of this source tree. 390 */const Bg=se("UserPlus",[["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"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** 391 * @license lucide-react v0.462.0 - ISC 392 * 393 * This source code is licensed under the ISC license. 394 * See the LICENSE file in the root directory of this source tree. 395 */const aD=se("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 396 * @license lucide-react v0.462.0 - ISC 397 * 398 * This source code is licensed under the ISC license. 399 * See the LICENSE file in the root directory of this source tree. 400 */const _h=se("Users",[["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"}]]);/** 401 * @license lucide-react v0.462.0 - ISC 402 * 403 * This source code is licensed under the ISC license. 404 * See the LICENSE file in the root directory of this source tree. 405 */const KW=se("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]);/** 406 * @license lucide-react v0.462.0 - ISC 407 * 408 * This source code is licensed under the ISC license. 409 * See the LICENSE file in the root directory of this source tree. 410 */const YW=se("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/** 411 * @license lucide-react v0.462.0 - ISC 412 * 413 * This source code is licensed under the ISC license. 414 * See the LICENSE file in the root directory of this source tree. 415 */const D_=se("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 416 * @license lucide-react v0.462.0 - ISC 417 * 418 * This source code is licensed under the ISC license. 419 * See the LICENSE file in the root directory of this source tree. 420 */const oD=se("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),L_="-",GW=e=>{const t=ZW(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(L_);return s[0]===""&&s.length!==1&&s.shift(),sD(s,t)||XW(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},sD=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?sD(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(L_);return(o=t.validators.find(({validator:s})=>s(a)))==null?void 0:o.classGroupId},vE=/^\[(.+)\]$/,XW=e=>{if(vE.test(e)){const t=vE.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ZW=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return QW(Object.entries(e.classGroups),r).forEach(([a,o])=>{Yx(o,n,a,t)}),n},Yx=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:bE(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(JW(i)){Yx(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,o])=>{Yx(o,bE(t,a),r,n)})})},bE=(e,t)=>{let r=e;return t.split(L_).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},JW=e=>e.isThemeGetter,QW=(e,t)=>t?e.map(([r,n])=>{const i=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,s])=>[t+o,s])):a);return[r,i]}):e,eH=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(a,o)=>{r.set(a,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let o=r.get(a);if(o!==void 0)return o;if((o=n.get(a))!==void 0)return i(a,o),o},set(a,o){r.has(a)?r.set(a,o):i(a,o)}}},lD="!",tH=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],a=t.length,o=s=>{const l=[];let c=0,u=0,d;for(let g=0;g<s.length;g++){let b=s[g];if(c===0){if(b===i&&(n||s.slice(g,g+a)===t)){l.push(s.slice(u,g)),u=g+a;continue}if(b==="/"){d=g;continue}}b==="["?c++:b==="]"&&c--}const h=l.length===0?s:s.substring(u),p=h.startsWith(lD),y=p?h.substring(1):h,m=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:m}};return r?s=>r({className:s,parseClassName:o}):o},rH=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},nH=e=>({cache:eH(e.cacheSize),parseClassName:tH(e),...GW(e)}),iH=/\s+/,aH=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(iH);let s="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:p}=r(c);let y=!!p,m=n(y?h.substring(0,p):h);if(!m){if(!y){s=c+(s.length>0?" "+s:s);continue}if(m=n(h),!m){s=c+(s.length>0?" "+s:s);continue}y=!1}const g=rH(u).join(":"),b=d?g+lD:g,v=b+m;if(a.includes(v))continue;a.push(v);const x=i(m,y);for(let S=0;S<x.length;++S){const w=x[S];a.push(b+w)}s=c+(s.length>0?" "+s:s)}return s};function oH(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=cD(t))&&(n&&(n+=" "),n+=r);return n}const cD=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=cD(e[n]))&&(r&&(r+=" "),r+=t);return r};function sH(e,...t){let r,n,i,a=o;function o(l){const c=t.reduce((u,d)=>d(u),e());return r=nH(c),n=r.cache.get,i=r.cache.set,a=s,s(l)}function s(l){const c=n(l);if(c)return c;const u=aH(l,r);return i(l,u),u}return function(){return a(oH.apply(null,arguments))}}const ct=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},uD=/^\[(?:([a-z-]+):)?(.+)\]$/i,lH=/^\d+\/\d+$/,cH=new Set(["px","full","screen"]),uH=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,dH=/\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$/,fH=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,hH=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pH=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zi=e=>ac(e)||cH.has(e)||lH.test(e),Ra=e=>hu(e,"length",SH),ac=e=>!!e&&!Number.isNaN(Number(e)),$b=e=>hu(e,"number",ac),zu=e=>!!e&&Number.isInteger(Number(e)),mH=e=>e.endsWith("%")&&ac(e.slice(0,-1)),Ne=e=>uD.test(e),Ia=e=>uH.test(e),yH=new Set(["length","size","percentage"]),gH=e=>hu(e,yH,dD),vH=e=>hu(e,"position",dD),bH=new Set(["image","url"]),xH=e=>hu(e,bH,kH),wH=e=>hu(e,"",_H),Wu=()=>!0,hu=(e,t,r)=>{const n=uD.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},SH=e=>dH.test(e)&&!fH.test(e),dD=()=>!1,_H=e=>hH.test(e),kH=e=>pH.test(e),AH=()=>{const e=ct("colors"),t=ct("spacing"),r=ct("blur"),n=ct("brightness"),i=ct("borderColor"),a=ct("borderRadius"),o=ct("borderSpacing"),s=ct("borderWidth"),l=ct("contrast"),c=ct("grayscale"),u=ct("hueRotate"),d=ct("invert"),h=ct("gap"),p=ct("gradientColorStops"),y=ct("gradientColorStopPositions"),m=ct("inset"),g=ct("margin"),b=ct("opacity"),v=ct("padding"),x=ct("saturate"),S=ct("scale"),w=ct("sepia"),_=ct("skew"),A=ct("space"),T=ct("translate"),j=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",Ne,t],O=()=>[Ne,t],$=()=>["",zi,Ra],N=()=>["auto",ac,Ne],L=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",Ne],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>[ac,Ne];return{cacheSize:500,separator:":",theme:{colors:[Wu],spacing:[zi,Ra],blur:["none","",Ia,Ne],brightness:Y(),borderColor:[e],borderRadius:["none","","full",Ia,Ne],borderSpacing:O(),borderWidth:$(),contrast:Y(),grayscale:M(),hueRotate:Y(),invert:M(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[mH,Ra],inset:C(),margin:C(),opacity:Y(),padding:O(),saturate:Y(),scale:Y(),sepia:M(),skew:Y(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",Ne]}
vendor: 10,884 bytes, line 420
420],container:["container"],columns:[{columns:[Ia]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"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"],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:[...L(),Ne]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",zu,Ne]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ne]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",zu,Ne]}],"grid-cols":[{"grid-cols":[Wu]}],"col-start-end":[{col:["auto",{span:["full",zu,Ne]},Ne]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[Wu]}],"row-start-end":[{row:["auto",{span:[zu,Ne]},Ne]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ne]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ne]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ne,t]}],"min-w":[{"min-w":[Ne,t,"min","max","fit"]}],"max-w":[{"max-w":[Ne,t,"none","full","min","max","fit","prose",{screen:[Ia]},Ia]}],h:[{h:[Ne,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ne,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ne,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ne,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ia,Ra]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$b]}],"font-family":[{font:[Wu]}],"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:["tighter","tight","normal","wide","wider","widest",Ne]}],"line-clamp":[{"line-clamp":["none",ac,$b]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",zi,Ne]}],"list-image":[{"list-image":["none",Ne]}],"list-style-type":[{list:["none","disc","decimal",Ne]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",zi,Ra]}],"underline-offset":[{"underline-offset":["auto",zi,Ne]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L(),vH]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gH]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},xH]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:D()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[zi,Ne]}],"outline-w":[{outline:[zi,Ra]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[zi,Ra]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ia,wH]}],"shadow-color":[{shadow:[Wu]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...B(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ia,Ne]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ne]}],duration:[{duration:Y()}],ease:[{ease:["linear","in","out","in-out",Ne]}],delay:[{delay:Y()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ne]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[zu,Ne]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ne]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",Ne]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}
vendor: 4,942 bytes, line 420
420],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",Ne]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[zi,Ra,$b]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},TH=sH(AH);function Pt(...e){return TH(Te(e))}const EH=oW,fD=k.forwardRef(({className:e,...t},r)=>f.jsx(MM,{ref:r,className:Pt("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),...t}));fD.displayName=MM.displayName;const jH=zM("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"}}),hD=k.forwardRef(({className:e,variant:t,...r},n)=>f.jsx(DM,{ref:n,className:Pt(jH({variant:t}),e),...r}));hD.displayName=DM.displayName;const OH=k.forwardRef(({className:e,...t},r)=>f.jsx(FM,{ref:r,className:Pt("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 group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));OH.displayName=FM.displayName;const pD=k.forwardRef(({className:e,...t},r)=>f.jsx(UM,{ref:r,className:Pt("absolute right-2 top-2 rounded-md p-1 text-foreground
420/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:f.jsx(D_,{className:"h-4 w-4"})}));pD.displayName=UM.displayName;const mD=k.forwardRef(({className:e,...t},r)=>f.jsx(LM,{ref:r,className:Pt("text-sm font-semibold",e),...t}));mD.displayName=LM.displayName;const yD=k.forwardRef(({className:e,...t},r)=>f.jsx(BM,{ref:r,className:Pt("text-sm opacity-90",e),...t}));yD.displayName=BM.displayName;function PH(){const{toasts:e}=yz();return f.jsxs(EH,{children:[e.map(function({id:t,title:r,description:n,action:i,...a}){return f.jsxs(hD,{...a,children:[f.jsxs("div",{className:"grid gap-1",children:[r&&f.jsx(mD,{children:r}),n&&f.jsx(yD,{children:n})]}),i,f.jsx(pD,{})]},t)}),f.jsx(fD,{})]})}var xE=["light","dark"],CH="(prefers-color-scheme: dark)",NH=k.createContext(void 0),RH={setTheme:e=>{},themes:[]},IH=()=>{var e;return(e=k.useContext(NH))!=null?e:RH};k.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:i,defaultTheme:a,value:o,attrs:s,nonce:l})=>{let c=a==="system",u=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${s.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,d=i?xE.includes(a)&&a?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${a}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(y,m=!1,g=!0)=>{let b=o?o[y]:y,v=m?y+"|| ''":`'${b}'`,x="";return i&&g&&!m&&xE.includes(y)&&(x+=`d.style.colorScheme = '${y}';`),r==="class"?m||b?x+=`c.add(${v})`:x+="null":b&&(x+=`d[s](n,${v})`),x},p=e?`!function(){${u}${h(e)}}()`:n?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${CH}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}${c?"":"else{"+h(a,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${h(o?"x[e]":"e",!0)}}else{${h(a,!1,!1)};}${d}}catch(t){}}();`;return k.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})});var $H=e=>{switch(e){case"success":return LH;case"info":return FH;case"warning":return BH;case"error":return UH;default:return null}},MH=Array(12).fill(0),DH=({visible:e,className:t})=>E.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},E.createElement("div",{className:"sonner-spinner"},MH.map((r,n)=>E.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),LH=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),BH=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),FH=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),UH=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},E.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}
420)),VH=E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},E.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),E.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),zH=()=>{let[e,t]=E.useState(document.hidden);return E.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},Gx=1,WH=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Gx++,a=this.toasts.find(s=>s.id===i),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),a?this.toasts=this.toasts.map(s=>s.id===i?(this.publish({...s,...e,id:i,title:r}),{...s,...e,id:i,dismissible:o,title:r}):s):this.addToast({title:r,...n,dismissible:o,id:i}),i},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
420this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let n=e instanceof Promise?e:e(),i=r!==void 0,a,o=n.then(async l=>{if(a=["resolve",l],E.isValidElement(l))i=!1,this.create({id:r,type:"default",message:l});else if(qH(l)&&!l.ok){i=!1;let c=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,u=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:r,type:"error",message:c,description:u})}else if(t.success!==void 0){i=!1;let c=typeof t.success=="function"?await t.success(l):t.success,u=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"success",message:c,description:u})}}).catch(async l=>{if(a=["reject",l],t.error!==void 0){i=!1;let c=typeof t.error=="function"?await t.error(l):t.error,u=typeof t.description=="function"?await t.description(l):t.description;this.create({id:r,type:"error",message:c,description:u})}}).finally(()=>{var l;i&&(this.dismiss(r),r=void 0),(l=t.finally)==null||l.call(t)}),s=()=>new Promise((l,c)=>o.then(()=>a[0]==="reject"?c(a[1]):l(a[1])).catch(c));return typeof r!="string"&&typeof r!="number"?{unwrap:s}:Object.assign(r,{unwrap:s})},this.custom=(e,t)=>{let r=(t==null?void 0:t.id)||Gx++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Dr=new WH,HH=(e,t)=>{let r=(t==null?void 0:t.id)||Gx++;return Dr.addToast({title:e,...t,id:r}),r},qH=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",KH=HH,YH=()=>Dr.toasts,GH=()=>Dr.getActiveToasts(),Ul=Object.assign(KH,{success:Dr.success,info:Dr.info,warning:Dr.warning,error:Dr.error,custom:Dr.custom,message:Dr.message,promise:Dr.promise,dismiss:Dr.dismiss,loading:Dr.loading},{getHistory:YH,getToasts:GH});function XH(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}XH(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
420left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
420:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
420--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 421`);function dp(e){return e.label!==void 0}var ZH=3,JH="32px",QH="16px",wE=4e3,e9=356,t9=14,r9=20,n9=200;function Mn(...e){return e.filter(Boolean).join(" ")}function i9(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var a9=e=>{var t,r,n,i,a,o,s,l,c,u,d;let{invert:h,toast:p,unstyled:y,interacting:m,setHeights:g,visibleToasts:b,heights:v,index:x,toasts:S,expanded:w,removeToast:_,defaultRichColors:A,closeButton:T,style:j,cancelButtonStyle:P,actionButtonStyle:C,className:O="",descriptionClassName:$="",duration:N,position:L,gap:D,loadingIcon:B,expandByDefault:R,classNames:M,icons:U,closeButtonAriaLabel:Y="Close toast",pauseWhenPageIsHidden:W}=e,[X,le]=E.useState(null),[we,Re]=E.useState(null),[te,ke]=E.useState(!1),[G,ie]=E.useState(!1),[ae,V]=E.useState(!1),[Ce,Se]=E.useState(!1),[We,He]=E.useState(!1),[mt,xr]=E.useState(0),[ur,I]=E.useState(0),F=E.useRef(p.duration||N||wE),z=E.useRef(null),re=E.useRef(null),ne=x===0,Q=x+1<=b,ue=p.type,De=p.dismissible!==!1,Qe=p.className||"",Ir=p.descriptionClassName||"",Ui=E.useMemo(()=>v.findIndex(Oe=>Oe.toastId===p.id)||0,[v,p.id]),ui=E.useMemo(()=>{var Oe;return(Oe=p.closeButton)!=null?Oe:T},[p.closeButton,T]),Uh=E.useMemo(()=>p.duration||N||wE,[p.duration,N]),Wo=E.useRef(0),di=E.useRef(0),Vh=E.useRef(0),Vi=E.useRef(null),[nb,zh]=L.split("-"),QA=E.useMemo(()=>v.reduce((Oe,et,yt)=>yt>
421=Ui?Oe:Oe+et.height,0),[v,Ui]),eT=zH(),LV=p.invert||h,ib=ue==="loading";di.current=E.useMemo(()=>Ui*D+QA,[Ui,QA]),E.useEffect(()=>{F.current=Uh},[Uh]),E.useEffect(()=>{ke(!0)},[]),E.useEffect(()=>{let Oe=re.current;if(Oe){let et=Oe.getBoundingClientRect().height;return I(et),g(yt=>[{toastId:p.id,height:et,position:p.position},...yt]),()=>g(yt=>yt.filter(Nn=>Nn.toastId!==p.id))}},[g,p.id]),E.useLayoutEffect(()=>{if(!te)return;let Oe=re.current,et=Oe.style.height;Oe.style.height="auto";let yt=Oe.getBoundingClientRect().height;Oe.style.height=et,I(yt),g(Nn=>Nn.find(Rn=>Rn.toastId===p.id)?Nn.map(Rn=>Rn.toastId===p.id?{...Rn,height:yt}:Rn):[{toastId:p.id,height:yt,position:p.position},...Nn])},[te,p.title,p.description,g,p.id]);let Oa=E.useCallback(()=>{ie(!0),xr(di.current),g(Oe=>Oe.filter(et=>et.toastId!==p.id)),setTimeout(()=>{_(p)},n9)},[p,_,g,di]);E.useEffect(()=>{if(p.promise&&ue==="loading"||p.duration===1/0||p.type==="loading")return;let Oe;return w||m||W&&eT?(()=>{if(Vh.current<Wo.current){let et=new Date().getTime()-Wo.current;F.current=F.current-et}Vh.current=new Date().getTime()})():F.current!==1/0&&(Wo.current=new Date().getTime(),Oe=setTimeout(()=>{var et;(et=p.onAutoClose)==null||et.call(p,p),Oa()},F.current)),()=>clearTimeout(Oe)},[w,m,p,ue,W,eT,Oa]),E.useEffect(()=>{p.delete&&Oa()},[Oa,p.delete]);function BV(){var Oe,et,yt;return U!=null&&U.loading?E.createElement("div",{className:Mn(M==null?void 0:M.loader,(Oe=p==null?void 0:p.classNames)==null?void 0:Oe.loader,"sonner-loader"),"data-visible":ue==="loading"},U.loading):B?E.createElement("div",{className:Mn(M==null?void 0:M.loader,(et=p==null?void 0:p.classNames)==null?void 0:et.loader,"sonner-loader"),"data-visible":ue==="loading"},B):E.createElement(DH,{className:Mn(M==null?void 0:M.loader,(yt=p==null?void 0:p.classNames)==null?void 0:yt.loader),visible:ue==="loading"})}return E.createElement("li",{tabIndex:0,ref:re,className:Mn(O,Qe,M==null?void 0:M.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,M==null?void 0:M.default,M==null?void 0:M[ue],(r=p==null?void 0:p.classNames)==null?void 0:r[ue]),"data-sonner-toast":"","data-rich-colors":(n=p.richColors)!=null?n:A,"data-styled":!(p.jsx||p.unstyled||y),"data-mounted":te,"data-promise":!!p.promise,"data-swiped":We,"data-removed":G,"data-visible":Q,"data-y-position":nb,"data-x-position":zh,"data-index":x,"data-front":ne,"data-swiping":ae,"data-dismissible":De,"data-type":ue,"data-invert":LV,"data-swipe-out":Ce,"data-swipe-direction":we,"data-expanded":!!(w||R&&te),style:{"--index":x,"--toasts-before":x,"--z-index":S.length-x,"--offset":`${G?mt:di.current}px`,"--initial-height":R?"auto":`${ur}px`,...j,...p.style},onDragEnd:()=>{V(!1),le(null),Vi.current=null},onPointerDown:Oe=>{ib||!De||(z.current=new Date,xr(di.current),Oe.target.setPointerCapture(Oe.pointerId),Oe.target.tagName!=="BUTTON"&&(V(!0),Vi.current={x:Oe.clientX,y:Oe.clientY}))},onPointerUp:()=>{var Oe,et,yt,Nn;if(Ce||!De)return;Vi.current=null;let Rn=Number(((Oe=re.current)==null?void 0:Oe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Pa=Number(((et=re.current)==null?void 0:et.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ho=new Date().getTime()-((yt=z.current)==null?void 0:yt.getTime()),In=X==="x"?Rn:Pa,Ca=Math.abs(In)/Ho;if(Math.abs(In)>=r9||Ca>.11){xr(di.current),(Nn=p.onDismiss)==null||Nn.call(p,p),Re(X==="x"?Rn>0?"right":"left":Pa>0?"down":"up"),Oa(),Se(!0),He(!1);return}V(!1),le(null)},onPointerMove:Oe=>{var et,yt,Nn,Rn;if(!Vi.current||!De||((et=window.getSelection())==null?void 0:et.toString().length)>0)return;let Pa=Oe.clientY-Vi.current.y,Ho=Oe.clientX-Vi.current.x,In=(yt=e.swipeDirections)!=null?yt:i9(L);!X&&(Math.abs(Ho)>1||Math.abs(Pa)>1)&&le(Math.abs(Ho)>Math.abs(Pa)?"x":"y");let Ca={x:0,y:0};X==="y"?(In.includes("top")||In.includes("bottom"))&&(In.includes("top")&&Pa<0||In.includes("bottom")&&Pa>0)&&(Ca.y=Pa):X==="x"&&(In.includes("left")||In.includes("right"))&&(In.includes("left")&&Ho<0||In.includes("right")&&Ho>
4210)&&(Ca.x=Ho),(Math.abs(Ca.x)>0||Math.abs(Ca.y)>0)&&He(!0),(Nn=re.current)==null||Nn.style.setProperty("--swipe-amount-x",`${Ca.x}px`),(Rn=re.current)==null||Rn.style.setProperty("--swipe-amount-y",`${Ca.y}px`)}},ui&&!p.jsx?E.createElement("button",{"aria-label":Y,"data-disabled":ib,"data-close-button":!0,onClick:ib||!De?()=>{}:()=>{var Oe;Oa(),(Oe=p.onDismiss)==null||Oe.call(p,p)},className:Mn(M==null?void 0:M.closeButton,(i=p==null?void 0:p.classNames)==null?void 0:i.closeButton)},(a=U==null?void 0:U.close)!=null?a:VH):null,p.jsx||k.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:E.createElement(E.Fragment,null,ue||p.icon||p.promise?E.createElement("div",{"data-icon":"",className:Mn(M==null?void 0:M.icon,(o=p==null?void 0:p.classNames)==null?void 0:o.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||BV():null,p.type!=="loading"?p.icon||(U==null?void 0:U[ue])||$H(ue):null):null,E.createElement("div",{"data-content":"",className:Mn(M==null?void 0:M.content,(s=p==null?void 0:p.classNames)==null?void 0:s.content)},E.createElement("div",{"data-title":"",className:Mn(M==null?void 0:M.title,(l=p==null?void 0:p.classNames)==null?void 0:l.title)},typeof p.title=="function"?p.title():p.title),p.description?E.createElement("div",{"data-description":"",className:Mn($,Ir,M==null?void 0:M.description,(c=p==null?void 0:p.classNames)==null?void 0:c.description)},typeof p.description=="function"?p.description():p.description):null),k.isValidElement(p.cancel)?p.cancel:p.cancel&&dp(p.cancel)?E.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||P,onClick:Oe=>{var et,yt;dp(p.cancel)&&De&&((yt=(et=p.cancel).onClick)==null||yt.call(et,Oe),Oa())},className:Mn(M==null?void 0:M.cancelButton,(u=p==null?void 0:p.classNames)==null?void 0:u.cancelButton)},p.cancel.label):null,k.isValidElement(p.action)?p.action:p.action&&dp(p.action)?E.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||C,onClick:Oe=>{var et,yt;dp(p.action)&&((yt=(et=p.action).onClick)==null||yt.call(et,Oe),!Oe.defaultPrevented&&Oa())},className:Mn(M==null?void 0:M.actionButton,(d=p==null?void 0:p.classNames)==null?void 0:d.actionButton)},p.action.label):null))};function SE(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function o9(e,t){let r={};return[e,t].forEach((n,i)=>{let a=i===1,o=a?"--mobile-offset":"--offset",s=a?QH:JH;function l(c){["top","right","bottom","left"].forEach(u=>{r[`${o}-${u}`]=typeof c=="number"?`${c}px`:c})}typeof n=="number"||typeof n=="string"?l(n):typeof n=="object"?["top","right","bottom","left"].forEach(c=>{n[c]===void 0?r[`${o}-${c}`]=s:r[`${o}-${c}`]=typeof n[c]=="number"?`${n[c]}px`:n[c]}):l(s)}),r}var s9=k.forwardRef(function(e,t){let{invert:r,position:n="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:o,className:s,offset:l,mobileOffset:c,theme:u="light",richColors:d,duration:h,style:p,visibleToasts:y=ZH,toastOptions:m,dir:g=SE(),gap:b=t9,loadingIcon:v,icons:x,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:w}=e,[_,A]=E.useState([]),T=E.useMemo(()=>Array.from(new Set([n].concat(_.filter(W=>W.position).map(W=>W.position)))),[_,n]),[j,P]=E.useState([]),[C,O]=E.useState(!1),[$,N]=E.useState(!1),[L,D]=E.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=E.useRef(null),R=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),M=E.useRef(null),U=E.useRef(!1),Y=E.useCallback(W=>{A(X=>{var le;return(le=X.find(we=>we.id===W.id))!=null&&le.delete||Dr.dismiss(W.id),X.filter(({id:we})=>we!==W.id)})},[]);return E.useEffect(()=>Dr.subscribe(W=>{if(W.dismiss){A(X=>X.map(le=>le.id===W.id?{...le,delete:!0}:le));return}setTimeout(()=>{hM.flushSync(()=>{A(X=>{let le=X.findIndex(we=>we.id===W.id);return le!==-1?[...X.slice(0,le),{...X[le],...W},...X.slice(le+1)]:[W,...X]})})})}),[]),E.useEffect(()=>{if(u!=="system"){D(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?D("dark"):D("light")),typeof window>"u")return;let W=window.matchMedia("(prefers-color-scheme: dark)");try{W.addEventListener("change",({matches:X})=>{D(X?"dark":"light")})}catch{W.addListener(({matches:le})=>{try{D(le?"dark":"light")}catch(we){console.error(we)}})}},[u]),E.useEffect(()=>{_.length<=1&&O(!1)},[_]),E.useEffect(()=>{let W=X=>{var le,we;i.every(Re=>X[Re]||X.code===Re)&&(O(!0),(le=B.current)==null||le.focus()),X.code==="Escape"&&(document.activeElement===B.current||(we=B.current)!=null&&we.contains(document.activeElement))&&O(!1)};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[i]),E.useEffect(()=>{if(B.current)return()=>
vendor: 4,762 bytes, line 421
421{M.current&&(M.current.focus({preventScroll:!0}),M.current=null,U.current=!1)}},[B.current]),E.createElement("section",{ref:t,"aria-label":`${S} ${R}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((W,X)=>{var le;let[we,Re]=W.split("-");return _.length?E.createElement("ol",{key:W,dir:g==="auto"?SE():g,tabIndex:-1,ref:B,className:s,"data-sonner-toaster":!0,"data-theme":L,"data-y-position":we,"data-lifted":C&&_.length>1&&!a,"data-x-position":Re,style:{"--front-toast-height":`${((le=j[0])==null?void 0:le.height)||0}px`,"--width":`${e9}px`,"--gap":`${b}px`,...p,...o9(l,c)},onBlur:te=>{U.current&&!te.currentTarget.contains(te.relatedTarget)&&(U.current=!1,M.current&&(M.current.focus({preventScroll:!0}),M.current=null))},onFocus:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||U.current||(U.current=!0,M.current=te.relatedTarget)},onMouseEnter:()=>O(!0),onMouseMove:()=>O(!0),onMouseLeave:()=>{$||O(!1)},onDragEnd:()=>O(!1),onPointerDown:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||N(!0)},onPointerUp:()=>N(!1)},_.filter(te=>!te.position&&X===0||te.position===W).map((te,ke)=>{var G,ie;return E.createElement(a9,{key:te.id,icons:x,index:ke,toast:te,defaultRichColors:d,duration:(G=m==null?void 0:m.duration)!=null?G:h,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:r,visibleToasts:y,closeButton:(ie=m==null?void 0:m.closeButton)!=null?ie:o,interacting:$,position:W,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:Y,toasts:_.filter(ae=>ae.position==te.position),heights:j.filter(ae=>ae.position==te.position),setHeights:P,expandByDefault:a,gap:b,loadingIcon:v,expanded:C,pauseWhenPageIsHidden:w,swipeDirections:e.swipeDirections})})):null}))});const l9=({...e})=>{const{theme:t="system"}=IH();return f.jsx(s9,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var c9=$S[" useId ".trim().toString()]||(()=>{}),u9=0;function B_(e){const[t,r]=k.useState(c9());return cr(()=>{r(n=>n??String(u9++))},[e]),t?`radix-${t}`:""}const d9=["top","right","bottom","left"],ko=Math.min,Qr=Math.max,Vm=Math.round,fp=Math.floor,Oi=e=>({x:e,y:e}),f9={left:"right",right:"left",bottom:"top",top:"bottom"},h9={start:"end",end:"start"};function Xx(e,t,r){return Qr(e,ko(t,r))}function ya(e,t){return typeof e=="function"?e(t):e}function ga(e){return e.split("-")[0]}function pu(e){return e.split("-")[1]}function F_(e){return e==="x"?"y":"x"}function U_(e){return e==="y"?"height":"width"}const p9=new Set(["top","bottom"]);function _i(e){return p9.has(ga(e))?"y":"x"}function V_(e){return F_(_i(e))}function m9(e,t,r){r===void 0&&(r=!1);const n=pu(e),i=V_(e),a=U_(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=zm(o)),[o,zm(o)]}function y9(e){const t=zm(e);return[Zx(e),t,Zx(t)]}function Zx(e){return e.replace(/start|end/g,t=>h9[t])}const _E=["left","right"],kE=["right","left"],g9=["top","bottom"],v9=["bottom","top"];function b9(e,t,r){switch(e){case"top":case"bottom":return r?t?kE:_E:t?_E:kE;case"left":case"right":return t?g9:v9;default:return[]}}function x9(e,t,r,n){const i=pu(e);let a=b9(ga(e),r==="start",n);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Zx)))),a}function zm(e){return e.replace(/left|right|bottom|top/g,t=>f9[t])}function w9(e){return{top:0,right:0,bottom:0,left:0,...e}}function gD(e){return typeof e!="number"?w9(e):{top:e,right:e,bottom:e,left:e}}function Wm(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function AE(e,t,r){let{reference:n,floating:i}=e;const a=_i(t),o=V_(t),s=U_(o),l=ga(t),c=a==="y",u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,h=n[s]/2-i[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-i.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-i.width,y:d};break;default:p={x:n.x,y:n.y}}switch(pu(t)){case"start":p[o]-=h*(r&&c?-1:1);break;case"end":p[o]+=h*(r&&c?-1:1);break}return p}const S9=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}
vendor: 23,840 bytes, line 421
421=r,s=a.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=AE(c,n,l),h=n,p={},y=0;for(let m=0;m<s.length;m++){const{name:g,fn:b}=s[m],{x:v,y:x,data:S,reset:w}=await b({x:u,y:d,initialPlacement:n,placement:h,strategy:i,middlewareData:p,rects:c,platform:o,elements:{reference:e,floating:t}});u=v??u,d=x??d,p={...p,[g]:{...p[g],...S}},w&&y<=50&&(y++,typeof w=="object"&&(w.placement&&(h=w.placement),w.rects&&(c=w.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:u,y:d}=AE(c,h,l)),m=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:p}};async function cf(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=ya(t,e),y=gD(p),g=s[h?d==="floating"?"reference":"floating":d],b=Wm(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(g)))==null||r?g:g.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v=d==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),S=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},w=Wm(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:x,strategy:l}):v);return{top:(b.top-w.top+y.top)/S.y,bottom:(w.bottom-b.bottom+y.bottom)/S.y,left:(b.left-w.left+y.left)/S.x,right:(w.right-b.right+y.right)/S.x}}const _9=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=ya(e,t)||{};if(c==null)return{};const d=gD(u),h={x:r,y:n},p=V_(i),y=U_(p),m=await o.getDimensions(c),g=p==="y",b=g?"top":"left",v=g?"bottom":"right",x=g?"clientHeight":"clientWidth",S=a.reference[y]+a.reference[p]-h[p]-a.floating[y],w=h[p]-a.reference[p],_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let A=_?_[x]:0;(!A||!await(o.isElement==null?void 0:o.isElement(_)))&&(A=s.floating[x]||a.floating[y]);const T=S/2-w/2,j=A/2-m[y]/2-1,P=ko(d[b],j),C=ko(d[v],j),O=P,$=A-m[y]-C,N=A/2-m[y]/2+T,L=Xx(O,N,$),D=!l.arrow&&pu(i)!=null&&N!==L&&a.reference[y]/2-(N<O?P:C)-m[y]/2<0,B=D?N<O?N-O:N-$:0;return{[p]:h[p]+B,data:{[p]:L,centerOffset:N-L-B,...D&&{alignmentOffset:B}},reset:D}}}),k9=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:m=!0,...g}=ya(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const b=ga(i),v=_i(s),x=ga(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=h||(x||!m?[zm(s)]:y9(s)),_=y!=="none";!h&&_&&w.push(...x9(s,m,y,S));const A=[s,...w],T=await cf(t,g),j=[];let P=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&j.push(T[b]),d){const N=m9(i,o,S);j.push(T[N[0]],T[N[1]])}if(P=[...P,{placement:i,overflows:j}],!j.every(N=>N<=0)){var C,O;const N=(((C=a.flip)==null?void 0:C.index)||0)+1,L=A[N];if(L&&(!(d==="alignment"?v!==_i(L):!1)||P.every(R=>R.overflows[0]>0&&_i(R.placement)===v)))return{data:{index:N,overflows:P},reset:{placement:L}};let D=(O=P.filter(B=>B.overflows[0]<=0).sort((B,R)=>B.overflows[1]-R.overflows[1])[0])==null?void 0:O.placement;if(!D)switch(p){case"bestFit":{var $;const B=($=P.filter(R=>{if(_){const M=_i(R.placement);return M===v||M==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(M=>M>0).reduce((M,U)=>M+U,0)]).sort((R,M)=>R[1]-M[1])[0])==null?void 0:$[0];B&&(D=B);break}case"initialPlacement":D=s;break}if(i!==D)return{reset:{placement:D}}}return{}}}};function TE(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function EE(e){return d9.some(t=>e[t]>=0)}const A9=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...i}=ya(e,t);switch(n){case"referenceHidden":{const a=await cf(t,{...i,elementContext:"reference"}),o=TE(a,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:EE(o)}}}case"escaped":{const a=await cf(t,{...i,altBoundary:!0}),o=TE(a,r.floating);return{data:{escapedOffsets:o,escaped:EE(o)}}}default:return{}}}}},vD=new Set(["left","top"]);async function T9(e,t){const{placement:r,platform:n,elements:i}=e,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=ga(r),s=pu(r),l=_i(r)==="y",c=vD.has(o)?-1:1,u=a&&l?-1:1,d=ya(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:y}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof y=="number"&&(p=s==="end"?y*-1:y),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const E9=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:a,placement:o,middlewareData:s}=t,l=await T9(t,e);return o===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},j9=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:g=>{let{x:b,y:v}=g;return{x:b,y:v}}},...l}=ya(e,t),c={x:r,y:n},u=await cf(t,l),d=_i(ga(i)),h=F_(d);let p=c[h],y=c[d];if(a){const g=h==="y"?"top":"left",b=h==="y"?"bottom":"right",v=p+u[g],x=p-u[b];p=Xx(v,p,x)}if(o){const g=d==="y"?"top":"left",b=d==="y"?"bottom":"right",v=y+u[g],x=y-u[b];y=Xx(v,y,x)}const m=s.fn({...t,[h]:p,[d]:y});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[h]:a,[d]:o}}}}}},O9=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=ya(e,t),u={x:r,y:n},d=_i(i),h=F_(d);let p=u[h],y=u[d];const m=ya(s,t),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const x=h==="y"?"height":"width",S=a.reference[h]-a.floating[x]+g.mainAxis,w=a.reference[h]+a.reference[x]-g.mainAxis;p<S?p=S:p>w&&(p=w)}if(c){var b,v;const x=h==="y"?"width":"height",S=vD.has(ga(i)),w=a.reference[d]-a.floating[x]+(S&&((b=o.offset)==null?void 0:b[d])||0)+(S?0:g.crossAxis),_=a.reference[d]+a.reference[x]+(S?0:((v=o.offset)==null?void 0:v[d])||0)-(S?g.crossAxis:0);y<w?y=w:y>_&&(y=_)}return{[h]:p,[d]:y}}}},P9=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:a,platform:o,elements:s}=t,{apply:l=()=>{},...c}=ya(e,t),u=await cf(t,c),d=ga(i),h=pu(i),p=_i(i)==="y",{width:y,height:m}=a.floating;let g,b;d==="top"||d==="bottom"?(g=d,b=h===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(b=d,g=h==="end"?"top":"bottom");const v=m-u.top-u.bottom,x=y-u.left-u.right,S=ko(m-u[g],v),w=ko(y-u[b],x),_=!t.middlewareData.shift;let A=S,T=w;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(T=x),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(A=v),_&&!h){const P=Qr(u.left,0),C=Qr(u.right,0),O=Qr(u.top,0),$=Qr(u.bottom,0);p?T=y-2*(P!==0||C!==0?P+C:Qr(u.left,u.right)):A=m-2*(O!==0||$!==0?O+$:Qr(u.top,u.bottom))}await l({...t,availableWidth:T,availableHeight:A});const j=await o.getDimensions(s.floating);return y!==j.width||m!==j.height?{reset:{rects:!0}}:{}}}};function Fg(){return typeof window<"u"}function mu(e){return bD(e)?(e.nodeName||"").toLowerCase():"#document"}function an(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Li(e){var t;return(t=(bD(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bD(e){return Fg()?e instanceof Node||e instanceof an(e).Node:!1}function oi(e){return Fg()?e instanceof Element||e instanceof an(e).Element:!1}function $i(e){return Fg()?e instanceof HTMLElement||e instanceof an(e).HTMLElement:!1}function jE(e){return!Fg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof an(e).ShadowRoot}const C9=new Set(["inline","contents"]);function kh(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=si(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!C9.has(i)}const N9=new Set(["table","td","th"]);function R9(e){return N9.has(mu(e))}const I9=[":popover-open",":modal"];function Ug(e){return I9.some(t=>{try{return e.matches(t)}catch{return!1}})}const $9=["transform","translate","scale","rotate","perspective"],M9=["transform","translate","scale","rotate","perspective","filter"],D9=["paint","layout","strict","content"];function z_(e){const t=W_(),r=oi(e)?si(e):e;return $9.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||M9.some(n=>(r.willChange||"").includes(n))||D9.some(n=>(r.contain||"").includes(n))}function L9(e){let t=Ao(e);for(;$i(t)&&!Oc(t);){if(z_(t))return t;if(Ug(t))return null;t=Ao(t)}return null}function W_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const B9=new Set(["html","body","#document"]);function Oc(e){return B9.has(mu(e))}function si(e){return an(e).getComputedStyle(e)}function Vg(e){return oi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ao(e){if(mu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||jE(e)&&e.host||Li(e);return jE(t)?t.host:t}function xD(e){const t=Ao(e);return Oc(t)?e.ownerDocument?e.ownerDocument.body:e.body:$i(t)&&kh(t)?t:xD(t)}function uf(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=xD(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),o=an(i);if(a){const s=Jx(o);return t.concat(o,o.visualViewport||[],kh(i)?i:[],s&&r?uf(s):[])}return t.concat(i,uf(i,[],r))}function Jx(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wD(e){const t=si(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=$i(e),a=i?e.offsetWidth:r,o=i?e.offsetHeight:n,s=Vm(r)!==a||Vm(n)!==o;return s&&(r=a,n=o),{width:r,height:n,$:s}}function H_(e){return oi(e)?e:e.contextElement}function oc(e){const t=H_(e);if(!$i(t))return Oi(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:a}=wD(t);let o=(a?Vm(r.width):r.width)/n,s=(a?Vm(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const F9=Oi(0);function SD(e){const t=an(e);return!W_()||!t.visualViewport?F9:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function U9(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==an(e)?!1:t}function Ls(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),a=H_(e);let o=Oi(1);t&&(n?oi(n)&&(o=oc(n)):o=oc(e));const s=U9(a,r,n)?SD(a):Oi(0);let l=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){const h=an(a),p=n&&oi(n)?an(n):n;let y=h,m=Jx(y);for(;m&&n&&p!==y;){const g=oc(m),b=m.getBoundingClientRect(),v=si(m),x=b.left+(m.clientLeft+parseFloat(v.paddingLeft))*g.x,S=b.top+(m.clientTop+parseFloat(v.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=x,c+=S,y=an(m),m=Jx(y)}}return Wm({width:u,height:d,x:l,y:c})}function q_(e,t){const r=Vg(e).scrollLeft;return t?t.left+r:Ls(Li(e)).left+r}function _D(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-(r?0:q_(e,n)),a=n.top+t.scrollTop;return{x:i,y:a}}function V9(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const a=i==="fixed",o=Li(n),s=t?Ug(t.floating):!1;if(n===o||s&&a)return r;let l={scrollLeft:0,scrollTop:0},c=Oi(1);const u=Oi(0),d=$i(n);if((d||!d&&!a)&&((mu(n)!=="body"||kh(o))&&(l=Vg(n)),$i(n))){const p=Ls(n);c=oc(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const h=o&&!d&&!a?_D(o,l,!0):Oi(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:r.y*c.y-l.scrollTop*c.y+u.y+h.y}}function z9(e){return Array.from(e.getClientRects())}function W9(e){const t=Li(e),r=Vg(e),n=e.ownerDocument.body,i=Qr(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Qr(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+q_(e);const s=-r.scrollTop;return si(n).direction==="rtl"&&(o+=Qr(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:o,y:s}}function H9(e,t){const r=an(e),n=Li(e),i=r.visualViewport;let a=n.clientWidth,o=n.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const c=W_();(!c||c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s,y:l}}const q9=new Set(["absolute","fixed"]);function K9(e,t){const r=Ls(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=$i(e)?oc(e):Oi(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,c=n*a.y;return{width:o,height:s,x:l,y:c}}function OE(e,t,r){let n;if(t==="viewport")n=H9(e,r);else if(t==="document")n=W9(Li(e));else if(oi(t))n=K9(t,r);else{const i=SD(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Wm(n)}function kD(e,t){const r=Ao(e);return r===t||!oi(r)||Oc(r)?!1:si(r).position==="fixed"||kD(r,t)}function Y9(e,t){const r=t.get(e);if(r)return r;let n=uf(e,[],!1).filter(s=>oi(s)&&mu(s)!=="body"),i=null;const a=si(e).position==="fixed";let o=a?Ao(e):e;for(;oi(o)&&!Oc(o);){const s=si(o),l=z_(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&q9.has(i.position)||kh(o)&&!l&&kD(e,o))?n=n.filter(u=>u!==o):i=s,o=Ao(o)}return t.set(e,n),n}function G9(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?Ug(t)?[]:Y9(t,this._c):[].concat(r),n],s=o[0],l=o.reduce((c,u)=>{const d=OE(t,u,i);return c.top=Qr(d.top,c.top),c.right=ko(d.right,c.right),c.bottom=ko(d.bottom,c.bottom),c.left=Qr(d.left,c.left),c},OE(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function X9(e){const{width:t,height:r}=wD(e);return{width:t,height:r}}function Z9(e,t,r){const n=$i(t),i=Li(t),a=r==="fixed",o=Ls(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Oi(0);function c(){l.x=q_(i)}if(n||!n&&!a)if((mu(t)!=="body"||kh(i))&&(s=Vg(t)),n){const p=Ls(t,!0,a,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&c();a&&!n&&i&&c();const u=i&&!n&&!a?_D(i,s):Oi(0),d=o.left+s.scrollLeft-l.x-u.x,h=o.top+s.scrollTop-l.y-u.y;return{x:d,y:h,width:o.width,height:o.height}}function Mb(e){return si(e).position==="static"}function PE(e,t){if(!$i(e)||si(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Li(e)===r&&(r=r.ownerDocument.body),r}function AD(e,t){const r=an(e);if(Ug(e))return r;if(!$i(e)){let i=Ao(e);for(;i&&!Oc(i);){if(oi(i)&&!Mb(i))return i;i=Ao(i)}return r}let n=PE(e,t);for(;n&&R9(n)&&Mb(n);)n=PE(n,t);return n&&Oc(n)&&Mb(n)&&!z_(n)?r:n||L9(e)||r}const J9=async function(e){const t=this.getOffsetParent||AD,r=this.getDimensions,n=await r(e.floating);return{reference:Z9(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Q9(e){return si(e).direction==="rtl"}const e7={convertOffsetParentRelativeRectToViewportRelativeRect:V9,getDocumentElement:Li,getClippingRect:G9,getOffsetParent:AD,getElementRects:J9,getClientRects:z9,getDimensions:X9,getScale:oc,isElement:oi,isRTL:Q9};function TD(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function t7(e,t){let r=null,n;const i=Li(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(s||t(),!h||!p)return;const y=fp(d),m=fp(i.clientWidth-(u+h)),g=fp(i.clientHeight-(d+p)),b=fp(u),x={rootMargin:-y+"px "+-m+"px "+-g+"px "+-b+"px",threshold:Qr(0,ko(1,l))||1};let S=!0;function w(_){const A=_[0].intersectionRatio;if(A!==l){if(!S)return o();A?o(!1,A):n=setTimeout(()=>{o(!1,1e-7)},1e3)}A===1&&!TD(c,e.getBoundingClientRect())&&o(),S=!1}try{r=new IntersectionObserver(w,{...x,root:i.ownerDocument})}catch{r=new IntersectionObserver(w,x)}r.observe(e)}return o(!0),a}function r7(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=H_(e),u=i||a?[...c?uf(c):[],...uf(t)]:[];u.forEach(b=>{i&&b.addEventListener("scroll",r,{passive:!0}),a&&b.addEventListener("resize",r)});const d=c&&s?t7(c,r):null;let h=-1,p=null;o&&(p=new ResizeObserver(b=>{let[v]=b;v&&v.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),r()}),c&&!l&&p.observe(c),p.observe(t));let y,m=l?Ls(e):null;l&&g();function g(){const b=Ls(e);m&&!TD(m,b)&&r(),m=b,y=requestAnimationFrame(g)}return r(),()=>{var b;u.forEach(v=>{i&&v.removeEventListener("scroll",r),a&&v.removeEventListener("resize",r)}),d==null||d(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(y)}}const n7=E9,i7=j9,a7=k9,o7=P9,s7=A9,CE=_9,l7=O9,c7=(e,t,r)=>{const n=new Map,i={platform:e7,...r},a={...i.platform,_c:n};return S9(e,t,{...i,platform:a})};var u7=typeof document<"u",d7=function(){},am=u7?k.useLayoutEffect:d7;function Hm(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 r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Hm(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const a=i[n];if(!(a==="_owner"&&e.$$typeof)&&!Hm(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function ED(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function NE(e,t){const r=ED(e);return Math.round(t*r)/r}function Db(e){const t=k.useRef(e);return am(()=>{t.current=e}),t}function f7(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=k.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=k.useState(n);Hm(h,n)||p(n);const[y,m]=k.useState(null),[g,b]=k.useState(null),v=k.useCallback(R=>{R!==_.current&&(_.current=R,m(R))},[]),x=k.useCallback(R=>{R!==A.current&&(A.current=R,b(R))},[]),S=a||y,w=o||g,_=k.useRef(null),A=k.useRef(null),T=k.useRef(u),j=l!=null,P=Db(l),C=Db(i),O=Db(c),$=k.useCallback(()=>{if(!_.current||!A.current)return;const R={placement:t,strategy:r,middleware:h};C.current&&(R.platform=C.current),c7(_.current,A.current,R).then(M=>{const U={...M,isPositioned:O.current!==!1};N.current&&!Hm(T.current,U)&&(T.current=U,Zs.flushSync(()=>{d(U)}))})},[h,t,r,C,O]);am(()=>{c===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(R=>({...R,isPositioned:!1})))},[c]);const N=k.useRef(!1);am(()=>(N.current=!0,()=>{N.current=!1}),[]),am(()=>{if(S&&(_.current=S),w&&(A.current=w),S&&w){if(P.current)return P.current(S,w,$);$()}},[S,w,$,P,j]);const L=k.useMemo(()=>({reference:_,floating:A,setReference:v,setFloating:x}),[v,x]),D=k.useMemo(()=>({reference:S,floating:w}),[S,w]),B=k.useMemo(()=>{const R={position:r,left:0,top:0};if(!D.floating)return R;const M=NE(D.floating,u.x),U=NE(D.floating,u.y);return s?{...R,transform:"translate("+M+"px, "+U+"px)",...ED(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:M,top:U}},[r,s,D.floating,u.x,u.y]);return k.useMemo(()=>({...u,update:$,refs:L,elements:D,floatingStyles:B}),[u,$,L,D,B])}const h7=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?CE({element:n.current,padding:i}).fn(r):{}:n?CE({element:n,padding:i}).fn(r):{}}}},p7=(e,t)=>({...n7(e),options:[e,t]}),m7=(e,t)=>({...i7(e),options:[e,t]}),y7=(e,t)=>({...l7(e),options:[e,t]}),g7=(e,t)=>({...a7(e),options:[e,t]}),v7=(e,t)=>({...o7(e),options:[e,t]}),b7=(e,t)=>({...s7(e),options:[e,t]}),x7=(e,t)=>({...h7(e),options:[e,t]});var w7="Arrow",jD=k.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...a}=e;return f.jsx(Ze.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});jD.displayName=w7;var S7=jD;function _7(e){const[t,r]=k.useState(void 0);return cr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,s;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,s=c.blockSize}else o=e.offsetWidth,s=e.offsetHeight;r({width:o,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var K_="Popper",[OD,zg]=vh(K_),[k7,PD]=OD(K_),CD=e=>{const{__scopePopper:t,children:r}=e,[n,i]=k.useState(null);return f.jsx(k7,{scope:t,anchor:n,onAnchorChange:i,children:r})};CD.displayName=K_;var ND="PopperAnchor",RD=k.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,a=PD(ND,r),o=k.useRef(null),s=Ot(t,o);return k.useEffect(()=>{a.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:f.jsx(Ze.div,{...i,ref:s})});RD.displayName=ND;var Y_="PopperContent",[A7,T7]=OD(Y_),ID=k.forwardRef((e,t)=>{var te,ke,G,ie,ae,V;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:y,...m}=e,g=PD(Y_,r),[b,v]=k.useState(null),x=Ot(t,Ce=>v(Ce)),[S,w]=k.useState(null),_=_7(S),A=(_==null?void 0:_.width)??0,T=(_==null?void 0:_.height)??0,j=n+(a!=="center"?"-"+a:""),P=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},C=Array.isArray(c)?c:[c],O=C.length>0,$={padding:P,boundary:C.filter(j7),altBoundary:O},{refs:N,floatingStyles:L,placement:D,isPositioned:B,middlewareData:R}=f7({strategy:"fixed",placement:j,whileElementsMounted:(...Ce)=>r7(...Ce,{animationFrame:p==="always"}),elements:{reference:g.anchor},middleware:[p7({mainAxis:i+T,alignmentAxis:o}),l&&m7({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?y7():void 0,...$}),l&&g7({...$}),v7({...$,apply:({elements:Ce,rects:Se,availableWidth:We,availableHeight:He})=>{const{width:mt,height:xr}=Se.reference,ur=Ce.floating.style;ur.setProperty("--radix-popper-available-width",`${We}px`),ur.setProperty("--radix-popper-available-height",`${He}px`),ur.setProperty("--radix-popper-anchor-width",`${mt}px`),ur.setProperty("--radix-popper-anchor-height",`${xr}px`)}}),S&&x7({element:S,padding:s}),O7({arrowWidth:A,arrowHeight:T}),h&&b7({strategy:"referenceHidden",...$})]}),[M,U]=DD(D),Y=ai(y);cr(()=>{B&&(Y==null||Y())},[B,Y]);const W=(te=R.arrow)==null?void 0:te.x,X=(ke=R.arrow)==null?void 0:ke.y,le=((G=R.arrow)==null?void 0:G.centerOffset)!==0,[we,Re]=k.useState();return cr(()=>{b&&Re(window.getComputedStyle(b).zIndex)},[b]),f.jsx("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:B?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:we,"--radix-popper-transform-origin":[(ie=R.transformOrigin)==null?void 0:ie.x,(ae=R.transformOrigin)==null?void 0:ae.y].join(" "),...((V=R.hide)==null?void 0:V.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(A7,{scope:r,placedSide:M,onArrowChange:w,arrowX:W,arrowY:X,shouldHideArrow:le,children:f.jsx(Ze.div,{"data-side":M,"data-align":U,...m,ref:x,style:{...m.style,animation:B?void 0:"none"}})})})});ID.displayName=Y_;var $D="PopperArrow",E7={top:"bottom",right:"left",bottom:"top",left:"r
421ight"},MD=k.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,a=T7($D,n),o=E7[a.placedSide];return f.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:f.jsx(S7,{...i,ref:r,style:{...i.style,display:"block"}})})});MD.displayName=$D;function j7(e){return e!==null}var O7=e=>({name:"transformOrigin",options:e,fn(t){var g,b,v;const{placement:r,rects:n,middlewareData:i}=t,o=((g=i.arrow)==null?void 0:g.centerOffset)!==0,s=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=DD(r),d={start:"0%",center:"50%",end:"100%"}[u],h=(((b=i.arrow)==null?void 0:b.x)??0)+s/2,p=(((v=i.arrow)==null?void 0:v.y)??0)+l/2;let y="",m="";return c==="bottom"?(y=o?d:`${h}px`,m=`${-l}px`):c==="top"?(y=o?d:`${h}px`,m=`${n.floating.height+l}px`):c==="right"?(y=`${-l}px`,m=o?d:`${p}px`):c==="left"&&(y=`${n.floating.width+l}px`,m=o?d:`${p}px`),{data:{x:y,y:m}}}});function DD(e){const[t,r="center"]=e.split("-");return[t,r]}var P7=CD,LD=RD,BD=ID,FD=MD,[Wg,HNe]=vh("Tooltip",[zg]),G_=zg(),UD="TooltipProvider",C7=700,RE="tooltip.open",[N7,VD]=Wg(UD),zD=e=>{const{__scopeTooltip:t,delayDuration:r=C7,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:a}=e,o=k.useRef(!0),s=k.useRef(!1),l=k.useRef(0);return k.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),f.jsx(N7,{scope:t,isOpenDelayedRef:o,delayDuration:r,onOpen:k.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:k.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:k.useCallback(c=>{s.current=c},[]),disableHoverableContent:i,children:a})};zD.displayName=UD;var WD="Tooltip",[qNe,Hg]=Wg(WD),Qx="TooltipTrigger",R7=k.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=Hg(Qx,r),a=VD(Qx,r),o=G_(r),s=k.useRef(null),l=Ot(t,s,i.onTriggerChange),c=k.useRef(!1),u=k.useRef(!1),d=k.useCallback(()=>c.current=!1,[]);return k.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),f.jsx(LD,{asChild:!0,...o,children:f.jsx(Ze.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:l,onPointerMove:Le(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:Le(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:Le(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Le(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:Le(e.onBlur,i.onClose),onClick:Le(e.onClick,i.onClose)})})});R7.displayName=Qx;var I7="TooltipPortal",[KNe,$7]=Wg(I7,{forceMount:void 0}),Pc="TooltipContent",HD=k.forwardRef((e,t)=>{const r=$7(Pc,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...a}=e,o=Hg(Pc,e.__scopeTooltip);return f.jsx(E_,{present:n||o.open,children:o.disableHoverableContent?f.jsx(qD,{side:i,...a,ref:t}):f.jsx(M7,{side:i,...a,ref:t})})}),M7=k.forwardRef((e,t)=>{const r=Hg(Pc,e.__scopeTooltip),n=VD(Pc,e.__scopeTooltip),i=k.useRef(null),a=Ot(t,i),[o,s]=k.useState(null),{trigger:l,onClose:c}=r,u=i.current,{onPointerInTransitChange:d}=n,h=k.useCallback(()=>{s(null),d(!1)},[d]),p=k.useCallback((y,m)=>{const g=y.currentTarget,b={x:y.clientX,y:y.clientY},v=U7(b,g.getBoundingClientRect()),x=V7(b,v),S=z7(m.getBoundingClientRect()),w=H7([...x,...S]);s(w),d(!0)},[d]);return k.useEffect(()=>()=>h(),[h]),k.useEffect(()=>{if(l&&u){const y=g=>p(g,u),m=g=>p(g,l);return l.addEventListener("pointerleave",y),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",y),u.removeEventListener("pointerleave",m)}}},[l,u,p,h]),k.useEffect(()=>{if(o){const y=m=>{const g=m.target,b={x:m.clientX,y:m.clientY},v=(l==null?void 0:l.contains(g))||(u==null?void 0:u.contains(g)),x=!W7(b,o);v?h():x&&(h(),c())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,u,o,c,h]),f.jsx(qD,{...e,ref:a})}),[D7,L7]=Wg(WD,{isInside:!1}),B7=xz("TooltipContent"),qD=k.forwardRef((e,t)=>
421{const{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,l=Hg(Pc,r),c=G_(r),{onClose:u}=l;return k.useEffect(()=>(document.addEventListener(RE,u),()=>document.removeEventListener(RE,u)),[u]),k.useEffect(()=>{if(l.trigger){const d=h=>{const p=h.target;p!=null&&p.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),f.jsx($g,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:f.jsxs(BD,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.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:[f.jsx(B7,{children:n}),f.jsx(D7,{scope:r,isInside:!0,children:f.jsx(Vz,{id:l.contentId,role:"tooltip",children:i||n})})]})})});HD.displayName=Pc;var KD="TooltipArrow",F7=k.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=G_(r);return L7(KD,r).isInside?null:f.jsx(FD,{...i,...n,ref:t})});F7.displayName=KD;function U7(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,i,a)){case a:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function V7(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function z7(e){const{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}function W7(e,t){const{x:r,y:n}=e;let i=!1;for(let a=0,o=t.length-1;a<t.length;o=a++){const s=t[a],l=t[o],c=s.x,u=s.y,d=l.x,h=l.y;u>n!=h>n&&r<(d-c)*(n-u)/(h-u)+c&&(i=!i)}return i}function H7(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),q7(t)}function q7(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const i=e[n];for(;t.length>=2;){const a=t[t.length-1],o=t[t.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const i=e[n];for(;r.length>=2;){const a=r[r.length-1],o=r[r.length-2];if((a.x-o.x)*(i.y-o.y)>=(a.y-o.y)*(i.x-o.x))r.pop();else break}r.push(i)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var K7=zD,YD=HD;const Y7=K7,G7=k.forwardRef(({className:e,sideOffset:t=4,...r},n)=>f.jsx(YD,{ref:n,sideOffset:t,className:Pt("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md 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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));G7.displayName=YD.displayName;var qg=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(){}},Kg=typeof window>"u"||"Deno"in globalThis;function zn(){}function X7(e,t){return typeof e=="function"?e(t):e}function Z7(e){return typeof e=="number"&&e>=0&&e!==1/0}function J7(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ew(e,t){return typeof e=="function"?e(t):e}function Q7(e,t){return typeof e=="function"?e(t):e}function IE(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(n){if(t.queryHash!==X_(o,t.options))return!1}else if(!ff(t.queryKey,o))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function $E(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(df(t.options.mutationKey)!==df(a))return!1}else if(!ff(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function X_(e,t){return((t==null?void 0:t.queryKeyHashFn)||df)(e)}function df(e){return JSON.stringify(e,(t,r)=>tw(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function ff(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>ff(e[r],t[r])):!1}function GD(e,t){if(e===t)return e;const r=ME(e)&&ME(t);if(r||tw(e)&&tw(t)){const n=r?e:Object.keys(e),i=n.length,a=r?t:Object.keys(t),o=a.length,s=r?[]:{},l=new Set(n);let c=0;for(let u=0;u<o;u++){const d=r?u:a[u];(!r&&l.has(d)||r)&&e[d]===void 0&&t[d]===void 0?(s[d]=void 0,c++):(s[d]=GD(e[d],t[d]),s[d]===e[d]&&e[d]!==void 0&&c++)}return i===o&&c===i?e:s}return t}function ME(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function tw(e){if(!DE(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!DE(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function DE(e){return Object.prototype.toString.call(e)==="[object Object]"}function eq(e){return new Promise(t=>{setTimeout(t,e)})}function tq(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?GD(e,t):t}function rq(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function nq(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Z_=Symbol();function XD(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Z_?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var xs,Xa,pc,KR,iq=(KR=class extends qg{constructor(){super();Ue(this,xs);Ue(this,Xa);Ue(this,pc);Pe(this,pc,t=>{if(!Kg&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){K(this,Xa)||this.setEventListener(K(this,pc))}onUnsubscribe(){var t;this.hasListeners()||((t=K(this,Xa))==null||t.call(this),Pe(this,Xa,void 0))}setEventListener(t){var r;
vendor: 20,155 bytes, line 421
421Pe(this,pc,t),(r=K(this,Xa))==null||r.call(this),Pe(this,Xa,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){K(this,xs)!==t&&(Pe(this,xs,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof K(this,xs)=="boolean"?K(this,xs):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},xs=new WeakMap,Xa=new WeakMap,pc=new WeakMap,KR),ZD=new iq,mc,Za,yc,YR,aq=(YR=class extends qg{constructor(){super();Ue(this,mc,!0);Ue(this,Za);Ue(this,yc);Pe(this,yc,t=>{if(!Kg&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){K(this,Za)||this.setEventListener(K(this,yc))}onUnsubscribe(){var t;this.hasListeners()||((t=K(this,Za))==null||t.call(this),Pe(this,Za,void 0))}setEventListener(t){var r;Pe(this,yc,t),(r=K(this,Za))==null||r.call(this),Pe(this,Za,t(this.setOnline.bind(this)))}setOnline(t){K(this,mc)!==t&&(Pe(this,mc,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return K(this,mc)}},mc=new WeakMap,Za=new WeakMap,yc=new WeakMap,YR),qm=new aq;function oq(){let e,t;const r=new Promise((i,a)=>{e=i,t=a});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}function sq(e){return Math.min(1e3*2**e,3e4)}function JD(e){return(e??"online")==="online"?qm.isOnline():!0}var QD=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Lb(e){return e instanceof QD}function eL(e){let t=!1,r=0,n=!1,i;const a=oq(),o=m=>{var g;n||(h(new QD(m)),(g=e.abort)==null||g.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>ZD.isFocused()&&(e.networkMode==="always"||qm.isOnline())&&e.canRun(),u=()=>JD(e.networkMode)&&e.canRun(),d=m=>{var g;n||(n=!0,(g=e.onSuccess)==null||g.call(e,m),i==null||i(),a.resolve(m))},h=m=>{var g;n||(n=!0,(g=e.onError)==null||g.call(e,m),i==null||i(),a.reject(m))},p=()=>new Promise(m=>{var g;i=b=>{(n||c())&&m(b)},(g=e.onPause)==null||g.call(e)}).then(()=>{var m;i=void 0,n||(m=e.onContinue)==null||m.call(e)}),y=()=>{if(n)return;let m;const g=r===0?e.initialPromise:void 0;try{m=g??e.fn()}catch(b){m=Promise.reject(b)}Promise.resolve(m).then(d).catch(b=>{var _;if(n)return;const v=e.retry??(Kg?0:3),x=e.retryDelay??sq,S=typeof x=="function"?x(r,b):x,w=v===!0||typeof v=="number"&&r<v||typeof v=="function"&&v(r,b);if(t||!w){h(b);return}r++,(_=e.onFail)==null||_.call(e,r,b),eq(S).then(()=>c()?void 0:p()).then(()=>{t?h(b):y()})})};return{promise:a,cancel:o,continue:()=>(i==null||i(),a),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?y():p().then(y),a)}}var lq=e=>setTimeout(e,0);function cq(){let e=[],t=0,r=s=>{s()},n=s=>{s()},i=lq;const a=s=>{t?e.push(s):i(()=>{r(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{n(()=>{s.forEach(l=>{r(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{i=s}}}var Ar=cq(),ws,GR,tL=(GR=class{constructor(){Ue(this,ws)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Z7(this.gcTime)&&Pe(this,ws,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Kg?1/0:5*60*1e3))}clearGcTimeout(){K(this,ws)&&(clearTimeout(K(this,ws)),Pe(this,ws,void 0))}},ws=new WeakMap,GR),gc,Ss,mn,_s,pr,dh,ks,Hn,qi,XR,uq=(XR=class extends tL{constructor(t){super();Ue(this,Hn);Ue(this,gc);Ue(this,Ss);Ue(this,mn);Ue(this,_s);Ue(this,pr);Ue(this,dh);Ue(this,ks);Pe(this,ks,!1),Pe(this,dh,t.defaultOptions),this.setOptions(t.options),this.observers=[],Pe(this,_s,t.client),Pe(this,mn,K(this,_s).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Pe(this,gc,fq(this.options)),this.state=t.state??K(this,gc),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=K(this,pr))==null?void 0:t.promise}setOptions(t){this.options={...K(this,dh),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&K(this,mn).remove(this)}setData(t,r){const n=tq(this.state.data,t,this.options);return dr(this,Hn,qi).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){dr(this,Hn,qi).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=K(this,pr))==null?void 0:n.promise;return(i=K(this,pr))==null||i.cancel(t),r?r.then(zn).catch(zn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(K(this,gc))}isActive(){return this.observers.some(t=>Q7(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Z_||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ew(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:!J7(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=K(this,pr))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=K(this,pr))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),K(this,mn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(K(this,pr)&&(K(this,ks)?K(this,pr).cancel({revert:!0}):K(this,pr).cancelRetry()),this.scheduleGc()),K(this,mn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||dr(this,Hn,qi).call(this,{type:"invalidate"})}fetch(t,r){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(K(this,pr))return K(this,pr).continueRetry(),K(this,pr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const n=new AbortController,i=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(Pe(this,ks,!0),n.signal)})},a=()=>{const h=XD(this.options,r),y=(()=>{const m={client:K(this,_s),queryKey:this.queryKey,meta:this.meta};return i(m),m})();return Pe(this,ks,!1),this.options.persister?this.options.persister(h,y,this):h(y)},s=(()=>{const h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:K(this,_s),state:this.state,fetchFn:a};return i(h),h})();(c=this.options.behavior)==null||c.onFetch(s,this),Pe(this,Ss,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&dr(this,Hn,qi).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const l=h=>{var p,y,m,g;Lb(h)&&h.silent||dr(this,Hn,qi).call(this,{type:"error",error:h}),Lb(h)||((y=(p=K(this,mn).config).onError)==null||y.call(p,h,this),(g=(m=K(this,mn).config).onSettled)==null||g.call(m,this.state.data,h,this)),this.scheduleGc()};return Pe(this,pr,eL({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,abort:n.abort.bind(n),onSuccess:h=>{var p,y,m,g;if(h===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(h)}catch(b){l(b);return}(y=(p=K(this,mn).config).onSuccess)==null||y.call(p,h,this),(g=(m=K(this,mn).config).onSettled)==null||g.call(m,h,this.state.error,this),this.scheduleGc()},onError:l,onFail:(h,p)=>{dr(this,Hn,qi).call(this,{type:"failed",failureCount:h,error:p})},onPause:()=>{dr(this,Hn,qi).call(this,{type:"pause"})},onContinue:()=>{dr(this,Hn,qi).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),K(this,pr).start()}},gc=new WeakMap,Ss=new WeakMap,mn=new WeakMap,_s=new WeakMap,pr=new WeakMap,dh=new WeakMap,ks=new WeakMap,Hn=new WeakSet,qi=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...dq(n.data,this.options),fetchMeta:t.meta??null};case"success":return Pe(this,Ss,void 0),{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Lb(i)&&i.revert&&K(this,Ss)?{...K(this,Ss),fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Ar.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),K(this,mn).notify({query:this,type:"updated",action:t})})},XR);function dq(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:JD(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function fq(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var gi,ZR,hq=(ZR=class extends qg{constructor(t={}){super();Ue(this,gi);this.config=t,Pe(this,gi,new Map)}build(t,r,n){const i=r.queryKey,a=r.queryHash??X_(i,r);let o=this.get(a);return o||(o=new uq({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){K(this,gi).has(t.queryHash)||(K(this,gi).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=K(this,gi).get(t.queryHash);r&&(t.destroy(),r===t&&K(this,gi).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ar.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return K(this,gi).get(t)}getAll(){return[...K(this,gi).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>IE(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>IE(t,n)):r}notify(t){Ar.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){Ar.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ar.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},gi=new WeakMap,ZR),vi,wr,As,bi,Ma,JR,pq=(JR=class extends tL{constructor(t){super();Ue(this,bi);Ue(this,vi);Ue(this,wr);Ue(this,As);this.mutationId=t.mutationId,Pe(this,wr,t.mutationCache),Pe(this,vi,[]),this.state=t.state||mq(),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,vi).includes(t)||(K(this,vi).push(t),this.clearGcTimeout(),K(this,wr).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Pe(this,vi,K(this,vi).filter(r=>r!==t)),this.scheduleGc(),K(this,wr).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){K(this,vi).length||(this.state.status==="pending"?this.scheduleGc():K(this,wr).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,o,s,l,c,u,d,h,p,y,m,g,b,v,x,S,w,_,A,T;const r=()=>{dr(this,bi,Ma).call(this,{type:"continue"})};Pe(this,As,eL({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(j,P)=>{dr(this,bi,Ma).call(this,{type:"failed",failureCount:j,error:P})},onPause:()=>{dr(this,bi,Ma).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>K(this,wr).canRun(this)}));const n=this.state.status==="pending",i=!K(this,As).canStart();try{if(n)r();else{dr(this,bi,Ma).call(this,{type:"pending",variables:t,isPaused:i}),await((o=(a=K(this,wr).config).onMutate)==null?void 0:o.call(a,t,this));const P=await((l=(s=this.options).onMutate)==null?void 0:l.call(s,t));P!==this.state.context&&dr(this,bi,Ma).call(this,{type:"pending",context:P,variables:t,isPaused:i})}const j=await K(this,As).start();return await((u=(c=K(this,wr).config).onSuccess)==null?void 0:u.call(c,j,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,j,t,this.state.context)),await((y=(p=K(this,wr).config).onSettled)==null?void 0:y.call(p,j,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,j,null,t,this.state.context)),dr(this,bi,Ma).call(this,{type:"success",data:j}),j}catch(j){try{throw await((v=(b=K(this,wr).config).onError)==null?void 0:v.call(b,j,t,this.state.context,this)),await((S=(x=this.options).onError)==null?void 0:S.call(x,j,t,this.state.context)),await((_=(w=K(this,wr).config).onSettled)==null?void 0:_.call(w,void 0,j,this.state.variables,this.state.context,this)),await((T=(A=this.options).onSettled)==null?void 0:T.call(A,void 0,j,t,this.state.context)),j}finally{dr(this,bi,Ma).call(this,{type:"error",error:j})}}finally{K(this,wr).runNext(this)}}},vi=new WeakMap,wr=new WeakMap,As=new WeakMap,bi=new WeakSet,Ma=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),Ar.batch(()=>{K(this,vi).forEach(n=>{n.onMutationUpdate(t)}),K(this,wr).notify({mutation:this,type:"updated",action:t})})},JR);function mq(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ra,qn,fh,QR,yq=(QR=class extends qg{constructor(t={}){super();Ue(this,ra);Ue(this,qn);Ue(this,fh);this.config=t,Pe(this,ra,new Set),Pe(this,qn,new Map),Pe(this,fh,0)}build(t,r,n){const i=new pq({mutationCache:this,mutationId:++Wh(this,fh)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){K(this,ra).add(t);const r=hp(t);if(typeof r=="string"){const n=K(this,qn).get(r);n?n.push(t):K(this,qn).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(K(this,ra).delete(t)){const r=hp(t);if(typeof r=="string"){const n=K(this,qn).get(r);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&K(this,qn).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=hp(t);if(typeof r=="string"){const n=K(this,qn).get(r),i=n==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var n;const r=hp(t);if(typeof r=="string"){const i=(n=K(this,qn).get(r))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ar.batch(()=>{K(this,ra).forEach(t=>{this.notify({type:"removed",mutation:t})}),K(this,ra).clear(),K(this,qn).clear()})}getAll(){return Array.from(K(this,ra))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>$E(r,n))}findAll(t={}){return this.getAll().filter(r=>$E(t,r))}notify(t){Ar.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return Ar.batch(()=>Promise.all(t.map(r=>r.continue().catch(zn))))}},ra=new WeakMap,qn=new WeakMap,fh=new WeakMap,QR);function hp(e){var t;return(t=e.options.scope)==null?void 0:t.id}function LE(e){return{onFetch:(t,r)=>{var u,d,h,p,y;const n=t.options,i=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,a=((p=t.state.data)==null?void 0:p.pages)||[],o=((y=t.state.data)==null?void 0:y.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let m=!1;const g=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},b=XD(t.options,t.fetchOptions),v=async(x,S,w)=>{if(m)return Promise.reject();if(S==null&&x.pages.length)return Promise.resolve(x);const A=(()=>{const C={client:t.client,queryKey:t.queryKey,pageParam:S,direction:w?"backward":"forward",meta:t.options.meta};return g(C),C})(),T=await b(A),{maxPages:j}=t.options,P=w?nq:rq;return{pages:P(x.pages,T,j),pageParams:P(x.pageParams,S,j)}};if(i&&a.length){const x=i==="backward",S=x?gq:BE,w={pages:a,pageParams:o},_=S(n,w);s=await v(w,_,x)}else{const x=e??a.length;do{const S=l===0?o[0]??n.initialPageParam:BE(n,s);if(l>0&&S==null)break;s=await v(s,S),l++}while(l<x)}return s};t.options.persister?t.fetchFn=()=>{var m,g;return(g=(m=t.options).persister)==null?void 0:g.call(m,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=c}}}function BE(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function gq(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var kt,Ja,Qa,vc,bc,eo,xc,wc,eI,vq=(eI=class{constructor(e={}){Ue(this,kt);Ue(this,Ja);Ue(this,Qa);Ue(this,vc);Ue(this,bc);Ue(this,eo);Ue(this,xc);Ue(this,wc);Pe(this,kt,e.queryCache||new hq),Pe(this,Ja,e.mutationCache||new yq),Pe(this,Qa,e.defaultOptions||{}),Pe(this,vc,new Map),Pe(this,bc,new Map),Pe(this,eo,0)}mount(){Wh(this,eo)._++,K(this,eo)===1&&(Pe(this,xc,ZD.subscribe(async e=>{e&&(await this.resumePausedMutations(),K(this,kt).onFocus())})),Pe(this,wc,qm.subscribe(async e=>{e&&(await this.resumePausedMutations(),K(this,kt).onOnline())})))}unmount(){var e,t;Wh(this,eo)._--,K(this,eo)===0&&((e=K(this,xc))==null||e.call(this),Pe(this,xc,void 0),(t=K(this,wc))==null||t.call(this),Pe(this,wc,void 0))}isFetching(e){return K(this,kt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return K(this,Ja).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=K(this,kt).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=K(this,kt).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(ew(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return K(this,kt).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=K(this,kt).get(n.queryHash),a=i==null?void 0:i.state.data,o=X7(t,a);if(o!==void 0)return K(this,kt).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return Ar.batch(()=>K(this,kt).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=K(this,kt).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=K(this,kt);Ar.batch(()=>
421{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=K(this,kt);return Ar.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Ar.batch(()=>K(this,kt).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(zn).catch(zn)}invalidateQueries(e,t={}){return Ar.batch(()=>(K(this,kt).findAll(e).forEach(r=>{r.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 r={...t,cancelRefetch:t.cancelRefetch??!0},n=Ar.batch(()=>K(this,kt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch(zn)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(zn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=K(this,kt).build(this,t);return r.isStaleByTime(ew(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(zn).catch(zn)}fetchInfiniteQuery(e){return e.behavior=LE(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(zn).catch(zn)}ensureInfiniteQueryData(e){return e.behavior=LE(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return qm.isOnline()?K(this,Ja).resumePausedMutations():Promise.resolve()}getQueryCache(){return K(this,kt)}getMutationCache(){return K(this,Ja)}getDefaultOptions(){return K(this,Qa)}setDefaultOptions(e){Pe(this,Qa,e)}setQueryDefaults(e,t){K(this,vc).set(df(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...K(this,vc).values()],r={};return t.forEach(n=>{ff(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){K(this,bc).set(df(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...K(this,bc).values()],r={};return t.forEach(n=>{ff(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...K(this,Qa).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=X_(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===Z_&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...K(this,Qa).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){K(this,kt).clear(),K(this,Ja).clear()}},kt=new WeakMap,Ja=new WeakMap,Qa=new WeakMap,vc=new WeakMap,bc=new WeakMap,eo=new WeakMap,xc=new WeakMap,wc=new WeakMap,eI),bq=k.createContext(void 0),xq=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(bq.Provider,{value:e,children:t}));/** 422 * @remix-run/router v1.23.0 423 * 424 * Copyright (c) Remix Software Inc. 425 * 426 * This source code is licensed under the MIT license found in the 427 * LICENSE.md file in the root directory of this source tree. 428 * 429 * @license MIT 430 */function hf(){return hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hf.apply(this,arguments)}var no;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(no||(no={}));const FE="popstate";function wq(e){e===void 0&&(e={});function t(n,i){let{pathname:a,search:o,hash:s}=n.location;return rw("",{pathname:a,search:o,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Km(i)}return _q(t,r,null,e)}function Ft(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function rL(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Sq(){return Math.random().toString(36).substr(2,8)}function UE(e,t){return{usr:e.state,key:e.key,idx:t}}function rw(e,t,r,n){return r===void 0&&(r=null),hf({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?yu(t):t,{state:r,key:t&&t.key||n||Sq()})}function Km(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function yu(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function _q(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s=no.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(hf({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){s=no.Pop;let g=u(),b=g==null?null:g-c;c=g,l&&l({action:s,location:m.location,delta:b})}function h(g,b){s=no.Push;let v=rw(m.location,g,b);c=u()+1;let x=UE(v,c),S=m.createHref(v);try{o.pushState(x,"",S)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(S)}a&&l&&l({action:s,location:m.location,delta:1})}function p(g,b){s=no.Replace;let v=rw(m.location,g,b);c=u();let x=UE(v,c),S=m.createHref(v);o.replaceState(x,"",S),a&&l&&l({action:s,location:m.location,delta:0})}function y(g){let b=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof g=="string"?g:Km(g);
vendor: 2,909 bytes, line 430
430return v=v.replace(/ $/,"%20"),Ft(b,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,b)}let m={get action(){return s},get location(){return e(i,o)},listen(g){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(FE,d),l=g,()=>{i.removeEventListener(FE,d),l=null}},createHref(g){return t(i,g)},createURL:y,encodeLocation(g){let b=y(g);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:p,go(g){return o.go(g)}};return m}var VE;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(VE||(VE={}));function kq(e,t,r){return r===void 0&&(r="/"),Aq(e,t,r,!1)}function Aq(e,t,r,n){let i=typeof t=="string"?yu(t):t,a=J_(i.pathname||"/",r);if(a==null)return null;let o=nL(e);Tq(o);let s=null;for(let l=0;s==null&&l<o.length;++l){let c=Dq(a);s=$q(o[l],c,n)}return s}function nL(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(a,o,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(Ft(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=go([n,l.relativePath]),u=r.concat(l);a.children&&a.children.length>0&&(Ft(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),nL(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:Rq(c,a.index),routesMeta:u})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of iL(a.path))i(a,o,l)}),t}function iL(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=iL(n.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Tq(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Iq(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Eq=/^:[\w-]+$/,jq=3,Oq=2,Pq=1,Cq=10,Nq=-2,zE=e=>e==="*";function Rq(e,t){let r=e.split("/"),n=r.length;return r.some(zE)&&(n+=Nq),t&&(n+=Oq),r.filter(i=>!zE(i)).reduce((i,a)=>i+(Eq.test(a)?jq:a===""?Pq:Cq),n)}function Iq(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function $q(e,t,r){let{routesMeta:n}=e,i={},a="/",o=[];for(let s=0;s<n.length;++s){let l=n[s],c=s===n.length-1,u=a==="/"?t:t.slice(a.length)||"/",d=WE({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),h=l.route;if(!d&&c&&r&&!n[n.length-1].route.index&&(d=WE({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;
vendor: 9,263 bytes, lines 430-439
430Object.assign(i,d.params),o.push({params:i,pathname:go([a,d.pathname]),pathnameBase:Uq(go([a,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(a=go([a,d.pathnameBase]))}return o}function WE(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Mq(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((c,u,d)=>{let{paramName:h,isOptional:p}=u;if(h==="*"){let m=s[d]||"";o=a.slice(0,a.length-m.length).replace(/(.)\/+$/,"$1")}const y=s[d];return p&&!y?c[h]=void 0:c[h]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:o,pattern:e}}function Mq(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),rL(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 n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function Dq(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return rL(!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 J_(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Lq(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?yu(e):e;return{pathname:r?r.startsWith("/")?r:Bq(r,t):t,search:Vq(n),hash:zq(i)}}function Bq(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Bb(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Fq(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function aL(e,t){let r=Fq(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function oL(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=yu(e):(i=hf({},e),Ft(!i.pathname||!i.pathname.includes("?"),Bb("?","pathname","search",i)),Ft(!i.pathname||!i.pathname.includes("#"),Bb("#","pathname","hash",i)),Ft(!i.search||!i.search.includes("#"),Bb("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=r;else{let d=t.length-1;if(!n&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}s=d>=0?t[d]:"/"}let l=Lq(i,s),c=o&&o!=="/"&&o.endsWith("/"),u=(a||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const go=e=>e.join("/").replace(/\/\/+/g,"/"),Uq=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Vq=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,zq=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Wq(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const sL=["post","put","patch","delete"];new Set(sL);const Hq=["get",...sL];new Set(Hq);/** 431 * React Router v6.30.1 432 * 433 * Copyright (c) Remix Software Inc. 434 * 435 * This source code is licensed under the MIT license found in the 436 * LICENSE.md file in the root directory of this source tree. 437 * 438 * @license MIT 439 */function pf(){return pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pf.apply(this,arguments)}const Q_=k.createContext(null),qq=k.createContext(null),Qs=k.createContext(null),Yg=k.createContext(null),Ro=k.createContext({outlet:null,matches:[],isDataRoute:!1}),lL=k.createContext(null);function Kq(e,t){let{relative:r}=t===void 0?{}:t;Ah()||Ft(!1);let{basename:n,navigator:i}=k.useContext(Qs),{hash:a,pathname:o,search:s}=uL(e,{relative:r}),l=o;return n!=="/"&&(l=o==="/"?n:go([n,o])),i.createHref({pathname:l,search:s,hash:a})}function Ah(){return k.useContext(Yg)!=null}function Io(){return Ah()||Ft(!1),k.useContext(Yg).location}function cL(e){k.useContext(Qs).static||k.useLayoutEffect(e)}function ek(){let{isDataRoute:e}=k.useContext(Ro);return e?sK():Yq()}function Yq(){Ah()||Ft(!1);let e=k.useContext(Q_),{basename:t,future:r,navigator:n}=k.useContext(Qs),{matches:i}=k.useContext(Ro),{pathname:a}=Io(),o=JSON.stringify(aL(i,r.v7_relativeSplatPath)),s=k.useRef(!1);return cL(()=>{s.current=!0}),k.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){n.go(c);return}let d=oL(c,JSON.parse(o),a,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:go([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,o,a,e])}function Gq(){let{matches:e}=k.useContext(Ro),t=e[e.length-1];return t?t.params:{}}function uL(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=k.useContext(Qs),{matches:i}=k.useContext(Ro),{pathname:a}=Io(),o=JSON.stringify(aL(i,n.v7_relativeSplatPath));return k.useMemo(()=>oL(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function Xq(e,t){return Zq(e,t)}function Zq(e,t,r,n){Ah()||Ft(!1);let{navigator:i}=k.useContext(Qs),{matches:a}=k.useContext(Ro),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=Io(),u;if(t){var d;let g=typeof t=="string"?yu(t):t;l==="/"||(d=g.pathname)!=null&&d.startsWith(l)||Ft(!1),u=g}else u=c;let h=u.pathname||"/",p=h;if(l!=="/"){let g=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(g.length).join("/")}let y=kq(e,{pathname:p}),m=rK(y&&y.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:go([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:go([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,r,n);return t&&m?k.createElement(Yg.Provider,{value:{location:pf({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:no.Pop}},m):m}function Jq(){let e=oK(),t=Wq(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),r?k.createElement("pre",{style:i},r):null,null)}const Qq=k.createElement(Jq,null);class eK extends k.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?k.createElement(Ro.Provider,{value:this.props.routeContext},k.createElement(lL.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tK(e){let{routeContext:t,match:r,children:n}=e,i=k.useContext(Q_);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),k.createElement(Ro.Provider,{value:t},n)}function rK(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let u=o.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||Ft(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:h,errors:p}=r,y=d.route.loader&&h[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||y){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,d,h)=>{let p,y=!1,m=null,g=null;r&&(p=s&&d.route.id?s[d.route.id]:void 0,m=d.route.errorElement||Qq,l&&(c<0&&h===0?(y=!0,g=null):c===h&&(y=!0,g=d.route.hydrateFallbackElement||null)));let b=t.concat(o.slice(0,h+1)),v=()=>{let x;return p?x=m:y?x=g:d.route.Component?x=k.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=u,k.createElement(tK,{match:d,routeC
439ontext:{outlet:u,matches:b,isDataRoute:r!=null},children:x})};return r&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?k.createElement(eK,{location:r.location,revalidation:r.revalidation,component:m,error:p,children:v(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):v()},null)}var dL=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(dL||{}),Ym=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}(Ym||{});function nK(e){let t=k.useContext(Q_);return t||Ft(!1),t}function iK(e){let t=k.useContext(qq);return t||Ft(!1),t}function aK(e){let t=k.useContext(Ro);return t||Ft(!1),t}function fL(e){let t=aK(),r=t.matches[t.matches.length-1];return r.route.id||Ft(!1),r.route.id}function oK(){var e;let t=k.useContext(lL),r=iK(Ym.UseRouteError),n=fL(Ym.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function sK(){let{router:e}=nK(dL.UseNavigateStable),t=fL(Ym.UseNavigateStable),r=k.useRef(!1);return cL(()=>{r.current=!0}),k.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,pf({fromRouteId:t},a)))},[e,t])}function lK(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function dt(e){Ft(!1)}function cK(e){let{basename:t="/",children:r=null,location:n,navigationType:i=no.Pop,navigator:a,static:o=!1,future:s}=e;Ah()&&Ft(!1);let l=t.replace(/^\/*/,"/"),c=k.useMemo(()=>({basename:l,navigator:a,static:o,future:pf({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof n=="string"&&(n=yu(n));let{pathname:u="/",search:d="",hash:h="",state:p=null,key:y="default"}=n,m=k.useMemo(()=>{let g=J_(u,l);return g==null?null:{location:{pathname:g,search:d,hash:h,state:p,key:y},navigationType:i}},[l,u,d,h,p,y,i]);return m==null?null:k.createElement(Qs.Provider,{value:c},k.createElement(Yg.Provider,{children:r,value:m}))}function uK(e){let{children:t,location:r}=e;return Xq(nw(t),r)}new Promise(()=>{});function nw(e,t){t===void 0&&(t=[]);let r=[];return k.Children.forEach(e,(n,i)=>{if(!k.isValidElement(n))return;let a=[...t,i];if(n.type===k.Fragment){r.push.apply(r,nw(n.props.children,a));return}n.type!==dt&&Ft(!1),!n.props.index||!n.props.children||Ft(!1);let o={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=nw(n.props.children,a)),r.push(o)}),r}/** 440 * React Router DOM v6.30.1 441 * 442 * Copyright (c) Remix Software Inc. 443 * 444 * This source code is licensed under the MIT license found in the 445 * LICENSE.md file in the root directory of this source tree. 446 * 447 * @license MIT 448 */function iw(){return iw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iw.apply(this,arguments)}function dK(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function fK(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hK(e,t){return e.button===0&&(!t||t==="_self")&&!fK(e)}const pK=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],mK="6";try{window.__reactRouterVersion=mK}catch{}const yK="startTransition",HE=$S[yK];function gK(e){let{basename:t,children:r,future:n,window:i}=e,a=k.useRef();a.current==null&&(a.current=wq({window:i,v5Compat:!0}));let o=a.current,[s,l]=k.useState({action:o.action,location:o.location}),{v7_startTransition:c}=n||{},u=k.useCallback(d=>{c&&HE?HE(()=>l(d)):l(d)},[l,c]);return k.useLayoutEffect(()=>o.listen(u),[o,u]),k.useEffect(()=>lK(n),[n]),k.createElement(cK,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:o,future:n})}const vK=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bK=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ke=k.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,h=dK(t,pK),{basename:p}=k.useContext(Qs),y,m=!1;if(typeof c=="string"&&bK.test(c)&&(y=c,vK))try{let x=new URL(window.location.href),S=c.startsWith("//")?new URL(x.protocol+c):new URL(c),w=J_(S.pathname,p);S.origin===x.origin&&w!=null?c=w+S.search+S.hash:m=!0}catch{}let g=Kq(c,{relative:i}),b=xK(c,{replace:o,state:s,target:l,preventScrollReset:u,relative:i,viewTransition:d});
vendor: 30,107 bytes, line 448
448function v(x){n&&n(x),x.defaultPrevented||b(x)}return k.createElement("a",iw({},h,{href:y||g,onClick:m||a?n:v,ref:r,target:l}))});var qE;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(qE||(qE={}));var KE;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(KE||(KE={}));function xK(e,t){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,l=ek(),c=Io(),u=uL(e,{relative:o});return k.useCallback(d=>{if(hK(d,r)){d.preventDefault();let h=n!==void 0?n:Km(c)===Km(u);l(e,{replace:h,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[c,l,u,n,i,r,e,a,o,s])}const wK=()=>{const{pathname:e}=Io();return k.useEffect(()=>{window.scrollTo(0,0)},[e]),null},tk=k.createContext({});function rk(e){const t=k.useRef(null);return t.current===null&&(t.current=e()),t.current}const hL=typeof window<"u",pL=hL?k.useLayoutEffect:k.useEffect,Gg=k.createContext(null);function nk(e,t){e.indexOf(t)===-1&&e.push(t)}function Gm(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const Mi=(e,t,r)=>r>t?t:r<e?e:r;let Xg=()=>{},Cc=()=>{};const va={},mL=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function yL(e){return typeof e=="object"&&e!==null}const gL=e=>/^0[^.\s]+$/u.test(e);function ik(e){let t;return()=>(t===void 0&&(t=e()),t)}const kn=e=>e,SK=(e,t)=>r=>t(e(r)),Th=(...e)=>e.reduce(SK),mf=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n};class ak{constructor(){this.subscriptions=[]}add(t){return nk(this.subscriptions,t),()=>Gm(this.subscriptions,t)}notify(t,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const An=e=>e*1e3,wn=e=>e/1e3;function vL(e,t){return t?e*(1e3/t):0}const bL=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,_K=1e-7,kK=12;function AK(e,t,r,n,i){let a,o,s=0;do o=t+(r-t)/2,a=bL(o,n,i)-e,a>0?r=o:t=o;while(Math.abs(a)>_K&&++s<kK);return o}function Eh(e,t,r,n){if(e===t&&r===n)return kn;const i=a=>AK(a,0,1,e,r);return a=>a===0||a===1?a:bL(i(a),t,n)}const xL=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,wL=e=>t=>1-e(1-t),SL=Eh(.33,1.53,.69,.99),ok=wL(SL),_L=xL(ok),kL=e=>(e*=2)<1?.5*ok(e):.5*(2-Math.pow(2,-10*(e-1))),sk=e=>1-Math.sin(Math.acos(e)),AL=wL(sk),TL=xL(sk),TK=Eh(.42,0,1,1),EK=Eh(0,0,.58,1),EL=Eh(.42,0,.58,1),jK=e=>Array.isArray(e)&&typeof e[0]!="number",jL=e=>Array.isArray(e)&&typeof e[0]=="number",YE={linear:kn,easeIn:TK,easeInOut:EL,easeOut:EK,circIn:sk,circInOut:TL,circOut:AL,backIn:ok,backInOut:_L,backOut:SL,anticipate:kL},OK=e=>typeof e=="string",GE=e=>{if(jL(e)){Cc(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,n,i]=e;return Eh(t,r,n,i)}else if(OK(e))return Cc(YE[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),YE[e];return e},pp=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],XE={value:null,addProjectionMetrics:null};function PK(e,t){let r=new Set,n=new Set,i=!1,a=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1},l=0;function c(d){o.has(d)&&(u.schedule(d),e()),l++,d(s)}const u={schedule:(d,h=!1,p=!1)=>{const m=p&&i?r:n;return h&&o.add(d),m.has(d)||m.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(s=d,i){a=!0;return}i=!0,[r,n]=[n,r],r.forEach(c),t&&XE.value&&XE.value.frameloop[t].push(l),l=0,r.clear(),i=!1,a&&(a=!1,u.process(d))}};return u}const CK=40;function OL(e,t){let r=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,o=pp.reduce((x,S)=>(x[S]=PK(a,t?S:void 0),x),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:p,postRender:y}=o,m=()=>{const x=va.useManualTiming?i.timestamp:performance.now();r=!1,va.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(x-i.timestamp,CK),1)),i.timestamp=x,i.isProcessing=!0,s.process(i),l.process(i),c.process(i),u.process(i),d.process(i),h.process(i),p.process(i),y.process(i),i.isProcessing=!1,r&&t&&(n=!1,e(m))},g=()=>{r=!0,n=!0,i.isProcessing||e(m)};return{schedule:pp.reduce((x,S)=>{const w=o[S];return x[S]=(_,A=!1,T=!1)=>(r||g(),w.schedule(_,A,T)),x},{}),cancel:x=>{for(let S=0;S<pp.length;S++)o[pp[S]].cancel(x)},state:i,steps:o}}const{schedule:st,cancel:To,state:or,steps:Fb}=OL(typeof requestAnimationFrame<"u"?requestAnimationFrame:kn,!0);let om;function NK(){om=void 0}const Tr={now:()=>(om===void 0&&Tr.set(or.isProcessing||va.useManualTiming?or.timestamp:performance.now()),om),set:e=>{om=e,queueMicrotask(NK)}},PL=e=>t=>typeof t=="string"&&t.startsWith(e),CL=PL("--"),RK=PL("var(--"),lk=e=>RK(e)?IK.test(e.split("/*")[0].trim()):!1,IK=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ZE(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const gu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},yf={...gu,transform:e=>Mi(0,1,e)},mp={...gu,default:1},Td=e=>Math.round(e*1e5)/1e5,ck=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function $K(e){return e==null}const MK=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,uk=(e,t)=>r=>!!(typeof r=="string"&&MK.test(r)&&r.startsWith(e)||t&&!$K(r)&&Object.prototype.hasOwnProperty.call(r,t)),NL=(e,t,r)=>n=>{if(typeof n!="string")return n;const[i,a,o,s]=n.match(ck);return{[e]:parseFloat(i),[t]:parseFloat(a),[r]:parseFloat(o),alpha:s!==void 0?parseFloat(s):1}},DK=e=>Mi(0,255,e),Ub={...gu,transform:e=>Math.round(DK(e))},ds={test:uk("rgb","red"),parse:NL("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Ub.transform(e)+", "+Ub.transform(t)+", "+Ub.transform(r)+", "+Td(yf.transform(n))+")"};function LK(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const aw={test:uk("#"),parse:LK,transform:ds.transform},jh=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Da=jh("deg"),Pi=jh("%"),he=jh("px"),BK=jh("vh"),FK=jh("vw"),JE={...Pi,parse:e=>Pi.parse(e)/100,transform:e=>Pi.transform(e*100)},Vl={test:uk("hsl","hue"),parse:NL("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Pi.transform(Td(t))+", "+Pi.transform(Td(r))+", "+Td(yf.transform(n))+")"},Lt={test:e=>ds.test(e)||aw.test(e)||Vl.test(e),parse:e=>ds.test(e)?ds.parse(e):Vl.test(e)?Vl.parse(e):aw.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ds.transform(e):Vl.transform(e),getAnimatableNone:e=>{const t=Lt.parse(e);return t.alpha=0,Lt.transform(t)}},UK=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function VK(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ck))==null?void 0:t.length)||0)+(((r=e.match(UK))==null?void 0:r.length)||0)>0}const RL="number",IL="color",zK="var",WK="var(",QE="${}",HK=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function gf(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[];let a=0;const s=t.replace(HK,l=>(Lt.test(l)?(n.color.push(a),i.push(IL),r.push(Lt.parse(l))):l.startsWith(WK)?(n.var.push(a),i.push(zK),r.push(l)):(n.number.push(a),i.push(RL),r.push(parseFloat(l))),++a,QE)).split(QE);return{values:r,split:s,indexes:n,types:i}}function $L(e){return gf(e).values}function ML(e){const{split:t,types:r}=gf(e),n=t.length;return i=>{let a="";for(let o=0;o<n;o++)if(a+=t[o],i[o]!==void 0){const s=r[o];s===RL?a+=Td(i[o]):s===IL?a+=Lt.transform(i[o]):a+=i[o]}return a}}const qK=e=>typeof e=="number"?0:Lt.test(e)?Lt.getAnimatableNone(e):e;function KK(e){const t=$L(e);return ML(e)(t.map(qK))}const Eo={test:VK,parse:$L,createTransformer:ML,getAnimatableNone:KK};function Vb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function YK({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,a=0,o=0;if(!t)i=a=o=r;else{const s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;i=Vb(l,s,e+1/3),a=Vb(l,s,e),o=Vb(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:n}}function Xm(e,t){return r=>r>0?t:e}const wt=(e,t,r)=>e+(t-e)*r,zb=(e,t,r)=>{const n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},GK=[aw,ds,Vl],XK=e=>GK.find(t=>t.test(e));function ej(e){const t=XK(e);if(Xg(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===Vl&&(r=YK(r)),r}const tj=(e,t)=>{const r=ej(e),n=ej(t);if(!r||!n)return Xm(e,t);const i={...r};return a=>(i.red=zb(r.red,n.red,a),i.green=zb(r.green,n.green,a),i.blue=zb(r.blue,n.blue,a),i.alpha=wt(r.alpha,n.alpha,a),ds.transform(i))},ow=new Set(["none","hidden"]);function ZK(e,t){return ow.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function JK(e,t){return r=>wt(e,t,r)}function dk(e){return typeof e=="number"?JK:typeof e=="string"?lk(e)?Xm:Lt.test(e)?tj:tY:Array.isArray(e)?DL:typeof e=="object"?Lt.test(e)?tj:QK:Xm}function DL(e,t){const r=[...e],n=r.length,i=e.map((a,o)=>dk(a)(a,t[o]));return a=>{for(let o=0;o<n;o++)r[o]=i[o](a);return r}}function QK(e,t){const r={...e,...t},n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=dk(e[i])(e[i],t[i]));return i=>{for(const a in n)r[a]=n[a](i);return r}}function eY(e,t){const r=[],n={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],o=e.indexes[a][n[a]],s=e.values[o]??0;r[i]=s,n[a]++}return r}const tY=(e,t)=>{const r=Eo.createTransformer(t),n=gf(e),i=gf(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?ow.has(e)&&!i.values.length||ow.has(t)&&!n.values.length?ZK(e,t):Th(DL(eY(n,i),i.values),r):(Xg(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Xm(e,t))};function LL(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?wt(e,t,r):dk(e)(e,t)}const rY=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>st.update(t,r),stop:()=>To(t),now:()=>or.isProcessing?or.timestamp:Tr.now()}},BL=(e,t,r=10)=>{let n="";const i=Math.max(Math.round(t/r),2);for(let a=0;a<i;a++)n+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},Zm=2e4;function fk(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<Zm;)t+=r,n=e.next(t);return t>=Zm?1/0:t}function nY(e,t=100,r){const n=r({...e,keyframes:[0,t]}),i=Math.min(fk(n),Zm);return{type:"keyframes",ease:a=>n.next(i*a).value/t,duration:wn(i)}}const iY=5;function FL(e,t,r){const n=Math.max(t-iY,0);return vL(r-e(n),t-n)}const bt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Wb=.001;function aY({duration:e=bt.duration,bounce:t=bt.bounce,velocity:r=bt.velocity,mass:n=bt.mass}){let i,a;Xg(e<=An(bt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-t;o=Mi(bt.minDamping,bt.maxDamping,o),e=Mi(bt.minDuration,bt.maxDuration,wn(e)),o<1?(i=c=>{const u=c*o,d=u*e,h=u-r,p=sw(c,o),y=Math.exp(-d);return Wb-h/p*y},a=c=>{const d=c*o*e,h=d*r+r,p=Math.pow(o,2)*Math.pow(c,2)*e,y=Math.exp(-d),m=sw(Math.pow(c,2),o);return(-i(c)+Wb>0?-1:1)*((h-p)*y)/m}):(i=c=>{const u=Math.exp(-c*e),d=(c-r)*e+1;return-Wb+u*d},a=c=>{const u=Math.exp(-c*e),d=(r-c)*(e*e);return u*d});const s=5/e,l=sY(i,a,s);if(e=An(e),isNaN(l))return{stiffness:bt.stiffness,damping:bt.damping,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:o*2*Math.sqrt(n*c),duration:e}}}const oY=12;function sY(e,t,r){let n=r;for(let i=1;i<oY;i++)n=n-e(n)/t(n);return n}function sw(e,t){return e*Math.sqrt(1-t*t)}const lY=["duration","bounce"],cY=["stiffness","damping","mass"];function rj(e,t){return t.some(r=>e[r]!==void 0)}function uY(e){let t={velocity:bt.velocity,stiffness:bt.stiffness,damping:bt.damping,mass:bt.mass,isResolvedFromDuration:!1,...e};if(!rj(e,cY)&&rj(e,lY))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),i=n*n,a=2*Mi(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:bt.mass,stiffness:i,damping:a}}else{const r=aY(e);t={...t,...r,mass:bt.mass},t.isResolvedFromDuration=!0}return t}function Jm(e=bt.visualDuration,t=bt.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:i}=r;const a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:p}=uY({...r,velocity:-wn(r.velocity||0)}),y=h||0,m=c/(2*Math.sqrt(l*u)),g=o-a,b=wn(Math.sqrt(l/u)),v=Math.abs(g)<5;n||(n=v?bt.restSpeed.granular:bt.restSpeed.default),i||(i=v?bt.restDelta.granular:bt.restDelta.default);let x;if(m<1){const w=sw(b,m);x=_=>{const A=Math.exp(-m*b*_);return o-A*((y+m*b*g)/w*Math.sin(w*_)+g*Math.cos(w*_))}}else if(m===1)x=w=>o-Math.exp(-b*w)*(g+(y+b*g)*w);else{const w=b*Math.sqrt(m*m-1);x=_=>{const A=Math.exp(-m*b*_),T=Math.min(w*_,300);return o-A*((y+m*b*g)*Math.sinh(T)+w*g*Math.cosh(T))/w}}const S={calculatedDuration:p&&d||null,next:w=>{const _=x(w);if(p)s.done=w>=d;else{let A=w===0?y:0;m<1&&(A=w===0?An(y):FL(x,w,_));const T=Math.abs(A)<=n,j=Math.abs(o-_)<=i;s.done=T&&j}return s.value=s.done?o:_,s},toString:()=>{const w=Math.min(fk(S),Zm),_=BL(A=>S.next(w*A).value,w,30);return w+"ms "+_},toTransition:()=>{}};return S}Jm.applyToOptions=e=>{const t=nY(e,100,Jm);return e.ease=t.ease,e.duration=An(t.duration),e.type="keyframes",e};function lw({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},p=T=>s!==void 0&&T<s||l!==void 0&&T>l,y=T=>s===void 0?l:l===void 0||Math.abs(s-T)<Math.abs(l-T)?s:l;let m=r*t;const g=d+m,b=o===void 0?g:o(g);b!==g&&(m=b-d);const v=T=>-m*Math.exp(-T/n),x=T=>b+v(T),S=T=>{const j=v(T),P=x(T);h.done=Math.abs(j)<=c,h.value=h.done?b:P};let w,_;const A=T=>{p(h.value)&&(w=T,_=Jm({keyframes:[h.value,y(h.value)],velocity:FL(x,T,h.value),damping:i,stiffness:a,restDelta:c,restSpeed:u}))};return A(0),{calculatedDuration:null,next:T=>{let j=!1;return!_&&w===void 0&&(j=!0,S(T),A(T)),w!==void 0&&T>=w?_.next(T-w):(!j&&S(T),h)}}}function dY(e,t,r){const n=[],i=r||va.mix||LL,a=e.length-1;for(let o=0;o<a;o++){let s=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||kn:t;s=Th(l,s)}n.push(s)}return n}function fY(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const a=e.length;if(Cc(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=dY(t,n,i),l=s.length,c=u=>{if(o&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const h=mf(e[d],e[d+1],u);return s[d](h)};return r?u=>c(Mi(e[0],e[a-1],u)):c}function hY(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const i=mf(0,t,n);e.push(wt(r,1,i))}}function pY(e){const t=[0];return hY(t,e.length-1),t}function mY(e,t){return e.map(r=>r*t)}function yY(e,t){return e.map(()=>t||EL).splice(0,e.length-1)}function Ed({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const i=jK(n)?n.map(GE):GE(n),a={done:!1,value:t[0]},o=mY(r&&r.length===t.length?r:pY(t),e),s=fY(o,t,{ease:Array.isArray(i)?i:yY(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}const gY=e=>e!==null;function hk(e,{repeat:t,repeatType:r="loop"},n,i=1){const a=e.filter(gY),s=i<0||t&&r!=="loop"&&t%2===1?0:a.length-1;return!s||n===void 0?a[s]:n}const vY={decay:lw,inertia:lw,tween:Ed,keyframes:Ed,spring:Jm};function UL(e){typeof e.type=="string"&&(e.type=vY[e.type])}class pk{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const bY=e=>e/100;class mk extends pk{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var n,i;const{motionValue:r}=this.options;r&&r.updatedAt!==Tr.now()&&this.tick(Tr.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(n=this.options).onStop)==null||i.call(n))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;UL(t);const{type:r=Ed,repeat:n=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=t;let{keyframes:s}=t;const l=r||Ed;l!==Ed&&typeof s[0]!="number"&&(this.mixKeyframes=Th(bY,LL(s[0],s[1])),s=[0,100]);const c=l({...t,keyframes:s});a==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=fk(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=c}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:h,repeatDelay:p,type:y,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const b=this.currentTime-c*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,S=n;if(d){const T=Math.min(this.currentTime,i)/s;let j=Math.floor(T),P=T%1;!P&&T>=1&&(P=1),P===1&&j--,j=Math.min(j,d+1),!!(j%2)&&(h==="reverse"?(P=1-P,p&&(P-=p/s)):h==="mirror"&&(S=o)),x=Mi(0,1,P)*s}const w=v?{done:!1,value:u[0]}:S.next(x);a&&(w.value=a(w.value));let{done:_}=w;!v&&l!==null&&(_=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return A&&y!==lw&&(w.value=hk(u,this.options,g,this.speed)),m&&m(w.value),A&&this.finish(),w}then(t,r){return this.finished.then(t,r)}get duration(){return wn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+wn(t)}get time(){return wn(this.currentTime)}set time(t){var r;t=An(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(r=this.driver)==null||r.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Tr.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=wn(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=rY,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(a=(i=this.options).onPlay)==null||a.call(i);const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Tr.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,r;this.notifyFinished(),this.teardown(),this.state="finished",(r=(t=this.options).onComplete)==null||r.call(t)}cancel(){var t,r;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(r=(t=this.options).onCancel)==null||r.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var r;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(r=this.driver)==null||r.stop(),t.observe(this)}}function xY(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const fs=e=>e*180/Math.PI,cw=e=>{const t=fs(Math.atan2(e[1],e[0]));return uw(t)},wY={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:cw,rotateZ:cw,skewX:e=>fs(Math.atan(e[1])),skewY:e=>fs(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},uw=e=>(e=e%360,e<0&&(e+=360),e),nj=cw,ij=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),aj=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),SY={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ij,scaleY:aj,scale:e=>(ij(e)+aj(e))/2,rotateX:e=>uw(fs(Math.atan2(e[6],e[5]))),rotateY:e=>uw(fs(Math.atan2(-e[2],e[0]))),rotateZ:nj,rotate:nj,skewX:e=>fs(Math.atan(e[4])),skewY:e=>fs(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function dw(e){return e.includes("scale")?1:0}function fw(e,t){if(!e||e==="none")return dw(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,i;if(r)n=SY,i=r;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=wY,i=s}if(!i)return dw(t);const a=n[t],o=i[1].split(",").map(kY);return typeof a=="function"?a(o):o[a]}const _Y=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return fw(r,t)};function kY(e){return parseFloat(e.trim())}const vu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bu=new Set(vu),oj=e=>e===gu||e===he,AY=new Set(["x","y","z"]),TY=vu.filter(e=>!AY.has(e));function EY(e){const t=[];return TY.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const io={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>fw(t,"x"),y:(e,{transform:t})=>fw(t,"y")};io.translateX=io.x;io.translateY=io.y;const js=new Set;let hw=!1,pw=!1,mw=!1;function VL(){if(pw){const e=Array.from(js).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const i=EY(n);i.length&&(r.set(n,i),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const i=r.get(n);i&&i.forEach(([a,o])=>{var s;(s=n.getValue(a))==null||s.set(o)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}pw=!1,hw=!1,js.forEach(e=>e.complete(mw)),js.clear()}function zL(){js.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(pw=!0)})}function jY(){mw=!0,zL(),VL(),mw=!1}class yk{constructor(t,r,n,i,a,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(js.add(this),hw||(hw=!0,st.read(zL),st.resolveKeyframes(VL))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),o=t[t.length-1];if(a!==void 0)t[0]=a;else if(n&&r){const s=n.readValue(r,o);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=o),i&&a===void 0&&i.set(t[0])}xY(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),js.delete(this)}cancel(){this.state==="scheduled"&&(js.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const OY=e=>e.startsWith("--");function PY(e,t,r){OY(t)?e.style.setProperty(t,r):e.style[t]=r}const CY=ik(()=>window.ScrollTimeline!==void 0),NY={};function RY(e,t){const r=ik(e);return()=>NY[t]??r()}const WL=RY(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ud=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,sj={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ud([0,.65,.55,1]),circOut:ud([.55,0,1,.45]),backIn:ud([.31,.01,.66,-.59]),backOut:ud([.33,1.53,.69,.99])};function HL(e,t){if(e)return typeof e=="function"?WL()?BL(e,t):"ease-out":jL(e)?ud(e):Array.isArray(e)?e.map(r=>HL(r,t)||sj.easeOut):sj[e]}function IY(e,t,r,{delay:n=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:s="easeOut",times:l}={},c=void 0){const u={[t]:r};l&&(u.offset=l);const d=HL(s,i);Array.isArray(d)&&(u.easing=d);const h={delay:n,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(u,h)}function qL(e){return typeof e=="function"&&"applyToOptions"in e}function $Y({type:e,...t}){return qL(e)&&WL()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class KL extends pk{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:r,name:n,keyframes:i,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=t,Cc(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=$Y(t);this.animation=IY(r,n,i,c,a),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const u=hk(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(u):PY(r,n,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,r;(r=(t=this.animation).finish)==null||r.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var r,n,i;const t=(r=this.options)==null?void 0:r.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(n=this.animation).commitStyles)==null||i.call(n))}get duration(){var r,n;const t=((n=(r=this.animation.effect)==null?void 0:r.getComputedTiming)==null?void 0:n.call(r).duration)||0;return wn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+wn(t)}get time(){return wn(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=An(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){var n;return this.allowFlatten&&((n=this.animation.effect)==null||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&CY()?(this.animation.timeline=t,kn):r(this)}}const YL={anticipate:kL,backInOut:_L,circInOut:TL};function MY(e){return e in YL}function DY(e){typeof e.ease=="string"&&MY(e.ease)&&(e.ease=YL[e.ease])}const Hb=10;class LY extends KL{constructor(t){DY(t),UL(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:n,onComplete:i,element:a,...o}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const s=new mk({...o,autoplay:!1}),l=Math.max(Hb,Tr.now()-this.startTime),c=Mi(0,Hb,l-Hb);r.setWithVelocity(s.sample(Math.max(0,l-c)).value,s.sample(l).value,c),s.stop()}}const lj=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Eo.test(e)||e==="0")&&!e.startsWith("url("));function BY(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function FY(e,t,r,n){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=lj(i,t),s=lj(a,t);return Xg(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,"value-not-animatable"),!o||!s?!1:BY(e)||(r==="spring"||qL(r))&&n}function yw(e){e.duration=0,e.type="keyframes"}const UY=new Set(["opacity","clipPath","filter","transform"]),VY=ik(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function zY(e){var u;const{motionValue:t,name:r,repeatDelay:n,repeatType:i,damping:a,type:o}=e;if(!(((u=t==null?void 0:t.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return VY()&&r&&UY.has(r)&&(r!=="transform"||!c)&&!l&&!n&&i!=="mirror"&&a!==0&&o!=="inertia"}const WY=40;class HY extends pk{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:
448o="loop",keyframes:s,name:l,motionValue:c,element:u,...d}){var y;super(),this.stop=()=>{var m,g;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=Tr.now();const h={autoplay:t,delay:r,type:n,repeat:i,repeatDelay:a,repeatType:o,name:l,motionValue:c,element:u,...d},p=(u==null?void 0:u.KeyframeResolver)||yk;this.keyframeResolver=new p(s,(m,g,b)=>this.onKeyframesResolved(m,g,h,!b),l,c,u),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,r,n,i){var g,b;this.keyframeResolver=void 0;const{name:a,type:o,velocity:s,delay:l,isHandoff:c,onUpdate:u}=n;this.resolvedAt=Tr.now(),FY(t,a,o,s)||((va.instantAnimations||!l)&&(u==null||u(hk(t,n,r))),t[0]=t[t.length-1],yw(n),n.repeat=0);const h={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>WY?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},p=!c&&zY(h),y=(b=(g=h.motionValue)==null?void 0:g.owner)==null?void 0:b.current,m=p?new LY({...h,element:y}):new mk(h);m.finished.then(()=>{this.notifyFinished()}).catch(kn),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),jY()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function GL(e,t,r,n=0,i=1){const a=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),o=e.size,s=(o-1)*n;return typeof r=="function"?r(a,o):i===1?a*n:s-a*n}const qY=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function KY(e){const t=qY.exec(e);if(!t)return[,];const[,r,n,i]=t;return[`--${r??n}`,i]}const YY=4;function XL(e,t,r=1){Cc(r<=YY,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,i]=KY(e);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const o=a.trim();return mL(o)?parseFloat(o):o}return lk(i)?XL(i,t,r+1):i}const GY={type:"spring",stiffness:500,damping:25,restSpeed:10},XY=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ZY={type:"keyframes",duration:.8},JY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},QY=(e,{keyframes:t})=>t.length>2?ZY:bu.has(e)?e.startsWith("scale")?XY(t[1]):GY:JY,eG=e=>e!==null;function tG(e,{repeat:t,repeatType:r="loop"},n){const i=e.filter(eG),a=t&&r!=="loop"&&t%2===1?0:i.length-1;return!a||n===void 0?i[a]:n}function ZL(e,t){if(e!=null&&e.inherit&&t){const{inherit:r,...n}=e;return{...t,...n}}return e}function gk(e,t){const r=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return r!==e?ZL(r,e):r}function rG({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const vk=(e,t,r,n={},i,a)=>o=>{const s=gk(n,e)||{},l=s.delay||n.delay||0;let{elapsed:c=0}=n;c=c-An(l);const u={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:h=>{t.set(h),s.onUpdate&&s.onUpdate(h)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};rG(s)||Object.assign(u,QY(e,u)),u.duration&&(u.duration=An(u.duration)),u.repeatDelay&&(u.repeatDelay=An(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(yw(u),u.delay===0&&(
vendor: 4,670 bytes, line 448
448d=!0)),(va.instantAnimations||va.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(d=!0,yw(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){const h=tG(u.keyframes,s);if(h!==void 0){st.update(()=>{u.onUpdate(h),u.onComplete()});return}}return s.isSync?new mk(u):new HY(u)};function cj(e){const t=[{},{}];return e==null||e.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function bk(e,t,r,n){if(typeof t=="function"){const[i,a]=cj(n);t=t(r!==void 0?r:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=cj(n);t=t(r!==void 0?r:e.custom,i,a)}return t}function sc(e,t,r){const n=e.getProps();return bk(n,t,r!==void 0?r:n.custom,e)}const JL=new Set(["width","height","top","left","right","bottom",...vu]),uj=30,nG=e=>!isNaN(parseFloat(e));class iG{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{var a;const i=Tr.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Tr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=nG(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new ak);const n=this.events[t].add(r);return t==="change"?()=>{n(),st.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Tr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>uj)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,uj);return vL(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,r;(t=this.dependents)==null||t.clear(),(r=this.events.destroy)==null||r.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Nc(e,t){return new iG(e,t)}const gw=e=>Array.isArray(e);function aG(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Nc(r))}function oG(e){return gw(e)?e[e.length-1]||0:e}function sG(e,t){const r=sc(e,t);let{transitionEnd:n={},transition:i={},...a}=r||{};a={...a,...n};for(const o in a){const s=oG(a[o]);aG(e,o,s)}}const vr=e=>!!(e&&e.getVelocity);function lG(e){return!!(vr(e)&&e.add)}function vw(e,t){const r=e.getValue("willChange");if(lG(r))return r.add(t);if(!r&&va.WillChange){const n=new va.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function xk(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const cG="framerAppearId",QL="data-"+xk(cG);function e3(e){return e.props[QL]}function uG({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function t3(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:a,transitionEnd:o,...s}=t;const l=e.getDefaultTransition();a=a?ZL(a,l):l;const c=a==null?void 0:a.reduceMotion;n&&(a=n);const u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in s){const p=e.getValue(h,e.latestValues[h]??null),y=s[h];if(y===void 0||d&&uG(d,h))continue;const m={delay:r,...gk(a||{},h)},g=p.get();if(g!==void 0&&!p.isAnimating&&!Array.isArray(y)&&y===g&&!m.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const S=e3(e);
vendor: 16,990 bytes, line 448
448if(S){const w=window.MotionHandoffAnimation(S,h,st);w!==null&&(m.startTime=w,b=!0)}}vw(e,h);const v=c??e.shouldReduceMotion;p.start(vk(h,p,y,v&&JL.has(h)?{type:!1}:m,e,b));const x=p.animation;x&&u.push(x)}if(o){const h=()=>st.update(()=>{o&&sG(e,o)});u.length?Promise.all(u).then(h):h()}return u}function bw(e,t,r={}){var l;const n=sc(e,t,r.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const a=n?()=>Promise.all(t3(e,n,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:h}=i;return dG(e,t,c,u,d,h,r)}:()=>Promise.resolve(),{when:s}=i;if(s){const[c,u]=s==="beforeChildren"?[a,o]:[o,a];return c().then(()=>u())}else return Promise.all([a(),o(r.delay)])}function dG(e,t,r=0,n=0,i=0,a=1,o){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(bw(l,t,{...o,delay:r+(typeof n=="function"?0:n)+GL(e.variantChildren,l,n,i,a)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function fG(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(a=>bw(e,a,r));n=Promise.all(i)}else if(typeof t=="string")n=bw(e,t,r);else{const i=typeof t=="function"?sc(e,t,r.custom):t;n=Promise.all(t3(e,i,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}const hG={test:e=>e==="auto",parse:e=>e},r3=e=>t=>t.test(e),n3=[gu,he,Pi,Da,FK,BK,hG],dj=e=>n3.find(r3(e));function pG(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||gL(e):!0}const mG=new Set(["brightness","contrast","saturate","opacity"]);function yG(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(ck)||[];if(!n)return e;const i=r.replace(n,"");let a=mG.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+i+")"}const gG=/\b([a-z-]*)\(.*?\)/gu,xw={...Eo,getAnimatableNone:e=>{const t=e.match(gG);return t?t.map(yG).join(" "):e}},fj={...gu,transform:Math.round},vG={rotate:Da,rotateX:Da,rotateY:Da,rotateZ:Da,scale:mp,scaleX:mp,scaleY:mp,scaleZ:mp,skew:Da,skewX:Da,skewY:Da,distance:he,translateX:he,translateY:he,translateZ:he,x:he,y:he,z:he,perspective:he,transformPerspective:he,opacity:yf,originX:JE,originY:JE,originZ:he},wk={borderWidth:he,borderTopWidth:he,borderRightWidth:he,borderBottomWidth:he,borderLeftWidth:he,borderRadius:he,borderTopLeftRadius:he,borderTopRightRadius:he,borderBottomRightRadius:he,borderBottomLeftRadius:he,width:he,maxWidth:he,height:he,maxHeight:he,top:he,right:he,bottom:he,left:he,inset:he,insetBlock:he,insetBlockStart:he,insetBlockEnd:he,insetInline:he,insetInlineStart:he,insetInlineEnd:he,padding:he,paddingTop:he,paddingRight:he,paddingBottom:he,paddingLeft:he,paddingBlock:he,paddingBlockStart:he,paddingBlockEnd:he,paddingInline:he,paddingInlineStart:he,paddingInlineEnd:he,margin:he,marginTop:he,marginRight:he,marginBottom:he,marginLeft:he,marginBlock:he,marginBlockStart:he,marginBlockEnd:he,marginInline:he,marginInlineStart:he,marginInlineEnd:he,fontSize:he,backgroundPositionX:he,backgroundPositionY:he,...vG,zIndex:fj,fillOpacity:yf,strokeOpacity:yf,numOctaves:fj},bG={...wk,color:Lt,backgroundColor:Lt,outlineColor:Lt,fill:Lt,stroke:Lt,borderColor:Lt,borderTopColor:Lt,borderRightColor:Lt,borderBottomColor:Lt,borderLeftColor:Lt,filter:xw,WebkitFilter:xw},i3=e=>bG[e];function a3(e,t){let r=i3(e);return r!==xw&&(r=Eo),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const xG=new Set(["auto","none","0"]);function wG(e,t,r){let n=0,i;for(;n<e.length&&!i;){const a=e[n];typeof a=="string"&&!xG.has(a)&&gf(a).values.length&&(i=e[n]),n++}if(i&&r)for(const a of t)e[a]=a3(r,i)}class SG extends yk{constructor(t,r,n,i,a){super(t,r,n,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),lk(d))){const h=XL(d,r.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!JL.has(n)||t.length!==2)return;const[i,a]=t,o=dj(i),s=dj(a),l=ZE(i),c=ZE(a);if(l!==c&&io[n]){this.needsMeasurement=!0;return}if(o!==s)if(oj(o)&&oj(s))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else io[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let i=0;i<t.length;i++)(t[i]===null||pG(t[i]))&&n.push(i);n.length&&wG(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=io[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const i=r[r.length-1];i!==void 0&&t.getValue(n,i).jump(i,!1)}measureEndState(){var s;const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const i=t.getValue(r);i&&i.jump(this.measuredOrigin,!1);const a=n.length-1,o=n[a];n[a]=io[r](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(s=this.removedTransforms)!=null&&s.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const _G=new Set(["opacity","clipPath","filter","transform"]);function o3(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(n=>n!=null)}const s3=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ww(e){return yL(e)&&"offsetHeight"in e}const{schedule:Sk,cancel:YNe}=OL(queueMicrotask,!1),Fn={x:!1,y:!1};function l3(){return Fn.x||Fn.y}function kG(e){return e==="x"||e==="y"?Fn[e]?null:(Fn[e]=!0,()=>{Fn[e]=!1}):Fn.x||Fn.y?null:(Fn.x=Fn.y=!0,()=>{Fn.x=Fn.y=!1})}function c3(e,t){const r=o3(e),n=new AbortController,i={passive:!0,...t,signal:n.signal};return[r,i,()=>n.abort()]}function AG(e){return!(e.pointerType==="touch"||l3())}function TG(e,t,r={}){const[n,i,a]=c3(e,r);return n.forEach(o=>{let s=!1,l=!1,c;const u=()=>{o.removeEventListener("pointerleave",y)},d=g=>{c&&(c(g),c=void 0),u()},h=g=>{s=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,d(g))},p=()=>{s=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},y=g=>{if(g.pointerType!=="touch"){if(s){l=!0;return}d(g)}},m=g=>{if(!AG(g))return;l=!1;const b=t(o,g);typeof b=="function"&&(c=b,o.addEventListener("pointerleave",y,i))};o.addEventListener("pointerenter",m,i),o.addEventListener("pointerdown",p,i)}),a}const u3=(e,t)=>t?e===t?!0:u3(e,t.parentElement):!1,_k=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,EG=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function jG(e){return EG.has(e.tagName)||e.isContentEditable===!0}const OG=new Set(["INPUT","SELECT","TEXTAREA"]);function PG(e){return OG.has(e.tagName)||e.isContentEditable===!0}const sm=new WeakSet;function hj(e){return t=>{t.key==="Enter"&&e(t)}}function qb(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const CG=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=hj(()=>{if(sm.has(r))return;qb(r,"down");const i=hj(()=>{qb(r,"up")}),a=()=>qb(r,"cancel");r.addEventListener("keyup",i,t),r.addEventListener("blur",a,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function pj(e){return _k(e)&&!l3()}const mj=new WeakSet;function NG(e,t,r={}){const[n,i,a]=c3(e,r),o=s=>{const l=s.currentTarget;if(!pj(s)||mj.has(s))return;sm.add(l),r.stopPropagation&&mj.add(s);const c=t(l,s),u=(p,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),sm.has(l)&&sm.delete(l),pj(p)&&typeof c=="function"&&c(p,{success:y})},d=p=>{u(p,l===window||l===document||r.useGlobalTarget||u3(l,p.target))},h=p=>{u(p,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",h,i)};return n.forEach(s=>{(r.useGlobalTarget?window:s).addEventListener("pointerdown",o,i),ww(s)&&(s.addEventListener("focus",c=>CG(c,i)),!jG(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),a}function kk(e){return yL(e)&&"ownerSVGElement"in e}const lm=new WeakMap;let La;const d3=(e,t,r)=>(n,i)=>i&&i[0]?i[0][e+"Size"]:kk(n)&&"getBBox"in n?n.getBBox()[t]:n[r],RG=d3("inline","width","offsetWidth"),IG=d3("block","height","offsetHeight");function $G({target:e,borderBoxSize:t}){var r;(r=lm.get(e))==null||r.forEach(n=>{n(e,{get width(){return RG(e,t)},get height(){return IG(e,t)}})})}function MG(e){e.forEach($G)}function DG(){typeof ResizeObserver>"u"||(La=new ResizeObserver(MG))}function LG(e,t){La||DG();const r=o3(e);return r.forEach(n=>{let i=lm.get(n);i||(i=new Set,lm.set(n,i)),i.add(t),La==null||La.observe(n)}),()=>{r.forEach(n=>{const i=lm.get(n);i==null||i.delete(t),i!=null&&i.size||La==null||La.unobserve(n)})}}const cm=new Set;let zl;function BG(){zl=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};cm.forEach(t=>t(e))},window.addEventListener("resize",zl)}function FG(e){return cm.add(e),zl||BG(),()=>{cm.delete(e),!cm.size&&typeof zl=="function"&&(window.removeEventListener("resize",zl),zl=void 0)}}function yj(e,t){return typeof e=="function"?FG(e):LG(e,t)}function UG(e){return kk(e)&&e.tagName==="svg"}const VG=[...n3,Lt,Eo],zG=e=>VG.find(r3(e)),gj=()=>({translate:0,scale:1,origin:0,originPoint:0}),Wl=()=>({x:gj(),y:gj()}),vj=()=>({min:0,max:0}),Ht=()=>({x:vj(),y:vj()}),WG=new WeakMap;function Zg(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function vf(e){return typeof e=="string"||Array.isArray(e)}const Ak=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Tk=["initial",...Ak];function Jg(e){return Zg(e.animate)||Tk.some(t=>vf(e[t]))}function f3(e){return!!(Jg(e)||e.variants)}function HG(e,t,r){for(const n in t){const i=t[n],a=r[n];if(vr(i))e.addValue(n,i);else if(vr(a))e.addValue(n,Nc(i,{owner:e}));else if(a!==i)if(e.hasValue(n)){const o=e.getValue(n);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(n);e.addValue(n,Nc(o!==void 0?o:i,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const Sw={current:null},h3={current:!1},qG=typeof window<"u";function KG(){if(h3.current=!0,!!qG)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Sw.current=e.matches;e.addEventListener("change",t),t()}else Sw.current=!1}const bj=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Qm={};function p3(e){Qm=e}function YG(){return Qm}class GG{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:i,skipAnimations:a,blockInitialAnimation:o,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=yk,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Tr.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,st.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=r.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=a,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Jg(r),this.isVariantNode=f3(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(r,{},this);for(const p in h){const y=h[p];c[p]!==void 0&&vr(y)&&y.set(c[p])}}mount(t){var r,n;if(this.hasBeenMounted)for(const i in this.initialValues)(r=this.values.get(i))==null||r.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,WG.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,a)=>this.bindToMotionValue(a,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(h3.current||KG(),this.shouldReduceMotion=Sw.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),To(this.notifyUpdate),To(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const n=this.features[r];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),r.accelerate&&_G.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:s,times:l,ease:c,duration:u}=r.accelerate,d=new KL({element:this.current,name:t,keyframes:s,times:l,ease:c,duration:An(u)}),h=o(d);this.valueSubscriptions.set(t,()=>{h(),d.cancel()});return}const n=bu.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=r.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&st.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;typeof window<"u"&&window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Qm){const r=Qm[t];if(!r)continue;const{isEnabled:n,Feature:i}=r;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ht()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<bj.length;n++){const i=bj[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=HG(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Nc(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);
vendor: 4,170 bytes, line 448
448return n!=null&&(typeof n=="string"&&(mL(n)||gL(n))?n=parseFloat(n):!zG(n)&&Eo.test(r)&&(n=a3(t,r)),this.setBaseTarget(t,vr(n)?n.get():n)),vr(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var a;const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const o=bk(this.props,r,(a=this.presenceContext)==null?void 0:a.custom);o&&(n=o[t])}if(r&&n!==void 0)return n;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!vr(i)?i:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new ak),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){Sk.render(this.render)}}class m3 extends GG{constructor(){super(...arguments),this.KeyframeResolver=SG}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){const n=t.style;return n?n[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;vr(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}class $o{constructor(t){this.isMounted=!1,this.node=t}update(){}}function y3({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function XG({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ZG(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Kb(e){return e===void 0||e===1}function _w({scale:e,scaleX:t,scaleY:r}){return!Kb(e)||!Kb(t)||!Kb(r)}function ts(e){return _w(e)||g3(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function g3(e){return xj(e.x)||xj(e.y)}function xj(e){return e&&e!=="0%"}function ey(e,t,r){const n=e-r,i=t*n;return r+i}function wj(e,t,r,n,i){return i!==void 0&&(e=ey(e,i,n)),ey(e,r,n)+t}function kw(e,t=0,r=1,n,i){e.min=wj(e.min,t,r,n,i),e.max=wj(e.max,t,r,n,i)}function v3(e,{x:t,y:r}){kw(e.x,t.translate,t.scale,t.originPoint),kw(e.y,r.translate,r.scale,r.originPoint)}const Sj=.999999999999,_j=1.0000000000001;function JG(e,t,r,n=!1){const i=r.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=r[s],o=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&ql(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,v3(e,o)),n&&ts(a.latestValues)&&ql(e,a.latestValues))}t.x<_j&&t.x>Sj&&(t.x=1),t.y<_j&&t.y>Sj&&(t.y=1)}function Hl(e,t){e.min=e.min+t,e.max=e.max+t}function kj(e,t,r,n,i=.5){const a=wt(e.min,e.max,i);kw(e,t,r,a,n)}function ql(e,t){kj(e.x,t.x,t.scaleX,t.scale,t.originX),kj(e.y,t.y,t.scaleY,t.scale,t.originY)}function b3(e,t){return y3(ZG(e.getBoundingClientRect(),t))}function QG(e,t,r){const n=b3(e,r),{scroll:i}=t;return i&&(Hl(n.x,i.offset.x),Hl(n.y,i.offset.y)),n}const eX={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tX=vu.length;function rX(e,t,r){let n="",i=!0;for(let a=0;a<tX;a++){const o=vu[a],s=e[o];if(s===void 0)continue;let l=!0;if(typeof s=="number")l=s===(o.startsWith("scale")?1:0);else{const c=parseFloat(s);l=o.startsWith("scale")?c===1:c===0}if(!l||r){const c=s3(s,wk[o]);if(!l){i=!1;const u=eX[o]||o;n+=`${u}(${c}) `}r&&(t[o]=c)}}return n=n.trim(),r?n=r(t,i?"":n):i&&(n="none"),n}function Ek(e,t,r){const{style:n,vars:i,transformOrigin:a}=e;let o=!1,s=!1;for(const l in t){const c=t[l];if(bu.has(l)){o=!0;continue}else if(CL(l)){i[l]=c;continue}else{const u=s3(c,wk[l]);l.startsWith("origin")?(s=!0,a[l]=u):n[l]=u}}if(t.transform||(o||r?n.transform=rX(t,e.transform,r):n.transform&&(n.transform="none")),s){const{originX:l="50%",originY:c="50%",originZ:u=0}=a;n.transformOrigin=`${l} ${c} ${u}`}}function x3(e,{style:t,vars:r},n,i){const a=e.style;let o;for(o in t)a[o]=t[o];i==null||i.applyProjectionStyles(a,n);for(o in r)a.setProperty(o,r[o])}function Aj(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Hu={correct:(e,t)=>
vendor: 3,527 bytes, line 448
448{if(!t.target)return e;if(typeof e=="string")if(he.test(e))e=parseFloat(e);else return e;const r=Aj(e,t.target.x),n=Aj(e,t.target.y);return`${r}% ${n}%`}},nX={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,i=Eo.parse(e);if(i.length>5)return n;const a=Eo.createTransformer(e),o=typeof i[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;i[0+o]/=s,i[1+o]/=l;const c=wt(s,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),a(i)}},Aw={borderRadius:{...Hu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Hu,borderTopRightRadius:Hu,borderBottomLeftRadius:Hu,borderBottomRightRadius:Hu,boxShadow:nX};function w3(e,{layout:t,layoutId:r}){return bu.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Aw[e]||e==="opacity")}function jk(e,t,r){var o;const n=e.style,i=t==null?void 0:t.style,a={};if(!n)return a;for(const s in n)(vr(n[s])||i&&vr(i[s])||w3(s,e)||((o=r==null?void 0:r.getValue(s))==null?void 0:o.liveStyle)!==void 0)&&(a[s]=n[s]);return a}function iX(e){return window.getComputedStyle(e)}class aX extends m3{constructor(){super(...arguments),this.type="html",this.renderInstance=x3}readValueFromInstance(t,r){var n;if(bu.has(r))return(n=this.projection)!=null&&n.isProjecting?dw(r):_Y(t,r);{const i=iX(t),a=(CL(r)?i.getPropertyValue(r):i[r])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:r}){return b3(t,r)}build(t,r,n){Ek(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return jk(t,r,n)}}const oX={offset:"stroke-dashoffset",array:"stroke-dasharray"},sX={offset:"strokeDashoffset",array:"strokeDasharray"};function lX(e,t,r=1,n=0,i=!0){e.pathLength=1;const a=i?oX:sX;e[a.offset]=`${-n}`,e[a.array]=`${t} ${r}`}const cX=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function S3(e,{attrX:t,attrY:r,attrScale:n,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},l,c,u){if(Ek(e,s,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const p of cX)d[p]!==void 0&&(h[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),r!==void 0&&(d.y=r),n!==void 0&&(d.scale=n),i!==void 0&&lX(d,i,a,o,!1)}const _3=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),k3=e=>typeof e=="string"&&e.toLowerCase()==="svg";function uX(e,t,r,n){x3(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(_3.has(i)?i:xk(i),t.attrs[i])}function A3(e,t,r){const n=jk(e,t,r);for(const i in e)if(vr(e[i])||vr(t[i])){const a=vu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[a]=e[i]}return n}class dX extends m3{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ht}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(bu.has(r)){const n=i3(r);return n&&n.default||0}return r=_3.has(r)?r:xk(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return A3(t,r,n)}
vendor: 38,976 bytes, lines 448-456
448build(t,r,n){S3(t,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,r,n,i){uX(t,r,n,i)}mount(t){this.isSVGTag=k3(t.tagName),super.mount(t)}}const fX=Tk.length;function T3(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?T3(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<fX;r++){const n=Tk[r],i=e.props[n];(vf(i)||i===!1)&&(t[n]=i)}return t}function E3(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const hX=[...Ak].reverse(),pX=Ak.length;function mX(e){return t=>Promise.all(t.map(({animation:r,options:n})=>fG(e,r,n)))}function yX(e){let t=mX(e),r=Tj(),n=!0;const i=l=>(c,u)=>{var h;const d=sc(e,u,l==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(d){const{transition:p,transitionEnd:y,...m}=d;c={...c,...m,...y}}return c};function a(l){t=l(e)}function o(l){const{props:c}=e,u=T3(e.parent)||{},d=[],h=new Set;let p={},y=1/0;for(let g=0;g<pX;g++){const b=hX[g],v=r[b],x=c[b]!==void 0?c[b]:u[b],S=vf(x),w=b===l?v.isActive:null;w===!1&&(y=g);let _=x===u[b]&&x!==c[b]&&S;if(_&&n&&e.manuallyAnimateOnMount&&(_=!1),v.protectedKeys={...p},!v.isActive&&w===null||!x&&!v.prevProp||Zg(x)||typeof x=="boolean")continue;if(b==="exit"&&v.isActive&&w!==!0){v.prevResolvedValues&&(p={...p,...v.prevResolvedValues});continue}const A=gX(v.prevProp,x);let T=A||b===l&&v.isActive&&!_&&S||g>y&&S,j=!1;const P=Array.isArray(x)?x:[x];let C=P.reduce(i(b),{});w===!1&&(C={});const{prevResolvedValues:O={}}=v,$={...O,...C},N=B=>{T=!0,h.has(B)&&(j=!0,h.delete(B)),v.needsAnimating[B]=!0;const R=e.getValue(B);R&&(R.liveStyle=!1)};for(const B in $){const R=C[B],M=O[B];if(p.hasOwnProperty(B))continue;let U=!1;gw(R)&&gw(M)?U=!E3(R,M):U=R!==M,U?R!=null?N(B):h.add(B):R!==void 0&&h.has(B)?N(B):v.protectedKeys[B]=!0}v.prevProp=x,v.prevResolvedValues=C,v.isActive&&(p={...p,...C}),n&&e.blockInitialAnimation&&(T=!1);const L=_&&A;T&&(!L||j)&&d.push(...P.map(B=>{const R={type:b};if(typeof B=="string"&&n&&!L&&e.manuallyAnimateOnMount&&e.parent){const{parent:M}=e,U=sc(M,B);if(M.enteringChildren&&U){const{delayChildren:Y}=U.transition||{};R.delay=GL(M.enteringChildren,e,Y)}}return{animation:B,options:R}}))}if(h.size){const g={};if(typeof c.initial!="boolean"){const b=sc(e,Array.isArray(c.initial)?c.initial[0]:c.initial);b&&b.transition&&(g.transition=b.transition)}h.forEach(b=>{const v=e.getBaseTarget(b),x=e.getValue(b);x&&(x.liveStyle=!0),g[b]=v??null}),d.push({animation:g})}let m=!!d.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(d):Promise.resolve()}function s(l,c){var d;if(r[l].isActive===c)return Promise.resolve();(d=e.variantChildren)==null||d.forEach(h=>{var p;return(p=h.animationState)==null?void 0:p.setActive(l,c)}),r[l].isActive=c;const u=o(l);for(const h in r)r[h].protectedKeys={};return u}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>r,reset:()=>{r=Tj()}}}function gX(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!E3(t,e):!1}function qo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Tj(){return{animate:qo(!0),whileInView:qo(),whileHover:qo(),whileTap:qo(),whileDrag:qo(),whileFocus:qo(),exit:qo()}}function Ej(e,t){e.min=t.min,e.max=t.max}function Dn(e,t){Ej(e.x,t.x),Ej(e.y,t.y)}function jj(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const j3=1e-4,vX=1-j3,bX=1+j3,O3=.01,xX=0-O3,wX=0+O3;function Er(e){return e.max-e.min}function SX(e,t,r){return Math.abs(e-t)<=r}function Oj(e,t,r,n=.5){e.origin=n,e.originPoint=wt(t.min,t.max,e.origin),e.scale=Er(r)/Er(t),e.translate=wt(r.min,r.max,e.origin)-e.originPoint,(e.scale>=vX&&e.scale<=bX||isNaN(e.scale))&&(e.scale=1),(e.translate>=xX&&e.translate<=wX||isNaN(e.translate))&&(e.translate=0)}function jd(e,t,r,n){Oj(e.x,t.x,r.x,n?n.originX:void 0),Oj(e.y,t.y,r.y,n?n.originY:void 0)}function Pj(e,t,r){e.min=r.min+t.min,e.max=e.min+Er(t)}function _X(e,t,r){Pj(e.x,t.x,r.x),Pj(e.y,t.y,r.y)}function Cj(e,t,r){e.min=t.min-r.min,e.max=e.min+Er(t)}function ty(e,t,r){Cj(e.x,t.x,r.x),Cj(e.y,t.y,r.y)}function Nj(e,t,r,n,i){return e-=t,e=ey(e,1/r,n),i!==void 0&&(e=ey(e,1/i,n)),e}function kX(e,t=0,r=1,n=.5,i,a=e,o=e){if(Pi.test(t)&&(t=parseFloat(t),t=wt(o.min,o.max,t/100)-o.min),typeof t!="number")return;let s=wt(a.min,a.max,n);e===a&&(s-=t),e.min=Nj(e.min,t,r,s,i),e.max=Nj(e.max,t,r,s,i)}function Rj(e,t,[r,n,i],a,o){kX(e,t[r],t[n],t[i],t.scale,a,o)}const AX=["x","scaleX","originX"],TX=["y","scaleY","originY"];function Ij(e,t,r,n){Rj(e.x,t,AX,r?r.x:void 0,n?n.x:void 0),Rj(e.y,t,TX,r?r.y:void 0,n?n.y:void 0)}function $j(e){return e.translate===0&&e.scale===1}function P3(e){return $j(e.x)&&$j(e.y)}function Mj(e,t){return e.min===t.min&&e.max===t.max}function EX(e,t){return Mj(e.x,t.x)&&Mj(e.y,t.y)}function Dj(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function C3(e,t){return Dj(e.x,t.x)&&Dj(e.y,t.y)}function Lj(e){return Er(e.x)/Er(e.y)}function Bj(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function mi(e){return[e("x"),e("y")]}function jX(e,t,r){let n="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(r==null?void 0:r.z)||0;if((i||a||o)&&(n=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:h,skewX:p,skewY:y}=r;c&&(n=`perspective(${c}px) ${n}`),u&&(n+=`rotate(${u}deg) `),d&&(n+=`rotateX(${d}deg) `),h&&(n+=`rotateY(${h}deg) `),p&&(n+=`skewX(${p}deg) `),y&&(n+=`skewY(${y}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(n+=`scale(${s}, ${l})`),n||"none"}const N3=["TopLeft","TopRight","BottomLeft","BottomRight"],OX=N3.length,Fj=e=>typeof e=="string"?parseFloat(e):e,Uj=e=>typeof e=="number"||he.test(e);function PX(e,t,r,n,i,a){i?(e.opacity=wt(0,r.opacity??1,CX(n)),e.opacityExit=wt(t.opacity??1,0,NX(n))):a&&(e.opacity=wt(t.opacity??1,r.opacity??1,n));for(let o=0;o<OX;o++){const s=`border${N3[o]}Radius`;let l=Vj(t,s),c=Vj(r,s);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Uj(l)===Uj(c)?(e[s]=Math.max(wt(Fj(l),Fj(c),n),0),(Pi.test(c)||Pi.test(l))&&(e[s]+="%")):e[s]=c}(t.rotate||r.rotate)&&(e.rotate=wt(t.rotate||0,r.rotate||0,n))}function Vj(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const CX=R3(0,.5,AL),NX=R3(.5,.95,kn);function R3(e,t,r){return n=>n<e?0:n>t?1:r(mf(e,t,n))}function RX(e,t,r){const n=vr(e)?e:Nc(e);return n.start(vk("",n,t,r)),n.animation}function bf(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const IX=(e,t)=>e.depth-t.depth;class $X{constructor(){this.children=[],this.isDirty=!1}add(t){nk(this.children,t),this.isDirty=!0}remove(t){Gm(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(IX),this.isDirty=!1,this.children.forEach(t)}}function MX(e,t){const r=Tr.now(),n=({timestamp:i})=>{const a=i-r;a>=t&&(To(n),e(a-t))};return st.setup(n,!0),()=>To(n)}function um(e){return vr(e)?e.get():e}class DX{constructor(){this.members=[]}add(t){nk(this.members,t);for(let r=this.members.length-1;r>=0;r--){const n=this.members[r];if(n===t||n===this.lead||n===this.prevLead)continue;const i=n.instance;i&&i.isConnected===!1&&n.isPresent!==!1&&!n.snapshot&&Gm(this.members,n)}t.scheduleRender()}remove(t){if(Gm(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(i=>t===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const a=this.members[i],o=a.instance;if(a.isPresent!==!1&&(!o||o.isConnected!==!1)){n=a;break}}return n?(this.promote(n),!0):!1}promote(t,r){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender();const i=n.options.layoutDependency,a=t.options.layoutDependency;if(!(i!==void 0&&a!==void 0&&i===a)){const l=n.instance;l&&l.isConnected===!1&&!n.snapshot||(t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:s}=t.options;s===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const dm={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Yb=["","X","Y","Z"],LX=1e3;let BX=0;function Gb(e,t,r,n){const{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function I3(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=e3(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",st,!(i||a))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&I3(n)}function $3({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},s=t==null?void 0:t()){this.id=BX++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(VX),this.nodes.forEach(qX),this.nodes.forEach(KX),this.nodes.forEach(zX)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new $X)}addEventListener(o,s){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ak),this.eventHandlers.get(o).add(s)}notifyListeners(o,...s){const l=this.eventHandlers.get(o);l&&l.notify(...s)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=kk(o)&&!UG(o),this.instance=o;const{layoutId:s,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let u,d=0;const h=()=>this.root.updateBlockedByResize=!1;st.read(()=>{d=window.innerWidth}),e(o,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,u&&u(),u=MX(h,250),dm.hasAnimatedSinceResize&&(dm.hasAnimatedSinceResize=!1,this.nodes.forEach(Hj)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&c&&(s||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||JX,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=c.getProps(),b=!this.targetLayout||!C3(this.targetLayout,p),v=!d&&h;if(this.options.layoutRoot||this.resumeFrom||v||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...gk(y,"layout"),onPlay:m,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(u,v)}else d||Hj(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),To(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(YX),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&I3(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(zj);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Wj);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(HX),this.nodes.forEach(FX),this.nodes.forEach(UX)):this.nodes.forEach(Wj),this.clearAllSnapshots();const s=Tr.now();or.delta=Mi(0,1e3/60,s-or.timestamp),or.timestamp=s,or.isProcessing=!0,Fb.update.process(or),Fb.preRender.process(or),Fb.render.process(or),or.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sk.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(WX),this.sharedNodes.forEach(GX)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,st.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){st.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Er(this.snapshot.measuredBox.x)&&!Er(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Ht(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(s=!1),s&&this.instance){const l=n(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!P3(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(s||ts(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return o&&(l=this.removeTransform(l)),QX(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var c;const{visualElement:o}=this.options;if(!o)return Ht();const s=o.measureViewportBox();if(!(((c=this.scroll)==null?void 0:c.wasRoot)||this.path.some(eZ))){const{scroll:u}=this.root;u&&(Hl(s.x,u.offset.x),Hl(s.y,u.offset.y))}return s}removeElementScroll(o){var l;const s=Ht();if(Dn(s,o),(l=this.scroll)!=null&&l.wasRoot)return s;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:d,options:h}=u;u!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&Dn(s,o),Hl(s.x,d.offset.x),Hl(s.y,d.offset.y))}return s}applyTransform(o,s=!1){const l=Ht();Dn(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];!s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&ql(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ts(u.latestValues)&&ql(l,u.latestValues)}return ts(this.latestValues)&&ql(l,this.latestValues),l}removeTransform(o){const s=Ht();Dn(s,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!ts(c.latestValues))continue;_w(c.latestValues)&&c.updateSnapshot();const u=Ht(),d=c.measurePageBox();Dn(u,d),Ij(s,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return ts(this.latestValues)&&Ij(s,this.latestValues),s}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==or.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var p;const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==s;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=or.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ht(),this.targetWithTransforms=Ht()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),_X(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Dn(this.target,this.layout.layoutBox),v3(this.target,this.targetDelta)):Dn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||_w(this.parent.latestValues)||g3(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,s,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ht(),this.relativeTargetOrigin=Ht(),ty(this.relativeTargetOrigin,s,l),Dn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var y;const o=this.getLead(),s=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===or.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;Dn(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;JG(this.layoutCorrected,this.treeScale,this.path,s),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Ht());const{target:p}=o;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(jj(this.prevProjectionDelta.x,this.projectionDelta.x),jj(this.prevProjectionDelta.y,this.projectionDelta.y)),jd(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!Bj(this.projectionDelta.x,this.prevProjectionDelta.x)||!Bj(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var s;if((s=this.options.visualElement)==null||s.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Wl(),this.projectionDelta=Wl(),this.projectionDeltaWithTransform=Wl()}setAnimationOrigin(o,s=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},d=Wl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const h=Ht(),p=l?l.source:void 0,y=this.layout?this.layout.source:void 0,m=p!==y,g=this.getStack(),b=!g||g.members.length<=1,v=!!(m&&!b&&this.options.crossfade===!0&&!this.path.some(ZX));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const w=S/1e3;qj(d.x,o.x,w),qj(d.y,o.y,w),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ty(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),XX(this.relativeTarget,this.relativeTargetOrigin,h,w),x&&EX(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ht()),Dn(x,this.relativeTarget)),m&&(this.animationValues=u,PX(u,c,this.latestValues,w,v,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var s,l,c;this.notifyListeners("animationStart"),(s=this.currentAnimation)==null||s.stop(),(c=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||c.stop(),this.pendingAnimation&&(To(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=st.update(()=>{dm.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Nc(0)),this.currentAnimation=RX(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(LX),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:u}=o;if(!(!s||!l||!c)){if(this!==o&&this.layout&&c&&M3(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ht();const d=Er(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const h=Er(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}Dn(s,l),ql(s,u),jd(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(o,s){this.sharedNodes.has(o)||this.sharedNodes.set(o,new DX),this.sharedNodes.get(o).add(s);const c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())==null?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())==null?void 0:s.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let s=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const c={};l.z&&Gb("z",o,c,this.animationValues);for(let u=0;u<Yb.length;u++)Gb(`rotate${Yb[u]}`,o,c,this.animationValues),Gb(`skew${Yb[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}applyProjectionStyles(o,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=um(s==null?void 0:s.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=um(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ts(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=jX(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),o.transform=d;const{x:h,y:p}=this.projectionDelta;o.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,c.animationValues?o.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const y in Aw){if(u[y]===void 0)continue;const{correct:m,applyTo:g,isCSSVariable:b}=Aw[y],v=d==="none"?u[y]:m(u[y],c);if(g){const x=g.length;for(let S=0;S<x;S++)o[g[S]]=v}else b?this.options.visualElement.renderState.vars[y]=v:o[y]=v}this.options.layoutId&&(o.pointerEvents=c===this?um(s==null?void 0:s.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var s;return(s=o.currentAnimation)==null?void 0:s.stop()}),this.root.nodes.forEach(zj),this.root.sharedNodes.clear()}}}function FX(e){e.updateLayout()}function UX(e){var r;const t=((r=e.resumeFrom)==null?void 0:r.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:a}=e.options,o=t.source!==e.layout.source;a==="size"?mi(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],p=Er(h);h.min=n[d].min,h.max=h.min+p}):M3(a,t.layoutBox,n)&&mi(d=>{const h=o?t.measuredBox[d]:t.layoutBox[d],p=Er(n[d]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const s=Wl();jd(s,n,t.layoutBox);const l=Wl();o?jd(l,e.applyTransform(i,!0),t.measuredBox):jd(l,n,t.layoutBox);const c=!P3(s);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:p}=d;if(h&&p){const y=Ht();ty(y,t.layoutBox,h.layoutBox);const m=Ht();ty(m,n,p.layoutBox),C3(y,m)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=y,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function VX(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function zX(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function WX(e){e.clearSnapshot()}function zj(e){e.clearMeasurements()}function Wj(e){e.isLayoutDirty=!1}function HX(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Hj(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qX(e){e.resolveTargetDelta()}function KX(e){e.calcProjection()}function YX(e){e.resetSkewAndRotation()}function GX(e){e.removeLeadSnapshot()}function qj(e,t,r){e.translate=wt(t.translate,0,r),e.scale=wt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Kj(e,t,r,n){e.min=wt(t.min,r.min,n),e.max=wt(t.max,r.max,n)}function XX(e,t,r,n){Kj(e.x,t.x,r.x,n),Kj(e.y,t.y,r.y,n)}function ZX(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const JX={duration:.45,ease:[.4,0,.1,1]},Yj=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Gj=Yj("applewebkit/")&&!Yj("chrome/")?Math.round:kn;function Xj(e){e.min=Gj(e.min),e.max=Gj(e.max)}function QX(e){Xj(e.x),Xj(e.y)}function M3(e,t,r){return e==="position"||e==="preserve-aspect"&&!SX(Lj(t),Lj(r),.2)}function eZ(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const tZ=$3({attachResizeListener:(e,t)=>bf(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Xb={current:void 0},D3=$3({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Xb.current){const e=new tZ({});e.mount(window),e.setOptions({layoutScroll:!0}),Xb.current=e}return Xb.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Ok=k.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Zj(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function rZ(...e){return t=>{let r=!1;const n=e.map(i=>{const a=Zj(i,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():Zj(e[i],null)}}}}function nZ(...e){return k.useCallback(rZ(...e),e)}class iZ extends k.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const n=r.offsetParent,i=ww(n)&&n.offsetWidth||0,a=ww(n)&&n.offsetHeight||0,o=this.props.sizeRef.current;o.height=r.offsetHeight||0,o.width=r.offsetWidth||0,o.top=r.offsetTop,o.left=r.offsetLeft,o.right=i-o.width-o.left,o.bottom=a-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function aZ({children:e,isPresent:t,anchorX:r,anchorY:n,root:i,pop:a}){var h;const o=k.useId(),s=k.useRef(null),l=k.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=k.useContext(Ok),u=((h=e.props)==null?void 0:h.ref)??(e==null?void 0:e.ref),d=nZ(s,u);return k.useInsertionEffect(()=>{const{width:p,height:y,top:m,left:g,right:b,bottom:v}=l.current;if(t||a===!1||!s.current||!p||!y)return;const x=r==="left"?`left: ${g}`:`right: ${b}`,S=n==="bottom"?`bottom: ${v}`:`top: ${m}`;s.current.dataset.motionPopId=o;const w=document.createElement("style");c&&(w.nonce=c);const _=i??document.head;return _.appendChild(w),w.sheet&&w.sheet.insertRule(` 449 [data-motion-pop-id="${o}"] { 450 position: absolute !important; 451 width: ${p}px !important; 452 height: ${y}px !important; 453 ${x}px !important; 454 ${S}px !important; 455 } 456 `),()=>{_.contains(w)&&_.removeChild(w)}},[t]),f.jsx(iZ,{isPresent:t,childRef:s,sizeRef:l,pop:a,children:a===!1?e:k.cloneElement(e,{ref:d})})}const oZ=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:l,root:c})=>{const u=rk(sZ),d=k.useId();let h=!0,p=k.useMemo(()=>(h=!1,{id:d,initial:t,isPresent:r,custom:i,onExitComplete:y=>{u.set(y,!0);for(const m of u.values())if(!m)return;n&&n()},register:y=>(u.set(y,!1),()=>u.delete(y))}),[r,u,n]);return a&&h&&(p={...p}),k.useMemo(()=>{u.forEach((y,m)=>u.set(m,!1))},[r]),k.useEffect(()=>{!r&&!u.size&&n&&n()},[r]),e=f.jsx(aZ,{pop:o==="popLayout",isPresent:r,anchorX:s,anchorY:l,root:c,children:e}),f.jsx(Gg.Provider,{value:p,children:e})};function sZ(){return new Map}function L3(e=!0){const t=k.useContext(Gg);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:i}=t,a=k.useId();k.useEffect(()=>{if(e)return i(a)},[e]);const o=k.useCallback(()=>e&&n&&n(a),[a,n,e]);return!r&&n?[!1,o]:[!0]}const yp=e=>e.key||"";function Jj(e){const t=[];return k.Children.forEach(e,r=>{k.isValidElement(r)&&t.push(r)}),t}const Od=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:i=!0,mode:a="sync",propagate:o=!1,anchorX:s="left",anchorY:l="top",root:c})=>{const[u,d]=L3(o),h=k.useMemo(()=>Jj(e),[e]),p=o&&!u?[]:h.map(yp),y=k.useRef(!0),m=k.useRef(h),g=rk(()=>new Map),b=k.useRef(new Set),[v,x]=k.useState(h),[S,w]=k.useState(h);pL(()=>{y.current=!1,m.current=h;for(let T=0;T<S.length;T++){const j=yp(S[T]);p.includes(j)?(g.delete(j),b.current.delete(j)):g.get(j)!==!0&&g.set(j,!1)}},[S,p.length,p.join("-")]);const _=[];if(h!==v){let T=[...h];for(let j=0;j<S.length;j++){const P=S[j],C=yp(P);p.includes(C)||(T.splice(j,0,P),_.push(P))}return a==="wait"&&_.length&&(T=_),w(Jj(T)),x(h),null}const{forceRender:A}=k.useContext(tk);return f.jsx(f.Fragment,{children:S.map(T=>{const j=yp(T),P=o&&!u?!1:h===S||p.includes(j),C=()=>{if(b.current.has(j))return;if(b.current.add(j),g.has(j))g.set(j,!0);else return;let O=!0;g.forEach($=>{$||(O=!1)}),O&&(A==null||A(),w(m.current),o&&(d==null||d()),n&&n())};return f.jsx(oZ,{isPresent:P,initial:!y.current||r?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:c,onExitComplete:P?void 0:C,anchorX:s,anchorY:l,children:T},j)})})},B3=k.createContext({strict:!1}),Qj={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let eO=!1;function lZ(){if(eO)return;const e={};for(const t in Qj)e[t]={isEnabled:r=>Qj[t].some(n=>!!r[n])};p3(e),eO=!0}function F3(){return lZ(),YG()}function cZ(e){const t=F3();for(const r in e)t[r]={...t[r],...e[r]};p3(t)}const uZ=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ry(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||uZ.has(e)}let U3=e=>!ry(e);function dZ(e){typeof e=="function"&&(U3=t=>t.startsWith("on")?!ry(t):e(t))}try{dZ(require("@emotion/is-prop-valid").default)}catch{}function fZ(e,t,r){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(U3(i)||r===!0&&ry(i)||!t&&!ry(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}const Qg=k.createContext({});function hZ(e,t){if(Jg(e)){const{initial:r,animate:n}=e;return{initial:r===!1||vf(r)?r:void 0,animate:vf(n)?n:void 0}}return e.inherit!==!1?t:{}}function pZ(e){const{initial:t,animate:r}=hZ(e,k.useContext(Qg));return k.useMemo(()=>({initial:t,animate:r}),[tO(t),tO(r)])}function tO(e){return Array.isArray(e)?e.join(" "):e}const Pk=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function V3(e,t,r){for(const n in t)!vr(t[n])&&!w3(n,r)&&(e[n]=t[n])}function mZ({transformTemplate:e},t){return k.useMemo(()=>{const r=Pk();return Ek(r,t,e),Object.assign({},r.vars,r.style)},[t])}function yZ(e,t){const r=e.style||{},n={};return V3(n,r,e),Object.assign(n,mZ(e,t)),n}function gZ(e,t){const r={},n=yZ(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const z3=()=>({...Pk(),attrs:{}});function vZ(e,t,r,n){const i=k.useMemo(()=>{const a=z3();return S3(a,t,k3(n),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};V3(a,e.style,e),i.style={...a,...i.style}}return i}const bZ=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ck(e){return typeof e!="string"||e.includes("-")?!1:!!(bZ.indexOf(e)>-1||/[A-Z]/u.test(e))}function xZ(e,t,r,{latestValues:n}
vendor: 4,276 bytes, line 456
456,i,a=!1,o){const l=(o??Ck(e)?vZ:gZ)(t,n,i,e),c=fZ(t,typeof e=="string",a),u=e!==k.Fragment?{...c,...l,ref:r}:{},{children:d}=t,h=k.useMemo(()=>vr(d)?d.get():d,[d]);return k.createElement(e,{...u,children:h})}function wZ({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,i){return{latestValues:SZ(r,n,i,e),renderState:t()}}function SZ(e,t,r,n){const i={},a=n(e,{});for(const h in a)i[h]=um(a[h]);let{initial:o,animate:s}=e;const l=Jg(e),c=f3(e);t&&c&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=r?r.initial===!1:!1;u=u||o===!1;const d=u?s:o;if(d&&typeof d!="boolean"&&!Zg(d)){const h=Array.isArray(d)?d:[d];for(let p=0;p<h.length;p++){const y=bk(e,h[p]);if(y){const{transitionEnd:m,transition:g,...b}=y;for(const v in b){let x=b[v];if(Array.isArray(x)){const S=u?x.length-1:0;x=x[S]}x!==null&&(i[v]=x)}for(const v in m)i[v]=m[v]}}}return i}const W3=e=>(t,r)=>{const n=k.useContext(Qg),i=k.useContext(Gg),a=()=>wZ(e,t,n,i);return r?a():rk(a)},_Z=W3({scrapeMotionValuesFromProps:jk,createRenderState:Pk}),kZ=W3({scrapeMotionValuesFromProps:A3,createRenderState:z3}),AZ=Symbol.for("motionComponentSymbol");function TZ(e,t,r){const n=k.useRef(r);k.useInsertionEffect(()=>{n.current=r});const i=k.useRef(null);return k.useCallback(a=>{var s;a&&((s=e.onMount)==null||s.call(e,a)),t&&(a?t.mount(a):t.unmount());const o=n.current;if(typeof o=="function")if(a){const l=o(a);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):o(a);else o&&(o.current=a)},[t])}const H3=k.createContext({});function Sl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function EZ(e,t,r,n,i,a){var x,S;const{visualElement:o}=k.useContext(Qg),s=k.useContext(B3),l=k.useContext(Gg),c=k.useContext(Ok),u=c.reducedMotion,d=c.skipAnimations,h=k.useRef(null),p=k.useRef(!1);n=n||s.renderer,!h.current&&n&&(h.current=n(e,{visualState:t,parent:o,props:r,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const y=h.current,m=k.useContext(H3);y&&!y.projection&&i&&(y.type==="html"||y.type==="svg")&&jZ(h.current,r,i,m);const g=k.useRef(!1);k.useInsertionEffect(()=>{y&&g.current&&y.update(r,l)});const b=r[QL],v=k.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,b)));return pL(()=>{p.current=!0,y&&(g.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),v.current&&y.animationState&&y.animationState.animateChanges())}),k.useEffect(()=>{y&&(!v.current&&y.animationState&&y.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)==null||w.call(window,b)}),v.current=!1),y.enteringChildren=void 0)}),y}function jZ(e,t,r,n){const{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:q3(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Sl(s),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:c})}function q3(e){if(e)return e.options.allowProjection!==!1?e.projection:q3(e.parent)}function Zb(e,{forwardMotionProps:t=!1,type:r}={},n,i){n&&cZ(n);const a=r?r==="svg":Ck(e),o=a?kZ:_Z;function s(c,u){let d;const h={...k.useContext(Ok),...c,layoutId:OZ(c)},{isStatic:p}=h,y=pZ(c),m=o(c,p);if(!p&&hL){PZ();const g=CZ(h);d=g.MeasureLayout,y.visualElement=EZ(e,m,h,i,g.ProjectionNode,a)}return f.jsxs(Qg.Provider,{value:y,children:[d&&y.visualElement?f.jsx(d,{visualElement:y.visualElement,...h}):null,xZ(e,c,TZ(m,y.visualElement,u),m,p,t,a)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=k.forwardRef(s);return l[AZ]=e,l}function OZ({layoutId:e}){const t=k.useContext(tk).id;return t&&e!==void 0?t+"-"+e:e}function PZ(e,t){k.useContext(B3).strict}function CZ(e){const t=F3(),{drag:r,layout:n}=t;if(!r&&!n)return{};const i={...r,...n};return{MeasureLayout:r!=null&&r.isEnabled(e)||n!=null&&n.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}
vendor: 5,834 bytes, line 456
456function NZ(e,t){if(typeof Proxy>"u")return Zb;const r=new Map,n=(a,o)=>Zb(a,o,e,t),i=(a,o)=>n(a,o);return new Proxy(i,{get:(a,o)=>o==="create"?n:(r.has(o)||r.set(o,Zb(o,void 0,e,t)),r.get(o))})}const RZ=(e,t)=>t.isSVG??Ck(e)?new dX(t):new aX(t,{allowProjection:e!==k.Fragment});class IZ extends $o{constructor(t){super(t),t.animationState||(t.animationState=yX(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Zg(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let $Z=0;class MZ extends $o{constructor(){super(...arguments),this.id=$Z++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);r&&!t&&i.then(()=>{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const DZ={animation:{Feature:IZ},exit:{Feature:MZ}};function Oh(e){return{point:{x:e.pageX,y:e.pageY}}}const LZ=e=>t=>_k(t)&&e(t,Oh(t));function Pd(e,t,r,n){return bf(e,t,LZ(r),n)}const K3=({current:e})=>e?e.ownerDocument.defaultView:null,rO=(e,t)=>Math.abs(e-t);function BZ(e,t){const r=rO(e.x,t.x),n=rO(e.y,t.y);return Math.sqrt(r**2+n**2)}const nO=new Set(["auto","scroll"]);class Y3{constructor(t,r,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:o=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=Qb(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,m=BZ(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!m)return;const{point:g}=p,{timestamp:b}=or;this.history.push({...g,timestamp:b});const{onStart:v,onMove:x}=this.handlers;y||(v&&v(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,y)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=Jb(y,this.transformPagePoint),st.update(this.updatePoint,!0)},this.handlePointerUp=(p,y)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:b}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Qb(p.type==="pointercancel"?this.lastMoveEventInfo:Jb(y,this.transformPagePoint),this.history);this.startEvent&&m&&m(p,v),g&&g(p,v)},!_k(t))return;this.dragSnapToOrigin=a,this.handlers=r,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;const l=Oh(t),c=Jb(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=or;this.history=[{...u,timestamp:d}];const{onSessionStart:h}=r;h&&h(t,Qb(c,this.history)),this.removeListeners=Th(Pd(this.contextWindow,"pointermove",this.handlePointerMove),Pd(this.contextWindow,"pointerup",this.handlePointerUp),Pd(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(t){let r=t.parentElement;for(;r;){const n=getComputedStyle(r);(nO.has(n.overflowX)||nO.has(n.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const r=this.scrollPositions.get(t);if(!r)return;const n=t===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},a={x:i.x-r.x,y:i.y-r.y};a.x===0&&a.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(t,i),st.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),To(this.updatePoint)}}function Jb(e,t){return t?{point:t(e.point)}:e}function iO(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Qb({point:e},t){return{point:e,delta:iO(e,G3(t)),offset:iO(e,FZ(t)),velocity:UZ(t,.1)}}function FZ(e){return e[0]}function G3(e){return e[e.length-1]}function UZ(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const i=G3(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>An(t)));)r--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&i.timestamp-n.timestamp>An(t)*2&&(n=e[1]);const a=wn(i.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const o={x:(i.x-n.x)/a,y:(i.y-n.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function VZ(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?wt(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?wt(r,e,n.max):Math.min(e,r)),e}function aO(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function zZ(e,{top:t,left:r,bottom:n,right:i}){return{x:aO(e.x,r,i),y:aO(e.y,t,n)}}function oO(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function WZ(e,t){return{x:oO(e.x,t.x),y:oO(e.y,t.y)}}function HZ(e,t){let r=.5;
vendor: 15,594 bytes, line 456
456const n=Er(e),i=Er(t);return i>n?r=mf(t.min,t.max-n,e.min):n>i&&(r=mf(e.min,e.max-i,t.min)),Mi(0,1,r)}function qZ(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const Tw=.35;function KZ(e=Tw){return e===!1?e=0:e===!0&&(e=Tw),{x:sO(e,"left","right"),y:sO(e,"top","bottom")}}function sO(e,t,r){return{min:lO(e,t),max:lO(e,r)}}function lO(e,t){return typeof e=="number"?e:e[t]||0}const YZ=new WeakMap;class GZ{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ht(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:n}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=d=>{r&&this.snapToCursor(Oh(d).point),this.stopAnimation()},o=(d,h)=>{const{drag:p,dragPropagation:y,onDragStart:m}=this.getProps();if(p&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=kG(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),mi(b=>{let v=this.getAxisMotionValue(b).get()||0;if(Pi.test(v)){const{projection:x}=this.visualElement;if(x&&x.layout){const S=x.layout.layoutBox[b];S&&(v=Er(S)*(parseFloat(v)/100))}}this.originPoint[b]=v}),m&&st.update(()=>m(d,h),!1,!0),vw(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h;const{dragPropagation:p,dragDirectionLock:y,onDirectionLock:m,onDrag:g}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:b}=h;if(y&&this.currentDirection===null){this.currentDirection=ZZ(b),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,b),this.updateAxis("y",h.point,b),this.visualElement.render(),g&&st.update(()=>g(d,h),!1,!0)},l=(d,h)=>{this.latestPointerEvent=d,this.latestPanInfo=h,this.stop(d,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new Y3(t,{onSessionStart:a,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:K3(this.visualElement),element:this.visualElement.current})}stop(t,r){const n=t||this.latestPointerEvent,i=r||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!n)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&st.postRender(()=>s(n,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,r,n){const{drag:i}=this.getProps();if(!n||!gp(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=VZ(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)==null?void 0:a.layout,i=this.constraints;t&&Sl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=zZ(n.layoutBox,t):this.constraints=!1,this.elastic=KZ(r),i!==this.constraints&&!Sl(t)&&n&&this.constraints&&!this.hasMutatedConstraints&&mi(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=qZ(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Sl(t))return!1;const n=t.current;Cc(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=QG(n,i.root,this.visualElement.getTransformPagePoint());let o=WZ(i.layout.layoutBox,a);if(r){const s=r(XG(o));this.hasMutatedConstraints=!!s,s&&(o=y3(s))}return o}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=mi(u=>{if(!gp(u,r,this.currentDirection))return;let d=l&&l[u]||{};o&&(d={min:0,max:0});const h=i?200:1e6,p=i?40:1e7,y={type:"inertia",velocity:n?t[u]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(u,y)});return Promise.all(c).then(s)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return vw(this.visualElement,t),n.start(vk(t,n,0,r,this.visualElement,!1))}stopAnimation(){mi(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){mi(r=>{const{drag:n}=this.getProps();if(!gp(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(r);if(i&&i.layout){const{min:o,max:s}=i.layout.layoutBox[r],l=a.get()||0;a.set(t[r]-wt(o,s,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Sl(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};mi(o=>{const s=this.getAxisMotionValue(o);if(s&&this.constraints!==!1){const l=s.get();i[o]=HZ({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),mi(o=>{if(!gp(o,t,null))return;const s=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];s.set(wt(l,c,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;YZ.set(this.visualElement,this);const t=this.visualElement.current,r=Pd(t,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),h=c.target,p=h!==t&&PG(h);u&&d&&!p&&this.start(c)});let n;const i=()=>{const{dragConstraints:c}=this.getProps();Sl(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),n||(n=XZ(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:a}=this.visualElement,o=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),st.read(i);const s=bf(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(mi(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=c[d].translate,h.set(h.get()+c[d].translate))}),this.visualElement.render())});return()=>{s(),r(),o(),l&&l(),n&&n()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=Tw,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function cO(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function XZ(e,t,r){const n=yj(e,cO(r)),i=yj(t,cO(r));return()=>{n(),i()}}function gp(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function ZZ(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class JZ extends $o{constructor(t){super(t),this.removeGroupControls=kn,this.removeListeners=kn,this.controls=new GZ(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kn}update(){const{dragControls:t}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};t!==r&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const e0=e=>(t,r)=>{e&&st.update(()=>e(t,r),!1,!0)};class QZ extends $o{constructor(){super(...arguments),this.removePointerDownListener=kn}onPointerDown(t){this.session=new Y3(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:K3(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:e0(t),onStart:e0(r),onMove:e0(n),onEnd:(a,o)=>{delete this.session,i&&st.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=Pd(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let t0=!1;class eJ extends k.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:a}=t;a&&(r.group&&r.group.add(a),n&&n.register&&i&&n.register(a),t0&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),dm.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:i,isPresent:a}=this.props,{projection:o}=n;return o&&(o.isPresent=a,t.layoutDependency!==r&&o.setOptions({...o.options,layoutDependency:r}),t0=!0,i||t.layoutDependency!==r||r===void 0||t.isPresent!==a?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||st.postRender(()=>{const s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Sk.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=t;t0=!0,i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function X3(e){const[t,r]=L3(),n=k.useContext(tk);return f.jsx(eJ,{...e,layoutGroup:n,switchLayoutGroup:k.useContext(H3),isPresent:t,safeToRemove:r})}const tJ={pan:{Feature:QZ},drag:{Feature:JZ,ProjectionNode:D3,MeasureLayout:X3}};function uO(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const i="onHover"+r,a=n[i];a&&st.postRender(()=>a(t,Oh(t)))}class rJ extends $o{mount(){const{current:t}=this.node;t&&(this.unmount=TG(t,(r,n)=>(uO(this.node,n,"Start"),i=>uO(this.node,i,"End"))))}unmount(){}}class nJ extends $o{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Th(bf(this.node.current,"focus",()=>this.onFocus()),bf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function dO(e,t,r){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const i="onTap"+(r==="End"?"":r),a=n[i];a&&st.postRender(()=>a(t,Oh(t)))}class iJ extends $o{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:r,propagate:n}=this.node.props;this.unmount=NG(t,(i,a)=>(dO(this.node,a,"Start"),(o,{success:s})=>dO(this.node,o,s?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:(n==null?void 0:n.tap)===!1})}unmount(){}}const Ew=new WeakMap,r0=new WeakMap,aJ=e=>{const t=Ew.get(e.target);t&&t(e)},oJ=e=>{e.forEach(aJ)};function sJ({root:e,...t}){const r=e||document;r0.has(r)||r0.set(r,{});const n=r0.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(oJ,{root:e,...t})),n[i]}function lJ(e,t,r){const n=sJ(t);return Ew.set(e,r),n.observe(e),()=>{Ew.delete(e),n.unobserve(e)}}const cJ={some:0,all:1};class uJ extends $o{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:a}=t,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:cJ[i]},s=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=c?u:d;h&&h(l)};return lJ(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(dJ(t,r))&&this.startObserver()}unmount(){}}function dJ({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const fJ={inView:{Feature:uJ},tap:{Feature:iJ},focus:{Feature:nJ},hover:{Feature:rJ}},hJ={layout:{ProjectionNode:D3,MeasureLayout:X3}},pJ={...DZ,...fJ,...tJ,...hJ},q=NZ(pJ,RZ),mJ="/assets/clubcloud_black-vKH6poOp.png",Z3="/assets/clubcloud_white-BOkYp_Pt.png",fO=[{label:"Scheduling",to:"/features/scheduling"},{label:"Events",to:"/features/events"},{label:"Members",to:"/features/members"},{label:"CRM & Website",to:"/features/crm"},{label:"Payments & POS",to:"/features/payments"},{label:"Reporting",to:"/features/reporting"},{label:"Member Portal",to:"/features/member-portal"},{label:"Communication",to:"/features/communication"},{label:"Integrations",to:"/features/integrations"}],hO=[{label:"Pricing",href:"/pricing"},{label:"Blog",href:"/blog"},{label:"Support",href:"/support"}],Wr=()=>{const[e,t]=k.useState(!1),[r,n]=k.useState(!1),[i,a]=k.useState(!1),[o,s]=k.useState(!1),l=k.useRef(null),c=Io(),u=()=>{typeof window<"u"&&window.fbq&&window.fbq("trackCustom","ContactSalesClick")},d=c.pathname==="/"||c.pathname.startsWith("/features/");k.useEffect(()=>{const p=()=>s(window.scrollY>50);return window.addEventListener("scroll",p,{passive:!0}),p(),()=>window.removeEventListener("scroll",p)},[]),k.useEffect(()=>{const p=y=>{l.current&&!l.current.contains(y.target)&&n(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]);const h=d&&!o&&!e;return f.jsxs("nav",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${h?"bg-transparent border-b border-transparent":"bg-background/80 backdrop-blur-lg border-b border-border"}`,children:[f.jsxs("div",{className:"container mx-auto flex items-center justify-between h-16 px-6",children:[f.jsx(Ke,{to:"/",className:"flex items-center",children:f.jsx("img",{src:h?Z3:mJ,alt:"clubcloud",className:"h-9"})}),f.jsxs("div",{className:"hidden md:flex items-center gap-8",children:[f.jsxs("div",{ref:l,className:"relative",children:[f.jsxs("button",{onClick:()=>n(!r),className:`inline-flex items-center gap-1 text-sm transition-colors ${h?"text-primary-foreground
456/80 hover:text-primary-foreground":"text-muted-foreground hover:text-foreground"}`,children:["Features",f.jsx(lf,{className:`w-3.5 h-3.5 transition-transform ${r?"rotate-180":""}`})]}),f.jsx(Od,{children:r&&f.jsx(q.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:8},transition:{duration:.15},className:"absolute top-full left-1/2 -translate-x-1/2 mt-3 w-56 rounded-xl border border-border bg-background shadow-xl z-50 py-2",children:fO.map(p=>f.jsx(Ke,{to:p.to,onClick:()=>n(!1),className:"block px-4 py-2.5 text-sm text-muted-foreground hover:text-foreground hover:bg-secondary transition-colors",children:p.label},p.label))})})]}),hO.map(p=>f.jsx(Ke,{to:p.href,className:`text-sm transition-colors ${h?"text-primary-foreground/80 hover:text-primary-foreground":"text-muted-foreground hover:text-foreground"}`,children:p.label},p.label)),f.jsxs(Ke,{to:"/demo",onClick:u,className:"inline-flex items-center justify-center gap-1.5 rounded-full bg-accent px-5 py-2.5 text-sm font-semibold text-accent-foreground hover:brightness-110 transition-all",children:["Contact Sales",f.jsx(Ds,{className:"w-3.5 h-3.5"})]})]}),f.jsx("button",{className:`md:hidden ${h?"text-primary-foreground":"text-foreground"}`,onClick:()=>t(!e),children:e?f.jsx(D_,{size:22}):f.jsx(IW,{size:22})})]}),f.jsx(Od,{children:e&&f.jsx(q.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"md:hidden bg-background border-b border-border overflow-hidden",children:f.jsxs("div",{className:"flex flex-col gap-1 px-6 py-6",children:[f.jsxs("button",{onClick:()=>a(!i),className:"flex items-center justify-between py-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:["Features",f.jsx(lf,{className:`w-3.5 h-3.5 transition-transform ${i?"rotate-180":""}`})]}),f.jsx(Od,{children:i&&f.jsx(q.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},className:"overflow-hidden pl-4",children:fO.map(p=>f.jsx(Ke,{to:p.to,onClick:()=>{t(!1),a(!1)},className:"block py-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:p.label},p.label))})}),hO.map(p=>f.jsx(Ke,{to:p.href,onClick:()=>t(!1),className:"py-2 text-sm text-muted-foreground hover:text-foreground transition-colors",children:p.label},p.label)),f.jsxs(Ke,{to:"/demo",onClick:()=>{t(!1),u()},className:"mt-2 inline-flex items-center justify-center gap-1.5 rounded-full bg-accent px-5 py-2.5 text-sm font-semibold text-accent-foreground",children:["Contact Sales",f.jsx(Ds,{className:"w-3.5 h-3.5"})]})]})})})]})},J3="/assets/high_five-4waKuG56.webp",yJ=["All-in-One Platform","Club Operators","30+ Years Experience"],gJ=()=>f.jsxs("section",{className:"relative min-h-[90vh] flex items-center overflow-hidden",children:[f.jsxs("div",{className:"absolute inset-0",children:[f.jsx("img",{src:J3,alt:"",className:"w-full h-full object-cover","aria-hidden":"true"}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-primary/95 via-primary/85 to-primary/60"}),f.jsx("div",{className:"absolute inset-0 texture-lines opacity-40"})]}),f.jsx("div",{className:"glow-blob top-[20%] right-[10%] w-[400px] h-[400px] bg-accent/15 blur-[120px]"}),f.jsx("div",{className:"glow-blob bottom-[10%] left-[5%] w-[300px] h-[300px] bg-accent/10 blur-[100px]"}),f.jsx("div",{className:"container mx-auto px-6 relative z-10 pt-28 pb-20 md:pt-36 md:pb-28",children:f.jsxs("div",{className:"max-w-3xl",children:[f.jsxs(q.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7},className:"font-display font-800 text-4xl md:text-5xl lg:text-[3.75rem] xl:text-[4.25rem] leading-[1.08] tracking-tight text-primary-foreground",children:["Operate Your Club",f.jsx("br",{}),"With Total"," ",f.jsx("span",{className:"text-accent",children:"Clarity."})]}),f.jsx(q.p,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.7,delay:.15},className:"mt-6 text-lg md:text-xl text-primary-foreground/75 max-w-xl leading-relaxed",children:"clubcloud⢠is the operator-first platform built to run modern racquet and multi-activity clubs: scheduling, payments, members, reporting, and communication in one system."}),f.jsxs(q.div,{initial:{opacity:0,y:24}
456,animate:{opacity:1,y:0},transition:{duration:.7,delay:.3},className:"mt-10 flex flex-wrap items-center gap-4",children:[f.jsxs(Ke,{to:"/demo",className:"inline-flex items-center justify-center gap-2 rounded-full bg-accent px-8 py-3.5 text-base font-semibold text-accent-foreground hover:brightness-110 transition-all shadow-lg shadow-accent/25",children:["Speak with our team",f.jsx(Ds,{className:"w-4 h-4"})]}),f.jsx(Ke,{to:"/features",className:"inline-flex items-center justify-center rounded-full border border-primary-foreground/30 px-7 py-3.5 text-base font-medium text-primary-foreground hover:bg-primary-foreground/10 transition-colors",children:"Explore Features"})]})]})}),f.jsx(q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,delay:.5},className:"absolute bottom-0 left-0 right-0 z-10",children:f.jsx("div",{className:"bg-primary/60 backdrop-blur-md border-t border-primary-foreground/10",children:f.jsx("div",{className:"container mx-auto px-6 py-4 flex flex-wrap items-center justify-center gap-6 md:gap-10",children:yJ.map(e=>f.jsxs("span",{className:"inline-flex items-center gap-2 text-sm font-medium text-primary-foreground/80",children:[f.jsx(N_,{className:"w-4 h-4 text-accent"}),e]},e))})})})]}),vJ="/assets/lets_go_pickleball-CdxAdCB_.png",bJ="/assets/greystone-D7clyaS4.png",xJ="/assets/bennington-CbLCVyTQ.png",wJ="/assets/bass_river-CN_knqb9.png",SJ="/assets/spark-CFEGVtJy.png",_J="/assets/gilford_hills-BHRfvYmh.png",kJ="/assets/cq_sports-C_VJ3GBn.png",AJ="/assets/rh_tennis_fitness-B9NqW7Sq.png",TJ="/assets/centerline33-C_PjEjIx.png",pO=[{name:"Let's Go Pickleball",logo:vJ,url:"https://letsgopickleball.com/"},{name:"Greystone Pickleball Club",logo:bJ,url:"https://greystonepickleball.com/"},{name:"Bennington Tennis Club",logo:xJ},{name:"Bass River Tennis Club",logo:wJ,url:"https://www.bassrivertennisclub.com/"},{name:"Spark Fitness and Tennis Club",logo:SJ,className:"h-8 md:h-9",url:"https://www.sparkfitnessandtennis.com/"},{name:"Gilford Hills Tennis & Fitness Club",logo:_J,url:"https://www.gilfordhills.com/"},{name:"CQ Sports",logo:kJ,url:"https://cq-sports.odoo.com/"},{name:"Rocky Hill Tennis & Fitness Center",logo:AJ,url:"https://tennisandfitnesscenter.com/"},{name:"CenterLine 33",logo:TJ,url:"https://centerline33.com/"}],EJ=[...pO,...pO],jJ=()=>f.jsxs("section",{className:"py-12 border-b border-border overflow-hidden",children:[f.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground text-center mb-8",children:"Trusted by clubs nationwide"}),f.jsxs("div",{className:"relative",children:[f.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-20 bg-gradient-to-r from-background to-transparent z-10 pointer-events-none"}),f.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-20 bg-gradient-to-l from-background to-transparent z-10 pointer-events-none"}),f.jsx("div",{className:"flex animate-marquee items-center gap-16 md:gap-20 w-max",children:EJ.map((e,t)=>{const r=f.jsx("img",{src:e.logo,alt:e.name,className:"h-full w-auto object-contain"});return f.jsx("div",{className:`flex items-center justify-center ${e.className||"h-12 md:h-14"} opacity-70 hover:opacity-100 transition-opacity flex-shrink-0`,children:e.url?f.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"h-full",children:r}):r},`${e.name}-${t}`)})})]})]}),Q3="/assets/padel_match-GGbY_Koh.webp",e4="/assets/gym_training-BW8o0L8-.webp",Nk="/assets/tennis_clinic-AEKBJpoi.webp",OJ=[{src:Q3,alt:"Padel match in action"},{src:e4,alt:"Gym training session"},{src:Nk,alt:"Tennis clinic with players"}],mO=["Tennis","Pickleball","Padel","Fitness","Multi-sport facilities"],PJ=()=>f.jsx("section",{className:"section-padding section-alt",children:f.jsxs("div",{className:"container mx-auto px-6 text-center max-w-4xl",children:[f.jsx(q.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"font-display font-700 text-3xl md:text-4xl xl:text-[2.75rem] tracking-tight text-foreground",children:"Built for serious club operators."}),f.jsx(q.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.15},className:"mt-8 flex flex-wrap justify-center gap-2",children:mO.map((e,t)=>f.jsxs("span",{children:[f.jsx("span",{className:"text-lg text-muted-foreground font-medium",children:e}),t<mO.length-1&&f.jsx("span",{className:"text-lg text-muted-foreground
456/40 mx-2",children:"·"})]},e))}),f.jsx("div",{className:"mt-10 grid grid-cols-1 md:grid-cols-3 gap-4",children:OJ.map((e,t)=>f.jsx(q.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1*t},className:"rounded-xl border border-border overflow-hidden",children:f.jsx("img",{src:e.src,alt:e.alt,className:"w-full h-[260px] object-cover",loading:"lazy"})},e.alt))})]})}),CJ="/assets/pickleball_player-D0MBzcsa.webp",NJ=()=>f.jsx("section",{className:"section-padding",children:f.jsx("div",{className:"container mx-auto px-6 max-w-5xl",children:f.jsxs("div",{className:"grid md:grid-cols-2 gap-10 md:gap-16 items-center",children:[f.jsxs(q.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},children:[f.jsxs("h2",{className:"font-display font-700 text-3xl md:text-4xl xl:text-[2.75rem] tracking-tight text-foreground",children:["Built by club professionals,"," ",f.jsx("span",{className:"text-gradient",children:"for club professionals."})]}),f.jsx("p",{className:"mt-6 text-lg text-muted-foreground leading-relaxed",children:"Elevate your club with an all-in-one platform crafted by industry experts with over 30 years of experience in racquets and fitness."})]}),f.jsx(q.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6,delay:.15},className:"rounded-2xl overflow-hidden border border-border shadow-lg",children:f.jsx("img",{src:CJ,alt:"Pickleball player in action on court",className:"w-full h-[320px] md:h-[380px] object-cover",loading:"lazy"})})]})})}),RJ=[{icon:fu,title:"Scheduling",desc:"Real-time booking with zero ambiguity. Courts, classes, events, and training in one live system.",link:"/features/scheduling"},{icon:_h,title:"Events",desc:"Enrollment, waitlists, and attendance, automated. From private lessons to public events.",link:"/features/events"},{icon:Js,title:"Member Management",desc:"Memberships, credits, packages, and history unified in one clean member profile.",link:"/features/members"},{icon:Bg,title:"CRM",desc:"Lead capture and follow-up without manual effort. Track the complete customer journey.",link:"/features/crm"},{icon:wh,title:"Communication",desc:"Email and SMS built into the core system. Targeted messaging tied to programs and rosters.",link:"/features/communication"},{icon:XM,title:"Payments & POS",desc:"Every transaction tracked. Nothing missed. One financial system across every revenue stream.",link:"/features/payments"},{icon:xh,title:"Reporting",desc:"Operational and financial clarity in seconds. Utilization, revenue, and performance at a glance.",link:"/features/reporting"},{icon:M_,title:"Mobile App",desc:"Members self-serve. Staff stays focused. Booking, attendance, and profiles on the go.",link:"/features/member-portal"}],IJ={hidden:{},show:{transition:{staggerChildren:.07}}},$J={hidden:{opacity:0,y:20},show:{opacity:1,y:0,transition:{duration:.5}}},MJ=()=>f.jsxs("section",{id:"features",className:"section-padding section-alt relative overflow-hidden",children:[f.jsx("div",{className:"glow-blob top-[-5%] left-[-5%] w-[500px] h-[500px] bg-accent/15 blur-[130px]"}),f.jsxs("div",{className:"container mx-auto px-6 relative z-10",children:[f.jsx("div",{className:"text-center max-w-2xl mx-auto mb-16",children:f.jsx("h2",{className:"font-display font-700 text-3xl md:text-4xl xl:text-[2.75rem] tracking-tight text-foreground",children:"One platform. Total control."})}),f.jsx(q.div,{variants:IJ,initial:"hidden",whileInView:"show",viewport:{once:!0,margin:"-80px"},className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-4 max-w-7xl mx-auto",children:RJ.map(e=>f.jsx(Ke,{to:e.link,children:f.jsxs(q.div,{variants:$J,className:"group rounded-xl border border-border card-border-accent bg-background p-6 xl:p-8 hover:shadow-lg hover:border-accent/40 transition-all duration-300 hover:-translate-y-1 cursor-pointer h-full",children:[f.jsx("div",{className:"mb-4 inline-flex items-center justify-center w-14 h-14 rounded-xl bg-accent/10",children:f.jsx(e.icon,{className:"w-7 h-7 text-accent-foreground"})}),f.jsx("h3",{className:"font-display font-600 text-base text-foreground mb-2 leading-snug group-hover:text-accent transition-colors",children:e.title}),f.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]})}
456,e.title))})]})]}),DJ=[{icon:pW,title:"We run clubs.",desc:"We built the system we needed. Designed by operators who understand real front desk workflows."},{icon:JM,title:"We prioritize clarity.",desc:"Complexity is not a feature. If staff need training manuals, software failed."},{icon:AW,title:"We partner long term.",desc:"No rigid tiers. No unnecessary add-ons. A platform built through constant innovation focused on your needs."}],LJ=()=>f.jsxs("section",{id:"why",className:"section-padding relative overflow-hidden",children:[f.jsx("div",{className:"glow-blob top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-accent/15 blur-[140px]"}),f.jsxs("div",{className:"container mx-auto px-6 max-w-5xl relative z-10",children:[f.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-16",children:[f.jsx(q.p,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-sm font-semibold uppercase tracking-widest text-warm mb-4",children:"Why clubcloudâ¢"}),f.jsx(q.h2,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.05},className:"font-display font-700 text-3xl md:text-4xl xl:text-[2.75rem] tracking-tight text-foreground",children:"Designed by operators. Built for performance."})]}),f.jsx("div",{className:"grid gap-6 md:grid-cols-3",children:DJ.map((e,t)=>f.jsxs(q.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.12,duration:.5},className:"group rounded-2xl border border-border card-border-accent bg-background p-8 hover:shadow-xl hover:border-accent/40 transition-all duration-300 hover:-translate-y-1",children:[f.jsx("div",{className:"mb-5 inline-flex items-center justify-center w-16 h-16 rounded-xl bg-accent/10 group-hover:bg-accent/20 transition-colors",children:f.jsx(e.icon,{className:"w-8 h-8 text-accent"})}),f.jsx("h3",{className:"font-display font-700 text-lg text-foreground mb-3",children:e.title}),f.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.desc})]},e.title))})]})]}),t4="/assets/dupr_logo-BkBMHdHV.png",r4="/assets/playsight_logo-C0PYN974.png",n4="/assets/usta_logo-BeKJCwkv.png",i4="/assets/brivo_logo-DEmRO60f.png",a4="/assets/swish_logo-DNO44wWA.webp",yO=[{name:"DUPR",logo:t4,url:"https://www.dupr.com/"},{name:"Swish",logo:a4,url:"https://swishsportsapp.com/"},{name:"PlaySight",logo:r4,url:"https://playsight.com/"},{name:"USTA / WTN",logo:n4,url:"https://www.usta.com/en/home.html"},{name:"Brivo",logo:i4,url:"https://www.brivo.com/"}],BJ=()=>f.jsx("section",{className:"section-padding relative overflow-hidden",children:f.jsxs("div",{className:"container mx-auto px-6 max-w-5xl relative z-10",children:[f.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-14",children:[f.jsx(q.p,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-sm font-semibold uppercase tracking-widest text-warm mb-4",children:"Integrations"}),f.jsx(q.h2,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.05},className:"font-display font-700 text-3xl md:text-4xl tracking-tight text-foreground",children:"Connected where it counts."}),f.jsx(q.p,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"mt-4 text-muted-foreground text-lg leading-relaxed",children:"A complete platform enhanced by strategic partnerships, not dependent on them."})]}),f.jsx("div",{className:"flex justify-center gap-6 md:gap-10 mb-6 md:mb-10",children:yO.slice(0,3).map((e,t)=>f.jsxs(q.a,{href:e.url,target:"_blank",rel:"noopener noreferrer",initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.15+t*.1},className:"group flex flex-col items-center gap-3",children:[f.jsx("div",{className:"w-20 h-20 md:w-24 md:h-24 rounded-2xl bg-background border border-border shadow-md flex items-center justify-center p-4 md:p-5 group-hover:border-accent/40 group-hover:shadow-xl transition-all duration-300 group-hover:-translate-y-1",children:f.jsx("img",{src:e.logo,alt:e.name,className:"w-full h-full object-contain"})}),f.jsx("span",{className:"text-xs font-semibold text-muted-foreground tracking-wide group-hover:text-foreground transition-colors",children:e.name})]},e.name))}),f.jsx("div",{className:"flex justify-center gap-6 md:gap-10",children:yO.slice(3).map((e,t)=>f.jsxs(q.a,{href:e.url,target:"_blank",rel:"noopener noreferrer",initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.45+t*.1},className:"group flex flex-col items-center gap-3",children:[f.jsx("div",{className:"w-20 h-20 md:w-24 md:h-24 rounded-2xl bg-background border border-border shadow-md flex items-center justify-center p-4 md:p-5 group-hover:border-accent/40 group-hover:shadow-xl transition-all duration-300 group-hover:-translate-y-1",children:f.jsx("img",{src:e.logo,alt:e.name,className:"w-full h-full object-contain"})}),f.jsx("span",{className:"text-xs font-semibold text-muted-foreground tracking-wide group-hover:text-foreground transition-colors",children:e.name})]},e.name))}),f.jsx(q.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.6},className:"text-center mt-12",children:f.jsx(Ke,{to:"/features/integrations",className:"inline-flex items-center gap-2 text-sm font-semibold text-accent hover:text-accent/80 transition-colors",children:"Explore all integrations â"})})]})}),FJ="/assets/mobile_app-vD_F6q1N.webp",UJ="/assets/pickleball_serve-B8GiIdnZ.webp",VJ=()=>f.jsx("section",{className:"py-8 md:py-12 overflow-hidden",children:f.jsx("div",{className:"container mx-auto px-6 max-w-5xl",children:f.jsxs("div",{className:"grid grid-cols-2 gap-4 md:gap-6",children:[f.jsx(q.div,{initial:{opacity:0,x:-16},whileInView:{opacity:1,x:0},viewport:{once:!0,amount:.2},transition:{duration:.6},className:"rounded-2xl overflow-hidden border border-border shadow-md",children:f.jsx("img",{src:FJ,alt:"Club member using the mobile app",className:"w-full h-[200px] md:h-[280px] object-cover",loading:"lazy"})}),f.jsx(q.div,{initial:{opacity:0,x:16},whileInView:{opacity:1,x:0},viewport:{once:!0,amount:.2},transition:{duration:.6,delay:.1},className:"rounded-2xl overflow-hidden border border-border shadow-md",children:f.jsx("img",{src:UJ,alt:"Pickleball player serving on court",className:"w-full h-[200px] md:h-[280px] object-cover",loading:"lazy"})})]})})}),zJ=[{num:"01",icon:YM,title:"Strategic workflow review",desc:"We map your operations before anything changes. Discover how clubcloud⢠handles your current process."},{num:"02",icon:SW,title:"Complete data migration",desc:"Members, balances, transaction history, enrollments. Our team handles the migration and staff training from start to finish."},{num:"03",icon:BW,title:"Confident staff adoption",desc:"Most teams operate independently within days. Your managers, coaches, and desk staff become more efficient immediately."}],WJ=()=>f.jsxs("section",{id:"how-it-works",className:"section-padding section-alt relative overflow-hidden",children:[f.jsx("div",{className:"glow-blob bottom-[-10%] right-[-5%] w-[450px] h-[450px] bg-accent/10 blur-[120px]"}),f.jsxs("div",{className:"container mx-auto px-6 max-w-5xl relative z-10",children:[f.jsxs("div",{className:"text-center max-w-2xl mx-auto mb-16",children:[f.jsx(q.p,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-sm font-semibold uppercase tracking-widest text-warm mb-4",children:"How it works"}),f.jsx(q.h2,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.05},className:"font-display font-700 text-3xl md:text-4xl xl:text-[2.75rem] tracking-tight text-foreground",children:"Implementation without disruption."})]}),f.jsx("div",{className:"grid gap-6 md:grid-cols-3",children:zJ.map((e,t)=>f.jsxs(q.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.12,duration:.5},className:"group relative rounded-2xl border border-border bg-background p-8 hover:shadow-xl hover:border-accent/40 transition-all duration-300 hover:-translate-y-1",children:[f.jsx("div",{className:"mb-5 inline-flex items-center justify-center w-12 h-12 rounded-lg bg-accent/10 group-hover:bg-accent/20 transition-colors",children:f.jsx(e.icon,{className:"w-6 h-6 text-accent"})}),f.jsx("h3",{className:"font-display font-600 text-lg text-foreground mb-3",children:e.title}),f.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.desc})]},e.num))})]})]}),HJ=["PlayByPoint","CourtReserve","Club Automation","Twin Oaks","Club Essential"],qJ=()=>f.jsxs("section",{id:"migration",className:"section-padding relative overflow-hidden",children:[f.jsx("div",{className:"glow-blob top-[-15%] left-1/2 -translate-x-1/2 w-[500px] h-[400px] bg-accent/15 blur-[130px]"}),f.jsx("div",{className:"container mx-auto px-6 max-w-4xl relative z-10",children:f.jsxs(q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"rounded-2xl border border-border bg-background p-10 md:p-16 text-center shadow-lg",children:[f.jsx("div",{className:"mx-auto mb-6 inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-accent/10",children:f.jsx(HM,{className:"w-8 h-8 text-accent"})}),f.jsx("h2",{className:"font-display font-700 text-3xl md:text-4xl tracking-tight text-foreground",children:"Transition with confidence."}),f.jsx("p",{className:"mt-4 text-lg text-muted-foreground leading-relaxed max-w-xl mx-auto",children:"Data integrity. Staff training. Zero chaos. We ensure a seamless migration from start to finish."}),f.jsxs("div",{className:"mt-10",children:[f.jsx("p",{className:"text-sm font-semibold uppercase tracking-widest text-accent mb-5",children:"We migrate from"}),f.jsx("div",{className:"flex flex-wrap justify-center gap-3",children:HJ.map((e,t)=>f.jsx(q.span,{initial:{opacity:0,scale:.9},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:.1+t*.06},className:"inline-flex items-center rounded-full border border-border bg-secondary px-5 py-2.5 text-sm font-semibold text-secondary-foreground hover:border-accent/40 hover:shadow-md transition-all duration-200",children:e},e))})]}),f.jsx("div",{className:"mt-10",children:f.jsx(Ke,{to:"/demo",className:"inline-flex items-center justify-center rounded-full bg-primary px-8 py-3.5 text-base font-semibold text-primary-foreground hover:opacity-90 transition-opacity shadow-lg",children:"Plan your transition"})})]})})]}),o4="/assets/warm_up-BoKOiNEX.webp",gO=[{quote:"clubcloud⢠has been a game-changer for us, simplifying the booking process for our members and allowing us to tailor the system to our unique needs. Their team has also been fantastic to work with, always ready with quick, helpful responses whenever we need assistance.",name:"Andres Valesco Posada",role:"Director of Tennis, Gilford Hills Tennis & Fitness Club"},{quote:"Managing class waitlists and program auto-enrollments used to be a headache, but clubcloud⢠has made these processes seamless and stress-free. Their customer service is exceptional, and every time I reach out, the team already understands our
456club's needs.",name:"Janelle Boksanski",role:"Spark Fitness and Tennis Club"},{quote:"I love having all my booking and marketing tools in one place with clubcloudâ¢. It's so easy to keep everything organized and personalized. Their support team is incredibly responsive and always ready to help!",name:"Celia Quintero",role:"Founder & CEO, CQ Sports"}],KJ=[...gO,...gO],YJ=()=>f.jsxs("section",{className:"section-padding section-alt overflow-hidden relative",children:[f.jsx("img",{src:o4,alt:"","aria-hidden":"true",className:"absolute inset-0 w-full h-full object-cover opacity-[0.04] pointer-events-none"}),f.jsx("div",{className:"container mx-auto px-6 max-w-5xl text-center mb-12 relative z-10",children:f.jsx(q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:f.jsx("h2",{className:"font-display font-700 text-3xl md:text-4xl tracking-tight text-foreground",children:"Trusted by operators who demand clarity."})})}),f.jsxs("div",{className:"relative z-10",children:[f.jsx(q.div,{className:"flex gap-6 w-max",animate:{x:["0%","-50%"]},transition:{x:{duration:40,repeat:1/0,ease:"linear"}},children:KJ.map((e,t)=>{const r=e.name.split(" ").map(i=>i[0]).join("").slice(0,2),n=["bg-warm/20 text-warm-foreground","bg-accent/15 text-accent-foreground","bg-warm/25 text-warm-foreground"];return f.jsxs("div",{className:"w-[340px] md:w-[400px] flex-shrink-0 rounded-xl border border-border bg-background p-8 text-left",children:[f.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[f.jsx("div",{className:`w-10 h-10 rounded-full flex items-center justify-center font-display font-700 text-sm ${n[t%3]}`,children:r}),f.jsxs("div",{children:[f.jsx("p",{className:"text-sm font-medium text-foreground",children:e.name}),f.jsx("p",{className:"text-xs text-muted-foreground",children:e.role})]})]}),f.jsxs("p",{className:"text-muted-foreground leading-relaxed italic text-sm",children:['"',e.quote,'"']})]},t)})}),f.jsx("div",{className:"absolute inset-y-0 left-0 w-16 bg-gradient-to-r from-secondary/80 to-transparent pointer-events-none"}),f.jsx("div",{className:"absolute inset-y-0 right-0 w-16 bg-gradient-to-l from-secondary/80 to-transparent pointer-events-none"})]})]}),GJ="/assets/blog_revenue_leak-B4x38PYY.webp",XJ="/assets/blog_click_mining-BzHZrjzO.webp",ZJ="/assets/blog_community_system-BXM-g9K6.webp",JJ="/assets/blog_two_heads-B1n6kOD9.webp",QJ="/assets/blog_real_work-B3YwfXRm.webp",Rk=[{slug:"the-real-work-most-new-pickleball-club-owners-skip",title:"The Real Work Most New Pickleball Club Owners Skip",subtitle:"Courts are table stakes. Community is the product.",description:"The revenue doesn't flow the way they projected. New member conversions are okay but not great. Retention is soft. The problem isn't the facility â it's what they skipped before they opened the doors.",image:QJ,author:"Alex Skinner",date:"March 23, 2026",readTime:"6 min",category:"Club Strategy",content:`Here's what the opening month of a new pickleball club usually looks like: 457 458Courts are built. Membership pricing is set. The doors open. The owner waits. 459 460The revenue doesn't flow the way they projected. New member conversions are okay but not great. Retention is soft. They start discounting to compete with the facility that opened two miles away. And they can't figure out why â because objectively, their club looks great. 461 462The problem isn't the facility. It's what they skipped before they opened the doors. 463 464--- 465 466## Courts Are Table Stakes Now 467 468Three or four years ago, there was a real shortage of places to play pickleball. If you had courts, you had business. That era is over. 469 470Courts are everywhere. Players have genuine options. And competing on infrastructure alone is a race you cannot win, because someone will always build something newer or price something cheaper. 471 472The surface material, the paddle brands you stock, the grab-and-go food â those things matter at the margins. Players expect them. They don't choose a membership because of them. 473 474**What players are actually looking for is somewhere to belong.** 475 476They want the coach who knows their name and already knows their backhand is the weaker side. The front desk person who sent a follow-up text after their first visit. The 6am open play that runs consistently because that's when their community shows up. The group text. The post-play ritual. The feeling of being a regular somewhere that actually values them. 477 478Players will drive right past a nicer facility to be part of something that feels like the
478irs. 479 480--- 481 482## Community Is the Product 483 484The clubs winning right now are the ones that invested in people and relationships before it paid off. They hired thoughtfully from the start. They showed up for their members before the loyalty was fully there. They built culture intentionally instead of assuming it would develop on its own. 485 486They understood that connection compounds. Every hire matters, because the front desk experience sets the tone for everything else. Small things add up to something players can't find at the club down the street. 487 488The operators who skipped that work are scrambling now, competing on price with no clear reason for anyone to choose them. 489 490--- 491 492## Where clubcloud Fits In 493 494This is exactly the problem clubcloud is built to support. 495 496The operational side of running a club â court bookings, membership billing, scheduling, payroll, reporting â is real work. When that infrastructure isn't tight, it consumes the time and attention that should be going toward member relationships. 497 498clubcloud handles the back-end so your team can focus on what actually drives retention: knowing your members, running programs they care about, and building the kind of culture that makes people feel like regulars. 499 500Things like automated billing that just works, so your front desk isn't chasing payments. Reporting that tells you which programs are growing and which are losing members before it becomes a problem. Scheduling tools that make it easy to run the 6am open play consistently, every week, without operational headaches. 501 502The community your members want â that still has to be built by your people. But the systems that make that possible? That's what we're here for. 503 504--- 505 506## The Real Work 507 508Building great courts is the entry fee. Community is the product. 509 510The clubs that last aren't the ones with the best facilities. They're the ones that did the relationship work before they saw the return, and built the operational foundation to sustain it. 511 512If you're opening a new club or trying to figure out why retention is softer than it should be, start there.`},{slug:"the-end-of-click-mining-in-club-software",title:'The End of "Click-Mining" in Club Software',subtitle:"Operational clarity begins with eliminating unnecessary clicks.",description:"If you have ever spent a Saturday morning behind a club front desk, you know the very specific frustration of hunting through menus just to answer simple questions.",image:XJ,author:"Alex Skinner",date:"February 16, 2026",readTime:"20 min",category:"Club Operations",content:`If you have ever spent a Saturday morning behind a club front desk, you know the very specific frustration of what I call "Click-Mining." 513 514It is the tedious process of hunting through menus just to answer simple questions. Did this member pay? Is that coach actually on court? Why can't I find the note about the ball machine? You click. Then click again. Then open another tab. Then dig into a submenu. All while a line forms in front of you. 515 516Across the industry, operators describe the same experience. "Too many steps are needed to cancel a class. Not user friendly at all." Another writes, "Some operations take too many steps to get to the end result." Others mention billing that feels clunky, program registration that creates friction, or booking flows that require far more clicks than they should. 517 518> This is not a lack of features. It is a lack of design empathy. 519 520Most legacy systems were built to store data. They were not built for the reality of a busy front desk, where every extra click costs attention. 521
522And attention is everything in hospitality. Every second spent navigating software is a second not spent making eye contact with a member. 523 524> That is the gap we set out to close. 525 526--- 527 528## The Visual Intelligence of a Scannable Court Sheet 529 530When we designed the clubcloud court sheet, we started with one principle: scannability. 531 532An administrator should be able to read the state of the facility almost instantly, without performing a manual audit of every reservation. The schedule should feel less like a spreadsheet and more like a live dashboard. 533 534When you look at an event tile in clubcloud, you are not just seeing a block of time. You are seeing status. A subtle red corner tells you someone in that group has not yet been charged. A small pencil icon indicates there is a note attached to the reservation. A waitlist indicator shows that a member was automatically promoted and notified but has not yet confirmed. 535 536None of this requires digging. It does not require opening three windows or running a report. You glance, and you understand. 537 538> Front desk teams should be able to triage the day in seconds, not minutes. 539 540--- 541 542## Speed Is a Revenue Lever 543 544Operational friction is not just annoying. It is expensive. 545 546If you are running a high-volume junior academy with 80 or 100 participants, charging each player individually becomes more than a nuisance. It becomes an administrative bottleneck. And bottlenecks create mistakes. Missed charges. Delayed payments. Confused parents. Staff fatigue. 547 548Many operators share the same frustration. Collecting court fees feels harder than
548it needs to be. Booking requires too many steps. Basic workflows feel like obstacle courses. 549 550That friction quietly erodes revenue. 551 552This is why something as simple as a "Run Payments" button matters. With one action, an administrator can process card-on-file or house account payments for an entire roster at once. It is not flashy. It is practical. It removes the chance for human error and restores time to your team. 553 554The same philosophy applies to members. Booking a court should not feel like filing paperwork. When members can go from viewing availability to confirming a reservation in just a couple of clicks, you reduce hesitation. Reduced hesitation increases utilization. Increased utilization increases revenue. 555 556> Speed compounds. 557 558--- 559 560## Managing the Human Element 561 562Courts are static resources. Coaches are not. 563 564In racquet sports, instructors move constantly throughout the day. A private lesson on one court. A junior academy on another. A pickleball clinic an hour later. Yet many systems still organize schedules purely by physical space, treating a tennis court like a spin bike or a massage room. 565 566But clubs are powered by people. 567 568That is why we built Instructor View. Instead of asking, "What is happening on Court 4?" you can ask, "Where is every coach right now?" You can instantly verify attendance for payroll, find an available pro for a last-minute lesson, or review how a coach's day is structured. 569 570The schedule stops being a list of reservations. It becomes a live map of your human resources. 571 572> And when you manage people better, everything else improves. 573 574--- 575 576## Automation That Works Quietly 577 578The final piece of eliminating Click-Mining is ensuring the software handles the background work you used to do manually. 579 580Many operators describe systems that feel fragmented. Billing in one place. Staff schedules in another. Reporting somewhere else. Every day feels like stitching operations together with duct tape. 581 582When that happens, your team becomes software operators instead of hospitality professionals. 583 584In clubcloud, automation works quietly. If a member joins a high-performance junior program or signs up for an introductory pickleball clinic, the system applies the appropriate tags automatically. Your CRM stays clean without anyone touching a spreadsheet. 585 586When you want to send a targeted offer to your 4.0 players or message families in a specific academy, the segmentation already exists. The system has been organizing your data in the background of every booking. 587 588> That is what modern club software should do. It should reduce mental load, not add to it. 589 590--- 591 592## From Clicks to Clarity 593 594When your platform requires constant supervision, you hire people to operate software. 595 596When your platform is designed for clarity, you empower your team to focus on members. 597 598The difference between a busy club and a well-run club is not just programming. It is operational visibility. It is knowing what is happening at a glance. It is removing friction from billing, booking, and communication. 599 600Clarity creates confidence. Confidence creates better service. And better service drives growth. 601 602> The future of club software is not more features. It is fewer unnecessary clicks.`},{slug:"the-silent-revenue-leak-holding-clubs-back",title:"The Silent Revenue Leak Holding Clubs Back â and How to Fix It",subtitle:"Capture the Revenue Your Club Is Already Owed",description:"Most clubs don't have a demand problem. They have a collection problem. Learn how automation, visibility, and clear accountability can close revenue gaps.",image:GJ,author:"Alex Skinner",date:"January 10, 2026",readTime:"16 min",category:"Revenue Assurance",content:`**Most clubs don't have a demand problem.** They have a collection problem. Courts were used. Lessons were taught. Access was granted. Yet balances quietly sit unpaidâbecause legacy systems weren't built to actively protect revenue. 603 604Revenue leakage doesn't show up as one big failure. It shows up as small gaps that compound over time: an expired card that never gets updated, a declined charge that doesn't retry intelligently, a late cancellation that goes unbilled, a refund that permanently eats processing fees. **clubcloud⢠closes those gaps with automation, visibility, and clear accountability.** 605 606--- 607 608## The Silent Revenue Leak Clubs Underestimate 609 610Revenue leakage doesn't announce itself. It shows up as **small billing gaps that compound**: an expired card that never gets updated, a declined payment that isn't retried intelligently, a last-minute cancellation that goes uncharged, or a refund that quietly eats processing fees. 611 612Legacy platforms often "process payments," but they don't take ownership of **revenue assurance**. **clubcloudâ¢** was built to close the gap between **participation and payment**âwith visibility, automation, and clear accountability. 613 614> "We delivered the service but we didn't collect the money." 615 616**clubcloud⢠is designed to prevent that outcome by default.** 617 618--- 619 620## Visibility First: Know Who Owes You (and Why) 621 622You can't fix what you can't see. **clubcloudâ¢** gives operators clear visibility into **who is past due**, **what failed**, and **what needs follow-up**âwithout digging through disconnected modules or exporting spreadsheets. 623 624**Past Due Report** â A clean list of customers with overdue balances so your team can follow up intentionally and recover money that's owed. 625 626**Expiring & Failing Card Report** â See cards that are expiring or failing so you can proactively request updates before revenue gets disrupted. 627 628--- 629 630## Automated Collection Without Awkward Conversations 631 632When a membership charge fails, most systems stop at "declined." **clubcloudâ¢** doesn't. Payments can be **automatically retried nightly** for a club-defined number of days. This recovers revenue without staff interventionâand without members slipping through the cracks. 633 634If the issue persists beyond your chosen window, clubcloud⢠can enforce **automated portal shutoff**. That creates a clear, professional boundaryâwithout staff needing to play "bill collector." 635 636**Operator win:** less manual chasing, fewer awkward front-desk moments, and more consistent enforcement. 637 638--- 639 640## Fair Enforcement: Interest + Late Cancellation Fees 641 642Some balances don't get resolved quicklyâespecially when there's no consequence for delaying payment. **clubcloudâ¢** supports **interest on unpaid balances** so clubs can reinforce expectations while staying fair and professional. Interest settings are fully configurable, and specific members can be excluded when appropriate. 643 644Late cancellations are another common leak. clubcloud⢠lets you set **member and non-member cancellation windows** and fees. If someone cancels late, they're charged **in the moment**âno manual follow-up required. 645 646--- 647 648## Refunds Without Losing Processing Fees 649 650Across the industry, clubs lose money on refunds because **processing fees typically don't come back**. The smarter path is to keep funds inside the club's ecosystem using credits. 651 652**clubcloudâ¢** makes it easy to issue **club credits**, track them clearly, and decide where they can be used: memberships, events, lessons, or point of sale. Members see their credits, admins see the full history, and the club keeps cash flow healthier. 653 654--- 655 656## Notifications That Keep Everyone Aligned 657 658Revenue protection works best when communication is consistent. **clubcloudâ¢** automatically emails members when payments fail, and it also surfaces **in-portal prompts** that guide them to update their card on file. 659 660On the admin side, staff see notifications where they matter most: on the **check-in screen** (when a member arrives) and inside the **member profile** (with context). That reduces surprises and keeps conversations professional. 661 662--- 663 664## The Takeaway: Confidence, Not "Features" 665 666This isn't about adding more software. It's about **protecting the revenue you've already earned**âwithout adding friction for staff or members. **clubcloudâ¢** was built to eliminate billing anxiety and reduce manual cleanup, so operators can focus on experience, programming, and growth. 667
668**What clubs get:** fewer missed charges, faster collections, clearer policies, and a system that actively helps capture every dollar.`},{slug:"community-is-not-a-buzzword-its-a-system",title:"Community Is Not a Buzzword. It's a System.",subtitle:"Building Intentional Club Culture Through Structure",description:"The clubs that thrive long term aren't defined by what they built. They're defined by how intentionally they operate. Community is the result of dozens of small, often invisible decisions.",image:ZJ,author:"Alex Skinner",date:"January 3, 2026",readTime:"10 min",category:"Club Strategy",content:`In racquet sports, it's easy to believe that success starts with the facility. New courts. Better lighting. Expanded square footage. A building that looks impressive on a tour. 669 670But time and again, the clubs that thrive long term aren't defined by what they built. They're defined by how intentionally they operate. 671 672Community isn't something that happens on its own. It's the result of dozens of small, often invisible decisions that shape how staff work, how members engage, and how people progress over time. 673 674At many clubs, things can feel "fine" on the surface. Programs are running. Regulars are showing up. Schedules are mostly full. But underneath that stability are signals worth paying attention to. Inquiries that don't quite fit existing offerings. Level mismatches in clinics. Staff feedback that hints at friction. Members who participate, but don't really feel connected. 675 676> Those signals don't come with instructions attached. 677 678They don't tell you exactly what to build. They tell you where to look. 679 680When clubs ignore them, the experience tends to flatten. The same players cycle through the same programs. New players struggle to find a place to belong. Coaches are asked to "make it work" without the structure to do so effectively. Over time, engagement plateaus, and retention becomes fragile. 681 682> The alternative isn't more options. It's clearer pathways. 683 684When members can see where they fit today and where they're working toward, participation becomes purposeful. Beginners aren't rushed. More advanced players aren't held back. Progress becomes visible. Goals emerge naturally: moving into the next level, joining a league, competing for the first time. 685 686That clarity doesn't just help members. It helps staff. 687 688Structured programs create leadership opportunities that don't exist in loosely organized schedules. Coaches who want to grow can take ownership. Communication improves. Teaching improves. Players have someone guiding their experience, not just running sessions. 689 690> This is where judgment matters as much as data. 691 692Metrics, inquiries, and feedback are essential, but they're only useful when paired with thoughtful interpretation. Limited court space doesn't automatically mean there's no room to grow. It often means the schedule needs to be reexamined through a different lens. Revenue per court hour, progression, staff capacity, and long-term engagement all matter more than simply keeping things the way they've always been. 693 694Without clear pathways, clubs often become dependent on a small, static group of members. That creates risk. Seasonal absences expose how thin engagement really is. Efforts to bring in new players feel disruptive instead of additive. When something newer or more convenient opens nearby, loyalty disappears quickly. 695 696Clubs that design intentionally avoid that cycle. They build systems that consistently welcome new players without alienating long-time members. They create momentum instead of volatility. And they make themselves essential to a member's development, not just a place to play. 697 698> None of this requires perfection. It requires attention. 699 700The question isn't whether your club feels busy. It's whether your systems are actually supporting growth, clarity, and connection. 701 702**That's worth evaluating.**`},{slug:"two-heads-are-better-than-one",title:"Two Heads are Better Than One",subtitle:"How clubcloud Uses Documentation as a Competitive Advantage",description:"How clubcloud's 'second brain' system, using Slack channels, after-action reports, and best practices, keeps the team aligned, accountable, and growing.",image:JJ,author:"Frank Canace, Esq.",date:"August 26, 2025",readTime:"24 min",category:"Company Culture",content:`The term "second brain" has gained immense popularity among influencers and life-hackers in recent times. Coined and popularized by Tiago Forte in 2022, it essentially refers to a personal management system that helps individuals collect, store, and organize their thoughts and information, thereby freeing up their brainpower for other tasks. 703 704Considering the number of brilliant minds we've assembled at clubcloud, it's a bit inaccurate to say our
704company has a **second** brain. However, when you consider our extensive knowledge dump repository system, which reduces our cognitive responsibilities by preserving our thoughts, ideas, and knowledge for future retrieval, at the very least, it's hard to think of it as anything other than an extension of our collective brains. 705 706Perhaps it's a result of my past lives as a city police officer and trial attorney, but I have an insatiable compulsion towards documentation. In fact, I've always relied on a second brain-like concept and have even written about its significance in my life in my own self-help book. So, when our Chief Mobile Officer, Harold "Hal" Leonard, who also serves as our business operations chief, encouraged us to explore innovative methods for documenting clubcloud's past projects, achievements, processes, best practices, and sales intelligence, I immediately jumped on board. 707 708To facilitate and execute Hal's initiatives, we primarily employ three methods for documentation: dedicated conversational Slack channels, after-action reports, and best practices. This blog aims to provide a comprehensive exploration of each of these methods. 709 710--- 711 712## Slack Channels 713 714Before starting any project, we thoroughly discuss and understand its parameters. We have assembled a diverse group of individuals with a wide range of skills, including club operations, technology, and business. Each of these areas has its own unique language, so it's important that we define terms, collectively understand their meanings, and ensure that we use them correctly in our conversations. 715 716An accelerator instructor of mine once shared that poor internal relationships can destroy a business faster than a poor product. We fully comprehend this dynamic at clubcloud. Therefore, when individuals like Hal can serve as a universal translator between our technology and business members, or when Andrew Imrie, our Chief Information Officer, can articulate points from his perspectives as both a tennis professional and a skilled computer developer, everyone stops speaking and begins actively listening. 717 718We use our Slack channels for precisely that purpose. While real-time conversations are great and it's important for everyone to be able to articulate their position verbally, there's no substitute for the written word when it comes to memorialization and reference. 719 720Of course, conversations are essential for running a business, but when we have important discussions, we make sure to document their content promptly and accurately on the relevant channel. That way, every significant conversation, whether written or spoken, is preserved in the appropriate channel. Once the project or task is completed, we simply archive the Slack channel for easy future reference. 721 722As a natural note taker, I relish the freedom to review a Slack channel's content whenever and wherever I please. As a group, this accessibility empowers us to grasp the essence of past conversations at our fingertips. When disagreements arise regarding our current position, future goals, or past discussions, we can simply refer to our Slack transcript. This ensures clarity on what was said, by whom, and under what circumstances, thereby eliminating misunderstandings, we also mitigate the associated hard feelings. 723 724--- 725 726## After-Action Reports 727 728As soon as we successfully implement any change to our company or its platform, we complete an after-action-report. The title of the report aptly encapsulates its essence. Concise yet effective, after-action reports serve as a tool to memorialize our process from inception to completion, emphasizing both our achievements and, perhaps more significantly, our shortcomings. Additionally, they identify any necessary changes for future reference. Unlike Slack channel conversations, which capture a process as it unfolds, our after-action reports offer a bird's-eye view from the finish line. This perspective eliminates the "prisoner of the moment" effect often present in our Slack conversations. By reviewing a completed and successful process, we gain an objective perspective, enabling us to critically evaluate ourselves both positively and negatively. 729 730Although our Chief Technology Officer, Luis Garcia, primarily drafts our after-action reports from the perspective of his office, these reports are not intended to dictate a single, definitive path to success. We acknowledge that there might have been multiple viable paths to achieving our objectives. If, from an after-action report perspective, all these paths are valid, they are included in the report. We firmly believe that it's more important to get it right than to be right, and Luis embodies this
730sentiment. Consequently, we consistently set aside our egos and adhere to the path or paths that will lead us to success. Our after-action reports serve as a testament to these paths to success. 731 732--- 733 734## Best Practices 735 736If there is anyone that can stifle creativity more than a lawyer, I have not met them. Their over-legislation and burdensome codification of processes are incredibly annoying and officious. However, in a world where human resources, legal compliance, and litigation are concerned, we must have certain legal protocols in place. 737 738In my opinion, the key to effective legal leadership in a company lies in distinguishing among the legal tasks that need to be done, should be done, and can be done. The easiest tasks to address are those that require immediate attention. For instance, if you need to implement a legal safeguard, it's best to do so without any negotiation or compromise. 739 740However, the most challenging legal tasks are those that should or could be done but don't necessarily need to be implemented. When we identify such a task, we initiate a conversation from the perspective that it is necessary. However, we also engage in a discu
740ssion that involves compromise from both a legal and subject matter perspective to determine an achievable path that strikes a balance between intrusion and the protection of our legal interests. 741 742Conversely, when we identify a legal task that can be done but doesn't necessarily need to be implemented, the initial question arises: will we legislate it? If we decide we will, then we actively engage in discussions that guide us towards the least intrusive path to achieving our goals. 743 744By following these procedures, we are aware from the outset that certain legal circumstances are beyond our teams' purview and should not be discussed. These matters are strictly within the authority of the creativity-stifling lawyers. We all understand that this path may not be pleasant, but knowing this beforehand ensures that no one feels bullied by the process. When legal issues involve some discretion, we can engage in discussions that ensure that everyone feels heard. As part of the process, our entire team understands the legal parameters and the expectations for their adherence to them from the onset. 745 746Our "second brain" plays a crucial role in the smooth functioning of clubcloud. Even when running smoothly, a rapidly-growing company can sometimes feel disorganized, chaotic, and scattered. However, our established, systematic process of documenting our accomplishments, requirements, and tasks serves as a guiding compass, helping us stay on track, maintain our focus, and proving that two heads are better than one.`}];function eQ(e){return Rk.find(t=>t.slug===e)}const tQ=()=>f.jsx("section",{className:"section-padding",children:f.jsx("div",{className:"container mx-auto px-6 max-w-5xl text-center",children:f.jsxs(q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[f.jsx("p",{className:"text-sm font-semibold uppercase tracking-widest text-accent-foreground/60 mb-4",children:"Insights"}),f.jsx("h2",{className:"font-display font-700 text-3xl md:text-4xl tracking-tight text-foreground mb-12",children:"Insights into the world of racquet and fitness club management."}),f.jsx("div",{className:"grid gap-6 md:grid-cols-3",children:Rk.slice(0,3).map(e=>f.jsxs(Ke,{to:`/blog/${e.slug}`,className:"rounded-xl border border-border bg-secondary/50 p-4 text-left group hover:shadow-md transition-shadow block",children:[f.jsx("img",{src:e.image,alt:e.title,className:"w-full h-40 rounded-lg object-cover mb-4",loading:"lazy"}),f.jsx("p",{className:"text-xs text-warm font-semibold uppercase tracking-wider mb-2",children:e.category}),f.jsx("h3",{className:"font-display font-600 text-foreground group-hover:text-warm transition-colors leading-snug",children:e.title})]},e.slug))}),f.jsx(Ke,{to:"/blog",className:"inline-flex items-center justify-center mt-10 text-sm font-medium text-warm hover:underline",children:"View all articles â"})]})})}),s4=()=>f.jsx("section",{id:"cta",className:"py-12 md:py-16 relative overflow-hidden",children:f.jsx("div",{className:"container mx-auto px-6 max-w-3xl relative z-10 text-center",children:f.jsxs(q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[f.jsx("h2",{className:"font-display font-700 text-3xl md:text-4xl tracking-tight text-foreground",children:"Know exactly what's happening inside your club."}),f.jsx("p",{className:"mt-4 text-lg text-muted-foreground max-w-xl mx-auto",children:"See how clubcloud gives operators complete visibility and control."}),f.jsx("div",{className:"mt-10",children:f.jsxs(Ke,{to:"/demo",className:"inline-flex items-center justify-center gap-2 rounded-full bg-accent px-8 py-3.5 text-base font-semibold text-accent-foreground hover:brightness-110 transition-all shadow-lg shadow-accent/20",children:["Get in touch",f.jsx(Ds,{className:"w-4 h-4"})]})})]})})}),rQ=[{title:"Platform",links:[{label:"Features",to:"/features"},{label:"Pricing",to:"/pricing"},{label:"Blog",to:"/blog"},{label:"Support",to:"/support"}]},{title:"Features",links:[{label:"Scheduling",to:"/features/scheduling"},{label:"Events",to:"/features/events"},{label:"Members",to:"/features/members"},{label:"CRM",to:"/features/crm"},{label:"Payments",to:"/features/payments"},{label:"Reporting",to:"/features/reporting"},{label:"Mobile App",to:"/features/mobile"},{label:"Integrations",to:"/features/integrations"}]},{title:"Company",links:[{label:"Contact",to:"/demo"}]},{title:"Legal",links:[{label:"Terms & Conditions",to:"/terms"},{label:"Privacy Policy",to:"/privacy"},{label:"SMS/RCS Terms",to:"/sms-terms"},{label:"End User License Agreement",to:"/eula"}]}],Hr=()=>f.jsxs("footer",{className:"bg-primary py-16 relative overflow-hidden",children:[f.jsx("div",{className:"absolute inset-0 texture-lines opacity-20"}),f.jsx("div",{className:"glow-blob top-[-20%] right-[5%] w-[400px] h-[400px] bg-accent/8 blur-[140px]"}),f.jsx("div",{className:"glow-blob bottom-[-10%] left-[10%] w-[300px] h-[300px] bg-accent/6 blur-[120px]"}),f.jsx("div",{className:"absolute top-0 left-0 right-0 h-[2px] bg-gradient-to-r from-transparent via-accent/40 to-transparent"}),f.jsxs("div",{className:"container mx-auto px-6 relative z-10",children:[f.jsxs("div",{className:"grid gap-10 md:grid-cols-5",children:[f.jsxs("div",{children:[f.jsx(Ke,{to:"/",children:f.jsx("img",{src:Z3,alt:"clubcloud",className:"h-8 mb-4"})}
746),f.jsx("p",{className:"text-sm text-primary-foreground/60 leading-relaxed",children:"The operator-first platform for modern racquet and multi-activity clubs."})]}),rQ.map(e=>f.jsxs("div",{children:[f.jsx("h4",{className:"font-display font-600 text-sm text-primary-foreground mb-4",children:e.title}),f.jsx("ul",{className:"space-y-2",children:e.links.map(t=>f.jsx("li",{children:f.jsx(Ke,{to:t.to,className:"text-sm text-primary-foreground/60 hover:text-primary-foreground transition-colors",children:t.label})},t.label))})]},e.title))]}),f.jsx("div",{className:"mt-12 pt-8 border-t border-primary-foreground/15 flex flex-col md:flex-row items-center justify-between gap-4",children:f.jsxs("p",{className:"text-sm text-primary-foreground/50",children:["© ",new Date().getFullYear()," clubcloudâ¢. All rights reserved."]})})]})]});function nQ(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})}const iQ=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);
746class Ik extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class aQ extends Ik{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class vO extends Ik{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class bO extends Ik{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var jw;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(jw||(jw={}));class oQ{constructor(t,{headers:r={},customFetch:n,region:i=jw.Any}={}){this.url=t,this.headers=r,this.region=i,this.fetch=iQ(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return nQ(this,arguments,void 0,function*(r,n={}){var i;let a,o;try{const{headers:s,method:l,body:c,signal:u,timeout:d}=n;let h={},{region:p}=n;p||(p=this.region);const y=new URL(`${this.url}/${r}`);p&&p!=="any"&&(h["x-region"]=p,y.searchParams.set("forceFunctionRegion",p));let m;c&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(h["Content-Type"]="application/octet-stream",m=c):typeof c=="string"?(h["Content-Type"]="text/plain",m=c):typeof FormData<"u"&&c instanceof FormData?m=c:(h["Content-Type"]="application/json",m=JSON.stringify(c)):c&&typeof c!="string"&&!(typeof Blob<"u"&&c instanceof Blob)&&!(c instanceof ArrayBuffer)&&!(typeof FormData<"u"&&c instanceof FormData)?m=JSON.stringify(c):m=c;let g=u;d&&(o=new AbortController,a=setTimeout(()=>o.abort(),d),u?(g=o.signal,u.addEventListener("abort",()=>o.abort())):g=o.signal);const b=yield this.fetch(y.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},h),this.headers),s),body:m,signal:g}).catch(w=>{throw new aQ(w)}),v=b.headers.get("x-relay-error");if(v&&v==="true")throw new vO(b);if(!b.ok)throw new bO(b);let x=((i=b.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),S;return x==="application/json"?S=yield b.json():x==="application/octet-stream"||x==="application/pdf"?S=yield b.blob():x==="text/event-stream"?S=b:x==="multipart/form-data"?S=yield b.formData():S=yield b.text(),{data:S,error:null,response:b}}catch(s){return{data:null,error:s,response:s instanceof bO||s instanceof vO?s.context:void 0}}finally{a&&clearTimeout(a)}})}}const l4=3,xO=e=>Math.min(1e3*2**e,3e4),sQ=[520,503],c4=["GET","HEAD","OPTIONS"];var lQ=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
746de=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function wO(e,t){return new Promise(r=>{if(t!=null&&t.aborted){r();return}const n=setTimeout(()=>{t==null||t.removeEventListener("abort",i),r()},e);function i(){clearTimeout(n),r()}t==null||t.addEventListener("abort",i)})}function cQ(e,t,r,n){return!(!n||r>=l4||!c4.includes(e)||!sQ.includes(t))}var uQ=class{constructor(e){var t,r,n,i,a;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,this.shouldStripNulls=(n=e.shouldStripNulls)!==null&&n!==void 0?n:!1,this.urlLengthLimit=(i=e.urlLengthLimit)!==null&&i!==void 0?i:8e3,this.retryEnabled=(a=e.retry)!==null&&a!==void 0?a:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var r=this;if(this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){const o=this.headers.get("Accept");o==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!o||o==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const n=this.fetch;let a=(async()=>{let o=0;for(;;){const c=new Headers(r.headers);o>0&&c.set("X-Retry-Count",String(o));let u;try{u=await n(r.url.toString(),{method:r.method,headers:c,body:JSON.stringify(r.body,(d,h)=>typeof h=="bigint"?h.toString():h),signal:r.signal})}catch(d){if((d==null?void 0:d.name)==="AbortError"||(d==null?void 0:d.code)==="ABORT_ERR"||!c4.includes(r.method))throw d;if(r.retryEnabled&&o<l4){const h=xO(o);o++,await wO(h,r.signal);continue}throw d}if(cQ(r.method,u.status,o,r.retryEnabled)){var s,l;const d=(s=(l=u.headers)===null||l===void 0?void 0:l.get("Retry-After"))!==null&&s!==void 0?s:null,h=d!==null?Math.max(0,parseInt(d,10)||0)*1e3:xO(o);await u.text(),o++,await wO(h,r.signal);continue}return await r.processResponse(u)}})();return this.shouldThrowOnError||(a=a.catch(o=>{var s;let l="",c="",u="";const d=o==null?void 0:o.cause;if(d){var h,p,y,m;const v=(h=d==null?void 0:d.message)!==null&&h!==void 0?h:"",x=(p=d==null?void 0:d.code)!==null&&p!==void 0?p:"";l=`${(y=o==null?void 0:o.name)!==null&&y!==void 0?y:"FetchError"}: ${o==null?void 0:o.message}`,l+=` 747 748Caused by: ${(m=d==null?void 0:d.name)!==null&&m!==void 0?m:"Error"}: ${v}`,x&&(l+=` (${x})`),d!=null&&d.stack&&(l+=` 749${d.stack}`)}else{var g;l=(g=o==null?void 0:o.stack)!==null&&g!==void 0?g:""}const b=this.url.toString().length;return(o==null?void 0:o.name)==="AbortError"||(o==null?void 0:o.code)==="ABORT_ERR"?(u="",c="Request was aborted (timeout or manual cancellation)",b>this.urlLengthLimit&&(c+=`. Note: Your request URL is ${b} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((d==null?void 0:d.name)==="HeadersOverflowError"||(d==null?void 0:d.code)==="UND_ERR_HEADERS_OVERFLOW")&&(u="",c="HTTP headers exceeded server limits (typically 16KB)",b>this.urlLengthLimit&&(c+=`. Your request URL is ${b} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(s=o==null?void 0:o.name)!==null&&s!==void 0?s:"FetchError"}: ${o==null?void 0:o.message}`,details:l,hint:c,code:u},data:null,count:null,status:0,statusText:""}}
749)),a.then(e,t)}async processResponse(e){var t=this;let r=null,n=null,i=null,a=e.status,o=e.statusText;if(e.ok){var s,l;if(t.method!=="HEAD"){var c;const h=await e.text();h===""||(t.headers.get("Accept")==="text/csv"||t.headers.get("Accept")&&(!((c=t.headers.get("Accept"))===null||c===void 0)&&c.includes("application/vnd.pgrst.plan+text"))?n=h:n=JSON.parse(h))}const u=(s=t.headers.get("Prefer"))===null||s===void 0?void 0:s.match(/count=(exact|planned|estimated)/),d=(l=e.headers.get("content-range"))===null||l===void 0?void 0:l.split("/");u&&d&&d.length>1&&(i=parseInt(d[1])),t.isMaybeSingle&&Array.isArray(n)&&(n.length>1?(r={code:"PGRST116",details:`Results contain ${n.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},n=null,i=null,a=406,o="Not Acceptable"):n.length===1?n=n[0]:n=null)}else{const u=await e.text();try{r=JSON.parse(u),Array.isArray(r)&&e.status===404&&(n=[],r=null,a=200,o="OK")}catch{e.status===404&&u===""?(a=204,o="No Content"):r={message:u}}if(r&&t.shouldThrowOnError)throw new lQ(r)}return{success:r===null,error:r,data:n,count:i,status:a,statusText:o}}returns(){return this}overrideTypes(){return this}},dQ=class extends uQ{select(e){let t=!1;const r=(e??"*").split("").map(n=>/\s/.test(n)&&!t?"":(n==='"'&&(t=!t),n)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:r,foreignTable:n,referencedTable:i=n}={}){const a=i?`${i}.order`:"order",o=this.url.searchParams.get(a);return this.url.searchParams.set(a,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:r=t}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${e}`),this}range(e,t,{foreignTable:r,referencedTable:n=r}={}){const i=typeof n>"u"?"offset":`${n}.offset`,a=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(a,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:r=!1,buffers:n=!1,wal:i=!1,format:a="text"}={}){var o;const s=[e?"analyze":null,t?"verbose":null,r?"settings":null,n?"buffers":null,i?"wal":null].filter(Boolean).join("|"),l=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${a}; for="${l}"; options=${s};`),a==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const SO=new RegExp("[,()]");var _l=class extends dQ{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&SO.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}notIn(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&SO.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`not.in.(${r})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:r,type:n}={}){let i="";n==="plain"?i="pl":n==="phrase"?i="ph":n==="websearch"&&(i="w");const a=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${i}fts${a}.${t}`),this}match(e){return Object.entries(e).filter(([t,r])=>
749r!==void 0).forEach(([t,r])=>{this.url.searchParams.append(t,`eq.${r}`)}),this}not(e,t,r){return this.url.searchParams.append(e,`not.${t}.${r}`),this}or(e,{foreignTable:t,referencedTable:r=t}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${e})`),this}filter(e,t,r){return this.url.searchParams.append(e,`${t}.${r}`),this}},fQ=class{constructor(e,{headers:t={},schema:r,fetch:n,urlLengthLimit:i=8e3,retry:a}){this.url=e,this.headers=new Headers(t),this.schema=r,this.fetch=n,this.urlLengthLimit=i,this.retry=a}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:r=!1,count:n}=t??{},i=r?"HEAD":"GET";let a=!1;const o=(e??"*").split("").map(c=>/\s/.test(c)&&!a?"":(c==='"'&&(a=!a),c)).join(""),{url:s,headers:l}=this.cloneRequestState();return s.searchParams.set("select",o),n&&l.append("Prefer",`count=${n}`),new _l({method:i,url:s,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:r=!0}={}){var n;const i="POST",{url:a,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),r||o.append("Prefer","missing=default"),Array.isArray(e)){const s=e.reduce((l,c)=>l.concat(Object.keys(c)),[]);if(s.length>0){const l=[...new Set(s)].map(c=>`"${c}"`);a.searchParams.set("columns",l.join(","))}}return new _l({method:i,url:a,headers:o,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:r=!1,count:n,defaultToNull:i=!0}={}){var a;const o="POST",{url:s,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),t!==void 0&&s.searchParams.set("on_conflict",t),n&&l.append("Prefer",`count=${n}`),i||l.append("Prefer","missing=default"),Array.isArray(e)){const c=e.reduce((u,d)=>u.concat(Object.keys(d)),[]);if(c.length>0){const u=[...new Set(c)].map(d=>`"${d}"`);s.searchParams.set("columns",u.join(","))}}return new _l({method:o,url:s,headers:l,schema:this.schema,body:e,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var r;const n="PATCH",{url:i,headers:a}=this.cloneRequestState();return t&&a.append("Prefer",`count=${t}`),new _l({method:n,url:i,headers:a,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const r="DELETE",{url:n,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new _l({method:r,url:n,headers:i,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};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 hQ(e,t){if(xf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pQ(e){var t=hQ(e,"string");return xf(t)=="symbol"?t:t+""}function mQ(e,t,r){return(t=pQ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_O(Object(r),!0).forEach(function(n){mQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_O(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var yQ=class u4{constructor(t,{headers:r={},schema:n,fetch:i,timeout:a,urlLengthLimit:o=8e3,retry:s}={}){this.url=t,this.headers=new Headers(r),this.schemaName=n,this.urlLengthLimit=o;const l=i??globalThis.fetch;a!==void 0&&a>0?this.fetch=(c,u)=>{const d=new AbortController,h=setTimeout(()=>d.abort(),a),p=u==null?void 0:u.signal;if(p){if(p.aborted)return clearTimeout(h),l(c,u);const y=()=>{clearTimeout(h),d.abort()};return p.addEventListener("abort",y,{once:!0}),l(c,vp(vp({},u),{},{signal:d.signal})).finally(()=>{clearTimeout(h),p.removeEventListener("abort",y)})}return l(c,vp(vp({},u),{},{signal:d.signal})).finally(()=>
749clearTimeout(h))}:this.fetch=l,this.retry=s}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new fQ(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new u4(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,r={},{head:n=!1,get:i=!1,count:a}={}){var o;let s;const l=new URL(`${this.url}/rpc/${t}`);let c;const u=p=>p!==null&&typeof p=="object"&&(!Array.isArray(p)||p.some(u)),d=n&&Object.values(r).some(u);d?(s="POST",c=r):n||i?(s=n?"HEAD":"GET",Object.entries(r).filter(([p,y])=>y!==void 0).map(([p,y])=>[p,Array.isArray(y)?`{${y.join(",")}}`:`${y}`]).forEach(([p,y])=>{l.searchParams.append(p,y)})):(s="POST",c=r);const h=new Headers(this.headers);return d?h.set("Prefer",a?`count=${a},return=minimal`:"return=minimal"):a&&h.set("Prefer",`count=${a}`),new _l({method:s,url:l,headers:h,schema:this.schemaName,body:c,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class gQ{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const r=globalThis.process;if(r){const n=r.versions;if(n&&n.node){const i=n.node,a=parseInt(i.replace(/^v/,"").split(".")[0]);return a>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${a} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${a} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 750import ws from "ws" 751new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=` 752 753Suggested solution: ${t.workaround}`),new Error(r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const vQ="2.104.0",bQ=`realtime-js/${vQ}`,xQ="1.0.0",d4="2.0.0",wQ=d4,SQ=1e4,_Q=100,Ka={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},f4={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},Ow={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class kQ{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,r){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(t));let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(t){var r;return this._isArrayBuffer((r=t.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var r,n;const i=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,i)}_encodeJsonUserBroadcastPush(t){var r,n;const i=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},o=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,r,n){var i,a;const o=t.topic,s=(i=t.ref)!==null&&i!==void 0?i:"",l=(a=t.join_ref)!==null&&a!==void 0?a:"",c=t.payload.event,u=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},d=Object.keys(u).length===0?"":JSON.stringify(u);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(s.length>255)throw new Error(`ref length ${s.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`userEvent length ${c.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`metadata length ${d.length} exceeds maximum of 255`);const h=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+s.length+o.length+c.length+d.length,p=new ArrayBuffer(this.HEADER_LENGTH+h);let y=new DataView(p),m=0;y.setUint8(m++,this.KINDS.userBroadcastPush),y.setUint8(m++,l.length),y.setUint8(m++,s.length),y.setUint8(m++,o.length),y.setUint8(m++,c.length),y.setUint8(m++,d.length),y.setUint8(m++,r),Array.from(l,b=>y.setUint8(m++,b.charCodeAt(0))),Array.from(s,b=>y.setUint8(m++,b.charCodeAt(0))),Array.from(o,b=>y.setUint8(m++,b.charCodeAt(0))),Array.from(c,b=>y.setUint8(m++,b.charCodeAt(0))),Array.from(d,b=>y.setUint8(m++,b.charCodeAt(0)));var g=new Uint8Array(p.byteLength+n.byteLength);return g.set(new Uint8Array(p),0),g.set(new Uint8Array(n),p.byteLength),g.buffer}decode(t,r){if(this._isArrayBuffer(t)){let n=this._binaryDecode(t);return r(n)}if(typeof t=="string"){const n=JSON.parse(t),[i,a,o,s,l]=n;return r({join_ref:i,ref:a,topic:o,event:s,payload:l})}return r({})}_binaryDecode(t){const r=new DataView(t),n=r.getUint8(0),i=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,r,i)}}_decodeUserBroadcast(t,r,n){const i=r.getUint8(1),a=r.getUint8(2),o=r.getUint8(3),s=r.getUint8(4);let l=this.HEADER_LENGTH+4;const c=n.decode(t.slice(l,l+i));l=l+i;const u=n.decode(t.slice(l,l+a));l=l+a;
753const d=n.decode(t.slice(l,l+o));l=l+o;const h=t.slice(l,t.byteLength),p=s===this.JSON_ENCODING?JSON.parse(n.decode(h)):h,y={type:this.BROADCAST_EVENT,event:u,payload:p};return o>0&&(y.meta=JSON.parse(d)),{join_ref:null,ref:null,topic:c,event:this.BROADCAST_EVENT,payload:y}}_isArrayBuffer(t){var r;return t instanceof ArrayBuffer||((r=t==null?void 0:t.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(t,r){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([n])=>r.includes(n)))}}var nt;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(nt||(nt={}));const kO=(e,t,r={})=>{var n;const i=(n=r.skipTypes)!==null&&n!==void 0?n:[];return t?Object.keys(t).reduce((a,o)=>(a[o]=AQ(o,e,t,i),a),{}):{}},AQ=(e,t,r,n)=>{const i=t.find(s=>s.name===e),a=i==null?void 0:i.type,o=r[e];return a&&!n.includes(a)?h4(a,o):Pw(o)},h4=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return OQ(t,r)}switch(e){case nt.bool:return TQ(t);case nt.float4:case nt.float8:case nt.int2:case nt.int4:case nt.int8:case nt.numeric:case nt.oid:return EQ(t);case nt.json:case nt.jsonb:return jQ(t);case nt.timestamp:return PQ(t);case nt.abstime:case nt.date:case nt.daterange:case nt.int4range:case nt.int8range:case nt.money:case nt.reltime:case nt.text:case nt.time:case nt.timestamptz:case nt.timetz:case nt.tsrange:case nt.tstzrange:return Pw(t);default:return Pw(t)}},Pw=e=>e,TQ=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},EQ=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},jQ=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},OQ=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let a;const o=e.slice(1,r);try{a=JSON.parse("["+o+"]")}catch{a=o?o.split(","):[]}return a.map(s=>h4(t,s))}return e},PQ=e=>typeof e=="string"?e.replace(" ","T"):e,p4=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var Cd=e=>typeof e=="function"?e:function(){return e},CQ=typeof self<"u"?self:null,kl=typeof window<"u"?window:null,yi=CQ||kl||globalThis,NQ="2.0.0",RQ=1e4,IQ=1e3,xi={connecting:0,open:1,closing:2,closed:3},$r={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Ji={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Cw={longpoll:"longpoll",websocket:"websocket"},$Q={complete:4},Nw="base64url.bearer.phx.",bp=class{constructor(e,t,r,n){this.channel=e,this.event=t,this.payload=r||function(){return{}},this.receivedResp=null,this.timeout=n,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:r}){this.recHooks.filter(n=>n.status===e).forEach(n=>n.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},m4=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},MQ=class{constructor(e,t,r){this.state=$r.closed,this.topic=e,this.params=Cd(t||{}),this.socket=r,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new bp(this,Ji.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new m4(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=$r.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(n=>n.send()),this.pushBuffer=[]}),this.joinPush.receive("error",n=>{this.state=$r.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,n),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=$r.closed,this.socket.remove(this)}),this.onError(n=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,n),this.isJoining()&&this.joinPush.reset(),this.state=$r.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new bp(this,Ji.leave,Cd({}),this.timeout).send(),this.state=$r.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Ji.reply,(n,i)=>{this.trigger(this.replyEventName(i),n)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}
vendor: 5,263 bytes, line 753
753teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=$r.closed,this.bindings=[]}onClose(e){this.on(Ji.close,e)}onError(e){return this.on(Ji.error,t=>e(t))}on(e,t){let r=this.bindingRef++;return this.bindings.push({event:e,ref:r,callback:t}),r}off(e,t){this.bindings=this.bindings.filter(r=>!(r.event===e&&(typeof t>"u"||t===r.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,r=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let n=new bp(this,e,function(){return t},r);return this.canPush()?n.send():(n.startTimeout(),this.pushBuffer.push(n)),n}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=$r.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Ji.close,"leave")},r=new bp(this,Ji.leave,Cd({}),e);return r.receive("ok",()=>t()).receive("timeout",()=>t()),r.send(),this.canPush()||r.trigger("ok",{}),r}onMessage(e,t,r){return t}filterBindings(e,t,r){return!0}isMember(e,t,r,n){return this.topic!==e?!1:n&&n!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:r,joinRef:n}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=$r.joining,this.joinPush.resend(e))}trigger(e,t,r,n){let i=this.onMessage(e,t,r,n);if(t&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let a=this.bindings.filter(o=>o.event===e&&this.filterBindings(o,t,r));for(let o=0;o<a.length;o++)a[o].callback(i,r,n||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===$r.closed}isErrored(){return this.state===$r.errored}isJoined(){return this.state===$r.joined}isJoining(){return this.state===$r.joining}isLeaving(){return this.state===$r.leaving}},ny=class{static request(e,t,r,n,i,a,o){if(yi.XDomainRequest){let s=new yi.XDomainRequest;return this.xdomainRequest(s,e,t,n,i,a,o)}else if(yi.XMLHttpRequest){let s=new yi.XMLHttpRequest;return this.xhrRequest(s,e,t,r,n,i,a,o)}else{if(yi.fetch&&yi.AbortController)return this.fetchRequest(e,t,r,n,i,a,o);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,r,n,i,a,o){let s={method:e,headers:r,body:n},l=null;return i&&(l=new AbortController,setTimeout(()=>l.abort(),i),s.signal=l.signal),yi.fetch(t,s).then(c=>c.text()).then(c=>this.parseJSON(c)).then(c=>o&&o(c)).catch(c=>{c.name==="AbortError"&&a?a():o&&o(null)}),l}static xdomainRequest(e,t,r,n,i,a,o){return e.timeout=i,e.open(t,r),e.onload=()=>{let s=this.parseJSON(e.responseText);o&&o(s)},a&&(e.ontimeout=a),e.onprogress=()=>{},e.send(n),e}static xhrRequest(e,t,r,n,i,a,o,s){e.open(t,r,!0),e.timeout=a;for(let[l,c]of Object.entries(n))e.setRequestHeader(l,c);return e.onerror=()=>s&&s(null),e.onreadystatechange=()=>{if(e.readyState===$Q.complete&&s){let l=this.parseJSON(e.responseText);s(l)}},o&&(e.ontimeout=o),e.send(i),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let r=[];for(var n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let i=t?`${t}[${n}]`:n,a=e[n];typeof a=="object"?r.push(this.serialize(a,i)):r.push(encodeURIComponent(i)+"="+encodeURIComponent(a))}return r.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let r=e.match(/\?/)?"&":"?";return`${e}${r}${this.serialize(t)}`}},DQ=e=>{let t="",r=new Uint8Array(e),n=r.byteLength;for(let i=0;i<n;i++)t+=String.fromCharCode(r[i]);return btoa(t)},ll=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(Nw)&&(this.authToken=atob(t[1].slice(Nw.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=xi.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Cw.websocket),"$1/"+Cw.longpoll)}endpointURL(){return ny.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,r){this.close(e,t,r),this.readyState=xi.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===xi.open||this.readyState===xi.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:r,token:n,messages:i}=t;if(r===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=n}else r=0;switch(r){case 200:i.forEach(a=>{setTimeout(()=>this.onmessage({data:a}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=xi.open,this.onopen({}),this.poll();break;
753case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${r}`)}})}send(e){typeof e!="string"&&(e=DQ(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(` 754`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,r){for(let i of this.reqs)i.abort();this.readyState=xi.closed;let n=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:r});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",n)):this.onclose(n)}ajax(e,t,r,n,i){let a,o=()=>{this.reqs.delete(a),n()};a=ny.request(e,this.endpointURL(),t,r,this.timeout,o,s=>{this.reqs.delete(a),this.isActive()&&i(s)}),this.reqs.add(a)}},LQ=class dd{constructor(t,r={}){let n=r.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(n.state,i=>{let{onJoin:a,onLeave:o,onSync:s}=this.caller;this.joinRef=this.channel.joinRef(),this.state=dd.syncState(this.state,i,a,o),this.pendingDiffs.forEach(l=>{this.state=dd.syncDiff(this.state,l,a,o)}),this.pendingDiffs=[],s()}),this.channel.on(n.diff,i=>{let{onJoin:a,onLeave:o,onSync:s}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=dd.syncDiff(this.state,i,a,o),s())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return dd.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,r,n,i){let a=this.clone(t),o={},s={};return this.map(a,(l,c)=>{r[l]||(s[l]=c)}),this.map(r,(l,c)=>{let u=a[l];if(u){let d=c.metas.map(m=>m.phx_ref),h=u.metas.map(m=>m.phx_ref),p=c.metas.filter(m=>h.indexOf(m.phx_ref)<0),y=u.metas.filter(m=>d.indexOf(m.phx_ref)<0);p.length>0&&(o[l]=c,o[l].metas=p),y.length>0&&(s[l]=this.clone(u),s[l].metas=y)}else o[l]=c}),this.syncDiff(a,{joins:o,leaves:s},n,i)}static syncDiff(t,r,n,i){let{joins:a,leaves:o}=this.clone(r);return n||(n=function(){}),i||(i=function(){}),this.map(a,(s,l)=>{let c=t[s];if(t[s]=this.clone(l),c){let u=t[s].metas.map(h=>h.phx_ref),d=c.metas.filter(h=>u.indexOf(h.phx_ref)<0);t[s].metas.unshift(...d)}n(s,c,l)}),this.map(o,(s,l)=>{let c=t[s];if(!c)return;let u=l.metas.map(d=>d.phx_ref);c.metas=c.metas.filter(d=>u.indexOf(d.phx_ref)<0),i(s,c,l),c.metas.length===0&&delete t[s]}),t}static list(t,r){return r||(r=function(n,i){return i}),this.map(t,(n,i)=>r(n,i))}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static clone(t){return JSON.parse(JSON.stringify(t))}},xp={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let r=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(r))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[r,n,i,a,o]=JSON.parse(e);return t({join_ref:r,ref:n,topic:i,event:a,payload:o})}},binaryEncode(e){let{join_ref:t,ref:r,event:n,topic:i,payload:a}=e,o=this.META_LENGTH+t.length+r.length+i.length+n.length,s=new ArrayBuffer(this.HEADER_LENGTH+o),l=new DataView(s),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,t.length),l.setUint8(c++,r.length),l.setUint8(c++,i.length),l.setUint8(c++,n.length),Array.from(t,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(r,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(i,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(n,d=>l.setUint8(c++,d.charCodeAt(0)));var u=new Uint8Array(s.byteLength+a.byteLength);return u.set(new Uint8Array(s),0),u.set(new Uint8Array(a),s.byteLength),u.buffer},binaryDecode(e){let t=new DataView(e),r=t.getUint8(0),n=new TextDecoder;
vendor: 8,595 bytes, line 754
754switch(r){case this.KINDS.push:return this.decodePush(e,t,n);case this.KINDS.reply:return this.decodeReply(e,t,n);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,n)}},decodePush(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,s=r.decode(e.slice(o,o+n));o=o+n;let l=r.decode(e.slice(o,o+i));o=o+i;let c=r.decode(e.slice(o,o+a));o=o+a;let u=e.slice(o,e.byteLength);return{join_ref:s,ref:null,topic:l,event:c,payload:u}},decodeReply(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=t.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,l=r.decode(e.slice(s,s+n));s=s+n;let c=r.decode(e.slice(s,s+i));s=s+i;let u=r.decode(e.slice(s,s+a));s=s+a;let d=r.decode(e.slice(s,s+o));s=s+o;let h=e.slice(s,e.byteLength),p={status:d,response:h};return{join_ref:l,ref:c,topic:u,event:Ji.reply,payload:p}},decodeBroadcast(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),a=this.HEADER_LENGTH+2,o=r.decode(e.slice(a,a+n));a=a+n;let s=r.decode(e.slice(a,a+i));a=a+i;let l=e.slice(a,e.byteLength);return{join_ref:null,ref:null,topic:o,event:s,payload:l}}},BQ=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||RQ,this.transport=t.transport||yi.WebSocket||ll,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||yi&&yi.sessionStorage,this.establishedConnections=0,this.defaultEncoder=xp.encode.bind(xp),this.defaultDecoder=xp.decode.bind(xp),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==ll?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;kl&&kl.addEventListener&&(kl.addEventListener("pagehide",n=>{this.conn&&(this.disconnect(),r=this.connectClock)}),kl.addEventListener("pageshow",n=>{r===this.connectClock&&(r=null,this.connect())}),kl.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=n=>t.rejoinAfterMs?t.rejoinAfterMs(n):[1e3,2e3,5e3][n-1]||1e4,this.reconnectAfterMs=n=>t.reconnectAfterMs?t.reconnectAfterMs(n):[10,50,100,150,200,250,500,1e3,2e3][n-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(n,i,a)=>{console.log(`${n}: ${i}`,a)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Cd(t.params||{}),this.endPoint=`${e}/${Cw.websocket}`,this.vsn=t.vsn||NQ,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new m4(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return ll}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=ny.appendParams(ny.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,r){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,r)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Cd(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==ll?this.connectWithFallback(ll,this.longPollFallbackMs):this.transportConnect())}log(e,t,r){this.logger&&this.logger(e,t,r)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),r=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let n=this.onMessage(i=>{i.ref===t&&(this.off([n]),e(Date.now()-r))});return!0}transportName(e){switch(e){case ll:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${Nw}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let r=!1,n=!0,i,a,o=this.transportName(e),s=l=>{this.log("transport",`falling back to ${o}...`,l),this.off([i,a]),n=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return s("memorized");this.fallbackTimer=setTimeout(s,t),a=this.onError(l=>{this.log("transport","error",l),n&&!r&&(clearTimeout(this.fallbackTimer),s(l))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(r=!0,!n){let l=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${l}`,"true"),this.log("transport",`established ${l} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(s,t),this.ping(l=>{this.log("transport","connected to primary after",l),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),IQ,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,r){if(!this.conn)return e&&e();const n=this.conn;this.waitForBufferDone(n,()=>{t?n.close(t,r||""):n.close(),this.waitForSocketClosed(n,()=>{this.conn===n&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,r=1){if(r===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,r+1)},150*r)}waitForSocketClosed(e,t,r=1){if(r===5||e.readyState===xi.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,r+1)},150*r)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport",e);let t=this.transport,r=this.establishedConnections;this.triggerStateCallbacks("error",e,t,r),(t===this.transport||r>0)&&this.triggerChanError()}
754triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(Ji.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case xi.connecting:return"connecting";case xi.open:return"open";case xi.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([r])=>e.indexOf(r)===-1)}channel(e,t={}){let r=new MQ(e,t,this);return this.channels.push(r),r}push(e){if(this.hasLogger()){let{topic:t,event:r,payload:n,ref:i,join_ref:a}=e;this.log("push",`${t} ${r} (${a}, ${i})`,n)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:r,event:n,payload:i,ref:a,join_ref:o}=t;if(a&&a===this.pendingHeartbeatRef){const s=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(i.status==="ok"?"ok":"error",s)}catch(l){this.log("error","error in heartbeat callback",l)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${i.status||""} ${r} ${n} ${a&&"("+a+")"||""}`.trim(),i);for(let s=0;s<this.channels.length;s++){const l=this.channels[s];l.isMember(r,n,i,o)&&l.trigger(n,i,a,o)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([r,n])=>{try{n(...t)}catch(i){this.log("error",`error in ${e} callback`,i)}})}catch(r){this.log("error",`error triggering ${e} callbacks`,r)}}leaveOpenTopic(e){let t=this.channels.find(r=>r.topic===e&&(r.isJoined()||r.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Nd{constructor(t,r){const n=UQ(r);this.presence=new LQ(t.getChannel(),n),this.presence.onJoin((i,a,o)=>{const s=Nd.onJoinPayload(i,a,o);t.getChannel().trigger("presence",s)}),this.presence.onLeave((i,a,o)=>{const s=Nd.onLeavePayload(i,a,o);t.getChannel().trigger("presence",s)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Nd.transformState(this.presence.state)}static transformState(t){return t=FQ(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const i=t[n];return r[n]=fm(i),r},{})}static onJoinPayload(t,r,n){const i=AO(r),a=fm(n);return{event:"join",key:t,currentPresences:i,newPresences:a}}static onLeavePayload(t,r,n){const i=AO(r),a=fm(n);return{event:"leave",key:t,currentPresences:i,leftPresences:a}}}function fm(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function FQ(e){return JSON.parse(JSON.stringify(e))}function UQ(e){return(e==null?void 0:e.events)&&{events:e.events}}function AO(e){return e!=null&&e.metas?fm(e):[]}var TO;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(TO||(TO={}));class VQ{get state(){return this.presenceAdapter.state}constructor(t,r){this.channel=t,this.presenceAdapter=new Nd(this.channel.channelAdapter,r)}}class zQ{constructor(t,r,n){const i=WQ(n);this.channel=t.getSocket().channel(r,i),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,r){return this.channel.on(t,r)}off(t,r){this.channel.off(t,r)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,r,n){let i;try{i=this.channel.push(t,r,n)}catch{throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>_Q){const a=this.channel.pushBuffer.shift();a.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${a.event}`,a.payload())}return i}updateJoinPayload(t){const r=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},r),t)}canPush(){return this.socket.isConnected()&&this.state===Ka.joined}isJoined(){return this.state===Ka.joined}isJoining(){return this.state===Ka.joining}isClosed(){return this.state===Ka.closed}isLeaving(){return this.state===Ka.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function WQ(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var EO;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(EO||(EO={}));var Kl;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Kl||(Kl={}));var Qi;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Qi||(Qi={}));class Rd{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,r={config:{}},n){var i,a;if(this.topic=t,this.params=r,this.socket=n,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.channelAdapter=new zQ(this.socket.socketAdapter,t,this.params),this.presence=new VQ(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=p4(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((a=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||a===void 0)&&a.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(t,r=this.timeout){var n,i,a;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:o,presence:s,private:l}}=this.params,c=(i=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(p=>p.filter))!==null&&i!==void 0?i:[],u=!!this.bindings[Kl.PRESENCE]&&this.bindings[Kl.PRESENCE].length>0||((a=this.params.config.presence)===null||a===void 0?void 0:a.enabled)===!0,d={},h={broadcast:o,presence:Object.assign(Object.assign({},s),{enabled:u}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(d.access_token=this.socket.accessTokenValue),this._onError(p=>{t==null||t(Qi.CHANNEL_ERROR,p)}),this._onClose(()=>t==null?void 0:t(Qi.CLOSED)),this.updateJoinPayload(Object.assign({config:h},d)),this._updateFilterMessage(),this.channelAdapter.subscribe(r).receive("ok",async({postgres_changes:p})=>{if(this.socket._isManualToken()||this.socket.setAuth(),p===void 0){t==null||t(Qi.SUBSCRIBED);return}this._updatePostgresBindings(p,t)}
754).receive("error",p=>{this.state=Ka.errored,t==null||t(Qi.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(p).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Qi.TIMED_OUT)})}return this}_updatePostgresBindings(t,r){var n;const i=this.bindings.postgres_changes,a=(n=i==null?void 0:i.length)!==null&&n!==void 0?n:0,o=[];for(let s=0;s<a;s++){const l=i[s],{filter:{event:c,schema:u,table:d,filter:h}}=l,p=t&&t[s];if(p&&p.event===c&&Rd.isFilterValueEqual(p.schema,u)&&Rd.isFilterValueEqual(p.table,d)&&Rd.isFilterValueEqual(p.filter,h))o.push(Object.assign(Object.assign({},l),{id:p.id}));else{this.unsubscribe(),this.state=Ka.errored,r==null||r(Qi.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,this.state!=Ka.errored&&r&&r(Qi.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){const i=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),a=t===Kl.PRESENCE||t===Kl.POSTGRES_CHANGES;if(i&&a)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,r,n)}async httpSend(t,r,n={}){var i;if(r==null)return Promise.reject(new Error("Payload is required for httpSend()"));const a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:r,private:this.private}]})},s=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(i=n.timeout)!==null&&i!==void 0?i:this.timeout);if(s.status===202)return{success:!0};let l=s.statusText;try{const c=await s.json();l=c.error||c.message||l}catch{}return Promise.reject(new Error(l))}async send(t,r={}){var n,i;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated
754in the future. Please use httpSend() explicitly for REST delivery.");const{event:a,payload:o}=t,s={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(s.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:s,body:JSON.stringify({messages:[{topic:this.subTopic,event:a,payload:o,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((i=c.body)===null||i===void 0?void 0:i.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(a=>{var o,s,l;const c=this.channelAdapter.push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(s=(o=this.params)===null||o===void 0?void 0:o.config)===null||s===void 0?void 0:s.broadcast)===null||l===void 0)&&l.ack)&&a("ok"),c.receive("ok",()=>a("ok")),c.receive("error",()=>a("error")),c.receive("timeout",()=>a("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(r=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>r("ok")).receive("timeout",()=>r("timed out")).receive("error",()=>r("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,r,n){const i=new AbortController,a=setTimeout(()=>i.abort(),n),o=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:i.signal}));return clearTimeout(a),o}_on(t,r,n){const i=t.toLocaleLowerCase(),a=this.channelAdapter.on(t,n),o={type:i,filter:r,callback:n,ref:a};return this.bindings[i]?this.bindings[i].push(o):this.bindings[i]=[o],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,r,n)=>{var i,a,o,s,l,c,u;const d=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(d,n))return!1;const h=(i=this.bindings[d])===null||i===void 0?void 0:i.find(p=>p.ref===t.ref);if(!h)return!0;if(["broadcast","presence","postgres_changes"].includes(d))if("id"in h){const p=h.id,y=(a=h.filter)===null||a===void 0?void 0:a.event;return p&&((o=r.ids)===null||o===void 0?void 0:o.includes(p))&&(y==="*"||(y==null?void 0:y.toLocaleLowerCase())===((s=r.data)===null||s===void 0?void 0:s.type.toLocaleLowerCase()))}else{const p=(c=(l=h==null?void 0:h.filter)===null||l===void 0?void 0:l.event)===null||c===void 0?void 0:c.toLocaleLowerCase();return p==="*"||p===((u=r==null?void 0:r.event)===null||u===void 0?void 0:u.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===d})}_notThisChannelEvent(t,r){const{close:n,error:i,leave:a,join:o}=f4;return r&&[n,i,a,o].includes(t)&&r!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,r,n)=>{if(typeof r=="object"&&"ids"in r){const i=r.data,{schema:a,table:o,commit_timestamp:s,type:l,errors:c}=i;return Object.assign(Object.assign({},{schema:a,table:o,commit_timestamp:s,eventType:l,new:{},old:{},errors:c}),this._getPayloadRecords(i))}return r})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const r in t.bindings)for(const n of t.bindings[r])this._on(n.type,n.filter,n.callback)}static isFilterValueEqual(t,r){return(t??void 0)===(r??void 0)}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=kO(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=kO(t.columns,t.old_record)),r}}class HQ{constructor(t,r){this.socket=new BQ(t,r)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,r,n,i=1e4){return new Promise(a=>{setTimeout(()=>a("timeout"),i),this.socket.disconnect(()=>{t(),a("ok")},r,n)})}push(t){this.socket.push(t)}log(t,r,n){this.socket.log(t,r,n)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Ow.connecting}isDisconnecting(){return this.socket.connectionState()==Ow.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const qQ={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},KQ=[1e3,2e3,5e3,1e4],YQ=1e4,GQ=` 755 addEventListener("message", (e) => { 756 if (e.data.event === "start") { 757 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 758 } 759 });`;class XQ{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,r){var n;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
759,this.ref=0,this.serializer=new kQ,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._resolveFetch=a=>a?(...o)=>a(...o):(...o)=>fetch(...o),!(!((n=r==null?void 0:r.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey;const i=this._initializeOptions(r);this.socketAdapter=new HQ(t,i),this.httpEndpoint=p4(t),this.fetch=this._resolveFetch(r==null?void 0:r.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const r=t.message;throw r.includes("Node.js")?new Error(`${r} 760 761To use Realtime in Node.js, you need to provide a WebSocket implementation: 762 763Option 1: Use Node.js 22+ which has native WebSocket support 764Option 2: Install and provide the "ws" package: 765 766 npm install ws 767 768 import ws from "ws" 769 const client = new RealtimeClient(url, { 770 ...options, 771 transport: ws 772 })`):new Error(`WebSocket not available: ${r}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,r){return this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,r)}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return r==="ok"&&t.teardown(),this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const t=this.channels.map(async n=>{const i=await n.unsubscribe();return n.teardown(),i}),r=await Promise.all(t);return this.disconnect(),r}log(t,r,n){this.socketAdapter.log(t,r,n)}connectionState(){return this.socketAdapter.connectionState()||Ow.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,r={config:{}}){const n=`realtime:${t}`,i=this.getChannels().find(a=>a.topic===n);if(i)return i;{const a=new Rd(`realtime:${t}`,r,this);return this.channels.push(a),a}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic)}async _performAuth(t=null){let r,n=!1;if(t)r=t,n=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(i){this.log("error","Error fetching access token from callback",i),r=this.accessTokenValue}else r=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(i=>{const a={access_token:r,version:bQ};r&&i.updateJoinPayload(a),i.joinedOnce&&i.channelAdapter.isJoined()&&i.channelAdapter.push(f4.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${t}`,r)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(r=>{this.log("error","error waiting for auth on connect",r)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(r,n)=>{r=="sent"&&this._setAuthSafely(),t&&t(r,n)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([GQ],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_initializeOptions(t){var r,n,i,a,o,s,l,c,u;this.worker=(r=t==null?void 0:t.worker)!==null&&r!==void 0?r:!1,this.accessToken=(n=t==null?void 0:t.accessToken)!==null&&n!==void 0?n:null;const d={};
772d.timeout=(i=t==null?void 0:t.timeout)!==null&&i!==void 0?i:SQ,d.heartbeatIntervalMs=(a=t==null?void 0:t.heartbeatIntervalMs)!==null&&a!==void 0?a:qQ.HEARTBEAT_INTERVAL,d.transport=(o=t==null?void 0:t.transport)!==null&&o!==void 0?o:gQ.getWebSocketConstructor(),d.params=t==null?void 0:t.params,d.logger=t==null?void 0:t.logger,d.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),d.reconnectAfterMs=(s=t==null?void 0:t.reconnectAfterMs)!==null&&s!==void 0?s:m=>KQ[m-1]||YQ;let h,p;const y=(l=t==null?void 0:t.vsn)!==null&&l!==void 0?l:wQ;switch(y){case xQ:h=(m,g)=>g(JSON.stringify(m)),p=(m,g)=>g(JSON.parse(m));break;case d4:h=this.serializer.encode.bind(this.serializer),p=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${d.vsn}`)}if(d.vsn=y,d.encode=(c=t==null?void 0:t.encode)!==null&&c!==void 0?c:h,d.decode=(u=t==null?void 0:t.decode)!==null&&u!==void 0?u:p,d.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,d.params=Object.assign(Object.assign({},d.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl,d.autoSendHeartbeat=!this.worker}return d}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}var wf=class extends Error{constructor(e,t){var r;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((r=t.icebergType)==null?void 0:r.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function ZQ(e,t,r){const n=new URL(t,e);if(r)for(const[i,a]of Object.entries(r))a!==void 0&&n.searchParams.set(i,a);return n.toString()}async function JQ(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function QQ(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:i,body:a,headers:o}){const s=ZQ(e.baseUrl,n,i),l=await JQ(e.auth),c=await t(s,{method:r,headers:{...a?{"Content-Type":"application/json"}:{},...l,...o},body:a?JSON.stringify(a):void 0}),u=await c.text(),d=(c.headers.get("content-type")||"").includes("application/json"),h=d&&u?JSON.parse(u):u;if(!c.ok){const p=d?h:void 0,y=p==null?void 0:p.error;throw new wf((y==null?void 0:y.message)??`Request failed with status ${c.status}`,{status:c.status,icebergType:y==null?void 0:y.type,icebergCode:y==null?void 0:y.code,details:p})}return{status:c.status,headers:c.headers,data:h}}}}function wp(e){return e.join("�")}var eee=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:wp(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(e,t){const r={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${wp(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${wp(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${wp(e.namespace)}`}),!0}catch(t){if(t instanceof wf&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(r){if(r instanceof wf&&r.status===409)return;throw r}}};function cl(e){return e.join("�")}var tee=class{constructor(e,t="",r){this.client=e,this.prefix=t,this.accessDelegation=r}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${cl(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${cl(e.namespace)}/tables`,body:t,headers:r})).data.metadata}async updateTable(e,t){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${cl(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${cl(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${cl(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${cl(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(r){if(r instanceof wf&&r.status===404)return!1;throw r}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(r){if(r instanceof wf&&r.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw r}}},ree=class{constructor(e){var n;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const r=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=QQ({baseUrl:r,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(n=e.accessDelegation)==null?void 0:n.join(","),this.namespaceOps=new eee(this.client,t),this.tableOps=new tee(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
772async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function Sf(e){"@babel/helpers - typeof";return Sf=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},Sf(e)}function nee(e,t){if(Sf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Sf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iee(e){var t=nee(e,"string");return Sf(t)=="symbol"?t:t+""}function aee(e,t,r){return(t=iee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jO(Object(r),!0).forEach(function(n){aee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var ev=class extends Error{constructor(e,t="storage",r,n){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=r,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function tv(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Rw=class extends ev{constructor(e,t,r,n="storage"){super(e,n,t,r),this.name=n==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=r}toJSON(){return _e({},super.toJSON())}},y4=class extends ev{constructor(e,t,r="storage"){super(e,r),this.name=r==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function $k(e,t,r){const n=_e({},e),i=t.toLowerCase();for(const a of Object.keys(n))a.toLowerCase()===i&&delete n[a];return n[i]=r,n}function oee(e){const t={};for(const[r,n]of Object.entries(e))t[r.toLowerCase()]=n;return t}const see=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),lee=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)},Iw=e=>{if(Array.isArray(e))return e.map(r=>Iw(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const i=r.replace(/([-_][a-z])/gi,a=>a.toUpperCase().replace(/[-_]/g,""));t[i]=Iw(n)}),t},cee=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),OO=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},uee=async(e,t,r,n)=>{if(e!==null&&typeof e=="object"&&typeof e.json=="function"){const i=e;let a=parseInt(i.status,10);Number.isFinite(a)||(a=500),i.json().then(o=>{const s=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||a+"";t(new Rw(OO(o),a,s,n))}).catch(()=>{const o=a+"";t(new Rw(i.statusText||`HTTP ${a} error`,a,o,n))})}else t(new y4(OO(e),e,n))},dee=(e,t,r,n)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};if(e==="GET"||e==="HEAD"||!n)return _e(_e({},i),r);if(lee(n)){var a;const o=(t==null?void 0:t.headers)||{};let s;for(const[l,c]of Object.entries(o))l.toLowerCase()==="content-type"&&(s=c);i.headers=$k(o,"Content-Type",(a=s)!==null&&a!==void 0?a:"application/json"),i.body=JSON.stringify(n)}else i.body=n;return t!=null&&t.duplex&&(i.duplex=t.duplex),_e(_e({},i),r)};async function qu(e,t,r,n,i,a,o){return new Promise((s,l)=>{e(r,dee(t,n,i,a)).then(c=>{if(!c.ok)throw c;if(n!=null&&n.noResolveJson)return c;if(o==="vectors"){const u=c.headers.get("content-type");if(c.headers.get("content-length")==="0"||c.status===204)return{};if(!u||!u.includes("application/json"))return{}}return c.json()}).then(c=>s(c)).catch(c=>uee(c,l,n,o))})}function g4(e="storage"){return{get:async(t,r,n,i)=>qu(t,"GET",r,n,i,void 0,e),post:async(t,r,n,i,a)=>qu(t,"POST",r,i,a,n,e),put:async(t,r,n,i,a)=>qu(t,"PUT",r,i,a,n,e),head:async(t,r,n,i)=>qu(t,"HEAD",r,_e(_e({},n),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,r,n,i,a)=>qu(t,"DELETE",r,i,a,n,e)}}const fee=g4("storage"),{get:_f,post:Wn,put:$w,head:hee,remove:Mk}=fee,en=g4("vectors");var xu=class{constructor(e,t={},r,n="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=oee(t),this.fetch=see(r),this.namespace=n}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=$k(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(tv(r))return{data:null,error:r};throw r}}},pee=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(tv(t))return{data:null,error:t};throw t}}};let v4;v4=Symbol.toStringTag;var mee=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[v4]="BlobDownloadBuilder",this.promise=null}asStream(){return new pee(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(tv(t))return{data:null,error:t};throw t}}};const yee={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},PO={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var gee=class extends xu{constructor(e,t={},r,n){super(e,t,n,"storage"),this.bucketId=r}async uploadOrUpdate(e,t,r,n){var i=this;return i.handleOperation(async()=>{let a;const o=_e(_e({},PO),n);let s=_e(_e({},i.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;if(typeof Blob<"u"&&r instanceof Blob?(a=new FormData,a.append("cacheControl",o.cacheControl),l&&a.append("metadata",i.encodeMetadata(l)),a.append("",r)):typeof FormData<"u"&&r instanceof FormData?(a=r,a.has("cacheControl")||a.append("cacheControl",o.cacheControl),l&&!a.has("metadata")&&a.append("metadata",i.encodeMetadata(l))):(a=r,s["cache-control"]=`max-age=${o.cacheControl}`,s["content-type"]=o.contentType,l&&(s["x-metadata"]=i.toBase64(i.encodeMetadata(l))),(typeof ReadableStream<"u"&&a
772instanceof ReadableStream||a&&typeof a=="object"&&"pipe"in a&&typeof a.pipe=="function")&&!o.duplex&&(o.duplex="half")),n!=null&&n.headers)for(const[h,p]of Object.entries(n.headers))s=$k(s,h,p);const c=i._removeEmptyFolders(t),u=i._getFinalPath(c),d=await(e=="PUT"?$w:Wn)(i.fetch,`${i.url}/object/${u}`,a,_e({headers:s},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:c,id:d.Id,fullPath:d.Key}})}async upload(e,t,r){return this.uploadOrUpdate("POST",e,t,r)}async uploadToSignedUrl(e,t,r,n){var i=this;const a=i._removeEmptyFolders(e),o=i._getFinalPath(a),s=new URL(i.url+`/object/upload/sign/${o}`);return s.searchParams.set("token",t),i.handleOperation(async()=>{let l;const c=_e(_e({},PO),n),u=_e(_e({},i.headers),{"x-upsert":String(c.upsert)});return typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",c.cacheControl)):(l=r,u["cache-control"]=`max-age=${c.cacheControl}`,u["content-type"]=c.contentType),{path:a,fullPath:(await $w(i.fetch,s.toString(),l,{headers:u})).Key}})}async createSignedUploadUrl(e,t){var r=this;return r.handleOperation(async()=>{let n=r._getFinalPath(e);const i=_e({},r.headers);t!=null&&t.upsert&&(i["x-upsert"]="true");const a=await Wn(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:i}),o=new URL(r.url+a.url),s=o.searchParams.get("token");if(!s)throw new ev("No token returned by API");return{signedUrl:o.toString(),path:e,token:s}})}async update(e,t,r){return this.uploadOrUpdate("PUT",e,t,r)}async move(e,t,r){var n=this;return n.handleOperation(async()=>await Wn(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,de
772stinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers}))}async copy(e,t,r){var n=this;return n.handleOperation(async()=>({path:(await Wn(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,destinationBucket:r==null?void 0:r.destinationBucket},{headers:n.headers})).Key}))}async createSignedUrl(e,t,r){var n=this;return n.handleOperation(async()=>{let i=n._getFinalPath(e);const a=typeof(r==null?void 0:r.transform)=="object"&&r.transform!==null&&Object.keys(r.transform).length>0;let o=await Wn(n.fetch,`${n.url}/object/sign/${i}`,_e({expiresIn:t},a?{transform:r.transform}:{}),{headers:n.headers});const s=new URLSearchParams;r!=null&&r.download&&s.set("download",r.download===!0?"":r.download),(r==null?void 0:r.cacheNonce)!=null&&s.set("cacheNonce",String(r.cacheNonce));const l=s.toString();return{signedUrl:encodeURI(`${n.url}${o.signedURL}${l?`&${l}`:""}`)}})}async createSignedUrls(e,t,r){var n=this;return n.handleOperation(async()=>{const i=await Wn(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:t,paths:e},{headers:n.headers}),a=new URLSearchParams;r!=null&&r.download&&a.set("download",r.download===!0?"":r.download),(r==null?void 0:r.cacheNonce)!=null&&a.set("cacheNonce",String(r.cacheNonce));const o=a.toString();return i.map(s=>_e(_e({},s),{},{signedUrl:s.signedURL?encodeURI(`${n.url}${s.signedURL}${o?`&${o}`:""}`):null}))})}download(e,t,r){const n=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",i=new URLSearchParams;t!=null&&t.transform&&this.applyTransformOptsToQuery(i,t.transform),(t==null?void 0:t.cacheNonce)!=null&&i.set("cacheNonce",String(t.cacheNonce));const a=i.toString(),o=this._getFinalPath(e),s=()=>_f(this.fetch,`${this.url}/${n}/${o}${a?`?${a}`:""}`,{headers:this.headers,noResolveJson:!0},r);return new mee(s,this.shouldThrowOnError)}async info(e){var t=this;const r=t._getFinalPath(e);return t.handleOperation(async()=>Iw(await _f(t.fetch,`${t.url}/object/info/${r}`,{headers:t.headers})))}async exists(e){var t=this;const r=t._getFinalPath(e);try{return await hee(t.fetch,`${t.url}/object/${r}`,{headers:t.headers}),{data:!0,error:null}}catch(i){if(t.shouldThrowOnError)throw i;if(tv(i)){var n;const a=i instanceof Rw?i.status:i instanceof y4?(n=i.originalError)===null||n===void 0?void 0:n.status:void 0;if(a!==void 0&&[400,404].includes(a))return{data:!1,error:i}}throw i}}getPublicUrl(e,t){const r=this._getFinalPath(e),n=new URLSearchParams;t!=null&&t.download&&n.set("download",t.download===!0?"":t.download),t!=null&&t.transform&&this.applyTransformOptsToQuery(n,t.transform),(t==null?void 0:t.cacheNonce)!=null&&n.set("cacheNonce",String(t.cacheNonce));const i=n.toString(),a=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}`)+(i?`?${i}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await Mk(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,r){var n=this;return n.handleOperation(async()=>{const i=_e(_e(_e({},yee),t),{},{prefix:e||""});return await Wn(n.fetch,`${n.url}/object/list/${n.bucketId}`,i,{headers:n.headers},r)})}async listV2(e,t){var r=this;return r.handleOperation(async()=>{const n=_e({},e);return await Wn(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("quality",t.quality.toString()),e}};const vee="2.104.0",Ph={"X-Client-Info":`storage-js/${vee}`};var bee=class extends xu{constructor(e,t={},r,n){const i=new URL(e);n!=null&&n.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase."));const a=i.href.replace(/\/$/,""),o=_e(_e({},Ph),t);super(a,o,r,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const r=t.listBucketOptionsToQueryString(e);return await _f(t.fetch,`${t.url}/bucket${r}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await _f(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var r=this;return r.handleOperation(async()=>await Wn(r.fetch,`${r.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async updateBucket(e,t){var r=this;return r.handleOperation(async()=>await $w(r.fetch,`${r.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await Wn(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Mk(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},xee=class extends xu{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=_e(_e({},Ph),t);super(n,i,r,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Wn(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>
772{const r=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&r.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&r.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&r.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&r.set("sortOrder",e.sortOrder),e!=null&&e.search&&r.set("search",e.search);const n=r.toString(),i=n?`${t.url}/bucket?${n}`:`${t.url}/bucket`;return await _f(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Mk(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!cee(e))throw new ev("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const r=new ree({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(i,a){const o=i[a];return typeof o!="function"?o:async(...s)=>{try{return{data:await o.apply(i,s),error:null}}catch(l){if(n)throw l;return{data:null,error:l}}}}})}},wee=class extends xu{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=_e(_e({},Ph),{},{"Content-Type":"application/json"},t);super(n,i,r,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await en.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var r=this;return r.handleOperation(async()=>await en.post(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await en.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var r=this;return r.handleOperation(async()=>await en.post(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers})||{})}},See=class extends xu{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=_e(_e({},Ph),{},{"Content-Type":"application/json"},t);super(n,i,r,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await en.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await en.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await en.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await en.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await en.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},_ee=class extends xu{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=_e(_e({},Ph),{},{"Content-Type":"application/json"},t);super(n,i,r,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await en.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await en.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await en.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await en.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},kee=class extends _ee{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new Aee(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,r=this;return t().call(r,e)}async getBucket(e){var t=()=>super.getBucket,r=this;return t().call(r,e)}async listBuckets(e={}){var t=()=>super.listBuckets,r=this;return t().call(r,e)}async deleteBucket(e){var t=()=>super.deleteBucket,r=this;return t().call(r,e)}},Aee=class extends wee{constructor(e,t,r,n){super(e,t,n),this.vectorBucketName=r}async createIndex(e){var t=()=>super.createIndex,r=this;return t().call(r,_e(_e({},e),{},{vectorBucketName:r.vectorBucketName}))}
772async listIndexes(e={}){var t=()=>super.listIndexes,r=this;return t().call(r,_e(_e({},e),{},{vectorBucketName:r.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,r=this;return t().call(r,r.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,r=this;return t().call(r,r.vectorBucketName,e)}index(e){return new Tee(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},Tee=class extends See{constructor(e,t,r,n,i){super(e,t,i),this.vectorBucketName=r,this.indexName=n}async putVectors(e){var t=()=>super.putVectors,r=this;return t().call(r,_e(_e({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async getVectors(e){var t=()=>super.getVectors,r=this;return t().call(r,_e(_e({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,r=this;return t().call(r,_e(_e({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,r=this;return t().call(r,_e(_e({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,r=this;return t().call(r,_e(_e({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}},Eee=class extends bee{constructor(e,t={},r,n){super(e,t,r,n)}from(e){return new gee(this.url,this.headers,e,this.fetch)}get vectors(){return new kee(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new xee(this.url+"/iceberg",this.headers,this.fetch)}};function rv(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}const b4="2.104.0",Al=30*1e3,Mw=3,n0=Mw*Al,jee="http://localhost:9999",Oee="supabase.auth.token",Pee={"X-Client-Info":`gotrue-js/${b4}`},Dw="X-Supabase-Api-Version",x4={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Cee=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Nee=10*60*1e3;class kf extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function pe(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class Ree extends kf{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function Iee(e){return pe(e)&&e.name==="AuthApiError"}class os extends kf{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class ka extends kf{constructor(t,r,n,i){super(t,n,i),this.name=r,this.status=n}}class Kr extends ka{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Sp(e){return pe(e)&&e.name==="AuthSessionMissingError"}class ul extends ka{constructor(){super("Auth session or user missing","AuthInvalidToken
772ResponseError",500,void 0)}}class _p extends ka{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class kp extends ka{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function $ee(e){return pe(e)&&e.name==="AuthImplicitGrantRedirectError"}class CO extends ka{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class Mee extends ka{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Lw extends ka{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function i0(e){return pe(e)&&e.name==="AuthRetryableFetchError"}class NO extends ka{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class Bw extends ka{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const iy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),RO=` 773\r=`.split(""),Dee=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<RO.length;t+=1)e[RO[t].charCodeAt(0)]=-2;for(let t=0;t<iy.length;t+=1)e[iy[t].charCodeAt(0)]=t;return e})();function IO(e,t,r){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(iy[n]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(iy[n]),t.queuedBits-=6}}function w4(e,t,r){const n=Dee[e];if(n>-1)for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function $O(e){const t=[],r=o=>{t.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},a=o=>{Fee(o,n,r)};for(let o=0;o<e.length;o+=1)w4(e.charCodeAt(o),i,a);return t.join("")}function Lee(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function Bee(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const i=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|i)+65536,r+=1}Lee(n,t)}}function Fee(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&r(t.codepoint)}}function lc(e){const t=[],r={queue:0,queuedBits:0},n=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)w4(e.charCodeAt(i),r,n);return new Uint8Array(t)}function Uee(e){const t=[];return Bee(e,r=>t.push(r)),new Uint8Array(t)}function hs(e){const t=[],r={queue:0,queuedBits:0},n=i=>{t.push(i)};return e.forEach(i=>IO(i,r,n)),IO(null,r,n),t.join("")}function Vee(e){return Math.round(Date.now()/1e3)+e}function zee(){return Symbol("auth-callback")}const nr=()=>typeof window<"u"&&typeof document<"u",Ko={tested:!1,writable:!1},S4=()=>{if(!nr())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Ko.tested)return Ko.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Ko.tested=!0,Ko.writable=!0}catch{Ko.tested=!0,Ko.writable=!1}return Ko.writable};function Wee(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEac
773h((i,a)=>{t[a]=i})}catch{}return r.searchParams.forEach((n,i)=>{t[i]=n}),t}const _4=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),Hee=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Tl=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},Yo=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},rr=async(e,t)=>{await e.removeItem(t)};class nv{constructor(){this.promise=new nv.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}nv.promiseConstructor=Promise;function Ap(e){const t=e.split(".");if(t.length!==3)throw new Bw("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!Cee.test(t[n]))throw new Bw("JWT not in base64url format");return{header:JSON.parse($O(t[0])),payload:JSON.parse($O(t[1])),signature:lc(t[2]),raw:{header:t[0],payload:t[1]}}}async function qee(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function Kee(e,t){return new Promise((n,i)=>{(async()=>{for(let a=0;a<1/0;a++)try{const o=await e(a);if(!t(a,null,o)){n(o);return}}catch(o){if(!t(a,o)){i(o);return}}})()})}function Yee(e){return("0"+e.toString(16)).substr(-2)}function Gee(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let i="";for(let a=0;a<56;a++)i+=r.charAt(Math.floor(Math.random()*n));return i}return crypto.getRandomValues(t),Array.from(t,Yee).join("")}async function Xee(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),i=new Uint8Array(n);return Array.from(i).map(a=>String.fromCharCode(a)).join("")}async function Zee(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const r=await Xee(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function dl(e,t,r=!1){const n=Gee();let i=n;r&&(i+="/PASSWORD_RECOVERY"),await Tl(e,`${t}-code-verifier`,i);const a=await Zee(n);return[a,n===a?"plain":"s256"]}const Jee=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function Qee(e){const t=e.headers.get(Dw);if(!t||!t.match(Jee))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function ete(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function tte(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const rte=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function fl(e){if(!rte.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function a0(){const e={};return new Proxy(e,{get:(t,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function nte(e,t){return new Proxy(e,{get:(r,n,i)=>{if(n==="__isInsecureUserWarningProxy")return!0;if(typeof n=="symbol"){const a=n.toString();if(a==="Symbol(Symbol.toPrimitive)"||a==="Symbol(Symbol.toStringTag)"||a==="Symbol(util.inspect.custom)"||a==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,i)}return!t.value&&typeof n=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(r,n,i)}})}function MO(e){return JSON.parse(JSON.stringify(e))}const rs=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),ite=[502,503,504,520,521,522,523,524,530];async function DO(e){var t;if(!Hee(e))throw new Lw(rs(e),0);if(ite.includes(e.status))throw new Lw(rs(e),e.status);let r;try{r=await e.json()}catch(a){throw new os(rs(a),a)}let n;const i=Qee(e);
773if(i&&i.getTime()>=x4["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new NO(rs(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new Kr}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((a,o)=>a&&typeof o=="string",!0))throw new NO(rs(r),e.status,r.weak_password.reasons);throw new Ree(rs(r),e.status||500,n)}const ate=(e,t,r,n)=>{const i={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),i.body=JSON.stringify(n),Object.assign(Object.assign({},i),r))};async function ve(e,t,r,n){var i;const a=Object.assign({},n==null?void 0:n.headers);a[Dw]||(a[Dw]=x4["2024-01-01"].name),n!=null&&n.jwt&&(a.Authorization=`Bearer ${n.jwt}`);const o=(i=n==null?void 0:n.query)!==null&&i!==void 0?i:{};n!=null&&n.redirectTo&&(o.redirect_to=n.redirectTo);const s=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await ote(e,t,r+s,{headers:a,noResolveJson:n==null?void 0:n.noResolveJson},{},n==null?void 0:n.body);return n!=null&&n.xform?n==null?void 0:n.xform(l):{data:Object.assign({},l),error:null}}async function ote(e,t,r,n,i,a){const o=ate(t,n,i,a);let s;try{s=await e(r,Object.assign({},o))}catch(l){throw console.error(l),new Lw(rs(l),0)}if(s.ok||await DO(s),n!=null&&n.noResolveJson)return s;try{return await s.json()}catch(l){await DO(l)}}function Bn(e){var t;let r=null;cte(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=Vee(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function LO(e){const t=Bn(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Ya(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function ste(e){return{data:e,error:null}}function lte(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:i,verification_type:a}=e,o=rv(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),s={action_link:t,email_otp:r,hashed_token:n,redirect_to:i,verification_type:a},l=Object.assign({},o);return{data:{properties:s,user:l},error:null}}function BO(e){return e}function cte(e){return e.access_token&&e.refresh_token&&e.expires_in}const o0=["global","local","others"];class ute{constructor({url:t="",headers:r={},fetch:n}){this.url=t,this.headers=r,this.fetch=_4(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)}}async signOut(t,r=o0[0]){if(o0.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${o0.join(", ")}`);try{return await ve(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(pe(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await ve(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:Ya})}catch(n){if(pe(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=rv(t,["options"]),i=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(i.new_email=n==null?void 0:n.newEmail,delete i.newEmail),await ve(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:lte,redirectTo:r==null?void 0:r.redirectTo})}catch(r){if(pe(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await ve(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Ya})}catch(r){if(pe(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,i,a,o,s,l;try{const c={nextPage:null,lastPage:0,total:0},u=await ve(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(a=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&a!==void 0?a:""},xform:BO});if(u.error)throw u.error;const d=await u.json(),h=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(s=u.headers.get("link"))===null||s===void 0?void 0:s.split(","))!==null&&l!==void 0?l:[];return p.length>
7730&&(p.forEach(y=>{const m=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),g=JSON.parse(y.split(";")[1].split("=")[1]);c[`${g}Page`]=m}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(pe(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){fl(t);try{return await ve(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Ya})}catch(r){if(pe(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){fl(t);try{return await ve(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:Ya})}catch(n){if(pe(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){fl(t);try{return await ve(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:Ya})}catch(n){if(pe(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){fl(t.userId);try{const{data:r,error:n}=await ve(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:r,error:n}}catch(r){if(pe(r))return{data:null,error:r};throw r}}async _deleteFactor(t){fl(t.userId),fl(t.id);try{return{data:await ve(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(pe(r))return{data:null,error:r};throw r}}async _listOAuthClients(t){var r,n,i,a,o,s,l;try{const c={nextPage:null,lastPage:0,total:0},u=await ve(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t==null?void 0:t.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(a=(i=t==null?void 0:t.perPage)===null||i===void 0?void 0:i.toString())!==null&&a!==void 0?a:""},xform:BO});if(u.error)throw u.error;const d=await u.json(),h=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,p=(l=(s=u.headers.get("link"))===null||s===void 0?void 0:s.split(","))!==null&&l!==void 0?l:[];return p.length>0&&(p.forEach(y=>{const m=parseInt(y.split(";")[0].split("=")[1].substring(0,1)),g=JSON.parse(y.split(";")[1].split("=")[1]);c[`${g}Page`]=m}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(pe(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(t){try{return await ve(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(pe(r))return{data:null,error:r};throw r}}async _getOAuthClient(t){try{return await ve(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(pe(r))return{data:null,error:r};throw r}}async _updateOAuthClient(t,r){try{return await ve(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(pe(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(t){try{return await ve(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(pe(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(t){try{return await ve(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(pe(r))return{data:null,error:r};throw r}}async _listCustomProviders(t){try{const r={};return t!=null&&t.type&&(r.type=t.type),await ve(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:r,xform:n=>{var i;return{data:{providers:(i=n==null?void 0:n.providers)!==null&&i!==void 0?i:[]},error:null}}})}catch(r){if(pe(r))return{data:{providers:[]},error:r};throw r}}async _createCustomProvider(t){try{return await ve(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(pe(r))return{data:null,error:r};throw r}}async _getCustomProvider(t){try{return await ve(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(pe(r))return{data:null,error:r};throw r}}async _updateCustomProvider(t,r){try{return await ve(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(pe(n))return{data:null,error:n};throw n}}async _deleteCustomProvider(t){try{return await ve(this.fetch,"DELET
773E",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(pe(r))return{data:null,error:r};throw r}}}function FO(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}const hi={debug:!!(globalThis&&S4()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class k4 extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class UO extends k4{}async function dte(e,t,r){hi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;let i;t>0&&(i=setTimeout(()=>{n.abort(),hi.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t)),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal},async a=>{if(a){clearTimeout(i),hi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,a.name);try{return await r()}finally{hi.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,a.name)}}else{if(t===0)throw hi.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new UO(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(hi.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null," "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),clearTimeout(i),await r()}})}catch(a){if(t>0&&clearTimeout(i),(a==null?void 0:a.name)==="AbortError"&&t>0){if(n.signal.aborted)return hi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async o=>{if(o){hi.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,o.name);try{return await r()}finally{hi.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,o.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await r()}));throw hi.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new UO(`Lock "${e}" was released because another request stole it`)}throw a}}function fte(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function A4(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function hte(e){return parseInt(e,16)}function pte(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")}function mte(e){var t;const{chainId:r,domain:n,expirationTime:i,issuedAt:a=new Date,nonce:o,notBefore:s,requestId:l,resources:c,scheme:u,uri:d,version:h}=e;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(h!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${h}`);
773if(!((t=e.statement)===null||t===void 0)&&t.includes(` 774`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const p=A4(e.address),y=u?`${u}://${n}`:n,m=e.statement?`${e.statement} 775`:"",g=`${y} wants you to sign in with your Ethereum account: 776${p} 777 778${m}`;let b=`URI: ${d} 779Version: ${h} 780Chain ID: ${r}${o?` 781Nonce: ${o}`:""} 782Issued At: ${a.toISOString()}`;if(i&&(b+=` 783Expiration Time: ${i.toISOString()}`),s&&(b+=` 784Not Before: ${s.toISOString()}`),l&&(b+=` 785Request ID: ${l}`),c){let v=` 786Resources:`;for(const x of c){if(!x||typeof x!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${x}`);v+=` 787- ${x}`}b+=v}return`${g} 788${b}`}class Dt extends Error{constructor({message:t,code:r,cause:n,name:i}){var a;super(t,{cause:n}),this.__isWebAuthnError=!0,this.name=(a=i??(n instanceof Error?n.name:void 0))!==null&&a!==void 0?a:"Unknown Error",this.code=r}}class ay extends Dt{constructor(t,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:t}),this.name="WebAuthnUnknownError",this.originalError=r}}function yte({error:e,options:t}){var r,n,i;const{publicKey:a}=t;if(!a)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Dt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((r=a.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new Dt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((n=a.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new Dt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=a.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new Dt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Dt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Dt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return a.pubKeyCredParams.filter(s=>s.type==="public-key").length===0?new Dt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Dt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(T4(o)){if(a.rp.id!==o)return new Dt({message:`The RP ID "${a.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Dt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(a.user.id.byteLength<1||a.user.id.byteLength>64)return new Dt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Dt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Dt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function gte({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Dt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Dt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if(T4(n)){if(r.rpId!==n)return new Dt({message:`The RP ID "${r.rpId}
788" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Dt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Dt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Dt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class vte{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const bte=new vte;function xte(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:r,excludeCredentials:n}=e,i=rv(e,["challenge","user","excludeCredentials"]),a=lc(t).buffer,o=Object.assign(Object.assign({},r),{id:lc(r.id).buffer}),s=Object.assign(Object.assign({},i),{challenge:a,user:o});if(n&&n.length>0){s.excludeCredentials=new Array(n.length);for(let l=0;l<n.length;l++){const c=n[l];s.excludeCredentials[l]=Object.assign(Object.assign({},c),{id:lc(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return s}function wte(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:r}=e,n=rv(e,["challenge","allowCredentials"]),i=lc(t).buffer,a=Object.assign(Object.assign({},n),{challenge:i});if(r&&r.length>0){a.allowCredentials=new Array(r.length);for(let o=0;o<r.length;o++){const s=r[o];a.allowCredentials[o]=Object.assign(Object.assign({},s),{id:lc(s.id).buffer,type:s.type||"public-key",transports:s.transports})}}return a}function Ste(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e;return{id:e.id,rawId:e.id,response:{attestationObject:hs(new Uint8Array(e.response.attestationObject)),clientDataJSON:hs(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function _te(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e,n=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:hs(new Uint8Array(i.authenticatorData)),clientDataJSON:hs(new Uint8Array(i.clientDataJSON)),signature:hs(new Uint8Array(i.signature)),userHandle:i.userHandle?hs(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function T4(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function VO(){var e,t;return!!(nr()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function kte(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new ay("Browser returned unexpected credential type",t)}:{data:null,error:new ay("Empty credential response",t)}}catch(t){return{data:null,error:yte({error:t,options:e})}}}async function Ate(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new ay("Browser returned unexpected credential type",t)}:{data:null,error:new ay("Empty credential response",t)}}
788catch(t){return{data:null,error:gte({error:t,options:e})}}}const Tte={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},Ete={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function oy(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),r=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),n={};for(const i of e)if(i)for(const a in i){const o=i[a];if(o!==void 0)if(Array.isArray(o))n[a]=o;else if(r(o))n[a]=o;else if(t(o)){const s=n[a];t(s)?n[a]=oy(s,o):n[a]=oy(o)}else n[a]=o}return n}function jte(e,t){return oy(Tte,e,t||{})}function Ote(e,t){return oy(Ete,e,t||{})}class Pte{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:r,friendlyName:n,signal:i},a){var o;try{const{data:s,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:r});if(!s)return{data:null,error:l};const c=i??bte.createNewAbortSignal();if(s.webauthn.type==="create"){const{user:u}=s.webauthn.credential_options.publicKey;if(!u.name){const d=n;if(d)u.name=`${u.id}:${d}`;else{const p=(await this.client.getUser()).data.user,y=((o=p==null?void 0:p.user_metadata)===null||o===void 0?void 0:o.name)||(p==null?void 0:p.email)||(p==null?void 0:p.id)||"User";u.name=`${u.id}:${y}`}}u.displayName||(u.displayName=u.name)}switch(s.webauthn.type){case"create":{const u=jte(s.webauthn.credential_options.publicKey,a==null?void 0:a.create),{data:d,error:h}=await kte({publicKey:u,signal:c});return d?{data:{factorId:t,challengeId:s.id,webauthn:{type:s.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}case"request":{const u=Ote(s.webauthn.credential_options.publicKey,a==null?void 0:a.request),{data:d,error:h}=await Ate(Object.assign(Object.assign({},s.webauthn.credential_options),{publicKey:u,signal:c}));return d?{data:{factorId:t,challengeId:s.id,webauthn:{type:s.webauthn.type,credential_response:d}},error:null}:{data:null,error:h}}}}catch(s){return pe(s)?{data:null,error:s}:{data:null,error:new os("Unexpected error in challenge",s)}}}async _verify({challengeId:t,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:t,webauthn:n})}async _authenticate({factorId:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},a){if(!r)return{data:null,error:new kf("rpId is required for WebAuthn authentication")};try{if(!VO())return{data:null,error:new os("Browser does not support WebAuthn",null)};const{data:o,error:s}=await this.challenge({factorId:t,webauthn:{rpId:r,rpOrigins:n},signal:i},{request:a});if(!o)return{data:null,error:s};const{webauthn:l}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:l.type,rpId:r,rpOrigins:n,credential_response:l.credential_response}})}catch(o){return pe(o)?{data:null,error:o}:{data:null,error:new os("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},a){if(!r)return{data:null,error:new kf("rpId is required for WebAuthn registration")};try{if(!VO())return{data:null,error:new os("Browser does not support WebAuthn",null)};const{data:o,error:s}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(u=>{var d;return(d=u.data)===null||d===void 0?void 0:d.all.find(h=>h.factor_type==="webauthn"&&h.friendly_name===t&&h.status!=="unverified")}).then(u=>u?this.client.mfa.unenroll({factorId:u==null?void 0:u.id}):void 0),{data:null,error:s};const{data:l,error:c}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:i},{create:a});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:r,rpOrigins:n,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:c}}catch(o){return pe(o)?{data:null,error:o}:{data:null,error:new os("Unexpected error in register",o)}}}}fte();const Cte={url:jee,storageKey:Oee,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Pee,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1};async function zO(e,t,r){return await r()}const hl={};class Af{get jwks(){var t,r;return(r=(t=hl[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){hl[this.storageKey]=Object.assign(Object.assign({},hl[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=hl[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){hl[this.storageKey]=Object.assign(Object.assign({},hl[this.storageKey]),{cachedAt:t})}constructor(t){var r,n,i;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const a=Object.assign(Object.assign({},Cte),t);if(this.storageKey=a.storageKey,this.instanceID=(r=Af.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,Af.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!a.debug,typeof a.debug=="function"&&(this.logger=a.debug),this.instanceID>0&&nr()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=a.persistSession,this.autoRefreshToken=a.autoRefreshToken,this.admin=new ute({url:a.url,headers:a.headers,fetch:a.fetch}),this.url=a.url,this.headers=a.headers,this.fetch=_4(a.fetch),this.lock=a.lock||zO,this.detectSessionInUrl=a.detectSessionInUrl,this.flowType=a.flowType,this.hasCustomAuthorizationHeader=a.hasCustomAuthorizationHeader,this.throwOnError=a.throwOnError,this.lockAcquireTimeout=a.lockAcquireTimeout,a.lock?this.lock=a.lock:this.persistSession&&nr()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=dte:this.lock=zO,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new Pte(this)}
788,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(a.storage?this.storage=a.storage:S4()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=FO(this.memoryStorage)),a.userStorage&&(this.userStorage=a.userStorage)):(this.memoryStorage={},this.storage=FO(this.memoryStorage)),nr()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(s){this._debug("#broadcastChannel","error",s)}})}a.skipAutoInitialize||this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${b4}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let r={},n="none";if(nr()&&(r=Wee(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),nr()&&this.detectSessionInUrl&&n!=="none"){const{data:i,error:a}=await this._getSessionFromURL(r,n);if(a){if(this._debug("#_initialize()","error detecting session from URL",a),$ee(a)){const l=(t=a.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:a}}return{error:a}}const{session:o,redirectType:s}=i;return this._debug("#_initialize()","detected session in URL",o,"redirect type",s),await this._saveSession(o),setTimeout(async()=>{s==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return pe(r)?this._returnResult({error:r}):this._returnResult({error:new os("Unexpected error during initialization",r)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,i;try{const a=await ve(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.captchaToken}},xform:Bn}),{data:o,error:s}=a;if(s||!o)return this._returnResult({data:{user:null,session:null},error:s});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(a){if(pe(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signUp(t){var r,n,i;try{let a;if("email"in t){const{email:u,password:d,options:h}=t;let p=null,y=null;this.flowType==="pkce"&&([p,y]=await dl(this.storage,this.storageKey)),a=await ve(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:u,password:d,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:p,code_challenge_method:y},xform:Bn})}else if("phone"in t){const{phone:u,password:d,options:h}=t;a=await ve(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:d,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},channel:(i=h==null?void 0:h.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:Bn})}else throw new _p("You must provide either an email or phone number and a password");const{data:o,error:s}=a;if(s||!o)return await rr(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:s});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(a){if(await rr(this.storage,`${this.storageKey}-code-verifier`),pe(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithPassword(t){try{let r;if("email"in t){const{email:a,password:o,options:s}=t;r=await ve(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:a,password:o,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},xform:LO})}else if("phone"in t){const{phone:a,password:o,options:s}=t;r=await ve(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:a,password:o,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},xform:LO})}else throw new _p("You must provide either an email or phone number and a password");const{data:n,error:i}=r;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!n||!n.session||!n.user){const a=new ul;return this._returnResult({data:{user:null,session:null},error:a})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:i})}catch(r){if(pe(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(t){var r,n,i,a;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(a=t.o
788ptions)===null||a===void 0?void 0:a.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:r}=t;switch(r){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(t){var r,n,i,a,o,s,l,c,u,d,h;let p,y;if("message"in t)p=t.message,y=t.signature;else{const{chain:m,wallet:g,statement:b,options:v}=t;let x;if(nr())if(typeof g=="object")x=g;else{const j=window;if("ethereum"in j&&typeof j.ethereum=="object"&&"request"in j.ethereum&&typeof j.ethereum.request=="function")x=j.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof g!="object"||!(v!=null&&v.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");x=g}const S=new URL((r=v==null?void 0:v.url)!==null&&r!==void 0?r:window.location.href),w=await x.request({method:"eth_requestAccounts"}).then(j=>j).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!w||w.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const _=A4(w[0]);let A=(n=v==null?void 0:v.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!A){const j=await x.request({method:"eth_chainId"});A=hte(j)}const T={domain:S.host,address:_,statement:b,uri:S.href,version:"1",chainId:A,nonce:(i=v==null?void 0:v.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(o=(a=v==null?void 0:v.signInWithEthereum)===null||a===void 0?void 0:a.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(s=v==null?void 0:v.signInWithEthereum)===null||s===void 0?void 0:s.expirationTime,notBefore:(l=v==null?void 0:v.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(c=v==null?void 0:v.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(u=v==null?void 0:v.signInWithEthereum)===null||u===void 0?void 0:u.resources};p=mte(T),y=await x.request({method:"personal_sign",params:[pte(p),_]})}try{const{data:m,error:g}=await ve(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:y},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Bn});if(g)throw g;if(!m||!m.session||!m.user){const b=new ul;return this._returnResult({data:{user:null,session:null},error:b})}return m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),this._returnResult({data:Object.assign({},m),error:g})}catch(m){if(pe(m))return this._returnResult({data:{user:null,session:null},error:m});throw m}}async signInWithSolana(t){var r,n,i,a,o,s,l,c,u,d,h,p;let y,m;if("message"in t)y=t.message,m=t.signature;else{const{chain:g,wallet:b,statement:v,options:x}=t;let S;if(nr())if(typeof b=="object")S=b;else{const _=window;if("solana"in _&&typeof _.solana=="object"&&("signIn"in _.solana&&typeof _.solana.signIn=="function"||"signMessage"in _.solana&&typeof _.solana.signMessage=="function"))S=_.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof b!="object"||!(x!=null&&x.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=b}const w=new URL((r=x==null?void 0:x.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in S&&S.signIn){const _=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},x==null?void 0:x.signInWithSolana),{version:"1",domain:w.host,uri:w.href}),v?{statement:v}:null));let A;if(Array.isArray(_)&&_[0]&&typeof _[0]=="object")A=_[0];else if(_&&typeof _=="object"&&"signedMessage"in _&&"signature"in _)A=_;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in A&&"signature"in A&&(typeof A.signedMessage=="string"||A.signedMessage instanceof Uint8Array)&&A.signature instanceof Uint8Array)y=typeof A.signedMessage=="string"?A.signedMessage:new TextDecoder().decode(A.signedMessage),m=A.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in S)||typeof S.signMessage!="function"||!("publicKey"in S)||typeof S!="object"||!S.publicKey||!("toBase58"in S.publicKey)||typeof S.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");y=[`${w.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...v?["",v,""]:[""],"Version: 1",`URI: ${w.href}`,`Issued At: ${(i=(n=x==null?void 0:x.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((a=x==null?void 0:x.signInWithSolana)===null||a===void 0)&&a.notBefore?[`Not Before: ${x.signInWithSolana.notBefore}`]:[],...!((o=x==null?void 0:x.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${x.signInWithSolana.expirationTime}`]:[],...!((s=x==null?void 0:x.signInWithSolana)===null||s===void 0)&&s.chainId?[`Chain ID: ${x.signInWithSolana.chainId}`]:[],...!((l=x==null?void 0:x.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${x.signInWithSolana.nonce}`]:[],...!((c=x==null?void 0:x.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${x.signInWithSolana.requestId}`]:[],...!((d=(u=x==null?void 0:x.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||d===void 0)&&d.length?["Resources",...x.signInWithSolana.resources.map(A=>`- ${A}`)]:[]].join(` 789`);const _=await S.signMessage(new TextEncoder().encode(y),"utf8");if(!_||!(_ instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=_}}try{const{data:g,error:b}=await ve(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:y,signature:hs(m)}
789,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:Bn});if(b)throw b;if(!g||!g.session||!g.user){const v=new ul;return this._returnResult({data:{user:null,session:null},error:v})}return g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("SIGNED_IN",g.session)),this._returnResult({data:Object.assign({},g),error:b})}catch(g){if(pe(g))return this._returnResult({data:{user:null,session:null},error:g});throw g}}async _exchangeCodeForSession(t){const r=await Yo(this.storage,`${this.storageKey}-code-verifier`),[n,i]=(r??"").split("/");try{if(!n&&this.flowType==="pkce")throw new Mee;const{data:a,error:o}=await ve(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:Bn});if(await rr(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!a||!a.session||!a.user){const s=new ul;return this._returnResult({data:{user:null,session:null,redirectType:null},error:s})}return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),this._returnResult({data:Object.assign(Object.assign({},a),{redirectType:i??null}),error:o})}catch(a){if(await rr(this.storage,`${this.storageKey}-code-verifier`),pe(a))return this._returnResult({data:{user:null,session:null,redirectType:null},error:a});throw a}}async signInWithIdToken(t){try{const{options:r,provider:n,token:i,access_token:a,nonce:o}=t,s=await ve(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:i,access_token:a,nonce:o,gotrue_meta_security:{captcha_token:r==null?void 0:r.captchaToken}},xform:Bn}),{data:l,error:c}=s;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l||!l.session||!l.user){const u=new ul;return this._returnResult({data:{user:null,session:null},error:u})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:c})}catch(r){if(pe(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(t){var r,n,i,a,o;try{if("email"in t){const{email:s,options:l}=t;let c=null,u=null;this.flowType==="pkce"&&([c,u]=await dl(this.storage,this.storageKey));const{error:d}=await ve(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:s,data:(r=l==null?void 0:l.data)!==null&&r!==void 0?r:{},create_user:(n=l==null?void 0:l.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:d})}if("phone"in t){const{phone:s,options:l}=t,{data:c,error:u}=await ve(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:s,data:(i=l==null?void 0:l.data)!==null&&i!==void 0?i:{},create_user:(a=l==null?void 0:l.shouldCreateUser)!==null&&a!==void 0?a:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:u})}throw new _p("You must provide either an email or phone number.")}catch(s){if(await rr(this.storage,`${this.storageKey}-code-verifier`),pe(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async verifyOtp(t){var r,n;try{let i,a;"options"in t&&(i=(r=t.options)===null||r===void 0?void 0:r.redirectTo,a=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:o,error:s}=await ve(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:a}}),redirectTo:i,xform:Bn});if(s)throw s;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(pe(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var r,n,i,a,o;try{let s=null,l=null;this.flowType==="pkce"&&([s,l]=await dl(this.storage,this.storageKey));const c=await ve(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((i=t==null?void 0:t.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:s,code_challenge_method:l}),headers:this.headers,xform:ste});return!((a=c.data)===null||a===void 0)&&a.url&&nr()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(s){if(await rr(this.storage,`${this.storageKey}-code-verifier`),pe(s))return this._returnResult({data:null,error:s});throw s}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new Kr;const{error:i}=await ve(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(t){if(pe(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:i,options:a}=t,{error:o}=await ve(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},redirectTo:a==null?void 0:a.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:n,type:i,options:a}=t,{data:o,error:s}=await ve(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:s})}throw new _p("You must provide either an email or phone number and a type")}catch(r){if(pe(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async r=>r))}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await t(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await Yo(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this._isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not val
789id"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<n0:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const o=await Yo(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=a0()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=nte(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:a}=await this._callRefreshToken(t.refresh_token);return a?this._returnResult({data:{session:null},error:a}):this._returnResult({data:{session:i},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const r=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(t){try{return t?await ve(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Ya}):await this._useSession(async r=>{var n,i,a;const{data:o,error:s}=r;if(s)throw s;return!(!((n=o.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Kr}:await ve(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(a=(i=o.session)===null||i===void 0?void 0:i.access_token)!==null&&a!==void 0?a:void 0,xform:Ya})})}catch(r){if(pe(r))return Sp(r)&&(await this._removeSession(),await rr(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:i,error:a}=n;if(a)throw a;if(!i.session)throw new Kr;const o=i.session;let s=null,l=null;this.flowType==="pkce"&&t.email!=null&&([s,l]=await dl(this.storage,this.storageKey));const{data:c,error:u}=await ve(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r==null?void 0:r.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:s,code_challenge_method:l}),jwt:o.access_token,xform:Ya});if(u)throw u;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(n){if(await rr(this.storage,`${this.storageKey}-code-verifier`),pe(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Kr;const r=Date.now()/1e3;let n=r,i=!0,a=null;const{payload:o}=Ap(t.access_token);if(o.exp&&(n=o.exp,i=n<=r),i){const{data:s,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!s)return{data:{user:null,session:null},error:null};a=s}else{const{data:s,error:l}=await this._getUser(t.access_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});a={access_token:t.access_token,refresh_token:t.refresh_token,user:s.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)}return this._returnResult({data:{user:a.user,session:a},error:null})}catch(r){if(pe(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:o,error:s}=r;if(s)throw s;t=(n=o.session)!==null&&n!==void 0?n:void 0}if(!(t!=null&&t.refresh_token))throw new Kr;const{data:i,error:a}=await this._callRefreshToken(t.refresh_token);return a?this._returnResult({data:{user:null,session:null},error:a}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(pe(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(t,r){try{if(!nr())throw new kp("No browser detected.");
789if(t.error||t.error_description||t.error_code)throw new kp(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new CO("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new kp("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new CO("No code detected.");const{data:v,error:x}=await this._exchangeCodeForSession(t.code);if(x)throw x;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:v.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:i,access_token:a,refresh_token:o,expires_in:s,expires_at:l,token_type:c}=t;if(!a||!s||!o||!c)throw new kp("No session defined in URL");const u=Math.round(Date.now()/1e3),d=parseInt(s);let h=u+d;l&&(h=parseInt(l));const p=h-u;p*1e3<=Al&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${p}s, should have been closer to ${d}s`);const y=h-d;u-y>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",y,h,u):u-y<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",y,h,u);const{data:m,error:g}=await this._getUser(a);if(g)throw g;const b={provider_token:n,provider_refresh_token:i,access_token:a,expires_in:d,expires_at:h,refresh_token:o,token_type:c,user:m.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:b,redirectType:t.type},error:null})}catch(n){if(pe(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const r=await Yo(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:i,error:a}=r;if(a&&!Sp(a))return this._returnResult({error:a});const o=(n=i.session)===null||n===void 0?void 0:n.access_token;if(o){const{error:s}=await this.admin.signOut(o,t);if(s&&!(Iee(s)&&(s.status===404||s.status===401||s.status===403)||Sp(s)))return this._returnResult({error:s})}return t!=="others"&&(await this._removeSession(),await rr(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const r=zee(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,i;try{const{data:{session:a},error:o}=r;if(o)throw o;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",a)),this._debug("INITIAL_SESSION","callback id",t,"session",a)}catch(a){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",a),Sp(a)?console.warn(a):console.error(a)}})}async resetPasswordForEmail(t,r={}){let n=null,i=null;this.flowType==="pkce"&&([n,i]=await dl(this.storage,this.storageKey,!0));try{return await ve(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:i,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(a){if(await rr(this.storage,`${this.storageKey}-code-verifier`),pe(a))return this._returnResult({data:null,error:a});throw a}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(r){if(pe(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var r;try{const{data:n,error:i}=await this._useSession(async a=>{var o,s,l,c,u;const{data:d,error:h}=a;if(h)throw h;const p=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(s=t.options)===null||s===void 0?void 0:s.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await ve(this.fetch,"GET",p,{headers:this.headers,jwt:(u=(c=d.session)===null||c===void 0?void 0:c.access_token)!==null&&u!==void 0?u:void 0})});if(i)throw i;return nr()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n==null?void 0:n.url),this._returnResult({data:{provider:t.provider,url:n==null?void 0:n.url},error:null})}catch(n){if(pe(n))return this._returnResult({data:{provider:t.provider,url:null},error:n});throw n}}async linkIdentityIdToken(t){return await this._useSession(async r=>{var n;try{const{error:i,data:{session:a}}=r;if(i)throw i;const{options:o,provider:s,token:l,access_token:c,nonce:u}=t,d=await ve(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=a==null?void 0:a.access_token)!==null&&n!==void 0?n:void 0,body:{provider:s,id_token:l,access_token:c,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Bn}),{data:h,error:p}=d;return p?this._returnResult({data:{user:null,session:null},error:p}):!h||!h.session||!h.user?this._returnResult({data:{user:null,session:null},error:new ul}):(h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("USER_UPDATED",h.session)),this._returnResult({data:h,error:p}))}catch(i){if(await rr(this.storage,`${this.storageKey}-code-verifier`),pe(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,i;const{data:a,error:o}=r;if(o)throw o;
789return await ve(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(n=a.session)===null||n===void 0?void 0:n.access_token)!==null&&i!==void 0?i:void 0})})}catch(r){if(pe(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await Kee(async i=>(i>0&&await qee(200*Math.pow(2,i-1)),this._debug(r,"refreshing attempt",i),await ve(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Bn})),(i,a)=>{const o=200*Math.pow(2,i);return a&&i0(a)&&Date.now()+o-n<Al})}catch(n){if(this._debug(r,"error",n),pe(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",n),nr()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:t,url:n},error:null}}async _recoverAndRefresh(){var t,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const i=await Yo(this.storage,this.storageKey);if(i&&this.userStorage){let o=await Yo(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:i.user},await Tl(this.userStorage,this.storageKey+"-user",o)),i.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:a0()}else if(i&&!i.user&&!i.user){const o=await Yo(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(i.user=o.user,await rr(this.storage,this.storageKey+"-user"),await Tl(this.storage,this.storageKey,i)):i.user=a0()}if(this._debug(n,"session from storage",i),!this._isValidSession(i)){this._debug(n,"session is not valid"),i!==null&&await this._removeSession();return}const a=((r=i.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<n0;if(this._debug(n,`session has${a?"":" not"} expired with margin of ${n0}s`),a){if(this.autoRefreshToken&&i.refresh_token){const{error:o}=await this._callRefreshToken(i.refresh_token);o&&(console.error(o),i0(o)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:s}=await this._getUser(i.access_token);!s&&(o!=null&&o.user)?(i.user=o.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(n,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(n,"error",i),console.error(i);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new Kr;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new nv;const{data:a,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!a.session)throw new Kr;await this._saveSession(a.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",a.session);const s={data:a.session,error:null};return this.refreshingDeferred.resolve(s),s}catch(a){if(this._debug(i,"error",a),pe(a)){const o={data:null,error:a};return i0(a)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(o),o}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(a),a}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,r,n=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const a=[],o=Array.from(this.stateChangeEmitters.values()).map(async s=>{try{await s.callback(t,r)}catch(l){a.push(l)}});if(await Promise.all(o),a.length>0){for(let s=0;s<a.length;s+=1)console.error(a[s]);throw a[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await rr(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await Tl(this.userStorage,this.storageKey+"-user",{user:r.user});const i=Object.assign({},r);delete i.user;const a=MO(i);await Tl(this.storage,this.storageKey,a)}else{const i=MO(r);await Tl(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await rr(this.storage,this.storageKey),await rr(this.storage,this.storageKey+"-code-verifier"),await rr(this.storage,this.storageKey+"-user"),this.userStorage&&await rr(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&nr()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}
789catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Al);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const r=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=r,r&&typeof r=="object"&&typeof r.unref=="function"?r.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(r)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const r=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,r&&clearTimeout(r)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((n.expires_at*1e3-t)/Al);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${Al}ms, refresh threshold is ${Mw} ticks`),i<=Mw&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof k4)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!nr()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r,n){const i=[`provider=${encodeURIComponent(r)}`];if(n!=null&&n.redirectTo&&i.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n!=null&&n.scopes&&i.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[a,o]=await dl(this.storage,this.storageKey),s=new URLSearchParams({code_challenge:`${encodeURIComponent(a)}`,code_challenge_method:`${encodeURIComponent(o)}`});i.push(s.toString())}if(n!=null&&n.queryParams){const a=new URLSearchParams(n.queryParams);i.push(a.toString())}return n!=null&&n.skipBrowserRedirect&&i.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:i,error:a}=r;return a?this._returnResult({data:null,error:a}):await ve(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(pe(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,i;const{data:a,error:o}=r;if(o)return this._returnResult({data:null,error:o});const s=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:c}=await ve(this.fetch,"POST",`${this.url}/factors`,{body:s,headers:this.headers,jwt:(n=a==null?void 0:a.session)===null||n===void 0?void 0:n.access_token});return c?this._returnResult({data:null,error:c}):(t.factorType==="totp"&&l.type==="totp"&&(!((i=l==null?void 0:l.totp)===null||i===void 0)&&i.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(r){if(pe(r))return this._returnResult({data:null,error:r});throw r}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:i,error:a}=r;if(a)return this._returnResult({data:null,error:a});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?Ste(t.webauthn.credential_response):_te(t.webauthn.credential_response)})}:{code:t.code}),{data:s,error:l}=await ve(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+s.expires_in},s)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",s),this._returnResult({data:s,error:l}))})}catch(r){if(pe(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:i,error:a}=r;if(a)return this._returnResult({data:null,error:a});const o=await ve(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(n=i==null?void 0:i.session)===null||n===void 0?void 0:n.access_token});if(o.error)return o;const{data:s}=o;if(s.type!=="webauthn")return{data:s,error:null};switch(s.webauthn.type){case"create":return{data:Object.assign(Object.assign({},s),{webauthn:Object.assign(Object.assign({},s.webauthn),{credential_options:Object.assign(Object.assign({},s.webauthn.credential_options),{publicKey:xte(s.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},s),{webauthn:Object.assign(Object.assign({},s.webauthn),{credential_options:Object.assign(Object.assign({},s.webauthn.credential_options),{publicKey:wte(s.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(pe(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){var t;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const i={all:[],phone:[],totp:[],webauthn:[]};for(const a of(t=r==null?void 0:r.factors)!==null&&t!==void 0?t:[])i.all.push(a),a.status==="verified"&&i[a.factor_type].push(a);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(t){var r,n,i,a;if(t)try{const{payload:p}=Ap(t);let y=null;p.aal&&(y=p.aal);let m=y;const{data:{user:g},error:b}=await this.getUser(t);if(b)return this._returnResult({data:null,error:b});((n=(r=g==null?void 0:g.factors)===null||r===void 0?void 0:r.filter(S=>S.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(m="aal2");const x=p.amr||[];return{data:{currentLevel:y,nextLevel:m,currentAuthenticationMethods:x},error:null}}catch(p){if(pe(p))return this._returnResult({data:null,error:p});throw p}const{data:{session:o},error:s}
789=await this.getSession();if(s)return this._returnResult({data:null,error:s});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=Ap(o.access_token);let c=null;l.aal&&(c=l.aal);let u=c;((a=(i=o.user.factors)===null||i===void 0?void 0:i.filter(p=>p.status==="verified"))!==null&&a!==void 0?a:[]).length>0&&(u="aal2");const h=l.amr||[];return{data:{currentLevel:c,nextLevel:u,currentAuthenticationMethods:h},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;return i?this._returnResult({data:null,error:i}):n?await ve(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:n.access_token,xform:a=>({data:a,error:null})}):this._returnResult({data:null,error:new Kr})})}catch(r){if(pe(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:i},error:a}=n;if(a)return this._returnResult({data:null,error:a});if(!i)return this._returnResult({data:null,error:new Kr});const o=await ve(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:s=>({data:s,error:null})});return o.data&&o.data.redirect_url&&nr()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(pe(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:i},error:a}=n;if(a)return this._returnResult({data:null,error:a});if(!i)return this._returnResult({data:null,error:new Kr});const o=await ve(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:s=>({data:s,error:null})});return o.data&&o.data.redirect_url&&nr()&&!(r!=null&&r.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(n){if(pe(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;return n?this._returnResult({data:null,error:n}):r?await ve(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Kr})})}catch(t){if(pe(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;return i?this._returnResult({data:null,error:i}):n?(await ve(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Kr})})}catch(r){if(pe(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(s=>s.kid===t);if(n)return n;const i=Date.now();if(n=this.jwks.keys.find(s=>s.kid===t),n&&this.jwks_cached_at+Nee>i)return n;const{data:a,error:o}=await ve(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!a.keys||a.keys.length===0||(this.jwks=a,this.jwks_cached_at=i,n=a.keys.find(s=>s.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:p,error:y}
789=await this.getSession();if(y||!p.session)return this._returnResult({data:null,error:y});n=p.session.access_token}const{header:i,payload:a,signature:o,raw:{header:s,payload:l}}=Ap(n);r!=null&&r.allowExpired||ete(a.exp);const c=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,r!=null&&r.keys?{keys:r.keys}:r==null?void 0:r.jwks);if(!c){const{error:p}=await this.getUser(n);if(p)throw p;return{data:{claims:a,header:i,signature:o},error:null}}const u=tte(i.alg),d=await crypto.subtle.importKey("jwk",c,u,!0,["verify"]);if(!await crypto.subtle.verify(u,d,o,Uee(`${s}.${l}`)))throw new Bw("Invalid JWT signature");return{data:{claims:a,header:i,signature:o},error:null}}catch(n){if(pe(n))return this._returnResult({data:null,error:n});throw n}}}Af.nextInstanceID={};const Nte=Af,Rte="2.104.0";let fd="";typeof Deno<"u"?fd="deno":typeof document<"u"?fd="web":typeof navigator<"u"&&navigator.product==="ReactNative"?fd="react-native":fd="node";const Ite={"X-Client-Info":`supabase-js-${fd}/${Rte}`},$te={headers:Ite},Mte={schema:"public"},Dte={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},Lte={};function Tf(e){"@babel/helpers - typeof";return Tf=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},Tf(e)}function Bte(e,t){if(Tf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fte(e){var t=Bte(e,"string");return Tf(t)=="symbol"?t:t+""}function Ute(e,t,r){return(t=Fte(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function At(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WO(Object(r),!0).forEach(function(n){Ute(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const Vte=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),zte=()=>Headers,Wte=(e,t,r)=>{const n=Vte(r),i=zte();return async(a,o)=>{var s;const l=(s=await t())!==null&&s!==void 0?s:e;let c=new i(o==null?void 0:o.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),n(a,At(At({},o),{},{headers:c}))}};function Hte(e){return e.endsWith("/")?e:e+"/"}function qte(e,t){var r,n;const{db:i,auth:a,realtime:o,global:s}=e,{db:l,auth:c,realtime:u,global:d}=t,h={db:At(At({},l),i),auth:At(At({},c),a),realtime:At(At({},u),o),storage:{},global:At(At(At({},d),s),{},{headers:At(At({},(r=d==null?void 0:d.headers)!==null&&r!==void 0?r:{}),(n=s==null?void 0:s.headers)!==null&&n!==void 0?n:{})}),accessToken:async()=>""};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}function Kte(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(Hte(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var Yte=class extends Nte{constructor(e){super(e)}},Gte=class{constructor(e,t,r){var n,i;this.supabaseUrl=e,this.supabaseKey=t;const a=Kte(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",a),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",a),this.storageUrl=new URL("storage/v1",a),this.functionsUrl=new URL("functions/v1",a);const o=`sb-${a.hostname.split(".")[0]}-auth-token`,s={db:Mte,realtime:Lte,auth:At(At({},Dte),{},{storageKey:o}),global:$te},l=qte(r??{},s);if(this.storageKey=(n=l.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(i=l.global.headers)!==null&&i!==void 0?i:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(u,d)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(d)} is not possible`)}});else{var c;this.auth=this._initSupabaseAuthClient((c=l.auth)!==null&&c!==void 0?c:{},this.headers,l.global.fetch)}this.fetch=Wte(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(At({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(u=>this.realtime.setAuth(u)).catch(u=>console.warn("Failed to set initial Realtime auth token:",u)),this.rest=new yQ(new URL("rest/v1",a).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch,timeout:l.db.timeout,urlLengthLimit:l.db.urlLengthLimit}),this.storage=new Eee(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new oQ(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,r)}
789channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,r;if(e.accessToken)return await e.accessToken();const{data:n}=await e.auth.getSession();return(t=(r=n.session)===null||r===void 0?void 0:r.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:i,storageKey:a,flowType:o,lock:s,debug:l,throwOnError:c},u,d){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Yte({url:this.authUrl.href,headers:At(At({},h),u),storageKey:a,autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:i,flowType:o,lock:s,debug:l,throwOnError:c,fetch:d,hasCustomAuthorizationHeader:Object.keys(this.headers).some(p=>p.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new XQ(this.realtimeUrl.href,At(At({},e),{},{params:At(At({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const Xte=(e,t,r)=>new Gte(e,t,r);function Zte(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const r=t.match(/^v(\d+)\./);return r?parseInt(r[1],10)<=18:!1}Zte()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function Jte(){var g,b;if(typeof window>"u")return;const e=location.hostname,r=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(v=>e===v||e.endsWith("."+v)),n="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",i=r?((g=e.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+n+")(?:-dev)?(?=\\.|$)","i")))==null?void 0:g[1])??((b=e.match(new RegExp("^("+n+")(?=[.-])","i")))==null?void 0:b[1]):void 0,a=window.parent&&window.parent!==window;if(!i||!a)return localStorage;const o=e.endsWith(".lovableproject-dev.com")||e.endsWith(".gpt-eng.com"),s=o?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,l=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),c=l&&s.test(l)?[l]:o?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],u="lovable-preview-auth:result",d=2e3,h=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),p=(v,x,S)=>new Promise(w=>{const _=h();let A=!1,T;const j=O=>{A||(A=!0,clearTimeout(T),window.removeEventListener("message",P),w(O))},P=O=>{if(c.indexOf(O.origin)<0)return;const $=O.data;$&&$.type===u&&$.requestId===_&&j($)};window.addEventListener("message",P);const C={type:v,requestId:_,projectId:i,key:x};S!==void 0&&(C.value=S);for(const O of c)window.parent.postMessage(C,O);T=setTimeout(()=>j(null),d)});let y=!0;const m=250;return{getItem:async v=>{let x=await p("lovable-preview-auth:get",v);return!x&&y&&(await new Promise(S=>setTimeout(S,m)),x=await p("lovable-preview-auth:get",v)),y=!1,x&&x.ok&&typeof x.value=="string"?x.value===""?(localStorage.removeItem(v),null):x.value:localStorage.getItem(v)},setItem:(v,x)=>(localStorage.setItem(v,x),p("lovable-preview-auth:set",v,x).then(()=>{})),removeItem:v=>(localStorage.removeItem(v),p("lovable-preview-auth:remove",v).then(()=>{}))}}const Qte="https://pyzgawtwgmbpuzdmassg.supabase.co",ere="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InB5emdhd3R3Z21icHV6ZG1hc3NnIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzQ1NDIwNDQsImV4cCI6MjA5MDExODA0NH0.lnKS21dQ2lqqjXeXYW-KvxPyQ1HBNNWQ7O7KDkZnTC4",kr=Xte(Qte,ere,{auth:{storage:Jte(),persistSession:!0,autoRefreshToken:!0}}),HO="newsletter_popup_dismissed",tre=()=>{const[e,t]=k.useState(!1),[r,n]=k.useState(""),[i,a]=k.useState(""),[o,s]=k.useState(!1);k.useEffect(()=>{if(sessionStorage.getItem(HO))return;const u=()=>{window.scrollY/(document.body.scrollHeight-window.innerHeight)>.1&&(t(!0),window.removeEventListener("scroll",u))};return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]);const l=()=>{t(!1),sessionStorage.setItem(HO,"1")},c=async u=>{u.preventDefault();const d=r.trim(),h=i.trim();if(!d||!h)return;if(d.length>100||h.length>255){Ul.error("Please check your input.");return}s(!0);const{error:p}=await kr.from("newsletter_subscribers").insert({name:d,email:h});s(!1),p?p.code==="23505"?Ul.info("You're already subscribed!"):Ul.error("Something went wrong. Please try again."):(Ul.success("Welcome aboard!"),kr.functions.invoke("notify-team",{body:{name:d,email:h,type:"newsletter"}}
789).catch(console.error)),l()};return f.jsx(Od,{children:e&&f.jsxs(f.Fragment,{children:[f.jsx(q.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:l,className:"fixed inset-0 z-50 bg-foreground/40 backdrop-blur-sm"}),f.jsx(q.div,{initial:{opacity:0,scale:.9,y:40},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:20},transition:{type:"spring",damping:25,stiffness:300},className:"fixed inset-0 z-50 flex items-center justify-center px-4 pointer-events-none",children:f.jsxs("div",{className:"relative w-full max-w-md rounded-2xl bg-background border border-border shadow-2xl p-8 md:p-10 pointer-events-auto",children:[f.jsx("button",{onClick:l,className:"absolute top-4 right-4 text-muted-foreground hover:text-foreground transition-colors","aria-label":"Close",children:f.jsx(D_,{className:"w-5 h-5"})}),f.jsxs("div",{className:"text-center mb-6",children:[f.jsx("h3",{className:"font-display font-700 text-xl md:text-2xl tracking-tight text-foreground",children:"Stay in the loop"}),f.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed",children:"Get the latest on club management insights, product updates, and industry trends."})]}),f.jsxs("form",{onSubmit:c,className:"space-y-3",children:[f.jsx("input",{type:"text",placeholder:"Your name",value:r,onChange:u=>n(u.target.value),required:!0,maxLength:100,className:"w-full rounded-lg border border-border bg-secondary/50 px-4 py-3 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-accent/50 transition"}),f.jsx("input",{type:"email",placeholder:"Email address",value:i,onChange:u=>a(u.target.value),required:!0,maxLength:255,className:"w-full rounded-lg border border-border bg-secondary/50 px-4 py-3 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-accent/50 transition"}),f.jsx("button",{type:"submit",disabled:o,className:"w-full rounded-lg bg-primary px-4 py-3 text-sm font-semibold text-primary-foreground hover:opacity-90 transition-opacity disabled:opacity-50",children:o?"Subscribingâ¦":"Subscribe"})]}),f.jsx("p",{className:"mt-4 text-[11px] text-muted-foreground text-center",children:"No spam. Unsubscribe anytime."})]})})]})})},rre=()=>f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(tre,{}),f.jsx(Wr,{}),f.jsx(gJ,{}),f.jsx(jJ,{}),f.jsx(PJ,{}),f.jsx(NJ,{}),f.jsx(MJ,{}),f.jsx(BJ,{}),f.jsx(LJ,{}),f.jsx(VJ,{}),f.jsx(WJ,{}),f.jsx(qJ,{}),f.jsx(YJ,{}),f.jsx(tQ,{}),f.jsx(s4,{}),f.jsx(Hr,{})]});var Ch=e=>e.type==="checkbox",ps=e=>e instanceof Date,_r=e=>e==null;const E4=e=>typeof e=="object";var It=e=>!_r(e)&&!Array.isArray(e)&&E4(e)&&!ps(e),j4=e=>It(e)&&e.target?Ch(e.target)?e.target.checked:e.target.value:e,nre=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,O4=(e,t)=>e.has(nre(t)),ire=e=>{const t=e.constructor&&e.constructor.prototype;return It(t)&&t.hasOwnProperty("isPrototypeOf")},Dk=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Wt(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Dk&&(e instanceof Blob||n))&&(r||It(e)))if(t=r?[]:{},!r&&!ire(e))t=e;else for(const i in e)e.hasOwnProperty(i)&&(t[i]=Wt(e[i]));else return e;return t}var iv=e=>/^\w*$/.test(e),Ct=e=>e===void 0,Lk=e=>Array.isArray(e)?e.filter(Boolean):[],Bk=e=>Lk(e.replace(/["|']|\]/g,"").split(/\.|\[/)),oe=(e,t,r)=>{if(!t||!It(e))return r;const n=(iv(t)?[t]:Bk(t)).reduce((i,a)=>_r(i)?i:i[a],e);return Ct(n)||n===e?Ct(e[t])?r:e[t]:n},Jr=e=>typeof e=="boolean",Ge=(e,t,r)=>{let n=-1;const i=iv(t)?[t]:Bk(t),a=i.length,o=a-1;for(;++n<a;){const s=i[n];let l=r;if(n!==o){const c=e[s];
789l=It(c)||Array.isArray(c)?c:isNaN(+i[n+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=l,e=e[s]}};const sy={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Zn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Wi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Fk=E.createContext(null);Fk.displayName="HookFormContext";const av=()=>E.useContext(Fk),are=e=>{const{children:t,...r}=e;return E.createElement(Fk.Provider,{value:r},t)};var P4=(e,t,r,n=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==Zn.all&&(t._proxyFormState[o]=!n||Zn.all),r&&(r[o]=!0),e[o]}});return i};const Uk=typeof window<"u"?E.useLayoutEffect:E.useEffect;function ore(e){const t=av(),{control:r=t.control,disabled:n,name:i,exact:a}=e||{},[o,s]=E.useState(r._formState),l=E.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Uk(()=>r._subscribe({name:i,formState:l.current,exact:a,callback:c=>{!n&&s({...r._formState,...c})}}),[i,n,a]),E.useEffect(()=>{l.current.isValid&&r._setValid(!0)},[r]),E.useMemo(()=>P4(o,r,l.current,!1),[o,r])}var ki=e=>typeof e=="string",C4=(e,t,r,n,i)=>ki(e)?(n&&t.watch.add(e),oe(r,e,i)):Array.isArray(e)?e.map(a=>(n&&t.watch.add(a),oe(r,a))):(n&&(t.watchAll=!0),r),Fw=e=>_r(e)||!E4(e);function na(e,t,r=new WeakSet){if(Fw(e)||Fw(t))return e===t;if(ps(e)&&ps(t))return e.getTime()===t.getTime();const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const a of n){const o=e[a];if(!i.includes(a))return!1;if(a!=="ref"){const s=t[a];if(ps(o)&&ps(s)||It(o)&&It(s)||Array.isArray(o)&&Array.isArray(s)?!na(o,s,r):o!==s)return!1}}return!0}function sre(e){const t=av(),{control:r=t.control,name:n,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},l=E.useRef(i),c=E.useRef(s),u=E.useRef(void 0);c.current=s;const d=E.useMemo(()=>r._getWatch(n,l.current),[r,n]),[h,p]=E.useState(c.current?c.current(d):d);return Uk(()=>r._subscribe({name:n,formState:{values:!0},exact:o,callback:y=>{if(!a){const m=C4(n,r._names,y.values||r._formValues,!1,l.current);if(c.current){const g=c.current(m);na(g,u.current)||(p(g),u.current=g)}else p(m)}}}),[r,a,n,o]),E.useEffect(()=>r._removeUnmounted()),h}function lre(e){const t=av(),{name:r,disabled:n,control:i=t.control,shouldUnregister:a,defaultValue:o}=e,s=O4(i._names.array,r),l=E.useMemo(()=>oe(i._formValues,r,oe(i._defaultValues,r,o)),[i,r,o]),c=sre({control:i,name:r,defaultValue:l,exact:!0}),u=ore({control:i,name:r,exact:!0}),d=E.useRef(e),h=E.useRef(i.register(r,{...e.rules,value:c,...Jr(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;const p=E.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!oe(u.errors,r)},isDirty:{enumerable:!0,get:()=>!!oe(u.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!oe(u.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!oe(u.validatingFields,r)},error:{enumerable:!0,get:()=>oe(u.errors,r)}}),[u,r]),y=E.useCallback(v=>h.current.onChange({target:{value:j4(v),name:r},type:sy.CHANGE}),[r]),m=E.useCallback(()=>h.current.onBlur({target:{value:oe(i._formValues,r),name:r},type:sy.BLUR}),[r,i._formValues]),g=E.useCallback(v=>{const x=oe(i._fields,r);x&&v&&(x._f.ref={focus:()=>v.focus&&v.focus(),select:()=>v.select&&v.select(),setCustomValidity:S=>v.setCustomValidity(S),reportValidity:()=>v.reportValidity()})},[i._fields,r]),b=E.useMemo(()=>({name:r,value:c,...Jr(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:y,onBlur:m,ref:g}),[r,n,u.disabled,y,m,g,c]);return E.useEffect(()=>{const v=i._options.shouldUnregister||a;i.register(r,{...d.current.rules,...Jr(d.current.disabled)?{disabled:d.current.disabled}:{}});const x=(S,w)=>{const _=oe(i._fields,S);_&&_._f&&(_._f.mount=w)};if(x(r,!0),v){const S=Wt(oe(i._options.defaultValues,r));Ge(i._defaultValues,r,S),Ct(oe(i._formValues,r))&&Ge(i._formValues,r,S)}return!s&&i.register(r),()=>{(s?v&&!i._state.action:v)?i.unregister(r):x(r,!1)}},[r,i,s,a]),E.useEffect(()=>{i._setDisabledField({disabled:n,name:r})},[n,r,i]),E.useMemo(()=>({field:b,formState:u,fieldState:p}),[b,u,p])}const cre=e=>e.render(lre(e));var N4=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},Id=e=>Array.isArray(e)?e:[e],qO=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},Mr=e=>It(e)&&!Object.keys(e).length,Vk=e=>e.type==="file",Jn=e=>typeof e=="function",ly=e=>{if(!Dk)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},R4=e=>e.type==="select-multiple",zk=e=>e.type==="radio",ure=e=>zk(e)||Ch(e),s0=e=>ly(e)&&e.isConnected;function dre(e,t){const r=t.slice(0,-1).length;let n=0;for(;n<r;)e=Ct(e)?n++:e[t[n++]];return e}function fre(e){for(const t in e)if(e.hasOwnProperty(t)&&!Ct(e[t]))return!1;return!0}function $t(e,t){const r=Array.isArray(t)?t:iv(t)?[t]:Bk(t),n=r.length===1?e:dre(e,r),i=r.length-1,a=r[i];return n&&delete n[a],i!==0&&(It(n)&&Mr(n)||Array.isArray(n)&&fre(n))&&$t(e,r.slice(0,-1)),e}var I4=e=>{for(const t in e)if(Jn(e[t]))return!0;return!1};function cy(e,t={}){const r=Array.isArray(e);if(It(e)||r)for(const n in e)Array.isArray(e[n])||It(e[n])&&!I4(e[n])?(t[n]=Array.isArray(e[n])?[]:{},cy(e[n],t[n])):_r(e[n])||(t[n]=!0);return t}function $4(e,t,r){const n=Array.isArray(e);if(It(e)||n)for(const i in e)Array.isArray(e[i])||It(e[i])&&!I4(e[i])?Ct(t)||Fw(r[i])?r[i]=Array.isArray(e[i])?cy(e[i],[]):{...cy(e[i])}:$4(e[i],_r(t)?{}:t[i],r[i]):r[i]=!na(e[i],t[i]);return r}var Ku=(e,t)=>$4(e,t,cy(t));const KO={value:!1,isValid:!1},YO={value:!0,isValid:!0};var M4=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ct(e[0].attributes.value)?Ct(e[0].value)||e[0].value===""?YO:{value:e[0].value,isValid:!0}:YO:KO}return KO},D4=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>Ct(e)?e:t?e===""?NaN:e&&+e:r&&ki(e)?new Date(e):n?n(e):e;const GO={isValid:!1,value:null};var L4=e=>Array.isArray(e)?e.reduce((t,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:t,GO):GO;function XO(e){const t=e.ref;return Vk(t)?t.files:zk(t)?L4(e.refs).value:R4(t)?[...t.selectedOptions].map(({value:r})=>r):Ch(t)?M4(e.refs).value:D4(Ct(t.value)?e.ref.value:t.value,e)}var hre=(e,t,r,n)=>{const i={};for(const a of e){const o=oe(t,a);o&&Ge(i,a,o._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},uy=e=>e instanceof RegExp,Yu=e=>Ct(e)?e:uy(e)?e.source:It(e)?uy(e.value)?e.value.source:e.value:e,ZO=e=>({isOnSubmit:!e||e===Zn.onSubmit,isOnBlur:e===Zn.onBlur,isOnChange:e===Zn.onChange,isOnAll:e===Zn.all,isOnTouch:e===Zn.onTouched});const JO="AsyncFunction";var pre=e=>!!e&&!!e.validate&&!!(Jn(e.validate)&&e.validate.constructor.name===JO||It(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===JO)),mre=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),QO=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(n=>e.startsWith(n)&&/^\.\w+/.test(e.slice(n.length))));const $d=(e,t,r,n)=>{for(const i of r||Object.keys(e)){const a=oe(e,i);if(a){const{_f:o,...s}=a;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],i)&&!n)return!0;
vendor: 4,112 bytes, line 789
789if(o.ref&&t(o.ref,o.name)&&!n)return!0;if($d(s,t))break}else if(It(s)&&$d(s,t))break}}};function eP(e,t,r){const n=oe(e,r);if(n||iv(r))return{error:n,name:r};const i=r.split(".");for(;i.length;){const a=i.join("."),o=oe(t,a),s=oe(e,a);if(o&&!Array.isArray(o)&&r!==a)return{name:r};if(s&&s.type)return{name:a,error:s};if(s&&s.root&&s.root.type)return{name:`${a}.root`,error:s.root};i.pop()}return{name:r}}var yre=(e,t,r,n)=>{r(e);const{name:i,...a}=e;return Mr(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!n||Zn.all))},gre=(e,t,r)=>!e||!t||e===t||Id(e).some(n=>n&&(r?n===t:n.startsWith(t)||t.startsWith(n))),vre=(e,t,r,n,i)=>i.isOnAll?!1:!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?n.isOnChange:i.isOnChange)?e:!0,bre=(e,t)=>!Lk(oe(e,t)).length&&$t(e,t),xre=(e,t,r)=>{const n=Id(oe(e,r));return Ge(n,"root",t[r]),Ge(e,r,n),e},hm=e=>ki(e);function tP(e,t,r="validate"){if(hm(e)||Array.isArray(e)&&e.every(hm)||Jr(e)&&!e)return{type:r,message:hm(e)?e:"",ref:t}}var pl=e=>It(e)&&!uy(e)?e:{value:e,message:""},rP=async(e,t,r,n,i,a)=>{const{ref:o,refs:s,required:l,maxLength:c,minLength:u,min:d,max:h,pattern:p,validate:y,name:m,valueAsNumber:g,mount:b}=e._f,v=oe(r,m);if(!b||t.has(m))return{};const x=s?s[0]:o,S=O=>{i&&x.reportValidity&&(x.setCustomValidity(Jr(O)?"":O||""),x.reportValidity())},w={},_=zk(o),A=Ch(o),T=_||A,j=(g||Vk(o))&&Ct(o.value)&&Ct(v)||ly(o)&&o.value===""||v===""||Array.isArray(v)&&!v.length,P=N4.bind(null,m,n,w),C=(O,$,N,L=Wi.maxLength,D=Wi.minLength)=>{const B=O?$:N;w[m]={type:O?L:D,message:B,ref:o,...P(O?L:D,B)}};if(a?!Array.isArray(v)||!v.length:l&&(!T&&(j||_r(v))||Jr(v)&&!v||A&&!M4(s).isValid||_&&!L4(s).isValid)){const{value:O,message:$}=hm(l)?{value:!!l,message:l}:pl(l);if(O&&(w[m]={type:Wi.required,message:$,ref:x,...P(Wi.required,$)},!n))return S($),w}if(!j&&(!_r(d)||!_r(h))){let O,$;const N=pl(h),L=pl(d);if(!_r(v)&&!isNaN(v)){const D=o.valueAsNumber||v&&+v;_r(N.value)||(O=D>N.value),_r(L.value)||($=D<L.value)}else{const D=o.valueAsDate||new Date(v),B=U=>new Date(new Date().toDateString()+" "+U),R=o.type=="time",M=o.type=="week";ki(N.value)&&v&&(O=R?B(v)>B(N.value):M?v>N.value:D>new Date(N.value)),ki(L.value)&&v&&($=R?B(v)<B(L.value):M?v<L.value:D<new Date(L.value))}if((O||$)&&(C(!!O,N.message,L.message,Wi.max,Wi.min),!n))return S(w[m].message),w}if((c||u)&&!j&&(ki(v)||a&&Array.isArray(v))){const O=pl(c),$=pl(u),N=!_r(O.value)&&v.length>+O.value,L=!_r($.value)&&v.length<+$.value;if((N||L)&&(C(N,O.message,$.message),!n))return S(w[m].message),w}if(p&&!j&&ki(v)){const{value:O,message:$}=pl(p);if(uy(O)&&!v.match(O)&&(w[m]={type:Wi.pattern,message:$,ref:o,...P(Wi.pattern,$)},!n))return S($),w}if(y){if(Jn(y)){const O=await y(v,r),$=tP(O,x);if($&&(w[m]={...$,...P(Wi.validate,$.message)},!n))return S($.message),w}else if(It(y)){let O={};for(const $ in y){if(!Mr(O)&&!n)break;const N=tP(await y[$](v,r),x,$);N&&(O={...N,...P($,N.message)},S(N.message),n&&(w[m]=O))}if(!Mr(O)&&(w[m]={ref:x,...O},!n))return w}}return S(!0),w};const wre={mode:Zn.onSubmit,reValidateMode:Zn.onChange,shouldFocusError:!0};function Sre(e={}){let t={...wre,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:Jn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},n={},i=It(t.defaultValues)||It(t.values)?Wt(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:Wt(i),o={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let d={...u};const h={array:qO(),state:qO()},p=t.criteriaMode===Zn.all,y=I=>F=>{clearTimeout(c),c=setTimeout(I,F)},m=async I=>{if(!t.disabled&&(u.isValid||d.isValid||I)){const F=t.resolver?Mr((await A()).errors):await j(n,!0);F!==r.isValid&&h.state.next({isValid:F})}},g=(I,F)=>{!t.disabled&&(u.isValidating||u.validatingFields||d.isValidating||d.validatingFields)&&((I||Array.from(s.mount)).forEac
vendor: 4,432 bytes, line 789
789h(z=>{z&&(F?Ge(r.validatingFields,z,F):$t(r.validatingFields,z))}),h.state.next({validatingFields:r.validatingFields,isValidating:!Mr(r.validatingFields)}))},b=(I,F=[],z,re,ne=!0,Q=!0)=>{if(re&&z&&!t.disabled){if(o.action=!0,Q&&Array.isArray(oe(n,I))){const ue=z(oe(n,I),re.argA,re.argB);ne&&Ge(n,I,ue)}if(Q&&Array.isArray(oe(r.errors,I))){const ue=z(oe(r.errors,I),re.argA,re.argB);ne&&Ge(r.errors,I,ue),bre(r.errors,I)}if((u.touchedFields||d.touchedFields)&&Q&&Array.isArray(oe(r.touchedFields,I))){const ue=z(oe(r.touchedFields,I),re.argA,re.argB);ne&&Ge(r.touchedFields,I,ue)}(u.dirtyFields||d.dirtyFields)&&(r.dirtyFields=Ku(i,a)),h.state.next({name:I,isDirty:C(I,F),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ge(a,I,F)},v=(I,F)=>{Ge(r.errors,I,F),h.state.next({errors:r.errors})},x=I=>{r.errors=I,h.state.next({errors:r.errors,isValid:!1})},S=(I,F,z,re)=>{const ne=oe(n,I);if(ne){const Q=oe(a,I,Ct(z)?oe(i,I):z);Ct(Q)||re&&re.defaultChecked||F?Ge(a,I,F?Q:XO(ne._f)):N(I,Q),o.mount&&m()}},w=(I,F,z,re,ne)=>{let Q=!1,ue=!1;const De={name:I};if(!t.disabled){if(!z||re){(u.isDirty||d.isDirty)&&(ue=r.isDirty,r.isDirty=De.isDirty=C(),Q=ue!==De.isDirty);const Qe=na(oe(i,I),F);ue=!!oe(r.dirtyFields,I),Qe?$t(r.dirtyFields,I):Ge(r.dirtyFields,I,!0),De.dirtyFields=r.dirtyFields,Q=Q||(u.dirtyFields||d.dirtyFields)&&ue!==!Qe}if(z){const Qe=oe(r.touchedFields,I);Qe||(Ge(r.touchedFields,I,z),De.touchedFields=r.touchedFields,Q=Q||(u.touchedFields||d.touchedFields)&&Qe!==z)}Q&&ne&&h.state.next(De)}return Q?De:{}},_=(I,F,z,re)=>{const ne=oe(r.errors,I),Q=(u.isValid||d.isValid)&&Jr(F)&&r.isValid!==F;if(t.delayError&&z?(l=y(()=>v(I,z)),l(t.delayError)):(clearTimeout(c),l=null,z?Ge(r.errors,I,z):$t(r.errors,I)),(z?!na(ne,z):ne)||!Mr(re)||Q){const ue={...re,...Q&&Jr(F)?{isValid:F}:{},errors:r.errors,name:I};r={...r,...ue},h.state.next(ue)}},A=async I=>{g(I,!0);const F=await t.resolver(a,t.context,hre(I||s.mount,n,t.criteriaMode,t.shouldUseNativeValidation));return g(I),F},T=async I=>{const{errors:F}=await A(I);if(I)for(const z of I){const re=oe(F,z);re?Ge(r.errors,z,re):$t(r.errors,z)}else r.errors=F;return F},j=async(I,F,z={valid:!0})=>{for(const re in I){const ne=I[re];if(ne){const{_f:Q,...ue}=ne;if(Q){const De=s.array.has(Q.name),Qe=ne._f&&pre(ne._f);Qe&&u.validatingFields&&g([re],!0);const Ir=await rP(ne,s.disabled,a,p,t.shouldUseNativeValidation&&!F,De);if(Qe&&u.validatingFields&&g([re]),Ir[Q.name]&&(z.valid=!1,F))break;!F&&(oe(Ir,Q.name)?De?xre(r.errors,Ir,Q.name):Ge(r.errors,Q.name,Ir[Q.name]):$t(r.errors,Q.name))}!Mr(ue)&&await j(ue,F,z)}}return z.valid},P=()=>{for(const I of s.unMount){const F=oe(n,I);F&&(F._f.refs?F._f.refs.every(z=>!s0(z)):!s0(F._f.ref))&&te(I)}s.unMount=new Set},C=(I,F)=>!t.disabled&&(I&&F&&Ge(a,I,F),!na(U(),i)),O=(I,F,z)=>C4(I,s,{...o.mount?a:Ct(F)?i:ki(I)?{[I]:F}:F},z,F),$=I=>Lk(oe(o.mount?a:i,I,t.shouldUnregister?oe(i,I,[]):[])),N=(I,F,z={})=>{const re=oe(n,I);let ne=F;if(re){const Q=re._f;Q&&(!Q.disabled&&Ge(a,I,D4(F,Q)),ne=ly(Q.ref)&&_r(F)?"":F,R4(Q.ref)?[...Q.ref.options].forEach(ue=>ue.selected=ne.includes(ue.value)):Q.refs?Ch(Q.ref)?Q.refs.forEach(ue=>{(!ue.defaultChecked||!ue.disabled)&&(Array.isArray(ne)?ue.checked=!!ne.find(De=>De===ue.value):ue.checked=ne===ue.value||!!ne)}):Q.refs.forEach(ue=>ue.checked=ue.value===ne):Vk(Q.ref)?Q.ref.value="":(Q.ref.value=ne,Q.ref.type||h.state.next({name:I,values:Wt(a)})))}(z.shouldDirty||z.shouldTouch)&&w(I,ne,z.shouldTouch,z.shouldDirty,!0),z.shouldValidate&&M(I)},L=(I,F,z)=>{for(const re in F){if(!F.hasOwnProperty(re))return;const ne=F[re],Q=I+"."+re,ue=oe(n,Q);(s.array.has(I)||It(ne)||ue&&!ue._f)&&!ps(ne)?L(Q,ne,z):N(Q,ne,z)}},D=(I,F,z={})=>{const re=oe(n,I),ne=s.array.has(I),Q=Wt(F);Ge(a,I,Q),ne?(h.array.next({name:I,values:Wt(a)}),(u.isDirty||u.dirtyFields||d.isDirty||d.dirtyFields)&&z.shouldDirty&&h.state.next({name:I,dirtyFields:Ku(i,a),isDirty:C(I,Q)})):re&&!re._f&&!_r(Q)?L(I,Q,z):N(I,Q,z),QO(I,s)&&h.state.next({...r,name:I}),h.state.next({name:o.mount?I:void 0,values:Wt(a)})},B=async I=>{o.mount=!0;const F=I.target;let z=F.name,re=!0;const ne=oe(n,z),Q=Qe=>{re=Number.isNaN(Qe)||ps(Qe)&&isNaN(Qe.getTime())||na(Qe,oe(a,z,Qe))},ue=ZO(t.mode),De=ZO(t.reValidateMode);if(ne){let Qe,Ir;const Ui=F.type?XO(ne._f):j4(I),ui=I.type===sy.BLUR||I.type===sy.FOCUS_OUT,Uh=!mre(ne._f)&&!t.resolver&&!oe(r.errors,z)&&!ne._f.deps||vre(ui,oe(r.touchedFields,z),r.isSubmitted,De,ue),Wo=QO(z,s,ui);
vendor: 6,099 bytes, line 789
789Ge(a,z,Ui),ui?(ne._f.onBlur&&ne._f.onBlur(I),l&&l(0)):ne._f.onChange&&ne._f.onChange(I);const di=w(z,Ui,ui),Vh=!Mr(di)||Wo;if(!ui&&h.state.next({name:z,type:I.type,values:Wt(a)}),Uh)return(u.isValid||d.isValid)&&(t.mode==="onBlur"?ui&&m():ui||m()),Vh&&h.state.next({name:z,...Wo?{}:di});if(!ui&&Wo&&h.state.next({...r}),t.resolver){const{errors:Vi}=await A([z]);if(Q(Ui),re){const nb=eP(r.errors,n,z),zh=eP(Vi,n,nb.name||z);Qe=zh.error,z=zh.name,Ir=Mr(Vi)}}else g([z],!0),Qe=(await rP(ne,s.disabled,a,p,t.shouldUseNativeValidation))[z],g([z]),Q(Ui),re&&(Qe?Ir=!1:(u.isValid||d.isValid)&&(Ir=await j(n,!0)));re&&(ne._f.deps&&M(ne._f.deps),_(z,Ir,Qe,di))}},R=(I,F)=>{if(oe(r.errors,F)&&I.focus)return I.focus(),1},M=async(I,F={})=>{let z,re;const ne=Id(I);if(t.resolver){const Q=await T(Ct(I)?I:ne);z=Mr(Q),re=I?!ne.some(ue=>oe(Q,ue)):z}else I?(re=(await Promise.all(ne.map(async Q=>{const ue=oe(n,Q);return await j(ue&&ue._f?{[Q]:ue}:ue)}))).every(Boolean),!(!re&&!r.isValid)&&m()):re=z=await j(n);return h.state.next({...!ki(I)||(u.isValid||d.isValid)&&z!==r.isValid?{}:{name:I},...t.resolver||!I?{isValid:z}:{},errors:r.errors}),F.shouldFocus&&!re&&$d(n,R,I?ne:s.mount),re},U=I=>{const F={...o.mount?a:i};return Ct(I)?F:ki(I)?oe(F,I):I.map(z=>oe(F,z))},Y=(I,F)=>({invalid:!!oe((F||r).errors,I),isDirty:!!oe((F||r).dirtyFields,I),error:oe((F||r).errors,I),isValidating:!!oe(r.validatingFields,I),isTouched:!!oe((F||r).touchedFields,I)}),W=I=>{I&&Id(I).forEach(F=>$t(r.errors,F)),h.state.next({errors:I?r.errors:{}})},X=(I,F,z)=>{const re=(oe(n,I,{_f:{}})._f||{}).ref,ne=oe(r.errors,I)||{},{ref:Q,message:ue,type:De,...Qe}=ne;Ge(r.errors,I,{...Qe,...F,ref:re}),h.state.next({name:I,errors:r.errors,isValid:!1}),z&&z.shouldFocus&&re&&re.focus&&re.focus()},le=(I,F)=>Jn(I)?h.state.subscribe({next:z=>"values"in z&&I(O(void 0,F),z)}):O(I,F,!0),we=I=>h.state.subscribe({next:F=>{gre(I.name,F.name,I.exact)&&yre(F,I.formState||u,mt,I.reRenderRoot)&&I.callback({values:{...a},...r,...F,defaultValues:i})}}).unsubscribe,Re=I=>(o.mount=!0,d={...d,...I.formState},we({...I,formState:d})),te=(I,F={})=>{for(const z of I?Id(I):s.mount)s.mount.delete(z),s.array.delete(z),F.keepValue||($t(n,z),$t(a,z)),!F.keepError&&$t(r.errors,z),!F.keepDirty&&$t(r.dirtyFields,z),!F.keepTouched&&$t(r.touchedFields,z),!F.keepIsValidating&&$t(r.validatingFields,z),!t.shouldUnregister&&!F.keepDefaultValue&&$t(i,z);h.state.next({values:Wt(a)}),h.state.next({...r,...F.keepDirty?{isDirty:C()}:{}}),!F.keepIsValid&&m()},ke=({disabled:I,name:F})=>{(Jr(I)&&o.mount||I||s.disabled.has(F))&&(I?s.disabled.add(F):s.disabled.delete(F))},G=(I,F={})=>{let z=oe(n,I);const re=Jr(F.disabled)||Jr(t.disabled);return Ge(n,I,{...z||{},_f:{...z&&z._f?z._f:{ref:{name:I}},name:I,mount:!0,...F}}),s.mount.add(I),z?ke({disabled:Jr(F.disabled)?F.disabled:t.disabled,name:I}):S(I,!0,F.value),{...re?{disabled:F.disabled||t.disabled}:{},...t.progressive?{required:!!F.required,min:Yu(F.min),max:Yu(F.max),minLength:Yu(F.minLength),maxLength:Yu(F.maxLength),pattern:Yu(F.pattern)}:{},name:I,onChange:B,onBlur:B,ref:ne=>{if(ne){G(I,F),z=oe(n,I);const Q=Ct(ne.value)&&ne.querySelectorAll&&ne.querySelectorAll("input,select,textarea")[0]||ne,ue=ure(Q),De=z._f.refs||[];if(ue?De.find(Qe=>Qe===Q):Q===z._f.ref)return;Ge(n,I,{_f:{...z._f,...ue?{refs:[...De.filter(s0),Q,...Array.isArray(oe(i,I))?[{}]:[]],ref:{type:Q.type,name:I}}:{ref:Q}}}),S(I,!1,void 0,Q)}else z=oe(n,I,{}),z._f&&(z._f.mount=!1),(t.shouldUnregister||F.shouldUnregister)&&!(O4(s.array,I)&&o.action)&&s.unMount.add(I)}}},ie=()=>t.shouldFocusError&&$d(n,R,s.mount),ae=I=>{Jr(I)&&(h.state.next({disabled:I}),$d(n,(F,z)=>{const re=oe(n,z);re&&(F.disabled=re._f.disabled||I,Array.isArray(re._f.refs)&&re._f.refs.forEach(ne=>{ne.disabled=re._f.disabled||I}))},0,!1))},V=(I,F)=>async z=>{let re;z&&(z.preventDefault&&z.preventDefault(),z.persist&&z.persist());let ne=Wt(a);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:Q,values:ue}=await A();r.errors=Q,ne=Wt(ue)}else await j(n);if(s.disabled.size)for(const Q of s.disabled)$t(ne,Q);if($t(r.errors,"root"),Mr(r.errors)){h.state.next({errors:{}});try{await I(ne,z)}catch(Q){re=Q}}else F&&await F({...r.errors},z),ie(),setTimeout(ie);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Mr(r.errors)&&!re,submitCount:r.submitCount+1,errors:r.errors}),re)throw re},Ce=(I,F={})=>{oe(n,I)&&(Ct(F.defaultValue)?D(I,Wt(oe(i,I))):(D(I,F.defaultValue),Ge(i,I,Wt(F.defaultValue))),F.keepTouched||$t(r.touchedFields,I),F.keepDirty||($t(r.dirtyFields,I),r.isDirty=F.defaultValue?C(I,Wt(oe(i,I))):C()),F.keepError||($t(r.errors,I),u.isValid&&m()),h.state.next({...r}))},Se=(I,F={})=>{const z=I?Wt(I):i,re=Wt(z),ne=Mr(I),Q=ne?i:re;if(F.keepDefaultValues||(i=z),!F.keepValues){if(F.keepDirtyValues){const ue=new Set([...s.mount,...Object.keys(Ku(i,a))]);for(const De of Array.from(ue))oe(r.dirtyFields,De)?Ge(Q,De,oe(a,De)):D(De,oe(Q,De))}else{if(Dk&&Ct(I))for(const ue of s.mount){const De=oe(n,ue);if(De&&De._f){const Qe=Array.isArray(De._f.refs)?De._f.refs[0]:De._f.ref;if(ly(Qe)){const Ir=Qe.closest("form");if(Ir){Ir.reset();break}}}}if(F.keepFieldsRef)for(const ue of s.mount)D(ue,oe(Q,ue));else n={}}a=t.shouldUnregister?F.keepDefaultValues?Wt(i):{}:Wt(Q),h.array.next({values:{...Q}}),h.state.next({values:{...Q}})}s={mount:F.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!F.keepIsValid||!!F.keepDirtyValues,o.watch=!!t.shouldUnregister,h.state.next({submitCount:F.keepSubmitCount?r.submitCount:0,isDirty:ne?!1:F.keepDirty?r.isDirty:!!(F.keepDefaultValues&&!na(I,i)),isSubmitted:F.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ne?{}:F.keepDirtyValues?F.keepDefaultValues&&a?Ku(i,a):r.dirtyFields:F.keepDefaultValues&&I?Ku(i,I):F.keepDirty?r.dirtyFields:{},touchedFields:F.keepTouched?r.touchedFields:{},errors:F.keepErrors?r.errors:{},isSubmitSuccessful:F.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},We=(I,F)=>Se(Jn(I)?I(a):I,F),He=(I,F={})=>{const z=oe(n,I),re=z&&z._f;if(re){const ne=re.refs?re.refs[0]:re.ref;
789ne.focus&&(ne.focus(),F.shouldSelect&&Jn(ne.select)&&ne.select())}},mt=I=>{r={...r,...I}},ur={control:{register:G,unregister:te,getFieldState:Y,handleSubmit:V,setError:X,_subscribe:we,_runSchema:A,_focusError:ie,_getWatch:O,_getDirty:C,_setValid:m,_setFieldArray:b,_setDisabledField:ke,_setErrors:x,_getFieldArray:$,_reset:Se,_resetDefaultValues:()=>Jn(t.defaultValues)&&t.defaultValues().then(I=>{We(I,t.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:P,_disableForm:ae,_subjects:h,_proxyFormState:u,get _fields(){return n},get _formValues(){return a},get _state(){return o},set _state(I){o=I},get _defaultValues(){return i},get _names(){return s},set _names(I){s=I},get _formState(){return r},get _options(){return t},set _options(I){t={...t,...I}}},subscribe:Re,trigger:M,register:G,handleSubmit:V,watch:le,setValue:D,getValues:U,reset:We,resetField:Ce,clearErrors:W,unregister:te,setError:X,setFocus:He,getFieldState:Y};return{...ur,formControl:ur}}function _re(e={}){const t=E.useRef(void 0),r=E.useRef(void 0),[n,i]=E.useState({isDirty:!1,isValidating:!1,isLoading:Jn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Jn(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:n},e.defaultValues&&!Jn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:o,...s}=Sre(e);t.current={...s,formState:n}}const a=t.current.control;return a._options=e,Uk(()=>{const o=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(s=>({...s,isReady:!0})),a._formState.isReady=!0,o},[a]),E.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),E.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),E.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),E.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),E.useEffect(()=>{if(a._proxyFormState.isDirty){const o=a._getDirty();o!==n.isDirty&&a._subjects.state.next({isDirty:o})}},[a,n.isDirty]),E.useEffect(()=>{e.values&&!na(e.values,r.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),r.current=e.values,i(o=>({...o}))):a._resetDefaultValues()},[a,e.values]),E.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=P4(n,a),t.current}const nP=(e,t,r)=>{if(e&&"reportValidity"in e){const n=oe(r,t);e.setCustomValidity(n&&n.message||""),e.reportValidity()}},B4=(e,t)=>{for(const r in t.fields){const n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?nP(n.ref,r,e):n.refs&&n.refs.forEach(i=>nP(i,r,e))}},kre=(e,t)=>{t.shouldUseNativeValidation&&B4(e,t);const r={};for(const n in e){const i=oe(t.fields,n),a=Object.assign(e[n]||{},{ref:i&&i.ref});if(Are(t.names||Object.keys(e),n)){const o=Object.assign({},oe(r,n));Ge(o,"root",a),Ge(r,n,o)}else Ge(r,n,a)}return r},Are=(e,t)=>e.some(r=>r.startsWith(t+"."));var Tre=function(e,t){for(var r={};e.length;){var n=e[0],i=n.code,a=n.message,o=n.path.join(".");if(!r[o])if("unionErrors"in n){var s=n.unionErrors[0].errors[0];r[o]={message:s.message,type:s.code}}else r[o]={message:a,type:i};if("unionErrors"in n&&n.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var l=r[o].types,c=l&&l[n.code];r[o]=N4(o,t,r,i,c?[].concat(c,n.message):n.message)}e.shift()}return r},Ere=function(e,t,r){return r===void 0&&(r={}),function(n,i,a){try{return Promise.resolve(function(o,s){try{var l=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(c){return a.shouldUseNativeValidation&&B4({},a),{errors:{},values:r.raw?n:c}})}catch(c){return s(c)}return l&&l.then?l.then(void 0,s):l}(0,function(o){if(function(s){return Array.isArray(s==null?void 0:s.errors)}(o))return{values:{},errors:kre(Tre(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}}},Ve;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function r(i){throw new Error}e.assertNever=r,e.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),o={};for(const s of a)o[s]=i[s];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(const o of i)if(a(o))return o}
vendor: 5,526 bytes, line 789
789,e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function n(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=n,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(Ve||(Ve={}));var iP;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(iP||(iP={}));const me=Ve.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),za=e=>{switch(typeof e){case"undefined":return me.undefined;case"string":return me.string;case"number":return Number.isNaN(e)?me.nan:me.number;case"boolean":return me.boolean;case"function":return me.function;case"bigint":return me.bigint;case"symbol":return me.symbol;case"object":return Array.isArray(e)?me.array:e===null?me.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?me.promise:typeof Map<"u"&&e instanceof Map?me.map:typeof Set<"u"&&e instanceof Set?me.set:typeof Date<"u"&&e instanceof Date?me.date:me.object;default:return me.unknown}},ee=Ve.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ba extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(a){return a.message},n={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let s=n,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(r(o))):s[c]=s[c]||{_errors:[]},s=s[c],l++}}};return i(this),n}static assert(t){if(!(t instanceof ba))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ve.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},n=[];for(const i of this.issues)if(i.path.length>0){const a=i.path[0];r[a]=r[a]||[],r[a].push(t(i))}else n.push(t(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}}ba.create=e=>new ba(e);const Uw=(e,t)=>{let r;switch(e.code){case ee.invalid_type:e.received===me.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case ee.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Ve.jsonStringifyReplacer)}`;break;case ee.unrecognized_keys:r=`Unrecognized key(s) in object: ${Ve.joinValues(e.keys,", ")}`;break;case ee.invalid_union:r="Invalid input";break;case ee.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Ve.joinValues(e.options)}`;break;case ee.invalid_enum_value:r=`Invalid enum value. Expected ${Ve.joinValues(e.options)}, received '${e.received}'`;break;case ee.invalid_arguments:r="Invalid function arguments";break;case ee.invalid_return_type:r="Invalid function return type";break;case ee.invalid_date:r="Invalid date";break;case ee.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Ve.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case ee.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case ee.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case ee.custom:r="Invalid input";break;
vendor: 7,542 bytes, line 789
789case ee.invalid_intersection_types:r="Intersection results could not be merged";break;case ee.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case ee.not_finite:r="Number must be finite";break;default:r=t.defaultError,Ve.assertNever(e)}return{message:r}};let jre=Uw;function Ore(){return jre}const Pre=e=>{const{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s="";const l=n.filter(c=>!!c).slice().reverse();for(const c of l)s=c(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function ce(e,t){const r=Ore(),n=Pre({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Uw?void 0:Uw].filter(i=>!!i)});e.common.issues.push(n)}class cn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const n=[];for(const i of r){if(i.status==="aborted")return Ee;i.status==="dirty"&&t.dirty(),n.push(i.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){const n=[];for(const i of r){const a=await i.key,o=await i.value;n.push({key:a,value:o})}return cn.mergeObjectSync(t,n)}static mergeObjectSync(t,r){const n={};for(const i of r){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return Ee;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[a.value]=o.value)}return{status:t.value,value:n}}}const Ee=Object.freeze({status:"aborted"}),hd=e=>({status:"dirty",value:e}),On=e=>({status:"valid",value:e}),aP=e=>e.status==="aborted",oP=e=>e.status==="dirty",Rc=e=>e.status==="valid",dy=e=>typeof Promise<"u"&&e instanceof Promise;var ye;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ye||(ye={}));class jo{constructor(t,r,n,i){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const sP=(e,t)=>{if(Rc(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new ba(e.common.issues);return this._error=r,this._error}}};function Ie(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(o,s)=>{const{message:l}=e;return o.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:l??n??s.defaultError}:o.code!=="invalid_type"?{message:s.defaultError}:{message:l??r??s.defaultError}},description:i}}class Fe{get description(){return this._def.description}_getType(t){return za(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:za(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new cn,ctx:{common:t.parent.common,data:t.data,parsedType:za(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(dy(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){const n={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:za(t)},i=this._parseSync({data:t,path:n.path,parent:n});return sP(n,i)}"~validate"(t){var n,i;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:za(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:r});return Rc(a)?{value:a.value}:{issues:r.common.issues}}catch(a){(i=(n=a==null?void 0:a.message)==null?void 0:n.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(a=>Rc(a)?{value:a.value}:{issues:r.common.issues})}async parseAsync(t,r){const n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){const n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:za(t)},i=this._parse({data:t,path:n.path,parent:n}),a=await(dy(i)?i:Promise.resolve(i));return sP(n,a)}refine(t,r){const n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,a)=>{const o=t(i),s=()=>a.addIssue({code:ee.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(s(),!1)):o?!0:(s(),!1)})}refinement(t,r){return this._refinement((n,i)=>t(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(t){return new $c({schema:this,typeName:je.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return vo.create(this,this._def)}nullable(){return Mc.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ci.create(this)}promise(){return my.create(this,this._def)}or(t){return hy.create([this,t],this._def)}and(t){return py.create(this,t,this._def)}transform(t){return new $c({...Ie(this._def),schema:this,typeName:je.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new Ww({...Ie(this._def),innerType:this,defaultValue:r,typeName:je.ZodDefault})}brand(){return new Qre({typeName:je.ZodBranded,type:this,...Ie(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new Hw({...Ie(this._def),innerType:this,catchValue:r,typeName:je.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Wk.create(this,t)}readonly(){return qw.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Cre=/^c[^\s-]{8,}
vendor: 4,644 bytes, line 789
789$/i,Nre=/^[0-9a-z]+$/,Rre=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Ire=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,$re=/^[a-z0-9_-]{21}$/i,Mre=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Dre=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Lre=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Bre="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let l0;const Fre=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ure=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Vre=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,zre=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Wre=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Hre=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,F4="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",qre=new RegExp(`^${F4}$`);function U4(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function Kre(e){return new RegExp(`^${U4(e)}$`)}function Yre(e){let t=`${F4}T${U4(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function Gre(e,t){return!!((t==="v4"||!t)&&Fre.test(e)||(t==="v6"||!t)&&Vre.test(e))}function Xre(e,t){if(!Mre.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function Zre(e,t){return!!((t==="v4"||!t)&&Ure.test(e)||(t==="v6"||!t)&&zre.test(e))}class ao extends Fe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==me.string){const a=this._getOrReturnCtx(t);return ce(a,{code:ee.invalid_type,expected:me.string,received:a.parsedType}),Ee}const n=new cn;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),ce(i,{code:ee.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),n.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),ce(i,{code:ee.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),n.dirty());else if(a.kind==="length"){const o=t.data.length>a.value,s=t.data.length<a.value;(o||s)&&(i=this._getOrReturnCtx(t,i),o?ce(i,{code:ee.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&ce(i,{code:ee.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),n.dirty())}else if(a.kind==="email")Lre.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"email",code:ee.invali
vendor: 6,043 bytes, line 789
789d_string,message:a.message}),n.dirty());else if(a.kind==="emoji")l0||(l0=new RegExp(Bre,"u")),l0.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"emoji",code:ee.invalid_string,message:a.message}),n.dirty());else if(a.kind==="uuid")Ire.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"uuid",code:ee.invalid_string,message:a.message}),n.dirty());else if(a.kind==="nanoid")$re.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"nanoid",code:ee.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid")Cre.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"cuid",code:ee.invalid_string,message:a.message}),n.dirty());else if(a.kind==="cuid2")Nre.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"cuid2",code:ee.invalid_string,message:a.message}),n.dirty());else if(a.kind==="ulid")Rre.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"ulid",code:ee.invalid_string,message:a.message}),n.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),ce(i,{validation:"url",code:ee.invalid_string,message:a.message}),n.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"regex",code:ee.invalid_string,message:a.message}),n.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),ce(i,{code:ee.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),n.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),ce(i,{code:ee.invalid_string,validation:{startsWith:a.value},message:a.message}),n.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),ce(i,{code:ee.invalid_string,validation:{endsWith:a.value},message:a.message}),n.dirty()):a.kind==="datetime"?Yre(a).test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{code:ee.invalid_string,validation:"datetime",message:a.message}),n.dirty()):a.kind==="date"?qre.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{code:ee.invalid_string,validation:"date",message:a.message}),n.dirty()):a.kind==="time"?Kre(a).test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{code:ee.invalid_string,validation:"time",message:a.message}),n.dirty()):a.kind==="duration"?Dre.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"duration",code:ee.invalid_string,message:a.message}),n.dirty()):a.kind==="ip"?Gre(t.data,a.version)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"ip",code:ee.invalid_string,message:a.message}),n.dirty()):a.kind==="jwt"?Xre(t.data,a.alg)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"jwt",code:ee.invalid_string,message:a.message}),n.dirty()):a.kind==="cidr"?Zre(t.data,a.version)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"cidr",code:ee.invalid_string,message:a.message}),n.dirty()):a.kind==="base64"?Wre.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"base64",code:ee.invalid_string,message:a.message}),n.dirty()):a.kind==="base64url"?Hre.test(t.data)||(i=this._getOrReturnCtx(t,i),ce(i,{validation:"base64url",code:ee.invalid_string,message:a.message}),n.dirty()):Ve.assertNever(a);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(i=>t.test(i),{validation:r,code:ee.invalid_string,...ye.errToObj(n)})}_addCheck(t){return new ao({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ye.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ye.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ye.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ye.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ye.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ye.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ye.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ye.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ye.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ye.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ye.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ye.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ye.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...ye.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ye.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ye.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...ye.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...ye.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...ye.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...ye.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...ye.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...ye.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...ye.errToObj(r)})}nonempty(t){return this.min(1,ye.errToObj(t))}trim(){return new ao({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ao({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ao({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}
vendor: 4,672 bytes, line 789
789get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}ao.create=e=>new ao({checks:[],typeName:je.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Ie(e)});function Jre(e,t){const r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n,a=Number.parseInt(e.toFixed(i).replace(".","")),o=Number.parseInt(t.toFixed(i).replace(".",""));return a%o/10**i}class Ef extends Fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==me.number){const a=this._getOrReturnCtx(t);return ce(a,{code:ee.invalid_type,expected:me.number,received:a.parsedType}),Ee}let n;const i=new cn;for(const a of this._def.checks)a.kind==="int"?Ve.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),ce(n,{code:ee.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(n=this._getOrReturnCtx(t,n),ce(n,{code:ee.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(n=this._getOrReturnCtx(t,n),ce(n,{code:ee.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?Jre(t.data,a.value)!==0&&(n=this._getOrReturnCtx(t,n),ce(n,{code:ee.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),ce(n,{code:ee.not_finite,message:a.message}),i.dirty()):Ve.assertNever(a);return{status:i.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,ye.toString(r))}gt(t,r){return this.setLimit("min",t,!1,ye.toString(r))}lte(t,r){return this.setLimit("max",t,!0,ye.toString(r))}lt(t,r){return this.setLimit("max",t,!1,ye.toString(r))}setLimit(t,r,n,i){return new Ef({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:ye.toString(i)}]})}_addCheck(t){return new Ef({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ye.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ye.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ye.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ye.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ye.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:ye.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:ye.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ye.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ye.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ve.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}
vendor: 4,134 bytes, line 789
789}Ef.create=e=>new Ef({checks:[],typeName:je.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ie(e)});class jf extends Fe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==me.bigint)return this._getInvalidInput(t);let n;const i=new cn;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(n=this._getOrReturnCtx(t,n),ce(n,{code:ee.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(n=this._getOrReturnCtx(t,n),ce(n,{code:ee.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),ce(n,{code:ee.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):Ve.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return ce(r,{code:ee.invalid_type,expected:me.bigint,received:r.parsedType}),Ee}gte(t,r){return this.setLimit("min",t,!0,ye.toString(r))}gt(t,r){return this.setLimit("min",t,!1,ye.toString(r))}lte(t,r){return this.setLimit("max",t,!0,ye.toString(r))}lt(t,r){return this.setLimit("max",t,!1,ye.toString(r))}setLimit(t,r,n,i){return new jf({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:ye.toString(i)}]})}_addCheck(t){return new jf({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ye.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ye.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ye.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ye.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:ye.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}jf.create=e=>new jf({checks:[],typeName:je.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Ie(e)});class lP extends Fe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==me.boolean){const n=this._getOrReturnCtx(t);return ce(n,{code:ee.invalid_type,expected:me.boolean,received:n.parsedType}),Ee}return On(t.data)}}lP.create=e=>new lP({typeName:je.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ie(e)});class fy extends Fe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==me.date){const a=this._getOrReturnCtx(t);return ce(a,{code:ee.invalid_type,expected:me.date,received:a.parsedType}),Ee}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return ce(a,{code:ee.invalid_date}),Ee}const n=new cn;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),ce(i,{code:ee.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),n.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),ce(i,{code:ee.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),n.dirty()):Ve.assertNever(a);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new fy({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:ye.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:ye.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}fy.create=e=>new fy({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:je.ZodD
vendor: 8,543 bytes, line 789
789ate,...Ie(e)});class cP extends Fe{_parse(t){if(this._getType(t)!==me.symbol){const n=this._getOrReturnCtx(t);return ce(n,{code:ee.invalid_type,expected:me.symbol,received:n.parsedType}),Ee}return On(t.data)}}cP.create=e=>new cP({typeName:je.ZodSymbol,...Ie(e)});class uP extends Fe{_parse(t){if(this._getType(t)!==me.undefined){const n=this._getOrReturnCtx(t);return ce(n,{code:ee.invalid_type,expected:me.undefined,received:n.parsedType}),Ee}return On(t.data)}}uP.create=e=>new uP({typeName:je.ZodUndefined,...Ie(e)});class dP extends Fe{_parse(t){if(this._getType(t)!==me.null){const n=this._getOrReturnCtx(t);return ce(n,{code:ee.invalid_type,expected:me.null,received:n.parsedType}),Ee}return On(t.data)}}dP.create=e=>new dP({typeName:je.ZodNull,...Ie(e)});class fP extends Fe{constructor(){super(...arguments),this._any=!0}_parse(t){return On(t.data)}}fP.create=e=>new fP({typeName:je.ZodAny,...Ie(e)});class hP extends Fe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return On(t.data)}}hP.create=e=>new hP({typeName:je.ZodUnknown,...Ie(e)});class Oo extends Fe{_parse(t){const r=this._getOrReturnCtx(t);return ce(r,{code:ee.invalid_type,expected:me.never,received:r.parsedType}),Ee}}Oo.create=e=>new Oo({typeName:je.ZodNever,...Ie(e)});class pP extends Fe{_parse(t){if(this._getType(t)!==me.undefined){const n=this._getOrReturnCtx(t);return ce(n,{code:ee.invalid_type,expected:me.void,received:n.parsedType}),Ee}return On(t.data)}}pP.create=e=>new pP({typeName:je.ZodVoid,...Ie(e)});class Ci extends Fe{_parse(t){const{ctx:r,status:n}=this._processInputParams(t),i=this._def;if(r.parsedType!==me.array)return ce(r,{code:ee.invalid_type,expected:me.array,received:r.parsedType}),Ee;if(i.exactLength!==null){const o=r.data.length>i.exactLength.value,s=r.data.length<i.exactLength.value;(o||s)&&(ce(r,{code:o?ee.too_big:ee.too_small,minimum:s?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(ce(r,{code:ee.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(ce(r,{code:ee.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,s)=>i.type._parseAsync(new jo(r,o,r.path,s)))).then(o=>cn.mergeArray(n,o));const a=[...r.data].map((o,s)=>i.type._parseSync(new jo(r,o,r.path,s)));return cn.mergeArray(n,a)}get element(){return this._def.type}min(t,r){return new Ci({...this._def,minLength:{value:t,message:ye.toString(r)}})}max(t,r){return new Ci({...this._def,maxLength:{value:t,message:ye.toString(r)}})}length(t,r){return new Ci({...this._def,exactLength:{value:t,message:ye.toString(r)}})}nonempty(t){return this.min(1,t)}}Ci.create=(e,t)=>new Ci({type:e,minLength:null,maxLength:null,exactLength:null,typeName:je.ZodArray,...Ie(t)});function El(e){if(e instanceof Tt){const t={};for(const r in e.shape){const n=e.shape[r];t[r]=vo.create(El(n))}return new Tt({...e._def,shape:()=>t})}else return e instanceof Ci?new Ci({...e._def,type:El(e.element)}):e instanceof vo?vo.create(El(e.unwrap())):e instanceof Mc?Mc.create(El(e.unwrap())):e instanceof Bs?Bs.create(e.items.map(t=>El(t))):e}class Tt extends Fe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=Ve.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==me.object){const c=this._getOrReturnCtx(t);return ce(c,{code:ee.invalid_type,expected:me.object,received:c.parsedType}),Ee}const{status:n,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof Oo&&this._def.unknownKeys==="strip"))for(const c in i.data)o.includes(c)||s.push(c);const l=[];for(const c of o){const u=a[c],d=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new jo(i,d,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof Oo){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of s)l.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(c==="strict")s.length>0&&(ce(i,{code:ee.unrecognized_keys,keys:s}),n.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of s){const d=i.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new jo(i,d,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,h=await u.value;c.push({key:d,value:h,alwaysSet:u.alwaysSet})}return c}).then(c=>cn.mergeObjectSync(n,c)):cn.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(t){return ye.errToObj,new Tt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{var a,o;const i=((o=(a=this._def).errorMap)==null?void 0:o.call(a,r,n).message)??n.defaultError;return r.code==="unrecognized_keys"?{message:ye.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Tt({...this._def,unknownKeys:"strip"})}passthrough(){return new Tt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Tt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Tt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:je.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new Tt({...this._def,catchall:t})}pick(t){const r={};for(const n of Ve.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new Tt({...this._def,shape:()=>r})}omit(t){const r={};for(const n of Ve.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new Tt({...this._def,shape:()=>r})}deepPartial(){return El(this)}partial(t){const r={};for(const n of Ve.objectKeys(this.shape)){const i=this.shape[n];t&&!t[n]?r[n]=i:r[n]=i.optional()}return new Tt({...this._def,shape:()=>r})}required(t){const r={};for(const n of Ve.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let a=this.shape[n];for(;a instanceof vo;)a=a._def.innerType;r[n]=a}return new Tt({...this._def,shape:()=>r})}keyof(){return V4(Ve.objectKeys(this.shape))}}Tt.create=(e,t)=>new Tt({shape:()=>e,unknownKeys:"strip",catchall:Oo.create(),typeName:je.ZodObject,...Ie(t)});Tt.strictCreate=(e,t)=>new Tt({shape:()=>e,unknownKeys:"strict",catchall:Oo.create(),typeName:je.ZodObject,...Ie(t)});Tt.lazycreate=(e,t)=>new Tt({shape:e,unknownKeys:"strip",catchall:Oo.create(),typeName:je.ZodObject,...Ie(t)});class hy extends Fe{_parse(t){const{ctx:r}=this._processInputParams(t),n=this._def.options;function i(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(s=>new ba(s.ctx.common.issues));return ce(r,{code:ee.invalid_union,unionErrors:o}),Ee}if(r.common.async)return Promise.all(n.map(async a=>{const o={...r,common:{...r.common,issues:[]},parent:null};return{result:await a._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];for(const l of n){const c={...r,common:{...r.common,issues:[]},parent:null},u=l._parseSync({data:r.data,path:r.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!a&&(a={result:u,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(a)return r.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(l=>new ba(l));return ce(r,{code:ee.invalid_union,unionErrors:s}),Ee}}get options(){return this._def.options}}hy.create=(e,t)=>new hy({options:e,typeName:je.ZodUnion,...Ie(t)});function Vw(e,t){const r=za(e),n=za(t);if(e===t)return{valid:!0,data:e};if(r===me.object&&n===me.object){const i=Ve.objectKeys(t),a=Ve.objectKeys(e).filter(s=>i.indexOf(s)!==-1),o={...e,...t};for(const s of a){const l=Vw(e[s],t[s]);if(!l.valid)return{valid:!1};o[s]=l.data}return{valid:!0,data:o}}else if(r===me.array&&n===me.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const o=e[a],s=t[a],l=Vw(o,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return r===me.date&&n===me.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class py extends Fe{_parse(t){const{status:r,ctx:n}=this._processInputParams(t),i=(a,o)=>
vendor: 4,098 bytes, line 789
789{if(aP(a)||aP(o))return Ee;const s=Vw(a.value,o.value);return s.valid?((oP(a)||oP(o))&&r.dirty(),{status:r.value,value:s.data}):(ce(n,{code:ee.invalid_intersection_types}),Ee)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([a,o])=>i(a,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}py.create=(e,t,r)=>new py({left:e,right:t,typeName:je.ZodIntersection,...Ie(r)});class Bs extends Fe{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==me.array)return ce(n,{code:ee.invalid_type,expected:me.array,received:n.parsedType}),Ee;if(n.data.length<this._def.items.length)return ce(n,{code:ee.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ee;!this._def.rest&&n.data.length>this._def.items.length&&(ce(n,{code:ee.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const a=[...n.data].map((o,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new jo(n,o,n.path,s)):null}).filter(o=>!!o);return n.common.async?Promise.all(a).then(o=>cn.mergeArray(r,o)):cn.mergeArray(r,a)}get items(){return this._def.items}rest(t){return new Bs({...this._def,rest:t})}}Bs.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Bs({items:e,typeName:je.ZodTuple,rest:null,...Ie(t)})};class mP extends Fe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==me.map)return ce(n,{code:ee.invalid_type,expected:me.map,received:n.parsedType}),Ee;const i=this._def.keyType,a=this._def.valueType,o=[...n.data.entries()].map(([s,l],c)=>({key:i._parse(new jo(n,s,n.path,[c,"key"])),value:a._parse(new jo(n,l,n.path,[c,"value"]))}));if(n.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return Ee;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),s.set(c.value,u.value)}return{status:r.value,value:s}})}else{const s=new Map;for(const l of o){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return Ee;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),s.set(c.value,u.value)}return{status:r.value,value:s}}}}mP.create=(e,t,r)=>new mP({valueType:t,keyType:e,typeName:je.ZodMap,...Ie(r)});class Of extends Fe{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==me.set)return ce(n,{code:ee.invalid_type,expected:me.set,received:n.parsedType}),Ee;const i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(ce(n,{code:ee.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(ce(n,{code:ee.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());const a=this._def.valueType;function o(l){const c=new Set;for(const u of l){if(u.status==="aborted")return Ee;u.status==="dirty"&&r.dirty(),c.add(u.value)}return{status:r.value,value:c}}const s=[...n.data.values()].map((l,c)=>a._parse(new jo(n,l,n.path,c)));return n.common.async?Promise.all(s).then(l=>o(l)):o(s)}min(t,r){return new Of({...this._def,minSize:{value:t,message:ye.toString(r)}})}max(t,r){return new Of({...this._def,maxSize:{value:t,message:ye.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}Of.create=(e,t)=>new Of({valueType:e,minSize:null,maxSize:null,typeName:je.ZodSet,...Ie(t)});class yP extends Fe{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}yP.create=(e,t)=>new yP({getter:e,typeName:je.ZodLazy,...Ie(t)});class zw extends Fe{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);
vendor: 4,609 bytes, line 789
789return ce(r,{received:r.data,code:ee.invalid_literal,expected:this._def.value}),Ee}return{status:"valid",value:t.data}}get value(){return this._def.value}}zw.create=(e,t)=>new zw({value:e,typeName:je.ZodLiteral,...Ie(t)});function V4(e,t){return new Ic({values:e,typeName:je.ZodEnum,...Ie(t)})}class Ic extends Fe{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),n=this._def.values;return ce(r,{expected:Ve.joinValues(n),received:r.parsedType,code:ee.invalid_type}),Ee}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const r=this._getOrReturnCtx(t),n=this._def.values;return ce(r,{received:r.data,code:ee.invalid_enum_value,options:n}),Ee}return On(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return Ic.create(t,{...this._def,...r})}exclude(t,r=this._def){return Ic.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}}Ic.create=V4;class gP extends Fe{_parse(t){const r=Ve.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==me.string&&n.parsedType!==me.number){const i=Ve.objectValues(r);return ce(n,{expected:Ve.joinValues(i),received:n.parsedType,code:ee.invalid_type}),Ee}if(this._cache||(this._cache=new Set(Ve.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=Ve.objectValues(r);return ce(n,{received:n.data,code:ee.invalid_enum_value,options:i}),Ee}return On(t.data)}get enum(){return this._def.values}}gP.create=(e,t)=>new gP({values:e,typeName:je.ZodNativeEnum,...Ie(t)});class my extends Fe{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==me.promise&&r.common.async===!1)return ce(r,{code:ee.invalid_type,expected:me.promise,received:r.parsedType}),Ee;const n=r.parsedType===me.promise?r.data:Promise.resolve(r.data);return On(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}}my.create=(e,t)=>new my({type:e,typeName:je.ZodPromise,...Ie(t)});class $c extends Fe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===je.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:n}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:o=>{ce(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const o=i.transform(n.data,a);if(n.common.async)return Promise.resolve(o).then(async s=>{if(r.value==="aborted")return Ee;const l=await this._def.schema._parseAsync({data:s,path:n.path,parent:n});return l.status==="aborted"?Ee:l.status==="dirty"||r.value==="dirty"?hd(l.value):l});{if(r.value==="aborted")return Ee;const s=this._def.schema._parseSync({data:o,path:n.path,parent:n});return s.status==="aborted"?Ee:s.status==="dirty"||r.value==="dirty"?hd(s.value):s}}if(i.type==="refinement"){const o=s=>{const l=i.refinement(s,a);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(n.common.async===!1){const s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?Ee:(s.status==="dirty"&&r.dirty(),o(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>s.status==="aborted"?Ee:(s.status==="dirty"&&r.dirty(),o(s.value).then(()=>({status:r.value,value:s.value}))))}if(i.type==="transform")if(n.common.async===!1){const o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Rc(o))return Ee;const s=i.transform(o.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:s}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>Rc(o)?Promise.resolve(i.transform(o.value,a)).then(s=>({status:r.value,value:s})):Ee);Ve.assertNever(i)}}$c.create=(e,t,r)=>new $c({schema:e,typeName:je.ZodEffects,effect:t,...Ie(r)});$c.createWithPreprocess=(e,t,r)=>new $c({schema:t,effect:{type:"preprocess",transform:e},typeName:je.ZodEffects,...Ie(r)});class vo extends Fe{_parse(t){return this._getType(t)===me.undefined?On(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}vo.create=(e,t)=>
vendor: 7,044 bytes, line 789
789new vo({innerType:e,typeName:je.ZodOptional,...Ie(t)});class Mc extends Fe{_parse(t){return this._getType(t)===me.null?On(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Mc.create=(e,t)=>new Mc({innerType:e,typeName:je.ZodNullable,...Ie(t)});class Ww extends Fe{_parse(t){const{ctx:r}=this._processInputParams(t);let n=r.data;return r.parsedType===me.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Ww.create=(e,t)=>new Ww({innerType:e,typeName:je.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ie(t)});class Hw extends Fe{_parse(t){const{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return dy(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ba(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ba(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Hw.create=(e,t)=>new Hw({innerType:e,typeName:je.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ie(t)});class vP extends Fe{_parse(t){if(this._getType(t)!==me.nan){const n=this._getOrReturnCtx(t);return ce(n,{code:ee.invalid_type,expected:me.nan,received:n.parsedType}),Ee}return{status:"valid",value:t.data}}}vP.create=e=>new vP({typeName:je.ZodNaN,...Ie(e)});class Qre extends Fe{_parse(t){const{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}}class Wk extends Fe{_parse(t){const{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?Ee:a.status==="dirty"?(r.dirty(),hd(a.value)):this._def.out._parseAsync({data:a.value,path:n.path,parent:n})})();{const i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Ee:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(t,r){return new Wk({in:t,out:r,typeName:je.ZodPipeline})}}class qw extends Fe{_parse(t){const r=this._def.innerType._parse(t),n=i=>(Rc(i)&&(i.value=Object.freeze(i.value)),i);return dy(r)?r.then(i=>n(i)):n(r)}unwrap(){return this._def.innerType}}qw.create=(e,t)=>new qw({innerType:e,typeName:je.ZodReadonly,...Ie(t)});Tt.lazycreate;var je;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(je||(je={}));const Go=ao.create;Oo.create;Ci.create;const ene=Tt.create;Tt.strictCreate;hy.create;py.create;Bs.create;const bP=zw.create,xP=Ic.create;my.create;vo.create;Mc.create;const tne="https://calendly.com/alex-clubcloud/clubcloud-demo-1",rne=()=>(k.useEffect(()=>{const e=document.createElement("link");e.href="https://assets.calendly.com/assets/external/widget.css",e.rel="stylesheet",document.head.appendChild(e);const t=document.createElement("script");return t.src="https://assets.calendly.com/assets/external/widget.js",t.async=!0,document.body.appendChild(t),()=>{document.head.removeChild(e),document.body.removeChild(t)}},[]),f.jsx("div",{className:"calendly-inline-widget w-full rounded-2xl overflow-hidden","data-url":tne,style:{minWidth:"320px",height:"700px"}}));var nne="Label",z4=k.forwardRef((e,t)=>f.jsx(Ze.label,{...e,ref:t,onMouseDown:r=>{var i;r.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));z4.displayName=nne;var W4=z4;const ine=zM("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),H4=k.forwardRef(({className:e,...t},r)=>f.jsx(W4,{ref:r,className:Pt(ine(),e),...t}));H4.displayName=W4.displayName;const ane=are,q4=k.createContext({}),$a=({...e})=>f.jsx(q4.Provider,{value:{name:e.name},children:f.jsx(cre,{...e})}),ov=()=>{const e=k.useContext(q4),t=k.useContext(K4),{getFieldState:r,formState:n}=av(),i=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},K4=k.createContext({}),Ki=k.forwardRef(({className:e,...t},r)=>{const n=k.useId();return f.jsx(K4.Provider,{value:{id:n},children:f.jsx("div",{ref:r,className:Pt("space-y-2",e),...t})})});Ki.displayName="FormItem";const Yi=k.forwardRef(({className:e,...t},r)=>{const{error:n,formItemId:i}=ov();return f.jsx(H4,{ref:r,className:Pt(n&&"text-destructive",e),htmlFor:i,...t})});Yi.displayName="FormLabel";const Gi=k.forwardRef(({...e},t)=>{const{error:r,formItemId:n,formDescriptionId:i,formMessageId:a}=ov();return f.jsx(vz,{ref:t,id:n,"aria-describedby":r?`${i} ${a}`:`${i}`,"aria-invalid":!!r,...e})});Gi.displayName="FormControl";const one=k.forwardRef(({className:e,...t},r)=>{const{formDescriptionId:n}=ov();return f.jsx("p",{ref:r,id:n,className:Pt("text-sm text-muted-foreground",e),...t})});one.displayName="FormDescription";const Xi=k.forwardRef(({className:e,children:t,...r},n)=>{const{error:i,formMessageId:a}=ov(),o=i?String(i==null?void 0:i.message):t;return o?f.jsx("p",{ref:n,id:a,className:Pt("text-sm font-medium text-destructive",e),...r,children:o}):null});Xi.displayName="FormMessage";const jl=k.forwardRef(({className:e,type:t,...r},n)=>f.jsx("input",{type:t,className:Pt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background 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-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...r}));jl.displayName="Input";const Y4=k.forwardRef(({className:e,...t},r)=>f.jsx("textarea",{className:Pt("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
789ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...t}));Y4.displayName="Textarea";function wP(e,[t,r]){return Math.min(r,Math.max(t,e))}var sne=k.createContext(void 0);function lne(e){const t=k.useContext(sne);return e||t||"ltr"}var c0=0;function cne(){k.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??SP()),document.body.insertAdjacentElement("beforeend",e[1]??SP()),c0++,()=>{c0===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),c0--}},[])}function SP(){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 u0="focusScope.autoFocusOnMount",d0="focusScope.autoFocusOnUnmount",_P={bubbles:!1,cancelable:!0},une="FocusScope",G4=k.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,l]=k.useState(null),c=ai(i),u=ai(a),d=k.useRef(null),h=Ot(t,m=>l(m)),p=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(n){let m=function(x){if(p.paused||!s)return;const S=x.target;s.contains(S)?d.current=S:Ba(d.current,{select:!0})},g=function(x){if(p.paused||!s)return;const S=x.relatedTarget;S!==null&&(s.contains(S)||Ba(d.current,{select:!0}))},b=function(x){if(document.activeElement===document.body)for(const w of x)w.removedNodes.length>0&&Ba(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",g);const v=new MutationObserver(b);return s&&v.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),v.disconnect()}}},[n,s,p.paused]),k.useEffect(()=>{if(s){AP.add(p);const m=document.activeElement;if(!s.contains(m)){const b=new CustomEvent(u0,_P);s.addEventListener(u0,c),s.dispatchEvent(b),b.defaultPrevented||(dne(yne(X4(s)),{select:!0}),document.activeElement===m&&Ba(s))}return()=>{s.removeEventListener(u0,c),setTimeout(()=>{const b=new CustomEvent(d0,_P);s.addEventListener(d0,u),s.dispatchEvent(b),b.defaultPrevented||Ba(m??document.body,{select:!0}),s.removeEventListener(d0,u),AP.remove(p)},0)}}},[s,c,u,p]);const y=k.useCallback(m=>{if(!r&&!n||p.paused)return;const g=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(g&&b){const v=m.currentTarget,[x,S]=fne(v);x&&S?!m.shiftKey&&b===S?(m.preventDefault(),r&&Ba(x,{select:!0})):m.shiftKey&&b===x&&(m.preventDefault(),r&&Ba(S,{select:!0})):b===v&&m.preventDefault()}},[r,n,p.paused]);return f.jsx(Ze.div,{tabIndex:-1,...o,ref:h,onKeyDown:y})});G4.displayName=une;function dne(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Ba(n,{select:t}),document.activeElement!==r)return}function fne(e){const t=X4(e),r=kP(t,e),n=kP(t.reverse(),e);return[r,n]}function X4(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function kP(e,t){for(const r of e)if(!hne(r,{upTo:t}))return r}function hne(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 pne(e){return e instanceof HTMLInputElement&&"select"in e}function Ba(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&pne(e)&&t&&e.select()}}var AP=mne();function mne(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=TP(e,t),e.unshift(t)},remove(t){var r;e=TP(e,t),(r=e[0])==null||r.resume()}}}function TP(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function yne(e){return e.filter(t=>t.tagName!=="A")}function gne(e){const t=k.useRef({value:e,previous:e});return k.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var vne=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ml=new WeakMap,Tp=new WeakMap,Ep={},f0=0,Z4=function(e){return e&&(e.host||Z4(e.parentNode))},bne=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Z4(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},xne=function(e,t,r,n){var i=bne(t,Array.isArray(e)?e:[e]);Ep[r]||(Ep[r]=new WeakMap);var a=Ep[r],o=[],s=new Set,l=new Set(i),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};
vendor: 6,501 bytes, lines 789-804
789i.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(s.has(h))u(h);else try{var p=h.getAttribute(n),y=p!==null&&p!=="false",m=(ml.get(h)||0)+1,g=(a.get(h)||0)+1;ml.set(h,m),a.set(h,g),o.push(h),m===1&&y&&Tp.set(h,!0),g===1&&h.setAttribute(r,"true"),y||h.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return u(t),s.clear(),f0++,function(){o.forEach(function(d){var h=ml.get(d)-1,p=a.get(d)-1;ml.set(d,h),a.set(d,p),h||(Tp.has(d)||d.removeAttribute(n),Tp.delete(d)),p||d.removeAttribute(r)}),f0--,f0||(ml=new WeakMap,ml=new WeakMap,Tp=new WeakMap,Ep={})}},wne=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=vne(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),xne(n,i,r,"aria-hidden")):function(){return null}},Si=function(){return Si=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Si.apply(this,arguments)};function J4(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Sne(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var pm="right-scroll-bar-position",mm="width-before-scroll-bar",_ne="with-scroll-bars-hidden",kne="--removed-body-scroll-bar-size";function h0(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ane(e,t){var r=k.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var Tne=typeof window<"u"?k.useLayoutEffect:k.useEffect,EP=new WeakMap;function Ene(e,t){var r=Ane(null,function(n){return e.forEach(function(i){return h0(i,n)})});return Tne(function(){var n=EP.get(r);if(n){var i=new Set(n),a=new Set(e),o=r.current;i.forEach(function(s){a.has(s)||h0(s,null)}),a.forEach(function(s){i.has(s)||h0(s,o)})}EP.set(r,e)},[e]),r}function jne(e){return e}function One(e,t){t===void 0&&(t=jne);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var o=t(a,n);return r.push(o),function(){r=r.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(n=!0;r.length;){var o=r;r=[],o.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var o=[];if(r.length){var s=r;r=[],s.forEach(a),o=r}var l=function(){var u=o;o=[],u.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(u){o.push(u),c()},filter:function(u){return o=o.filter(u),r}}}};return i}function Pne(e){e===void 0&&(e={});var t=One(null);return t.options=Si({async:!0,ssr:!1},e),t}var Q4=function(e){var t=e.sideCar,r=J4(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return k.createElement(n,Si({},r))};Q4.isSideCarExport=!0;function Cne(e,t){return e.useMedium(t),Q4}var eB=Pne(),p0=function(){},sv=k.forwardRef(function(e,t){var r=k.useRef(null),n=k.useState({onScrollCapture:p0,onWheelCapture:p0,onTouchMoveCapture:p0}),i=n[0],a=n[1],o=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,p=e.noRelative,y=e.noIsolation,m=e.inert,g=e.allowPinchZoom,b=e.as,v=b===void 0?"div":b,x=e.gapMode,S=J4(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=h,_=Ene([r,t]),A=Si(Si({},S),i);return k.createElement(k.Fragment,null,u&&k.createElement(w,{sideCar:eB,removeScrollBar:c,shards:d,noRelative:p,noIsolation:y,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:x}),o?k.cloneElement(k.Children.only(s),Si(Si({},A),{ref:_})):k.createElement(v,Si({},A,{className:l,ref:_}),s))});sv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};sv.classNames={fullWidth:mm,zeroRight:pm};var Nne=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Rne(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Nne();return t&&e.setAttribute("nonce",t),e}function Ine(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $ne(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Mne=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Rne())&&(Ine(t,r),$ne(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Dne=function(){var e=Mne();return function(t,r){k.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},tB=function(){var e=Dne(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},Lne={left:0,top:0,right:0,gap:0},m0=function(e){return parseInt(e||"",10)||0},Bne=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[m0(r),m0(n),m0(i)]},Fne=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Lne;var t=Bne(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Une=tB(),cc="data-scroll-locked",Vne=function(e,t,r,n){var i=e.left,a=e.top,o=e.right,s=e.gap;return r===void 0&&(r="margin"),` 790 .`.concat(_ne,` { 791 overflow: hidden `).concat(n,`; 792 padding-right: `).concat(s,"px ").concat(n,`; 793 } 794 body[`).concat(cc,`] { 795 overflow: hidden `).concat(n,`; 796 overscroll-behavior: contain; 797 `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` 798 padding-left: `.concat(i,`px; 799 padding-top: `).concat(a,`px; 800 padding-right: `).concat(o,`px; 801 margin-left:0; 802 margin-top:0; 803 margin-right: `).concat(s,"px ").concat(n,`; 804 `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";
804")].filter(Boolean).join(""),` 805 } 806 807 .`).concat(pm,` { 808 right: `).concat(s,"px ").concat(n,`; 809 } 810 811 .`).concat(mm,` { 812 margin-right: `).concat(s,"px ").concat(n,`; 813 } 814 815 .`).concat(pm," .").concat(pm,` { 816 right: 0 `).concat(n,`; 817 } 818 819 .`).concat(mm," .").concat(mm,` { 820 margin-right: 0 `).concat(n,`; 821 } 822 823 body[`).concat(cc,`] { 824 `).concat(kne,": ").concat(s,`px; 825 } 826`)},jP=function(){var e=parseInt(document.body.getAttribute(cc)||"0",10);return isFinite(e)?e:0},zne=function(){k.useEffect(function(){return document.body.setAttribute(cc,(jP()+1).toString()),function(){var e=jP()-1;e<=0?document.body.removeAttribute(cc):document.body.setAttribute(cc,e.toString())}},[])},Wne=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;zne();var a=k.useMemo(function(){return Fne(i)},[i]);return k.createElement(Une,{styles:Vne(a,!t,i,r?"":"!important")})},Kw=!1;if(typeof window<"u")try{var jp=Object.defineProperty({},"passive",{get:function(){return Kw=!0,!0}});window.addEventListener("test",jp,jp),window.removeEventListener("test",jp,jp)}catch{Kw=!1}var yl=Kw?{passive:!1}:!1,Hne=function(e){return e.tagName==="TEXTAREA"},rB=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Hne(e)&&r[t]==="visible")},qne=function(e){return rB(e,"overflowY")},Kne=function(e){return rB(e,"overflowX")},OP=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=nB(e,n);if(i){var a=iB(e,n),o=a[1],s=a[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Yne=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Gne=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},nB=function(e,t){return e==="v"?qne(t):Kne(t)},iB=function(e,t){return e==="v"?Yne(t):Gne(t)},Xne=function(e,t){return e==="h"&&t==="rtl"?-1:1},Zne=function(e,t,r,n,i){var a=Xne(e,window.getComputedStyle(t).direction),o=a*n,s=r.target,l=t.contains(s),c=!1,u=o>0,d=0,h=0;do{if(!s)break;var p=iB(e,s),y=p[0],m=p[1],g=p[2],b=m-g-a*y;(y||b)&&nB(e,s)&&(d+=b,h+=y);var v=s.parentNode;s=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(Math.abs(d)<1||!i)||!u&&(Math.abs(h)<1||!i))&&(c=!0),c},Op=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},PP=function(e){return[e.deltaX,e.deltaY]},CP=function(e){return e&&"current"in e?e.current:e},Jne=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Qne=function(e){return` 827 .block-interactivity-`.concat(e,` {pointer-events: none;} 828 .allow-interactivity-`).concat(e,` {pointer-events: all;} 829`)},eie=0,gl=[];function tie(e){var t=k.useRef([]),r=k.useRef([0,0]),n=k.useRef(),i=k.useState(eie++)[0],a=k.useState(tB)[0],o=k.useRef(e);k.useEffect(function(){o.current=e},[e]),k.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=Sne([e.lockRef.current],(e.shards||[]).map(CP),!0).filter(Boolean);return m.forEach(function(g){return g.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=k.useCallback(function(m,g){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!o.current.allowPinchZoom;var b=Op(m),v=r.current,x="deltaX"in m?m.deltaX:v[0]-b[0],S="deltaY"in m?m.deltaY:v[1]-b[1],w,_=m.target,A=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in m&&A==="h"&&_.type==="range")return!1;var T=OP(A,_);if(!T)return!0;if(T?w=A:(w=A==="v"?"h":"v",T=OP(A,_)),!T)return!1;if(!n.current&&"changedTouches"in m&&(x||S)&&(n.current=w),!w)return!0;var j=n.current||w;return Zne(j,g,m,j==="h"?x:S,!0)},[]),l=k.useCallback(function(m){var g=m;if(!(!gl.length||gl[gl.length-1]!==a)){var b="deltaY"in g?PP(g):Op(g),v=t.current.filter(function(w){return w.name===g.type&&(w.target===g.target||g.target===w.shadowParent)&&Jne(w.delta,b)})[0];if(v&&v.should){g.cancelable&&g.preventDefault();return}
vendor: 4,145 bytes, line 829
829if(!v){var x=(o.current.shards||[]).map(CP).filter(Boolean).filter(function(w){return w.contains(g.target)}),S=x.length>0?s(g,x[0]):!o.current.noIsolation;S&&g.cancelable&&g.preventDefault()}}},[]),c=k.useCallback(function(m,g,b,v){var x={name:m,delta:g,target:b,should:v,shadowParent:rie(b)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),u=k.useCallback(function(m){r.current=Op(m),n.current=void 0},[]),d=k.useCallback(function(m){c(m.type,PP(m),m.target,s(m,e.lockRef.current))},[]),h=k.useCallback(function(m){c(m.type,Op(m),m.target,s(m,e.lockRef.current))},[]);k.useEffect(function(){return gl.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,yl),document.addEventListener("touchmove",l,yl),document.addEventListener("touchstart",u,yl),function(){gl=gl.filter(function(m){return m!==a}),document.removeEventListener("wheel",l,yl),document.removeEventListener("touchmove",l,yl),document.removeEventListener("touchstart",u,yl)}},[]);var p=e.removeScrollBar,y=e.inert;return k.createElement(k.Fragment,null,y?k.createElement(a,{styles:Qne(i)}):null,p?k.createElement(Wne,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function rie(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const nie=Cne(eB,tie);var aB=k.forwardRef(function(e,t){return k.createElement(sv,Si({},e,{ref:t,sideCar:nie}))});aB.classNames=sv.classNames;var iie=[" ","Enter","ArrowUp","ArrowDown"],aie=[" ","Enter"],Fs="Select",[lv,cv,oie]=gM(Fs),[wu,XNe]=vh(Fs,[oie,zg]),uv=zg(),[sie,Mo]=wu(Fs),[lie,cie]=wu(Fs),oB=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:h,required:p,form:y}=e,m=uv(t),[g,b]=k.useState(null),[v,x]=k.useState(null),[S,w]=k.useState(!1),_=lne(c),[A,T]=Wx({prop:n,defaultProp:i??!1,onChange:a,caller:Fs}),[j,P]=Wx({prop:o,defaultProp:s,onChange:l,caller:Fs}),C=k.useRef(null),O=g?y||!!g.closest("form"):!0,[$,N]=k.useState(new Set),L=Array.from($).map(D=>D.props.value).join(";");return f.jsx(P7,{...m,children:f.jsxs(sie,{required:p,scope:t,trigger:g,onTriggerChange:b,valueNode:v,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:w,contentId:B_(),value:j,onValueChange:P,open:A,onOpenChange:T,dir:_,triggerPointerDownPosRef:C,disabled:h,children:[f.jsx(lv.Provider,{scope:t,children:f.jsx(lie,{scope:e.__scopeSelect,onNativeOptionAdd:k.useCallback(D=>{N(B=>new Set(B).add(D))},[]),onNativeOptionRemove:k.useCallback(D=>{N(B=>{const R=new Set(B);return R.delete(D),R})},[]),children:r})}),O?f.jsxs(PB,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:d,value:j,onChange:D=>P(D.target.value),disabled:h,form:y,children:[j===void 0?f.jsx("option",{value:""}):null,Array.from($)]},L):null]})})};oB.displayName=Fs;var sB="SelectTrigger",lB=k.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,a=uv(r),o=Mo(sB,r),s=o.disabled||n,l=Ot(t,o.onTriggerChange),c=cv(r),u=k.useRef("touch"),[d,h,p]=NB(m=>{const g=c().filter(x=>!x.disabled),b=g.find(x=>x.value===o.value),v=RB(g,m,b);v!==void 0&&o.onValueChange(v.value)}),y=m=>{s||(o.onOpenChange(!0),p()),m&&(o.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return f.jsx(LD,{asChild:!0,...a,children:f.jsx(Ze.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":CB(o.value)?"":void 0,...i,ref:l,onClick:Le(i.onClick,m=>{m.currentTarget.focus(),u.current!=="mouse"&&y(m)}),onPointerDown:Le(i.onPointerDown,m=>{u.current=m.pointerType;const g=m.target;g.hasPointerCapture(m.pointerId)&&g.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(y(m),m.preventDefault())}),onKeyDown:Le(i.onKeyDown,m=>{const g=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&h(m.key),!(g&&m.key===" ")&&iie.includes(m.key)&&
vendor: 15,689 bytes, line 829
829(y(),m.preventDefault())})})})});lB.displayName=sB;var cB="SelectValue",uB=k.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,children:a,placeholder:o="",...s}=e,l=Mo(cB,r),{onValueNodeHasChildrenChange:c}=l,u=a!==void 0,d=Ot(t,l.onValueNodeChange);return cr(()=>{c(u)},[c,u]),f.jsx(Ze.span,{...s,ref:d,style:{pointerEvents:"none"},children:CB(l.value)?f.jsx(f.Fragment,{children:o}):a})});uB.displayName=cB;var uie="SelectIcon",dB=k.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return f.jsx(Ze.span,{"aria-hidden":!0,...i,ref:t,children:n||"â¼"})});dB.displayName=uie;var die="SelectPortal",fB=e=>f.jsx(T_,{asChild:!0,...e});fB.displayName=die;var Us="SelectContent",hB=k.forwardRef((e,t)=>{const r=Mo(Us,e.__scopeSelect),[n,i]=k.useState();if(cr(()=>{i(new DocumentFragment)},[]),!r.open){const a=n;return a?Zs.createPortal(f.jsx(pB,{scope:e.__scopeSelect,children:f.jsx(lv.Slot,{scope:e.__scopeSelect,children:f.jsx("div",{children:e.children})})}),a):null}return f.jsx(mB,{...e,ref:t})});hB.displayName=Us;var Un=10,[pB,Do]=wu(Us),fie="SelectContentImpl",hie=sf("SelectContent.RemoveScroll"),mB=k.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:h,collisionPadding:p,sticky:y,hideWhenDetached:m,avoidCollisions:g,...b}=e,v=Mo(Us,r),[x,S]=k.useState(null),[w,_]=k.useState(null),A=Ot(t,te=>S(te)),[T,j]=k.useState(null),[P,C]=k.useState(null),O=cv(r),[$,N]=k.useState(!1),L=k.useRef(!1);k.useEffect(()=>{if(x)return wne(x)},[x]),cne();const D=k.useCallback(te=>{const[ke,...G]=O().map(V=>V.ref.current),[ie]=G.slice(-1),ae=document.activeElement;for(const V of te)if(V===ae||(V==null||V.scrollIntoView({block:"nearest"}),V===ke&&w&&(w.scrollTop=0),V===ie&&w&&(w.scrollTop=w.scrollHeight),V==null||V.focus(),document.activeElement!==ae))return},[O,w]),B=k.useCallback(()=>D([T,x]),[D,T,x]);k.useEffect(()=>{$&&B()},[$,B]);const{onOpenChange:R,triggerPointerDownPosRef:M}=v;k.useEffect(()=>{if(x){let te={x:0,y:0};const ke=ie=>{var ae,V;te={x:Math.abs(Math.round(ie.pageX)-(((ae=M.current)==null?void 0:ae.x)??0)),y:Math.abs(Math.round(ie.pageY)-(((V=M.current)==null?void 0:V.y)??0))}},G=ie=>{te.x<=10&&te.y<=10?ie.preventDefault():x.contains(ie.target)||R(!1),document.removeEventListener("pointermove",ke),M.current=null};return M.current!==null&&(document.addEventListener("pointermove",ke),document.addEventListener("pointerup",G,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ke),document.removeEventListener("pointerup",G,{capture:!0})}}},[x,R,M]),k.useEffect(()=>{const te=()=>R(!1);return window.addEventListener("blur",te),window.addEventListener("resize",te),()=>{window.removeEventListener("blur",te),window.removeEventListener("resize",te)}},[R]);const[U,Y]=NB(te=>{const ke=O().filter(ae=>!ae.disabled),G=ke.find(ae=>ae.ref.current===document.activeElement),ie=RB(ke,te,G);ie&&setTimeout(()=>ie.ref.current.focus())}),W=k.useCallback((te,ke,G)=>{const ie=!L.current&&!G;(v.value!==void 0&&v.value===ke||ie)&&(j(te),ie&&(L.current=!0))},[v.value]),X=k.useCallback(()=>x==null?void 0:x.focus(),[x]),le=k.useCallback((te,ke,G)=>{const ie=!L.current&&!G;(v.value!==void 0&&v.value===ke||ie)&&C(te)},[v.value]),we=n==="popper"?Yw:yB,Re=we===Yw?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:h,collisionPadding:p,sticky:y,hideWhenDetached:m,avoidCollisions:g}:{};return f.jsx(pB,{scope:r,content:x,viewport:w,onViewportChange:_,itemRefCallback:W,selectedItem:T,onItemLeave:X,itemTextRefCallback:le,focusSelectedItem:B,selectedItemText:P,position:n,isPositioned:$,searchRef:U,children:f.jsx(aB,{as:hie,allowPinchZoom:!0,children:f.jsx(G4,{asChild:!0,trapped:v.open,onMountAutoFocus:te=>{te.preventDefault()},onUnmountAutoFocus:Le(i,te=>{var ke;(ke=v.trigger)==null||ke.focus({preventScroll:!0}),te.preventDefault()}),children:f.jsx($g,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:te=>te.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:f.jsx(we,{role:"listbox",id:v.contentId,"data-state":v.open?"open":"closed",dir:v.dir,onContextMenu:te=>te.preventDefault(),...b,...Re,onPlaced:()=>N(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:Le(b.onKeyDown,te=>{const ke=te.ctrlKey||te.altKey||te.metaKey;if(te.key==="Tab"&&te.preventDefault(),!ke&&te.key.length===1&&Y(te.key),["ArrowUp","ArrowDown","Home","End"].includes(te.key)){let ie=O().filter(ae=>!ae.disabled).map(ae=>ae.ref.current);if(["ArrowUp","End"].includes(te.key)&&(ie=ie.slice().reverse()),["ArrowUp","ArrowDown"].includes(te.key)){const ae=te.target,V=ie.indexOf(ae);ie=ie.slice(V+1)}setTimeout(()=>D(ie)),te.preventDefault()}})})})})})})});mB.displayName=fie;var pie="SelectItemAlignedPosition",yB=k.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...i}=e,a=Mo(Us,r),o=Do(Us,r),[s,l]=k.useState(null),[c,u]=k.useState(null),d=Ot(t,A=>u(A)),h=cv(r),p=k.useRef(!1),y=k.useRef(!0),{viewport:m,selectedItem:g,selectedItemText:b,focusSelectedItem:v}=o,x=k.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&c&&m&&g&&b){const A=a.trigger.getBoundingClientRect(),T=c.getBoundingClientRect(),j=a.valueNode.getBoundingClientRect(),P=b.getBoundingClientRect();if(a.dir!=="rtl"){const ae=P.left-T.left,V=j.left-ae,Ce=A.left-V,Se=A.width+Ce,We=Math.max(Se,T.width),He=window.innerWidth-Un,mt=wP(V,[Un,Math.max(Un,He-We)]);s.style.minWidth=Se+"px",s.style.left=mt+"px"}else{const ae=T.right-P.right,V=window.innerWidth-j.right-ae,Ce=window.innerWidth-A.right-V,Se=A.width+Ce,We=Math.max(Se,T.width),He=window.innerWidth-Un,mt=wP(V,[Un,Math.max(Un,He-We)]);s.style.minWidth=Se+"px",s.style.right=mt+"px"}const C=h(),O=window.innerHeight-Un*2,$=m.scrollHeight,N=window.getComputedStyle(c),L=parseInt(N.borderTopWidth,10),D=parseInt(N.paddingTop,10),B=parseInt(N.borderBottomWidth,10),R=parseInt(N.paddingBottom,10),M=L+D+$+R+B,U=Math.min(g.offsetHeight*5,M),Y=window.getComputedStyle(m),W=parseInt(Y.paddingTop,10),X=parseInt(Y.paddingBottom,10),le=A.top+A.height/2-Un,we=O-le,Re=g.offsetHeight/2,te=g.offsetTop+Re,ke=L+D+te,G=M-ke;if(ke<=le){const ae=C.length>0&&g===C[C.length-1].ref.current;s.style.bottom="0px";const V=c.clientHeight-m.offsetTop-m.offsetHeight,Ce=Math.max(we,Re+(ae?X:0)+V+B),Se=ke+Ce;s.style.height=Se+"px"}else{const ae=C.length>0&&g===C[0].ref.current;s.style.top="0px";const Ce=Math.max(le,L+m.offsetTop+(ae?W:0)+Re)+G;s.style.height=Ce+"px",m.scrollTop=ke-le+m.offsetTop}s.style.margin=`${Un}px 0`,s.style.minHeight=U+"px",s.style.maxHeight=O+"px",n==null||n(),requestAnimationFrame(()=>p.current=!0)}},[h,a.trigger,a.valueNode,s,c,m,g,b,a.dir,n]);cr(()=>x(),[x]);const[S,w]=k.useState();cr(()=>{c&&w(window.getComputedStyle(c).zIndex)},[c]);const _=k.useCallback(A=>{A&&y.current===!0&&(x(),v==null||v(),y.current=!1)},[x,v]);return f.jsx(yie,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:_,children:f.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:f.jsx(Ze.div,{...i,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});yB.displayName=pie;var mie="SelectPopperPosition",Yw=k.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Un,...a}=e,o=uv(r);return f.jsx(BD,{...o,...a,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...a.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)"}})});Yw.displayName=mie;var[yie,Hk]=wu(Us,{}),Gw="SelectViewport",gB=k.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...i}=e,a=Do(Gw,r),o=Hk(Gw,r),s=Ot(t,a.onViewportChange),l=k.useRef(0);return f.jsxs(f.Fragment,{children:[f.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:n}),f.jsx(lv.Slot,{scope:r,children:f.jsx(Ze.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:Le(i.onScroll,c=>{const u=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:h}=o;if(h!=null&&h.current&&d){const p=Math.abs(l.current-u.scrollTop);if(p>0){const y=window.innerHeight-Un*2,m=parseFloat(d.style.minHeight),g=parseFloat(d.style.height),b=Math.max(m,g);if(b<y){const v=b+p,x=Math.min(y,v),S=v-x;d.style.height=x+"px",d.style.bottom==="0px"&&(u.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});gB.displayName=Gw;var vB="SelectGroup",[gie,vie]=wu(vB),bie=k.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=B_();return f.jsx(gie,{scope:r,id:i,children:f.jsx(Ze.div,{role:"group","aria-labelledby":i,...n,ref:t})})});bie.displayName=vB;var bB="SelectLabel",xB=k.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=vie(bB,r);return f.jsx(Ze.div,{id:i.id,...n,ref:t})});xB.displayName=bB;var yy="SelectItem",[xie,wB]=wu(yy),SB=k.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:a,...o}=e,s=Mo(yy,r),l=Do(yy,r),c=s.value===n,[u,d]=k.useState(a??""),[h,p]=k.useState(!1),y=Ot(t,v=>{var x;return(x=l.itemRefCallback)==null?void 0:x.call(l,v,n,i)}),m=B_(),g=k.useRef("touch"),b=()=>{i||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")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 f.jsx(xie,{scope:r,value:n,disabled:i,textId:m,isSelected:c,onItemTextChange:k.useCallback(v=>{d(x=>x||((v==null?void 0:v.textContent)??"").trim())},[]),children:f.jsx(lv.ItemSlot,{scope:r,value:n,disabled:i,textValue:u,children:f.jsx(Ze.div,{role:"option","aria-labelledby":m,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...o,ref:y,onFocus:Le(o.onFocus,()=>p(!0)),onBlur:Le(o.onBlur,()=>p(!1)),onClick:Le(o.onClick,()=>{g.current!=="mouse"&&b()}),onPointerUp:Le(o.onPointerUp,()=>{g.current==="mouse"&&b()}),onPointerDown:Le(o.onPointerDown,v=>{g.current=v.pointerType}),onPointerMove:Le(o.onPointerMove,v=>{var x;g.current=v.pointerType,i?(x=l.onItemLeave)==null||x.call(l):g.current==="mouse"&&v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Le(o.onPointerLeave,v=>{var x;v.currentTarget===document.activeElement&&((x=l.onItemLeave)==null||x.call(l))}),onKeyDown:Le(o.onKeyDown,v=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&v.key===" "||(aie.includes(v.key)&&b(),v.key===" "&&v.preventDefault())})})})})});SB.displayName=yy;var pd="SelectItemText",_B=k.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,...a}=e,o=Mo(pd,r),s=Do(pd,r),l=wB(pd,r),c=cie(pd,r),[u,d]=k.useState(null),h=Ot(t,b=>d(b),l.onItemTextChange,b=>{var v;return(v=s.itemTextRefCallback)==null?void 0:v.call(s,b,l.value,l.disabled)}),p=u==null?void 0:u.textContent,y=k.useMemo(()=>f.jsx("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:g}=c;return cr(()=>(m(y),()=>g(y)),[m,g,y]),f.jsxs(f.Fragment,{children:[f.jsx(Ze.span,{id:l.textId,...a,ref:h}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Zs.createPortal(a.children,o.valueNode):null]})});_B.displayName=pd;var kB="SelectItemIndicator",AB=k.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return wB(kB,r).isSelected?f.jsx(Ze.span,{"aria-hidden":!0,...n,ref:t}):null});AB.displayName=kB;var Xw="SelectScrollUpButton",TB=k.forwardRef((e,t)=>{const r=Do(Xw,e.__scopeSelect),n=Hk(Xw,e.__scopeSelect),[i,a]=k.useState(!1),o=Ot(t,n.onScrollButtonChange);return cr(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=l.scrollTop>0;a(c)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?f.jsx(jB,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});TB.displayName=Xw;var Zw="SelectScrollDownButton",EB=k.forwardRef((e,t)=>{const r=Do(Zw,e.__scopeSelect),n=Hk(Zw,e.__scopeSelect),[i,a]=k.useState(!1),o=Ot(t,n.onScrollButtonChange);return cr(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)<c;a(u)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?f.jsx(jB,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});EB.displayName=Zw;var jB=k.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...i}=e,a=Do("SelectScrollButton",r),o=k.useRef(null),s=cv(r),l=k.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return k.useEffect(()=>()=>l(),[l]),cr(()=>{var u;const c=s().find(d=>d.ref.current===document.activeElement);(u=c==null?void 0:c.ref.current)==null||u.scrollIntoView({block:"nearest"})},[s]),f.jsx(Ze.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:Le(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:Le(i.onPointerMove,()=>{var c;(c=a.onItemLeave)==null||c.call(a),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:Le(i.onPointerLeave,()=>{l()})})}),wie="SelectSeparator",OB=k.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return f.jsx(Ze.div,{"aria-hidden":!0,...n,ref:t})});OB.displayName=wie;var Jw="SelectArrow",Sie=k.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=uv(r),a=Mo(Jw,r),o=Do(Jw,r);return a.open&&o.position==="popper"?f.jsx(FD,{...i,...n,ref:t}):null});Sie.displayName=Jw;var _ie="SelectBubbleInput",PB=k.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const i=k.useRef(null),a=Ot(n,i),o=gne(t);return k.useEffect(()=>{const s=i.current;if(!s)return;const l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==t&&u){const d=new Event("change",{bubbles:!0});u.call(s,t),s.dispatchEvent(d)}},[o,t]),f.jsx(Ze.select,{...r,style:{...SM,...r.style},ref:a,defaultValue:t})});PB.displayName=_ie;function CB(e){return e===""||e===void 0}function NB(e){const t=ai(e),r=k.useRef(""),n=k.useRef(0),i=k.useCallback(o=>{const s=r.current+o;t(s),function l(c){r.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),a=k.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return k.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,a]}function RB(e,t,r){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let o=kie(e,Math.max(a,0));i.length===1&&(o=o.filter(c=>c!==r));const l=o.find(c=>c.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}function kie(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var Aie=oB,IB=lB,Tie=uB,Eie=dB,jie=fB,$B=hB,Oie=gB,MB=xB,DB=SB,Pie=_B,Cie=AB,LB=TB,BB=EB,FB=OB;const NP=Aie,RP=Tie,Qw=k.forwardRef(({className:e,children:t,...r},n)=>f.jsxs(IB,{ref:n,className:Pt("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
829ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,f.jsx(Eie,{asChild:!0,children:f.jsx(lf,{className:"h-4 w-4 opacity-50"})})]}));Qw.displayName=IB.displayName;const UB=k.forwardRef(({className:e,...t},r)=>f.jsx(LB,{ref:r,className:Pt("flex cursor-default items-center justify-center py-1",e),...t,children:f.jsx(vW,{className:"h-4 w-4"})}));UB.displayName=LB.displayName;const VB=k.forwardRef(({className:e,...t},r)=>f.jsx(BB,{ref:r,className:Pt("flex cursor-default items-center justify-center py-1",e),...t,children:f.jsx(lf,{className:"h-4 w-4"})}));VB.displayName=BB.displayName;const e1=k.forwardRef(({className:e,children:t,position:r="popper",...n},i)=>f.jsx(jie,{children:f.jsxs($B,{ref:i,className:Pt("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",r==="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:r,...n,children:[f.jsx(UB,{}),f.jsx(Oie,{className:Pt("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),f.jsx(VB,{})]})}));e1.displayName=$B.displayName;const Nie=k.forwardRef(({className:e,...t},r)=>f.jsx(MB,{ref:r,className:Pt("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Nie.displayName=MB.displayName;const t1=k.forwardRef(({className:e,children:t,...r},n)=>f.jsxs(DB,{ref:n,className:Pt("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...r,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(Cie,{children:f.jsx(N_,{className:"h-4 w-4"})})}),f.jsx(Pie,{children:t})]}));t1.displayName=DB.displayName;const Rie=k.forwardRef(({className:e,...t},r)=>f.jsx(FB,{ref:r,className:Pt("-mx-1 my-1 h-px bg-muted",e),...t}));Rie.displayName=FB.displayName;const zB=["Tennis Club","Pickleball Club","Multi-Sport Club","Fitness Club","Country Club","Recreation Center","Other"],WB=["Google","Social Media","Referral","Event","Other"],Iie=ene({name:Go().trim().min(1,"Name is required").max(100),email:Go().trim().email("Invalid email").max(255),city:Go().trim().min(1,"City is required").max(100),state:Go().trim().min(1,"State is required").max(100),companyName:Go().trim().max(200).optional().or(bP("")),businessType:xP(zB,{required_error:"Please select a business type"}),howDidYouHear:xP(WB,{required_error:"Please select an option"}),additionalDetails:Go().trim().max(2e3).optional().or(bP("")),website:Go().optional()}),$ie=()=>{const e=k.useRef(Date.now()),[t,r]=k.useState(!1),n=k.useRef(!1),i=_re({resolver:Ere(Iie),defaultValues:{name:"",email:"",city:"",state:"",companyName:"",businessType:void 0,howDidYouHear:void 0,additionalDetails:"",website:""}});k.useEffect(()=>{const s=l=>{var c;l.origin==="https://calendly.com"&&((c=l.data)==null?void 0:c.event)==="calendly.event_scheduled"&&typeof window<"u"&&window.fbq&&window.fbq("track","Schedule")};return window.addEventListener("message",s),()=>window.removeEventListener("message",s)},[]);const a=()=>{!n.current&&typeof window<"u"&&window.fbq&&(window.fbq("track","Lead",{content_name:"Send Message"}),n.current=!0)},o=async s=>{if(s.website||Date.now()-e.current<3e3)return;const{website:l,...c}=s;a();try{const u={name:c.name,email:c.email,city:c.city,state:c.state,company_name:c.companyName||null,business_type:c.businessType,how_did_you_hear:c.howDidYouHear,additional_details:c.additionalDetails||null},{error:d}=await kr.from("contact_submissions").insert(u);
829if(d)throw d;kr.functions.invoke("notify-team",{body:{...u,type:"contact"}}).catch(console.error),r(!0),Vx({title:"Message sent!",description:"We'll be in touch shortly."})}catch(u){console.error("Submission error:",u),Vx({title:"Something went wrong",description:"Please try again or email us directly.",variant:"destructive"})}};return f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(Wr,{}),f.jsx("section",{className:"pt-32 md:pt-40 pb-16 text-center",children:f.jsxs("div",{className:"container mx-auto px-6 max-w-3xl",children:[f.jsx(q.h1,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6},className:"font-display font-800 text-4xl md:text-5xl tracking-tight text-foreground",children:"Let's talk about your club."}),f.jsx(q.p,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"mt-4 text-lg text-muted-foreground max-w-xl mx-auto",children:"Whether you want a walkthrough, have questions, or just want to learn more, we'd love to hear from you."})]})}),f.jsx("section",{className:"pb-24",children:f.jsx("div",{className:"container mx-auto px-6 max-w-6xl",children:f.jsxs("div",{className:"grid lg:grid-cols-[3fr_1fr] gap-12",children:[f.jsxs(q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},children:[f.jsx("h2",{className:"font-display font-700 text-2xl mb-6 text-foreground",children:"Contact Us"}),t?f.jsxs("div",{className:"rounded-2xl border border-border bg-muted/50 p-12 text-center",children:[f.jsx("p",{className:"text-lg font-semibold text-foreground",children:"Thank you!"}),f.jsx("p",{className:"mt-2 text-muted-foreground",children:"We'll get back to you soon."})]}):f.jsx(ane,{...i,children:f.jsxs("form",{onSubmit:i.handleSubmit(o),className:"space-y-5",children:[f.jsx("div",{className:"absolute opacity-0 pointer-events-none","aria-hidden":"true",tabIndex:-1,children:f.jsx("input",{...i.register("website"),tabIndex:-1,autoComplete:"off"})}),f.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[f.jsx($a,{control:i.control,name:"name",render:({field:s})=>f.jsxs(Ki,{children:[f.jsx(Yi,{children:"Name *"}),f.jsx(Gi,{children:f.jsx(jl,{placeholder:"John Doe",...s})}),f.jsx(Xi,{})]})}),f.jsx($a,{control:i.control,name:"email",render:({field:s})=>f.jsxs(Ki,{children:[f.jsx(Yi,{children:"Email *"}),f.jsx(Gi,{children:f.jsx(jl,{type:"email",placeholder:"[email protected]",...s})}),f.jsx(Xi,{})]})})]}),f.jsxs("div",{className:"grid sm:grid-cols-2 gap-5",children:[f.jsx($a,{control:i.control,name:"city",render:({field:s})=>f.jsxs(Ki,{children:[f.jsx(Yi,{children:"City *"}),f.jsx(Gi,{children:f.jsx(jl,{placeholder:"Miami",...s})}),f.jsx(Xi,{})]})}),f.jsx($a,{control:i.control,name:"state",render:({field:s})=>f.jsxs(Ki,{children:[f.jsx(Yi,{children:"State *"}),f.jsx(Gi,{children:f.jsx(jl,{placeholder:"FL",...s})}),f.jsx(Xi,{})]})})]}),f.jsx($a,{control:i.control,name:"companyName",render:({field:s})=>f.jsxs(Ki,{children:[f.jsx(Yi,{children:"Company Name"}),f.jsx(Gi,{children:f.jsx(jl,{placeholder:"Sunset Tennis Club",...s})}),f.jsx(Xi,{})]})}),f.jsx($a,{control:i.control,name:"businessType",render:({field:s})=>f.jsxs(Ki,{children:[f.jsx(Yi,{children:"Business Type *"}),f.jsxs(NP,{onValueChange:s.onChange,defaultValue:s.value,children:[f.jsx(Gi,{children:f.jsx(Qw,{children:f.jsx(RP,{placeholder:"Select type"})})}),f.jsx(e1,{children:zB.map(l=>f.jsx(t1,{value:l,children:l},l))})]}),f.jsx(Xi,{})]})}),f.jsx($a,{control:i.control,name:"howDidYouHear",render:({field:s})=>f.jsxs(Ki,{children:[f.jsx(Yi,{children:"How did you find out about clubcloud? *"}),f.jsxs(NP,{onValueChange:s.onChange,defaultValue:s.value,children:[f.jsx(Gi,{children:f.jsx(Qw,{children:f.jsx(RP,{placeholder:"Select one"})})}),f.jsx(e1,{children:WB.map(l=>f.jsx(t1,{value:l,children:l},l))})]}),f.jsx(Xi,{})]})}),f.jsx($a,{control:i.control,name:"additionalDetails",render:({field:s})=>f.jsxs(Ki,{children:[f.jsx(Yi,{children:"Additional Details"}),f.jsx(Gi,{children:f.jsx(Y4,{rows:4,placeholder:"Tell us about your club...",...s})}),f.jsx(Xi,{})]})}),f.jsx("button",{type:"submit",onClick:a,className:"w-full inline-flex items-center justify-center rounded-full bg-primary px-8 py-3.5 text-base font-semibold text-primary-foreground hover:opacity-90 transition-opacity",children:"Send Message"})]})})]}),f.jsxs(q.div,{initial:{opacity:0,y:20}
829,animate:{opacity:1,y:0},transition:{duration:.6,delay:.3},children:[f.jsx("h2",{className:"font-display font-700 text-2xl mb-6 text-foreground",children:"Schedule a Demo"}),f.jsx(rne,{})]})]})})}),f.jsx(Hr,{})]})},Mie=[{icon:fu,title:"Scheduling",path:"/features/scheduling",desc:"Real-time court, class, and lesson booking with zero ambiguity. Linked locations handle multi-use spaces automatically."},{icon:_h,title:"Events",path:"/features/events",desc:"Enrollment, waitlists, rosters, attendance, and payment capture. Automated from registration through completion."},{icon:Lg,title:"Members",path:"/features/members",desc:"Memberships, credits, passes, packages, billing, and attendance history unified in a single member profile."},{icon:Bg,title:"CRM & Website",path:"/features/crm",desc:"Lead capture, automated follow-up, conversion tracking, and a drag-and-drop website builder, integrated from the start."},{icon:Js,title:"Payments & POS",path:"/features/payments",desc:"One financial system for class billing, subscriptions, retail, restaurant tabs, and tips. Every transaction tracked."},{icon:xh,title:"Reporting",path:"/features/reporting",desc:"Utilization, instructor hours, revenue breakdown, membership churn, outstanding balances, and spend-per-member. All in seconds."},{icon:M_,title:"Member Portal",path:"/features/member-portal",desc:"Members book, pay, enroll, and manage their accounts. Instructors view rosters, track attendance, and adjust schedules."},{icon:Sh,title:"Communication",path:"/features/communication",desc:"Targeted email campaigns and SMS messaging built into the core platform. No third-party tools required."},{icon:rD,title:"Integrations",path:"/features/integrations",desc:"DUPR, USTA/WTN/NTRP, and PlaySight connections that enhance competitive play and member engagement."}],Die={hidden:{},show:{transition:{staggerChildren:.06}}},Lie={hidden:{opacity:0,y:20},show:{opacity:1,y:0,transition:{duration:.5}}},Bie=()=>f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(Wr,{}),f.jsxs("section",{className:"pt-32 md:pt-40 pb-16 relative overflow-hidden",children:[f.jsx("div",{className:"glow-blob top-20 right-[-10%] w-[500px] h-[500px] bg-accent/10 blur-[120px]"}),f.jsxs("div",{className:"container mx-auto px-6 max-w-3xl text-center relative z-10",children:[f.jsx(q.h1,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6},className:"font-display font-800 text-4xl md:text-5xl tracking-tight text-foreground",children:"The operating system for modern clubs."}),f.jsx(q.p,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"mt-5 text-lg text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:"clubcloud⢠connects every operational layer of your club: scheduling, payments, members, events, reporting, and communication, all in one controlled environment. No bolt-ons. No workarounds. One system that runs the way your club actually operates."})]})]}),f.jsx("section",{className:"section-padding section-alt",children:f.jsx("div",{className:"container mx-auto px-6 max-w-5xl",children:f.jsx(q.div,{variants:Die,initial:"hidden",whileInView:"show",viewport:{once:!0},className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:Mie.map(e=>f.jsx(q.div,{variants:Lie,children:f.jsxs(Ke,{to:e.path,className:"group block rounded-2xl border border-border bg-background p-7 hover:shadow-xl hover:border-accent/40 transition-all duration-300 hover:-translate-y-1 h-full",children:[f.jsx("div",{className:"mb-4 inline-flex items-center justify-center w-14 h-14 rounded-xl bg-accent/10 group-hover:bg-accent/20 transition-colors",children:f.jsx(e.icon,{className:"w-7 h-7 text-accent"})}),f.jsx("h3",{className:"font-display font-600 text-base text-foreground mb-2",children:e.title}),f.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]})},e.title))})})}),f.jsxs("section",{className:"section-padding relative overflow-hidden",children:[f.jsx("div",{className:"absolute inset-0 bg-primary"}),f.jsx("div",{className:"container mx-auto px-6 max-w-3xl text-center relative z-10",children:f.jsxs(q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[f.jsx("h2",{className:"font-display font-700 text-3xl md:text-4xl tracking-tight text-primary-foreground",children:"See how each piece works for your club."}),f.jsx("div",{className:"mt-8",children:f.jsx(Ke,{to:"/demo",className:"inline-flex items-center justify-center rounded-full bg-accent px-8 py-3.5 text-base font-semibold text-accent-foreground hover:opacity-90 transition-opacity",children:"Schedule a demo"})})]})})]}),f.jsx(Hr,{})]}),IP={hidden:{},show:{transition:{staggerChildren:.08}}},$P={hidden:{opacity:0,y:20},show:{opacity:1,y:0,transition:{duration:.5}}},el=({headline:e,subheadline:t,capabilities:r,impact:n,ctaText:i="Schedule a demo",ctaHeadline:a="Ready to see it in action?",centerLastItem:o=!1,children:s,beforeImpact:l,capabilitiesOverride:c,impactOverride:u,heroImage:d,heroImageAlt:h,heroLabel:p})=>f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(Wr,{}),f.jsxs("section",{className:"relative overflow-hidden",style:{background:"linear-gradient(135deg, hsl(216 45% 11%) 0%, hsl(210 40% 18%) 60%, hsl(195 50% 22%) 100%)"},children:[f.jsx("div",{className:"absolute inset-0 texture-lines opacity-30"}),f.jsx("div",{className:"glow-blob top-[10%] right-[5%] w-[500px] h-[500px] bg-accent/12 blur-[140px]"}),f.jsx("div",{className:"glow-blob bottom-[5%] left-[10%] w-[350px] h-[350px] bg-accent/8 blur-[100px]"}),f.jsxs("div",{className:"container mx-auto px-6 max-w-3xl text-center relative z-10 pt-32 md:pt-40 pb-20 md:pb-24",children:[p&&f.jsx(q.p,{initial:{opacity:0,y:16}
829,animate:{opacity:1,y:0},transition:{duration:.5},className:"text-sm font-semibold uppercase tracking-widest text-accent mb-4",children:p}),f.jsx(q.h1,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6},className:"font-display font-800 text-4xl md:text-5xl xl:text-[3.5rem] tracking-tight text-primary-foreground leading-[1.1]",children:e}),f.jsx(q.p,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"mt-5 text-lg text-primary-foreground/70 max-w-2xl mx-auto leading-relaxed",children:t}),f.jsxs(q.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"mt-8 flex flex-wrap items-center justify-center gap-4",children:[f.jsxs(Ke,{to:"/demo",className:"inline-flex items-center justify-center gap-2 rounded-full bg-accent px-8 py-3.5 text-base font-semibold text-accent-foreground hover:brightness-110 transition-all shadow-lg shadow-accent/20",children:[i,f.jsx(Ds,{className:"w-4 h-4"})]}),f.jsx(Ke,{to:"/features",className:"inline-flex items-center justify-center rounded-full border border-primary-foreground/25 px-7 py-3.5 text-base font-medium text-primary-foreground hover:bg-primary-foreground/10 transition-colors",children:"All Features"})]})]})]}),d&&f.jsx("section",{className:"pb-16 -mt-10 relative z-20",children:f.jsx("div",{className:"container mx-auto px-6 max-w-5xl",children:f.jsx(q.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7,delay:.3},className:"rounded-2xl overflow-hidden border border-border shadow-2xl",children:f.jsx("img",{src:d,alt:h||"Feature preview",className:"w-full h-auto object-cover",loading:"lazy"})})})}),s&&f.jsx("div",{className:"pt-10 md:pt-16",children:s}),c||f.jsxs("section",{className:`${s?"pt-14 md:pt-20":"pt-8 md:pt-12"} pb-20 md:pb-28 section-alt relative overflow-hidden`,children:[f.jsx("div",{className:"glow-blob top-[-5%] left-[-5%] w-[400px] h-[400px] bg-accent/10 blur-[100px]"}),f.jsxs("div",{className:"container mx-auto px-6 max-w-5xl relative z-10",children:[f.jsxs(q.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[f.jsx("p",{className:"text-sm font-semibold uppercase tracking-widest text-accent mb-3",children:"Capabilities"}),f.jsx("h2",{className:"font-display font-800 text-2xl md:text-3xl xl:text-4xl tracking-tight text-foreground",children:"What's included."})]}),f.jsx(q.div,{variants:IP,initial:"hidden",whileInView:"show",viewport:{once:!0,margin:"-60px"},className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-3",children:r.map((y,m)=>f.jsxs(q.div,{variants:$P,className:`group rounded-2xl border border-border card-border-accent bg-background p-7 xl:p-9 hover:shadow-xl hover:border-accent/40 transition-all duration-300 hover:-translate-y-1${o&&m===r.length-1?" lg:col-span-3 lg:max-w-sm lg:mx-auto lg:w-full":""}`,children:[f.jsx("div",{className:"mb-4 inline-flex items-center justify-center w-14 h-14 rounded-xl bg-accent/10 group-hover:bg-accent/20 transition-colors",children:f.jsx(y.icon,{className:"w-7 h-7 text-accent"})}),f.jsx("h3",{className:"font-display font-700 text-base text-foreground mb-2",children:y.title}),f.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:y.desc})]},y.title))})]})]}),l,u||f.jsx("section",{className:"section-padding relative overflow-hidden",children:f.jsxs("div",{className:"container mx-auto px-6 max-w-5xl relative z-10",children:[f.jsx(q.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"font-display font-800 text-2xl md:text-3xl tracking-tight text-foreground mb-10 text-center",children:"The impact"}),f.jsx(q.div,{variants:IP,initial:"hidden",whileInView:"show",viewport:{once:!0,margin:"-60px"},className:`grid gap-5 ${n.length<=3?"sm:grid-cols-3":"sm:grid-cols-2 lg:grid-cols-4"}`,children:n.map((y,m)=>f.jsxs(q.div,{variants:$P,className:"group relative rounded-2xl border border-border bg-background p-7 text-center hover:border-accent/40 hover:shadow-xl transition-all duration-300 hover:-translate-y-1",children:[f.jsx("div",{className:"mx-auto mb-4 inline-flex items-center justify-center w-12 h-12 rounded-full bg-warm/10 group-hover:bg-warm/20 transition-colors",children:f.jsx("svg",{className:"w-6 h-6 text-warm",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}),f.jsx("p",{className:"text-foreground font-semibold text-sm leading-relaxed",children:y.text})]},m))})]})}),f.jsx("section",{className:"section-padding relative overflow-hidden",children:f.jsx("div",{className:"container mx-auto px-6 max-w-3xl text-center relative z-10",children:f.jsxs(q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[f.jsx("h2",{className:"font-display font-800 text-3xl md:text-4xl tracking-tight text-foreground",children:a}),f.jsx("div",{className:"mt-8",children:f.jsxs(Ke,{to:"/demo",className:"inline-flex items-center justify-center gap-2 rounded-full bg-accent px-8 py-3.5 text-base font-semibold text-accent-foreground hover:brightness-110 transition-all shadow-lg shadow-accent/20",children:[i,f.jsx(Ds,{className:"w-4 h-4"})]})})]})})}),f.jsx(Hr,{})]}),Lo=({items:e})=>{const t=e.slice(0,-1),r=e[e.length-1];return f.jsx("section",{className:"section-padding relative overflow-hidden",children:f.jsx("div",{className:"container mx-auto px-6 max-w-3xl text-center relative z-10",children:f.jsxs(q.p,{initial:{opacity:0,y:16,filter:"blur(4px)"},whileInView:{opacity:1,y:0,filter:"blur(0px)"},viewport:{once:!0,amount:.3},transition:{duration:.6,ease:[.16,1,.3,1]},className:"text-xl md:text-2xl leading-relaxed font-display",children:[t.map((n,i)=>f.jsxs("span",{children:[f.jsx("span",{className:"font-700 text-foreground",children:n.text})," "]},i)),f.jsx("span",{className:"text-muted-foreground",children:r.text})]})})})},Fie="/assets/scheduling_hero_monitor-BVRCiWdM.webp",HB="/assets/courts_aerial-Clu32epV.webp",Uie=[{icon:fu,title:"Court reservations",desc:"Book tennis, pickleball, padel courts, and golf simulators with real-time availability. Members reserve from the Member Portal; staff manage from the admin calendar. Split-cost booking lets members divide
829court fees at the time of reservation."},{icon:QM,title:"Linked locations",desc:"For facilities where multiple court types share the same physical space, Linked Locations automatically prevents double-bookings across overlapping surfaces. No manual conflict checks required."},{icon:$_,title:"Recurring class scheduling",desc:"Build repeating class schedules with custom rules for enrollment caps, pricing tiers, and instructor assignments. Classes populate automatically on the calendar and the Member Portal."},{icon:HW,title:"Event booking",desc:"Schedule clinics, camps, social events, tournaments, and ticketed public events directly from the same calendar. Enrollment, waitlists, and payment capture are handled automatically."},{icon:ZM,title:"Personal training management",desc:"Sell and track personal training packages. Instructors and members can schedule sessions directly, with package balances automatically updated after each session."},{icon:C_,title:"Automated waitlists",desc:"When a court or class reaches capacity, members are placed on a waitlist and automatically notified when a spot opens. No manual follow-up."},{icon:yW,title:"Calendar sync",desc:"Members and instructors can sync their clubcloud reservations and schedules to personal calendars (Google, Apple, Outlook) so nothing gets missed."},{icon:nD,title:"Customizable booking rules",desc:"Set booking windows, advance reservation limits, cancellation policies, guest policies, and member-only restrictions by court type, time slot, or membership tier."},{icon:NW,title:"Location groups",desc:"Filter your calendar by court type, sport, or facility area. View just pickleball courts, just tennis courts, just fitness studios, or any custom grouping you define. Configure groups however you want so staff and members see exactly what's relevant."}],MP=[{text:"No double bookings."},{text:"No manual reconciliation."},{text:"No uncertainty at the front desk."},{text:"Staff spend less time managing the calendar and more time running the club."}],Vie=()=>f.jsx("section",{className:"pb-16 relative overflow-hidden bg-white",children:f.jsx("div",{className:"container mx-auto px-6 max-w-5xl",children:f.jsx(q.img,{src:Fie,alt:"Clubcloud scheduling calendar interface showing courts, clinics, and lessons",initial:{opacity:0,y:32},animate:{opacity:1,y:0},transition:{duration:.7,delay:.3},className:"w-full h-auto block",loading:"eager",fetchPriority:"high",decoding:"async"})})}),zie=()=>f.jsx("section",{className:"py-8 md:py-12 relative overflow-hidden",children:f.jsx("div",{className:"container mx-auto px-6 max-w-5xl",children:f.jsx(q.img,{src:HB,alt:"Aerial view of tennis and pickleball courts at a club facility",initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7},className:"w-full h-auto rounded-2xl border border-border shadow-xl object-cover max-h-[420px]"})})}),Wie=()=>f.jsx(el,{headline:"Precision scheduling across every surface, sport, and session type.",subheadline:"Courts, classes, lessons, and events managed in one live system. Real-time availability. Automated conflict resolution. No manual reconciliation.",capabilities:Uie,impact:MP,ctaHeadline:"See the calendar in action.",beforeImpact:f.jsx(zie,{}),impactOverride:f.jsx(Lo,{items:MP}),children:f.jsx(Vie,{})}),Hie="/assets/events_padel_group-CkaT6qrP.webp",qie=[{icon:nD,title:"Flexible enrollment module",desc:"Configure enrollment rules at the event level: set capacity limits, pricing structures (per-session, per-series, drop-in), age or membership restrictions, and payment requirements."},{icon:eD,title:"Automated waitlist management",desc:"When events reach capacity, members are automatically placed on a waitlist. When a spot opens, the next person in line is notified and can claim the spot without staff intervention."},{icon:R_,title:"Roster & attendance tracking",desc:"Instructors access live rosters through the Member Portal's instructor view. Take attendance with a tap. Attendance data flows directly into reporting."},{icon:Js,title:"Single-click payment capture",desc:"Collect enrollment fees, drop-in charges, or series payments at the point of registration. Payments are processed through the same system that handles all club transactions."},{icon:Sh,title:"Instant communication",desc:"Email or text entire class rosters, waitlisted members, or event registrants directly from the event management screen. No exp
829orting lists, no switching tools."},{icon:qM,title:"Multi-session series",desc:"Create series-based programs where members pay upfront for the full series. Track attendance session by session and manage makeups or credits within the same event record."}],DP=[{text:"Higher fill rates."},{text:"Cleaner rosters."},{text:"Less administrative friction."},{text:"Instructors focus on teaching, not paperwork."}],Kie=()=>f.jsx("section",{className:"pb-16 relative overflow-hidden bg-background",children:f.jsx("div",{className:"container mx-auto px-6 max-w-5xl",children:f.jsx(q.img,{src:Hie,alt:"Happy group of players socializing at the club",initial:{opacity:0,y:32},animate:{opacity:1,y:0},transition:{duration:.7,delay:.3},className:"w-full h-auto rounded-2xl border border-border shadow-xl object-cover max-h-[480px]",loading:"eager",fetchPriority:"high",decoding:"async"})})}),Yie=()=>f.jsx(el,{headline:"Enrollment, attendance, and payment capture, handled automatically.",subheadline:"From recurring clinics to one-time tournaments. From private lessons to public ticketed events. clubcloud manages the full lifecycle so your staff doesn't have to.",capabilities:qie,impact:DP,ctaHeadline:"See how clubcloud handles event operations.",impactOverride:f.jsx(Lo,{items:DP}),children:f.jsx(Kie,{})}),Gie="/assets/members_reception_checkin-CHZYlQtT.webp",Xie=[{icon:Lg,title:"Recurring memberships & subscriptions",desc:"Create and manage membership plans with automated recurring billing. Handle upgrades, downgrades, freezes, and cancellations from the member profile."},{icon:$W,title:"Club credits & pass packages",desc:"Sell class passes, lesson packages, and club credits. Balances update automatically as members use sessions. Staff can issue credits, apply refunds, or adjust quantities directly."},{icon:iD,title:"Tag-based segmentation",desc:"Apply custom tags based on sport, skill level, membership type, or engagement level. Use tags to filter communication, target marketing campaigns, and segment reporting."},{icon:YM,title:"Attendance & check-in history",desc:"Track every visit, class attendance, and court reservation. Identify your most active members and flag those who haven't visited recently."},{icon:YW,title:"Billing & balance management",desc:"View and manage outstanding balances, past-due invoices, payment method updates, and transaction history from the member profile."},{icon:Sh,title:"Profile-level communication",desc:"Send emails or texts to individual members directly from their profile. Communication history is logged so any staff member can see what's been sent."}],LP=[{text:"Stronger retention through proactive engagement."},{text:"Better upselling because staff can see what members actually use."},{text:"Clear financial accountability: every charge, credit, and balance visible in one place."}],Zie=()=>f.jsx("section",{className:"pb-16 relative overflow-hidden bg-background",children:f.jsx("div",{className:"container mx-auto px-6 max-w-5xl",children:f.jsx(q.img,{src:Gie,alt:"Club member scanning barcode at front desk while staff greets them",initial:{opacity:0,y:32},animate:{opacity:1,y:0},transition:{duration:.7,delay:.3},className:"w-full h-auto rounded-2xl border border-border shadow-xl object-cover max-h-[480px]",loading:"eager",fetchPriority:"high",decoding:"async"})})}),Jie=()=>f.jsx(el,{headline:"Complete member visibility. Every interaction, every transaction, one profile.",subheadline:"Memberships, passes, credits, packages, billing history, attendance, and communication, unified in a single member record that gives your staff everything they need without switching screens.",capabilities:Xie,impact:LP,centerLastItem:!0,ctaHeadline:"See how member profiles work in clubcloud.",impactOverride:f.jsx(Lo,{items:LP}),children:f.jsx(Zie,{})}),Qie=[{icon:I_,title:"Drag-and-drop website builder",desc:"Build and maintain your club's website without writing code. Full control over layout, content, and design. Update pages, add programming schedules, or promote events. No developer required."},{icon:Bg,title:"Direct lead capture",desc:"Every form submission, inquiry, and trial request from your website flows directly into your CRM pipeline. No manual entry, no lost leads, no syncing between separate tools."},{icon:xh,title:"Pipeline & conversion tracking",desc:"Visualize where every lead sits in your membership pipeline. Track which sources produce the most inquiries, which follow-up sequences convert, and where prospects drop off."}
829,{icon:DW,title:"Self-editing capability",desc:"Your team can update the website themselves: add new class schedules, change pricing, swap images, or build landing pages for seasonal programs. No developer required."}],BP=[{text:"No lost inquiries."},{text:"No disconnected systems."},{text:"Predictable growth because your website, CRM, and communication tools all live inside the same platform."}],eae=()=>f.jsx(el,{headline:"Your pipeline, your website, your system, integrated from day one.",subheadline:"Capture leads from your own website, track them through your pipeline, automate follow-up, and convert them into members without switching between disconnected tools.",capabilities:Qie,impact:BP,ctaHeadline:"See how the CRM and website work together.",impactOverride:f.jsx(Lo,{items:BP})}),tae="/assets/process_payment-tkv_FN8Q.avif",rae=()=>f.jsx("section",{className:"pb-16 relative overflow-hidden",children:f.jsx("div",{className:"container mx-auto px-6 flex justify-center",children:f.jsxs("div",{className:"relative",children:[f.jsx(q.div,{initial:{opacity:0,y:32},animate:{opacity:1,y:0},transition:{duration:.7,delay:.3},className:"relative w-[340px] md:w-[480px] mx-auto z-10",children:f.jsx("div",{className:"rounded-2xl border border-border shadow-2xl overflow-hidden bg-background",children:f.jsx("img",{src:tae,alt:"Card tapping a payment terminal to process a transaction",className:"w-full h-auto object-cover"})})}),f.jsx("div",{className:"absolute inset-0 -z-10 flex items-center justify-center",children:f.jsx("div",{className:"w-[400px] h-[400px] md:w-[560px] md:h-[560px] rounded-full bg-accent/10 blur-[80px]"})})]})})}),nae=[{icon:Js,title:"Class, lesson & event billing",desc:"Collect fees at the point of enrollment for classes, lessons, clinics, camps, and events. One-time payments, series-based billing, and drop-in charges, all handled in one system."},{icon:$_,title:"Subscription & recurring billing",desc:"Automate membership dues, personal training packages, locker rentals, and any recurring charge. The system handles billing cycles, failed payment retries, and balance tracking."},{icon:VW,title:"Retail point of sale",desc:"Process payments for pro shop merchandise, drinks, snacks, equipment, and apparel through an integrated POS. Inventory connects to your financial reporting."},{icon:KW,title:"Restaurant & F&B tabs",desc:"Open tabs for members at your restaurant, bar, or snack bar. Accept tips, split checks, and track food and beverage revenue separately."},{icon:UW,title:"Revenue assurance",desc:"clubcloud's revenue assurance tools align access with account status, so nothing falls through the cracks. You don't have a demand problem. You have a collection problem."},{icon:xh,title:"Unified financial reporting",desc:"Every transaction, regardless of source, flows into a single reporting framework. Revenue from memberships, events, retail, and F&B is tracked and visible in one place."}],FP=[{text:"No reconciliation headaches."},{text:"No disconnected processors."},{text:"Clear margins across every revenue line."}],iae=()=>f.jsx(el,{headline:"One financial system across every revenue stream your club operates.",subheadline:"Class billing, subscriptions, retail sales, restaurant tabs, and tips, all processed, tracked, and reported in a single system. No external processors. No reconciliation headaches.",capabilities:nae,impact:FP,ctaHeadline:"See how clubcloud captures every dollar.",impactOverride:f.jsx(Lo,{items:FP}),children:f.jsx(rae,{})});var aae=Array.isArray,qr=aae,oae=typeof Hh=="object"&&Hh&&Hh.Object===Object&&Hh,qB=oae,sae=qB,lae=typeof self=="object"&&self&&self.Object===Object&&self,cae=sae||lae||Function("return this")(),Bi=cae,uae=Bi,dae=uae.Symbol,Nh=dae,UP=Nh,KB=Object.prototype,fae=KB.hasOwnProperty,hae=KB.toString,Gu=UP?UP.toStringTag:void 0;function pae(e){var t=fae.call(e,Gu),r=e[Gu];try{e[Gu]=void 0;var n=!0}catch{}var i=hae.call(e);return n&&(t?e[Gu]=r:delete e[Gu]),i}var mae=pae,yae=Object.prototype,gae=yae.toString;function vae(e){return gae.call(e)}var bae=vae,VP=Nh,xae=mae,wae=bae,Sae="[object Null]",_ae="[object Undef
829ined]",zP=VP?VP.toStringTag:void 0;function kae(e){return e==null?e===void 0?_ae:Sae:zP&&zP in Object(e)?xae(e):wae(e)}var Aa=kae;function Aae(e){return e!=null&&typeof e=="object"}var Ta=Aae,Tae=Aa,Eae=Ta,jae="[object Symbol]";function Oae(e){return typeof e=="symbol"||Eae(e)&&Tae(e)==jae}var Su=Oae,Pae=qr,Cae=Su,Nae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rae=/^\w*$/;function Iae(e,t){if(Pae(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Cae(e)?!0:Rae.test(e)||!Nae.test(e)||t!=null&&e in Object(t)}var qk=Iae;function $ae(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Bo=$ae;const _u=Ye(Bo);var Mae=Aa,Dae=Bo,Lae="[object AsyncFunction]",Bae="[object Function]",Fae="[object GeneratorFunction]",Uae="[object Proxy]";function Vae(e){if(!Dae(e))return!1;var t=Mae(e);return t==Bae||t==Fae||t==Lae||t==Uae}var Kk=Vae;const xe=Ye(Kk);var zae=Bi,Wae=zae["__core-js_shared__"],Hae=Wae,y0=Hae,WP=function(){var e=/[^.]+$/.exec(y0&&y0.keys&&y0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function qae(e){return!!WP&&WP in e}var Kae=qae,Yae=Function.prototype,Gae=Yae.toString;function Xae(e){if(e!=null){try{return Gae.call(e)}catch{}try{return e+""}catch{}}return""}var YB=Xae,Zae=Kk,Jae=Kae,Qae=Bo,eoe=YB,toe=/[\\^$.*+?()[\]{}|]/g,roe=/^\[object .+?Constructor\]$/,noe=Function.prototype,ioe=Object.prototype,aoe=noe.toString,ooe=ioe.hasOwnProperty,soe=RegExp("^"+aoe.call(ooe).replace(toe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function loe(e){if(!Qae(e)||Jae(e))return!1;var t=Zae(e)?soe:roe;return t.test(eoe(e))}var coe=loe;function uoe(e,t){return e==null?void 0:e[t]}var doe=uoe,foe=coe,hoe=doe;function poe(e,t){var r=hoe(e,t);return foe(r)?r:void 0}var tl=poe,moe=tl,yoe=moe(Object,"create"),dv=yoe,HP=dv;function goe(){this.__data__=HP?HP(null):{},this.size=0}var voe=goe;function boe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var xoe=boe,woe=dv,Soe="__lodash_hash_undefined__",_oe=Object.prototype,koe=_oe.hasOwnProperty;function Aoe(e){var t=this.__data__;if(woe){var r=t[e];return r===Soe?void 0:r}return koe.call(t,e)?t[e]:void 0}var Toe=Aoe,Eoe=dv,joe=Object.prototype,Ooe=joe.hasOwnProperty;function Poe(e){var t=this.__data__;return Eoe?t[e]!==void 0:Ooe.call(t,e)}var Coe=Poe,Noe=dv,Roe="__lodash_hash_undefined__";function Ioe(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Noe&&t===void 0?Roe:t,this}var $oe=Ioe,Moe=voe,Doe=xoe,Loe=Toe,Boe=Coe,Foe=$oe;function ku(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ku.prototype.clear=Moe;ku.prototype.delete=Doe;ku.prototype.get=Loe;ku.prototype.has=Boe;ku.prototype.set=Foe;var Uoe=ku;function Voe(){this.__data__=[],this.size=0}var zoe=Voe;function Woe(e,t){return e===t||e!==e&&t!==t}var Yk=Woe,Hoe=Yk;function qoe(e,t){for(var r=e.length;r--;)if(Hoe(e[r][0],t))return r;return-1}var fv=qoe,Koe=fv,Yoe=Array.prototype,Goe=Yoe.splice;function Xoe(e){var t=this.__data__,r=Koe(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Goe.call(t,r,1),--this.size,!0}var Zoe=Xoe,Joe=fv;function Qoe(e){var t=this.__data__,r=Joe(t,e);return r<0?void 0:t[r][1]}var ese=Qoe,tse=fv;function rse(e){return tse(this.__data__,e)>-1}var nse=rse,ise=fv;function ase(e,t){var r=this.__data__,n=ise(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var ose=ase,sse=zoe,lse=Zoe,cse=ese,use=nse,dse=ose;function Au(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Au.prototype.clear=sse;Au.prototype.delete=lse;Au.prototype.get=cse;Au.prototype.has=use;Au.prototype.set=dse;
vendor: 1,439 bytes, line 829
829var hv=Au,fse=tl,hse=Bi,pse=fse(hse,"Map"),Gk=pse,qP=Uoe,mse=hv,yse=Gk;function gse(){this.size=0,this.__data__={hash:new qP,map:new(yse||mse),string:new qP}}var vse=gse;function bse(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var xse=bse,wse=xse;function Sse(e,t){var r=e.__data__;return wse(t)?r[typeof t=="string"?"string":"hash"]:r.map}var pv=Sse,_se=pv;function kse(e){var t=_se(this,e).delete(e);return this.size-=t?1:0,t}var Ase=kse,Tse=pv;function Ese(e){return Tse(this,e).get(e)}var jse=Ese,Ose=pv;function Pse(e){return Ose(this,e).has(e)}var Cse=Pse,Nse=pv;function Rse(e,t){var r=Nse(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Ise=Rse,$se=vse,Mse=Ase,Dse=jse,Lse=Cse,Bse=Ise;function Tu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Tu.prototype.clear=$se;Tu.prototype.delete=Mse;Tu.prototype.get=Dse;Tu.prototype.has=Lse;Tu.prototype.set=Bse;var Xk=Tu,GB=Xk,Fse="Expected a function";function Zk(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Fse);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(Zk.Cache||GB),r}Zk.Cache=GB;var XB=Zk;const Use=Ye(XB);var Vse=XB,zse=500;function Wse(e){var t=Vse(e,function(n){return r.size===zse&&r.clear(),n}
vendor: 6,743 bytes, lines 829-837
829),r=t.cache;return t}var Hse=Wse,qse=Hse,Kse=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yse=/\\(\\)?/g,Gse=qse(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Kse,function(r,n,i,a){t.push(i?a.replace(Yse,"$1"):n||r)}),t}),Xse=Gse;function Zse(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Jk=Zse,KP=Nh,Jse=Jk,Qse=qr,ele=Su,tle=1/0,YP=KP?KP.prototype:void 0,GP=YP?YP.toString:void 0;function ZB(e){if(typeof e=="string")return e;if(Qse(e))return Jse(e,ZB)+"";if(ele(e))return GP?GP.call(e):"";var t=e+"";return t=="0"&&1/e==-tle?"-0":t}var rle=ZB,nle=rle;function ile(e){return e==null?"":nle(e)}var JB=ile,ale=qr,ole=qk,sle=Xse,lle=JB;function cle(e,t){return ale(e)?e:ole(e,t)?[e]:sle(lle(e))}var QB=cle,ule=Su,dle=1/0;function fle(e){if(typeof e=="string"||ule(e))return e;var t=e+"";return t=="0"&&1/e==-dle?"-0":t}var mv=fle,hle=QB,ple=mv;function mle(e,t){t=hle(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ple(t[r++])];return r&&r==n?e:void 0}var Qk=mle,yle=Qk;function gle(e,t,r){var n=e==null?void 0:yle(e,t);return n===void 0?r:n}var e5=gle;const on=Ye(e5);function vle(e){return e==null}var ble=vle;const Ae=Ye(ble);var xle=Aa,wle=qr,Sle=Ta,_le="[object String]";function kle(e){return typeof e=="string"||!wle(e)&&Sle(e)&&xle(e)==_le}var Ale=kle;const Vs=Ye(Ale);var t5={exports:{}},Je={};/** 830 * @license React 831 * react-is.production.min.js 832 * 833 * Copyright (c) Facebook, Inc. and its affiliates. 834 * 835 * This source code is licensed under the MIT license found in the 836 * LICENSE file in the root directory of this source tree. 837 */var eA=Symbol.for("react.element"),tA=Symbol.for("react.portal"),yv=Symbol.for("react.fragment"),gv=Symbol.for("react.strict_mode"),vv=Symbol.for("react.profiler"),bv=Symbol.for("react.provider"),xv=Symbol.for("react.context"),Tle=Symbol.for("react.server_context"),wv=Symbol.for("react.forward_ref"),Sv=Symbol.for("react.suspense"),_v=Symbol.for("react.suspense_list"),kv=Symbol.for("react.memo"),Av=Symbol.for("react.lazy"),Ele=Symbol.for("react.offscreen"),r5;r5=Symbol.for("react.module.reference");function Pn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case eA:switch(e=e.type,e){case yv:case vv:case gv:case Sv:case _v:return e;default:switch(e=e&&e.$$typeof,e){case Tle:case xv:case wv:case Av:case kv:case bv:return e;default:return t}}case tA:return t}}}Je.ContextConsumer=xv;Je.ContextProvider=bv;Je.Element=eA;Je.ForwardRef=wv;Je.Fragment=yv;Je.Lazy=Av;Je.Memo=kv;Je.Portal=tA;Je.Profiler=vv;Je.StrictMode=gv;Je.Suspense=Sv;Je.SuspenseList=_v;Je.isAsyncMode=function(){return!1};Je.isConcurrentMode=function(){return!1};Je.isContextConsumer=function(e){return Pn(e)===xv};Je.isContextProvider=function(e){return Pn(e)===bv};Je.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===eA};Je.isForwardRef=function(e){return Pn(e)===wv};Je.isFragment=function(e){return Pn(e)===yv};Je.isLazy=function(e){return Pn(e)===Av};Je.isMemo=function(e){return Pn(e)===kv};Je.isPortal=function(e){return Pn(e)===tA};Je.isProfiler=function(e){return Pn(e)===vv};Je.isStrictMode=function(e){return Pn(e)===gv};Je.isSuspense=function(e){return Pn(e)===Sv};Je.isSuspenseList=function(e){return Pn(e)===_v};Je.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===yv||e===vv||e===gv||e===Sv||e===_v||e===Ele||typeof e=="object"&&e!==null&&(e.$$typeof===Av||e.$$typeof===kv||e.$$typeof===bv||e.$$typeof===xv||e.$$typeof===wv||e.$$typeof===r5||e.getModuleId!==void 0)};Je.typeOf=Pn;t5.exports=Je;var jle=t5.exports,Ole=Aa,Ple=Ta,Cle="[object Number]";function Nle(e){return typeof e=="number"||Ple(e)&&Ole(e)==Cle}var n5=Nle;const Rle=Ye(n5);var Ile=n5;function $le(e){return Ile(e)&&e!=+e}var Mle=$le;const Eu=Ye(Mle);var jr=function(t){return t===0?0:t>0?1:-1},ms=function(t){return Vs(t)&&t.indexOf("%")===t.length-1},Z=function(t){return Rle(t)&&!Eu(t)},Dle=function(t){return Ae(t)},Gt=function(t){return Z(t)||Vs(t)},Lle=0,rl=function(t){var r=++Lle;return"".concat(t||"").concat(r)},Or=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Z(t)&&!Vs(t))return n;var a;if(ms(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Eu(a)&&(a=n),i&&a>r&&(a=r),a},Ga=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Ble=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},Kt=function(t,r){return Z(t)&&Z(r)?function(n){return t+n*(r-t)}:function(){return r}};function gy(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):on(n,t))===r})}var Fle=function(t,r){return Z(t)&&Z(r)?t-r:Vs(t)&&Vs(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function uc(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function r1(e){"@babel/helpers - typeof";return r1=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},r1(e)}var Ule=["viewBox","children"],Vle=["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","colorRen
837dering","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"],XP=["points","pathLength"],g0={svg:Ule,polygon:XP,polyline:XP},rA=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","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","onDrag
837Capture","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"],vy=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(k.isValidElement(t)&&(n=t.props),!_u(n))return null;var i={};return Object.keys(n).forEach(function(a){rA.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},zle=function(t,r,n){return function(i){return t(r,n,i),null}},zs=function(t,r,n){if(!_u(t)||r1(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];rA.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=zle(o,r,n))}),i},Wle=["children"],Hle=["children"];function ZP(e,t){if(e==null)return{};var r=qle(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qle(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function n1(e){"@babel/helpers - typeof";return n1=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},n1(e)}var JP={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"},ua=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},QP=null,v0=null,nA=function e(t){if(t===QP&&Array.isArray(v0))return v0;var r=[];return k.Children.forEach(t,function(n){Ae(n)||(jle.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),v0=r,QP=t,r};function sn(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return ua(i)}):n=[ua(t)],nA(e).forEach(function(i){var a=on(i,"type.displayName")||on(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Zr(e,t){var r=sn(e,t);return r&&r[0]}var eC=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!Z(n)||n<=0||!Z(i)||i<=0)},Kle=["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"],Yle=function(t){return t&&t.type&&Vs(t.type)&&Kle.indexOf(t.type)>=0},i5=function(t){return t&&n1(t)==="object"&&"clipDot"in t},Gle=function(t,r,n,i){var a,o=(a=g0==null?void 0:g0[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!xe(t)&&(i&&o.includes(r)||Vle.includes(r))||n&&rA.includes(r)},ge=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(k.isValidElement(t)&&(i=t.props),!_u(i))return null;var a={};
837return Object.keys(i).forEach(function(o){var s;Gle((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},i1=function e(t,r){if(t===r)return!0;var n=k.Children.count(t);if(n!==k.Children.count(r))return!1;if(n===0)return!0;if(n===1)return tC(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!tC(a,o))return!1}return!0},tC=function(t,r){if(Ae(t)&&Ae(r))return!0;if(!Ae(t)&&!Ae(r)){var n=t.props||{},i=n.children,a=ZP(n,Wle),o=r.props||{},s=o.children,l=ZP(o,Hle);return i&&s?uc(a,l)&&i1(i,s):!i&&!s?uc(a,l):!1}return!1},rC=function(t,r){var n=[],i={};return nA(t).forEach(function(a,o){if(Yle(a))n.push(a);else if(a){var s=ua(a.type),l=r[s]||{},c=l.handler,u=l.once;if(c&&(!u||!i[s])){var d=c(a,s,o);n.push(d),i[s]=!0}}}),n},Xle=function(t){var r=t&&t.type;return r&&JP[r]?JP[r]:null},Zle=function(t,r){return nA(r).indexOf(t)},Jle=["children","width","height","viewBox","className","style","title","desc"];function a1(){return a1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a1.apply(this,arguments)}function Qle(e,t){if(e==null)return{};var r=ece(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ece(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function o1(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,c=Qle(e,Jle),u=i||{width:r,height:n,x:0,y:0},d=Te("recharts-surface",a);return E.createElement("svg",a1({},ge(c,!0,"svg"),{className:d,width:r,height:n,style:o,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),E.createElement("title",null,s),E.createElement("desc",null,l),t)}var tce=["children","className"];function s1(){return s1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s1.apply(this,arguments)}function rce(e,t){if(e==null)return{};var r=nce(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nce(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var $e=E.forwardRef(function(e,t){var r=e.children,n=e.className,i=rce(e,tce),a=Te("recharts-layer",n);return E.createElement("g",s1({className:a},ge(i,!0),{ref:t}),r)}),ri=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function ice(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var ace=ice,oce=ace;function sce(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:oce(e,t,r)}var lce=sce,cce="\\ud800-\\udfff",uce="\\u0300-\\u036f",dce="\\ufe20-\\ufe2f",fce="\\u20d0-\\u20ff",hce=uce+dce+fce,pce="\\ufe0e\\ufe0f",mce="\\u200d",yce=RegExp("["+mce+cce+hce+pce+"]");function gce(e){return yce.test(e)}var a5=gce;function vce(e){return e.split("")}var bce=vce,o5="\\ud800-\\udfff",xce="\\u0300-\\u036f",wce="\\ufe20-\\ufe2f",Sce="\\u20d0-\\u20ff",_ce=xce+wce+Sce,kce="\\ufe0e\\ufe0f",Ace="["+o5+"]",l1="["+_ce+"]",c1="\\ud83c[\\udffb-\\udfff]",Tce="(?:"+l1+"|"+c1+")",s5="[^"+o5+"]",l5="(?:\\ud83c[\\udde6-\\uddff]){2}",c5="[\\ud800-\\udbff][\\udc00-\\udfff]",Ece="\\u200d",u5=Tce+"?",d5="["+kce+"]?",jce="(?:"+Ece+"(?:"+[s5,l5,c5].join("|")+")"+d5+u5+")*",Oce=d5+u5+jce,Pce="(?:"+[s5+l1+"?",l1,l5,c5,Ace].join("|")+")",Cce=RegExp(c1+"(?="+c1+")|"+Pce+Oce,"g");function Nce(e){return e.match(Cce)||[]}var Rce=Nce,Ice=bce,$ce=a5,Mce=Rce;function Dce(e){return $ce(e)?Mce(e):Ice(e)}var Lce=Dce,Bce=lce,Fce=a5,Uce=Lce,Vce=JB;function zce(e){return function(t){t=Vce(t);var r=Fce(t)?Uce(t):void 0,n=r?r[0]:t.charAt(0),i=r?Bce(r,1).join(""):t.slice(1);return n[e]()+i}}var Wce=zce,Hce=Wce,qce=Hce("toUpperCase"),Kce=qce;const Tv=Ye(Kce);function at(e){return function(){return e}}const f5=Math.cos,by=Math.sin,ci=Math.sqrt,xy=Math.PI,Ev=2*xy,u1=Math.PI,d1=2*u1,ns=1e-6,Yce=d1-ns;function h5(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Gce(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return h5;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Xce{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?h5:Gce(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n}
837,${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=n-t,c=i-r,u=o-t,d=s-r,h=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>ns)if(!(Math.abs(d*l-c*u)>ns)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-s,m=l*l+c*c,g=p*p+y*y,b=Math.sqrt(m),v=Math.sqrt(h),x=a*Math.tan((u1-Math.acos((m+h-g)/(2*b*v)))/2),S=x/v,w=x/b;Math.abs(S-1)>ns&&this._append`L${t+S*u},${r+S*d}`,this._append`A${a},${a},0,0,${+(d*p>u*y)},${this._x1=t+w*l},${this._y1=r+w*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),c=t+s,u=r+l,d=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>ns||Math.abs(this._y1-u)>ns)&&this._append`L${c},${u}`,n&&(h<0&&(h=h%d1+d1),h>Yce?this._append`A${n},${n},0,1,${d},${t-s},${r-l}A${n},${n},0,1,${d},${this._x1=c},${this._y1=u}`:h>ns&&this._append`A${n},${n},0,${+(h>=u1)},${d},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function iA(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Xce(t)}function aA(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function p5(e){this._context=e}p5.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 jv(e){return new p5(e)}function m5(e){return e[0]}function y5(e){return e[1]}function g5(e,t){var r=at(!0),n=null,i=jv,a=null,o=iA(s);e=typeof e=="function"?e:e===void 0?m5:at(e),t=typeof t=="function"?t:t===void 0?y5:at(t);function s(l){var c,u=(l=aA(l)).length,d,h=!1,p;for(n==null&&(a=i(p=o())),c=0;c<=u;++c)!(c<u&&r(d=l[c],c,l))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(d,c,l),+t(d,c,l));if(p)return a=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:at(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:at(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:at(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function Pp(e,t,r){var n=null,i=at(!0),a=null,o=jv,s=null,l=iA(c);e=typeof e=="function"?e:e===void 0?m5:at(+e),t=typeof t=="function"?t:at(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?y5:at(+r);function c(d){var h,p,y,m=(d=aA(d)).length,g,b=!1,v,x=new Array(m),S=new Array(m);for(a==null&&(s=o(v=l())),h=0;h<=m;++h){if(!(h<m&&i(g=d[h],h,d))===b)if(b=!b)p=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=h-1;y>=p;--y)s.point(x[y],S[y]);s.lineEnd(),s.areaEnd()}b&&(x[h]=+e(g,h,d),S[h]=+t(g,h,d),s.point(n?+n(g,h,d):x[h],r?+r(g,h,d):S[h]))}if(v)return s=null,v+""||null}function u(){return g5().defined(i).curve(o).context(a)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:at(+d),n=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:at(+d),c):e},c.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:at(+d),c):n},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:at(+d),r=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:at(+d),c):t},c.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:at(+d),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:at
vendor: 8,844 bytes, line 837
837(!!d),c):i},c.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),c):o},c.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),c):a},c}class v5{constructor(t,r){this._context=t,this._x=r}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,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Zce(e){return new v5(e,!0)}function Jce(e){return new v5(e,!1)}const oA={draw(e,t){const r=ci(t/xy);e.moveTo(r,0),e.arc(0,0,r,0,Ev)}},Qce={draw(e,t){const r=ci(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},b5=ci(1/3),eue=b5*2,tue={draw(e,t){const r=ci(t/eue),n=r*b5;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},rue={draw(e,t){const r=ci(t),n=-r/2;e.rect(n,n,r,r)}},nue=.8908130915292852,x5=by(xy/10)/by(7*xy/10),iue=by(Ev/10)*x5,aue=-f5(Ev/10)*x5,oue={draw(e,t){const r=ci(t*nue),n=iue*r,i=aue*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Ev*a/5,s=f5(o),l=by(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},b0=ci(3),sue={draw(e,t){const r=-ci(t/(b0*3));e.moveTo(0,r*2),e.lineTo(-b0*r,-r),e.lineTo(b0*r,-r),e.closePath()}},fn=-.5,hn=ci(3)/2,f1=1/ci(12),lue=(f1/2+1)*3,cue={draw(e,t){const r=ci(t/lue),n=r/2,i=r*f1,a=n,o=r*f1+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(fn*n-hn*i,hn*n+fn*i),e.lineTo(fn*a-hn*o,hn*a+fn*o),e.lineTo(fn*s-hn*l,hn*s+fn*l),e.lineTo(fn*n+hn*i,fn*i-hn*n),e.lineTo(fn*a+hn*o,fn*o-hn*a),e.lineTo(fn*s+hn*l,fn*l-hn*s),e.closePath()}};function uue(e,t){let r=null,n=iA(i);e=typeof e=="function"?e:at(e||oA),t=typeof t=="function"?t:at(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:at(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:at(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function wy(){}function Sy(e,t,r){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+r)/6)}function w5(e){this._context=e}w5.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:Sy(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:Sy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function due(e){return new w5(e)}function S5(e){this._context=e}S5.prototype={areaStart:wy,areaEnd:wy,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:Sy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function fue(e){return new S5(e)}function _5(e){this._context=e}_5.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Sy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function hue(e){return new _5(e)}function k5(e){this._context=e}k5.prototype={areaStart:wy,areaEnd:wy,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 pue(e){return new k5(e)}function nC(e){return e<0?-1:1}function iC(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(nC(a)+nC(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function aC(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function x0(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function _y(e){this._context=e}_y.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:x0(this,this._t0,aC(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 r=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,x0(this,aC(this,r=iC(this,e,t)),r);break;default:x0(this,this._t0,r=iC(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function A5(e){this._context=new T5(e)}(A5.prototype=Object.create(_y.prototype)).point=function(e,t){_y.prototype.point.call(this,t,e)};function T5(e){this._context=e}T5.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,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function mue(e){return new _y(e)}function yue(e){return new A5(e)}function E5(e){this._context=e}E5.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=oC(e),i=oC(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===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 oC(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function gue(e){return new E5(e)}function Ov(e,t){this._context=e,this._t=t}Ov.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: 11,688 bytes, lines 837-840
837default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function vue(e){return new Ov(e,.5)}function bue(e){return new Ov(e,0)}function xue(e){return new Ov(e,1)}function Dc(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function h1(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function wue(e,t){return e[t]}function Sue(e){const t=[];return t.key=e,t}function _ue(){var e=at([]),t=h1,r=Dc,n=wue;function i(a){var o=Array.from(e.apply(this,arguments),Sue),s,l=o.length,c=-1,u;for(const d of a)for(s=0,++c;s<l;++s)(o[s][c]=[0,+n(d,o[s].key,c,a)]).data=d;for(s=0,u=aA(t(o));s<l;++s)o[u[s]].index=s;return r(o,u),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:at(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:at(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?h1:typeof a=="function"?a:at(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Dc,i):r},i}function kue(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Dc(e,t)}}function Aue(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Dc(e,t)}}function Tue(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,c=0;s<o;++s){for(var u=e[t[s]],d=u[n][1]||0,h=u[n-1][1]||0,p=(d-h)/2,y=0;y<s;++y){var m=e[t[y]],g=m[n][1]||0,b=m[n-1][1]||0;p+=g-b}l+=d,c+=p*d}i[n-1][1]+=i[n-1][0]=r,l&&(r-=c/l)}i[n-1][1]+=i[n-1][0]=r,Dc(e,t)}}function Pf(e){"@babel/helpers - typeof";return Pf=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},Pf(e)}var Eue=["type","size","sizeType"];function p1(){return p1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p1.apply(this,arguments)}function sC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sC(Object(r),!0).forEach(function(n){jue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jue(e,t,r){return t=Oue(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oue(e){var t=Pue(e,"string");return Pf(t)=="symbol"?t:t+""}function Pue(e,t){if(Pf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cue(e,t){if(e==null)return{};var r=Nue(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Nue(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var j5={symbolCircle:oA,symbolCross:Qce,symbolDiamond:tue,symbolSquare:rue,symbolStar:oue,symbolTriangle:sue,symbolWye:cue},Rue=Math.PI/180,Iue=function(t){var r="symbol".concat(Tv(t));return j5[r]||oA},$ue=function(t,r,n){if(r==="area")return t;switch(n){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*Rue;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}},Mue=function(t,r){j5["symbol".concat(Tv(t))]=r},sA=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=Cue(t,Eue),c=lC(lC({},l),{},{type:n,size:a,sizeType:s}),u=function(){var g=Iue(n),b=uue().type(g).size($ue(a,s,n));return b()},d=c.className,h=c.cx,p=c.cy,y=ge(c,!0);return h===+h&&p===+p&&a===+a?E.createElement("path",p1({},y,{className:Te("recharts-symbols",d),transform:"translate(".concat(h,", ").concat(p,")"),d:u()})):null};sA.registerSymbol=Mue;function Lc(e){"@babel/helpers - typeof";return Lc=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},Lc(e)}function m1(){return m1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m1.apply(this,arguments)}function cC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Due(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cC(Object(r),!0).forEach(function(n){Cf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bue(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,P5(n.key),n)}}function Fue(e,t,r){return t&&Bue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uue(e,t,r){return t=ky(t),Vue(e,O5()?Reflect.construct(t,r||[],ky(e).constructor):t.apply(e,r))}function Vue(e,t){if(t&&(Lc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zue(e)}function zue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(O5=function(){return!!e})()}function ky(e){return ky=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ky(e)}function Wue(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&&y1(e,t)}function y1(e,t){return y1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},y1(e,t)}function Cf(e,t,r){return t=P5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P5(e){var t=Hue(e,"string");return Lc(t)=="symbol"?t:t+""}function Hue(e,t){if(Lc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Lc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pn=32,lA=function(e){function t(){return Lue(this,t),Uue(this,t,arguments)}return Wue(t,e),Fue(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=pn/2,o=pn/6,s=pn/3,l=n.inactive?i:n.color;if(n.type==="plainline")return E.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:pn,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return E.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,` 838 A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,` 839 H`).concat(pn,"M").concat(2*s,",").concat(a,` 840 A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return E.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(pn/8,"h").concat(pn,"v").concat(pn*3/4,"h").concat(-pn,"z"),className:"recharts-legend-icon"});if(E.isValidElement(n.legendIcon)){var c=Due({},n);return delete c.legendIcon,E.cloneElement(n.legendIcon,c)}return E.createElement(sA,{fill:l,cx:a,cy:a,size:pn,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,l=i.formatter,c=i.inactiveColor,u={x:0,y:0,width:pn,height:pn},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var m=p.formatter||l,g=Te(Cf(Cf({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var b=xe(p.value)?null:p.value;ri(!xe(p.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 v=p.inactive?c:p.color;return E.createElement("li",m1({className:g,style:d,key:"legend-item-".concat(y)},zs(n.props,p,y)),E.createElement(o1,{width:o,height:o,viewBox:u,style:h},n.renderIcon(p)),E.createElement("span",{className:"recharts-legend-item-text",style:{color:v}},m?m(b,p,y):b))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return E.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(k.PureComponent);Cf(lA,"displayName","Legend");Cf(lA,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var que=hv;function Kue(){this.__data__=new que,this.size=0}var Yue=Kue;function Gue(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Xue=Gue;function Zue(e){return this.__data__.get(e)}var Jue=Zue;function Que(e){return this.__data__.has(e)}var ede=Que,tde=hv,rde=Gk,nde=Xk,ide=200;function ade(e,t){var r=this.__data__;if(r instanceof tde){var n=r.__data__;if(!rde||n.length<ide-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new nde(n)}return r.set(e,t),this.size=r.size,this}var ode=ade,sde=hv,lde=Yue,cde=Xue,ude=Jue,dde=ede,fde=ode;function ju(e){var t=this.__data__=new sde(e);this.size=t.size}ju.prototype.clear=lde;ju.prototype.delete=cde;ju.prototype.get=ude;ju.prototype.has=dde;ju.prototype.set=fde;var C5=ju,hde="__lodash_hash_undefined__";function pde(e){return this.__data__.set(e,hde),this}var mde=pde;function yde(e){return this.__data__.has(e)}var gde=yde,vde=Xk,bde=mde,xde=gde;function Ay(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new vde;++t<r;)this.add(e[t])}Ay.prototype.add=Ay.prototype.push=bde;Ay.prototype.has=xde;var N5=Ay;function wde(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var R5=wde;function Sde(e,t){return e.has(t)}var I5=Sde,_de=N5,kde=R5,Ade=I5,Tde=1,Ede=2;
vendor: 7,374 bytes, line 840
840function jde(e,t,r,n,i,a){var o=r&Tde,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=r&Ede?new _de:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var y=e[d],m=t[d];if(n)var g=o?n(m,y,d,t,e,a):n(y,m,d,e,t,a);if(g!==void 0){if(g)continue;h=!1;break}if(p){if(!kde(t,function(b,v){if(!Ade(p,v)&&(y===b||i(y,b,r,n,a)))return p.push(v)})){h=!1;break}}else if(!(y===m||i(y,m,r,n,a))){h=!1;break}}return a.delete(e),a.delete(t),h}var $5=jde,Ode=Bi,Pde=Ode.Uint8Array,Cde=Pde;function Nde(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var Rde=Nde;function Ide(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var cA=Ide,uC=Nh,dC=Cde,$de=Yk,Mde=$5,Dde=Rde,Lde=cA,Bde=1,Fde=2,Ude="[object Boolean]",Vde="[object Date]",zde="[object Error]",Wde="[object Map]",Hde="[object Number]",qde="[object RegExp]",Kde="[object Set]",Yde="[object String]",Gde="[object Symbol]",Xde="[object ArrayBuffer]",Zde="[object DataView]",fC=uC?uC.prototype:void 0,w0=fC?fC.valueOf:void 0;function Jde(e,t,r,n,i,a,o){switch(r){case Zde:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Xde:return!(e.byteLength!=t.byteLength||!a(new dC(e),new dC(t)));case Ude:case Vde:case Hde:return $de(+e,+t);case zde:return e.name==t.name&&e.message==t.message;case qde:case Yde:return e==t+"";case Wde:var s=Dde;case Kde:var l=n&Bde;if(s||(s=Lde),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=Fde,o.set(e,t);var u=Mde(s(e),s(t),n,i,a,o);return o.delete(e),u;case Gde:if(w0)return w0.call(e)==w0.call(t)}return!1}var Qde=Jde;function efe(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var M5=efe,tfe=M5,rfe=qr;function nfe(e,t,r){var n=t(e);return rfe(e)?n:tfe(n,r(e))}var ife=nfe;function afe(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var ofe=afe;function sfe(){return[]}var lfe=sfe,cfe=ofe,ufe=lfe,dfe=Object.prototype,ffe=dfe.propertyIsEnumerable,hC=Object.getOwnPropertySymbols,hfe=hC?function(e){return e==null?[]:(e=Object(e),cfe(hC(e),function(t){return ffe.call(e,t)}))}:ufe,pfe=hfe;function mfe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var yfe=mfe,gfe=Aa,vfe=Ta,bfe="[object Arguments]";function xfe(e){return vfe(e)&&gfe(e)==bfe}var wfe=xfe,pC=wfe,Sfe=Ta,D5=Object.prototype,_fe=D5.hasOwnProperty,kfe=D5.propertyIsEnumerable,Afe=pC(function(){return arguments}())?pC:function(e){return Sfe(e)&&_fe.call(e,"callee")&&!kfe.call(e,"callee")},uA=Afe,Ty={exports:{}};function Tfe(){return!1}var Efe=Tfe;Ty.exports;(function(e,t){var r=Bi,n=Efe,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||n;e.exports=c})(Ty,Ty.exports);var L5=Ty.exports,jfe=9007199254740991,Ofe=/^(?:0|[1-9]\d*)$/;function Pfe(e,t){var r=typeof e;return t=t??jfe,!!t&&(r=="number"||r!="symbol"&&Ofe.test(e))&&e>-1&&e%1==0&&e<t}var dA=Pfe,Cfe=9007199254740991;function Nfe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Cfe}var fA=Nfe,Rfe=Aa,Ife=fA,$fe=Ta,Mfe="[object Arguments]",Dfe="[object Array]",Lfe="[object Boolean]",Bfe="[object Date]",Ffe="[object Error]",Ufe="[object Function]",Vfe="[object Map]",zfe="[object Number]",Wfe="[object Object]",Hfe="[object RegExp]",qfe="[object Set]",Kfe="[object String]",Yfe="[object WeakMap]",Gfe="[object ArrayBuffer]",Xfe="[object DataView]",Zfe="[object Float32Array]",Jfe="[object Float64Array]",Qfe="[object Int8Array]",ehe="[object Int16Array]",the="[object Int32Array]",rhe="[object Uint8Array]",nhe="[object Uint8ClampedArray]",ihe="[object Uint16Array]",ahe="[object Uint32Array]",ft={};ft[Zfe]=ft[Jfe]=ft[Qfe]=ft[ehe]=ft[the]=ft[rhe]=ft[nhe]=ft[ihe]=ft[ahe]=!0;ft[Mfe]=ft[Dfe]=ft[Gfe]=ft[Lfe]=ft[Xfe]=ft[Bfe]=ft[Ffe]=ft[Ufe]=ft[Vfe]=ft[zfe]=ft[Wfe]=ft[Hfe]=ft[qfe]=ft[Kfe]=ft[Yfe]=!1;function ohe(e){return $fe(e)&&Ife(e.length)&&!!ft[Rfe(e)]}var she=ohe;function lhe(e){return function(t){return e(t)}}var B5=lhe,Ey={exports:{}};Ey.exports;(function(e,t){var r=qB,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Ey,Ey.exports);var che=Ey.exports,uhe=she,dhe=B5,mC=che,yC=mC&&mC.isTypedArray,fhe=yC?dhe(yC):uhe,F5=fhe,hhe=yfe,phe=uA,mhe=qr,yhe=L5,ghe=dA,vhe=F5,bhe=Object.prototype,xhe=bhe.hasOwnProperty;function whe(e,t){var r=mhe(e),n=!r&&phe(e),i=!r&&!n&&yhe(e),a=!r&&!n&&!i&&vhe(e),o=r||n||i||a,s=o?hhe(e.length,String):[],l=s.length;for(var c in e)(t||xhe.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||ghe(c,l)))&&s.push(c);return s}var She=whe,_he=Object.prototype;function khe(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||_he;return e===r}var Ahe=khe;function The(e,t){return function(r){return e(t(r))}}var U5=The,Ehe=U5,jhe=Ehe(Object.keys,Object),Ohe=jhe,Phe=Ahe,Che=Ohe,Nhe=Object.prototype,Rhe=Nhe.hasOwnProperty;function Ihe(e){if(!Phe(e))return Che(e);var t=[];for(var r in Object(e))Rhe.call(e,r)&&r!="constructor"&&t.push(r);return t}var $he=Ihe,Mhe=Kk,Dhe=fA;function Lhe(e){return e!=null&&Dhe(e.length)&&!Mhe(e)}var Rh=Lhe,Bhe=She,Fhe=$he,Uhe=Rh;function Vhe(e){return Uhe(e)?Bhe(e):Fhe(e)}var Pv=Vhe,zhe=ife,Whe=pfe,Hhe=Pv;function qhe(e){return zhe(e,Hhe,Whe)}var Khe=qhe,gC=Khe,Yhe=1,Ghe=Object.prototype,Xhe=Ghe.hasOwnProperty;function Zhe(e,t,r,n,i,a){var o=r&Yhe,s=gC(e),l=s.length,c=gC(t),u=c.length;if(l!=u&&!o)return!1;for(var d=l;d--;){var h=s[d];if(!(o?h in t:Xhe.call(t,h)))return!1}var p=a.get(e),y=a.get(t);if(p&&y)return p==t&&y==e;var m=!0;a.set(e,t),a.set(t,e);for(var g=o;++d<l;){h=s[d];var b=e[h],v=t[h];if(n)var x=o?n(v,b,h,t,e,a):n(b,v,h,e,t,a);if(!(x===void 0?b===v||i(b,v,r,n,a):x)){m=!1;break}g||(g=h=="constructor")}if(m&&!g){var S=e.constructor,w=t.constructor;S!=w&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof w=="function"&&w instanceof w)&&(m=!1)}return a.delete(e),a.delete(t),m}var Jhe=Zhe,Qhe=tl,epe=Bi,tpe=Qhe(epe,"DataView"),rpe=tpe,npe=tl,ipe=Bi,ape=npe(ipe,"Promise"),ope=ape,spe=tl,lpe=Bi,cpe=spe(lpe,"Set"),V5=cpe,upe=tl,dpe=Bi,fpe=upe(dpe,"WeakMap"),hpe=fpe,g1=rpe,v1=Gk,b1=ope,x1=V5,w1=hpe,z5=Aa,Ou=YB,vC="[object Map]",ppe="[object Object]",bC="[object Promise]",xC="[object Set]",wC="[object WeakMap]",SC="[object DataView]",mpe=Ou(g1),ype=Ou(v1),gpe=Ou(b1),vpe=Ou(x1),bpe=Ou(w1),is=z5;(g1&&is(new g1(new ArrayBuffer(1)))!=SC||v1&&is(new v1)!=vC||b1&&is(b1.resolve())!=bC||x1&&is(new x1)!=xC||w1&&is(new w1)!=wC)&&(is=function(e){var t=z5(e),r=t==ppe?e.constructor:void 0,n=r?Ou(r):"";if(n)switch(n){case mpe:return SC;case ype:return vC;case gpe:return bC;case vpe:return xC;case bpe:return wC}return t});var xpe=is,S0=C5,wpe=$5,Spe=Qde,_pe=Jhe,_C=xpe,kC=qr,AC=L5,kpe=F5,Ape=1,TC="[object Arguments]",EC="[object Array]",Cp="[object Object]",Tpe=Object.prototype,jC=Tpe.hasOwnProperty;function Epe(e,t,r,n,i,a){var o=kC(e),s=kC(t),l=o?EC:_C(e),c=s?EC:_C(t);l=l==TC?Cp:l,c=c==TC?Cp:c;var u=l==Cp,d=c==Cp,h=l==c;if(h&&AC(e)){if(!AC(t))return!1;o=!0,u=!1}if(h&&!u)return a||(a=new S0),o||kpe(e)?wpe(e,t,r,n,i,a):Spe(e,t,l,r,n,i,a);if(!(r&Ape)){var p=u&&jC.call(e,"__wrapped__"),y=d&&jC.call(t,"__wrapped__");
vendor: 2,765 bytes, line 840
840if(p||y){var m=p?e.value():e,g=y?t.value():t;return a||(a=new S0),i(m,g,r,n,a)}}return h?(a||(a=new S0),_pe(e,t,r,n,i,a)):!1}var jpe=Epe,Ope=jpe,OC=Ta;function W5(e,t,r,n,i){return e===t?!0:e==null||t==null||!OC(e)&&!OC(t)?e!==e&&t!==t:Ope(e,t,r,n,W5,i)}var hA=W5,Ppe=C5,Cpe=hA,Npe=1,Rpe=2;function Ipe(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var l=s[0],c=e[l],u=s[1];if(o&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Ppe;if(n)var h=n(c,u,l,e,t,d);if(!(h===void 0?Cpe(u,c,Npe|Rpe,n,d):h))return!1}}return!0}var $pe=Ipe,Mpe=Bo;function Dpe(e){return e===e&&!Mpe(e)}var H5=Dpe,Lpe=H5,Bpe=Pv;function Fpe(e){for(var t=Bpe(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Lpe(i)]}return t}var Upe=Fpe;function Vpe(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var q5=Vpe,zpe=$pe,Wpe=Upe,Hpe=q5;function qpe(e){var t=Wpe(e);return t.length==1&&t[0][2]?Hpe(t[0][0],t[0][1]):function(r){return r===e||zpe(r,e,t)}}var Kpe=qpe;function Ype(e,t){return e!=null&&t in Object(e)}var Gpe=Ype,Xpe=QB,Zpe=uA,Jpe=qr,Qpe=dA,eme=fA,tme=mv;function rme(e,t,r){t=Xpe(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=tme(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&eme(i)&&Qpe(o,i)&&(Jpe(e)||Zpe(e)))}var nme=rme,ime=Gpe,ame=nme;function ome(e,t){return e!=null&&ame(e,t,ime)}var sme=ome,lme=hA,cme=e5,ume=sme,dme=qk,fme=H5,hme=q5,pme=mv,mme=1,yme=2;function gme(e,t){return dme(e)&&fme(t)?hme(pme(e),t):function(r){var n=cme(r,e);return n===void 0&&n===t?ume(r,e):lme(t,n,mme|yme)}}var vme=gme;function bme(e){return e}var Pu=bme;function xme(e){return function(t){return t==null?void 0:t[e]}}var wme=xme,Sme=Qk;function _me(e){return function(t){return Sme(t,e)}}var kme=_me,Ame=wme,Tme=kme,Eme=qk,jme=mv;function Ome(e){return Eme(e)?Ame(jme(e)):Tme(e)}var Pme=Ome,Cme=Kpe,Nme=vme,Rme=Pu,Ime=qr,$me=Pme;function Mme(e){return typeof e=="function"?e:e==null?Rme:typeof e=="object"?Ime(e)?Nme(e[0],e[1]):Cme(e):$me(e)}var Fi=Mme;function Dme(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var K5=Dme;function Lme(e){return e!==e}var Bme=Lme;function Fme(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var Ume=Fme,Vme=K5,zme=Bme,Wme=Ume;function Hme(e,t,r){return t===t?Wme(e,t,r):Vme(e,zme,r)}var qme=Hme,Kme=qme;function Yme(e,t){var r=e==null?0:e.length;return!!r&&Kme(e,t,0)>-1}var Gme=Yme;function Xme(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var Zme=Xme;function Jme(){}var Qme=Jme,_0=V5,eye=Qme,tye=cA,rye=1/0,nye=_0&&1/tye(new _0([,-0]))[1]==rye?function(e){return new _0(e)}
vendor: 21,053 bytes, lines 840-841
840:eye,iye=nye,aye=N5,oye=Gme,sye=Zme,lye=I5,cye=iye,uye=cA,dye=200;function fye(e,t,r){var n=-1,i=oye,a=e.length,o=!0,s=[],l=s;if(r)o=!1,i=sye;else if(a>=dye){var c=t?null:cye(e);if(c)return uye(c);o=!1,i=lye,l=new aye}else l=t?[]:s;e:for(;++n<a;){var u=e[n],d=t?t(u):u;if(u=r||u!==0?u:0,o&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,r)||(l!==s&&l.push(d),s.push(u))}return s}var hye=fye,pye=Fi,mye=hye;function yye(e,t){return e&&e.length?mye(e,pye(t)):[]}var gye=yye;const PC=Ye(gye);function Y5(e,t,r){return t===!0?PC(e,r):xe(t)?PC(e,t):e}function Bc(e){"@babel/helpers - typeof";return Bc=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},Bc(e)}var vye=["ref"];function CC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CC(Object(r),!0).forEach(function(n){Cv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,X5(n.key),n)}}function xye(e,t,r){return t&&NC(e.prototype,t),r&&NC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wye(e,t,r){return t=jy(t),Sye(e,G5()?Reflect.construct(t,r||[],jy(e).constructor):t.apply(e,r))}function Sye(e,t){if(t&&(Bc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _ye(e)}function _ye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G5=function(){return!!e})()}function jy(e){return jy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jy(e)}function kye(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&&S1(e,t)}function S1(e,t){return S1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},S1(e,t)}function Cv(e,t,r){return t=X5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X5(e){var t=Aye(e,"string");return Bc(t)=="symbol"?t:t+""}function Aye(e,t){if(Bc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Bc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tye(e,t){if(e==null)return{};var r=Eye(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Eye(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function jye(e){return e.value}function Oye(e,t){if(E.isValidElement(e))return E.cloneElement(e,t);if(typeof e=="function")return E.createElement(e,t);t.ref;var r=Tye(t,vye);return E.createElement(lA,r)}var RC=1,dc=function(e){function t(){var r;bye(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=wye(this,t,[].concat(i)),Cv(r,"lastBoundingBox",{width:-1,height:-1}),r}return kye(t,e),xye(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>RC||Math.abs(i.height-this.lastBoundingBox.height)>RC)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Hi({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,c=i.chartWidth,u=i.chartHeight,d,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();d={left:((c||0)-p.width)/2}}else d=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var y=this.getBBoxSnapshot();h={top:((u||0)-y.height)/2}}else h=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Hi(Hi({},d),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,c=i.payloadUniqBy,u=i.payload,d=Hi(Hi({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return E.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(p){n.wrapperNode=p}},Oye(a,Hi(Hi({},this.props),{},{payload:Y5(u,c,jye)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Hi(Hi({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&Z(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(k.PureComponent);Cv(dc,"displayName","Legend");Cv(dc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var IC=Nh,Pye=uA,Cye=qr,$C=IC?IC.isConcatSpreadable:void 0;function Nye(e){return Cye(e)||Pye(e)||!!($C&&e&&e[$C])}var Rye=Nye,Iye=M5,$ye=Rye;function Z5(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=$ye),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?Z5(s,t-1,r,n,i):Iye(i,s):n||(i[i.length]=s)}return i}var J5=Z5;function Mye(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(r(a[l],l,a)===!1)break}return t}}var Dye=Mye,Lye=Dye,Bye=Lye(),Fye=Bye,Uye=Fye,Vye=Pv;function zye(e,t){return e&&Uye(e,t,Vye)}var Q5=zye,Wye=Rh;function Hye(e,t){return function(r,n){if(r==null)return r;if(!Wye(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var qye=Hye,Kye=Q5,Yye=qye,Gye=Yye(Kye),pA=Gye,Xye=pA,Zye=Rh;function Jye(e,t){var r=-1,n=Zye(e)?Array(e.length):[];return Xye(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var eF=Jye;function Qye(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var ege=Qye,MC=Su;function tge(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=MC(e),o=t!==void 0,s=t===null,l=t===t,c=MC(t);if(!s&&!c&&!a&&e>t||a&&o&&l&&!s&&!c||n&&o&&l||!r&&l||!i)return 1;if(!n&&!a&&!c&&e<t||c&&r&&i&&!n&&!a||s&&r&&i||!o&&i||!l)return-1}return 0}var rge=tge,nge=rge;function ige(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;++n<o;){var l=nge(i[n],a[n]);if(l){if(n>=s)return l;var c=r[n];return l*(c=="desc"?-1:1)}}return e.index-t.index}var age=ige,k0=Jk,oge=Qk,sge=Fi,lge=eF,cge=ege,uge=B5,dge=age,fge=Pu,hge=qr;function pge(e,t,r){t.length?t=k0(t,function(a){return hge(a)?function(o){return oge(o,a.length===1?a[0]:a)}:a}):t=[fge];var n=-1;t=k0(t,uge(sge));var i=lge(e,function(a,o,s){var l=k0(t,function(c){return c(a)});return{criteria:l,index:++n,value:a}});return cge(i,function(a,o){return dge(a,o,r)})}var mge=pge;function yge(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var gge=yge,vge=gge,DC=Math.max;function bge(e,t,r){return t=DC(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=DC(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),vge(e,this,s)}}var xge=bge;function wge(e){return function(){return e}}var Sge=wge,_ge=tl,kge=function(){try{var e=_ge(Object,"defineProperty");return e({},"",{}),e}catch{}}(),tF=kge,Age=Sge,LC=tF,Tge=Pu,Ege=LC?function(e,t){return LC(e,"toString",{configurable:!0,enumerable:!1,value:Age(t),writable:!0})}:Tge,jge=Ege,Oge=800,Pge=16,Cge=Date.now;function Nge(e){var t=0,r=0;return function(){var n=Cge(),i=Pge-(n-r);if(r=n,i>0){if(++t>=Oge)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Rge=Nge,Ige=jge,$ge=Rge,Mge=$ge(Ige),Dge=Mge,Lge=Pu,Bge=xge,Fge=Dge;function Uge(e,t){return Fge(Bge(e,t,Lge),e+"")}var Vge=Uge,zge=Yk,Wge=Rh,Hge=dA,qge=Bo;function Kge(e,t,r){if(!qge(r))return!1;var n=typeof t;return(n=="number"?Wge(r)&&Hge(t,r.length):n=="string"&&t in r)?zge(r[t],e):!1}var Nv=Kge,Yge=J5,Gge=mge,Xge=Vge,BC=Nv,Zge=Xge(function(e,t){if(e==null)return[];var r=t.length;return r>1&&BC(e,t[0],t[1])?t=[]:r>2&&BC(t[0],t[1],t[2])&&(t=[t[0]]),Gge(e,Yge(t,1),[])}),Jge=Zge;const mA=Ye(Jge);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 _1(){return _1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_1.apply(this,arguments)}function Qge(e,t){return nve(e)||rve(e,t)||tve(e,t)||eve()}function eve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 841In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tve(e,t){if(e){if(typeof e=="string")return FC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return FC(e,t)}}function FC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rve(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function nve(e){if(Array.isArray(e))return e}function UC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function A0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UC(Object(r),!0).forEach(function(n){ive(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ive(e,t,r){return t=ave(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ave(e){var t=ove(e,"string");return Nf(t)=="symbol"?t:t+""}function ove(e,t){if(Nf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Nf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sve(e){return Array.isArray(e)&&Gt(e[0])&&Gt(e[1])?e.join(" ~ "):e}var lve=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,c=l===void 0?{}:l,u=t.payload,d=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,m=t.label,g=t.labelFormatter,b=t.accessibilityLayer,v=b===void 0?!1:b,x=function(){if(u&&u.length){var O={padding:0,margin:0},$=(h?mA(u,h):u).map(function(N,L){if(N.type==="none")return null;var D=A0({display:"block",paddingTop:4,paddingBottom:4,color:N.color||"#000"},s),B=N.formatter||d||sve,R=N.value,M=N.name,U=R,Y=M;if(B&&U!=null&&Y!=null){var W=B(R,M,N,L,u);if(Array.isArray(W)){var X=Qge(W,2);U=X[0],Y=X[1]}else U=W}return E.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(L),style:D},Gt(Y)?E.createElement("span",{className:"recharts-tooltip-item-name"},Y):null,Gt(Y)?E.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,E.createElement("span",{className:"recharts-tooltip-item-value"},U),E.createElement("span",{className:"recharts-tooltip-item-unit"},N.unit||""))});return E.createElement("ul",{className:"recharts-tooltip-item-list",style:O},$)}return null},S=A0({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),w=A0({margin:0},c),_=!Ae(m),A=_?m:"",T=Te("recharts-default-tooltip",p),j=Te("recharts-tooltip-label",y);_&&g&&u!==void 0&&u!==null&&(A=g(m,u));var P=v?{role:"status","aria-live":"assertive"}:{};return E.createElement("div",_1({className:T,style:S},P),E.createElement("p",{className:j,style:w},E.isValidElement(A)?A:"".concat(A)),x())};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 Np(e,t,r){return t=cve(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cve(e){var t=uve(e,"string");return Rf(t)=="symbol"?t:t+""}function uve(e,t){if(Rf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Rf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xu="recharts-tooltip-wrapper",dve={visibility:"hidden"};function fve(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Te(Xu,Np(Np(Np(Np({},"".concat(Xu,"-right"),Z(r)&&t&&Z(t.x)&&r>=t.x),"".concat(Xu,"-left"),Z(r)&&t&&Z(t.x)&&r<t.x),"".concat(Xu,"-bottom"),Z(n)&&t&&Z(t.y)&&n>=t.y),"".concat(Xu,"-top"),Z(n)&&t&&Z(t.y)&&n<t.y))}function VC(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(a&&Z(a[n]))return a[n];var u=r[n]-s-i,d=r[n]+i;if(t[n])return o[n]?u:d;if(o[n]){var h=u,p=l[n];return h<p?Math.max(d,l[n]):Math.max(u,l[n])}var y=d+s,m=l[n]+c;return y>m?Math.max(u,l[n]):Math.max(d,l[n])}function hve(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function pve(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,c,u,d;return o.height>0&&o.width>0&&r?(u=VC({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),d=VC({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),c=hve({translateX:u,translateY:d,useTranslate3d:s})):c=dve,{cssProperties:c,cssClasses:fve({translateX:u,translateY:d,coordinate:r})}}function Fc(e){"@babel/helpers - typeof";return Fc=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},Fc(e)}function zC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function WC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zC(Object(r),!0).forEach(function(n){A1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nF(n.key),n)}}function gve(e,t,r){return t&&yve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vve(e,t,r){return t=Oy(t),bve(e,rF()?Reflect.construct(t,r||[],Oy(e).constructor):t.apply(e,r))}function bve(e,t){if(t&&(Fc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xve(e)}function xve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rF=function(){return!!e})()}function Oy(e){return Oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oy(e)}function wve(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&&k1(e,t)}function k1(e,t){return k1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},k1(e,t)}function A1(e,t,r){return t=nF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nF(e){var t=Sve(e,"string");return Fc(t)=="symbol"?t:t+""}function Sve(e,t){if(Fc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Fc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HC=1,_ve=function(e){function t(){var r;mve(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=vve(this,t,[].concat(i)),A1(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),A1(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,c,u;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(c=(u=r.props.coordinate)===null||u===void 0?void 0:u.y)!==null&&c!==void 0?c:0}})}}),r}return wve(t,e),gve(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>HC||Math.abs(n.height-this.state.lastBoundingBox.height)>HC)&&this.setState({lastBoundingBox:{width:n.width,height:n.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 n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.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 n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,c=i.children,u=i.coordinate,d=i.hasPayload,h=i.isAnimationActive,p=i.offset,y=i.position,m=i.reverseDirection,g=i.useTranslate3d,b=i.viewBox,v=i.wrapperStyle,x=pve({allowEscapeViewBox:o,coordinate:u,offsetTopLeft:p,position:y,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:g,viewBox:b}
841),S=x.cssClasses,w=x.cssProperties,_=WC(WC({transition:h&&a?"transform ".concat(s,"ms ").concat(l):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&d?"visible":"hidden",position:"absolute",top:0,left:0},v);return E.createElement("div",{tabIndex:-1,className:S,style:_,ref:function(T){n.wrapperNode=T}},c)}}])}(k.PureComponent),kve=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ni={isSsr:kve(),get:function(t){return ni[t]},set:function(t,r){if(typeof t=="string")ni[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){ni[i]=t[i]})}}};function Uc(e){"@babel/helpers - typeof";return Uc=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},Uc(e)}function qC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function KC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qC(Object(r),!0).forEach(function(n){yA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ave(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,aF(n.key),n)}}function Eve(e,t,r){return t&&Tve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jve(e,t,r){return t=Py(t),Ove(e,iF()?Reflect.construct(t,r||[],Py(e).constructor):t.apply(e,r))}function Ove(e,t){if(t&&(Uc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pve(e)}function Pve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iF=function(){return!!e})()}
vendor: 15,860 bytes, lines 841-847
841function Py(e){return Py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Py(e)}function Cve(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&&T1(e,t)}function T1(e,t){return T1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},T1(e,t)}function yA(e,t,r){return t=aF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aF(e){var t=Nve(e,"string");return Uc(t)=="symbol"?t:t+""}function Nve(e,t){if(Uc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Uc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rve(e){return e.dataKey}function Ive(e,t){return E.isValidElement(e)?E.cloneElement(e,t):typeof e=="function"?E.createElement(e,t):E.createElement(lve,t)}var yn=function(e){function t(){return Ave(this,t),jve(this,t,arguments)}return Cve(t,e),Eve(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,c=i.content,u=i.coordinate,d=i.filterNull,h=i.isAnimationActive,p=i.offset,y=i.payload,m=i.payloadUniqBy,g=i.position,b=i.reverseDirection,v=i.useTranslate3d,x=i.viewBox,S=i.wrapperStyle,w=y??[];d&&w.length&&(w=Y5(y.filter(function(A){return A.value!=null&&(A.hide!==!0||n.props.includeHidden)}),m,Rve));var _=w.length>0;return E.createElement(_ve,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:h,active:a,coordinate:u,hasPayload:_,offset:p,position:g,reverseDirection:b,useTranslate3d:v,viewBox:x,wrapperStyle:S},Ive(c,KC(KC({},this.props),{},{payload:w})))}}])}(k.PureComponent);yA(yn,"displayName","Tooltip");yA(yn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ni.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 $ve=Bi,Mve=function(){return $ve.Date.now()},Dve=Mve,Lve=/\s/;function Bve(e){for(var t=e.length;t--&&Lve.test(e.charAt(t)););return t}var Fve=Bve,Uve=Fve,Vve=/^\s+/;function zve(e){return e&&e.slice(0,Uve(e)+1).replace(Vve,"")}var Wve=zve,Hve=Wve,YC=Bo,qve=Su,GC=NaN,Kve=/^[-+]0x[0-9a-f]+$/i,Yve=/^0b[01]+$/i,Gve=/^0o[0-7]+$/i,Xve=parseInt;function Zve(e){if(typeof e=="number")return e;if(qve(e))return GC;if(YC(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=YC(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Hve(e);var r=Yve.test(e);return r||Gve.test(e)?Xve(e.slice(2),r?2:8):Kve.test(e)?GC:+e}var oF=Zve,Jve=Bo,T0=Dve,XC=oF,Qve="Expected a function",ebe=Math.max,tbe=Math.min;function rbe(e,t,r){var n,i,a,o,s,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(Qve);t=XC(t)||0,Jve(r)&&(u=!!r.leading,d="maxWait"in r,a=d?ebe(XC(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function p(_){var A=n,T=i;return n=i=void 0,c=_,o=e.apply(T,A),o}function y(_){return c=_,s=setTimeout(b,t),u?p(_):o}function m(_){var A=_-l,T=_-c,j=t-A;return d?tbe(j,a-T):j}function g(_){var A=_-l,T=_-c;return l===void 0||A>=t||A<0||d&&T>=a}function b(){var _=T0();if(g(_))return v(_);s=setTimeout(b,m(_))}function v(_){return s=void 0,h&&n?p(_):(n=i=void 0,o)}function x(){s!==void 0&&clearTimeout(s),c=0,n=l=i=s=void 0}function S(){return s===void 0?o:v(T0())}function w(){var _=T0(),A=g(_);if(n=arguments,i=this,l=_,A){if(s===void 0)return y(l);if(d)return clearTimeout(s),s=setTimeout(b,t),p(l)}return s===void 0&&(s=setTimeout(b,t)),o}return w.cancel=x,w.flush=S,w}var nbe=rbe,ibe=nbe,abe=Bo,obe="Expected a function";function sbe(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(obe);return abe(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ibe(e,t,{leading:n,maxWait:t,trailing:i})}var lbe=sbe;const sF=Ye(lbe);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 ZC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZC(Object(r),!0).forEach(function(n){cbe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cbe(e,t,r){return t=ube(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ube(e){var t=dbe(e,"string");return If(t)=="symbol"?t:t+""}function dbe(e,t){if(If(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(If(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fbe(e,t){return ybe(e)||mbe(e,t)||pbe(e,t)||hbe()}function hbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 842In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pbe(e,t){if(e){if(typeof e=="string")return JC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return JC(e,t)}}function JC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mbe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function ybe(e){if(Array.isArray(e))return e}var Ip=k.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,c=e.minWidth,u=c===void 0?0:c,d=e.minHeight,h=e.maxHeight,p=e.children,y=e.debounce,m=y===void 0?0:y,g=e.id,b=e.className,v=e.onResize,x=e.style,S=x===void 0?{}:x,w=k.useRef(null),_=k.useRef();_.current=v,k.useImperativeHandle(t,function(){return Object.defineProperty(w.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),w.current},configurable:!0})});var A=k.useState({containerWidth:i.width,containerHeight:i.height}),T=fbe(A,2),j=T[0],P=T[1],C=k.useCallback(function($,N){P(function(L){var D=Math.round($),B=Math.round(N);return L.containerWidth===D&&L.containerHeight===B?L:{containerWidth:D,containerHeight:B}})},[]);k.useEffect(function(){var $=function(M){var U,Y=M[0].contentRect,W=Y.width,X=Y.height;C(W,X),(U=_.current)===null||U===void 0||U.call(_,W,X)};m>0&&($=sF($,m,{trailing:!0,leading:!1}));var N=new ResizeObserver($),L=w.current.getBoundingClientRect(),D=L.width,B=L.height;return C(D,B),N.observe(w.current),function(){N.disconnect()}},[C,m]);var O=k.useMemo(function(){var $=j.containerWidth,N=j.containerHeight;if($<0||N<0)return null;ri(ms(o)||ms(l),`The width(%s) and height(%s) are both fixed numbers, 843 maybe you don't need to use a ResponsiveContainer.`,o,l),ri(!r||r>0,"The aspect(%s) must be greater than zero.",r);var L=ms(o)?$:o,D=ms(l)?N:l;r&&r>0&&(L?D=L/r:D&&(L=D*r),h&&D>h&&(D=h)),ri(L>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0, 844 please check the style of container, or the props width(%s) and height(%s), 845 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 846 height and width.`,L,D,o,l,u,d,r);var B=!Array.isArray(p)&&ua(p.type).endsWith("Chart");return E.Children.map(p,function(R){return E.isValidElement(R)?k.cloneElement(R,Rp({width:L,height:D},B?{style:Rp({height:"100%",width:"100%",maxHeight:D,maxWidth:L},R.props.style)}:{})):R})},[r,p,l,h,d,u,j,o]);return E.createElement("div",{id:g?"".concat(g):void 0,className:Te("recharts-responsive-container",b),style:Rp(Rp({},S),{},{width:o,height:l,minWidth:u,minHeight:d,maxHeight:h}),ref:w},O)}),Rv=function(t){return null};Rv.displayName="Cell";function $f(e){"@babel/helpers - typeof";return $f=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},$f(e)}function QC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function E1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QC(Object(r),!0).forEach(function(n){gbe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gbe(e,t,r){return t=vbe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vbe(e){var t=bbe(e,"string");return $f(t)=="symbol"?t:t+""}function bbe(e,t){if($f(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($f(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vl={widthCache:{},cacheCount:0},xbe=2e3,wbe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},eN="recharts_measurement_span";function Sbe(e){var t=E1({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Md=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ni.isSsr)return{width:0,height:0};var n=Sbe(r),i=JSON.stringify({text:t,copyStyle:n});if(vl.widthCache[i])return vl.widthCache[i];try{var a=document.getElementById(eN);a||(a=document.createElement("span"),a.setAttribute("id",eN),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=E1(E1({},wbe),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return vl.widthCache[i]=l,++vl.cacheCount>xbe&&(vl.cacheCount=0,vl.widthCache={}),l}catch{return{width:0,height:0}}},_be=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Cy(e,t){return Ebe(e)||Tbe(e,t)||Abe(e,t)||kbe()}function kbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 847In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Abe(e,t){if(e){if(typeof e=="string")return tN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tN(e,t)}}function tN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Tbe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Ebe(e){if(Array.isArray(e))return e}function jbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Pbe(n.key),n)}}function Obe(e,t,r){return t&&rN(e.prototype,t),r&&rN(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pbe(e){var t=Cbe(e,"string");return Mf(t)=="symbol"?t:t+""}function Cbe(e,t){if(Mf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,iN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Nbe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Rbe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,lF={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Ibe=Object.keys(lF),Yl="NaN";function $be(e,t){return e*lF[t]}var $p=function(){function e(t,r){jbe(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!Nbe.test(r)&&(this.num=NaN,this.unit=""),Ibe.includes(r)&&(this.num=$be(t,r),this.unit="px")}return Obe(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.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(r){var n,i=(n=Rbe.exec(r))!==null&&n!==void 0?n:[],a=Cy(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])}();function cF(e){if(e.includes(Yl))return Yl;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=nN.exec(t))!==null&&r!==void 0?r:[],i=Cy(n,4),a=i[1],o=i[2],s=i[3],l=$p.parse(a??""),c=$p.parse(s??""),u=o==="*"?l.multiply(c):l.divide(c);if(u.isNaN())return Yl;t=t.replace(nN,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,h=(d=iN.exec(t))!==null&&d!==void 0?d:[],p=Cy(h,4),y=p[1],m=p[2],g=p[3],b=$p.parse(y??""),v=$p.parse(g??""),x=m==="+"?b.add(v):b.subtract(v);if(x.isNaN())return Yl;t=t.replace(iN,x.toString())}return t}var aN=/\(([^()]*)\)/;function Mbe(e){for(var t=e;t.includes("(");){var r=aN.exec(t),n=Cy(r,2),i=n[1];t=t.replace(aN,cF(i))}return t}function Dbe(e){var t=e.replace(/\s+/g,"");return t=Mbe(t),t=cF(t),t}function Lbe(e){try{return Dbe(e)}catch{return Yl}}function E0(e){var t=Lbe(e.slice(5,-1));return t===Yl?"":t}var Bbe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Fbe=["dx","dy","angle","className","breakAll"];function j1(){return j1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
847for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},j1.apply(this,arguments)}function oN(e,t){if(e==null)return{};var r=Ube(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ube(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function sN(e,t){return Hbe(e)||Wbe(e,t)||zbe(e,t)||Vbe()}function Vbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 848In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zbe(e,t){if(e){if(typeof e=="string")return lN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lN(e,t)}}function lN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Wbe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Hbe(e){if(Array.isArray(e))return e}var uF=/[ \f\n\r\t\v\u2028\u2029]+/,dF=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Ae(r)||(n?a=r.toString().split(""):a=r.toString().split(uF));var o=a.map(function(l){return{word:l,width:Md(l,i).width}}),s=n?0:Md(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},qbe=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,c=t.breakAll,u=Z(o),d=s,h=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return L.reduce(function(D,B){var R=B.word,M=B.width,U=D[D.length-1];if(U&&(i==null||a||U.width+M+n<Number(i)))U.words.push(R),U.width+=M+n;else{var Y={words:[R],width:M};D.push(Y)}return D},[])},p=h(r),y=function(L){return L.reduce(function(D,B){return D.width>B.width?D:B})};if(!u)return p;for(var m="â¦",g=function(L){var D=d.slice(0,L),B=dF({breakAll:c,style:l,children:D+m}).wordsWithComputedWidth,R=h(B),M=R.length>o||y(R).width>Number(i);return[M,R]},b=0,v=d.length-1,x=0,S;b<=v&&x<=d.length-1;){var w=Math.floor((b+v)/2),_=w-1,A=g(_),T=sN(A,2),j=T[0],P=T[1],C=g(w),O=sN(C,1),$=O[0];if(!j&&!$&&(b=w+1),j&&$&&(v=w-1),!j&&$){S=P;break}x++}return S||p},cN=function(t){var r=Ae(t)?[]:t.toString().split(uF);return[{words:r}]},Kbe=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!ni.isSsr){var l,c,u=dF({breakAll:o,children:i,style:a});if(u){var d=u.wordsWithComputedWidth,h=u.spaceWidth;l=d,c=h}else return cN(i);return qbe({breakAll:o,children:i,maxLines:s,style:a},l,c,r,n)}return cN(i)},uN="#808080",Ws=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,c=l===void 0?"0.71em":l,u=t.scaleToFit,d=u===void 0?!1:u,h=t.textAnchor,p=h===void 0?"start":h,y=t.verticalAnchor,m=y===void 0?"end":y,g=t.fill,b=g===void 0?uN:g,v=oN(t,Bbe),x=k.useMemo(function(){return Kbe({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:d,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,d,v.style,v.width]),S=v.dx,w=v.dy,_=v.angle,A=v.className,T=v.breakAll,j=oN(v,Fbe);if(!Gt(n)||!Gt(a))return null;var P=n+(Z(S)?S:0),C=a+(Z(w)?w:0),O;switch(m){case"start":O=E0("calc(".concat(c,")"));break;case"middle":O=E0("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:O=E0("calc(".concat(x.length-1," * -").concat(s,")"));break}var $=[];if(d){var N=x[0].width,L=v.width;$.push("scale(".concat((Z(L)?L/N:1)/N,")"))}return _&&$.push("rotate(".concat(_,", ").concat(P,", ").concat(C,")")),$.length&&(j.transform=$.join(" ")),E.createElement("text",j1({},ge(j,!0),{x:P,y:C,className:Te("recharts-text",A),textAnchor:p,fill:b.includes("url")?uN:b}),x.map(function(D,B){var R=D.words.join(T?"":" ");return E.createElement("tspan",{x:P,dy:B===0?O:s,key:"".concat(R,"-").concat(B)},R)}))};function bo(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ybe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gA(e){let t,r,n;e.length!==2?(t=bo,r=(s,l)=>bo(e(s),l),n=(s,l)=>e(s)-l):(t=e===bo||e===Ybe?e:Gbe,r=e,n=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;r(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;r(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function o(s,l,c=0,u=s.length){const d=i(s,l,c,u-1);return d>c&&n(s[d-1],l)>-n(s[d],l)?d-1:d}return{left:i,center:o,right:a}}function Gbe(){return 0}function fF(e){return e===null?NaN:+e}function*Xbe(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Zbe=gA(bo),Ih=Zbe.right;gA(fF).center;class dN extends Map{constructor(t,r=e0e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(fN(this,t))}has(t){return super.has(fN(this,t))}set(t,r){return super.set(Jbe(this,t),r)}delete(t){return super.delete(Qbe(this,t))}}function fN({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Jbe({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Qbe({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function e0e(e){return e!==null&&typeof e=="object"?e.valueOf():e}function t0e(e=bo){if(e===bo)return hF;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function hF(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const r0e=Math.sqrt(50),n0e=Math.sqrt(10),i0e=Math.sqrt(2);function Ny(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=r0e?10:a>=n0e?5:a>=i0e?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&
vendor: 13,673 bytes, line 848
848++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=r&&r<2?Ny(e,t,r*2):[s,l,c]}function O1(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Ny(t,e,r):Ny(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let c=0;c<s;++c)l[c]=(a-c)/-o;else for(let c=0;c<s;++c)l[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(i+c)/-o;else for(let c=0;c<s;++c)l[c]=(i+c)*o;return l}function P1(e,t,r){return t=+t,e=+e,r=+r,Ny(e,t,r)[2]}function C1(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?P1(t,e,r):P1(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function hN(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function pN(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function pF(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?hF:t0e(i);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,u=Math.log(l),d=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),p=Math.max(r,Math.floor(t-c*d/l+h)),y=Math.min(n,Math.floor(t+(l-c)*d/l+h));pF(e,t,p,y,i)}const a=e[t];let o=r,s=n;for(Zu(e,r,t),i(e[n],a)>0&&Zu(e,r,n);o<s;){for(Zu(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Zu(e,r,s):(++s,Zu(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Zu(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function a0e(e,t,r){if(e=Float64Array.from(Xbe(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return pN(e);if(t>=1)return hN(e);var n,i=(n-1)*t,a=Math.floor(i),o=hN(pF(e,a).subarray(0,a+1)),s=pN(e.subarray(a+1));return o+(s-o)*(i-a)}}function o0e(e,t,r=fF){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function s0e(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Cn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ea(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}const N1=Symbol("implicit");function vA(){var e=new dN,t=[],r=[],n=N1;function i(a){let o=e.get(a);if(o===void 0){if(n!==N1)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new dN;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return vA(t,r).unknown(n)},Cn.apply(i,arguments),i}function Df(){var e=vA().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var h=t().length,p=i<n,y=p?i:n,m=p?n:i;a=(m-y)/Math.max(1,h-l+c*2),s&&(a=Math.floor(a)),y+=(m-y-a*(h-l))*u,o=a*(1-l),s&&(y=Math.round(y),o=Math.round(o));var g=s0e(h).map(function(b){return y+a*b});return r(p?g.reverse():g)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,d()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,d()):s},e.padding=function(h){return arguments.length?(l=Math.min(1,c=+h),d()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),d()):l},e.paddingOuter=function(h){return arguments.length?(c=+h,d()):c},e.align=function(h){return arguments.length?(u=Math.max(0,Math.min(1,h)),d()):u},e.copy=function(){return Df(t(),[n,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},Cn.apply(d(),arguments)}function mF(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return mF(t())},e}function Dd(){return mF(Df.apply(null,arguments).paddingInner(1))}function bA(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function yF(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function $h(){}var Lf=.7,Ry=1/Lf,fc="\\s*([+-]?\\d+)\\s*",Bf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ni="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l0e=/^#([0-9a-f]{3,8})$/,c0e=new RegExp(`^rgb\\(${fc},${fc},${fc}\\)$`),u0e=new RegExp(`^rgb\\(${Ni},${Ni},${Ni}\\)$`),d0e=new RegExp(`^rgba\\(${fc},${fc},${fc},${Bf}\\)$`),f0e=new RegExp(`^rgba\\(${Ni},${Ni},${Ni},${Bf}\\)$`),h0e=new RegExp(`^hsl\\(${Bf},${Ni},${Ni}\\)$`),p0e=new RegExp(`^hsla\\(${Bf},${Ni},${Ni},${Bf}\\)$`),mN={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};bA($h,Ff,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:yN,formatHex:yN,formatHex8:m0e,formatHsl:y0e,formatRgb:gN,toString:gN});function yN(){return this.rgb().formatHex()}function m0e(){return this.rgb().formatHex8()}function y0e(){return gF(this).formatHsl()}function gN(){return this.rgb().formatRgb()}function Ff(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=l0e.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?vN(t):r===3?new Fr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Mp(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Mp(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=c0e.exec(e))?new Fr(t[1],t[2],t[3],1):(t=u0e.exec(e))?new Fr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=d0e.exec(e))?Mp(t[1],t[2],t[3],t[4]):(t=f0e.exec(e))?Mp(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=h0e.exec(e))?wN(t[1],t[2]/100,t[3]/100,1):(t=p0e.exec(e))?wN(t[1],t[2]/100,t[3]/100,t[4]):mN.hasOwnProperty(e)?vN(mN[e]):e==="transparent"?new Fr(NaN,NaN,NaN,0):null}function vN(e){return new Fr(e>>16&255,e>>8&255,e&255,1)}function Mp(e,t,r,n){return n<=0&&(e=t=r=NaN),new Fr(e,t,r,n)}function g0e(e){return e instanceof $h||(e=Ff(e)),e?(e=e.rgb(),new Fr(e.r,e.g,e.b,e.opacity)):new Fr}function R1(e,t,r,n){return arguments.length===1?g0e(e):new Fr(e,t,r,n??1)}function Fr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}bA(Fr,R1,yF($h,{brighter(e){return e=e==null?Ry:Math.pow(Ry,e),new Fr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Lf:Math.pow(Lf,e),new Fr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Fr(Os(this.r),Os(this.g),Os(this.b),Iy(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:bN,formatHex:bN,formatHex8:v0e,formatRgb:xN,toString:xN}));function bN(){return`#${ys(this.r)}${ys(this.g)}${ys(this.b)}`}function v0e(){return`#${ys(this.r)}${ys(this.g)}${ys(this.b)}${ys((isNaN(this.opacity)?1:this.opacity)*255)}`}function xN(){const e=Iy(this.opacity);return`${e===1?"rgb(":"rgba("}${Os(this.r)}, ${Os(this.g)}, ${Os(this.b)}${e===1?")":`, ${e})`}`}function Iy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Os(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ys(e){return e=Os(e),(e<16?"0":"")+e.toString(16)}function wN(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Qn(e,t,r,n)}function gF(e){if(e instanceof Qn)return new Qn(e.h,e.s,e.l,e.opacity);if(e instanceof $h||(e=Ff(e)),!e)return new Qn;if(e instanceof Qn)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new Qn(o,s,l,e.opacity)}function b0e(e,t,r,n){return arguments.length===1?gF(e):new Qn(e,t,r,n??1)}function Qn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}bA(Qn,b0e,yF($h,{brighter(e){return e=e==null?Ry:Math.pow(Ry,e),new Qn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Lf:Math.pow(Lf,e),new Qn(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Fr(j0(e>=240?e-240:e+120,i,n),j0(e,i,n),j0(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Qn(SN(this.h),Dp(this.s),Dp(this.l),Iy(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=Iy(this.opacity);return`${e===1?"hsl(":"hsla("}${SN(this.h)}, ${Dp(this.s)*100}%, ${Dp(this.l)*100}%${e===1?")":`, ${e})`}`}}));function SN(e){return e=(e||0)%360,e<0?e+360:e}function Dp(e){return Math.max(0,Math.min(1,e||0))}function j0(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const xA=e=>()=>e;function x0e(e,t){return function(r){return e+r*t}}function w0e(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function S0e(e){return(e=+e)==1?vF:function(t,r){return r-t?w0e(t,r,e):xA(isNaN(t)?r:t)}}function vF(e,t){var r=t-e;return r?x0e(e,r):xA(isNaN(e)?t:e)}const _N=function e(t){var r=S0e(t);function n(i,a){var o=r((i=R1(i)).r,(a=R1(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),c=vF(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return n.gamma=e,n}(1);function _0e(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function k0e(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function A0e(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Cu(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function T0e(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function $y(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function E0e(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Cu(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var I1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,O0=new RegExp(I1.source,"g");function j0e(e){return function(){return e}}function O0e(e){return function(t){return e(t)+""}}function P0e(e,t){var r=I1.lastIndex=O0.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=I1.exec(e))&&(i=O0.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:$y(n,i)})),r=O0.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?O0e(l[0].x):j0e(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function Cu(e,t){var r=typeof t,n;return t==null||r==="boolean"?xA(t):(r==="number"?$y:r==="string"?(n=Ff(t))?(t=n,_N):P0e:t instanceof Ff?_N:t instanceof Date?T0e:k0e(t)?_0e:Array.isArray(t)?A
vendor: 4,249 bytes, line 848
8480e:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?E0e:$y)(e,t)}function wA(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function C0e(e,t){t===void 0&&(t=e,e=Cu);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function N0e(e){return function(){return e}}function My(e){return+e}var kN=[0,1];function Pr(e){return e}function $1(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:N0e(isNaN(t)?NaN:.5)}function R0e(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function I0e(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=$1(i,n),a=r(o,a)):(n=$1(n,i),a=r(a,o)),function(s){return a(n(s))}}function $0e(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=$1(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=Ih(e,s,1,n)-1;return a[l](i[l](s))}}function Mh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Iv(){var e=kN,t=kN,r=Cu,n,i,a,o=Pr,s,l,c;function u(){var h=Math.min(e.length,t.length);return o!==Pr&&(o=R0e(e[0],e[h-1])),s=h>2?$0e:I0e,l=c=null,d}function d(h){return h==null||isNaN(h=+h)?a:(l||(l=s(e.map(n),t,r)))(n(o(h)))}return d.invert=function(h){return o(i((c||(c=s(t,e.map(n),$y)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,My),u()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),u()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),r=wA,u()},d.clamp=function(h){return arguments.length?(o=h?!0:Pr,u()):o!==Pr},d.interpolate=function(h){return arguments.length?(r=h,u()):r},d.unknown=function(h){return arguments.length?(a=h,d):a},function(h,p){return n=h,i=p,u()}}function SA(){return Iv()(Pr,Pr)}function M0e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Dy(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Vc(e){return e=Dy(Math.abs(e)),e?e[1]:NaN}function D0e(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function L0e(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var B0e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Uf(e){if(!(t=B0e.exec(e)))throw new Error("invalid format: "+e);var t;return new _A({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]})}Uf.prototype=_A.prototype;function _A(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+""}_A.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 F0e(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var bF;function U0e(e,t){var r=Dy(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(bF=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Dy(e,Math.max(0,t+a-1))[0]}function AN(e,t){var r=Dy(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const TN={"%":(e,t)=>
vendor: 4,870 bytes, line 848
848(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:M0e,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)=>AN(e*100,t),r:AN,s:U0e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function EN(e){return e}var jN=Array.prototype.map,ON=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function V0e(e){var t=e.grouping===void 0||e.thousands===void 0?EN:D0e(jN.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?EN:L0e(jN.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"â":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=Uf(d);var h=d.fill,p=d.align,y=d.sign,m=d.symbol,g=d.zero,b=d.width,v=d.comma,x=d.precision,S=d.trim,w=d.type;w==="n"?(v=!0,w="g"):TN[w]||(x===void 0&&(x=12),S=!0,w="g"),(g||h==="0"&&p==="=")&&(g=!0,h="0",p="=");var _=m==="$"?r:m==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",A=m==="$"?n:/[%p]/.test(w)?o:"",T=TN[w],j=/[defgprs%]/.test(w);x=x===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function P(C){var O=_,$=A,N,L,D;if(w==="c")$=T(C)+$,C="";else{C=+C;var B=C<0||1/C<0;if(C=isNaN(C)?l:T(Math.abs(C),x),S&&(C=F0e(C)),B&&+C==0&&y!=="+"&&(B=!1),O=(B?y==="("?y:s:y==="-"||y==="("?"":y)+O,$=(w==="s"?ON[8+bF/3]:"")+$+(B&&y==="("?")":""),j){for(N=-1,L=C.length;++N<L;)if(D=C.charCodeAt(N),48>D||D>57){$=(D===46?i+C.slice(N+1):C.slice(N))+$,C=C.slice(0,N);break}}}v&&!g&&(C=t(C,1/0));var R=O.length+C.length+$.length,M=R<b?new Array(b-R+1).join(h):"";switch(v&&g&&(C=t(M+C,M.length?b-$.length:1/0),M=""),p){case"<":C=O+C+$+M;break;case"=":C=O+M+C+$;break;case"^":C=M.slice(0,R=M.length>>1)+O+C+$+M.slice(R);break;default:C=M+O+C+$;break}return a(C)}return P.toString=function(){return d+""},P}function u(d,h){var p=c((d=Uf(d),d.type="f",d)),y=Math.max(-8,Math.min(8,Math.floor(Vc(h)/3)))*3,m=Math.pow(10,-y),g=ON[8+y/3];return function(b){return p(m*b)+g}}return{format:c,formatPrefix:u}}var Lp,kA,xF;z0e({thousands:",",grouping:[3],currency:["$",""]});function z0e(e){return Lp=V0e(e),kA=Lp.format,xF=Lp.formatPrefix,Lp}function W0e(e){return Math.max(0,-Vc(Math.abs(e)))}function H0e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Vc(t)/3)))*3-Vc(Math.abs(e)))}function q0e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Vc(t)-Vc(e))+1}function wF(e,t,r,n){var i=C1(e,t,r),a;switch(n=Uf(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=H0e(i,o))&&(n.precision=a),xF(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=q0e(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=W0e(i))&&(n.precision=a-(n.type==="%")*2);break}}return kA(n)}function Fo(e){var t=e.domain;return e.ticks=function(r){var n=t();return O1(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return wF(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,c,u=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);u-- >0;){if(c=P1(o,s,r),c===l)return n[i]=o,n[a]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function Ly(){var e=SA();return e.copy=function(){return Mh(e,Ly())},Cn.apply(e,arguments),Fo(e)}function SF(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,My),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return SF(e).unknown(t)},e=arguments.length?Array.from(e,My):[0,1],Fo(r)}function _F(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function PN(e){return Math.log(e)}function CN(e){return Math.exp(e)}function K0e(e){return-Math.log(-e)}function Y0e(e){return-Math.exp(-e)}function G0e(e){return isFinite(e)?+("1e"+e):e<0?0:e}function X0e(e){return e===10?G0e:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Z0e(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 NN(e){return(t,r)=>-e(-t,r)}function AA(e){const t=e(PN,CN),r=t.domain;let n=10,i,a;function o(){return i=Z0e(n),a=X0e(n),r()[0]<0?(i=NN(i),a=NN(a),e(K0e,Y0e)):e(PN,CN),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let h=i(c),p=i(u),y,m;const g=s==null?10:+s;let b=[];if(!(n%1)&&p-h<g){if(h=Math.floor(h),p=Math.ceil(p),c>0){for(;h<=p;
vendor: 4,459 bytes, line 848
848++h)for(y=1;y<n;++y)if(m=h<0?y/a(-h):y*a(h),!(m<c)){if(m>u)break;b.push(m)}}else for(;h<=p;++h)for(y=n-1;y>=1;--y)if(m=h>0?y/a(-h):y*a(h),!(m<c)){if(m>u)break;b.push(m)}b.length*2<g&&(b=O1(c,u,g))}else b=O1(h,p,Math.min(p-h,g)).map(a);return d?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Uf(l)).precision==null&&(l.trim=!0),l=kA(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return u=>{let d=u/a(Math.round(i(u)));return d*n<n-.5&&(d*=n),d<=c?l(u):""}},t.nice=()=>r(_F(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function kF(){const e=AA(Iv()).domain([1,10]);return e.copy=()=>Mh(e,kF()).base(e.base()),Cn.apply(e,arguments),e}function RN(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function IN(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function TA(e){var t=1,r=e(RN(t),IN(t));return r.constant=function(n){return arguments.length?e(RN(t=+n),IN(t)):t},Fo(r)}function AF(){var e=TA(Iv());return e.copy=function(){return Mh(e,AF()).constant(e.constant())},Cn.apply(e,arguments)}function $N(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function J0e(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Q0e(e){return e<0?-e*e:e*e}function EA(e){var t=e(Pr,Pr),r=1;function n(){return r===1?e(Pr,Pr):r===.5?e(J0e,Q0e):e($N(r),$N(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Fo(t)}function jA(){var e=EA(Iv());return e.copy=function(){return Mh(e,jA()).exponent(e.exponent())},Cn.apply(e,arguments),e}function exe(){return jA.apply(null,arguments).exponent(.5)}function MN(e){return Math.sign(e)*e*e}function txe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function TF(){var e=SA(),t=[0,1],r=!1,n;function i(a){var o=txe(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(MN(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,My)).map(MN)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return TF(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Cn.apply(i,arguments),Fo(i)}function EF(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=o0e(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Ih(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(bo),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return EF().domain(e).range(t).unknown(n)},Cn.apply(a,arguments)}function jF(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[Ih(n,l,0,r)]:a}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return jF().domain([e,t]).range(i).unknown(a)},Cn.apply(Fo(o),arguments)}function OF(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Ih(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return OF().domain(e).range(t).unknown(r)},Cn.apply(i,arguments)}const P0=new Date,C0=new Date;function Xt(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>
vendor: 5,309 bytes, line 848
848(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let c;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=a=>Xt(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(P0.setTime(+a),C0.setTime(+o),e(P0),e(C0),Math.floor(r(P0,C0))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const By=Xt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);By.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Xt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):By);By.range;const oa=1e3,Sn=oa*60,sa=Sn*60,xa=sa*24,OA=xa*7,DN=xa*30,N0=xa*365,gs=Xt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*oa)},(e,t)=>(t-e)/oa,e=>e.getUTCSeconds());gs.range;const PA=Xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*oa)},(e,t)=>{e.setTime(+e+t*Sn)},(e,t)=>(t-e)/Sn,e=>e.getMinutes());PA.range;const CA=Xt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Sn)},(e,t)=>(t-e)/Sn,e=>e.getUTCMinutes());CA.range;const NA=Xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*oa-e.getMinutes()*Sn)},(e,t)=>{e.setTime(+e+t*sa)},(e,t)=>(t-e)/sa,e=>e.getHours());NA.range;const RA=Xt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*sa)},(e,t)=>(t-e)/sa,e=>e.getUTCHours());RA.range;const Dh=Xt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Sn)/xa,e=>e.getDate()-1);Dh.range;const $v=Xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/xa,e=>e.getUTCDate()-1);$v.range;const PF=Xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/xa,e=>Math.floor(e/xa));PF.range;function nl(e){return Xt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Sn)/OA)}const Mv=nl(0),Fy=nl(1),rxe=nl(2),nxe=nl(3),zc=nl(4),ixe=nl(5),axe=nl(6);Mv.range;Fy.range;rxe.range;nxe.range;zc.range;ixe.range;axe.range;function il(e){return Xt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/OA)}const Dv=il(0),Uy=il(1),oxe=il(2),sxe=il(3),Wc=il(4),lxe=il(5),cxe=il(6);Dv.range;Uy.range;oxe.range;sxe.range;Wc.range;lxe.range;cxe.range;const IA=Xt(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());IA.range;const $A=Xt(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());$A.range;const wa=Xt(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());wa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});wa.range;const Sa=Xt(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());Sa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Sa.range;function CF(e,t,r,n,i,a){const o=[[gs,1,oa],[gs,5,5*oa],[gs,15,15*oa],[gs,30,30*oa],[a,1,Sn],[a,5,5*Sn],[a,15,15*Sn],[a,30,30*Sn],[i,1,sa],[i,3,3*sa],[i,6,6*sa],[i,12,12*sa],[n,1,xa],[n,2,2*xa],[r,1,OA],[t,1,DN],[t,3,3*DN],[e,1,N0]];function s(c,u,d){const h=u<c;h&&([c,u]=[u,c]);const p=d&&typeof d.range=="function"?d:l(c,u,d),y=p?p.range(c,+u+1):[];return h?y.reverse():y}function l(c,u,d){const h=Math.abs(u-c)/d,p=gA(([,,g])=>g).right(o,h);if(p===o.length)return e.every(C1(c/N0,u/N0,d));if(p===0)return By.every(Math.max(C1(c,u,d),1));const[y,m]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return y.every(m)}return[s,l]}const[uxe,dxe]=CF(Sa,$A,Dv,PF,RA,CA),[fxe,hxe]=CF(wa,IA,Mv,Dh,NA,PA);function R0(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 I0(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 Ju(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function pxe(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=Qu(i),u=ed(i),d=Qu(a),h=ed(a),p=Qu(o),y=ed(o),m=Qu(s),g=ed(s),b=Qu(l),v=ed(l),x={a:B,A:R,b:M,B:U,c:null,d:zN,e:zN,f:Dxe,g:Kxe,G:Gxe,H:Ixe,I:$xe,j:Mxe,L:NF,m:Lxe,M:Bxe,p:Y,q:W,Q:qN,s:KN,S:Fxe,u:Uxe,U:Vxe,V:zxe,w:Wxe,W:Hxe,x:null,X:null,y:qxe,Y:Yxe,Z:Xxe,"%":HN},S={a:X,A:le,b:we,B:Re,c:null,d:WN,e:WN,f:ewe,g:uwe,G:fwe,H:Zxe,I:Jxe,j:
vendor: 8,065 bytes, line 848
848Qxe,L:IF,m:twe,M:rwe,p:te,q:ke,Q:qN,s:KN,S:nwe,u:iwe,U:awe,V:owe,w:swe,W:lwe,x:null,X:null,y:cwe,Y:dwe,Z:hwe,"%":HN},w={a:P,A:C,b:O,B:$,c:N,d:UN,e:UN,f:Pxe,g:FN,G:BN,H:VN,I:VN,j:Txe,L:Oxe,m:Axe,M:Exe,p:j,q:kxe,Q:Nxe,s:Rxe,S:jxe,u:bxe,U:xxe,V:wxe,w:vxe,W:Sxe,x:L,X:D,y:FN,Y:BN,Z:_xe,"%":Cxe};x.x=_(r,x),x.X=_(n,x),x.c=_(t,x),S.x=_(r,S),S.X=_(n,S),S.c=_(t,S);function _(G,ie){return function(ae){var V=[],Ce=-1,Se=0,We=G.length,He,mt,xr;for(ae instanceof Date||(ae=new Date(+ae));++Ce<We;)G.charCodeAt(Ce)===37&&(V.push(G.slice(Se,Ce)),(mt=LN[He=G.charAt(++Ce)])!=null?He=G.charAt(++Ce):mt=He==="e"?" ":"0",(xr=ie[He])&&(He=xr(ae,mt)),V.push(He),Se=Ce+1);return V.push(G.slice(Se,Ce)),V.join("")}}function A(G,ie){return function(ae){var V=Ju(1900,void 0,1),Ce=T(V,G,ae+="",0),Se,We;if(Ce!=ae.length)return null;if("Q"in V)return new Date(V.Q);if("s"in V)return new Date(V.s*1e3+("L"in V?V.L:0));if(ie&&!("Z"in V)&&(V.Z=0),"p"in V&&(V.H=V.H%12+V.p*12),V.m===void 0&&(V.m="q"in V?V.q:0),"V"in V){if(V.V<1||V.V>53)return null;"w"in V||(V.w=1),"Z"in V?(Se=I0(Ju(V.y,0,1)),We=Se.getUTCDay(),Se=We>4||We===0?Uy.ceil(Se):Uy(Se),Se=$v.offset(Se,(V.V-1)*7),V.y=Se.getUTCFullYear(),V.m=Se.getUTCMonth(),V.d=Se.getUTCDate()+(V.w+6)%7):(Se=R0(Ju(V.y,0,1)),We=Se.getDay(),Se=We>4||We===0?Fy.ceil(Se):Fy(Se),Se=Dh.offset(Se,(V.V-1)*7),V.y=Se.getFullYear(),V.m=Se.getMonth(),V.d=Se.getDate()+(V.w+6)%7)}else("W"in V||"U"in V)&&("w"in V||(V.w="u"in V?V.u%7:"W"in V?1:0),We="Z"in V?I0(Ju(V.y,0,1)).getUTCDay():R0(Ju(V.y,0,1)).getDay(),V.m=0,V.d="W"in V?(V.w+6)%7+V.W*7-(We+5)%7:V.w+V.U*7-(We+6)%7);return"Z"in V?(V.H+=V.Z/100|0,V.M+=V.Z%100,I0(V)):R0(V)}}function T(G,ie,ae,V){for(var Ce=0,Se=ie.length,We=ae.length,He,mt;Ce<Se;){if(V>=We)return-1;if(He=ie.charCodeAt(Ce++),He===37){if(He=ie.charAt(Ce++),mt=w[He in LN?ie.charAt(Ce++):He],!mt||(V=mt(G,ae,V))<0)return-1}else if(He!=ae.charCodeAt(V++))return-1}return V}function j(G,ie,ae){var V=c.exec(ie.slice(ae));return V?(G.p=u.get(V[0].toLowerCase()),ae+V[0].length):-1}function P(G,ie,ae){var V=p.exec(ie.slice(ae));return V?(G.w=y.get(V[0].toLowerCase()),ae+V[0].length):-1}function C(G,ie,ae){var V=d.exec(ie.slice(ae));return V?(G.w=h.get(V[0].toLowerCase()),ae+V[0].length):-1}function O(G,ie,ae){var V=b.exec(ie.slice(ae));return V?(G.m=v.get(V[0].toLowerCase()),ae+V[0].length):-1}function $(G,ie,ae){var V=m.exec(ie.slice(ae));return V?(G.m=g.get(V[0].toLowerCase()),ae+V[0].length):-1}function N(G,ie,ae){return T(G,t,ie,ae)}function L(G,ie,ae){return T(G,r,ie,ae)}function D(G,ie,ae){return T(G,n,ie,ae)}function B(G){return o[G.getDay()]}function R(G){return a[G.getDay()]}function M(G){return l[G.getMonth()]}function U(G){return s[G.getMonth()]}function Y(G){return i[+(G.getHours()>=12)]}function W(G){return 1+~~(G.getMonth()/3)}function X(G){return o[G.getUTCDay()]}function le(G){return a[G.getUTCDay()]}function we(G){return l[G.getUTCMonth()]}function Re(G){return s[G.getUTCMonth()]}function te(G){return i[+(G.getUTCHours()>=12)]}function ke(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var ie=_(G+="",x);return ie.toString=function(){return G},ie},parse:function(G){var ie=A(G+="",!1);return ie.toString=function(){return G},ie},utcFormat:function(G){var ie=_(G+="",S);return ie.toString=function(){return G},ie},utcParse:function(G){var ie=A(G+="",!0);return ie.toString=function(){return G},ie}}}var LN={"-":"",_:" ",0:"0"},tr=/^\s*\d+/,mxe=/^%/,yxe=/[\\^$*+?|[\]().{}]/g;function ze(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function gxe(e){return e.replace(yxe,"\\$&")}function Qu(e){return new RegExp("^(?:"+e.map(gxe).join("|")+")","i")}function ed(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function vxe(e,t,r){var n=tr.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function bxe(e,t,r){var n=tr.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function xxe(e,t,r){var n=tr.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function wxe(e,t,r){var n=tr.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Sxe(e,t,r){var n=tr.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function BN(e,t,r){var n=tr.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function FN(e,t,r){var n=tr.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function _xe(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function kxe(e,t,r){var n=tr.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Axe(e,t,r){var n=tr.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function UN(e,t,r){var n=tr.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Txe(e,t,r){var n=tr.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function VN(e,t,r){var n=tr.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Exe(e,t,r){var n=tr.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function jxe(e,t,r){var n=tr.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Oxe(e,t,r){var n=tr.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Pxe(e,t,r){var n=tr.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Cxe(e,t,r){var n=mxe.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Nxe(e,t,r){var n=tr.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Rxe(e,t,r){var n=tr.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function zN(e,t){return ze(e.getDate(),t,2)}function Ixe(e,t){return ze(e.getHours(),t,2)}function $xe(e,t){return ze(e.getHours()%12||12,t,2)}function Mxe(e,t){return ze(1+Dh.count(wa(e),e),t,3)}function NF(e,t){return ze(e.getMilliseconds(),t,3)}function Dxe(e,t){return NF(e,t)+"000"}function Lxe(e,t){return ze(e.getMonth()+1,t,2)}function Bxe(e,t){return ze(e.getMinutes(),t,2)}function Fxe(e,t){return ze(e.getSeconds(),t,2)}function Uxe(e){var t=e.getDay();return t===0?7:t}function Vxe(e,t){return ze(Mv.count(wa(e)-1,e),t,2)}function RF(e){var t=e.getDay();return t>=4||t===0?zc(e):zc.ceil(e)}function zxe(e,t){return e=RF(e),ze(zc.count(wa(e),e)+(wa(e).getDay()===4),t,2)}function Wxe(e){return e.getDay()}function Hxe(e,t){return ze(Fy.count(wa(e)-1,e),t,2)}function qxe(e,t){return ze(e.getFullYear()%100,t,2)}function Kxe(e,t){return e=RF(e),ze(e.getFullYear()%100,t,2)}function Yxe(e,t){return ze(e.getFullYear()%1e4,t,4)}function Gxe(e,t){var r=e.getDay();return e=r>=4||r===0?zc(e):zc.ceil(e),ze(e.getFullYear()%1e4,t,4)}function Xxe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ze(t/60|0,"0",2)+ze(t%60,"0",2)}function WN(e,t){return ze(e.getUTCDate(),t,2)}function Zxe(e,t){return ze(e.getUTCHours(),t,2)}function Jxe(e,t){return ze(e.getUTCHours()%12||12,t,2)}function Qxe(e,t){return ze(1+$v.count(Sa(e),e),t,3)}function IF(e,t){return ze(e.getUTCMilliseconds(),t,3)}function ewe(e,t){return IF(e,t)+"000"}function twe(e,t){return ze(e.getUTCMonth()+1,t,2)}function rwe(e,t){return ze(e.getUTCMinutes(),t,2)}function nwe(e,t){return ze(e.getUTCSeconds(),t,2)}function iwe(e){var t=e.getUTCDay();return t===0?7:t}function awe(e,t){return ze(Dv.count(Sa(e)-1,e),t,2)}function $F(e){var t=e.getUTCDay();return t>=4||t===0?Wc(e):Wc.ceil(e)}function owe(e,t){return e=$F(e),ze(Wc.count(Sa(e),e)+(Sa(e).getUTCDay()===4),t,2)}function swe(e){return e.getUTCDay()}function lwe(e,t){return ze(Uy.count(Sa(e)-1,e),t,2)}function cwe(e,t){return ze(e.getUTCFullYear()%100,t,2)}function uwe(e,t){return e=$F(e),ze(e.getUTCFullYear()%100,t,2)}function dwe(e,t){return ze(e.getUTCFullYear()%1e4,t,4)}function fwe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Wc(e):Wc.ceil(e),ze(e.getUTCFullYear()%1e4,t,4)}function hwe(){return"+0000"}function HN(){return"%"}function qN(e){return+e}function KN(e){return Math.floor(+e/1e3)}var bl,MF,DF;pwe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
848ay","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 pwe(e){return bl=pxe(e),MF=bl.format,bl.parse,DF=bl.utcFormat,bl.utcParse,bl}function mwe(e){return new Date(e)}function ywe(e){return e instanceof Date?+e:+new Date(+e)}function MA(e,t,r,n,i,a,o,s,l,c){var u=SA(),d=u.invert,h=u.domain,p=c(".%L"),y=c(":%S"),m=c("%I:%M"),g=c("%I %p"),b=c("%a %d"),v=c("%b %d"),x=c("%B"),S=c("%Y");function w(_){return(l(_)<_?p:s(_)<_?y:o(_)<_?m:a(_)<_?g:n(_)<_?i(_)<_?b:v:r(_)<_?x:S)(_)}return u.invert=function(_){return new Date(d(_))},u.domain=function(_){return arguments.length?h(Array.from(_,ywe)):h().map(mwe)},u.ticks=function(_){var A=h();return e(A[0],A[A.length-1],_??10)},u.tickFormat=function(_,A){return A==null?w:c(A)},u.nice=function(_){var A=h();return(!_||typeof _.range!="function")&&(_=t(A[0],A[A.length-1],_??10)),_?h(_F(A,_)):u},u.copy=function(){return Mh(u,MA(e,t,r,n,i,a,o,s,l,c))},u}function gwe(){return Cn.apply(MA(fxe,hxe,wa,IA,Mv,Dh,NA,PA,gs,MF).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function vwe(){return Cn.apply(MA(uxe,dxe,Sa,$A,Dv,$v,RA,CA,gs,DF).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Lv(){var e=0,t=1,r,n,i,a,o=Pr,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:o(i===0?.5:(d=(a(d)-r)*i,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(o=d,c):o};function u(d){return function(h){var p,y;return arguments.length?([p,y]=h,o=d(p,y),c):[o(0),o(1)]}}return c.range=u(Cu),c.rangeRound=u(wA),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return a=d,r=d(e),n=d(t),i=r===n?0:1/(n-r),c}}function Uo(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function LF(){var e=Fo(Lv()(Pr));return e.copy=function(){return Uo(e,LF())},Ea.apply(e,arguments)}function BF(){var e=AA(Lv()).domain([1,10]);return e.copy=function(){return Uo(e,BF()).base(e.base())},Ea.apply(e,arguments)}function FF(){var e=TA(Lv());return e.copy=function(){return Uo(e,FF()).constant(e.constant())},Ea.apply(e,arguments)}function DA(){var e=EA(Lv());return e.copy=function(){return Uo(e,DA()).exponent(e.exponent())},Ea.apply(e,arguments)}function bwe(){return DA.apply(null,arguments).exponent(.5)}function UF(){var e=[],t=Pr;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ih(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(bo),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>a0e(e,a/n))},r.copy=function(){return UF(t).domain(e)},Ea.apply(r,arguments)}function Bv(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,c=Pr,u,d=!1,h;function p(m){return isNaN(m=+m)?h:(m=.5+((m=+u(m))-a)*(n*m<n*a?s:l),c(d?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,r]=m,i=u(e=+e),a=u(t=+t),o=u(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(m){return arguments.length?(d=!!m,p):d},p.interpolator=function(m){return arguments.length?(c=m,p):c};function y(m){return function(g){var b,v,x;return arguments.length?([b,v,x]=g,c=C0e(m,[b,v,x]),p):[c(0),c(.5),c(1)]}}return p.range=y(Cu),p.rangeRound=y(wA),p.unknown=function(m){return arguments.length?(h=m,p):h},function(m){return u=m,i=m(e),a=m(t),o=m(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function VF(){var e=Fo(Bv()(Pr));return e.copy=function(){return Uo(e,VF())},Ea.apply(e,arguments)}function zF(){var e=AA(Bv()).domain([.1,1,10]);return e.copy=function(){return Uo(e,zF()).base(e.base())},Ea.apply(e,arguments)}function WF(){var e=TA(Bv());return e.copy=function(){return Uo(e,WF()).constant(e.constant())},Ea.apply(e,arguments)}function LA(){var e=EA(Bv());return e.copy=function(){return Uo(e,LA()).exponent(e.exponent())},Ea.apply(e,arguments)}function xwe(){return LA.apply(null,arguments).exponent(.5)}const YN=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Df,scaleDiverging:VF,scaleDivergingLog:zF,scaleDivergingPow:LA,scaleDivergingSqrt:xwe,scaleDivergingSymlog:WF,scaleIdentity:SF,scaleImplicit:N1,scaleLinear:Ly,scaleLog:kF,scaleOrdinal:vA,scalePoint:Dd,scalePow:jA,scaleQuantile:EF,scaleQuantize:jF,scaleRadial:TF,scaleSequential:LF,scaleSequentialLog:BF,scaleSequentialPow:DA,scaleSequentialQuantile:UF,scaleSequentialSqrt:bwe,scaleSequentialSymlog:FF,scaleSqrt:exe,scaleSymlog:AF,scaleThreshold:OF,scaleTime:gwe,scaleUtc:vwe,tickFormat:wF},Symbol.toStringTag,{value:"Module"}));var wwe=Su;function Swe(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(o!=null&&(s===void 0?o===o&&!wwe(o):r(o,s)))var s=o,l=a}return l}var Fv=Swe;function _we(e,t){return e>t}var HF=_we,kwe=Fv,Awe=HF,Twe=Pu;function Ewe(e){return e&&e.length?kwe(e,Twe,Awe):void 0}var jwe=Ewe;const oo=Ye(jwe);function Owe(e,t){return e<t}var qF=Owe,Pwe=Fv,Cwe=qF,Nwe=Pu;function Rwe(e){return e&&e.length?Pwe(e,Nwe,Cwe):void 0}var Iwe=Rwe;const Uv=Ye(Iwe);var $we=Jk,Mwe=Fi,Dwe=eF,Lwe=qr;function Bwe(e,t){var r=Lwe(e)?$we:Dwe;return r(e,Mwe(t))}var Fwe=Bwe,Uwe=J5,Vwe=Fwe;function zwe(e,t){return Uwe(Vwe(e,t),1)}var Wwe=zwe;const Hwe=Ye(Wwe);var qwe=hA;function Kwe(e,t){return qwe(e,t)}var Ywe=Kwe;const Hs=Ye(Ywe);
vendor: 62,285 bytes, lines 848-875
848var Nu=1e9,Gwe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},FA,vt=!0,jn="[DecimalError] ",Ps=jn+"Invalid argument: ",BA=jn+"Exponent out of range: ",Ru=Math.floor,as=Math.pow,Xwe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,tn,Zt=1e7,ht=7,KF=9007199254740991,Vy=Ru(KF/ht),fe={};fe.absoluteValue=fe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};fe.comparedTo=fe.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};fe.decimalPlaces=fe.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ht;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};fe.dividedBy=fe.div=function(e){return da(this,new this.constructor(e))};fe.dividedToIntegerBy=fe.idiv=function(e){var t=this,r=t.constructor;return rt(da(t,new r(e),0,1),r.precision)};fe.equals=fe.eq=function(e){return!this.cmp(e)};fe.exponent=function(){return Ut(this)};fe.greaterThan=fe.gt=function(e){return this.cmp(e)>0};fe.greaterThanOrEqualTo=fe.gte=function(e){return this.cmp(e)>=0};fe.isInteger=fe.isint=function(){return this.e>this.d.length-2};fe.isNegative=fe.isneg=function(){return this.s<0};fe.isPositive=fe.ispos=function(){return this.s>0};fe.isZero=function(){return this.s===0};fe.lessThan=fe.lt=function(e){return this.cmp(e)<0};fe.lessThanOrEqualTo=fe.lte=function(e){return this.cmp(e)<1};fe.logarithm=fe.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(tn))throw Error(jn+"NaN");if(r.s<1)throw Error(jn+(r.s?"NaN":"-Infinity"));return r.eq(tn)?new n(0):(vt=!1,t=da(Vf(r,a),Vf(e,a),a),vt=!0,rt(t,i))};fe.minus=fe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?XF(t,e):YF(t,(e.s=-e.s,e))};fe.modulo=fe.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(jn+"NaN");return r.s?(vt=!1,t=da(r,e,0,1).times(e),vt=!0,r.minus(t)):rt(new n(r),i)};fe.naturalExponential=fe.exp=function(){return GF(this)};fe.naturalLogarithm=fe.ln=function(){return Vf(this)};fe.negated=fe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};fe.plus=fe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?YF(t,e):XF(t,(e.s=-e.s,e))};fe.precision=fe.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ps+e);if(t=Ut(i)+1,n=i.d.length-1,r=n*ht+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};fe.squareRoot=fe.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(jn+"NaN")}for(e=Ut(s),vt=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Ai(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ru((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),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(da(s,a,o+2)).times(.5),Ai(a.d).slice(0,o)===(t=Ai(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(rt(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return vt=!0,rt(n,r)};fe.times=fe.mul=function(e){var t,r,n,i,a,o,s,l,c,u=this,d=u.constructor,h=u.d,p=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,r=u.e+e.e,l=h.length,c=p.length,l<c&&(a=h,h=p,p=a,o=l,l=c,c=o),a=[],o=l+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+p[n]*h[i-n-1]+t,a[i--]=s%Zt|0,t=s/Zt|0;a[i]=(a[i]+t)%Zt|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,vt?rt(e,d.precision):e};fe.toDecimalPlaces=fe.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Di(e,0,Nu),t===void 0?t=n.rounding:Di(t,0,8),rt(r,e+Ut(r)+1,t))};fe.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=qs(n,!0):(Di(e,0,Nu),t===void 0?t=i.rounding:Di(t,0,8),n=rt(new i(n),e+1,t),r=qs(n,!0,e+1)),r};fe.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?qs(i):(Di(e,0,Nu),t===void 0?t=a.rounding:Di(t,0,8),n=rt(new a(i),e+Ut(i)+1,t),r=qs(n.abs(),!1,e+Ut(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};fe.toInteger=fe.toint=function(){var e=this,t=e.constructor;return rt(new t(e),Ut(e)+1,t.rounding)};fe.toNumber=function(){return+this};fe.toPower=fe.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(tn);if(s=new l(s),!s.s){if(e.s<1)throw Error(jn+"Infinity");return s}if(s.eq(tn))return s;if(n=l.precision,e.eq(tn))return rt(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=u<0?-u:u)<=KF){for(i=new l(tn),t=Math.ceil(n/ht+4),vt=!1;r%2&&(i=i.times(s),XN(i.d,t)),r=Ru(r/2),r!==0;)s=s.times(s),XN(s.d,t);return vt=!0,e.s<0?new l(tn).div(i):rt(i,n)}}else if(a<0)throw Error(jn+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,vt=!1,i=e.times(Vf(s,n+c)),vt=!0,i=GF(i),i.s=a,i};fe.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Ut(i),n=qs(i,r<=a.toExpNeg||r>=a.toExpPos)):(Di(e,1,Nu),t===void 0?t=a.rounding:Di(t,0,8),i=rt(new a(i),e,t),r=Ut(i),n=qs(i,e<=r||r<=a.toExpNeg,e)),n};fe.toSignificantDigits=fe.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Di(e,1,Nu),t===void 0?t=n.rounding:Di(t,0,8)),rt(new n(r),e,t)};fe.toString=fe.valueOf=fe.val=fe.toJSON=fe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ut(e),r=e.constructor;return qs(e,t<=r.toExpNeg||t>=r.toExpPos)};function YF(e,t){var r,n,i,a,o,s,l,c,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),vt?rt(t,d):t;if(l=e.d,c=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=c.length):(n=c,i=o,s=l.length),o=Math.ceil(d/ht),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=c.length,s-a<0&&(a=s,n=c,c=l,l=n),r=0;a;)r=(l[--a]=l[a]+c[a]+r)/Zt|0,l[a]%=Zt;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,vt?rt(t,d):t}function Di(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ps+e)}function Ai(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=ht-n.length,r&&(a+=Wa(r)),a+=n;o=e[t],n=o+"",r=ht-n.length,r&&(a+=Wa(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var da=function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%Zt|0,o=a/Zt|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Zt+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,c,u,d,h,p,y,m,g,b,v,x,S,w,_,A,T,j=n.constructor,P=n.s==i.s?1:-1,C=n.d,O=i.d;if(!n.s)return new j(n);if(!i.s)throw Error(jn+"Division by zero");for(l=n.e-i.e,A=O.length,w=C.length,p=new j(P),y=p.d=[],c=0;O[c]==(C[c]||0);)++c;if(O[c]>(C[c]||0)&&--l,a==null?v=a=j.precision:o?v=a+(Ut(n)-Ut(i))+1:v=a,v<0)return new j(0);if(v=v/ht+2|0,c=0,A==1)for(u=0,O=O[0],v++;(c<w||u)&&v--;c++)x=u*Zt+(C[c]||0),y[c]=x/O|0,u=x%O|0;else{for(u=Zt/(O[0]+1)|0,u>1&&(O=e(O,u),C=e(C,u),A=O.length,w=C.length),S=A,m=C.slice(0,A),g=m.length;g<A;)m[g++]=0;T=O.slice(),T.unshift(0),_=O[0],O[1]>=Zt/2&&++_;do u=0,s=t(O,m,A,g),s<0?(b=m[0],A!=g&&(b=b*Zt+(m[1]||0)),u=b/_|0,u>1?(u>=Zt&&(u=Zt-1),d=e(O,u),h=d.length,g=m.length,s=t(d,m,h,g),s==1&&(u--,r(d,A<h?T:O,h))):(u==0&&(s=u=1),d=O.slice()),h=d.length,h<g&&d.unshift(0),r(m,d,g),s==-1&&(g=m.length,s=t(O,m,A,g),s<1&&(u++,r(m,A<g?T:O,g))),g=m.length):s===0&&(u++,m=[0]),y[c++]=u,s&&m[0]?m[g++]=C[S]||0:(m=[C[S]],g=1);while((S++<w||m[0]!==void 0)&&v--)}return y[0]||y.shift(),p.e=l,rt(p,o?a+Ut(p)+1:a)}}();function GF(e,t){var r,n,i,a,o,s,l=0,c=0,u=e.constructor,d=u.precision;if(Ut(e)>16)throw Error(BA+Ut(e));if(!e.s)return new u(tn);for(t==null?(vt=!1,s=d):s=t,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(as(2,c))/Math.LN10*2+5|0,s+=n,r=i=a=new u(tn),u.precision=s;;){if(i=rt(i.times(e),s),r=r.times(++l),o=a.plus(da(i,r,s)),Ai(o.d).slice(0,s)===Ai(a.d).slice(0,s)){for(;c--;)a=rt(a.times(a),s);return u.precision=d,t==null?(vt=!0,rt(a,d)):a}a=o}}function Ut(e){for(var t=e.e*ht,r=e.d[0];r>=10;r/=10)t++;return t}function $0(e,t,r){if(t>e.LN10.sd())throw vt=!0,r&&(e.precision=r),Error(jn+"LN10 precision limit exceeded");return rt(new e(e.LN10),t)}function Wa(e){for(var t="";e--;)t+="0";return t}function Vf(e,t){var r,n,i,a,o,s,l,c,u,d=1,h=10,p=e,y=p.d,m=p.constructor,g=m.precision;if(p.s<1)throw Error(jn+(p.s?"NaN":"-Infinity"));if(p.eq(tn))return new m(0);if(t==null?(vt=!1,c=g):c=t,p.eq(10))return t==null&&(vt=!0),$0(m,c);if(c+=h,m.precision=c,r=Ai(y),n=r.charAt(0),a=Ut(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=Ai(p.d),n=r.charAt(0),d++;a=Ut(p),n>1?(p=new m("0."+r),a++):p=new m(n+"."+r.slice(1))}else return l=$0(m,c+2,g).times(a+""),p=Vf(new m(n+"."+r.slice(1)),c-h).plus(l),m.precision=g,t==null?(vt=!0,rt(p,g)):p;for(s=o=p=da(p.minus(tn),p.plus(tn),c),u=rt(p.times(p),c),i=3;;){if(o=rt(o.times(u),c),l=s.plus(da(o,new m(i),c)),Ai(l.d).slice(0,c)===Ai(s.d).slice(0,c))return s=s.times(2),a!==0&&(s=s.plus($0(m,c+2,g).times(a+""))),s=da(s,new m(d),c),m.precision=g,t==null?(vt=!0,rt(s,g)):s;s=l,i+=2}}function GN(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Ru(r/ht),e.d=[],n=(r+1)%ht,r<0&&(n+=ht),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=ht;n<i;)e.d.push(+t.slice(n,n+=ht));t=t.slice(n),n=ht-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),vt&&(e.e>Vy||e.e<-Vy))throw Error(BA+r)}else e.s=0,e.e=0,e.d=[0];return e}function rt(e,t,r){var n,i,a,o,s,l,c,u,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=ht,i=t,c=d[u=0];else{if(u=Math.ceil((n+1)/ht),a=d.length,u>=a)return e;for(c=a=d[u],o=1;a>=10;a/=10)o++;n%=ht,i=n-ht+o}if(r!==void 0&&(a=as(10,o-i-1),s=c/a%10|0,l=t<0||d[u+1]!==void 0||c%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?c/as(10,o-i):0:d[u-1])%10&1||r==(e.s<0?8:7))),t<1||!d[0])return l?(a=Ut(e),d.length=1,t=t-a-1,d[0]=as(10,(ht-t%ht)%ht),e.e=Ru(-t/ht)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(n==0?(d.length=u,a=1,u--):(d.length=u+1,a=as(10,ht-n),d[u]=i>0?(c/as(10,o-i)%as(10,i)|0)*a:0),l)for(;;)if(u==0){(d[0]+=a)==Zt&&(d[0]=1,++e.e);break}else{if(d[u]+=a,d[u]!=Zt)break;d[u--]=0,a=1}for(n=d.length;d[--n]===0;)d.pop();if(vt&&(e.e>Vy||e.e<-Vy))throw Error(BA+Ut(e));return e}function XF(e,t){var r,n,i,a,o,s,l,c,u,d,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),vt?rt(t,p):t;if(l=e.d,d=t.d,n=t.e,c=e.e,l=l.slice(),o=c-n,o){for(u=o<0,u?(r=l,o=-o,s=d.length):(r=d,n=c,s=l.length),i=Math.max(Math.ceil(p/ht),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=d.length,u=i<s,u&&(s=i),i=0;i<s;i++)if(l[i]!=d[i]){u=l[i]<d[i];break}o=0}for(u&&(r=l,l=d,d=r,t.s=-t.s),s=l.length,i=d.length-s;i>0;--i)l[s++]=0;for(i=d.length;i>o;){if(l[--i]<d[i]){for(a=i;a&&l[--a]===0;)l[a]=Zt-1;--l[a],l[i]+=Zt}l[i]-=d[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,vt?rt(t,p):t):new h(0)}function qs(e,t,r){var n,i=Ut(e),a=Ai(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Wa(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Wa(-i-1)+a,r&&(n=r-o)>0&&(a+=Wa(n))):i>=o?(a+=Wa(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Wa(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Wa(n))),e.s<0?"-"+a:a}function XN(e,t){if(e.length>t)return e.length=t,!0}function ZF(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Ps+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return GN(o,a.toString())}else if(typeof a!="string")throw Error(Ps+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,Xwe.test(a))GN(o,a);else throw Error(Ps+a)}if(i.prototype=fe,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=ZF,i.config=i.set=Zwe,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function Zwe(e){if(!e||typeof e!="object")throw Error(jn+"Object expected");var t,r,n,i=["precision",1,Nu,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Ru(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Ps+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Ps+r+": "+n);return this}var FA=ZF(Gwe);tn=new FA(1);const tt=FA;function Jwe(e){return r1e(e)||t1e(e)||e1e(e)||Qwe()}function Qwe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 849In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e1e(e,t){if(e){if(typeof e=="string")return M1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return M1(e,t)}}function t1e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function r1e(e){if(Array.isArray(e))return M1(e)}function M1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var n1e=function(t){return t},JF={"@@functional/placeholder":!0},QF=function(t){return t===JF},ZN=function(t){return function r(){return arguments.length===0||arguments.length===1&&QF(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},i1e=function e(t,r){return t===1?r:ZN(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==JF}).length;return o>=t?r.apply(void 0,i):e(t-o,ZN(function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var u=i.map(function(d){return QF(d)?l.shift():d});return r.apply(void 0,Jwe(u).concat(l))}))})},Vv=function(t){return i1e(t.length,t)},D1=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},a1e=Vv(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),o1e=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return n1e;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},L1=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},eU=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,l){return s===r[l]})||(r=a,n=t.apply(void 0,a)),n}};function s1e(e){var t;return e===0?t=1:t=Math.floor(new tt(e).abs().log(10).toNumber())+1,t}function l1e(e,t,r){for(var n=new tt(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var c1e=Vv(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),u1e=Vv(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),d1e=Vv(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const zv={rangeStep:l1e,getDigitCount:s1e,interpolateNumber:c1e,uninterpolateNumber:u1e,uninterpolateTruncation:d1e};function B1(e){return p1e(e)||h1e(e)||tU(e)||f1e()}function f1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 850In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h1e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function p1e(e){if(Array.isArray(e))return F1(e)}function zf(e,t){return g1e(e)||y1e(e,t)||tU(e,t)||m1e()}function m1e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 851In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tU(e,t){if(e){if(typeof e=="string")return F1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return F1(e,t)}}function F1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y1e(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function g1e(e){if(Array.isArray(e))return e}function rU(e){var t=zf(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function nU(e,t,r){if(e.lte(0))return new tt(0);var n=zv.getDigitCount(e.toNumber()),i=new tt(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new tt(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new tt(Math.ceil(l))}function v1e(e,t,r){var n=1,i=new tt(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new tt(10).pow(zv.getDigitCount(e)-1),i=new tt(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new tt(Math.floor(e)))}else e===0?i=new tt(Math.floor((t-1)/2)):r||(i=new tt(Math.floor(e)));var o=Math.floor((t-1)/2),s=o1e(a1e(function(l){return i.add(new tt(l-o).mul(n)).toNumber()}),D1);return s(0,t)}function iU(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new tt(0),tickMin:new tt(0),tickMax:new tt(0)};var a=nU(new tt(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new tt(0):(o=new tt(e).add(t).div(2),o=o.sub(new tt(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new tt(t).sub(o).div(a).toNumber()),c=s+l+1;return c>r?iU(e,t,r,n,i+1):(c<r&&(l=t>0?l+(r-c):l,s=t>0?s:s+(r-c)),{step:a,tickMin:o.sub(new tt(s).mul(a)),tickMax:o.add(new tt(l).mul(a))})}function b1e(e){var t=zf(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=rU([r,n]),l=zf(s,2),c=l[0],u=l[1];if(c===-1/0||u===1/0){var d=u===1/0?[c].concat(B1(D1(0,i-1).map(function(){return 1/0}))):[].concat(B1(D1(0,i-1).map(function(){return-1/0})),[u]);return r>n?L1(d):d}if(c===u)return v1e(c,i,a);var h=iU(c,u,o,a),p=h.step,y=h.tickMin,m=h.tickMax,g=zv.rangeStep(y,m.add(new tt(.1).mul(p)),p);return r>n?L1(g):g}function x1e(e,t){var r=zf(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=rU([n,i]),s=zf(o,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[n,i];if(l===c)return[l];var u=Math.max(t,2),d=nU(new tt(c).sub(l).div(u-1),a,0),h=[].concat(B1(zv.rangeStep(new tt(l),new tt(c).sub(new tt(.99).mul(d)),d)),[c]);return n>i?L1(h):h}var w1e=eU(b1e),S1e=eU(x1e),_1e="Invariant failed";function Ks(e,t){throw new Error(_1e)}var k1e=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Hc(e){"@babel/helpers - typeof";return Hc=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},Hc(e)}function zy(){return zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zy.apply(this,arguments)}function A1e(e,t){return O1e(e)||j1e(e,t)||E1e(e,t)||T1e()}function T1e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 852In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E1e(e,t){if(e){if(typeof e=="string")return JN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return JN(e,t)}}function JN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function j1e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function O1e(e){if(Array.isArray(e))return e}function P1e(e,t){if(e==null)return{};var r=C1e(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function C1e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function N1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R1e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sU(n.key),n)}}function I1e(e,t,r){return t&&R1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $1e(e,t,r){return t=Wy(t),M1e(e,aU()?Reflect.construct(t,r||[],Wy(e).constructor):t.apply(e,r))}function M1e(e,t){if(t&&(Hc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D1e(e)}function D1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aU=function(){return!!e})()}function Wy(e){return Wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wy(e)}function L1e(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&&U1(e,t)}function U1(e,t){return U1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},U1(e,t)}function oU(e,t,r){return t=sU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sU(e){var t=B1e(e,"string");return Hc(t)=="symbol"?t:t+""}function B1e(e,t){if(Hc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Hc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Lh=function(e){function t(){return N1e(this,t),$1e(this,t,arguments)}return L1e(t,e),I1e(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,c=n.dataPointFormatter,u=n.xAxis,d=n.yAxis,h=P1e(n,k1e),p=ge(h,!1);this.props.direction==="x"&&u.type!=="number"&&Ks();var y=l.map(function(m){var g=c(m,s),b=g.x,v=g.y,x=g.value,S=g.errorVal;if(!S)return null;var w=[],_,A;if(Array.isArray(S)){var T=A1e(S,2);_=T[0],A=T[1]}else _=A=S;if(a==="vertical"){var j=u.scale,P=v+i,C=P+o,O=P-o,$=j(x-_),N=j(x+A);w.push({x1:N,y1:C,x2:N,y2:O}),w.push({x1:$,y1:P,x2:N,y2:P}),w.push({x1:$,y1:C,x2:$,y2:O})}else if(a==="horizontal"){var L=d.scale,D=b+i,B=D-o,R=D+o,M=L(x-_),U=L(x+A);w.push({x1:B,y1:U,x2:R,y2:U}),w.push({x1:D,y1:M,x2:D,y2:U}),w.push({x1:B,y1:M,x2:R,y2:M})}return E.createElement($e,zy({className:"recharts-errorBar",key:"bar-".concat(w.map(function(Y){return"".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)}))},p),w.map(function(Y){return E.createElement("line",zy({},Y,{key:"line-".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)}))}))});return E.createElement($e,{className:"recharts-errorBars"},y)}}])}(E.Component);oU(Lh,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});oU(Lh,"displayName","ErrorBar");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 QN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QN(Object(r),!0).forEach(function(n){F1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F1e(e,t,r){return t=U1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U1e(e){var t=V1e(e,"string");return Wf(t)=="symbol"?t:t+""}function V1e(e,t){if(Wf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lU=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Zr(r,dc);if(!o)return null;var s=dc.defaultProps,l=s!==void 0?Xo(Xo({},s),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(u,d){var h=d.item,p=d.props,y=p.sectors||p.data||[];return u.concat(y.map(function(m){return{type:o.props.iconType||h.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):c=(n||[]).map(function(u){var d=u.item,h=d.type.defaultProps,p=h!==void 0?Xo(Xo({},h),d.props):{},y=p.dataKey,m=p.name,g=p.legendType,b=p.hide;return{inactive:b,dataKey:y,type:l.iconType||g||"square",color:UA(d),value:m||y,payload:p}}),Xo(Xo(Xo({},l),dc.getWithHeight(o,i)),{},{payload:c,item:o})};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 e2(e){return q1e(e)||H1e(e)||W1e(e)||z1e()}function z1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 853In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W1e(e,t){if(e){if(typeof e=="string")return V1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return V1(e,t)}}function H1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function q1e(e){if(Array.isArray(e))return V1(e)}function V1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function t2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?t2(Object(r),!0).forEach(function(n){hc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hc(e,t,r){return t=K1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K1e(e){var t=Y1e(e,"string");return Hf(t)=="symbol"?t:t+""}function Y1e(e,t){if(Hf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Hf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rt(e,t,r){return Ae(e)||Ae(t)?r:Gt(t)?on(e,t,r):xe(t)?t(e):r}function Ld(e,t,r,n){var i=Hwe(e,function(s){return Rt(s,t)});if(r==="number"){var a=i.filter(function(s){return Z(s)||parseFloat(s)});return a.length?[Uv(a),oo(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!Ae(s)}):i;return o.map(function(s){return Gt(s)||s instanceof Date?s:""})}var G1e=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,c=0;c<s;c++){var u=c>0?i[c-1].coordinate:i[s-1].coordinate,d=i[c].coordinate,h=c>=s-1?i[0].coordinate:i[c+1].coordinate,p=void 0;if(jr(d-u)!==jr(h-d)){var y=[];if(jr(h-d)===jr(l[1]-l[0])){p=h;var m=d+l[1]-l[0];y[0]=Math.min(m,(m+u)/2),y[1]=Math.max(m,(m+u)/2)}else{p=u;var g=h+l[1]-l[0];y[0]=Math.min(d,(g+d)/2),y[1]=Math.max(d,(g+d)/2)}var b=[Math.min(d,(p+d)/2),Math.max(d,(p+d)/2)];if(t>b[0]&&t<=b[1]||t>=y[0]&&t<=y[1]){o=i[c].index;break}}else{var v=Math.min(u,h),x=Math.max(u,h);if(t>(v+d)/2&&t<=(x+d)/2){o=i[c].index;break}}}else for(var S=0;S<s;S++)if(S===0&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S>0&&S<s-1&&t>(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===s-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){o=n[S].index;break}return o},UA=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?jt(jt({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},X1e=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,c=s.length;l<c;l++)for(var u=a[s[l]].stackGroups,d=Object.keys(u),h=0,p=d.length;h<p;h++){var y=u[d[h]],m=y.items,g=y.cateAxisId,b=m.filter(function(A){return ua(A.type).indexOf("Bar")>=0});if(b&&b.length){var v=b[0].type.defaultProps,x=v!==void 0?jt(jt({},v),b[0].props):b[0].props,S=x.barSize,w=x[g];o[w]||(o[w]=[]);var _=Ae(S)?r:S;o[w].push({item:b[0],stackList:b.slice(1),barSize:Ae(_)?void 0:Or(_,n,0)})}}return o},Z1e=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var c=Or(r,i,0,!0),u,d=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/l,y=o.reduce(function(S,w){return S+w.barSize||0},0);y+=(l-1)*c,y>=i&&(y-=(l-1)*c,c=0),y>=i&&p>0&&(h=!0,p*=.9,y=l*p);var m=(i-y)/2>>0,g={offset:m-c,size:0};u=o.reduce(function(S,w){var _={item:w.item,position:{offset:g.offset+g.size+c,size:h?p:w.barSize}},A=[].concat(e2(S),[_]);return g=A[A.length-1].position,w.stackList&&w.stackList.length&&w.stackList.forEach(function(T){A.push({item:T,position:g})}),A},d)}else{var b=Or(n,i,0,!0);i-2*b-(l-1)*c<=0&&(c=0);var v=(i-2*b-(l-1)*c)/l;v>1&&(v>>=0);var x=s===+s?Math.min(v,s):v;u=o.reduce(function(S,w,_){var A=[].concat(e2(S),[{item:w.item,position:{offset:b+(v+c)*_+(v-x)/2,size:x}}]);return w.stackList&&w.stackList.length&&w.stackList.forEach(function(T){A.push({item:T,position:A[A.length-1].position})}),A},d)}return u},J1e=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),c=lU({children:a,legendWidth:l});if(c){var u=i||{},d=u.width,h=u.height,p=c.align,y=c.verticalAlign,m=c.layout;if((m==="vertical"||m==="horizontal"&&y==="middle")&&p!=="center"&&Z(t[p]))return jt(jt({},t),{},hc({},p,t[p]+(d||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&y!=="middle"&&Z(t[y]))return jt(jt({},t),{},hc({},y,t[y]+(h||0)))}return t},Q1e=function(t,r,n){return Ae(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},cU=function(t,r,n,i,a){var o=r.props.children,s=sn(o,Lh).filter(function(c){return Q1e(i,a,c.props.direction)});if(s&&s.length){var l=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,u){var d=Rt(u,n);if(Ae(d))return c;var h=Array.isArray(d)?[Uv(d),oo(d)]:[d,d],p=l.reduce(function(y,m){var g=Rt(u,m,0),b=h[0]-Math.abs(Array.isArray(g)?g[0]:g),v=h[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(b,y[0]),Math.max(v,y[1])]},[1/0,-1/0]);return[Math.min(p[0],c[0]),Math.max(p[1],c[1])]},[1/0,-1/0])}return null},eSe=function(t,r,n,i,a){var o=r.map(function(s){return cU(t,s,n,a,i)}).filter(function(s){return!Ae(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},uU=function(t,r,n,i,a){var o=r.map(function(l){var c=l.props.dataKey;return n==="number"&&c&&cU(t,l,c,i)||Ld(t,c,n,a)});if(n==="number")return o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,c){for(var u=0,d=c.length;u<d;u++)s[c[u]]||(s[c[u]]=!0,l.push(c[u]));return l},[])},dU=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},fU=function(t,r,n,i){if(i)return t.map(function(l){return l.coordinate});var a,o,s=t.map(function(l){return l.coordinate===r&&(a=!0),l.coordinate===n&&(o=!0),l.coordinate});return a||s.push(r),o||s.push(n),s},la=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(c=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?jr(s[0]-s[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var u=(t.ticks||t.niceTicks).map(function(d){var h=a?a.indexOf(d):d;return{coordinate:i(h)+c,value:d,offset:c}});return u.filter(function(d){return!Eu(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,h){return{coordinate:i(d)+c,value:d,index:h,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(d){return{coordinate:i(d)+c,value:d,offset:c}}):i.domain().map(function(d,h){return{coordinate:i(d)+c,value:a?a[d]:d,index:h,offset:c}})},M0=new WeakMap,Bp=function(t,r){if(typeof r!="function")return t;M0.has(t)||M0.set(t,new WeakMap);var n=M0.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},hU=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Df(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Ly(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Dd(),realScaleType:"point"}:a==="category"?{scale:Df(),realScaleType:"band"}:{scale:Ly(),realScaleType:"linear"};if(Vs(i)){var l="scale".concat(Tv(i));return{scale:(YN[l]||Dd)(),realScaleType:YN[l]?l:"point"}}return xe(i)?{scale:i}:{scale:Dd(),realScaleType:"point"}},r2=1e-4,pU=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-r2,o=Math.max(i[0],i[1])+r2,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},tSe=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},rSe=function(t,r){if(!r||r.length!==2||!Z(r[0])||!Z(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!Z(t[0])||t[0]<n)&&(a[0]=n),(!Z(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},nSe=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var l=Eu(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},iSe=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=Eu(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},aSe={sign:nSe,expand:kue,none:Dc,silhouette:Aue,wiggle:Tue,positive:iSe},oSe=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=aSe[n],o=_ue().keys(i).value(function(s,l){return+Rt(s,l,0)}).order(h1).offset(a);return o(t)},sSe=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},c=s.reduce(function(d,h){var p,y=(p=h.type)!==null&&p!==void 0&&p.defaultProps?jt(jt({},h.type.defaultProps),h.props):h.props,m=y.stackId,g=y.hide;if(g)return d;var b=y[n],v=d[b]||{hasStack:!1,stackGroups:{}};if(Gt(m)){var x=v.stackGroups[m]||{numericAxisId:n,cateAxisId:i,items:[]};x.items.push(h),v.hasStack=!0,v.stackGroups[m]=x}else v.stackGroups[rl("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return jt(jt({},d),{},hc({},b,v))},l),u={};return Object.keys(c).reduce(function(d,h){var p=c[h];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,g){var b=p.stackGroups[g];return jt(jt({},m),{},hc({},g,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:oSe(t,b.items,a)}))},y)}return jt(jt({},d),{},hc({},h,p))},u)},mU=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var u=w1e(c,a,s);return t.domain([Uv(u),oo(u)]),{niceTicks:u}}if(a&&i==="number"){var d=t.domain(),h=S1e(d,a,s);return{niceTicks:h}}return null};function Hy(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ae(i[t.dataKey])){var s=gy(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=Rt(i,Ae(o)?t.dataKey:o);return Ae(l)?null:t.scale(l)}var n2=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=Rt(o,r.dataKey,r.domain[s]);return Ae(l)?null:r.scale(l)-a/2+i},lSe=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},cSe=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?jt(jt({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Gt(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},uSe=function(t){return t.reduce(function(r,n){return[Uv(n.concat([r[0]]).filter(Z)),oo(n.concat([r[1]]).filter(Z))]},[1/0,-1/0])},yU=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(c,u){var d=uSe(u.slice(r,n+1));return[Math.min(c[0],d[0]),Math.max(c[1],d[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},i2=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,a2=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,z1=function(t,r,n){if(xe(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(Z(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(i2.test(t[0])){var a=+i2.exec(t[0])[1];i[0]=r[0]-a}else xe(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(Z(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(a2.test(t[1])){var o=+a2.exec(t[1])[1];i[1]=r[1]+o}else xe(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},qy=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=mA(r,function(d){return d.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var c=a[s],u=a[s-1];o=Math.min((c.coordinate||0)-(u.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},o2=function(t,r,n){return!t||!t.length||Hs(t,on(n,"type.defaultProps.domain"))?r:t},gU=function(t,r){var n=t.type.defaultProps?jt(jt({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,c=n.chartType,u=n.hide;return jt(jt({},ge(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:UA(t),value:Rt(r,i),type:l,payload:r,chartType:c,hide:u})};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 s2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ea(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s2(Object(r),!0).forEach(function(n){vU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vU(e,t,r){return t=dSe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dSe(e){var t=fSe(e,"string");return qf(t)=="symbol"?t:t+""}function fSe(e,t){if(qf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hSe(e,t){return gSe(e)||ySe(e,t)||mSe(e,t)||pSe()}function pSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 854In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mSe(e,t){if(e){if(typeof e=="string")return l2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l2(e,t)}}function l2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ySe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function gSe(e){if(Array.isArray(e))return e}var Ky=Math.PI/180,vSe=function(t){return t*180/Math.PI},lt=function(t,r,n,i){return{x:t+Math.cos(-Ky*i)*n,y:r+Math.sin(-Ky*i)*n}},bU=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},bSe=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.startAngle,c=t.endAngle,u=Or(t.cx,o,o/2),d=Or(t.cy,s,s/2),h=bU(o,s,n),p=Or(t.innerRadius,h,0),y=Or(t.outerRadius,h,h*.8),m=Object.keys(r);return m.reduce(function(g,b){var v=r[b],x=v.domain,S=v.reversed,w;if(Ae(v.range))i==="angleAxis"?w=[l,c]:i==="radiusAxis"&&(w=[p,y]),S&&(w=[w[1],w[0]]);else{w=v.range;var _=w,A=hSe(_,2);l=A[0],c=A[1]}var T=hU(v,a),j=T.realScaleType,P=T.scale;P.domain(x).range(w),pU(P);var C=mU(P,ea(ea({},v),{},{realScaleType:j})),O=ea(ea(ea({},v),C),{},{range:w,radius:y,realScaleType:j,scale:P,cx:u,cy:d,innerRadius:p,outerRadius:y,startAngle:l,endAngle:c});return ea(ea({},g),{},vU({},b,O))},{})},xSe=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},wSe=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=xSe({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,c=Math.acos(l);return i>o&&(c=2*Math.PI-c),{radius:s,angle:vSe(c),angleInRadian:c}},SSe=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},_Se=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},c2=function(t,r){var n=t.x,i=t.y,a=wSe({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,c=r.outerRadius;if(o<l||o>c)return!1;if(o===0)return!0;var u=SSe(r),d=u.startAngle,h=u.endAngle,p=s,y;if(d<=h){for(;p>h;)p-=360;for(;p<d;)p+=360;y=p>=d&&p<=h}else{for(;p>d;)p-=360;for(;p<h;)p+=360;y=p>=h&&p<=d}return y?ea(ea({},r),{},{radius:o,angle:_Se(p,r)}):null},xU=function(t){return!k.isValidElement(t)&&!xe(t)&&typeof t!="boolean"?t.className:""};function Kf(e){"@babel/helpers - typeof";return Kf=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},Kf(e)}var kSe=["offset"];function ASe(e){return OSe(e)||jSe(e)||ESe(e)||TSe()}function TSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 855In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ESe(e,t){if(e){if(typeof e=="string")return W1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return W1(e,t)}}function jSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OSe(e){if(Array.isArray(e))return W1(e)}function W1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function PSe(e,t){if(e==null)return{};var r=CSe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CSe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function u2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u2(Object(r),!0).forEach(function(n){NSe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NSe(e,t,r){return t=RSe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RSe(e){var t=ISe(e,"string");return Kf(t)=="symbol"?t:t+""}function ISe(e,t){if(Kf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Kf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yf(){return Yf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yf.apply(this,arguments)}var $Se=function(t){var r=t.value,n=t.formatter,i=Ae(t.children)?r:t.children;return xe(n)?n(i):i},MSe=function(t,r){var n=jr(r-t),i=Math.min(Math.abs(r-t),360);return n*i},DSe=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,c=l.cx,u=l.cy,d=l.innerRadius,h=l.outerRadius,p=l.startAngle,y=l.endAngle,m=l.clockWise,g=(d+h)/2,b=MSe(p,y),v=b>=0?1:-1,x,S;i==="insideStart"?(x=p+v*o,S=m):i==="insideEnd"?(x=y-v*o,S=!m):i==="end"&&(x=y+v*o,S=m),S=b<=0?S:!S;var w=lt(c,u,g,x),_=lt(c,u,g,x+(S?1:-1)*359),A="M".concat(w.x,",").concat(w.y,` 856 A`).concat(g,",").concat(g,",0,1,").concat(S?0:1,`, 857 `).concat(_.x,",").concat(_.y),T=Ae(t.id)?rl("recharts-radial-line-"):t.id;return E.createElement("text",Yf({},n,{dominantBaseline:"central",className:Te("recharts-radial-bar-label",s)}),E.createElement("defs",null,E.createElement("path",{id:T,d:A})),E.createElement("textPath",{xlinkHref:"#".concat(T)},r))},LSe=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,c=a.outerRadius,u=a.startAngle,d=a.endAngle,h=(u+d)/2;if(i==="outside"){var p=lt(o,s,c+n,h),y=p.x,m=p.y;return{x:y,y:m,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var g=(l+c)/2,b=lt(o,s,g,h),v=b.x,x=b.y;return{x:v,y:x,textAnchor:"middle",verticalAnchor:"middle"}},BSe=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,c=o.width,u=o.height,d=u>=0?1:-1,h=d*i,p=d>0?"end":"start",y=d>0?"start":"end",m=c>=0?1:-1,g=m*i,b=m>0?"end":"start",v=m>0?"start":"end";if(a==="top"){var x={x:s+c/2,y:l-d*i,textAnchor:"middle",verticalAnchor:p};return zt(zt({},x),n?{height:Math.max(l-n.y,0),width:c}:{})}if(a==="bottom"){var S={x:s+c/2,y:l+u+h,textAnchor:"middle",verticalAnchor:y};return zt(zt({},S),n?{height:Math.max(n.y+n.height-(l+u),0),width:c}:{})}if(a==="left"){var w={x:s-g,y:l+u/2,textAnchor:b,verticalAnchor:"middle"};return zt(zt({},w),n?{width:Math.max(w.x-n.x,0),height:u}:{})}if(a==="right"){var _={x:s+c+g,y:l+u/2,textAnchor:v,verticalAnchor:"middle"};return zt(zt({},_),n?{width:Math.max(n.x+n.width-_.x,0),height:u}:{})}var A=n?{width:c,height:u}:{};return a==="insideLeft"?zt({x:s+g,y:l+u/2,textAnchor:v,verticalAnchor:"middle"},A):a==="insideRight"?zt({x:s+c-g,y:l+u/2,textAnchor:b,verticalAnchor:"middle"},A):a==="insideTop"?zt({x:s+c/2,y:l+h,textAnchor:"middle",verticalAnchor:y},A):a==="insideBottom"?zt({x:s+c/2,y:l+u-h,textAnchor:"middle",verticalAnchor:p},A):a==="insideTopLeft"?zt({x:s+g,y:l+h,textAnchor:v,verticalAnchor:y},A):a==="insideTopRight"?zt({x:s+c-g,y:l+h,textAnchor:b,verticalAnchor:y},A):a==="insideBottomLeft"?zt({x:s+g,y:l+u-h,textAnchor:v,verticalAnchor:p},A):a==="insideBottomRight"?zt({x:s+c-g,y:l+u-h,textAnchor:b,verticalAnchor:p},A):_u(a)&&(Z(a.x)||ms(a.x))&&(Z(a.y)||ms(a.y))?zt({x:s+Or(a.x,c),y:l+Or(a.y,u),textAnchor:"end",verticalAnchor:"end"},A):zt({x:s+c/2,y:l+u/2,textAnchor:"middle",verticalAnchor:"middle"},A)},FSe=function(t){return"cx"in t&&Z(t.cx)};function Qt(e){var t=e.offset,r=t===void 0?5:t,n=PSe(e,kSe),i=zt({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,c=i.content,u=i.className,d=u===void 0?"":u,h=i.textBreakAll;if(!a||Ae(s)&&Ae(l)&&!k.isValidElement(c)&&!xe(c))return null;if(k.isValidElement(c))return k.cloneElement(c,i);var p;if(xe(c)){if(p=k.createElement(c,i),k.isValidElement(p))return p}else p=$Se(i);var y=FSe(a),m=ge(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return DSe(i,p,m);var g=y?LSe(i):BSe(i);return E.createElement(Ws,Yf({className:Te("recharts-label",d)},m,g,{breakAll:h}),p)}Qt.displayName="Label";var wU=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,c=t.innerRadius,u=t.outerRadius,d=t.x,h=t.y,p=t.top,y=t.left,m=t.width,g=t.height,b=t.clockWise,v=t.labelViewBox;if(v)return v;if(Z(m)&&Z(g)){if(Z(d)&&Z(h))return{x:d,y:h,width:m,height:g};if(Z(p)&&Z(y))return{x:p,y,width:m,height:g}}return Z(d)&&Z(h)?{x:d,y:h,width:0,height:0}:Z(r)&&Z(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:u||l||s||0,clockWise:b}:t.viewBox?t.viewBox:{}},USe=function(t,r){return t?t===!0?E.createElement(Qt,{key:"label-implicit",viewBox:r}):Gt(t)?E.createElement(Qt,{key:"label-implicit",viewBox:r,value:t}):k.isValidElement(t)?t.type===Qt?k.cloneElement(t,{key:"label-implicit",viewBox:r}):E.createElement(Qt,{key:"label-implicit",content:t,viewBox:r}):xe(t)?E.createElement(Qt,{key:"label-implicit",content:t,viewBox:r}):_u(t)?E.createElement(Qt,Yf({viewBox:r},t,{key:"label-implicit"})):null:null},VSe=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=wU(t),o=sn(i,Qt).map(function(l,c){return k.cloneElement(l,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var s=USe(t.label,r||a);return[s].concat(ASe(o))};Qt.parseViewBox=wU;Qt.renderCallByParent=VSe;function zSe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var WSe=zSe;const HSe=Ye(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 qSe=["valueAccessor"],KSe=["data","dataKey","clockWise","id","textBreakAll"];function YSe(e){return JSe(e)||ZSe(e)||XSe(e)||GSe()}function GSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 858In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XSe(e,t){if(e){if(typeof e=="string")return H1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return H1(e,t)}}function ZSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JSe(e){if(Array.isArray(e))return H1(e)}function H1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Yy(){return Yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yy.apply(this,arguments)}function d2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function f2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d2(Object(r),!0).forEach(function(n){QSe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QSe(e,t,r){return t=e_e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e_e(e){var t=t_e(e,"string");return Gf(t)=="symbol"?t:t+""}function t_e(e,t){if(Gf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function h2(e,t){if(e==null)return{};var r=r_e(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function r_e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var n_e=function(t){return Array.isArray(t.value)?HSe(t.value):t.value};function Ri(e){var t=e.valueAccessor,r=t===void 0?n_e:t,n=h2(e,qSe),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,c=h2(n,KSe);return!i||!i.length?null:E.createElement($e,{className:"recharts-label-list"},i.map(function(u,d){var h=Ae(a)?r(u,d):Rt(u&&u.payload,a),p=Ae(s)?{}:{id:"".concat(s,"-").concat(d)};return E.createElement(Qt,Yy({},ge(u,!0),c,p,{parentViewBox:u.parentViewBox,value:h,textBreakAll:l,viewBox:Qt.parseViewBox(Ae(o)?u:f2(f2({},u),{},{clockWise:o})),key:"label-".concat(d),index:d}))}))}Ri.displayName="LabelList";function i_e(e,t){return e?e===!0?E.createElement(Ri,{key:"labelList-implicit",data:t}):E.isValidElement(e)||xe(e)?E.createElement(Ri,{key:"labelList-implicit",data:t,content:e}):_u(e)?E.createElement(Ri,Yy({data:t},e,{key:"labelList-implicit"})):null:null}function a_e(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=sn(n,Ri).map(function(o,s){return k.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=i_e(e.label,t);return[a].concat(YSe(i))}Ri.renderCallByParent=a_e;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 q1(){return q1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},q1.apply(this,arguments)}function p2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function m2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p2(Object(r),!0).forEach(function(n){o_e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function o_e(e,t,r){return t=s_e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s_e(e){var t=l_e(e,"string");return Xf(t)=="symbol"?t:t+""}function l_e(e,t){if(Xf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var c_e=function(t,r){var n=jr(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Fp=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,c=t.cornerIsExternal,u=l*(s?1:-1)+i,d=Math.asin(l/u)/Ky,h=c?a:a+o*d,p=lt(r,n,u,h),y=lt(r,n,i,h),m=c?a-o*d:a,g=lt(r,n,u*Math.cos(d*Ky),m);return{center:p,circleTangency:y,lineTangency:g,theta:d}},SU=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=c_e(o,s),c=o+l,u=lt(r,n,a,o),d=lt(r,n,a,c),h="M ".concat(u.x,",").concat(u.y,` 859 A `).concat(a,",").concat(a,`,0, 860 `).concat(+(Math.abs(l)>180),",").concat(+(o>c),`, 861 `).concat(d.x,",").concat(d.y,` 862 `);if(i>0){var p=lt(r,n,i,o),y=lt(r,n,i,c);h+="L ".concat(y.x,",").concat(y.y,` 863 A `).concat(i,",").concat(i,`,0, 864 `).concat(+(Math.abs(l)>180),",").concat(+(o<=c),`, 865 `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},u_e=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,u=t.endAngle,d=jr(u-c),h=Fp({cx:r,cy:n,radius:a,angle:c,sign:d,cornerRadius:o,cornerIsExternal:l}),p=h.circleTangency,y=h.lineTangency,m=h.theta,g=Fp({cx:r,cy:n,radius:a,angle:u,sign:-d,cornerRadius:o,cornerIsExternal:l}),b=g.circleTangency,v=g.lineTangency,x=g.theta,S=l?Math.abs(c-u):Math.abs(c-u)-m-x;if(S<0)return s?"M ".concat(y.x,",").concat(y.y,` 866 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 867 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 868 `):SU({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:u});var w="M ".concat(y.x,",").concat(y.y,` 869 A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(p.x,",").concat(p.y,` 870 A`).concat(a,",").concat(a,",0,").concat(+(S>180),",").concat(+(d<0),",").concat(b.x,",").concat(b.y,` 871 A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(v.x,",").concat(v.y,` 872 `);if(i>0){var _=Fp({cx:r,cy:n,radius:i,angle:c,sign:d,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),A=_.circleTangency,T=_.lineTangency,j=_.theta,P=Fp({cx:r,cy:n,radius:i,angle:u,sign:-d,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),C=P.circleTangency,O=P.lineTangency,$=P.theta,N=l?Math.abs(c-u):Math.abs(c-u)-j-$;if(N<0&&o===0)return"".concat(w,"L").concat(r,",").concat(n,"Z");w+="L".concat(O.x,",").concat(O.y,` 873 A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(C.x,",").concat(C.y,` 874 A`).concat(i,",").concat(i,",0,").concat(+(N>180),",").concat(+(d>0),",").concat(A.x,",").concat(A.y,` 875 A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(T.x,",").concat(T.y,"Z")}else w+="L".concat(r,",").concat(n,"Z");return w},d_e={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},_U=function(t){var r=m2(m2({},d_e),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,c=r.cornerIsExternal,u=r.startAngle,d=r.endAngle,h=r.className;if(o<a||u===d)return null;var p=Te("recharts-sector",h),y=o-a,m=Or(s,y,0,!0),g;return m>0&&Math.abs(u-d)<360?g=u_e({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(m,y/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:u,endAngle:d}):g=SU({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:u,endAngle:d}),E.createElement("path",q1({},ge(r,!0),{className:p,d:g,role:"img"}))};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 K1(){return K1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
875for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},K1.apply(this,arguments)}function y2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function g2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y2(Object(r),!0).forEach(function(n){f_e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f_e(e,t,r){return t=h_e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h_e(e){var t=p_e(e,"string");return Zf(t)=="symbol"?t:t+""}function p_e(e,t){if(Zf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Zf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var v2={curveBasisClosed:fue,curveBasisOpen:hue,curveBasis:due,curveBumpX:Zce,curveBumpY:Jce,curveLinearClosed:pue,curveLinear:jv,curveMonotoneX:mue,curveMonotoneY:yue,curveNatural:gue,curveStep:vue,curveStepAfter:xue,curveStepBefore:bue},Up=function(t){return t.x===+t.x&&t.y===+t.y},td=function(t){return t.x},rd=function(t){return t.y},m_e=function(t,r){if(xe(t))return t;var n="curve".concat(Tv(t));return(n==="curveMonotone"||n==="curveBump")&&r?v2["".concat(n).concat(r==="vertical"?"Y":"X")]:v2[n]||jv},y_e=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,l=t.connectNulls,c=l===void 0?!1:l,u=m_e(n,s),d=c?a.filter(function(m){return Up(m)}):a,h;if(Array.isArray(o)){var p=c?o.filter(function(m){return Up(m)}):o,y=d.map(function(m,g){return g2(g2({},m),{},{base:p[g]})});return s==="vertical"?h=Pp().y(rd).x1(td).x0(function(m){return m.base.x}):h=Pp().x(td).y1(rd).y0(function(m){return m.base.y}),h.defined(Up).curve(u),h(y)}return s==="vertical"&&Z(o)?h=Pp().y(rd).x1(td).x0(o):Z(o)?h=Pp().x(td).y1(rd).y0(o):h=g5().x(td).y(rd),h.defined(Up).curve(u),h(d)},Cs=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?y_e(t):i;return k.createElement("path",K1({},ge(t,!1),vy(t),{className:Te("recharts-curve",r),d:o,ref:a}))},kU={exports:{}},g_e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",v_e=g_e,b_e=v_e;function AU(){}function TU(){}TU.resetWarningCache=AU;var x_e=function(){function e(n,i,a,o,s,l){if(l!==b_e){var c=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 c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:TU,resetWarningCache:AU};return r.PropTypes=r,r};kU.exports=x_e();var w_e=kU.exports;const qe=Ye(w_e);var S_e=Object.getOwnPropertyNames,__e=Object.getOwnPropertySymbols,k_e=Object.prototype.hasOwnProperty;function b2(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Vp(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);var l=e(r,n,i);return a.delete(r),a.delete(n),l}}function x2(e){return S_e(e).concat(__e(e))}var A_e=Object.hasOwn||function(e,t){return k_e.call(e,t)};function al(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var T_e="__v",E_e="__o",j_e="_owner",w2=Object.getOwnPropertyDescriptor,S2=Object.keys;function O_e(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function P_e(e,t){return al(e.getTime(),t.getTime())}function C_e(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function N_e(e,t){return e===t}function _2(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,s,l=0;(o=a.next())&&!o.done;){for(var c=t.entries(),u=!1,d=0;(s=c.next())&&!s.done;){if(i[d]){d++;continue}var h=o.value,p=s.value;if(r.equals(h[0],p[0],l,d,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){u=i[d]=!0;break}d++}if(!u)return!1;l++}return!0}var R_e=al;function I_e(e,t,r){var n=S2(e),i=n.length;if(S2(t).length!==i)return!1;for(;i-- >0;)if(!EU(e,t,r,n[i]))return!1;return!0}
875function nd(e,t,r){var n=x2(e),i=n.length;if(x2(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],!EU(e,t,r,a)||(o=w2(e,a),s=w2(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function $_e(e,t){return al(e.valueOf(),t.valueOf())}function M_e(e,t){return e.source===t.source&&e.flags===t.flags}function k2(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,s;(o=a.next())&&!o.done;){for(var l=t.values(),c=!1,u=0;(s=l.next())&&!s.done;){if(!i[u]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){c=i[u]=!0;break}u++}if(!c)return!1}return!0}function D_e(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function L_e(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 EU(e,t,r,n){return(n===j_e||n===E_e||n===T_e)&&(e.$$typeof||t.$$typeof)?!0:A_e(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var B_e="[object Arguments]",F_e="[object Boolean]",U_e="[object Date]",V_e="[object Error]",z_e="[object Map]",W_e="[object Number]",H_e="[object Object]",q_e="[object RegExp]",K_e="[object Set]",Y_e="[object String]",G_e="[object URL]",X_e=Array.isArray,A2=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,T2=Object.assign,Z_e=Object.prototype.toString.call.bind(Object.prototype.toString);function J_e(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,u=e.areSetsEqual,d=e.areTypedArraysEqual,h=e.areUrlsEqual;return function(y,m,g){if(y===m)return!0;if(y==null||m==null)return!1;var b=typeof y;if(b!==typeof m)return!1;if(b!=="object")return b==="number"?o(y,m,g):b==="function"?i(y,m,g):!1;var v=y.constructor;if(v!==m.constructor)return!1;if(v===Object)return s(y,m,g);if(X_e(y))return t(y,m,g);if(A2!=null&&A2(y))return d(y,m,g);if(v===Date)return r(y,m,g);if(v===RegExp)return c(y,m,g);if(v===Map)return a(y,m,g);if(v===Set)return u(y,m,g);var x=Z_e(y);return x===U_e?r(y,m,g):x===q_e?c(y,m,g):x===z_e?a(y,m,g):x===K_e?u(y,m,g):x===H_e?typeof y.then!="function"&&typeof m.then!="function"&&s(y,m,g):x===G_e?h(y,m,g):x===V_e?n(y,m,g):x===B_e?s(y,m,g):x===F_e||x===W_e||x===Y_e?l(y,m,g):!1}}function Q_e(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?nd:O_e,areDatesEqual:P_e,areErrorsEqual:C_e,areFunctionsEqual:N_e,areMapsEqual:n?b2(_2,nd):_2,areNumbersEqual:R_e,areObjectsEqual:n?nd:I_e,arePrimitiveWrappersEqual:$_e,areRegExpsEqual:M_e,areSetsEqual:n?b2(k2,nd):k2,areTypedArraysEqual:n?nd:D_e,areUrlsEqual:L_e};if(r&&(i=T2({},i,r(i))),t){var a=Vp(i.areArraysEqual),o=Vp(i.areMapsEqual),s=Vp(i.areObjectsEqual),l=Vp(i.areSetsEqual);i=T2({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return i}function eke(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function tke(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(l,c){var u=n(),d=u.cache,h=d===void 0?t?new WeakMap:void 0:d,p=u.meta;return r(l,c,{cache:h,equals:i,meta:p,strict:a})};if(t)return function(l,c){return r(l,c,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(l,c){return r(l,c,o)}}var rke=Vo();Vo({strict:!0});Vo({circular:!0});Vo({circular:!0,strict:!0});Vo({createInternalComparator:function(){return al}});Vo({strict:!0,createInternalComparator:function(){return al}});Vo({circular:!0,createInternalComparator:function(){return al}});Vo({circular:!0,createInternalComparator:function(){return al},strict:!0});function Vo(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=Q_e(e),l=J_e(s),c=n?n(l):eke(l);return tke({circular:r,comparator:l,createState:i,equals:c,strict:o})}function nke(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function E2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):nke(i)};requestAnimationFrame(n)}function Y1(e){"@babel/helpers - typeof";return Y1=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},Y1(e)}function ike(e){return lke(e)||ske(e)||oke(e)||ake()}
vendor: 60,423 bytes, lines 875-894
875function ake(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 876In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oke(e,t){if(e){if(typeof e=="string")return j2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j2(e,t)}}function j2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ske(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lke(e){if(Array.isArray(e))return e}function cke(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=ike(o),l=s[0],c=s.slice(1);if(typeof l=="number"){E2(i.bind(null,c),l);return}i(l),E2(i.bind(null,c));return}Y1(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return 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 O2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function P2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O2(Object(r),!0).forEach(function(n){jU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jU(e,t,r){return t=uke(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uke(e){var t=dke(e,"string");return Jf(t)==="symbol"?t:String(t)}function dke(e,t){if(Jf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Jf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fke=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},hke=function(t){return t},pke=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Bd=function(t,r){return Object.keys(r).reduce(function(n,i){return P2(P2({},n),{},jU({},i,t(i,r[i])))},{})},C2=function(t,r,n){return t.map(function(i){return"".concat(pke(i)," ").concat(r,"ms ").concat(n)}).join(",")};function mke(e,t){return vke(e)||gke(e,t)||OU(e,t)||yke()}function yke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 877In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gke(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function vke(e){if(Array.isArray(e))return e}function bke(e){return Ske(e)||wke(e)||OU(e)||xke()}function xke(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 878In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OU(e,t){if(e){if(typeof e=="string")return G1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return G1(e,t)}}function wke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ske(e){if(Array.isArray(e))return G1(e)}function G1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Gy=1e-4,PU=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},CU=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},N2=function(t,r){return function(n){var i=PU(t,r);return CU(i,n)}},_ke=function(t,r){return function(n){var i=PU(t,r),a=[].concat(bke(i.map(function(o,s){return o*s}).slice(1)),[0]);return CU(a,n)}},R2=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var c=l[1].split(")")[0].split(",").map(function(g){return parseFloat(g)}),u=mke(c,4);i=u[0],a=u[1],o=u[2],s=u[3]}}}var d=N2(i,o),h=N2(a,s),p=_ke(i,o),y=function(b){return b>1?1:b<0?0:b},m=function(b){for(var v=b>1?1:b,x=v,S=0;S<8;++S){var w=d(x)-v,_=p(x);if(Math.abs(w-v)<Gy||_<Gy)return h(x);x=y(x-w/_)}return h(x)};return m.isStepper=!1,m},kke=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(u,d,h){var p=-(u-d)*n,y=h*a,m=h+(p-y)*s/1e3,g=h*s/1e3+u;return Math.abs(g-d)<Gy&&Math.abs(m)<Gy?[d,0]:[g,m]};return l.isStepper=!0,l.dt=s,l},Ake=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return R2(i);case"spring":return kke();default:if(i.split("(")[0]==="cubic-bezier")return R2(i)}return typeof i=="function"?i: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 I2(e){return jke(e)||Eke(e)||NU(e)||Tke()}function Tke(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 879In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jke(e){if(Array.isArray(e))return Z1(e)}function $2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$2(Object(r),!0).forEach(function(n){X1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X1(e,t,r){return t=Oke(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oke(e){var t=Pke(e,"string");return Qf(t)==="symbol"?t:String(t)}function Pke(e,t){if(Qf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cke(e,t){return Ike(e)||Rke(e,t)||NU(e,t)||Nke()}function Nke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 880In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NU(e,t){if(e){if(typeof e=="string")return Z1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Z1(e,t)}}function Z1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Rke(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Ike(e){if(Array.isArray(e))return e}var Xy=function(t,r,n){return t+(r-t)*n},J1=function(t){var r=t.from,n=t.to;return r!==n},$ke=function e(t,r,n){var i=Bd(function(a,o){if(J1(o)){var s=t(o.from,o.to,o.velocity),l=Cke(s,2),c=l[0],u=l[1];return ir(ir({},o),{},{from:c,velocity:u})}return o},r);return n<1?Bd(function(a,o){return J1(o)?ir(ir({},o),{},{velocity:Xy(o.velocity,i[a].velocity,n),from:Xy(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const Mke=function(e,t,r,n,i){var a=fke(e,t),o=a.reduce(function(g,b){return ir(ir({},g),{},X1({},b,[e[b],t[b]]))},{}),s=a.reduce(function(g,b){return ir(ir({},g),{},X1({},b,{from:e[b],velocity:0,to:t[b]}))},{}),l=-1,c,u,d=function(){return null},h=function(){return Bd(function(b,v){return v.from},s)},p=function(){return!Object.values(s).filter(J1).length},y=function(b){c||(c=b);var v=b-c,x=v/r.dt;s=$ke(r,s,x),i(ir(ir(ir({},e),t),h())),c=b,p()||(l=requestAnimationFrame(d))},m=function(b){u||(u=b);var v=(b-u)/n,x=Bd(function(w,_){return Xy.apply(void 0,I2(_).concat([r(v)]))},o);if(i(ir(ir(ir({},e),t),x)),v<1)l=requestAnimationFrame(d);else{var S=Bd(function(w,_){return Xy.apply(void 0,I2(_).concat([r(1)]))},o);i(ir(ir(ir({},e),t),S))}};return d=r.isStepper?y:m,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(l)}}};function qc(e){"@babel/helpers - typeof";return qc=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},qc(e)}var Dke=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Lke(e,t){if(e==null)return{};var r=Bke(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Bke(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function D0(e){return zke(e)||Vke(e)||Uke(e)||Fke()}function Fke(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 881In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uke(e,t){if(e){if(typeof e=="string")return Q1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Q1(e,t)}}function Vke(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zke(e){if(Array.isArray(e))return Q1(e)}function Q1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ln(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?M2(Object(r),!0).forEach(function(n){md(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function md(e,t,r){return t=RU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hke(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,RU(n.key),n)}}function qke(e,t,r){return t&&Hke(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function RU(e){var t=Kke(e,"string");return qc(t)==="symbol"?t:String(t)}function Kke(e,t){if(qc(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qc(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yke(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&&eS(e,t)}function eS(e,t){return eS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},eS(e,t)}function Gke(e){var t=Xke();return function(){var n=Zy(e),i;if(t){var a=Zy(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return tS(this,i)}}function tS(e,t){if(t&&(qc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rS(e)}function rS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xke(){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 Zy(e){return Zy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zy(e)}var li=function(e){Yke(r,e);var t=Gke(r);function r(n,i){var a;Wke(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,c=o.from,u=o.to,d=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(rS(a)),a.changeStyle=a.changeStyle.bind(rS(a)),!s||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:u}),tS(a);if(d&&d.length)a.state={style:d[0].style};else if(c){if(typeof h=="function")return a.state={style:c},tS(a);a.state={style:l?md({},l,c):c}}else a.state={style:{}};return a}return qke(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,c=a.shouldReAnimate,u=a.to,d=a.from,h=this.state.style;if(s){if(!o){var p={style:l?md({},l,u):u};this.state&&h&&(l&&h[l]!==u||!l&&h!==u)&&this.setState(p);return}if(!(rke(i.to,u)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=y||c?d:i.to;if(this.state&&h){var g={style:l?md({},l,m):m};(l&&h[l]!==m||!l&&h!==m)&&this.setState(g)}this.runAnimation(Ln(Ln({},this.props),{},{from:m,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 a=this,o=i.from,s=i.to,l=i.duration,c=i.easing,u=i.begin,d=i.onAnimationEnd,h=i.onAnimationStart,p=Mke(o,s,Ake(c),l,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([h,u,y,l,d])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,c=o[0],u=c.style,d=c.duration,h=d===void 0?0:d,p=function(m,g,b){if(b===0)return m;var v=g.duration,x=g.easing,S=x===void 0?"ease":x,w=g.style,_=g.properties,A=g.onAnimationEnd,T=b>0?o[b-1]:g,j=_||Object.keys(w);if(typeof S=="function"||S==="spring")return[].concat(D0(m),[a.runJSAnimation.bind(a,{from:T.style,to:w,duration:v,easing:S}),v]);var P=C2(j,v,S),C=Ln(Ln(Ln({},T.style),w),{},{transition:P});return[].concat(D0(m),[C,v,A]).filter(hke)};return this.manager.start([l].concat(D0(o.reduce(p,[u,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=cke());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,c=i.easing,u=i.onAnimationStart,d=i.onAnimationEnd,h=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var m=s?md({},s,l):l,g=C2(Object.keys(m),o,c);y.start([u,a,Ln(Ln({},m),{},{transition:g}),o,d])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=Lke(i,Dke),c=k.Children.count(a),u=this.state.style;if(typeof a=="function")return a(u);if(!s||c===0||o<=0)return a;var d=function(p){var y=p.props,m=y.style,g=m===void 0?{}:m,b=y.className,v=k.cloneElement(p,Ln(Ln({},l),{},{style:Ln(Ln({},g),u),className:b}));return v};return c===1?d(k.Children.only(a)):E.createElement("div",null,k.Children.map(a,function(h){return d(h)}))}}]),r}(k.PureComponent);li.displayName="Animate";li.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};li.propTypes={from:qe.oneOfType([qe.object,qe.string]),to:qe.oneOfType([qe.object,qe.string]),attributeName:qe.string,duration:qe.number,begin:qe.number,easing:qe.oneOfType([qe.string,qe.func]),steps:qe.arrayOf(qe.shape({duration:qe.number.isRequired,style:qe.object.isRequired,easing:qe.oneOfType([qe.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),qe.func]),properties:qe.arrayOf("string"),onAnimationEnd:qe.func})),children:qe.oneOfType([qe.node,qe.func]),isActive:qe.bool,canBegin:qe.bool,onAnimationEnd:qe.func,shouldReAnimate:qe.bool,onAnimationStart:qe.func,onAnimationReStart:qe.func};function eh(e){"@babel/helpers - typeof";return eh=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},eh(e)}function Jy(){return Jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jy.apply(this,arguments)}function Zke(e,t){return tAe(e)||eAe(e,t)||Qke(e,t)||Jke()}function Jke(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 882In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qke(e,t){if(e){if(typeof e=="string")return D2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D2(e,t)}}function D2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function eAe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function tAe(e){if(Array.isArray(e))return e}function L2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function B2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?L2(Object(r),!0).forEach(function(n){rAe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rAe(e,t,r){return t=nAe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nAe(e){var t=iAe(e,"string");return eh(t)=="symbol"?t:t+""}function iAe(e,t){if(eh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(eh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var F2=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,u;if(o>0&&a instanceof Array){for(var d=[0,0,0,0],h=0,p=4;h<p;h++)d[h]=a[h]>o?o:a[h];u="M".concat(t,",").concat(r+s*d[0]),d[0]>0&&(u+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(c,",").concat(t+l*d[0],",").concat(r)),u+="L ".concat(t+n-l*d[1],",").concat(r),d[1]>0&&(u+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(c,`, 883 `).concat(t+n,",").concat(r+s*d[1])),u+="L ".concat(t+n,",").concat(r+i-s*d[2]),d[2]>0&&(u+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(c,`, 884 `).concat(t+n-l*d[2],",").concat(r+i)),u+="L ".concat(t+l*d[3],",").concat(r+i),d[3]>0&&(u+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(c,`, 885 `).concat(t,",").concat(r+i-s*d[3])),u+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);u="M ".concat(t,",").concat(r+s*y,` 886 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+l*y,",").concat(r,` 887 L `).concat(t+n-l*y,",").concat(r,` 888 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n,",").concat(r+s*y,` 889 L `).concat(t+n,",").concat(r+i-s*y,` 890 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n-l*y,",").concat(r+i,` 891 L `).concat(t+l*y,",").concat(r+i,` 892 A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t,",").concat(r+i-s*y," Z")}else u="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return u},aAe=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var c=Math.min(a,a+s),u=Math.max(a,a+s),d=Math.min(o,o+l),h=Math.max(o,o+l);return n>=c&&n<=u&&i>=d&&i<=h}return!1},oAe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},VA=function(t){var r=B2(B2({},oAe),t),n=k.useRef(),i=k.useState(-1),a=Zke(i,2),o=a[0],s=a[1];k.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&s(S)}catch{}},[]);var l=r.x,c=r.y,u=r.width,d=r.height,h=r.radius,p=r.className,y=r.animationEasing,m=r.animationDuration,g=r.animationBegin,b=r.isAnimationActive,v=r.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||d!==+d||u===0||d===0)return null;var x=Te("recharts-rectangle",p);return v?E.createElement(li,{canBegin:o>0,from:{width:u,height:d,x:l,y:c},to:{width:u,height:d,x:l,y:c},duration:m,animationEasing:y,isActive:v},function(S){var w=S.width,_=S.height,A=S.x,T=S.y;return E.createElement(li,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,isActive:b,easing:y},E.createElement("path",Jy({},ge(r,!0),{className:x,d:F2(A,T,w,_,h),ref:n})))}):E.createElement("path",Jy({},ge(r,!0),{className:x,d:F2(l,c,u,d,h)}))},sAe=["points","className","baseLinePoints","connectNulls"];function Gl(){return Gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gl.apply(this,arguments)}function lAe(e,t){if(e==null)return{};var r=cAe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cAe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function U2(e){return hAe(e)||fAe(e)||dAe(e)||uAe()}function uAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 893In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dAe(e,t){if(e){if(typeof e=="string")return nS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nS(e,t)}}function fAe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hAe(e){if(Array.isArray(e))return nS(e)}function nS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var V2=function(t){return t&&t.x===+t.x&&t.y===+t.y},pAe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){V2(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),V2(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Fd=function(t,r){var n=pAe(t);r&&(n=[n.reduce(function(a,o){return[].concat(U2(a),U2(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,s,l){return"".concat(o).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},mAe=function(t,r,n){var i=Fd(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Fd(r.reverse(),n).slice(1))},yAe=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=lAe(t,sAe);if(!r||!r.length)return null;var s=Te("recharts-polygon",n);if(i&&i.length){var l=o.stroke&&o.stroke!=="none",c=mAe(r,i,a);return E.createElement("g",{className:s},E.createElement("path",Gl({},ge(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),l?E.createElement("path",Gl({},ge(o,!0),{fill:"none",d:Fd(r,a)})):null,l?E.createElement("path",Gl({},ge(o,!0),{fill:"none",d:Fd(i,a)})):null)}var u=Fd(r,a);return E.createElement("path",Gl({},ge(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",className:s,d:u}))};function iS(){return iS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iS.apply(this,arguments)}var Bh=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Te("recharts-dot",a);return r===+r&&n===+n&&i===+i?k.createElement("circle",iS({},ge(t,!1),vy(t),{className:o,cx:r,cy:n,r:i})):null};function th(e){"@babel/helpers - typeof";return th=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},th(e)}var gAe=["x","y","top","left","width","height","className"];function aS(){return aS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aS.apply(this,arguments)}function z2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vAe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?z2(Object(r),!0).forEach(function(n){bAe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bAe(e,t,r){return t=xAe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xAe(e){var t=wAe(e,"string");return th(t)=="symbol"?t:t+""}function wAe(e,t){if(th(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(th(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SAe(e,t){if(e==null)return{};var r=_Ae(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _Ae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var kAe=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},AAe=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,c=l===void 0?0:l,u=t.width,d=u===void 0?0:u,h=t.height,p=h===void 0?0:h,y=t.className,m=SAe(t,gAe),g=vAe({x:n,y:a,top:s,left:c,width:d,height:p},m);return!Z(n)||!Z(a)||!Z(d)||!Z(p)||!Z(s)||!Z(c)?null:E.createElement("path",aS({},ge(g,!0),{className:Te("recharts-cross",y),d:kAe(n,a,d,p,s,c)}))},TAe=Fv,EAe=HF,jAe=Fi;function OAe(e,t){return e&&e.length?TAe(e,jAe(t),EAe):void 0}var PAe=OAe;const CAe=Ye(PAe);var NAe=Fv,RAe=Fi,IAe=qF;function $Ae(e,t){return e&&e.length?NAe(e,RAe(t),IAe):void 0}var MAe=$Ae;const DAe=Ye(MAe);var LAe=["cx","cy","angle","ticks","axisLine"],BAe=["ticks","tick","angle","tickFormatter","stroke"];function Kc(e){"@babel/helpers - typeof";return Kc=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},Kc(e)}function Ud(){return Ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ud.apply(this,arguments)}function W2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?W2(Object(r),!0).forEach(function(n){Wv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H2(e,t){if(e==null)return{};var r=FAe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function FAe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function UAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$U(n.key),n)}}function VAe(e,t,r){return t&&q2(e.prototype,t),r&&q2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zAe(e,t,r){return t=Qy(t),WAe(e,IU()?Reflect.construct(t,r||[],Qy(e).constructor):t.apply(e,r))}function WAe(e,t){if(t&&(Kc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HAe(e)}function HAe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IU=function(){return!!e})()}function Qy(e){return Qy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qy(e)}function qAe(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&&oS(e,t)}function oS(e,t){return oS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},oS(e,t)}function Wv(e,t,r){return t=$U(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $U(e){var t=KAe(e,"string");return Kc(t)=="symbol"?t:t+""}function KAe(e,t){if(Kc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Kc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hv=function(e){function t(){return UAe(this,t),zAe(this,t,arguments)}return qAe(t,e),VAe(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,s=a.cx,l=a.cy;return lt(s,l,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,l=CAe(s,function(u){return u.coordinate||0}),c=DAe(s,function(u){return u.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:c.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,l=n.axisLine,c=H2(n,LAe),u=s.reduce(function(y,m){return[Math.min(y[0],m.coordinate),Math.max(y[1],m.coordinate)]},[1/0,-1/0]),d=lt(i,a,u[0],o),h=lt(i,a,u[1],o),p=Zo(Zo(Zo({},ge(c,!1)),{},{fill:"none"},ge(l,!1)),{},{x1:d.x,y1:d.y,x2:h.x,y2:h.y});return E.createElement("line",Ud({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.angle,l=i.tickFormatter,c=i.stroke,u=H2(i,BAe),d=this.getTickTextAnchor(),h=ge(u,!1),p=ge(o,!1),y=a.map(function(m,g){var b=n.getTickValueCoord(m),v=Zo(Zo(Zo(Zo({textAnchor:d,transform:"rotate(".concat(90-s,", ").concat(b.x,", ").concat(b.y,")")},h),{},{stroke:"none",fill:c},p),{},{index:g},b),{},{payload:m});return E.createElement($e,Ud({className:Te("recharts-polar-radius-axis-tick",xU(o)),key:"tick-".concat(m.coordinate)},zs(n.props,m,g)),t.renderTickItem(o,v,l?l(m.value,g):m.value))});return E.createElement($e,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:E.createElement($e,{className:Te("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),Qt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return E.isValidElement(n)?o=E.cloneElement(n,i):xe(n)?o=n(i):o=E.createElement(Ws,Ud({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(k.PureComponent);Wv(Hv,"displayName","PolarRadiusAxis");Wv(Hv,"axisType","radiusAxis");Wv(Hv,"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 Yc(e){"@babel/helpers - typeof";return Yc=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},Yc(e)}function ss(){return ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ss.apply(this,arguments)}function K2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K2(Object(r),!0).forEach(function(n){qv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DU(n.key),n)}}function GAe(e,t,r){return t&&Y2(e.prototype,t),r&&Y2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function XAe(e,t,r){return t=eg(t),ZAe(e,MU()?Reflect.construct(t,r||[],eg(e).constructor):t.apply(e,r))}function ZAe(e,t){if(t&&(Yc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JAe(e)}function JAe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MU=function(){return!!e})()}function eg(e){return eg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},eg(e)}function QAe(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&&sS(e,t)}function sS(e,t){return sS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sS(e,t)}function qv(e,t,r){return t=DU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DU(e){var t=eTe(e,"string");return Yc(t)=="symbol"?t:t+""}function eTe(e,t){if(Yc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Yc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tTe=Math.PI/180,G2=1e-5,Kv=function(e){function t(){return YAe(this,t),XAe(this,t,arguments)}return QAe(t,e),GAe(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,s=i.radius,l=i.orientation,c=i.tickSize,u=c||8,d=lt(a,o,s,n.coordinate),h=lt(a,o,s+(l==="inner"?-1:1)*u,n.coordinate);return{x1:d.x,y1:d.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*tTe),o;return a>G2?o=i==="outer"?"start":"end":a<-G2?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,s=n.axisLine,l=n.axisLineType,c=Jo(Jo({},ge(this.props,!1)),{},{fill:"none"},ge(s,!1));if(l==="circle")return E.createElement(Bh,ss({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:o}));var u=this.props.ticks,d=u.map(function(h){return lt(i,a,o,h.coordinate)});return E.createElement(yAe,ss({className:"recharts-polar-angle-axis-line"},c,{points:d}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,l=i.tickFormatter,c=i.stroke,u=ge(this.props,!1),d=ge(o,!1),h=Jo(Jo({},u),{},{fill:"none"},ge(s,!1)),p=a.map(function(y,m){var g=n.getTickLineCoord(y),b=n.getTickTextAnchor(y),v=Jo(Jo(Jo({textAnchor:b},u),{},{stroke:"none",fill:c},d),{},{index:m,payload:y,x:g.x2,y:g.y2});return E.createElement($e,ss({className:Te("recharts-polar-angle-axis-tick",xU(o)),key:"tick-".concat(y.coordinate)},zs(n.props,y,m)),s&&E.createElement("line",ss({className:"recharts-polar-angle-axis-tick-line"},h,g)),o&&t.renderTickItem(o,v,l?l(y.value,m):y.value))});return E.createElement($e,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:E.createElement($e,{className:Te("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return E.isValidElement(n)?o=E.cloneElement(n,i):xe(n)?o=n(i):o=E.createElement(Ws,ss({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(k.PureComponent);qv(Kv,"displayName","PolarAngleAxis");qv(Kv,"axisType","angleAxis");qv(Kv,"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 rTe=U5,nTe=rTe(Object.getPrototypeOf,Object),iTe=nTe,aTe=Aa,oTe=iTe,sTe=Ta,lTe="[object Object]",cTe=Function.prototype,uTe=Object.prototype,LU=cTe.toString,dTe=uTe.hasOwnProperty,fTe=LU.call(Object);function hTe(e){if(!sTe(e)||aTe(e)!=lTe)return!1;var t=oTe(e);if(t===null)return!0;var r=dTe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&LU.call(r)==fTe}var pTe=hTe;const mTe=Ye(pTe);var yTe=Aa,gTe=Ta,vTe="[object Boolean]";function bTe(e){return e===!0||e===!1||gTe(e)&&yTe(e)==vTe}var xTe=bTe;const wTe=Ye(xTe);function rh(e){"@babel/helpers - typeof";return rh=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},rh(e)}function tg(){return tg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tg.apply(this,arguments)}function STe(e,t){return TTe(e)||ATe(e,t)||kTe(e,t)||_Te()}function _Te(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 894In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kTe(e,t){if(e){if(typeof e=="string")return X2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return X2(e,t)}}function X2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ATe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function TTe(e){if(Array.isArray(e))return e}function Z2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function J2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Z2(Object(r),!0).forEach(function(n){ETe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ETe(e,t,r){return t=jTe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jTe(e){var t=OTe(e,"string");return rh(t)=="symbol"?t:t+""}function OTe(e,t){if(rh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(rh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Q2=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},PTe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},CTe=function(t){var r=J2(J2({},PTe),t),n=k.useRef(),i=k.useState(-1),a=STe(i,2),o=a[0],s=a[1];k.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var l=r.x,c=r.y,u=r.upperWidth,d=r.lowerWidth,h=r.height,p=r.className,y=r.animationEasing,m=r.animationDuration,g=r.animationBegin,b=r.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||d!==+d||h!==+h||u===0&&d===0||h===0)return null;var v=Te("recharts-trapezoid",p);return b?E.createElement(li,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:c},to:{upperWidth:u,lowerWidth:d,height:h,x:l,y:c},duration:m,animationEasing:y,isActive:b},function(x){var S=x.upperWidth,w=x.lowerWidth,_=x.height,A=x.x,T=x.y;return E.createElement(li,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:m,easing:y},E.createElement("path",tg({},ge(r,!0),{className:v,d:Q2(A,T,S,w,_),ref:n})))}):E.createElement("g",null,E.createElement("path",tg({},ge(r,!0),{className:v,d:Q2(l,c,u,d,h)})))},NTe=["option","shapeType","propTransformer","activeClassName","isActive"];function nh(e){"@babel/helpers - typeof";return nh=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},nh(e)}function RTe(e,t){if(e==null)return{};var r=ITe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ITe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function eR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eR(Object(r),!0).forEach(function(n){$Te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $Te(e,t,r){return t=MTe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MTe(e){var t=DTe(e,"string");return nh(t)=="symbol"?t:t+""}function DTe(e,t){if(nh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(nh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LTe(e,t){return rg(rg({},t),e)}function BTe(e,t){return e==="symbols"}function tR(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return E.createElement(VA,r);case"trapezoid":return E.createElement(CTe,r);case"sector":return E.createElement(_U,r);case"symbols":if(BTe(t))return E.createElement(sA,r);break;default:return null}}function FTe(e){return k.isValidElement(e)?e.props:e}function BU(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?LTe:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=RTe(e,NTe),c;if(k.isValidElement(t))c=k.cloneElement(t,rg(rg({},l),FTe(t)));else if(xe(t))c=t(l);else if(mTe(t)&&!wTe(t)){var u=i(t,l);c=E.createElement(tR,{shapeType:r,elementProps:u})}else{var d=l;c=E.createElement(tR,{shapeType:r,elementProps:d})}return s?E.createElement($e,{className:o},c):c}function Yv(e,t){return t!=null&&"trapezoids"in e.props}function Gv(e,t){return t!=null&&"sectors"in e.props}function ih(e,t){return t!=null&&"points"in e.props}function UTe(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function VTe(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function zTe(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function WTe(e,t){var r;return Yv(e,t)?r=UTe:Gv(e,t)?r=VTe:ih(e,t)&&(r=zTe),r}function HTe(e,t){var r;return Yv(e,t)?r="trapezoids":Gv(e,t)?r="sectors":ih(e,t)&&(r="points"),r}function qTe(e,t){if(Yv(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}if(Gv(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}return ih(e,t)?t.payload:{}}function KTe(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=HTe(r,t),a=qTe(r,t),o=n.filter(function(l,c){var u=Hs(a,l),d=r.props[i].filter(function(y){var m=WTe(r,t);return m(y,t)}),h=r.props[i].indexOf(d[d.length-1]),p=c===h;return u&&p}),s=n.indexOf(o[o.length-1]);return s}var ym;function Gc(e){"@babel/helpers - typeof";return Gc=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},Gc(e)}function Xl(){return Xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xl.apply(this,arguments)}function rR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function it(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rR(Object(r),!0).forEach(function(n){bn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,UU(n.key),n)}}function GTe(e,t,r){return t&&nR(e.prototype,t),r&&nR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function XTe(e,t,r){return t=ng(t),ZTe(e,FU()?Reflect.construct(t,r||[],ng(e).constructor):t.apply(e,r))}function ZTe(e,t){if(t&&(Gc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JTe(e)}function JTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FU=function(){return!!e})()}function ng(e){return ng=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ng(e)}function QTe(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&&lS(e,t)}function lS(e,t){return lS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lS(e,t)}function bn(e,t,r){return t=UU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UU(e){var t=eEe(e,"string");return Gc(t)=="symbol"?t:t+""}function eEe(e,t){if(Gc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ja=function(e){function t(r){var n;return YTe(this,t),n=XTe(this,t,[r]),bn(n,"pieRef",null),bn(n,"sectorRefs",[]),bn(n,"id",rl("recharts-pie-")),bn(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),xe(i)&&i()}),bn(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),xe(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return QTe(t,e),GTe(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,s=a.labelLine,l=a.dataKey,c=a.valueKey,u=ge(this.props,!1),d=ge(o,!1),h=ge(s,!1),p=o&&o.offsetRadius||20,y=n.map(function(m,g){var b=(m.startAngle+m.endAngle)/2,v=lt(m.cx,m.cy,m.outerRadius+p,b),x=it(it(it(it({},u),m),{},{stroke:"none"},d),{},{index:g,textAnchor:t.getTextAnchor(v.x,m.cx)},v),S=it(it(it(it({},u),m),{},{fill:"none",stroke:m.fill},h),{},{index:g,points:[lt(m.cx,m.cy,m.outerRadius,b),v]}),w=l;return Ae(l)&&Ae(c)?w="value":Ae(l)&&(w=c),E.createElement($e,{key:"label-".concat(m.startAngle,"-").concat(m.endAngle,"-").concat(m.midAngle,"-").concat(g)},s&&t.renderLabelLineItem(s,S,"line"),t.renderLabelItem(o,x,Rt(m,w)))});return E.createElement($e,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,s=a.blendStroke,l=a.inactiveShape;return n.map(function(c,u){if((c==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&n.length!==1)return null;var d=i.isActiveIndex(u),h=l&&i.hasActiveIndex()?l:null,p=d?o:h,y=it(it({},c),{},{stroke:s?c.fill:c.stroke,tabIndex:-1});return E.createElement($e,Xl({ref:function(g){g&&!i.sectorRefs.includes(g)&&i.sectorRefs.push(g)},tabIndex:-1,className:"recharts-pie-sector"},zs(i.props,c,u),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(u)}),E.createElement(BU,Xl({option:p,isActive:d,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,c=i.animationEasing,u=i.animationId,d=this.state,h=d.prevSectors,p=d.prevIsAnimationActive;return E.createElement(li,{begin:s,duration:l,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(u,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var m=y.t,g=[],b=a&&a[0],v=b.startAngle;return a.forEach(function(x,S){var w=h&&h[S],_=S>0?on(x,"paddingAngle",0):0;if(w){var A=Kt(w.endAngle-w.startAngle,x.endAngle-x.startAngle),T=it(it({},x),{},{startAngle:v+_,endAngle:v+A(m)+_});g.push(T),v=T.endAngle}else{var j=x.endAngle,P=x.startAngle,C=Kt(0,j-P),O=C(m),$=it(it({},x),{},{startAngle:v+_,endAngle:v+O+_});g.push($),v=$.endAngle}}),E.createElement($e,null,n.renderSectorsStatically(g))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Hs(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,s=i.className,l=i.label,c=i.cx,u=i.cy,d=i.innerRadius,h=i.outerRadius,p=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!Z(c)||!Z(u)||!Z(d)||!Z(h))return null;var m=Te("recharts-pie",s);return E.createElement($e,{tabIndex:this.props.rootTabIndex,className:m,ref:function(b){n.pieRef=b}},this.renderSectors(),l&&this.renderLabels(o),Qt.renderCallByParent(this.props,null,!1),(!p||y)&&Ri.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(E.isValidElement(n))return E.cloneElement(n,i);if(xe(n))return n(i);var o=Te("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return E.createElement(Cs,Xl({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(E.isValidElement(n))return E.cloneElement(n,i);var o=a;if(xe(n)&&(o=n(i),E.isValidElement(o)))return o;var s=Te("recharts-pie-label-text",typeof n!="boolean"&&!xe(n)?n.className:"");return E.createElement(Ws,Xl({},i,{alignmentBaseline:"middle",className:s}),o)}}])}(k.PureComponent);ym=ja;bn(ja,"displayName","Pie");bn(ja,"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:!ni.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});bn(ja,"parseDeltaAngle",function(e,t){var r=jr(t-e),n=Math.min(Math.abs(t-e),360);return r*n});bn(ja,"getRealPieData",function(e){var t=e.data,r=e.children,n=ge(e,!1),i=sn(r,Rv);return t&&t.length?t.map(function(a,o){return it(it(it({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return it(it({},n),a.props)}):[]});bn(ja,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=bU(i,a),s=n+Or(e.cx,i,i/2),l=r+Or(e.cy,a,a/2),c=Or(e.innerRadius,o,0),u=Or(e.outerRadius,o,o*.8),d=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:s,cy:l,innerRadius:c,outerRadius:u,maxRadius:d}});bn(ja,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?it(it({},t.type.defaultProps),t.props):t.props,i=ym.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,s=n.endAngle,l=n.paddingAngle,c=n.dataKey,u=n.nameKey,d=n.valueKey,h=n.tooltipType,p=Math.abs(n.minAngle),y=ym.parseCoordinateOfPie(n,r),m=ym.parseDeltaAngle(o,s),g=Math.abs(m),b=c;Ae(c)&&Ae(d)?(ri(!1,`Use "dataKey" to specify the value of pie,
895 the props "valueKey" will be deprecated in 1.1.0`),b="value"):Ae(c)&&(ri(!1,`Use "dataKey" to specify the value of pie, 896 the props "valueKey" will be deprecated in 1.1.0`),b=d);var v=i.filter(function(T){return Rt(T,b,0)!==0}).length,x=(g>=360?v:v-1)*l,S=g-v*p-x,w=i.reduce(function(T,j){var P=Rt(j,b,0);return T+(Z(P)?P:0)},0),_;if(w>0){var A;_=i.map(function(T,j){var P=Rt(T,b,0),C=Rt(T,u,j),O=(Z(P)?P:0)/w,$;j?$=A.endAngle+jr(m)*l*(P!==0?1:0):$=o;var N=$+jr(m)*((P!==0?p:0)+O*S),L=($+N)/2,D=(y.innerRadius+y.outerRadius)/2,B=[{name:C,value:P,payload:T,dataKey:b,type:h}],R=lt(y.cx,y.cy,D,L);return A=it(it(it({percent:O,cornerRadius:a,name:C,tooltipPayload:B,midAngle:L,middleRadius:D,tooltipPosition:R},T),y),{},{value:Rt(T,b),startAngle:$,endAngle:N,payload:T,paddingAngle:jr(m)*l}),A})}return it(it({},y),{},{sectors:_,data:i})});var tEe=Math.ceil,rEe=Math.max;function nEe(e,t,r,n){for(var i=-1,a=rEe(tEe((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var iEe=nEe,aEe=oF,iR=1/0,oEe=17976931348623157e292;function sEe(e){if(!e)return e===0?e:0;if(e=aEe(e),e===iR||e===-iR){var t=e<0?-1:1;return t*oEe}return e===e?e:0}var VU=sEe,lEe=iEe,cEe=Nv,L0=VU;function uEe(e){return function(t,r,n){return n&&typeof n!="number"&&cEe(t,r,n)&&(r=n=void 0),t=L0(t),r===void 0?(r=t,t=0):r=L0(r),n=n===void 0?t<r?1:-1:L0(n),lEe(t,r,n,e)}}var dEe=uEe,fEe=dEe,hEe=fEe(),pEe=hEe;const ig=Ye(pEe);function ah(e){"@babel/helpers - typeof";return ah=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},ah(e)}function aR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aR(Object(r),!0).forEach(function(n){zU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zU(e,t,r){return t=mEe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mEe(e){var t=yEe(e,"string");return ah(t)=="symbol"?t:t+""}function yEe(e,t){if(ah(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ah(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gEe=["Webkit","Moz","O","ms"],vEe=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=gEe.reduce(function(a,o){return oR(oR({},a),{},zU({},o+n,r))},{});return i[t]=r,i};function Xc(e){"@babel/helpers - typeof";return Xc=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},Xc(e)}function ag(){return ag=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ag.apply(this,arguments)}function sR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function B0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sR(Object(r),!0).forEach(function(n){Gr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,HU(n.key),n)}}function xEe(e,t,r){return t&&lR(e.prototype,t),r&&lR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wEe(e,t,r){return t=og(t),SEe(e,WU()?Reflect.construct(t,r||[],og(e).constructor):t.apply(e,r))}function SEe(e,t){if(t&&(Xc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _Ee(e)}function _Ee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WU=function(){return!!e})()}function og(e){return og=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},og(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&&cS(e,t)}
vendor: 9,343 bytes, line 896
896function cS(e,t){return cS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cS(e,t)}function Gr(e,t,r){return t=HU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HU(e){var t=AEe(e,"string");return Xc(t)=="symbol"?t:t+""}function AEe(e,t){if(Xc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TEe=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,c=Dd().domain(ig(0,l)).range([a,a+o-s]),u=c.domain().map(function(d){return c(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:u}},cR=function(t){return t.changedTouches&&!!t.changedTouches.length},Zc=function(e){function t(r){var n;return bEe(this,t),n=wEe(this,t,[r]),Gr(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Gr(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Gr(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),Gr(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Gr(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Gr(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Gr(n,"handleSlideDragStart",function(i){var a=cR(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return kEe(t,e),xEe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,c=s.data,u=c.length-1,d=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,d),y=t.getIndexInRange(o,h);return{startIndex:p-p%l,endIndex:y===u?u:y-y%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=Rt(a[n],s,n);return xe(o)?o(l,n):l}},{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(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,c=l.x,u=l.width,d=l.travellerWidth,h=l.startIndex,p=l.endIndex,y=l.onChange,m=n.pageX-a;m>0?m=Math.min(m,c+u-d-s,c+u-d-o):m<0&&(m=Math.max(m,c-o,c-s));var g=this.getIndex({startX:o+m,endX:s+m});(g.startIndex!==h||g.endIndex!==p)&&y&&y(g),this.setState({startX:o+m,endX:s+m,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=cR(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,c=this.state[o],u=this.props,d=u.x,h=u.width,p=u.travellerWidth,y=u.onChange,m=u.gap,g=u.data,b={startX:this.state.startX,endX:this.state.endX},v=n.pageX-a;v>0?v=Math.min(v,d+h-p-c):v<0&&(v=Math.max(v,d-c)),b[o]=c+v;var x=this.getIndex(b),S=x.startIndex,w=x.endIndex,_=function(){var T=g.length-1;return o==="startX"&&(s>l?S%m===0:w%m===0)||s<l&&w===T||o==="endX"&&(s>l?w%m===0:S%m===0)||s>l&&w===T};this.setState(Gr(Gr({},o,c+v),"brushMoveStartX",n.pageX),function(){y&&_()&&y(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,c=o.endX,u=this.state[i],d=s.indexOf(u);if(d!==-1){var h=d+n;if(!(h===-1||h>=s.length)){var p=s[h];i==="startX"&&p>=c||i==="endX"&&p<=l||this.setState(Gr({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,c=n.stroke;return E.createElement("rect",{stroke:c,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,c=n.children,u=n.padding,d=k.Children.only(c);return d?E.cloneElement(d,{x:i,y:a,width:o,height:s,margin:u,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,c=l.y,u=l.travellerWidth,d=l.height,h=l.traveller,p=l.ariaLabel,y=l.data,m=l.startIndex,g=l.endIndex,b=Math.max(n,this.props.x),v=B0(B0({},ge(this.props,!1)),{},{x:b,y:c,width:u,height:d}),x=p||"Min value: ".concat((a=y[m])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[g])===null||o===void 0?void 0:o.name);return E.createElement($e,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(w){["ArrowLeft","ArrowRight"].includes(w.key)&&(w.preventDefault(),w.stopPropagation(),s.handleTravellerMoveKeyboard(w.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,v))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,c=a.travellerWidth,u=Math.min(n,i)+c,d=Math.max(Math.abs(i-n)-c,0);return E.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:u,y:o,width:d,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,c=n.stroke,u=this.state,d=u.startX,h=u.endX,p=5,y={pointerEvents:"none",fill:c};return E.createElement($e,{className:"recharts-brush-texts"},E.createElement(Ws,ag({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,h)-p,y:o+s/2},y),this.getTextOfTick(i)),E.createElement(Ws,ag({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,h)+l+p,y:o+s/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,c=n.width,u=n.height,d=n.alwaysShowText,h=this.state,p=h.startX,y=h.endX,m=h.isTextActive,g=h.isSlideMoving,b=h.isTravellerMoving,v=h.isTravellerFocused;if(!i||!i.length||!Z(s)||!Z(l)||!Z(c)||!Z(u)||c<=0||u<=0)return null;var x=Te("recharts-brush",a),S=E.Children.count(o)===1,w=vEe("userSelect","none");return E.createElement($e,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(m||g||b||v||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,c=Math.floor(a+s/2)-1;return E.createElement(E.Fragment,null,E.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),E.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),E.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return E.isValidElement(n)?a=E.cloneElement(n,i):xe(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,c=n.updateId,u=n.startIndex,d=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return B0({prevData:a,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:o},a&&a.length?TEe({data:a,width:o,x:s,travellerWidth:l,startIndex:u,endIndex:d}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])}(k.PureComponent);
896Gr(Zc,"displayName","Brush");Gr(Zc,"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 EEe=pA;function jEe(e,t){var r;return EEe(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var OEe=jEe,PEe=R5,CEe=Fi,NEe=OEe,REe=qr,IEe=Nv;function $Ee(e,t,r){var n=REe(e)?PEe:NEe;return r&&IEe(e,t,r)&&(t=void 0),n(e,CEe(t))}var MEe=$Ee;const DEe=Ye(MEe);var Ii=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},uR=tF;function LEe(e,t,r){t=="__proto__"&&uR?uR(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var BEe=LEe,FEe=BEe,UEe=Q5,VEe=Fi;function zEe(e,t){var r={};return t=VEe(t),UEe(e,function(n,i,a){FEe(r,i,t(n,i,a))}),r}var WEe=zEe;const HEe=Ye(WEe);function qEe(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var KEe=qEe,YEe=pA;function GEe(e,t){var r=!0;return YEe(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var XEe=GEe,ZEe=KEe,JEe=XEe,QEe=Fi,eje=qr,tje=Nv;function rje(e,t,r){var n=eje(e)?ZEe:JEe;return r&&tje(e,t,r)&&(t=void 0),n(e,QEe(t))}var nje=rje;const qU=Ye(nje);var ije=["x","y"];function oh(e){"@babel/helpers - typeof";return oh=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},oh(e)}function uS(){return uS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uS.apply(this,arguments)}function dR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function id(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dR(Object(r),!0).forEach(function(n){aje(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aje(e,t,r){return t=oje(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oje(e){var t=sje(e,"string");return oh(t)=="symbol"?t:t+""}function sje(e,t){if(oh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(oh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lje(e,t){if(e==null)return{};var r=cje(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cje(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function uje(e,t){var r=e.x,n=e.y,i=lje(e,ije),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),c="".concat(t.height||i.height),u=parseInt(c,10),d="".concat(t.width||i.width),h=parseInt(d,10);return id(id(id(id(id({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:u,width:h,name:t.name,radius:t.radius})}function fR(e){return E.createElement(BU,uS({shapeType:"rectangle",propTransformer:uje,activeClassName:"recharts-active-bar"},e))}var dje=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=Z(n)||Dle(n);return a?t(n,i):(a||Ks(),r)}},fje=["value","background"],KU;function Jc(e){"@babel/helpers - typeof";return Jc=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},Jc(e)}function hje(e,t){if(e==null)return{};var r=pje(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pje(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function sg(){return sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 117,227 bytes, lines 896-901
896for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sg.apply(this,arguments)}function hR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hR(Object(r),!0).forEach(function(n){so(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GU(n.key),n)}}function yje(e,t,r){return t&&pR(e.prototype,t),r&&pR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function gje(e,t,r){return t=lg(t),vje(e,YU()?Reflect.construct(t,r||[],lg(e).constructor):t.apply(e,r))}function vje(e,t){if(t&&(Jc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bje(e)}function bje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YU=function(){return!!e})()}function lg(e){return lg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},lg(e)}function xje(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&&dS(e,t)}function dS(e,t){return dS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dS(e,t)}function so(e,t,r){return t=GU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GU(e){var t=wje(e,"string");return Jc(t)=="symbol"?t:t+""}function wje(e,t){if(Jc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Jc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ol=function(e){function t(){var r;mje(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=gje(this,t,[].concat(i)),so(r,"state",{isAnimationFinished:!1}),so(r,"id",rl("recharts-bar-")),so(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),so(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return xje(t,e),yje(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,c=a.activeBar,u=ge(this.props,!1);return n&&n.map(function(d,h){var p=h===l,y=p?c:o,m=Mt(Mt(Mt({},u),d),{},{isActive:p,option:y,index:h,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return E.createElement($e,sg({className:"recharts-bar-rectangle"},zs(i.props,d,h),{key:"rectangle-".concat(d==null?void 0:d.x,"-").concat(d==null?void 0:d.y,"-").concat(d==null?void 0:d.value,"-").concat(h)}),E.createElement(fR,m))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,c=i.animationDuration,u=i.animationEasing,d=i.animationId,h=this.state.prevData;return E.createElement(li,{begin:l,duration:c,isActive:s,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,m=a.map(function(g,b){var v=h&&h[b];if(v){var x=Kt(v.x,g.x),S=Kt(v.y,g.y),w=Kt(v.width,g.width),_=Kt(v.height,g.height);return Mt(Mt({},g),{},{x:x(y),y:S(y),width:w(y),height:_(y)})}if(o==="horizontal"){var A=Kt(0,g.height),T=A(y);return Mt(Mt({},g),{},{y:g.y+g.height-T,height:T})}var j=Kt(0,g.width),P=j(y);return Mt(Mt({},g),{},{width:P})});return E.createElement($e,null,n.renderRectanglesStatically(m))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Hs(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,l=ge(this.props.background,!1);return a.map(function(c,u){c.value;var d=c.background,h=hje(c,fje);if(!d)return null;var p=Mt(Mt(Mt(Mt(Mt({},h),{},{fill:"#eee"},d),l),zs(n.props,c,u)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:u,className:"recharts-bar-background-rectangle"});return E.createElement(fR,sg({key:"background-bar-".concat(u),option:n.props.background,isActive:u===s},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,c=a.layout,u=a.children,d=sn(u,Lh);if(!d)return null;var h=c==="vertical"?o[0].height/2:o[0].width/2,p=function(g,b){var v=Array.isArray(g.value)?g.value[1]:g.value;return{x:g.x,y:g.y,value:v,errorVal:Rt(g,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return E.createElement($e,y,d.map(function(m){return E.cloneElement(m,{key:"error-bar-".concat(i,"-").concat(m.props.dataKey),data:o,xAxis:s,yAxis:l,layout:c,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,l=n.yAxis,c=n.left,u=n.top,d=n.width,h=n.height,p=n.isAnimationActive,y=n.background,m=n.id;if(i||!a||!a.length)return null;var g=this.state.isAnimationFinished,b=Te("recharts-bar",o),v=s&&s.allowDataOverflow,x=l&&l.allowDataOverflow,S=v||x,w=Ae(m)?this.id:m;return E.createElement($e,{className:b},v||x?E.createElement("defs",null,E.createElement("clipPath",{id:"clipPath-".concat(w)},E.createElement("rect",{x:v?c:c-d/2,y:x?u:u-h/2,width:v?d:d*2,height:x?h:h*2}))):null,E.createElement($e,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(w,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,w),(!p||g)&&Ri.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])}(k.PureComponent);KU=ol;so(ol,"displayName","Bar");so(ol,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ni.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});so(ol,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,u=e.dataStartIndex,d=e.displayedData,h=e.offset,p=tSe(n,r);if(!p)return null;var y=t.layout,m=r.type.defaultProps,g=m!==void 0?Mt(Mt({},m),r.props):r.props,b=g.dataKey,v=g.children,x=g.minPointSize,S=y==="horizontal"?o:a,w=c?S.scale.domain():null,_=lSe({numericAxis:S}),A=sn(v,Rv),T=d.map(function(j,P){var C,O,$,N,L,D;c?C=rSe(c[u+P],w):(C=Rt(j,b),Array.isArray(C)||(C=[_,C]));var B=dje(x,KU.defaultProps.minPointSize)(C[1],P);if(y==="horizontal"){var R,M=[o.scale(C[0]),o.scale(C[1])],U=M[0],Y=M[1];O=n2({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:j,index:P}),$=(R=Y??U)!==null&&R!==void 0?R:void 0,N=p.size;var W=U-Y;if(L=Number.isNaN(W)?0:W,D={x:O,y:o.y,width:N,height:o.height},Math.abs(B)>0&&Math.abs(L)<Math.abs(B)){var X=jr(L||B)*(Math.abs(B)-Math.abs(L));$-=X,L+=X}}else{var le=[a.scale(C[0]),a.scale(C[1])],we=le[0],Re=le[1];if(O=we,$=n2({axis:o,ticks:l,bandSize:i,offset:p.offset,entry:j,index:P}),N=Re-we,L=p.size,D={x:a.x,y:$,width:a.width,height:L},Math.abs(B)>0&&Math.abs(N)<Math.abs(B)){var te=jr(N||B)*(Math.abs(B)-Math.abs(N));N+=te}}return Mt(Mt(Mt({},j),{},{x:O,y:$,width:N,height:L,value:c?C:C[1],payload:j,background:D},A&&A[P]&&A[P].props),{},{tooltipPayload:[gU(r,j)],tooltipPosition:{x:O+N/2,y:$+L/2}})});return Mt({data:T,layout:y},h)});function sh(e){"@babel/helpers - typeof";return sh=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},sh(e)}function Sje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XU(n.key),n)}}function _je(e,t,r){return t&&mR(e.prototype,t),r&&mR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function yR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yR(Object(r),!0).forEach(function(n){Xv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xv(e,t,r){return t=XU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XU(e){var t=kje(e,"string");return sh(t)=="symbol"?t:t+""}function kje(e,t){if(sh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(sh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zA=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,c=t.children,u=Object.keys(r),d={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},h=!!Zr(c,ol);return u.reduce(function(p,y){var m=r[y],g=m.orientation,b=m.domain,v=m.padding,x=v===void 0?{}:v,S=m.mirror,w=m.reversed,_="".concat(g).concat(S?"Mirror":""),A,T,j,P,C;if(m.type==="number"&&(m.padding==="gap"||m.padding==="no-gap")){var O=b[1]-b[0],$=1/0,N=m.categoricalDomain.sort(Fle);if(N.forEach(function(le,we){we>0&&($=Math.min((le||0)-(N[we-1]||0),$))}),Number.isFinite($)){var L=$/O,D=m.layout==="vertical"?n.height:n.width;if(m.padding==="gap"&&(A=L*D/2),m.padding==="no-gap"){var B=Or(t.barCategoryGap,L*D),R=L*D/2;A=R-B-(R-B)/D*B}}}i==="xAxis"?T=[n.left+(x.left||0)+(A||0),n.left+n.width-(x.right||0)-(A||0)]:i==="yAxis"?T=l==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(A||0),n.top+n.height-(x.bottom||0)-(A||0)]:T=m.range,w&&(T=[T[1],T[0]]);var M=hU(m,a,h),U=M.scale,Y=M.realScaleType;U.domain(b).range(T),pU(U);var W=mU(U,Yn(Yn({},m),{},{realScaleType:Y}));i==="xAxis"?(C=g==="top"&&!S||g==="bottom"&&S,j=n.left,P=d[_]-C*m.height):i==="yAxis"&&(C=g==="left"&&!S||g==="right"&&S,j=d[_]-C*m.width,P=n.top);var X=Yn(Yn(Yn({},m),W),{},{realScaleType:Y,x:j,y:P,scale:U,width:i==="xAxis"?n.width:m.width,height:i==="yAxis"?n.height:m.height});return X.bandSize=qy(X,W),!m.hide&&i==="xAxis"?d[_]+=(C?-1:1)*X.height:m.hide||(d[_]+=(C?-1:1)*X.width),Yn(Yn({},p),{},Xv({},y,X))},{})},ZU=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},Aje=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return ZU({x:r,y:n},{x:i,y:a})},JU=function(){function e(t){Sje(this,e),this.scale=t}return _je(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(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();Xv(JU,"EPS",1e-4);var WA=function(t){var r=Object.keys(t).reduce(function(n,i){return Yn(Yn({},n),{},Xv({},i,JU.create(t[i])))},{});return Yn(Yn({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return HEe(i,function(l,c){return r[c].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return qU(i,function(a,o){return r[o].isInRange(a)})}})};function Tje(e){return(e%180+180)%180}var Eje=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Tje(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},jje=Fi,Oje=Rh,Pje=Pv;function Cje(e){return function(t,r,n){var i=Object(t);if(!Oje(t)){var a=jje(r);t=Pje(t),r=function(s){return a(i[s],s,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}var Nje=Cje,Rje=VU;function Ije(e){var t=Rje(e),r=t%1;return t===t?r?t-r:t:0}var $je=Ije,Mje=K5,Dje=Fi,Lje=$je,Bje=Math.max;function Fje(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:Lje(r);return i<0&&(i=Bje(n+i,0)),Mje(e,Dje(t),i)}var Uje=Fje,Vje=Nje,zje=Uje,Wje=Vje(zje),Hje=Wje;const qje=Ye(Hje);var Kje=Use(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("")}),HA=k.createContext(void 0),qA=k.createContext(void 0),QU=k.createContext(void 0),eV=k.createContext({}),tV=k.createContext(void 0),rV=k.createContext(0),nV=k.createContext(0),gR=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,c=t.height,u=Kje(a);return E.createElement(HA.Provider,{value:n},E.createElement(qA.Provider,{value:i},E.createElement(eV.Provider,{value:a},E.createElement(QU.Provider,{value:u},E.createElement(tV.Provider,{value:o},E.createElement(rV.Provider,{value:c},E.createElement(nV.Provider,{value:l},s)))))))},Yje=function(){return k.useContext(tV)},iV=function(t){var r=k.useContext(HA);r==null&&Ks();var n=r[t];return n==null&&Ks(),n},Gje=function(){var t=k.useContext(HA);return Ga(t)},Xje=function(){var t=k.useContext(qA),r=qje(t,function(n){return qU(n.domain,Number.isFinite)});return r||Ga(t)},aV=function(t){var r=k.useContext(qA);r==null&&Ks();var n=r[t];return n==null&&Ks(),n},Zje=function(){var t=k.useContext(QU);return t},Jje=function(){return k.useContext(eV)},KA=function(){return k.useContext(nV)},YA=function(){return k.useContext(rV)};function Qc(e){"@babel/helpers - typeof";return Qc=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},Qc(e)}function Qje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eOe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sV(n.key),n)}}function tOe(e,t,r){return t&&eOe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rOe(e,t,r){return t=cg(t),nOe(e,oV()?Reflect.construct(t,r||[],cg(e).constructor):t.apply(e,r))}function nOe(e,t){if(t&&(Qc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iOe(e)}function iOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oV=function(){return!!e})()}function cg(e){return cg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cg(e)}function aOe(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&&fS(e,t)}function fS(e,t){return fS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fS(e,t)}function vR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vR(Object(r),!0).forEach(function(n){GA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GA(e,t,r){return t=sV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sV(e){var t=oOe(e,"string");return Qc(t)=="symbol"?t:t+""}function oOe(e,t){if(Qc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sOe(e,t){return dOe(e)||uOe(e,t)||cOe(e,t)||lOe()}function lOe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 897In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cOe(e,t){if(e){if(typeof e=="string")return xR(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xR(e,t)}}function xR(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function uOe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function dOe(e){if(Array.isArray(e))return e}function hS(){return hS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hS.apply(this,arguments)}var fOe=function(t,r){var n;return E.isValidElement(t)?n=E.cloneElement(t,r):xe(t)?n=t(r):n=E.createElement("line",hS({},r,{className:"recharts-reference-line-line"})),n},hOe=function(t,r,n,i,a,o,s,l,c){var u=a.x,d=a.y,h=a.width,p=a.height;if(n){var y=c.y,m=t.y.apply(y,{position:o});if(Ii(c,"discard")&&!t.y.isInRange(m))return null;var g=[{x:u+h,y:m},{x:u,y:m}];return l==="left"?g.reverse():g}if(r){var b=c.x,v=t.x.apply(b,{position:o});if(Ii(c,"discard")&&!t.x.isInRange(v))return null;var x=[{x:v,y:d+p},{x:v,y:d}];return s==="top"?x.reverse():x}if(i){var S=c.segment,w=S.map(function(_){return t.apply(_,{position:o})});return Ii(c,"discard")&&DEe(w,function(_){return!t.isInRange(_)})?null:w}return null};function pOe(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,c=Yje(),u=iV(i),d=aV(a),h=Zje();if(!c||!h)return null;ri(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=WA({x:u.scale,y:d.scale}),y=Gt(t),m=Gt(r),g=n&&n.length===2,b=hOe(p,y,m,g,h,e.position,u.orientation,d.orientation,e);if(!b)return null;var v=sOe(b,2),x=v[0],S=x.x,w=x.y,_=v[1],A=_.x,T=_.y,j=Ii(e,"hidden")?"url(#".concat(c,")"):void 0,P=bR(bR({clipPath:j},ge(e,!0)),{},{x1:S,y1:w,x2:A,y2:T});return E.createElement($e,{className:Te("recharts-reference-line",s)},fOe(o,P),Qt.renderCallByParent(e,Aje({x1:S,y1:w,x2:A,y2:T})))}var XA=function(e){function t(){return Qje(this,t),rOe(this,t,arguments)}return aOe(t,e),tOe(t,[{key:"render",value:function(){return E.createElement(pOe,this.props)}}])}(E.Component);GA(XA,"displayName","ReferenceLine");GA(XA,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function pS(){return pS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pS.apply(this,arguments)}function eu(e){"@babel/helpers - typeof";return eu=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},eu(e)}function wR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function SR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wR(Object(r),!0).forEach(function(n){Zv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yOe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cV(n.key),n)}}function gOe(e,t,r){return t&&yOe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vOe(e,t,r){return t=ug(t),bOe(e,lV()?Reflect.construct(t,r||[],ug(e).constructor):t.apply(e,r))}function bOe(e,t){if(t&&(eu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xOe(e)}function xOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lV=function(){return!!e})()}function ug(e){return ug=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ug(e)}function wOe(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&&mS(e,t)}function mS(e,t){return mS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mS(e,t)}function Zv(e,t,r){return t=cV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cV(e){var t=SOe(e,"string");return eu(t)=="symbol"?t:t+""}function SOe(e,t){if(eu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(eu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _Oe=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=WA({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return Ii(t,"discard")&&!o.isInRange(s)?null:s},Jv=function(e){function t(){return mOe(this,t),vOe(this,t,arguments)}return wOe(t,e),gOe(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,c=Gt(i),u=Gt(a);if(ri(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var d=_Oe(this.props);if(!d)return null;var h=d.x,p=d.y,y=this.props,m=y.shape,g=y.className,b=Ii(this.props,"hidden")?"url(#".concat(l,")"):void 0,v=SR(SR({clipPath:b},ge(this.props,!0)),{},{cx:h,cy:p});return E.createElement($e,{className:Te("recharts-reference-dot",g)},t.renderDot(m,v),Qt.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])}(E.Component);Zv(Jv,"displayName","ReferenceDot");Zv(Jv,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Zv(Jv,"renderDot",function(e,t){var r;return E.isValidElement(e)?r=E.cloneElement(e,t):xe(e)?r=e(t):r=E.createElement(Bh,pS({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function yS(){return yS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yS.apply(this,arguments)}function tu(e){"@babel/helpers - typeof";return tu=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},tu(e)}function _R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_R(Object(r),!0).forEach(function(n){Qv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_R(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AOe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dV(n.key),n)}}function TOe(e,t,r){return t&&AOe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EOe(e,t,r){return t=dg(t),jOe(e,uV()?Reflect.construct(t,r||[],dg(e).constructor):t.apply(e,r))}function jOe(e,t){if(t&&(tu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OOe(e)}function OOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uV=function(){return!!e})()}function dg(e){return dg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dg(e)}function POe(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&&gS(e,t)}function gS(e,t){return gS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gS(e,t)}function Qv(e,t,r){return t=dV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dV(e){var t=COe(e,"string");return tu(t)=="symbol"?t:t+""}function COe(e,t){if(tu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(tu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var NOe=function(t,r,n,i,a){var o=a.x1,s=a.x2,l=a.y1,c=a.y2,u=a.xAxis,d=a.yAxis;if(!u||!d)return null;var h=WA({x:u.scale,y:d.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(l,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(s,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(c,{position:"end"}):h.y.rangeMax};return Ii(a,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:ZU(p,y)},eb=function(e){function t(){return kOe(this,t),EOe(this,t,arguments)}return POe(t,e),TOe(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,l=n.className,c=n.alwaysShow,u=n.clipPathId;ri(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=Gt(i),h=Gt(a),p=Gt(o),y=Gt(s),m=this.props.shape;if(!d&&!h&&!p&&!y&&!m)return null;var g=NOe(d,h,p,y,this.props);if(!g&&!m)return null;var b=Ii(this.props,"hidden")?"url(#".concat(u,")"):void 0;return E.createElement($e,{className:Te("recharts-reference-area",l)},t.renderRect(m,kR(kR({clipPath:b},ge(this.props,!0)),g)),Qt.renderCallByParent(this.props,g))}}])}(E.Component);Qv(eb,"displayName","ReferenceArea");Qv(eb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Qv(eb,"renderRect",function(e,t){var r;return E.isValidElement(e)?r=E.cloneElement(e,t):xe(e)?r=e(t):r=E.createElement(VA,yS({},t,{className:"recharts-reference-area-rect"})),r});function fV(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function ROe(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Eje(n,r)}function IOe(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function fg(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function $Oe(e,t){return fV(e,t+1)}function MOe(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,c=1,u=o,d=function(){var y=n==null?void 0:n[l];if(y===void 0)return{v:fV(n,c)};var m=l,g,b=function(){return g===void 0&&(g=r(y,m)),g},v=y.coordinate,x=l===0||fg(e,v,b,u,s);x||(l=0,u=o,c+=1),x&&(u=v+e*(b()/2+i),l+=c)},h;c<=a.length;)if(h=d(),h)return h.v;return[]}function lh(e){"@babel/helpers - typeof";return lh=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},lh(e)}function AR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AR(Object(r),!0).forEach(function(n){DOe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DOe(e,t,r){return t=LOe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LOe(e){var t=BOe(e,"string");return lh(t)=="symbol"?t:t+""}function BOe(e,t){if(lh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(lh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FOe(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,c=function(h){var p=a[h],y,m=function(){return y===void 0&&(y=r(p,h)),y};if(h===o-1){var g=e*(p.coordinate+e*m()/2-l);a[h]=p=mr(mr({},p),{},{tickCoord:g>0?p.coordinate-g*e:p.coordinate})}else a[h]=p=mr(mr({},p),{},{tickCoord:p.coordinate});var b=fg(e,p.tickCoord,m,s,l);b&&(l=p.tickCoord-e*(m()/2+i),a[h]=mr(mr({},p),{},{isShow:!0}))},u=o-1;u>=0;u--)c(u);return a}function UOe(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,c=t.end;if(a){var u=n[s-1],d=r(u,s-1),h=e*(u.coordinate+e*d/2-c);o[s-1]=u=mr(mr({},u),{},{tickCoord:h>0?u.coordinate-h*e:u.coordinate});var p=fg(e,u.tickCoord,function(){return d},l,c);p&&(c=u.tickCoord-e*(d/2+i),o[s-1]=mr(mr({},u),{},{isShow:!0}))}for(var y=a?s-1:s,m=function(v){var x=o[v],S,w=function(){return S===void 0&&(S=r(x,v)),S};if(v===0){var _=e*(x.coordinate-e*w()/2-l);o[v]=x=mr(mr({},x),{},{tickCoord:_<0?x.coordinate-_*e:x.coordinate})}else o[v]=x=mr(mr({},x),{},{tickCoord:x.coordinate});var A=fg(e,x.tickCoord,w,l,c);A&&(l=x.tickCoord+e*(w()/2+i),o[v]=mr(mr({},x),{},{isShow:!0}))},g=0;g<y;g++)m(g);return o}function ZA(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,c=e.tickFormatter,u=e.unit,d=e.angle;if(!i||!i.length||!n)return[];if(Z(l)||ni.isSsr)return $Oe(i,typeof l=="number"&&Z(l)?l:0);var h=[],p=s==="top"||s==="bottom"?"width":"height",y=u&&p==="width"?Md(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},m=function(x,S){var w=xe(c)?c(x.value,S):x.value;return p==="width"?ROe(Md(w,{fontSize:t,letterSpacing:r}),y,d):Md(w,{fontSize:t,letterSpacing:r})[p]},g=i.length>=2?jr(i[1].coordinate-i[0].coordinate):1,b=IOe(a,g,p);return l==="equidistantPreserveStart"?MOe(g,b,m,i,o):(l==="preserveStart"||l==="preserveStartEnd"?h=UOe(g,b,m,i,o,l==="preserveStartEnd"):h=FOe(g,b,m,i,o),h.filter(function(v){return v.isShow}))}var VOe=["viewBox"],zOe=["viewBox"],WOe=["ticks"];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)}function Zl(){return Zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zl.apply(this,arguments)}function TR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TR(Object(r),!0).forEach(function(n){JA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F0(e,t){if(e==null)return{};var r=HOe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function HOe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function qOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ER(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pV(n.key),n)}}function KOe(e,t,r){return t&&ER(e.prototype,t),r&&ER(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function YOe(e,t,r){return t=hg(t),GOe(e,hV()?Reflect.construct(t,r||[],hg(e).constructor):t.apply(e,r))}function GOe(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 XOe(e)}function XOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hV=function(){return!!e})()}function hg(e){return hg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hg(e)}function ZOe(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&&vS(e,t)}function vS(e,t){return vS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vS(e,t)}function JA(e,t,r){return t=pV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pV(e){var t=JOe(e,"string");return ru(t)=="symbol"?t:t+""}function JOe(e,t){if(ru(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ru(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Iu=function(e){function t(r){var n;return qOe(this,t),n=YOe(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return ZOe(t,e),KOe(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=F0(n,VOe),s=this.props,l=s.viewBox,c=F0(s,zOe);return!uc(a,l)||!uc(o,c)||!uc(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,c=i.orientation,u=i.tickSize,d=i.mirror,h=i.tickMargin,p,y,m,g,b,v,x=d?-1:1,S=n.tickSize||u,w=Z(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":p=y=n.coordinate,g=o+ +!d*l,m=g-x*S,v=m-x*h,b=w;break;case"left":m=g=n.coordinate,y=a+ +!d*s,p=y-x*S,b=p-x*h,v=w;break;case"right":m=g=n.coordinate,y=a+ +d*s,p=y+x*S,b=p+x*h,v=w;break;default:p=y=n.coordinate,g=o+ +d*l,m=g+x*S,v=m+x*h,b=w;break}return{line:{x1:p,y1:m,x2:y,y2:g},tick:{x:b,y:v}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.orientation,c=n.mirror,u=n.axisLine,d=Vt(Vt(Vt({},ge(this.props,!1)),ge(u,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var h=+(l==="top"&&!c||l==="bottom"&&c);d=Vt(Vt({},d),{},{x1:i,y1:a+h*s,x2:i+o,y2:a+h*s})}else{var p=+(l==="left"&&!c||l==="right"&&c);d=Vt(Vt({},d),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+s})}return E.createElement("line",Zl({},d,{className:Te("recharts-cartesian-axis-line",on(u,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,c=s.stroke,u=s.tick,d=s.tickFormatter,h=s.unit,p=ZA(Vt(Vt({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),g=ge(this.props,!1),b=ge(u,!1),v=Vt(Vt({},g),{},{fill:"none"},ge(l,!1)),x=p.map(function(S,w){var _=o.getTickLineCoord(S),A=_.line,T=_.tick,j=Vt(Vt(Vt(Vt({textAnchor:y,verticalAnchor:m},g),{},{stroke:"none",fill:c},b),T),{},{index:w,payload:S,visibleTicksCount:p.length,tickFormatter:d});return E.createElement($e,Zl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},zs(o.props,S,w)),l&&E.createElement("line",Zl({},v,A,{className:Te("recharts-cartesian-axis-tick-line",on(l,"className"))})),u&&t.renderTickItem(u,j,"".concat(xe(d)?d(S.value,w):S.value).concat(h||"")))});return E.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,c=i.className,u=i.hide;if(u)return null;var d=this.props,h=d.ticks,p=F0(d,WOe),y=h;return xe(l)&&(y=h&&h.length>0?l(this.props):l(p)),o<=0||s<=0||!y||!y.length?null:E.createElement($e,{className:Te("recharts-cartesian-axis",c),ref:function(g){n.layerReference=g}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Qt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=Te(i.className,"recharts-cartesian-axis-tick-value");return E.isValidElement(n)?o=E.cloneElement(n,Vt(Vt({},i),{},{className:s})):xe(n)?o=n(Vt(Vt({},i),{},{className:s})):o=E.createElement(Ws,Zl({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(k.Component);JA(Iu,"displayName","CartesianAxis");JA(Iu,"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 QOe=["x1","y1","x2","y2","key"],ePe=["offset"];function Ys(e){"@babel/helpers - typeof";return Ys=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},Ys(e)}function jR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jR(Object(r),!0).forEach(function(n){tPe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tPe(e,t,r){return t=rPe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rPe(e){var t=nPe(e,"string");return Ys(t)=="symbol"?t:t+""}function nPe(e,t){if(Ys(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ys(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vs(){return vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vs.apply(this,arguments)}function OR(e,t){if(e==null)return{};var r=iPe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iPe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var aPe=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return E.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function mV(e,t){var r;if(E.isValidElement(e))r=E.cloneElement(e,t);else if(xe(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=OR(t,QOe),c=ge(l,!1);c.offset;var u=OR(c,ePe);r=E.createElement("line",vs({},u,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function oPe(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var c=gr(gr({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return mV(i,c)});return E.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function sPe(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var c=gr(gr({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return mV(i,c)});return E.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function lPe(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,c=l===void 0?!0:l;if(!c||!t||!t.length)return null;var u=s.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==u[0]&&u.unshift(0);var d=u.map(function(h,p){var y=!u[p+1],m=y?i+o-h:u[p+1]-h;if(m<=0)return null;var g=p%t.length;return E.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:m,width:a,stroke:"none",fill:t[g],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return E.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function cPe(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var u=c.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==u[0]&&u.unshift(0);var d=u.map(function(h,p){var y=!u[p+1],m=y?a+s-h:u[p+1]-h;if(m<=0)return null;var g=p%n.length;return E.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:m,height:l,stroke:"none",fill:n[g],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return E.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var uPe=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return fU(ZA(gr(gr(gr({},Iu.defaultProps),n),{},{ticks:la(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},dPe=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return fU(ZA(gr(gr(gr({},Iu.defaultProps),n),{},{ticks:la(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},xl={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function gm(e){var t,r,n,i,a,o,s=KA(),l=YA(),c=Jje(),u=gr(gr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:xl.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:xl.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:xl.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:xl.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:xl.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:xl.verticalFill,x:Z(e.x)?e.x:c.left,y:Z(e.y)?e.y:c.top,width:Z(e.width)?e.width:c.width,height:Z(e.height)?e.height:c.height}),d=u.x,h=u.y,p=u.width,y=u.height,m=u.syncWithTicks,g=u.horizontalValues,b=u.verticalValues,v=Gje(),x=Xje();if(!Z(p)||p<=0||!Z(y)||y<=0||!Z(d)||d!==+d||!Z(h)||h!==+h)return null;var S=u.verticalCoordinatesGenerator||uPe,w=u.horizontalCoordinatesGenerator||dPe,_=u.horizontalPoints,A=u.verticalPoints;if((!_||!_.length)&&xe(w)){var T=g&&g.length,j=w({yAxis:x?gr(gr({},x),{},{ticks:T?g:x.ticks}):void 0,width:s,height:l,offset:c},T?!0:m);ri(Array.isArray(j),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Ys(j),"]")),Array.isArray(j)&&(_=j)}if((!A||!A.length)&&xe(S)){var P=b&&b.length,C=S({xAxis:v?gr(gr({},v),{},{ticks:P?b:v.ticks}):void 0,width:s,height:l,offset:c},P?!0:m);ri(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Ys(C),"]")),Array.isArray(C)&&(A=C)}return E.createElement("g",{className:"recharts-cartesian-grid"},E.createElement(aPe,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height,ry:u.ry}),E.createElement(oPe,vs({},u,{offset:c,horizontalPoints:_,xAxis:v,yAxis:x})),E.createElement(sPe,vs({},u,{offset:c,verticalPoints:A,xAxis:v,yAxis:x})),E.createElement(lPe,vs({},u,{horizontalPoints:_})),E.createElement(cPe,vs({},u,{verticalPoints:A})))}gm.displayName="CartesianGrid";var fPe=["type","layout","connectNulls","ref"],hPe=["key"];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 PR(e,t){if(e==null)return{};var r=pPe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pPe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Vd(){return Vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vd.apply(this,arguments)}function CR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CR(Object(r),!0).forEach(function(n){Gn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wl(e){return vPe(e)||gPe(e)||yPe(e)||mPe()}function mPe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 898In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yPe(e,t){if(e){if(typeof e=="string")return bS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bS(e,t)}}function gPe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vPe(e){if(Array.isArray(e))return bS(e)}function bS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)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 NR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,gV(n.key),n)}}function xPe(e,t,r){return t&&NR(e.prototype,t),r&&NR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wPe(e,t,r){return t=pg(t),SPe(e,yV()?Reflect.construct(t,r||[],pg(e).constructor):t.apply(e,r))}function SPe(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 _Pe(e)}function _Pe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yV=function(){return!!e})()}function pg(e){return pg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pg(e)}function kPe(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&&xS(e,t)}function xS(e,t){return xS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},xS(e,t)}function Gn(e,t,r){return t=gV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gV(e){var t=APe(e,"string");return nu(t)=="symbol"?t:t+""}function APe(e,t){if(nu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(nu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fh=function(e){function t(){var r;bPe(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=wPe(this,t,[].concat(i)),Gn(r,"state",{isAnimationFinished:!0,totalLength:0}),Gn(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),Gn(r,"getStrokeDasharray",function(o,s,l){var c=l.reduce(function(b,v){return b+v});if(!c)return r.generateSimpleStrokeDasharray(s,o);for(var u=Math.floor(o/c),d=o%c,h=s-o,p=[],y=0,m=0;y<l.length;m+=l[y],++y)if(m+l[y]>d){p=[].concat(wl(l.slice(0,y)),[d-m]);break}var g=p.length%2===0?[0,h]:[h];return[].concat(wl(t.repeat(l,u)),wl(p),g).map(function(b){return"".concat(b,"px")}).join(", ")}),Gn(r,"id",rl("recharts-line-")),Gn(r,"pathRef",function(o){r.mainCurve=o}),Gn(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Gn(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return kPe(t,e),xPe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,l=a.yAxis,c=a.layout,u=a.children,d=sn(u,Lh);if(!d)return null;var h=function(m,g){return{x:m.x,y:m.y,value:m.value,errorVal:Rt(m.payload,g)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return E.createElement($e,p,d.map(function(y){return E.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:s,yAxis:l,layout:c,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,c=s.points,u=s.dataKey,d=ge(this.props,!1),h=ge(l,!0),p=c.map(function(m,g){var b=Yr(Yr(Yr({key:"dot-".concat(g),r:3},d),h),{},{index:g,cx:m.x,cy:m.y,value:m.value,dataKey:u,payload:m.payload,points:c});return t.renderDotItem(l,b)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return E.createElement($e,Vd({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,l=s.type,c=s.layout,u=s.connectNulls;s.ref;var d=PR(s,fPe),h=Yr(Yr(Yr({},ge(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:l,layout:c,connectNulls:u});return E.createElement(Cs,Vd({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.strokeDasharray,c=o.isAnimationActive,u=o.animationBegin,d=o.animationDuration,h=o.animationEasing,p=o.animationId,y=o.animateNewValues,m=o.width,g=o.height,b=this.state,v=b.prevPoints,x=b.totalLength;return E.createElement(li,{begin:u,duration:d,isActive:c,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var w=S.t;if(v){var _=v.length/s.length,A=s.map(function(O,$){var N=Math.floor($*_);if(v[N]){var L=v[N],D=Kt(L.x,O.x),B=Kt(L.y,O.y);return Yr(Yr({},O),{},{x:D(w),y:B(w)})}if(y){var R=Kt(m*2,O.x),M=Kt(g/2,O.y);return Yr(Yr({},O),{},{x:R(w),y:M(w)})}return Yr(Yr({},O),{},{x:O.x,y:O.y})});return a.renderCurveStatically(A,n,i)}var T=Kt(0,x),j=T(w),P;if(l){var C="".concat(l).split(/[,\s]+/gim).map(function(O){return parseFloat(O)});P=a.getStrokeDasharray(j,x,C)}else P=a.generateSimpleStrokeDasharray(x,j);return a.renderCurveStatically(s,n,i,{strokeDasharray:P})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,l=this.state,c=l.prevPoints,u=l.totalLength;return s&&o&&o.length&&(!c&&u>0||!Hs(c,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,c=i.xAxis,u=i.yAxis,d=i.top,h=i.left,p=i.width,y=i.height,m=i.isAnimationActive,g=i.id;if(a||!s||!s.length)return null;var b=this.state.isAnimationFinished,v=s.length===1,x=Te("recharts-line",l),S=c&&c.allowDataOverflow,w=u&&u.allowDataOverflow,_=S||w,A=Ae(g)?this.id:g,T=(n=ge(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},j=T.r,P=j===void 0?3:j,C=T.strokeWidth,O=C===void 0?2:C,$=i5(o)?o:{},N=$.clipDot,L=N===void 0?!0:N,D=P*2+O;return E.createElement($e,{className:x},S||w?E.createElement("defs",null,E.createElement("clipPath",{id:"clipPath-".concat(A)},E.createElement("rect",{x:S?h:h-p/2,y:w?d:d-y/2,width:S?p:p*2,height:w?y:y*2})),!L&&E.createElement("clipPath",{id:"clipPath-dots-".concat(A)},E.createElement("rect",{x:h-D/2,y:d-D/2,width:p+D,height:y+D}))):null,!v&&this.renderCurve(_,A),this.renderErrorBar(_,A),(v||o)&&this.renderDots(_,L,A),(!m||b)&&Ri.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(wl(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(wl(o),wl(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(E.isValidElement(n))a=E.cloneElement(n,i);else if(xe(n))a=n(i);else{var o=i.key,s=PR(i,hPe),l=Te("recharts-line-dot",typeof n!="boolean"?n.className:"");a=E.createElement(Bh,Vd({key:o},s,{className:l}))}return a}}])}(k.PureComponent);Gn(Fh,"displayName","Line");Gn(Fh,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ni.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Gn(Fh,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,c=e.offset,u=t.layout,d=l.map(function(h,p){var y=Rt(h,o);return u==="horizontal"?{x:Hy({axis:r,ticks:i,bandSize:s,entry:h,index:p}),y:Ae(y)?null:n.scale(y),value:y,payload:h}:{x:Ae(y)?null:r.scale(y),y:Hy({axis:n,ticks:a,bandSize:s,entry:h,index:p}),value:y,payload:h}});return Yr({points:d,layout:u},c)});var TPe=["layout","type","stroke","connectNulls","isRange","ref"],EPe=["key"],vV;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 bV(e,t){if(e==null)return{};var r=jPe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jPe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function bs(){return bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bs.apply(this,arguments)}function RR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RR(Object(r),!0).forEach(function(n){Ti(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wV(n.key),n)}}function PPe(e,t,r){return t&&IR(e.prototype,t),r&&IR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function CPe(e,t,r){return t=mg(t),NPe(e,xV()?Reflect.construct(t,r||[],mg(e).constructor):t.apply(e,r))}function NPe(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 RPe(e)}function RPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xV=function(){return!!e})()}function mg(e){return mg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mg(e)}function IPe(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&&wS(e,t)}function wS(e,t){return wS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wS(e,t)}function Ti(e,t,r){return t=wV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wV(e){var t=$Pe(e,"string");return iu(t)=="symbol"?t:t+""}function $Pe(e,t){if(iu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(iu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zo=function(e){function t(){var r;OPe(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=CPe(this,t,[].concat(i)),Ti(r,"state",{isAnimationFinished:!0}),Ti(r,"id",rl("recharts-area-")),Ti(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),xe(o)&&o()}),Ti(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),xe(o)&&o()}),r}return IPe(t,e),PPe(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var l=this.props,c=l.dot,u=l.points,d=l.dataKey,h=ge(this.props,!1),p=ge(c,!0),y=u.map(function(g,b){var v=Fa(Fa(Fa({key:"dot-".concat(b),r:3},h),p),{},{index:b,cx:g.x,cy:g.y,dataKey:d,value:g.value,payload:g.payload,points:u});return t.renderDotItem(c,v)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return E.createElement($e,bs({className:"recharts-area-dots"},m),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].x,c=o[o.length-1].x,u=n*Math.abs(l-c),d=oo(o.map(function(h){return h.y||0}));return Z(a)&&typeof a=="number"?d=Math.max(a,d):a&&Array.isArray(a)&&a.length&&(d=Math.max(oo(a.map(function(h){return h.y||0})),d)),Z(d)?E.createElement("rect",{x:l<c?l:l-u,y:0,width:u,height:Math.floor(d+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].y,c=o[o.length-1].y,u=n*Math.abs(l-c),d=oo(o.map(function(h){return h.x||0}));return Z(a)&&typeof a=="number"?d=Math.max(a,d):a&&Array.isArray(a)&&a.length&&(d=Math.max(oo(a.map(function(h){return h.x||0})),d)),Z(d)?E.createElement("rect",{x:0,y:l<c?l:l-u,width:d+(s?parseInt("".concat(s),10):1),height:Math.floor(u)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,l=s.layout,c=s.type,u=s.stroke,d=s.connectNulls,h=s.isRange;s.ref;var p=bV(s,TPe);return E.createElement($e,{clipPath:a?"url(#clipPath-".concat(o,")"):null},E.createElement(Cs,bs({},ge(p,!0),{points:n,connectNulls:d,type:c,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),u!=="none"&&E.createElement(Cs,bs({},ge(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:d,fill:"none",points:n})),u!=="none"&&h&&E.createElement(Cs,bs({},ge(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:d,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.baseLine,c=o.isAnimationActive,u=o.animationBegin,d=o.animationDuration,h=o.animationEasing,p=o.animationId,y=this.state,m=y.prevPoints,g=y.prevBaseLine;return E.createElement(li,{begin:u,duration:d,isActive:c,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var v=b.t;if(m){var x=m.length/s.length,S=s.map(function(T,j){var P=Math.floor(j*x);if(m[P]){var C=m[P],O=Kt(C.x,T.x),$=Kt(C.y,T.y);return Fa(Fa({},T),{},{x:O(v),y:$(v)})}return T}),w;if(Z(l)&&typeof l=="number"){var _=Kt(g,l);w=_(v)}else if(Ae(l)||Eu(l)){var A=Kt(g,0);w=A(v)}else w=l.map(function(T,j){var P=Math.floor(j*x);if(g[P]){var C=g[P],O=Kt(C.x,T.x),$=Kt(C.y,T.y);return Fa(Fa({},T),{},{x:O(v),y:$(v)})}return T});return a.renderAreaStatically(S,w,n,i)}return E.createElement($e,null,E.createElement("defs",null,E.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(v))),E.createElement($e,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,l,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,l=a.isAnimationActive,c=this.state,u=c.prevPoints,d=c.prevBaseLine,h=c.totalLength;return l&&o&&o.length&&(!u&&h>0||!Hs(u,o)||!Hs(d,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,c=i.top,u=i.left,d=i.xAxis,h=i.yAxis,p=i.width,y=i.height,m=i.isAnimationActive,g=i.id;if(a||!s||!s.length)return null;var b=this.state.isAnimationFinished,v=s.length===1,x=Te("recharts-area",l),S=d&&d.allowDataOverflow,w=h&&h.allowDataOverflow,_=S||w,A=Ae(g)?this.id:g,T=(n=ge(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},j=T.r,P=j===void 0?3:j,C=T.strokeWidth,O=C===void 0?2:C,$=i5(o)?o:{},N=$.clipDot,L=N===void 0?!0:N,D=P*2+O;return E.createElement($e,{className:x},S||w?E.createElement("defs",null,E.createElement("clipPath",{id:"clipPath-".concat(A)},E.createElement("rect",{x:S?u:u-p/2,y:w?c:c-y/2,width:S?p:p*2,height:w?y:y*2})),!L&&E.createElement("clipPath",{id:"clipPath-dots-".concat(A)},E.createElement("rect",{x:u-D/2,y:c-D/2,width:p+D,height:y+D}))):null,v?null:this.renderArea(_,A),(o||v)&&this.renderDots(_,L,A),(!m||b)&&Ri.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(k.PureComponent);vV=zo;Ti(zo,"displayName","Area");Ti(zo,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ni.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Ti(zo,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(Z(s)&&typeof s=="number")return s;var l=i==="horizontal"?n:r,c=l.scale.domain();if(l.type==="number"){var u=Math.max(c[0],c[1]),d=Math.min(c[0],c[1]);return s==="dataMin"?d:s==="dataMax"||u<0?u:Math.max(Math.min(c[0],c[1]),0)}return s==="dataMin"?c[0]:s==="dataMax"?c[1]:c[0]});Ti(zo,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,c=e.stackedData,u=e.dataStartIndex,d=e.displayedData,h=e.offset,p=t.layout,y=c&&c.length,m=vV.getBaseValue(t,r,n,i),g=p==="horizontal",b=!1,v=d.map(function(S,w){var _;y?_=c[u+w]:(_=Rt(S,l),Array.isArray(_)?b=!0:_=[m,_]);var A=_[1]==null||y&&Rt(S,l)==null;return g?{x:Hy({axis:n,ticks:a,bandSize:s,entry:S,index:w}),y:A?null:i.scale(_[1]),value:_,payload:S}:{x:A?null:n.scale(_[1]),y:Hy({axis:i,ticks:o,bandSize:s,entry:S,index:w}),value:_,payload:S}}),x;return y||b?x=v.map(function(S){var w=Array.isArray(S.value)?S.value[0]:null;return g?{x:S.x,y:w!=null&&S.y!=null?i.scale(w):null}:{x:w!=null?n.scale(w):null,y:S.y}}):x=g?i.scale(m):n.scale(m),Fa({points:v,baseLine:x,layout:p,isRange:b},h)});Ti(zo,"renderDotItem",function(e,t){var r;if(E.isValidElement(e))r=E.cloneElement(e,t);else if(xe(e))r=e(t);else{var n=Te("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=bV(t,EPe);r=E.createElement(Bh,bs({},a,{key:i,className:n}))}return r});function au(e){"@babel/helpers - typeof";return au=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},au(e)}function MPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DPe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kV(n.key),n)}}function LPe(e,t,r){return t&&DPe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BPe(e,t,r){return t=yg(t),FPe(e,SV()?Reflect.construct(t,r||[],yg(e).constructor):t.apply(e,r))}function FPe(e,t){if(t&&(au(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UPe(e)}function UPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SV=function(){return!!e})()}function yg(e){return yg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yg(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&&SS(e,t)}function SS(e,t){return SS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},SS(e,t)}function _V(e,t,r){return t=kV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kV(e){var t=zPe(e,"string");return au(t)=="symbol"?t:t+""}function zPe(e,t){if(au(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(au(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _S(){return _S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_S.apply(this,arguments)}function WPe(e){var t=e.xAxisId,r=KA(),n=YA(),i=iV(t);return i==null?null:k.createElement(Iu,_S({},i,{className:Te("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return la(o,!0)}}))}var xo=function(e){function t(){return MPe(this,t),BPe(this,t,arguments)}return VPe(t,e),LPe(t,[{key:"render",value:function(){return k.createElement(WPe,this.props)}}])}(k.Component);_V(xo,"displayName","XAxis");_V(xo,"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 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 HPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qPe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,EV(n.key),n)}}function KPe(e,t,r){return t&&qPe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YPe(e,t,r){return t=gg(t),GPe(e,AV()?Reflect.construct(t,r||[],gg(e).constructor):t.apply(e,r))}function GPe(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 XPe(e)}function XPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AV=function(){return!!e})()}function gg(e){return gg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gg(e)}function ZPe(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&&kS(e,t)}function kS(e,t){return kS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kS(e,t)}function TV(e,t,r){return t=EV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EV(e){var t=JPe(e,"string");return ou(t)=="symbol"?t:t+""}function JPe(e,t){if(ou(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ou(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AS(){return AS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},AS.apply(this,arguments)}var QPe=function(t){var r=t.yAxisId,n=KA(),i=YA(),a=aV(r);return a==null?null:k.createElement(Iu,AS({},a,{className:Te("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return la(s,!0)}}))},wo=function(e){function t(){return HPe(this,t),YPe(this,t,arguments)}return ZPe(t,e),KPe(t,[{key:"render",value:function(){return k.createElement(QPe,this.props)}}])}(k.Component);TV(wo,"displayName","YAxis");TV(wo,"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 $R(e){return nCe(e)||rCe(e)||tCe(e)||eCe()}function eCe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 899In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tCe(e,t){if(e){if(typeof e=="string")return TS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return TS(e,t)}}function rCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nCe(e){if(Array.isArray(e))return TS(e)}function TS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ES=function(t,r,n,i,a){var o=sn(t,XA),s=sn(t,Jv),l=[].concat($R(o),$R(s)),c=sn(t,eb),u="".concat(i,"Id"),d=i[0],h=r;if(l.length&&(h=l.reduce(function(m,g){if(g.props[u]===n&&Ii(g.props,"extendDomain")&&Z(g.props[d])){var b=g.props[d];return[Math.min(m[0],b),Math.max(m[1],b)]}return m},h)),c.length){var p="".concat(d,"1"),y="".concat(d,"2");h=c.reduce(function(m,g){if(g.props[u]===n&&Ii(g.props,"extendDomain")&&Z(g.props[p])&&Z(g.props[y])){var b=g.props[p],v=g.props[y];return[Math.min(m[0],b,v),Math.max(m[1],b,v)]}return m},h)}return a&&a.length&&(h=a.reduce(function(m,g){return Z(g)?[Math.min(m[0],g),Math.max(m[1],g)]:m},h)),h},jV={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function a(l,c,u,d,h){if(typeof u!="function")throw new TypeError("The listener must be a function");var p=new i(u,d||l,h),y=r?r+c:c;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],p]:l._events[y].push(p):(l._events[y]=p,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=r?r+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var h=0,p=d.length,y=new Array(p);h<p;h++)y[h]=d[h].fn;return y},s.prototype.listenerCount=function(c){var u=r?r+c:c,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,u,d,h,p,y){var m=r?r+c:c;if(!this._events[m])return!1;var g=this._events[m],b=arguments.length,v,x;if(g.fn){switch(g.once&&this.removeListener(c,g.fn,void 0,!0),b){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,u),!0;case 3:return g.fn.call(g.context,u,d),!0;case 4:return g.fn.call(g.context,u,d,h),!0;case 5:return g.fn.call(g.context,u,d,h,p),!0;case 6:return g.fn.call(g.context,u,d,h,p,y),!0}for(x=1,v=new Array(b-1);x<b;x++)v[x-1]=arguments[x];g.fn.apply(g.context,v)}else{var S=g.length,w;for(x=0;x<S;x++)switch(g[x].once&&this.removeListener(c,g[x].fn,void 0,!0),b){case 1:g[x].fn.call(g[x].context);break;case 2:g[x].fn.call(g[x].context,u);break;case 3:g[x].fn.call(g[x].context,u,d);break;case 4:g[x].fn.call(g[x].context,u,d,h);break;default:if(!v)for(w=1,v=new Array(b-1);w<b;w++)v[w-1]=arguments[w];g[x].fn.apply(g[x].context,v)}}return!0},s.prototype.on=function(c,u,d){return a(this,c,u,d,!1)},s.prototype.once=function(c,u,d){return a(this,c,u,d,!0)},s.prototype.removeListener=function(c,u,d,h){var p=r?r+c:c;if(!this._events[p])return this;if(!u)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===u&&(!h||y.once)&&(!d||y.context===d)&&o(this,p);else{for(var m=0,g=[],b=y.length;m<b;m++)(y[m].fn!==u||h&&!y[m].once||d&&y[m].context!==d)&&g.push(y[m]);g.length?this._events[p]=g.length===1?g[0]:g:o(this,p)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&o(this,u)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(jV);var iCe=jV.exports;const aCe=Ye(iCe);var U0=new aCe,V0="recharts.syncMouseEvents";function ch(e){"@babel/helpers - typeof";return ch=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},ch(e)}function oCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sCe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,OV(n.key),n)}}function lCe(e,t,r){return t&&sCe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function z0(e,t,r){return t=OV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OV(e){var t=cCe(e,"string");return ch(t)=="symbol"?t:t+""}function cCe(e,t){if(ch(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ch(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uCe=function(){function e(){oCe(this,e),z0(this,"activeIndex",0),z0(this,"coordinateList",[]),z0(this,"layout","horizontal")}return lCe(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,l=r.layout,c=l===void 0?null:l,u=r.offset,d=u===void 0?null:u,h=r.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=c??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=p??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(r){if(this.coordinateList.length!==0)switch(r.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(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,u=((n=window)===null||n===void 0?void 0:n.scrollY)||0,d=a+l+c,h=o+this.offset.top+s/2+u;this.mouseHandlerCallback({pageX:d,pageY:h})}}}])}();function dCe(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&Z(n)&&Z(i))return!0}return!1}function fCe(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function PV(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=lt(t,r,n,i),s=lt(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function hCe(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.angle,h=lt(s,l,c,d),p=lt(s,l,u,d);n=h.x,i=h.y,a=p.x,o=p.y}else return PV(t);return[{x:n,y:i},{x:a,y:o}]}function uh(e){"@babel/helpers - typeof";return uh=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},uh(e)}function MR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MR(Object(r),!0).forEach(function(n){pCe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pCe(e,t,r){return t=mCe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mCe(e){var t=yCe(e,"string");return uh(t)=="symbol"?t:t+""}function yCe(e,t){if(uh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(uh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gCe(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,c=e.activeTooltipIndex,u=e.tooltipAxisBandSize,d=e.layout,h=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,m=Cs;if(h==="ScatterChart")y=o,m=AAe;else if(h==="BarChart")y=fCe(d,o,l,u),m=VA;else if(d==="radial"){var g=PV(o),b=g.cx,v=g.cy,x=g.radius,S=g.startAngle,w=g.endAngle;y={cx:b,cy:v,startAngle:S,endAngle:w,innerRadius:x,outerRadius:x},m=_U}else y={points:hCe(d,o,l)},m=Cs;var _=zp(zp(zp(zp({stroke:"#ccc",pointerEvents:"none"},l),y),ge(p,!1)),{},{payload:s,payloadIndex:c,className:Te("recharts-tooltip-cursor",p.className)});return k.isValidElement(p)?k.cloneElement(p,_):k.createElement(m,_)}var vCe=["item"],bCe=["children","className","width","height","style","compact","title","desc"];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 Jl(){return Jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jl.apply(this,arguments)}function DR(e,t){return SCe(e)||wCe(e,t)||NV(e,t)||xCe()}function xCe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 900In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wCe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function SCe(e){if(Array.isArray(e))return e}function LR(e,t){if(e==null)return{};var r=_Ce(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _Ce(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function kCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ACe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,RV(n.key),n)}}function TCe(e,t,r){return t&&ACe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ECe(e,t,r){return t=vg(t),jCe(e,CV()?Reflect.construct(t,r||[],vg(e).constructor):t.apply(e,r))}function jCe(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 OCe(e)}function OCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CV=function(){return!!e})()}function vg(e){return vg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vg(e)}function PCe(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&&jS(e,t)}function jS(e,t){return jS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jS(e,t)}function lu(e){return RCe(e)||NCe(e)||NV(e)||CCe()}function CCe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 901In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NV(e,t){if(e){if(typeof e=="string")return OS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OS(e,t)}}function NCe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RCe(e){if(Array.isArray(e))return OS(e)}function OS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function BR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function H(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BR(Object(r),!0).forEach(function(n){be(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function be(e,t,r){return t=RV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RV(e){var t=ICe(e,"string");return su(t)=="symbol"?t:t+""}function ICe(e,t){if(su(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(su(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $Ce={xAxis:["bottom","top"],yAxis:["left","right"]},MCe={width:"100%",height:"100%"},IV={x:0,y:0};function Wp(e){return e}var DCe=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},LCe=function(t,r,n,i){var a=r.find(function(u){return u&&u.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return H(H(H({},i),lt(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,c=i.angle;return H(H(H({},i),lt(i.cx,i.cy,l,c)),{},{angle:c,radius:l})}return IV},tb=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var c=l.props.data;return c&&c.length?[].concat(lu(s),lu(c)):s},[]);return o.length>0?o:t&&t.length&&Z(i)&&Z(a)?t.slice(i,a+1):[]};function $V(e){return e==="number"?[0,"auto"]:void 0}var PS=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=tb(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,c){var u,d=(u=c.props.data)!==null&&u!==void 0?u:r;d&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=d===void 0?s:d;h=gy(p,o.dataKey,i)}else h=d&&d[n]||s[n];return h?[].concat(lu(l),[gU(c,h)]):l},[])},FR=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=DCe(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,u=G1e(o,s,c,l);if(u>=0&&c){var d=c[u]&&c[u].value,h=PS(t,r,u,d),p=LCe(n,s,u,a);return{activeTooltipIndex:u,activeLabel:d,activePayload:h,activeCoordinate:p}}return null},BCe=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,u=t.layout,d=t.children,h=t.stackOffset,p=dU(u,a);return n.reduce(function(y,m){var g,b=m.type.defaultProps!==void 0?H(H({},m.type.defaultProps),m.props):m.props,v=b.type,x=b.dataKey,S=b.allowDataOverflow,w=b.allowDuplicatedCategory,_=b.scale,A=b.ticks,T=b.includeHidden,j=b[o];if(y[j])return y;var P=tb(t.data,{graphicalItems:i.filter(function(W){var X,le=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o];return le===j}),dataStartIndex:l,dataEndIndex:c}),C=P.length,O,$,N;dCe(b.domain,S,v)&&(O=z1(b.domain,null,S),p&&(v==="number"||_!=="auto")&&(N=Ld(P,x,"category")));var L=$V(v);if(!O||O.length===0){var D,B=(D=b.domain)!==null&&D!==void 0?D:L;if(x){if(O=Ld(P,x,v),v==="category"&&p){var R=Ble(O);w&&R?($=O,O=ig(0,C)):w||(O=o2(B,O,m).reduce(function(W,X){return W.indexOf(X)>=0?W:[].concat(lu(W),[X])},[]))}else if(v==="category")w?O=O.filter(function(W){return W!==""&&!Ae(W)}):O=o2(B,O,m).reduce(function(W,X){return W.indexOf(X)>=0||X===""||Ae(X)?W:[].concat(lu(W),[X])},[]);else if(v==="number"){var M=eSe(P,i.filter(function(W){var X,le,we=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o],Re="hide"in W.props?W.props.hide:(le=W.type.defaultProps)===null||le===void 0?void 0:le.hide;return we===j&&(T||!Re)}),x,a,u);M&&(O=M)}p&&(v==="number"||_!=="auto")&&(N=Ld(P,x,"category"))}else p?O=ig(0,C):s&&s[j]&&s[j].hasStack&&v==="number"?O=h==="expand"?[0,1]:yU(s[j].stackGroups,l,c):O=uU(P,i.filter(function(W){var X=o in W.props?W.props[o]:W.type.defaultProps[o],le="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return X===j&&(T||!le)}),v,u,!0);if(v==="number")O=ES(d,O,j,a,A),B&&(O=z1(B,O,S));else if(v==="category"&&B){var U=B,Y=O.every(function(W){return U.indexOf(W)>=0});Y&&(O=U)}}return H(H({},y),{},be({},j,H(H({},b),{},{axisType:a,domain:O,categoricalDomain:N,duplicateDomain:$,originalDomain:(g=b.domain)!==null&&g!==void 0?g:L,isCategorical:p,layout:u})))},{})},FCe=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,u=t.layout,d=t.children,h=tb(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:c}),p=h.length,y=dU(u,a),m=-1;return n.reduce(function(g,b){var v=b.type.defaultProps!==void 0?H(H({},b.type.defaultProps),b.props):b.props,x=v[o],S=$V("number");if(!g[x]){m++;var w;return y?w=ig(0,p):s&&s[x]&&s[x].hasStack?(w=yU(s[x].stackGroups,l,c),w=ES(d,w,x,a)):(w=z1(S,uU(h,n.filter(function(_){var A,T,j=o in _.props?_.props[o]:(A=_.type.defaultProps)===null||A===void 0?void 0:A[o],P="hide"in _.props?_.props.hide:(T=_.type.defaultProps)===null||T===void 0?void 0:T.hide;return j===x&&!P}),"number",u),i.defaultProps.allowDataOverflow),w=ES(d,w,x,a)),H(H({},g),{},be({},x,H(H({axisType:a},i.defaultProps),{},{hide:!0,orientation:on($Ce,"".concat(a,".").concat(m%2),null),domain:w,originalDomain:S,isCategorical:y,layout:u})))}return g},{})},UCe=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,u=t.children,d="".concat(i,"Id"),h=sn(u,a),p={};return h&&h.length?p=BCe(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):o&&o.length&&(p=FCe(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:d,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),p},VCe=function(t){var r=Ga(t),n=la(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:mA(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:qy(r,n)}},UR=function(t){var r=t.children,n=t.defaultShowTooltip,i=Zr(r,Zc),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},zCe=function(t){return!t||!t.length?!1:t.some(function(r){var n=ua(r&&r.type);return n&&n.indexOf("Bar")>=0})},VR=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"}},WCe=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,c=n.width,u=n.height,d=n.children,h=n.margin||{},p=Zr(d,Zc),y=Zr(d,dc),m=Object.keys(l).reduce(function(w,_){var A=l[_],T=A.orientation;return!A.mirror&&!A.hide?H(H({},w),{},be({},T,w[T]+A.width)):w},{left:h.left||0,right:h.right||0}),g=Object.keys(o).reduce(function(w,_){var A=o[_],T=A.orientation;return!A.mirror&&!A.hide?H(H({},w),{},be({},T,on(w,"".concat(T))+A.height)):w},{top:h.top||0,bottom:h.bottom||0}),b=H(H({},g),m),v=b.bottom;p&&(b.bottom+=p.props.height||Zc.defaultProps.height),y&&r&&(b=J1e(b,i,n,r));var x=c-b.left-b.right,S=u-b.top-b.bottom;return H(H({brushBottom:v},b),{},{width:Math.max(x,0),height:Math.max(S,0)})},HCe=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},rb=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,c=t.legendContent,u=t.formatAxisMap,d=t.defaultProps,h=function(b,v){var x=v.graphicalItems,S=v.stackGroups,w=v.offset,_=v.updateId,A=v.dataStartIndex,T=v.dataEndIndex,j=b.barSize,P=b.layout,C=b.barGap,O=b.barCategoryGap,$=b.maxBarSize,N=VR(P),L=N.numericAxisName,D=N.cateAxisName,B=zCe(x),R=[];return x.forEach(function(M,U){var Y=tb(b.data,{graphicalItems:[M],dataStartIndex:A,dataEndIndex:T}),W=M.type.defaultProps!==void 0?H(H({},M.type.defaultProps),M.props):M.props,X=W.dataKey,le=W.maxBarSize,we=W["".concat(L,"Id")],Re=W["".concat(D,"Id")],te={},ke=l.reduce(function(F,z){var re=v["".concat(z.axisType,"Map")],ne=W["".concat(z.axisType,"Id")];re&&re[ne]||z.axisType==="zAxis"||Ks();var Q=re[ne];return H(H({},F),{},be(be({},z.axisType,Q),"".concat(z.axisType,"Ticks"),la(Q)))},te),G=ke[D],ie=ke["".concat(D,"Ticks")],ae=S&&S[we]&&S[we].hasStack&&cSe(M,S[we].stackGroups),V=ua(M.type).indexOf("Bar")>=0,Ce=qy(G,ie),Se=[],We=B&&X1e({barSize:j,stackGroups:S,totalSize:HCe(ke,D)});if(V){var He,mt,xr=Ae(le)?$:le,ur=(He=(mt=qy(G,ie,!0))!==null&&mt!==void 0?mt:xr)!==null&&He!==void 0?He:0;Se=Z1e({barGap:C,barCategoryGap:O,bandSize:ur!==Ce?ur:Ce,sizeList:We[Re],maxBarSize:xr}),ur!==Ce&&(Se=Se.map(function(F){return H(H({},F),{},{position:H(H({},F.position),{},{offset:F.position.offset-ur/2})})}))}var I=M&&M.type&&M.type.getComposedData;I&&R.push({props:H(H({},I(H(H({},ke),{},{displayedData:Y,props:b,dataKey:X,item:M,bandSize:Ce,barPosition:Se,offset:w,stackedData:ae,layout:P,dataStartIndex:A,dataEndIndex:T}))),{},be(be(be({key:M.key||"item-".concat(U)},L,ke[L]),D,ke[D]),"animationId",_)),childIndex:Zle(M,b.children),item:M})}),R},p=function(b,v){var x=b.props,S=b.dataStartIndex,w=b.dataEndIndex,_=b.updateId;if(!eC({props:x}))return null;var A=x.children,T=x.layout,j=x.stackOffset,P=x.data,C=x.reverseStackOrder,O=VR(T),$=O.numericAxisName,N=O.cateAxisName,L=sn(A,n),D=sSe(P,L,"".concat($,"Id"),"".concat(N,"Id"),j,C),B=l.reduce(function(W,X){var le="".concat(X.axisType,"Map");return H(H({},W),{},be({},le,UCe(x,H(H({},X),{},{graphicalItems:L,stackGroups:X.axisType===$&&D,dataStartIndex:S,dataEndIndex:w}))))},{}),R=WCe(H(H({},B),{},{props:x,graphicalItems:L}),v==null?void 0:v.legendBBox);Object.keys(B).forEach(function(W){B[W]=u(x,B[W],R,W.replace("Map",""),r)});var M=B["".concat(N,"Map")],U=VCe(M),Y=h(x,H(H({},B),{},{dataStartIndex:S,dataEndIndex:w,updateId:_,graphicalItems:L,stackGroups:D,offset:R}));return H(H({formattedGraphicalItems:Y,graphicalItems:L,offset:R,stackGroups:D},U),B)},y=function(g){function b(v){var x,S,w;return kCe(this,b),w=ECe(this,b,[v]),be(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),be(w,"accessibilityManager",new uCe),be(w,"handleLegendBBoxUpdate",function(_){if(_){var A=w.state,T=A.dataStartIndex,j=A.dataEndIndex,P=A.updateId;w.setState(H({legendBBox:_},p({props:w.props,dataStartIndex:T,dataEndIndex:j,updateId:P},H(H({},w.state),{},{legendBBox:_}))))}}),be(w,"handleReceiveSyncEvent",function(_,A,T){if(w.props.syncId===_){if(T===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(A)}}),be(w,"handleBrushChange",function(_){var A=_.startIndex,T=_.endIndex;if(A!==w.state.dataStartIndex||T!==w.state.dataEndIndex){var j=w.state.updateId;w.setState(function(){return H({dataStartIndex:A,dataEndIndex:T},p({props:w.props,dataStartIndex:A,dataEndIndex:T,updateId:j},w.state))}),w.triggerSyncEvent({dataStartIndex:A,dataEndIndex:T})}}),be(w,"handleMouseEnter",function(_){var A=w.getMouseInfo(_);if(A){var T=H(H({},A),{},{isTooltipActive:!0});w.setState(T),w.triggerSyncEvent(T);var j=w.props.onMouseEnter;xe(j)&&j(T,_)}}),be(w,"triggeredAfterMouseMove",function(_){var A=w.getMouseInfo(_),T=A?H(H({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(T),w.triggerSyncEvent(T);var j=w.props.onMouseMove;xe(j)&&j(T,_)}),be(w,"handleItemMouseEnter",function(_){w.setState(function(){return{isTooltipActive:!0,activeItem:_,activePayload:_.tooltipPayload,activeCoordinate:_.tooltipPosition||{x:_.cx,y:_.cy}}})}),be(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),be(w,"handleMouseMove",function(_){_.persist(),w.throttleTriggeredAfterMouseMove(_)}),be(w,"handleMouseLeave",function(_){w.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};w.setState(A),w.triggerSyncEvent(A);var T=w.props.onMouseLeave;xe(T)&&T(A,_)}),be(w,"handleOuterEvent",function(_){var A=Xle(_),T=on(w.props,"".concat(A));if(A&&xe(T)){var j,P;/.*touch.*/i.test(A)?P=w.getMouseInfo(_.changedTouches[0]):P=w.getMouseInfo(_),T((j=P)!==null&&j!==void 0?j:{},_)}}),be(w,"handleClick",function(_){var A=w.getMouseInfo(_);if(A){var T=H(H({},A),{},{isTooltipActive:!0});w.setState(T),w.triggerSyncEvent(T);var j=w.props.onClick;xe(j)&&j(T,_)}}),be(w,"handleMouseDown",function(_){var A=w.props.onMouseDown;if(xe(A)){var T=w.getMouseInfo(_);A(T,_)}}),be(w,"handleMouseUp",function(_){var A=w.props.onMouseUp;if(xe(A)){var T=w.getMouseInfo(_);A(T,_)}}),be(w,"handleTouchMove",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(_.changedTouches[0])}),be(w,"handleTouchStart",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&w.handleMouseDown(_.changedTouches[0])}),be(w,"handleTouchEnd",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&w.handleMouseUp(_.changedTouches[0])}),be(w,"handleDoubleClick",function(_){var A=w.props.onDoubleClick;if(xe(A)){var T=w.getMouseInfo(_);A(T,_)}}),be(w,"handleContextMenu",function(_){var A=w.props.onContextMenu;if(xe(A)){var T=w.getMouseInfo(_);A(T,_)}}),be(w,"triggerSyncEvent",function(_){w.props.syncId!==void 0&&U0.emit(V0,w.props.syncId,_,w.eventEmitterSymbol)}),be(w,"applySyncEvent",function(_){var A=w.props,T=A.layout,j=A.syncMethod,P=w.state.updateId,C=_.dataStartIndex,O=_.dataEndIndex;if(_.dataStartIndex!==void 0||_.dataEndIndex!==void 0)w.setState(H({dataStartIndex:C,dataEndIndex:O},p({props:w.props,dataStartIndex:C,dataEndIndex:O,updateId:P},w.state)));else if(_.activeTooltipIndex!==void 0){var $=_.chartX,N=_.chartY,L=_.activeTooltipIndex,D=w.state,B=D.offset,R=D.tooltipTicks;if(!B)return;if(typeof j=="function")L=j(R,_);else if(j==="value"){L=-1;for(var M=0;M<R.length;M++)if(R[M].value===_.activeLabel){L=M;break}}var U=H(H({},B),{},{x:B.left,y:B.top}),Y=Math.min($,U.x+U.width),W=Math.min(N,U.y+U.height),X=R[L]&&R[L].value,le=PS(w.state,w.props.data,L),we=R[L]?{x:T==="horizontal"?R[L].coordinate:Y,y:T==="horizontal"?W:R[L].coordinate}:IV;w.setState(H(H({},_),{},{activeLabel:X,activeCoordinate:we,activePayload:le,activeTooltipIndex:L}))}else w.setState(_)}),be(w,"renderCursor",function(_){var A,T=w.state,j=T.isTooltipActive,P=T.activeCoordinate,C=T.activePayload,O=T.offset,$=T.activeTooltipIndex,N=T.tooltipAxisBandSize,L=w.getTooltipEventType(),D=(A=_.props.active)!==null&&A!==void 0?A:j,B=w.props.layout,R=_.key||"_recharts-cursor";return E.createElement(gCe,{key:R,activeCoordinate:P,activePayload:C,activeTooltipIndex:$,chartName:r,element:_,isActive:D,layout:B,offset:O,tooltipAxisBandSize:N,tooltipEventType:L})}),be(w,"renderPolarAxis",function(_,A,T){var j=on(_,"type.axisType"),P=on(w.state,"".concat(j,"Map")),C=_.type.defaultProps,O=C!==void 0?H(H({},C),_.props):_.props,$=P&&P[O["".concat(j,"Id")]];return k.cloneElement(_,H(H({},$),{},{className:Te(j,$.className),key:_.key||"".concat(A,"-").concat(T),ticks:la($,!0)}))}),be(w,"renderPolarGrid",function(_){var A=_.props,T=A.radialLines,j=A.polarAngles,P=A.polarRadius,C=w.state,O=C.radiusAxisMap,$=C.angleAxisMap,N=Ga(O),L=Ga($),D=L.cx,B=L.cy,R=L.innerRadius,M=L.outerRadius;return k.cloneElement(_,{polarAngles:Array.isArray(j)?j:la(L,!0).map(function(U){return U.coordinate}),polarRadius:Array.isArray(P)?P:la(N,!0).map(function(U){return U.coordinate}),cx:D,cy:B,innerRadius:R,outerRadius:M,key:_.key||"polar-grid",radialLines:T})}),be(w,"renderLegend",function(){var _=w.state.formattedGraphicalItems,A=w.props,T=A.children,j=A.width,P=A.height,C=w.props.margin||{},O=j-(C.left||0)-(C.right||0),$=lU({children:T,formattedGraphicalItems:_,legendWidth:O,legendContent:c});if(!$)return null;var N=$.item,L=LR($,vCe);return k.cloneElement(N,H(H({},L),{},{chartWidth:j,chartHeight:P,margin:C,onBBoxUpdate:w.handleLegendBBoxUpdate}))}),be(w,"renderTooltip",function(){var _,A=w.props,T=A.children,j=A.accessibilityLayer,P=Zr(T,yn);if(!P)return null;var C=w.state,O=C.isTooltipActive,$=C.activeCoordinate,N=C.activePayload,L=C.activeLabel,D=C.offset,B=(_=P.props.active)!==null&&_!==void 0?_:O;return k.cloneElement(P,{viewBox:H(H({},D),{},{x:D.left,y:D.top}),active:B,label:L,payload:B?N:[],coordinate:$,accessibilityLayer:j})}),be(w,"renderBrush",function(_){var A=w.props,T=A.margin,j=A.data,P=w.state,C=P.offset,O=P.dataStartIndex,$=P.dataEndIndex,N=P.updateId;return k.cloneElement(_,{key:_.key||"_recharts-brush",onChange:Bp(w.handleBrushChange,_.props.onChange),data:j,x:Z(_.props.x)?_.props.x:C.left,y:Z(_.props.y)?_.props.y:C.top+C.height+C.brushBottom-(T.bottom||0),width:Z(_.props.width)?_.props.width:C.width,startIndex:O,endIndex:$,updateId:"brush-".concat(N)})}),be(w,"renderReferenceElement",function(_,A,T){if(!_)return null;var j=w,P=j.clipPathId,C=w.state,O=C.xAxisMap,$=C.yAxisMap,N=C.offset,L=_.type.defaultProps||{},D=_.props,B=D.xAxisId,R=B===void 0?L.xAxisId:B,M=D.yAxisId,U=M===void 0?L.yAxisId:M;return k.cloneElement(_,{key:_.key||"".concat(A,"-").concat(T),xAxis:O[R],yAxis:$[U],viewBox:{x:N.left,y:N.top,width:N.width,height:N.height},clipPathId:P})}),be(w,"renderActivePoints",function(_){var A=_.item,T=_.activePoint,j=_.basePoint,P=_.childIndex,C=_.isRange,O=[],$=A.props.key,N=A.item.type.defaultProps!==void 0?H(H({},A.item.type.defaultProps),A.item.props):A.item.props,L=N.activeDot,D=N.dataKey,B=H(H({index:P,dataKey:D,cx:T.x,cy:T.y,r:4,fill:UA(A.item),strokeWidth:2,stroke:"#fff",payload:T.payload,value:T.value},ge(L,!1)),vy(L));return O.push(b.renderActiveDot(L,B,"".concat($,"-activePoint-").concat(P))),j?O.push(b.renderActiveDot(L,H(H({},B),{},{cx:j.x,cy:j.y}),"".concat($,"-basePoint-").concat(P))):C&&O.push(null),O}),be(w,"renderGraphicChild",function(_,A,T){var j=w.filterFormatItem(_,A,T);if(!j)return null;var P=w.getTooltipEventType(),C=w.state,O=C.isTooltipActive,$=C.tooltipAxis,N=C.activeTooltipIndex,L=C.activeLabel,D=w.props.children,B=Zr(D,yn),R=j.props,M=R.points,U=R.isRange,Y=R.baseLine,W=j.item.type.defaultProps!==void 0?H(H({},j.item.type.defaultProps),j.item.props):j.item.props,X=W.activeDot,le=W.hide,we=W.activeBar,Re=W.activeShape,te=!!(!le&&O&&B&&(X||we||Re)),ke={};P!=="axis"&&B&&B.props.trigger==="click"?ke={onClick:Bp(w.handleItemMouseEnter,_.props.onClick)}:P!=="axis"&&(ke={onMouseLeave:Bp(w.handleItemMouseLeave,_.props.onMouseLeave),onMouseEnter:Bp(w.handleItemMouseEnter,_.props.onMouseEnter)});var G=k.cloneElement(_,H(H({},j.props),ke));function ie(z){return typeof $.dataKey=="function"?$.dataKey(z.payload):null}if(te)if(N>=0){var ae,V;if($.dataKey&&!$.allowDuplicatedCategory){var Ce=typeof $.dataKey=="function"?ie:"payload.".concat($.dataKey.toString());ae=gy(M,Ce,L),V=U&&Y&&gy(Y,Ce,L)}else ae=M==null?void 0:M[N],V=U&&Y&&Y[N];if(Re||we){var Se=_.props.activeIndex!==void 0?_.props.activeIndex:N;return[k.cloneElement(_,H(H(H({},j.props),ke),{},{activeIndex:Se})),null,null]}if(!Ae(ae))return[G].concat(lu(w.renderActivePoints({item:j,activePoint:ae,basePoint:V,childIndex:N,isRange:U})))}else{var We,He=(We=w.getItemByXY(w.state.activeCoordinate))!==null&&We!==void 0?We:{graphicalItem:G},mt=He.graphicalItem,xr=mt.item,ur=xr===void 0?_:xr,I=mt.childIndex,F=H(H(H({},j.props),ke),{},{activeIndex:I});return[k.cloneElement(ur,F),null,null]}return U?[G,null,null]:[G,null]}),be(w,"renderCustomized",function(_,A,T){return k.cloneElement(_,H(H({key:"recharts-customized-".concat(T)},w.props),w.state))}),be(w,"renderMap",{CartesianGrid:{handler:Wp,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:Wp},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:Wp},YAxis:{handler:Wp},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((x=v.id)!==null&&x!==void 0?x:rl("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=sF(w.triggeredAfterMouseMove,(S=v.throttleDelay)!==null&&S!==void 0?S:1e3/60),w.state={},w}return PCe(b,g),TCe(b,[{key:"componentDidMount",value:function(){var x,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,S=x.children,w=x.data,_=x.height,A=x.layout,T=Zr(S,yn);if(T){var j=T.props.defaultIndex;if(!(typeof j!="number"||j<0||j>this.state.tooltipTicks.length-1)){var P=this.state.tooltipTicks[j]&&this.state.tooltipTicks[j].value,C=PS(this.state,w,j,P),O=this.state.tooltipTicks[j].coordinate,$=(this.state.offset.top+_)/2,N=A==="horizontal",L=N?{x:O,y:$}:{y:O,x:$},D=this.state.formattedGraphicalItems.find(function(R){var M=R.item;return M.type.name==="Scatter"});D&&(L=H(H({},L),D.props.points[j].tooltipPosition),C=D.props.points[j].tooltipPayload);var B={activeTooltipIndex:j,isTooltipActive:!0,activeLabel:P,activePayload:C,activeCoordinate:L};this.setState(B),this.renderCursor(T),this.accessibilityManager.setIndex(j)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var w,_;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0}})}return null}},{key:"componentDidUpdate",value:function(x){i1([Zr(x.children,yn)],[Zr(this.props.children,yn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Zr(this.props.children,yn);if(x&&typeof x.props.shared=="boolean"){var S=x.props.shared?"axis":"item";return s.indexOf(S)>=0?S:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var S=this.container,w=S.getBoundingClientRect(),_=_be(w),A={chartX:Math.round(x.pageX-_.left),chartY:Math.round(x.pageY-_.top)},T=w.width/S.offsetWidth||1,j=this.inRange(A.chartX,A.chartY,T);if(!j)return null;var P=this.state,C=P.xAxisMap,O=P.yAxisMap,$=this.getTooltipEventType(),N=FR(this.state,this.props.data,this.props.layout,j);if($!=="axis"&&C&&O){var L=Ga(C).scale,D=Ga(O).scale,B=L&&L.invert?L.invert(A.chartX):null,R=D&&D.invert?D.invert(A.chartY):null;return H(H({},A),{},{xValue:B,yValue:R},N)}return N?H(H({},A),N):null}},{key:"inRange",value:function(x,S){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,_=this.props.layout,A=x/w,T=S/w;if(_==="horizontal"||_==="vertical"){var j=this.state.offset,P=A>=j.left&&A<=j.left+j.width&&T>=j.top&&T<=j.top+j.height;return P?{x:A,y:T}:null}var C=this.state,O=C.angleAxisMap,$=C.radiusAxisMap;if(O&&$){var N=Ga(O);return c2({x:A,y:T},N)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,S=this.getTooltipEventType(),w=Zr(x,yn),_={};w&&S==="axis"&&(w.props.trigger==="click"?_={onClick:this.handleClick}:_={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 A=vy(this.props,this.handleOuterEvent);return H(H({},A),_)}},{key:"addListener",value:function(){U0.on(V0,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){U0.removeListener(V0,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,S,w){for(var _=this.state.formattedGraphicalItems,A=0,T=_.length;A<T;A++){var j=_[A];if(j.item===x||j.props.key===x.key||S===ua(j.item.type)&&w===j.childIndex)return j}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,S=this.state.offset,w=S.left,_=S.top,A=S.height,T=S.width;return E.createElement("defs",null,E.createElement("clipPath",{id:x},E.createElement("rect",{x:w,y:_,height:A,width:T})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(S,w){var _=DR(w,2),A=_[0],T=_[1];return H(H({},S),{},be({},A,T.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(S,w){var _=DR(w,2),A=_[0],T=_[1];return H(H({},S),{},be({},A,T.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[x])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(x){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[x])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(x){var S=this.state,w=S.formattedGraphicalItems,_=S.activeItem;if(w&&w.length)for(var A=0,T=w.length;A<T;A++){var j=w[A],P=j.props,C=j.item,O=C.type.defaultProps!==void 0?H(H({},C.type.defaultProps),C.props):C.props,$=ua(C.type);if($==="Bar"){var N=(P.data||[]).find(function(R){return aAe(x,R)});if(N)return{graphicalItem:j,payload:N}}else if($==="RadialBar"){var L=(P.data||[]).find(function(R){return c2(x,R)});if(L)return{graphicalItem:j,payload:L}}else if(Yv(j,_)||Gv(j,_)||ih(j,_)){var D=KTe({graphicalItem:j,activeTooltipItem:_,itemData:O.data}),B=O.activeIndex===void 0?D:O.activeIndex;return{graphicalItem:H(H({},j),{},{childIndex:B}),payload:ih(j,_)?O.data[D]:j.props.data[D]}}}return null}},{key:"render",value:function(){var x=this;if(!eC(this))return null;var S=this.props,w=S.children,_=S.className,A=S.width,T=S.height,j=S.style,P=S.compact,C=S.title,O=S.desc,$=LR(S,bCe),N=ge($,!1);if(P)return E.createElement(gR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},E.createElement(o1,Jl({},N,{width:A,height:T,title:C,desc:O}),this.renderClipPath(),rC(w,this.renderMap)));if(this.props.accessibilityLayer){var L,D;N.tabIndex=(L=this.props.tabIndex)!==null&&L!==void 0?L:0,N.role=(D=this.props.role)!==null&&D!==void 0?D:"application",N.onKeyDown=function(R){x.accessibilityManager.keyboardEvent(R)},N.onFocus=function(){x.accessibilityManager.focus()}}var B=this.parseEventsOfWrapper();return E.createElement(gR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},E.createElement("div",Jl({className:Te("recharts-wrapper",_),style:H({position:"relative",curs
901or:"default",width:A,height:T},j)},B,{ref:function(M){x.container=M}}),E.createElement(o1,Jl({},N,{width:A,height:T,title:C,desc:O,style:MCe}),this.renderClipPath(),rC(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(k.Component);be(y,"displayName",r),be(y,"defaultProps",H({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),be(y,"getDerivedStateFromProps",function(g,b){var v=g.dataKey,x=g.data,S=g.children,w=g.width,_=g.height,A=g.layout,T=g.stackOffset,j=g.margin,P=b.dataStartIndex,C=b.dataEndIndex;if(b.updateId===void 0){var O=UR(g);return H(H(H({},O),{},{updateId:0},p(H(H({props:g},O),{},{updateId:0}),b)),{},{prevDataKey:v,prevData:x,prevWidth:w,prevHeight:_,prevLayout:A,prevStackOffset:T,prevMargin:j,prevChildren:S})}if(v!==b.prevDataKey||x!==b.prevData||w!==b.prevWidth||_!==b.prevHeight||A!==b.prevLayout||T!==b.prevStackOffset||!uc(j,b.prevMargin)){var $=UR(g),N={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},L=H(H({},FR(b,x,A)),{},{updateId:b.updateId+1}),D=H(H(H({},$),N),L);return H(H(H({},D),p(H({props:g},D),b)),{},{prevDataKey:v,prevData:x,prevWidth:w,prevHeight:_,prevLayout:A,prevStackOffset:T,prevMargin:j,prevChildren:S})}if(!i1(S,b.prevChildren)){var B,R,M,U,Y=Zr(S,Zc),W=Y&&(B=(R=Y.props)===null||R===void 0?void 0:R.startIndex)!==null&&B!==void 0?B:P,X=Y&&(M=(U=Y.props)===null||U===void 0?void 0:U.endIndex)!==null&&M!==void 0?M:C,le=W!==P||X!==C,we=!Ae(x),Re=we&&!le?b.updateId:b.updateId+1;return H(H({updateId:Re},p(H(H({props:g},b),{},{updateId:Re,dataStartIndex:W,dataEndIndex:X}),b)),{},{prevChildren:S,dataStartIndex:W,dataEndIndex:X})}return null}),be(y,"renderActiveDot",function(g,b,v){var x;return k.isValidElement(g)?x=k.cloneElement(g,b):xe(g)?x=g(b):x=E.createElement(Bh,b),E.createElement($e,{className:"recharts-active-dot",key:v},x)});var m=k.forwardRef(function(b,v){return E.createElement(y,Jl({},b,{ref:v}))});return m.displayName=y.displayName,m},qCe=rb({chartName:"LineChart",GraphicalChild:Fh,axisComponents:[{axisType:"xAxis",AxisComp:xo},{axisType:"yAxis",AxisComp:wo}],formatAxisMap:zA}),KCe=rb({chartName:"BarChart",GraphicalChild:ol,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:xo},{axisType:"yAxis",AxisComp:wo}],formatAxisMap:zA}),YCe=rb({chartName:"PieChart",GraphicalChild:ja,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Kv},{axisType:"radiusAxis",AxisComp:Hv}],formatAxisMap:bSe,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),GCe=rb({chartName:"AreaChart",GraphicalChild:zo,axisComponents:[{axisType:"xAxis",AxisComp:xo},{axisType:"yAxis",AxisComp:wo}],formatAxisMap:zA});const XCe=[{name:"Mon",utilization:62},{name:"Tue",utilization:78},{name:"Wed",utilization:85},{name:"Thu",utilization:71},{name:"Fri",utilization:90},{name:"Sat",utilization:95},{name:"Sun",utilization:68}],W0=[{name:"Memberships",value:42},{name:"Lessons",value:22},{name:"Events",value:16},{name:"Retail & F&B",value:12},{name:"Court Rentals",value:8}],ZCe=[{month:"Sep",visits:1820},{month:"Oct",visits:2140},{month:"Nov",visits:2380},{month:"Dec",visits:1950},{month:"Jan",visits:2560},{month:"Feb",visits:2780}],JCe=[{month:"Sep",members:412},{month:"Oct",members:438},{month:"Nov",members:461},{month:"Dec",members:455},{month:"Jan",members:489},{month:"Feb",members:524}],H0=["hsl(var(--accent))","hsl(var(--primary))","hsl(210 60% 65%)","hsl(170 50% 55%)","hsl(260 40% 65%)"],ad="rounded-xl border border-border bg-background p-5 shadow-sm",QCe=()=>f.jsxs("div",{className:"bg-muted/30 p-3 md:p-5",children:[f.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-2 md:gap-3 mb-3 md:mb-4",children:[{label:"Active Members",value:"524",change:"+7.2%"},{label:"Monthly Revenue",value:"$86.4k",change:"+12.1%"},{label:"Court Utilization",value:"78%",change:"+3.5%"},{label:"Avg. Visits / Member",value:"5.3",change:"+0.8"}].map(e=>f.jsxs("div",{className:ad,children:[f.jsx("p",{className:"text-[10px] md:text-xs text-muted-foreground font-medium mb-1 truncate",children:e.label}),f.jsx("p",{className:"text-lg md:text-2xl font-bold text-foreground leading-none",children:e.value}),f.jsx("p",{className:"text-[10px] md:text-xs font-semibold text-accent mt-1",children:e.change})]},e.label))}),f.jsxs("div",{className:"grid md:grid-cols-2 gap-2 md:gap-4",children:[f.jsxs("div",{className:ad,children:[f.jsx("p",{className:"text-xs md:text-sm font-semibold text-foreground mb-3",children:"Court Utilization by Day"}),f.jsx(Ip,{width:"100%",height:160,children:f.jsxs(KCe,{data:XCe,barSize:20,children:[f.jsx(gm,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),f.jsx(xo,{dataKey:"name",tick:{fontSize:10,fill:"hsl(var(--muted-foreground))"}
901,axisLine:!1,tickLine:!1}),f.jsx(wo,{domain:[0,100],tick:{fontSize:10,fill:"hsl(var(--muted-foreground))"},axisLine:!1,tickLine:!1,unit:"%"}),f.jsx(yn,{contentStyle:{borderRadius:8,border:"1px solid hsl(var(--border))",fontSize:11},formatter:e=>[`${e}%`,"Utilization"]}),f.jsx(ol,{dataKey:"utilization",fill:"hsl(var(--accent))",radius:[4,4,0,0]})]})})]}),f.jsxs("div",{className:ad,children:[f.jsx("p",{className:"text-xs md:text-sm font-semibold text-foreground mb-3",children:"Revenue Breakdown"}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Ip,{width:"50%",height:160,children:f.jsx(YCe,{children:f.jsx(ja,{data:W0,cx:"50%",cy:"50%",innerRadius:35,outerRadius:60,paddingAngle:3,dataKey:"value",strokeWidth:0,children:W0.map((e,t)=>f.jsx(Rv,{fill:H0[t%H0.length]},t))})})}),f.jsx("div",{className:"flex-1 space-y-1.5",children:W0.map((e,t)=>f.jsxs("div",{className:"flex items-center gap-2 text-[10px] md:text-xs",children:[f.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{backgroundColor:H0[t]}}),f.jsx("span",{className:"text-muted-foreground truncate",children:e.name}),f.jsxs("span",{className:"ml-auto font-semibold text-foreground",children:[e.value,"%"]})]},e.name))})]})]}),f.jsxs("div",{className:ad,children:[f.jsx("p",{className:"text-xs md:text-sm font-semibold text-foreground mb-3",children:"Monthly Member Visits"}),f.jsx(Ip,{width:"100%",height:160,children:f.jsxs(GCe,{data:ZCe,children:[f.jsx("defs",{children:f.jsxs("linearGradient",{id:"visitGrad",x1:"0",y1:"0",x2:"0",y2:"1",children:[f.jsx("stop",{offset:"0%",stopColor:"hsl(var(--accent))",stopOpacity:.3}),f.jsx("stop",{offset:"100%",stopColor:"hsl(var(--accent))",stopOpacity:0})]})}),f.jsx(gm,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),f.jsx(xo,{dataKey:"month",tick:{fontSize:10,fill:"hsl(var(--muted-foreground))"},axisLine:!1,tickLine:!1}),f.jsx(wo,{tick:{fontSize:10,fill:"hsl(var(--muted-foreground))"},axisLine:!1,tickLine:!1}),f.jsx(yn,{contentStyle:{borderRadius:8,border:"1px solid hsl(var(--border))",fontSize:11}}),f.jsx(zo,{type:"monotone",dataKey:"visits",stroke:"hsl(var(--accent))",fill:"url(#visitGrad)",strokeWidth:2})]})})]}),f.jsxs("div",{className:ad,children:[f.jsx("p",{className:"text-xs md:text-sm font-semibold text-foreground mb-3",children:"Member Growth"}),f.jsx(Ip,{width:"100%",height:160,children:f.jsxs(qCe,{data:JCe,children:[f.jsx(gm,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),f.jsx(xo,{dataKey:"month",tick:{fontSize:10,fill:"hsl(var(--muted-foreground))"},axisLine:!1,tickLine:!1}),f.jsx(wo,{tick:{fontSize:10,fill:"hsl(var(--muted-foreground))"},axisLine:!1,tickLine:!1}),f.jsx(yn,{contentStyle:{borderRadius:8,border:"1px solid hsl(var(--border))",fontSize:11}}),f.jsx(Fh,{type:"monotone",dataKey:"members",stroke:"hsl(var(--primary))",strokeWidth:2.5,dot:{r:3,fill:"hsl(var(--primary))"}})]})})]})]})]}),eNe=()=>f.jsx("section",{className:"pb-16 relative overflow-hidden bg-white",children:f.jsx("div",{className:"container mx-auto px-6 max-w-5xl",children:f.jsx(q.div,{initial:{opacity:0,y:32},animate:{opacity:1,y:0},transition:{duration:.7,delay:.3},children:f.jsxs("div",{className:"relative",children:[f.jsxs("div",{className:"rounded-t-2xl border-[6px] border-b-0 border-[#2a2a2e] bg-[#2a2a2e] pt-3 px-1",children:[f.jsxs("div",{className:"flex items-center gap-1.5 px-3 pb-2",children:[f.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-[#ff5f57]"}),f.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-[#ffbd2e]"}),f.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-[#28c840]"}),f.jsx("div",{className:"ml-3 flex-1 h-5 rounded-md bg-[#3a3a3e]"})]}),f.jsx("div",{className:"rounded-t-sm overflow-hidden bg-background",children:f.jsx(QCe,{})})]}),f.jsx("div",{className:"h-5 bg-[#2a2a2e] rounded-b-lg"}),f.jsx("div",{className:"flex justify-center",children:f.jsx("div",{className:"w-24 h-6 bg-gradient-to-b from-[#2a2a2e] to-[#3a3a3e] rounded-b-lg"})}),f.jsx("div",{className:"flex justify-center -mt-0.5",children:f.jsx("div",{className:"w-40 h-2 bg-[#3a3a3e] rounded-full"})})]})})})}),tNe=[{key:"financial",label:"Financial"},{key:"operational",label:"Operational"},{key:"engagement",label:"Engagement"}],rNe={hidden:{},show:{transition:{staggerChildren:.07}}},nNe={hidden:{opacity:0,y:16,filter:"blur(4px)"},show:{opacity:1,y:0,filter:"blur(0px)",transition:{duration:.45,ease:[.16,1,.3,1]}}},iNe=({items:e})=>{const[t,r]=k.useState("financial"),n=e.filter(i=>i.category===t);return f.jsxs("section",{className:"section-padding section-alt relative overflow-hidden",children:[f.jsx("div",{className:"glow-blob top-[-5%] left-[-5%] w-[400px] h-[400px] bg-accent/10 blur-[100px]"}),f.jsxs("div",{className:"container mx-auto px-6 max-w-5xl relative z-10",children:[f.jsx(q.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"flex gap-2 mb-10 justify-center flex-wrap",children:tNe.map(i=>{const a=i.key===t;return f.jsx("button",{onClick:()=>r(i.key),className:`relative rounded-full px-6 py-2.5 text-sm font-semibold transition-all duration-200 active:scale-[0.97] ${a?"bg-accent text-accent-foreground shadow-md":"bg-muted/60 text-muted-foreground hover:bg-muted hover:text-foreground"}`,children:i.label},i.key)})}),f.jsx(Od,{mode:"wait",children:f.jsx(q.div,{variants:rNe,initial:"hidden",animate:"show",exit:{opacity:0,transition:{duration:.15}},className:`grid gap-6 sm:grid-cols-2 ${n.length>=4?"lg:grid-cols-2":"lg:grid-cols-3"}`,children:n.map(i=>f.jsxs(q.div,{variants:nNe,className:"group rounded-2xl border border-border
901card-border-accent bg-background p-7 hover:shadow-xl hover:border-accent/40 transition-all duration-300 hover:-translate-y-1",children:[f.jsx("div",{className:"mb-4 inline-flex items-center justify-center w-14 h-14 rounded-xl bg-accent/10 group-hover:bg-accent/20 transition-colors",children:f.jsx(i.icon,{className:"w-7 h-7 text-accent"})}),f.jsx("h3",{className:"font-display font-600 text-base text-foreground mb-2",children:i.title}),f.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:i.desc})]},i.title))},t)}),f.jsx(q.p,{initial:{opacity:0},whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.5,delay:.3},className:"mt-10 text-center text-sm text-muted-foreground",children:"40+ reports available across accounting, operations, membership, and more."})]})]})},zR=[{icon:XM,title:"Revenue report",desc:"View club-wide earnings broken down by revenue stream: memberships, events, retail, F&B, lessons, and more. Compare periods, track trends, and understand where your revenue comes from.",category:"financial"},{icon:bW,title:"Outstanding balances report",desc:"Identify members with unpaid balances, past-due invoices, or failed payment methods. Stay on top of collections before small balances become large problems.",category:"financial"},{icon:Lg,title:"Spend per member report",desc:"See how much each member spends across all categories. Identify your highest-value members and understand spending patterns across your base.",category:"financial"},{icon:gW,title:"POS margin report",desc:"Understand product-level profitability for retail and F&B items. Track cost of goods, margins, and sales volume for informed pricing decisions.",category:"financial"},{icon:_h,title:"Revenue per instructor report",desc:"See earnings generated per instructor across lessons, clinics, and camps. Understand who drives the most revenue and optimize your teaching roster.",category:"financial"},{icon:Js,title:"Subscription billings by day report",desc:"Track daily billing volume for recurring memberships. Spot failed charges, forecast cash flow, and understand billing cycle patterns.",category:"financial"},{icon:uW,title:"Location utilization report",desc:"See exactly which courts, studios, and spaces are being used, when, and how often. Identify peak hours, underutilized time slots, and opportunities to adjust pricing.",category:"operational"},{icon:GM,title:"Instructor hours report",desc:"Track teaching hours, session counts, and schedule coverage by instructor. Simplify payroll calculations and identify staffing gaps or imbalances.",category:"operational"},{icon:wW,title:"Credits report",desc:"View and manage outstanding club credits across your member base. Know exactly how many credits are in circulation and where they're being used.",category:"operational"},{icon:zW,title:"Online membership sales report",desc:"Monitor sign-ups coming through your website or member portal. Understand digital conversion and acquisition channels.",category:"operational"},{icon:qW,title:"Membership growth & churn report",desc:"Monitor new member sign-ups, cancellations, and net growth over any time period. Understand churn patterns and identify what's driving retention or attrition.",category:"engagement"},{icon:JM,title:"Visits report",desc:"Track member visit frequency to understand who your most engaged members are and identify those who haven't shown up re
901cently.",category:"engagement"},{icon:fu,title:"Event participation report",desc:"Analyze attendance rates across classes, clinics, and events. Understand which programs fill consistently and which need adjustments.",category:"engagement"},{icon:EW,title:"Average membership lifespan report",desc:"Understand how long members stay before cancelling. Segment by membership type to find your stickiest plans and improve retention strategy.",category:"engagement"},{icon:xW,title:"Cancellation reason report",desc:"See why members leave. Track close reasons over time to identify patterns and address the root causes of churn.",category:"engagement"}],WR=[{text:"Faster decisions."},{text:"Smarter staffing."},{text:"Stronger margins."},{text:"Every report is available in real time. No waiting for end-of-month exports."}],aNe=()=>f.jsx(el,{headline:"Operational and financial intelligence. Not just data. Clarity.",subheadline:"Know what's performing, what's underperforming, and what needs attention. clubcloud reporting gives operators the numbers they need to make faster, smarter decisions.",capabilities:zR,impact:WR,ctaHeadline:"See your club's data with clarity.",capabilitiesOverride:f.jsx(iNe,{items:zR}),impactOverride:f.jsx(Lo,{items:WR}),children:f.jsx(eNe,{})}),oNe=[{time:"6:00 AM",spaces:10},{time:"6:30 AM",spaces:9},{time:"7:00 AM",spaces:6},{time:"7:30 AM",spaces:6},{time:"8:00 AM",spaces:5},{time:"8:30 AM",spaces:5},{time:"9:00 AM",spaces:3},{time:"9:30 AM",spaces:3}],sNe=[{label:"Mon 2/23",active:!1},{label:"Tue 2/24",active:!0},{label:"Wed 2/25",active:!1}],lNe=()=>f.jsxs("div",{className:"flex flex-col h-full bg-white text-[#1a1a1a]",children:[f.jsxs("div",{className:"flex items-center justify-between px-5 pt-3 pb-1 text-[10px] font-semibold",children:[f.jsx("span",{children:"9:41"}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("div",{className:"flex gap-[2px]",children:[1,2,3,4].map(e=>f.jsx("div",{className:"w-[3px] rounded-sm bg-[#1a1a1a]",style:{height:4+e*2}},e))}),f.jsx("div",{className:"w-4 h-2 rounded-sm border border-[#1a1a1a] relative ml-1",children:f.jsx("div",{className:"absolute inset-[1px] rounded-[1px] bg-[#34c759]",style:{width:"68%"}})})]})]}),f.jsxs("div",{className:"flex items-center px-4 py-3",children:[f.jsx(KM,{className:"w-5 h-5 text-[#1a1a1a]"}),f.jsx("h1",{className:"flex-1 text-center text-sm font-bold",children:"Book a Pickleball Court"}),f.jsx("div",{className:"w-5"})]}),f.jsx("div",{className:"flex px-4 gap-0",children:sNe.map(e=>f.jsx("button",{className:`flex-1 text-center text-xs pb-2 border-b-2 font-medium ${e.active?"border-[#4b2e83] text-[#1a1a1a] font-bold":"border-transparent text-[#888]"}`,children:e.label},e.label))}),f.jsxs("div",{className:"px-4 pt-4 pb-2",children:[f.jsx("p",{className:"text-xs font-bold mb-2",children:"Event Duration"}),f.jsxs("div",{className:"flex items-center justify-between rounded-xl border border-[#e0e0e0] bg-[#f8f8f8] px-3 py-2.5",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("div",{className:"w-5 h-5 rounded-full border-2 border-[#888] flex items-center justify-center",children:f.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-[#888]"})}),f.jsx("span",{className:"text-xs text-[#444]",children:"Court Time â 90 mins"})]}),f.jsx(lf,{className:"w-4 h-4 text-[#888]"})]})]}),f.jsx("div",{className:"flex-1 overflow-hidden px-4 pt-2",children:oNe.map(e=>f.jsxs("div",{className:"flex items-center py-3 border-b border-[#eee]",children:[f.jsx("span",{className:"w-20 text-xs font-bold text-[#1a1a1a]",children:e.time}),f.jsx("div",{className:"flex-1 text-center",children:f.jsxs("span",{className:"text-xs text-[#555]",children:[e.spaces," spaces available"]})})]},e.time))}),f.jsx("div",{className:"flex items-center justify-around border-t border-[#e0e0e0] bg-white py-2 mt-auto",children:[{icon:jW,label:"Home",active:!1},{icon:mW,label:"Activities",active:!0},{icon:hW,label:"Bookings",active:!1},{icon:aD,label:"Profile",active:!1}].map(e=>f.jsxs("button",{className:"flex flex-col items-center gap-0.5",children:[f.jsx(e.icon,{className:`w-5 h-5 ${e.active?"text-[#4b2e83]":"text-[#999]"}`}),f.jsx("span",{className:`text-[9px] font-medium ${e.active?"text-[#4b2e83]":"text-[#999]"}`,children:e.label})]},e.label))})]}),cNe=()=>f.jsx("section",{className:"pb-16 relative overflow-hidden",children:f.jsx("div",{className:"container mx-auto px-6 flex justify-center",children:f.jsx(q.div,{initial:{opacity:0,y:32}
901,animate:{opacity:1,y:0},transition:{duration:.7,delay:.3},className:"relative",children:f.jsx("div",{className:"relative w-[280px] md:w-[320px] mx-auto",children:f.jsxs("div",{className:"rounded-[40px] border-[6px] border-[#1a1a1a] bg-[#1a1a1a] p-[3px] shadow-2xl",children:[f.jsx("div",{className:"absolute top-[10px] left-1/2 -translate-x-1/2 w-[90px] h-[22px] bg-[#1a1a1a] rounded-full z-20"}),f.jsx("div",{className:"rounded-[34px] overflow-hidden bg-white",style:{height:560},children:f.jsx(lNe,{})})]})})})})}),uNe=[{icon:fu,title:"Book courts",desc:"Reserve courts across all sports with real-time availability. Split costs with other players at the time of booking."},{icon:eD,title:"Enroll in events & classes",desc:"Browse available programming, register for classes, join waitlists, and pay from their phone or desktop."},{icon:Js,title:"Purchase memberships & packages",desc:"Buy or renew memberships, purchase class passes, and add training packages directly through the portal."},{icon:aD,title:"Manage their profile",desc:"Update contact information, payment methods, and account details. View purchase history and current membership status."}],dNe=[{icon:R_,title:"View class rosters",desc:"See who's enrolled, who's on the waitlist, and who's checked in before and during each session."},{icon:GM,title:"Take attendance",desc:"Mark attendance in real time with a single tap. Attendance data flows directly into reporting for instructor hours."},{icon:ZM,title:"Schedule lessons & sessions",desc:"Book private lessons and training sessions with clients. Manage their own schedule without going through the front desk."},{icon:qM,title:"Adjust schedules",desc:"View daily and weekly schedules, see upcoming sessions, and manage their availability."}],q0={hidden:{},show:{transition:{staggerChildren:.08}}},K0={hidden:{opacity:0,y:20},show:{opacity:1,y:0,transition:{duration:.5}}},HR=()=>f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(Wr,{}),f.jsxs("section",{className:"pt-32 md:pt-40 pb-16 relative overflow-hidden",children:[f.jsx("div",{className:"glow-blob top-20 right-[-10%] w-[500px] h-[500px] bg-accent/10 blur-[120px]"}),f.jsxs("div",{className:"container mx-auto px-6 max-w-3xl text-center relative z-10",children:[f.jsx(q.h1,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6},className:"font-display font-800 text-4xl md:text-5xl tracking-tight text-foreground",children:"Built for real club life, not a scaled-down admin view."}),f.jsx(q.p,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"mt-5 text-lg text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:"The Member Portal gives your members and instructors the tools they actually use: booking, enrollment, payments, rosters, and attendance. Without creating work for your front desk."})]})]}),f.jsx(cNe,{}),f.jsx("section",{className:"section-padding section-alt",children:f.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[f.jsx(q.h2,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"font-display font-700 text-2xl md:text-3xl tracking-tight text-foreground mb-10 text-center",children:"For members"}),f.jsx(q.div,{variants:q0,initial:"hidden",whileInView:"show",viewport:{once:!0},className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-4",children:uNe.map(e=>f.jsxs(q.div,{variants:K0,className:"group rounded-2xl border border-border bg-background p-7 hover:shadow-xl hover:border-accent/40 transition-all duration-300 hover:-translate-y-1",children:[f.jsx("div",{className:"mb-4 inline-flex items-center justify-center w-14 h-14 rounded-xl bg-accent/10 group-hover:bg-accent/20 transition-colors",children:f.jsx(e.icon,{className:"w-7 h-7 text-accent"})}),f.jsx("h3",{className:"font-display font-600 text-base text-foreground mb-1",children:e.title}),f.jsx("p",{className:"text-sm text-muted-foreground",children:e.desc})]},e.title))})]})}),f.jsx("section",{className:"py-8 md:py-12",children:f.jsx("div",{className:"container mx-auto px-6 max-w-5xl",children:f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[f.jsx(q.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"rounded-xl border border-border overflow-hidden",children:f.jsx("img",{src:Nk,alt:"Group tennis coaching session",className:"w-full h-[260px] object-cover",loading:"lazy"})}),f.jsx(q.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"rounded-xl border border-border overflow-hidden",children:f.jsx("img",{src:o4,alt:"Group warm-up session",className:"w-full h-[260px] object-cover",loading:"lazy"})})]})})}),f.jsx("section",{className:"section-padding",children:f.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[f.jsx(q.h2,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"font-display font-700 text-2xl md:text-3xl tracking-tight text-foreground mb-10 text-center",children:"For instructors"}
901),f.jsx(q.div,{variants:q0,initial:"hidden",whileInView:"show",viewport:{once:!0},className:"grid gap-6 sm:grid-cols-2 lg:grid-cols-4",children:dNe.map(e=>f.jsxs(q.div,{variants:K0,className:"group rounded-2xl border border-border bg-background p-7 hover:shadow-xl hover:border-accent/40 transition-all duration-300 hover:-translate-y-1",children:[f.jsx("div",{className:"mb-4 inline-flex items-center justify-center w-14 h-14 rounded-xl bg-accent/10 group-hover:bg-accent/20 transition-colors",children:f.jsx(e.icon,{className:"w-7 h-7 text-accent"})}),f.jsx("h3",{className:"font-display font-600 text-base text-foreground mb-1",children:e.title}),f.jsx("p",{className:"text-sm text-muted-foreground",children:e.desc})]},e.title))})]})}),f.jsx(Lo,{items:[{text:"Less front desk pressure."},{text:"Higher member adoption."},{text:"Better daily flow."},{text:"When members and instructors can handle routine tasks themselves, your staff is free to focus on the operations that actually need human attention."}]}),f.jsx("section",{className:"section-padding",children:f.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[f.jsx(q.h2,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"font-display font-700 text-2xl md:text-3xl tracking-tight text-foreground mb-10 text-center",children:"Platform details"}),f.jsx(q.div,{variants:q0,initial:"hidden",whileInView:"show",viewport:{once:!0},className:"grid gap-5 sm:grid-cols-2",children:[{icon:I_,title:"Progressive web app",desc:"Accessible from any device without app store downloads."},{icon:MW,title:"Fully branded",desc:"Styled to match your club's identity: logo, colors, and all."},{icon:_h,title:"Role-based views",desc:"Separate experiences for members and instructors, each seeing only what they need."},{icon:$_,title:"Real-time sync",desc:"Every booking, payment, and roster change syncs instantly with the admin system."}].map(e=>f.jsxs(q.div,{variants:K0,className:"group rounded-2xl border border-border bg-background p-7 hover:shadow-xl hover:border-accent/40 transition-all duration-300 hover:-translate-y-1",children:[f.jsx("div",{className:"mb-4 inline-flex items-center justify-center w-12 h-12 rounded-xl bg-accent/10 group-hover:bg-accent/20 transition-colors",children:f.jsx(e.icon,{className:"w-6 h-6 text-accent"})}),f.jsx("h3",{className:"font-display font-600 text-base text-foreground mb-1",children:e.title}),f.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]},e.title))})]})}),f.jsxs("section",{className:"section-padding relative overflow-hidden",children:[f.jsx("div",{className:"absolute inset-0 bg-primary"}),f.jsx("div",{className:"container mx-auto px-6 max-w-3xl text-center relative z-10",children:f.jsxs(q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[f.jsx("h2",{className:"font-display font-700 text-3xl md:text-4xl tracking-tight text-primary-foreground",children:"See the Member Portal in action."}),f.jsx("div",{className:"mt-8",children:f.jsx(Ke,{to:"/demo",className:"inline-flex items-center justify-center rounded-full bg-accent px-8 py-3.5 text-base font-semibold text-accent-foreground hover:opacity-90 transition-opacity",children:"Schedule a demo"})})]})})]}),f.jsx(Hr,{})]}),fNe=()=>f.jsxs("div",{className:"bg-[#f7f8fa] h-full flex",children:[f.jsxs("div",{className:"w-[120px] md:w-[140px] bg-white border-r border-[#e5e7eb] p-3 flex flex-col gap-1",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[f.jsx("div",{className:"w-6 h-6 rounded-lg bg-accent flex items-center justify-center",children:f.jsx(wh,{className:"w-3 h-3 text-white"})}),f.jsx("span",{className:"text-[9px] md:text-[10px] font-bold text-[#1a1a2e]",children:"MailStudio"})]}),["Campaigns","Contacts","Templates","Automations","Analytics"].map((e,t)=>f.jsx("div",{className:`text-[8px] md:text-[9px] px-2 py-1.5 rounded-md cursor-default ${t===0?"bg-accent/10 text-accent font-semibold":"text-[#666]"}`,children:e},e))]}),f.jsxs("div",{className:"flex-1 p-3 md:p-4 overflow-hidden",children:[f.jsxs("div",{className:"flex items-center justify-between mb-3",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-[10px] md:text-xs font-bold text-[#1a1a2e]",children:"Email Campaigns"}),f.jsx("p",{className:"text-[8px] text-[#888]",children:"3 active campaigns"})]}),f.jsx("div",{className:"flex items-center gap-1.5",children:f.jsxs("div",{className:"px-2 py-1 rounded-md bg-accent text-white text-[8px] font-semibold flex items-center gap-1",children:[f.jsx(FW,{className:"w-2.5 h-2.5"})," New Campaign"]})})]}),f.jsx("div",{className:"space-y-2",children:[{title:"Summer Tennis League Registration",status:"Sent",statusColor:"bg-green-100 text-green-700",sent:"1,247",opened:"68%",clicked:"24%"},{title:"New Pickleball Courts: Grand Opening",status:"Scheduled",statusColor:"bg-blue-100 text-blue-700",sent:"â",opened:"â",clicked:"â"},{title:"February Fitness Challenge",status:"Draft",statusColor:"bg-[#f3f3f3] text-[#888]",sent:"â",opened:"â",clicked:"â"}].map(e=>f.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-[#e5e7eb] bg-white p-2.5",children:[f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsx("p",{className:"text-[9px] md:text-[10px] font-semibold text-[#1a1a2e] truncate",children:e.title}),f.jsx("span",{className:`inline-block mt-0.5 text-[7px] md:text-[8px] font-medium px-1.5 py-0.5 rounded-full ${e.statusColor}`,children:e.status})]}),f.jsxs("div",{className:"hidden md:flex items-center gap-4 text-[8px] text-[#666] flex-shrink-0",children:[f.jsxs("div",{className:"text-center",children:[f.jsx("p",{className:"font-bold text-[#1a1a2e]",children:e.sent}),f.jsx("p",{children:"Sent"})]}),f.jsxs("div",{className:"text-center",children:[f.jsx("p",{className:"font-bold text-[#1a1a2e]",children:e.opened}),f.jsx("p",{children:"Opened"})]}),f.jsxs("div",{className:"text-center",children:[f.jsx("p",{className:"font-bold text-[#1a1a2e]",children:e.clicked}),f.jsx("p",{children:"Clicked"})]})]}),f.jsx(_W,{className:"w-3 h-3 text-[#ccc] flex-shrink-0"})]},e.title))}),f.jsxs("div",{className:"mt-3 rounded-lg border border-[#e5e7eb] bg-white p-2.5",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-2 pb-2 border-b border-[#eee]",children:[f.jsx("p",{className:"text-[8px] md:text-[9px] font-semibold text-[#1a1a2e]",children:"Email Editor"}),f.jsx("div",{className:"flex items-center gap-1 ml-auto",children:[fW,PW,RW,tD,OW].map((e,t)=>f.jsx("div",{className:"w-5 h-5 rounded flex items-center justify-center hover:bg-[#f3f3f3]",children:f.jsx(e,{className:"w-2.5 h-2.5 text-[#888]"})},t))})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("div",{className:"h-3 bg-accent/20 rounded w-3/4"}),f.jsx("div",{className:"h-2 bg-[#eee] rounded w-full"}),f.jsx("div",{className:"h-2 bg-[#eee] rounded w-5/6"}),f.jsx("div",{className:"h-8 bg-[#f0f7ff] rounded mt-2 flex items-center justify-center",children:f.jsx("div",{className:"px-3 py-1 bg-accent rounded text-[7px] text-white font-semibold",children:"Register Now â"})})]})]})]})]}),hNe=()=>f.jsxs("div",{className:"flex flex-col h-full bg-white text-[#1a1a1a]",children:[f.jsxs("div",{className:"flex items-center justify-between px-4 pt-2.5 pb-1 text-[9px] font-semibold",children:[f.jsx("span",{children:"9:41"}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("div",{className:"flex gap-[2px]",children:[1,2,3,4].map(e=>f.jsx("div",{className:"w-[3px] rounded-sm bg-[#1a1a1a]",style:{height:3+e*1.5}},e))}),f.jsx("div",{className:"w-3.5 h-[7px] rounded-sm border border-[#1a1a1a] relative ml-1",children:f.jsx("div",{className:"absolute inset-[1px] rounded-[1px] bg-[#34c759]",style:{width:"80%"}}
901)})]})]}),f.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-[#eee]",children:[f.jsx(KM,{className:"w-4 h-4 text-accent"}),f.jsxs("div",{className:"flex-1",children:[f.jsx("p",{className:"text-[9px] font-bold text-[#1a1a2e]",children:"Riverside Racquet Club"}),f.jsx("p",{className:"text-[7px] text-[#888]",children:"[email protected]"})]}),f.jsx(WW,{className:"w-3.5 h-3.5 text-[#ddd]"})]}),f.jsxs("div",{className:"flex-1 overflow-hidden px-3 py-2.5 space-y-2",children:[f.jsx("p",{className:"text-[10px] font-bold text-[#1a1a2e] leading-tight",children:"ð¾ This Week at Riverside"}),f.jsxs("div",{className:"rounded-lg bg-gradient-to-br from-accent/20 to-accent/5 p-2.5 text-center",children:[f.jsx("p",{className:"text-[8px] font-bold text-accent uppercase tracking-wider",children:"New This Month"}),f.jsx("p",{className:"text-[10px] font-bold text-[#1a1a2e] mt-0.5",children:"Pickleball Round Robin"}),f.jsx("p",{className:"text-[7px] text-[#666] mt-0.5",children:"Every Saturday · 9 AM · Courts 5-8"}),f.jsx("div",{className:"mt-1.5 px-3 py-1 bg-accent rounded-full inline-block text-[7px] text-white font-semibold",children:"Sign Up"})]}),f.jsxs("div",{children:[f.jsx("p",{className:"text-[8px] font-bold text-[#1a1a2e] mb-1",children:"ð
Upcoming Classes"}),[{name:"Advanced Tennis Clinic",time:"Tue 6 PM"},{name:"Cardio Blast",time:"Wed 7 AM"},{name:"Beginner Padel",time:"Thu 5 PM"}].map(e=>f.jsxs("div",{className:"flex items-center justify-between py-1 border-b border-[#f3f3f3]",children:[f.jsx("span",{className:"text-[7px] text-[#444]",children:e.name}),f.jsx("span",{className:"text-[7px] text-[#888]",children:e.time})]},e.name))]}),f.jsxs("div",{className:"rounded-lg bg-[#1a1a2e] p-2.5 text-center",children:[f.jsx("p",{className:"text-[8px] font-bold text-white",children:"Refer a Friend, Get a Free Month"}),f.jsx("p",{className:"text-[7px] text-white/60 mt-0.5",children:"Share your referral code: RVRC2026"})]})]})]}),Y0=({icon:e,title:t,message:r,time:n,delay:i,className:a})=>f.jsx(q.div,{initial:{opacity:0,x:30,scale:.9},animate:{opacity:1,x:0,scale:1},transition:{duration:.5,delay:i},className:`absolute z-30 w-[200px] md:w-[240px] rounded-xl border border-[#e5e7eb] bg-white/95 backdrop-blur-sm p-3 shadow-xl ${a}`,children:f.jsxs("div",{className:"flex items-start gap-2.5",children:[f.jsx("div",{className:"w-7 h-7 rounded-lg bg-accent/10 flex items-center justify-center flex-shrink-0",children:f.jsx(e,{className:"w-3.5 h-3.5 text-accent"})}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("p",{className:"text-[9px] font-bold text-[#1a1a2e] truncate",children:t}),f.jsx("span",{className:"text-[7px] text-[#aaa] flex-shrink-0 ml-1",children:n})]}),f.jsx("p",{className:"text-[8px] text-[#666] mt-0.5 leading-relaxed line-clamp-2",children:r})]})]})}),pNe=()=>f.jsx("section",{className:"pb-16 relative overflow-hidden",children:f.jsx("div",{className:"container mx-auto px-6 max-w-5xl",children:f.jsx(q.div,{initial:{opacity:0,y:32},animate:{opacity:1,y:0},transition:{duration:.7,delay:.2},className:"relative",children:f.jsxs("div",{className:"flex items-end justify-center gap-4 md:gap-8 relative",children:[f.jsxs("div",{className:"relative flex-shrink-0 w-[60%] md:w-[65%] max-w-[620px]",children:[f.jsxs("div",{className:"rounded-t-2xl border-[5px] border-b-0 border-[#2a2a2e] bg-[#2a2a2e] pt-2.5 px-1",children:[f.jsxs("div",{className:"flex items-center gap-1.5 px-3 pb-1.5",children:[f.jsx("span",{className:"w-2 h-2 rounded-full bg-[#ff5f57]"}),f.jsx("span",{className:"w-2 h-2 rounded-full bg-[#ffbd2e]"}),f.jsx("span",{className:"w-2 h-2 rounded-full bg-[#28c840]"}),f.jsx("div",{className:"ml-3 flex-1 h-4 rounded-md bg-[#3a3a3e]"})]}),f.jsx("div",{className:"rounded-t-sm overflow-hidden bg-background",style:{height:340},children:f.jsx(fNe,{})})]}),f.jsx("div",{className:"h-4 bg-[#2a2a2e] rounded-b-lg"}),f.jsx("div",{className:"flex justify-center",children:f.jsx("div",{className:"w-20 h-5 bg-gradient-to-b from-[#2a2a2e] to-[#3a3a3e] rounded-b-lg"})}),f.jsx("div",{className:"flex justify-center -mt-0.5",children:f.jsx("div",{className:"w-32 h-1.5 bg-[#3a3a3e] rounded-full"})})]}),f.jsx("div",{className:"relative flex-shrink-0 w-[28%] md:w-[22%] max-w-[200px] -mb-4",children:f.jsxs("div",{className:"rounded-[28px] md:rounded-[32px] border-[5px] border-[#1a1a1a] bg-[#1a1a1a] p-[2px] shadow-2xl",children:[f.jsx("div",{className:"absolute top-[8px] left-1/2 -translate-x-1/2 w-[60px] md:w-[70px] h-[16px] md:h-[18px] bg-[#1a1a1a] rounded-full z-20"}),f.jsx("div",{className:"rounded-[24px] md:rounded-[28px] overflow-hidden bg-white",style:{height:380},children:f.jsx(hNe,{})})]})}),f.jsx(Y0,{icon:wh,title:"Email Delivered",message:"Summer Tennis League c
901ampaign sent to 1,247 members",time:"Just now",delay:.8,className:"top-4 -left-2 md:left-4"}),f.jsx(Y0,{icon:Sh,title:"SMS Sent",message:"Court maintenance alert sent to 86 members with bookings tomorrow",time:"2m ago",delay:1.1,className:"bottom-24 md:bottom-20 -right-2 md:right-4"}),f.jsx(Y0,{icon:C_,title:"Auto Reminder",message:"Class reminder sent to Advanced Tennis Clinic roster (12 players)",time:"5m ago",delay:1.4,className:"top-1/3 -right-2 md:right-0"})]})})})}),mNe=[{icon:wh,title:"Email campaigns",desc:"Create and send targeted email campaigns directly from the platform. Use A/B testing to optimize subject lines and content. Track open rates, click-through rates, and engagement in real-time."},{icon:Sh,title:"SMS messaging",desc:"Send text messages to promote programs, communicate schedule changes, or deliver time-sensitive updates. Target specific groups by tag, membership type, or event enrollment."},{icon:C_,title:"Automated notifications",desc:"Reservation confirmations, waitlist notifications, class reminders, payment receipts, and membership renewal alerts are sent automatically. No staff involvement required."},{icon:R_,title:"Roster-based communication",desc:"Email or text an entire class roster, event registrant list, or waitlisted group directly from the event management screen. One click to reach everyone who needs to know."},{icon:oD,title:"Lead nurture sequences",desc:"Set up automated email and SMS sequences for leads in your CRM pipeline. Follow up with trial visitors, open house attendees, or website inquiries on a schedule you define."},{icon:iD,title:"Tag-based targeting",desc:"Use member tags to build targeted communication lists. Send promotions to pickleball players, re-engagement messages to lapsed members, or announcements to a specific tier."}],qR=[{text:"No switching between your club management system and a separate email platform."},{text:"No exporting CSV files to third-party tools."},{text:"Communication lives where your member data lives. Targeting is precise and delivery is immediate."}],yNe=()=>f.jsx(el,{headline:"Targeted communication built into the system your club already runs on.",subheadline:"Email campaigns and SMS messaging aren't bolted on. They're part of the platform. Send to class rosters, tagged member segments, leads in your pipeline, or your entire mailing list. No exporting. No third-party integrations. No extra cost.",capabilities:mNe,impact:qR,ctaHeadline:"See how communication works inside clubcloud.",impactOverride:f.jsx(Lo,{items:qR}),children:f.jsx(pNe,{})}),G0=[{logo:t4,name:"DUPR",headline:"The world's most accurate pickleball rating.",desc:"clubcloud's integration with DUPR automatically syncs player ratings after match play and competitive events. Clubs can organize skill-appropriate match play, track player progression, and keep ratings current without manual data entry. For facilities running pickleball leagues, round robins, or competitive ladders, DUPR ratings update in real time."},{logo:n4,name:"USTA / ITF World Tennis Number (WTN) / NTRP",headline:"Accurate competitive alignment for tennis programming.",desc:"Connect your club's player profiles to USTA, WTN, and NTRP rating systems. clubcloud syncs player skill levels to ensure balanced match play, appropriate clinic groupings, and accurate league placements. Rating data flows into the system so your programming reflects actual skill levels, not self-reported estimates."},{logo:r4,name:"PlaySight",headline:"Smart video technology for every match.",desc:"clubcloud's PlaySight integration brings AI-powered video recording and automatic highlight reels to your courts. Members and coaches can capture matches, review footage, and share highlights, all connected to their clubcloud profiles. For clubs with PlaySight-equipped courts, the integration creates a premium experience that drives court utilization and member engagement."},{logo:a4,name:"Swish",headline:"Professional-level tournaments, leagues, and competitive play.",desc:"clubcloud integrates directly with Swish to power advanced tournaments, leagues, ladders, and round robins without manual setup. With a single click, your event details and rosters migrate from clubcloud into Swish, where you can manage scheduling, formats, scoring, movement rules, and competitive structures like King of the Court, ladder leagues, MiLP-style team play, and inter-club matchups. Clubs get the simplicity of building and collecting registrations inside clubcloud, combined with the competitive engine of Swish to run dynamic, professional-level programming."},{logo:i4,name:"Brivo",headline:"Automated access control tied to membership status.",desc:"clubcloud's Brivo integration connects your door access system directly to member and employee records. Doors unlock automatically based on real-time membership status, employee roles, and access permissions. No manual key card management needed. When a membership expires or an employee leaves, access is revoked instantly. For clubs with gated courts, fitness areas, or restricted zones, Brivo turns your access control into an extension of your operations."}],gNe=()=>f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(Wr,{}),f.jsxs("section",{className:"relative overflow-hidden bg-primary",children:[f.jsx("div",{className:"absolute inset-0 texture-lines opacity-30"}),f.jsx("div",{className:"glow-blob top-[10%] right-[5%] w-[500px] h-[500px] bg-accent/12 blur-[140px]"}),f.jsx("div",{className:"glow-blob bottom-[5%] left-[10%] w-[350px] h-[350px] bg-accent/8 blur-[100px]"}),f.jsxs("div",{className:"container mx-auto px-6 max-w-3xl text-center relative z-10 pt-32 md:pt-40 pb-20 md:pb-24",children:[f.jsx(q.h1,{initial:{opacity:0,y:24}
901,animate:{opacity:1,y:0},transition:{duration:.6},className:"font-display font-800 text-4xl md:text-5xl tracking-tight text-primary-foreground leading-[1.1]",children:"Integrated where it matters, without depending on what's external."}),f.jsx(q.p,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"mt-5 text-lg text-primary-foreground/70 max-w-2xl mx-auto leading-relaxed",children:"clubcloud is a complete platform, not a hub that relies on third-party tools to function. Our integrations enhance competitive play, video analysis, and player development. They're additions, not dependencies."}),f.jsxs(q.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"mt-8 flex flex-wrap items-center justify-center gap-4",children:[f.jsxs(Ke,{to:"/demo",className:"inline-flex items-center justify-center gap-2 rounded-full bg-accent px-8 py-3.5 text-base font-semibold text-accent-foreground hover:brightness-110 transition-all shadow-lg shadow-accent/20",children:["Schedule a demo",f.jsx(Ds,{className:"w-4 h-4"})]}),f.jsx(Ke,{to:"/features",className:"inline-flex items-center justify-center rounded-full border border-primary-foreground/25 px-7 py-3.5 text-base font-medium text-primary-foreground hover:bg-primary-foreground/10 transition-colors",children:"All Features"})]})]})]}),f.jsxs("section",{className:"py-8 border-b border-border overflow-hidden",children:[f.jsx("div",{className:"container mx-auto px-6 max-w-4xl",children:f.jsx(q.p,{initial:{opacity:0}
901,animate:{opacity:1},transition:{duration:.6,delay:.2},className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground text-center mb-6",children:"Integration partners"})}),f.jsxs(q.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.6,delay:.3},className:"relative",children:[f.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-16 bg-gradient-to-r from-background to-transparent z-10 pointer-events-none"}),f.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-16 bg-gradient-to-l from-background to-transparent z-10 pointer-events-none"}),f.jsx("div",{className:"flex animate-marquee items-center gap-16 w-max",children:[...G0,...G0].map((e,t)=>f.jsx("div",{className:"flex items-center justify-center h-8 md:h-10 opacity-60 hover:opacity-100 transition-opacity flex-shrink-0",children:f.jsx("img",{src:e.logo,alt:e.name,className:"h-full w-auto object-contain"})},`${e.name}-${t}`))})]})]}),f.jsx("section",{className:"section-padding section-alt",children:f.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[f.jsx("div",{className:"space-y-8",children:G0.map((e,t)=>f.jsx(q.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},className:"rounded-2xl border border-border bg-background p-8 md:p-10 hover:shadow-xl hover:border-accent/40 transition-all duration-300",children:f.jsxs("div",{className:"flex items-start gap-5",children:[f.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-xl bg-white flex-shrink-0 p-2",children:f.jsx("img",{src:e.logo,alt:e.name,className:"w-full h-full object-contain"})}),f.jsxs("div",{children:[f.jsx("p",{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground mb-1",children:e.name}),f.jsx("h3",{className:"font-display font-700 text-xl text-foreground mb-2",children:e.headline}),f.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e.desc})]})]})},e.name))}),f.jsxs(q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mt-12 rounded-2xl border border-border bg-background p-10 md:p-14 shadow-lg",children:[f.jsx("h2",{className:"font-display font-700 text-2xl md:text-3xl tracking-tight text-foreground mb-4 text-center",children:"Integration philosophy."}),f.jsx("p",{className:"text-muted-foreground leading-relaxed text-center max-w-2xl mx-auto",children:"clubcloud is built to run your entire club operation natively. Integrations are enhancements that add competitive, analytical, and engagement value, not patches that fill gaps in core functionality. Your scheduling, payments, members, events, and reporting all work without any external dependency."})]})]})}),f.jsx("section",{className:"section-padding relative overflow-hidden",children:f.jsx("div",{className:"container mx-auto px-6 max-w-3xl text-center relative z-10",children:f.jsxs(q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[f.jsx("h2",{className:"font-display font-700 text-3xl md:text-4xl tracking-tight text-foreground",children:"See how integrations enhance your club's experience."}),f.jsx("div",{className:"mt-8",children:f.jsx(Ke,{to:"/demo",className:"inline-flex items-center justify-center gap-2 rounded-full bg-accent px-8 py-3.5 text-base font-semibold text-accent-foreground hover:brightness-110 transition-all shadow-lg shadow-accent/20",children:"Schedule a demo"})})]})})}),f.jsx(Hr,{})]}),MV="/assets/slack_logo-BRVj5VT4.png",vNe="/assets/club_bar-BUWOOq6P.webp",bNe="/assets/tennis_overhead-BtQJ3ms-.webp",xNe=[{icon:fu,label:"Scheduling",features:["Court & facility booking","Recurring reservations","Instructor scheduling","Multi-location support"]},{icon:_h,label:"Events",features:["Class & clinic enrollment","Waitlist management","Roster & attendance","Ticketed public events"]},{icon:Bg,label:"Members",features:["Memberships & subscriptions","Passes & credit packages","Tag-based segmentation","Attendance history"]},{icon:I_,label:"CRM & Website",features:["Drag-and-drop website builder","Lead capture & pipeline","Automated follow-up sequences","Conversion tracking"]},{icon:Js,label:"Payments",features:["Class & event billing","Recurring billing","Retail point of sale","Restaurant & F&B tabs"]},{icon:xh,label:"Reporting",features:["Utilization reports","Revenue dashboards","Instru
901ctor hours","Spend-per-member analysis"]},{icon:wh,label:"Communication",features:["Email campaigns","SMS messaging","Automated notifications","Roster-based messaging"]},{icon:M_,label:"Member Portal",features:["Member self-service","Instructor roster view","Mobile-optimized","Real-time availability"]},{icon:QM,label:"Integrations",features:["Payment processors","Accounting software","Access control","Third-party tools"]},{icon:HM,label:"Migration & Onboarding",features:["Full data migration","Dedicated onboarding","Staff training","Ongoing support"]}],wNe=[{icon:CW,title:"Custom Revenue Architecture",body:"We design pricing around your club's volume, programming mix, and growth plans. No forced bundles. No artificial tier jumps.",note:null},{icon:LW,title:"Simple Processing Options",body:"Choose percentage-based pricing or percentage plus flat fee. We'll help you select the model that makes the most financial sense for your club.",note:null},{icon:rD,title:"Full Platform. No Module Fees.",body:"All core modules are included in your clubcloud deployment. POS, email marketing, payroll tools, CRM, reporting, and more are not locked behind paid upgrades or tier jumps.",note:"Third-party services like payment processors or hardware providers may have their own fees. We don't add extra platform charges on top."}],SNe=()=>f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(Wr,{}),f.jsx("section",{className:"pt-32 md:pt-40 pb-12 relative overflow-hidden",children:f.jsxs("div",{className:"container mx-auto px-6 max-w-3xl text-center relative z-10",children:[f.jsx(q.h1,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6},className:"font-display font-800 text-4xl md:text-5xl tracking-tight text-foreground",children:"Pricing Built Around Your Club."}),f.jsx(q.p,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"mt-5 text-lg text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:"Transparent structure. No rigid tiers. Designed for how your facility actually operates."})]})}),f.jsx("section",{className:"pb-14",children:f.jsx("div",{className:"container mx-auto px-6 max-w-5xl",children:f.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:wNe.map((e,t)=>f.jsxs(q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:t*.1},className:"flex flex-col gap-3",children:[f.jsx("div",{className:"inline-flex items-center justify-center w-10 h-10 rounded-lg bg-accent/10 flex-shrink-0",children:f.jsx(e.icon,{className:"w-5 h-5 text-accent"})}),f.jsx("h3",{className:"font-display font-600 text-lg text-foreground",children:e.title}),f.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e.body}),e.note&&f.jsx("p",{className:"text-xs text-accent font-medium mt-1",children:e.note})]},e.title))})})}),f.jsx("section",{className:"py-14",children:f.jsx("div",{className:"container mx-auto px-6 max-w-5xl",children:f.jsxs("div",{className:"grid grid-cols-6 grid-rows-2 gap-3 md:gap-4 h-[280px] md:h-[380px]",children:[f.jsx(q.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5},className:"col-span-2 row-span-2 rounded-2xl overflow-hidden",children:f.jsx("img",{src:HB,alt:"Aerial view of tennis courts",className:"w-full h-full object-cover"})}),f.jsx(q.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.1},className:"col-span-2 row-span-1 rounded-2xl overflow-hidden",children:f.jsx("img",{src:vNe,alt:"Club bar and lounge area",className:"w-full h-full object-cover"})}),f.jsx(q.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.2},className:"col-span-2 row-span-1 rounded-2xl overflow-hidden",children:f.jsx("img",{src:bNe,alt:"Tennis player hitting an overhead",className:"w-full h-full object-cover"})}),f.jsx(q.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.15},className:"col-span-2 row-span-1 rounded-2xl overflow-hidden",children:f.jsx("img",{src:e4,alt:"Gym and fitness training",className:"w-full h-full object-cover"})}),f.jsx(q.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.25},className:"col-span-2 row-span-1 rounded-2xl overflow-hidden",children:f.jsx("img",{src:Q3,alt:"Padel match in action",className:"w-full h-full object-cover"})})]})})}),f.jsx("section",{className:"py-14 section-alt",children:f.jsx("div",{className:"container mx-auto px-6 max-w-5xl",children:f.jsxs(q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"rounded-2xl border border-border bg-background p-10 md:p-14 shadow-lg",children:[f.jsx("h2",{className:"font-display font-700 text-2xl md:text-3xl tracking-tight text-foreground mb-4 text-center",children:"What's included."}),f.jsx("p",{className:"text-center text-muted-foreground mb-10",children:"Full platform access. No hidden modules."}),f.jsx("div",{className:"grid sm:grid-cols-2 gap-6",children:xNe.map(e=>f.jsxs("div",{className:"flex gap-3",children:[f.jsx("div",{className:"inline-flex items-center justify-center w-10 h-10 rounded-lg bg-accent/10 flex-shrink-0 mt-0.5",children:f.jsx(e.icon,{className:"w-5 h-5 text-accent"})}),f.jsxs("div",{children:[f.jsx("span",{className:"text-foreground font-semibold",children:e.label}),f.jsx("ul",{className:"mt-1.5 space-y-1",children:e.features.map(t=>f.jsxs("li",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[f.jsx(N_,{className:"w-3.5 h-3.5 text-accent flex-shrink-0"}),t]},t))})]})]},e.label))})]})})}),f.jsx("section",{className:"py-14",children:f.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[f.jsxs(q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"max-w-2xl mx-auto text-center",children:[f.jsx("h2",{className:"font-display font-700 text-2xl md:text-3xl tracking-tight text-foreground mb-5",children:"Dedicated Support. True Partnership."}),f.jsx("p",{className:"text-muted-foreground leading-relaxed",children:"Every club receives a dedicated Slack channel, direct access to our leadership team, fast response times, and transparent product updates. When we commit to a feature, we follow through. When you need help, you get a real response quickly."}),f.jsx("a",{href:"https://slack.com",target:"_blank",rel:"noopener noreferrer",className:"inline-block mt-6",children:f.jsx("img",{src:MV,alt:"Slack",className:"h-16 rounded-2xl hover:opacity-80 transition-opacity",loading:"lazy"})})]}),f.jsx("div",{className:"grid md:grid-cols-2 gap-8 mt-12",children:[{title:"Switch & Save",body:"If you're locked into a long-term contract, we can waive subscription fees during your remaining term so you can begin preparing your transition now."},{title:"Structured Migration",body:"We handle data audit, migration, and live staff training so your launch is calm and organized, not chaotic."}].map((e,t)=>f.jsxs(q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:t*.1},className:"border-t border-border pt-6",children:[f.jsx("h3",{className:"font-display font-600 text-base text-foreground mb-2",children:e.title}),f.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:e.body})]},e.title))})]})}),f.jsxs("section",{className:"section-padding relative overflow-hidden",children:[f.jsx("div",{className:"absolute inset-0 bg-primary"}),f.jsx("div",{className:"absolute inset-0 texture-lines"}),f.jsx("div",{className:"glow-blob top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[500px] h-[500px] bg-accent/10 blur-[100px]"}),f.jsx("div",{className:"container mx-auto px-6 max-w-3xl text-center relative z-10",children:f.jsxs(q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[f.jsx("h2",{className:"font-display font-700 text-2xl md:text-3xl tracking-tight text-primary-foreground mb-8",children:"Let's Build Your Custom Quote."}),f.jsx(Ke,{to:"/demo",className:"inline-flex items-center justify-center rounded-full bg-accent px-8 py-3.5 text-base font-semibold text-accent-foreground hover:opacity-90 transition-opacity",children:"Request Pricing"})]})})]}),f.jsx(Hr,{})]}),_Ne="/assets/happy-rj4SNE9A.webp",kNe=[{icon:kW,title:"Department-specific onboarding",desc:"Tailored calls for each department to ensure smooth implementation."},{icon:Lg,title:"Dedicated contacts",desc:"Work with experts who understand racquet and fitness clubs."},{icon:oD,title:"Fast response times",desc:"Get answers quickly. No more waiting weeks for support."},{icon:TW,title:"Industry-aware support",desc:"Personalized assistance to address unique club needs."}],ANe=[{quote:"Their team has also been fantastic to work with, always ready with quick, helpful responses whenever we need assistance.",name:"Andres Valesco Posada",role:"Gilford Hills Tennis & Fitness Club"},{quote:"Their support team is incredibly responsive and always ready to help!",name:"Celia Quintero",role:"CQ Sports"},{quote:"Their customer service is exceptional, and every time I reach out, the team already understands our
901club's needs.",name:"Janelle Boksanski",role:"Spark Fitness and Tennis Club"}],TNe={hidden:{},show:{transition:{staggerChildren:.08}}},ENe={hidden:{opacity:0,y:20},show:{opacity:1,y:0,transition:{duration:.5}}},jNe=()=>f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(Wr,{}),f.jsxs("section",{className:"pt-32 md:pt-40 pb-16 relative overflow-hidden",children:[f.jsx("div",{className:"glow-blob top-20 right-[-10%] w-[500px] h-[500px] bg-accent/10 blur-[120px]"}),f.jsxs("div",{className:"container mx-auto px-6 max-w-3xl text-center relative z-10",children:[f.jsx(q.h1,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6},className:"font-display font-800 text-4xl md:text-5xl tracking-tight text-foreground",children:"Operator-level support."}),f.jsx(q.p,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"mt-5 text-lg text-muted-foreground max-w-2xl mx-auto leading-relaxed",children:"Unmatched support from industry experts to ensure your club thrives."})]})]}),f.jsx("section",{className:"pb-8 md:pb-12",children:f.jsx("div",{className:"container mx-auto px-6 max-w-4xl",children:f.jsxs("div",{className:"grid grid-cols-3 gap-3 md:gap-4",children:[f.jsx(q.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},className:"rounded-xl border border-border overflow-hidden col-span-2 row-span-2",children:f.jsx("img",{src:Nk,alt:"Group tennis coaching session",className:"w-full h-full object-cover",loading:"lazy"})}),f.jsx(q.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},className:"rounded-xl border border-border overflow-hidden",children:f.jsx("img",{src:_Ne,alt:"Happy club members socializing",className:"w-full h-[140px] md:h-full object-cover",loading:"lazy"})}),f.jsx(q.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.5,delay:.4},className:"rounded-xl border border-border overflow-hidden",children:f.jsx("img",{src:J3,alt:"Players celebrating with a high five",className:"w-full h-[140px] md:h-full object-cover",loading:"lazy"})})]})})}),f.jsx("section",{className:"section-padding section-alt",children:f.jsx("div",{className:"container mx-auto px-6 max-w-4xl",children:f.jsx(q.div,{variants:TNe,initial:"hidden",whileInView:"show",viewport:{once:!0},className:"grid gap-6 sm:grid-cols-2",children:kNe.map(e=>f.jsxs(q.div,{variants:ENe,className:"group rounded-2xl border border-border bg-background p-7 hover:shadow-xl hover:border-accent/40 transition-all duration-300 hover:-translate-y-1",children:[f.jsx("div",{className:"mb-4 inline-flex items-center justify-center w-14 h-14 rounded-xl bg-accent/10 group-hover:bg-accent/20 transition-colors",children:f.jsx(e.icon,{className:"w-7 h-7 text-accent"})}),f.jsx("h3",{className:"font-display font-600 text-base text-foreground mb-2",children:e.title}),f.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.desc})]},e.title))})})}),f.jsx("section",{className:"section-padding",children:f.jsx("div",{className:"container mx-auto px-6 max-w-4xl",children:f.jsxs(q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"rounded-2xl border border-border bg-background p-10 md:p-14 text-center shadow-lg",children:[f.jsx("a",{href:"https://slack.com",target:"_blank",rel:"noopener noreferrer",children:f.jsx("img",{src:MV,alt:"Slack",className:"h-16 mx-auto mb-6 rounded-2xl hover:opacity-80 transition-opacity",loading:"lazy"})}),f.jsx("h2",{className:"font-display font-700 text-2xl md:text-3xl tracking-tight text-foreground mb-4",children:"Your own dedicated Slack channel."}),f.jsx("p",{className:"text-muted-foreground leading-relaxed max-w-xl mx-auto",children:"Every club gets a private Slack channel shared directly with our team. It's a real-time messaging platform where you can ask questions, flag issues, request features, and get fast responses without waiting on hold or submitting tickets. Your team and ours, in one place."})]})})}),f.jsx("section",{className:"section-padding",children:f.jsxs("div",{className:"container mx-auto px-6 max-w-4xl",children:[f.jsx(q.h2,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"font-display font-700 text-2xl md:text-3xl tracking-tight text-foreground mb-10 text-center",children:"What our customers are saying."}),f.jsx("div",{className:"grid gap-6 md:grid-cols-3",children:ANe.map((e,t)=>f.jsxs(q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},className:"rounded-2xl border border-border bg-background p-7",children:[f.jsxs("p",{className:"text-muted-foreground italic text-sm leading-relaxed mb-5",children:['"',e.quote,'"']}),f.jsx("p",{className:"text-sm font-medium text-foreground",children:e.name}),f.jsx("p",{className:"text-xs text-muted-foreground",children:e.role})]},t))})]})}),f.jsxs("section",{className:"section-padding relative overflow-hidden",children:[f.jsx("div",{className:"absolute inset-0 bg-primary"}),f.jsx("div",{className:"container mx-auto px-6 max-w-3xl text-center relative z-10",children:f.jsxs(q.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[f.jsx("h2",{className:"font-display font-700 text-3xl md:text-4xl tracking-tight text-primary-foreground",children:"Ready to experience the best support in the industry?"}),f.jsx("div",{className:"mt-8",children:f.jsx(Ke,{to:"/demo",className:"inline-flex items-center justify-center rounded-full bg-accent px-8 py-3.5 text-base font-semibold text-accent-foreground hover:opacity-90 transition-opacity",children:"Schedule a demo"})})]})})]}),f.jsx(Hr,{})]}),ONe=()=>f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(Wr,{}),f.jsx("section",{className:"pt-32 pb-20 md:pt-40 md:pb-28",children:f.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[f.jsxs(q.div,{initial:{opacity:0,y:20}
901,animate:{opacity:1,y:0},className:"text-center mb-16",children:[f.jsx("p",{className:"text-sm font-semibold uppercase tracking-widest text-warm mb-4",children:"Blog"}),f.jsx("h1",{className:"font-display font-700 text-4xl md:text-5xl tracking-tight text-foreground mb-4",children:"Insights for Club Operators."}),f.jsx("p",{className:"text-lg text-muted-foreground max-w-2xl mx-auto",children:"Strategies, best practices, and ideas for running a modern racquet & fitness club."})]}),f.jsx("div",{className:"grid gap-8 md:grid-cols-2 lg:grid-cols-3",children:Rk.map((e,t)=>f.jsx(q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:t*.1},children:f.jsxs(Ke,{to:`/blog/${e.slug}`,className:"group block rounded-xl border border-border bg-card overflow-hidden hover:shadow-lg transition-shadow",children:[f.jsx("img",{src:e.image,alt:e.title,className:"w-full h-48 object-cover group-hover:scale-105 transition-transform duration-300",loading:"lazy"}),f.jsxs("div",{className:"p-5",children:[f.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider text-warm",children:e.category}),f.jsx("h2",{className:"font-display font-600 text-foreground mt-2 mb-2 leading-snug group-hover:text-warm transition-colors",children:e.title}),f.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-4",children:e.description}),f.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[f.jsx("span",{children:e.author}),f.jsx("span",{children:"·"}),f.jsx("span",{children:e.date}),f.jsx("span",{children:"·"}),f.jsx("span",{children:e.readTime})]})]})]})},e.slug))})]})}),f.jsx(Hr,{})]}),DV=()=>{const e=Io();return k.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),f.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:f.jsxs("div",{className:"text-center",children:[f.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),f.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),f.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})};function PNe(e){const t=/^## (.+)$/gm,r=[];let n;for(;(n=t.exec(e))!==null;){const i=n[1].replace(/\*\*/g,""),a=i.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"");r.push({id:a,text:i})}return r}function CNe(e){return e.replace(/^---$/gm,'<div class="blog-divider"></div>').replace(/^## (.+)$/gm,(t,r)=>`<h2 id="${r.replace(/\*\*/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}">${r}</h2>`).replace(/^### (.+)$/gm,"<h3>$1</h3>").replace(/^> (.+)$/gm,"<blockquote><p>$1</p></blockquote>").replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").split(/\n\n+/).map(t=>{const r=t.trim();return r.startsWith("<h")||r.startsWith("<div")||r.startsWith("<blockquote")||r.startsWith("<ul")||r.startsWith("<ol")?r:r?`<p>${r}</p>`:""}).join(` 902`)}const NNe=()=>{const{slug:e}=Gq(),t=e?eQ(e):void 0,r=k.useMemo(()=>t?PNe(t.content):[],[t]),n=k.useCallback(i=>{const a=document.getElementById(i);if(a){const s=a.getBoundingClientRect().top+window.scrollY-100;window.scrollTo({top:s,behavior:"smooth"})}},[]);return t?f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(Wr,{}),f.jsx("section",{className:"relative pt-28 pb-0 md:pt-36",children:f.jsx("div",{className:"container mx-auto px-6 max-w-3xl",children:f.jsxs(q.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},children:[f.jsxs(Ke,{to:"/blog",className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors mb-6",children:[f.jsx(dW,{className:"w-4 h-4"}),"Back to blog"]}),f.jsx("div",{children:f.jsx("span",{className:"inline-block text-xs font-semibold uppercase tracking-wider text-warm bg-warm/10 px-3 py-1 rounded-full mb-4",children:t.category})}),f.jsx("h1",{className:"font-display font-700 text-3xl md:text-4xl lg:text-5xl tracking-tight text-foreground mb-4 leading-tight",children:t.title}),f.jsx("p",{className:"text-lg text-muted-foreground mb-6",children:t.subtitle}),f.jsxs("div",{className:"flex items-center gap-3 text-sm text-muted-foreground mb-10",children:[f.jsx("span",{className:"font-medium text-foreground",children:t.author}),f.jsx("span",{children:"·"}),f.jsx("span",{children:t.date}),f.jsx("span",{children:"·"}),f.jsxs("span",{children:[t.readTime," read"]})]})]})})}),f.jsx(q.div,{initial:{opacity:0,y:20}
902,animate:{opacity:1,y:0},transition:{delay:.1},className:"container mx-auto px-6 max-w-4xl mb-12",children:f.jsx("img",{src:t.image,alt:t.title,className:"w-full rounded-2xl object-cover max-h-[480px]"})}),r.length>1&&f.jsx(q.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.15},className:"container mx-auto px-6 max-w-3xl mb-12",children:f.jsxs("div",{className:"rounded-xl border border-border bg-secondary/50 p-6",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[f.jsx(tD,{className:"w-5 h-5 text-accent"}),f.jsx("h3",{className:"font-display font-600 text-sm uppercase tracking-wider text-foreground",children:"In this article"})]}),f.jsx("nav",{className:"flex flex-col gap-1",children:r.map((i,a)=>f.jsxs("button",{onClick:()=>n(i.id),className:"group flex items-start gap-3 text-left px-3 py-2 rounded-lg hover:bg-accent/10 transition-colors",children:[f.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-accent/15 text-accent text-xs font-semibold flex items-center justify-center mt-0.5",children:a+1}),f.jsx("span",{className:"text-sm text-muted-foreground group-hover:text-accent transition-colors font-medium",children:i.text})]},i.id))})]})}),f.jsx("article",{className:"container mx-auto px-6 max-w-3xl pb-20",children:f.jsx(q.div,{initial:{opacity:0}
902,animate:{opacity:1},transition:{delay:.2},className:`blog-content prose prose-lg max-w-none 903 prose-headings:font-display prose-headings:font-700 prose-headings:tracking-tight prose-headings:text-foreground 904 prose-h2:text-accent prose-h2:text-2xl prose-h2:mt-14 prose-h2:mb-5 prose-h2:scroll-mt-28 905 prose-p:text-muted-foreground prose-p:leading-relaxed 906 prose-strong:text-foreground prose-strong:font-600 907 prose-blockquote:border-l-4 prose-blockquote:border-l-accent prose-blockquote:bg-accent/5 prose-blockquote:rounded-r-xl prose-blockquote:py-4 prose-blockquote:px-6 prose-blockquote:text-foreground prose-blockquote:not-italic prose-blockquote:my-8 908 prose-a:text-accent prose-a:no-underline hover:prose-a:underline`,dangerouslySetInnerHTML:{__html:CNe(t.content)}})}),f.jsx(s4,{}),f.jsx(Hr,{})]}):f.jsx(DV,{})},RNe=()=>{const[e,t]=k.useState(""),[r,n]=k.useState(""),[i,a]=k.useState(!1),o=ek(),s=async l=>{l.preventDefault(),a(!0);const{data:c,error:u}=await kr.auth.signInWithPassword({email:e,password:r});if(u){Ul.error("Invalid credentials"),a(!1);return}const{data:d}=await kr.from("user_roles").select("role").eq("user_id",c.user.id).eq("role","admin").maybeSingle();if(!d){await kr.auth.signOut(),Ul.error("Access denied"),a(!1);return}o("/admin")};return f.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center px-4",children:f.jsxs("form",{onSubmit:s,className:"w-full max-w-sm space-y-4",children:[f.jsx("h1",{className:"text-2xl font-bold text-foreground text-center",children:"Admin Login"}),f.jsx("input",{type:"email",placeholder:"Email",value:e,onChange:l=>t(l.target.value),required:!0,className:"w-full rounded-lg border border-border bg-secondary/50 px-4 py-3 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-accent/50"}),f.jsx("input",{type:"password",placeholder:"Password",value:r,onChange:l=>n(l.target.value),required:!0,className:"w-full rounded-lg border border-border bg-secondary/50 px-4 py-3 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-accent/50"}),f.jsx("button",{type:"submit",disabled:i,className:"w-full rounded-lg bg-primary px-4 py-3 text-sm font-semibold text-primary-foreground hover:opacity-90 transition-opacity disabled:opacity-50",children:i?"Signing inâ¦":"Sign In"})]})})},INe=()=>{const e=ek(),[t,r]=k.useState("contacts"),[n,i]=k.useState([]),[a,o]=k.useState([]),[s,l]=k.useState([]),[c,u]=k.useState(!0),[d,h]=k.useState(!1);k.useEffect(()=>{(async()=>{const{data:{session:A}}=await kr.auth.getSession();if(!A){e("/admin/login");return}const{data:T}=await kr.from("user_roles").select("role").eq("user_id",A.user.id).eq("role","admin").maybeSingle();if(!T){await kr.auth.signOut(),e("/admin/login");return}h(!0),p()})()},[e]);const p=async()=>{u(!0);const[_,A,T]=await Promise.all([kr.from("contact_submissions").select("*").order("created_at",{ascending:!1}),kr.from("newsletter_subscribers").select("*").order("created_at",{ascending:!1}),kr.from("page_views").select("*").order("created_at",{ascending:!1}).limit(500)]);i(_.data??[]),o(A.data??[]),l(T.data??[]),u(!1)},y=async()=>{await kr.auth.signOut(),e("/admin/login")},m=new Date().toDateString(),g=s.filter(_=>new Date(_.created_at).toDateString()===m).length,b=new Date;b.setDate(b.getDate()-7);const v=s.filter(_=>new Date(_.created_at)>=b).length,x={};s.forEach(_=>{x[_.path]=(x[_.path]||0)+1});const S=Object.entries(x).sort((_,A)=>A[1]-_[1]).slice(0,10);if(!d)return null;const w=[{key:"contacts",label:"Contact Forms"},{key:"newsletter",label:"Newsletter"},{key:"visitors",label:"Visitors"}];return f.jsx("div",{className:"min-h-screen bg-background p-6 md:p-10",children:f.jsxs("div",{className:"max-w-6xl mx-auto",children:[f.jsxs("div",{className:"flex items-center justify-between mb-8",children:[f.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Admin Dashboard"}),f.jsx("button",{onClick:y,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Sign Out"})]}),f.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-8",children:[f.jsxs("div",{className:"rounded-xl border border-border bg-card p-5",children:[f.jsx("p",{className:"text-sm text-muted-foreground",children:"Contact Submissions"}),f.jsx("p",{className:"text-3xl font-bold text-foreground mt-1",children:n.length})]}),f.jsxs("div",{className:"rounded-xl border border-border bg-card p-5",children:[f.jsx("p",{className:"text-sm text-muted-foreground",children:"Newsletter Subscribers"}),f.jsx("p",{className:"text-3xl font-bold text-foreground mt-1",children:a.length})]}),f.jsxs("div",{className:"rounded-xl border border-border bg-card p-5",children:[f.jsx("p",{className:"text-sm text-muted-foreground",children:"Views Today"}),f.jsx("p",{className:"text-3xl font-bold text-foreground mt-1",children:g})]}),f.jsxs("div",{className:"rounded-xl border border-border bg-card p-5",children:[f.jsx("p",{className:"text-sm text-muted-foreground",children:"Views (7 days)"}),f.jsx("p",{className:"text-3xl font-bold text-foreground mt-1",children:v})]})]}),f.jsx("div",{className:"flex gap-2 mb-6",children:w.map(_=>f.jsx("button",{onClick:()=>r(_.key),className:`px-4 py-2 rounded-lg text-sm font-medium transition-colors ${t===_.key?"bg-primary text-primary-foreground":"bg-secondary text-foreground hover:bg-secondary/80"}`,children:_.label},_.key))}),c?f.jsx("p",{className:"text-muted-foreground",children:"Loadingâ¦"}):t==="contacts"?n.length===0?f.jsx("p",{className:"text-muted-foreground",children:"No contact submissions yet."}):f.jsx("div",{className:"overflow-x-auto rounded-xl border border-border",children:f.jsxs("table",{className:"w-full text-sm",children:[f.jsx("thead",{className:"bg-muted/50 text-left",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-4 py-3 font-medium text-muted-foreground",children:"Date"}),f.jsx("th",{className:"px-4 py-3 font-medium text-muted-foreground",children:"Name"}),f.jsx("th",{className:"px-4 py-3 font-medium text-muted-foreground",children:"Email"}),f.jsx("th",{className:"px-4 py-3 font-medium text-muted-foreground",children:"Location"}),f.jsx("th",{className:"px-4 py-3 font-medium text-muted-foreground",children:"Company"}),f.jsx("th",{className:"px-4 py-3 font-medium text-muted-foreground",children:"Type"}),f.jsx("th",{className:"px-4 py-3 font-medium text-muted-foreground",children:"Source"}),f.jsx("th",{className:"px-4 py-3 font-medium text-muted-foreground",children:"Details"})]})}),f.jsx("tbody",{children:n.map(_=>f.jsxs("tr",{className:"border-t border-border",children:[f.jsx("td",{className:"px-4 py-3 text-foreground whitespace-nowrap",children:new Date(_.created_at).toLocaleDateString()}),f.jsx("td",{className:"px-4 py-3 text-foreground",children:_.name}),f.jsx("td",{className:"px-4 py-3 text-foreground",children:_.email}),f.jsxs("td",{className:"px-4 py-3 text-foreground",children:[_.city,", ",_.state]}),f.jsx("td",{className:"px-4 py-3 text-foreground",children:_.company_name||"â"}),f.jsx("td",{className:"px-4 py-3 text-foreground",children:_.business_type}),f.jsx("td",{className:"px-4 py-3 text-foreground",children:_.how_did_you_hear}),f.jsx("td",{className:"px-4 py-3 text-foreground max-w-[200px] truncate",children:_.additional_details||"â"})]},_.id))})]})}):t==="newsletter"?a.length===0?f.jsx("p",{className:"text-muted-foreground",children:"No newsletter subscribers yet."}):f.jsx("div",{className:"overflow-x-auto rounded-xl border border-border",children:f.jsxs("table",{className:"w-full text-sm",children:[f.jsx("thead",{className:"bg-muted/50 text-left",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-4 py-3 font-medium text-muted-foreground",children:"Date"}),f.jsx("th",{className:"px-4 py-3 font-medium text-muted-foreground",children:"Name"}),f.jsx("th",{className:"px-4 py-3 font-medium text-muted-foreground",children:"Email"})]})}),f.jsx("tbody",{children:a.map(_=>f.jsxs("tr",{className:"border-t border-border",children:[f.jsx("td",{className:"px-4 py-3 text-foreground whitespace-nowrap",children:new Date(_.created_at).toLocaleDateString()}),f.jsx("td",{className:"px-4 py-3 text-foreground",children:_.name}),f.jsx("td",{className:"px-4 py-3 text-foreground",children:_.email})]},_.id))})]})}):f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"rounded-xl border border-border",children:[f.jsx("div",{className:"px-4 py-3 bg-muted/50 border-b border-border",children:f.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Top Pages"})}),S.length===0?f.jsx("p",{className:"p-4 text-muted-foreground",children:"No page views yet."}):f.jsxs("table",{className:"w-full text-sm",children:[f.jsx("thead",{className:"text-left",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-4 py-3 font-medium text-muted-foreground",children:"Page"}),f.jsx("th",{className:"px-4 py-3 font-medium text-muted-foreground text-right",children:"Views"})]})}),f.jsx("tbody",{children:S.map(([_,A])=>f.jsxs("tr",{className:"border-t border-border",children:[f.jsx("td",{className:"px-4 py-3 text-foreground",children:_}),f.jsx("td",{className:"px-4 py-3 text-foreground text-right",children:A})]},_))})]})]}),f.jsxs("div",{className:"overflow-x-auto rounded-xl border border-border",children:[f.jsx("div",{className:"px-4 py-3 bg-muted/50 border-b border-border",children:f.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Recent Page Views"})}),f.jsxs("table",{className:"w-full text-sm",children:[f.jsx("thead",{className:"text-left",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-4 py-3 font-medium text-muted-foreground",children:"Time"}),f.jsx("th",{className:"px-4 py-3 font-medium text-muted-foreground",children:"Page"}),f.jsx("th",{className:"px-4 py-3 font-medium text-muted-foreground",children:"Referrer"})]})}),f.jsx("tbody",{children:s.slice(0,50).map(_=>f.jsxs("tr",{className:"border-t border-border",children:[f.jsx("td",{className:"px-4 py-3 text-foreground whitespace-nowrap",children:new Date(_.created_at).toLocaleStr
908ing()}),f.jsx("td",{className:"px-4 py-3 text-foreground",children:_.path}),f.jsx("td",{className:"px-4 py-3 text-foreground truncate max-w-[200px]",children:_.referrer||"â"})]},_.id))})]})]})]})]})})},$Ne=()=>(k.useEffect(()=>{document.title="Terms and Conditions | clubcloudâ¢"},[]),f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(Wr,{}),f.jsx("main",{className:"container mx-auto max-w-4xl px-6 pt-32 pb-20",children:f.jsxs("article",{className:"prose prose-slate max-w-none prose-headings:font-display prose-headings:text-foreground prose-h1:text-4xl prose-h2:text-2xl prose-h2:mt-10 prose-h3:text-xl prose-a:text-accent hover:prose-a:underline prose-strong:text-foreground",children:[f.jsx("h1",{children:"clubcloud⢠Terms and Conditions"}),f.jsx("p",{className:"text-muted-foreground",children:f.jsx("em",{children:"Updated: November 13, 2025"})}),f.jsx("p",{children:'Please carefully review the Terms and Conditions ("Terms and Conditions", "Terms") before utilizing the Clubcloud, LLC. Website and Progressive Web Application ("Platform") operated by Clubcloud, LLC. ("Us", "We", "Our"). For the purposes of these Terms and Conditions, the term "Club" shall encompass the Club, Fitness Center, Health Center, Tennis Center, Racquet Center, Gym, or any other organization for which the use of the Platform is the reason, the individual who has agreed to these terms and Conditions or has had a parent or guardian agree to their behalf (You, Your) are accessing the Platform.'}),f.jsx("h2",{children:"1. Conditions of Use"}),f.jsx("p",{children:"By using the Platform, You certify that You have read and understood this Agreement and that You agree to comply with its terms. If You do not want to be bound by the Terms of this Agreement, You are advised to leave the Platform, accordingly. Clubcloud, LLC. only grants use and access of this Platform, its products, and its services to those who have accepted its terms."}),f.jsx("h2",{children:"2. Privacy Policy"}),f.jsxs("p",{children:["Before You continue using Our Platform, You must read Our ",f.jsx("a",{href:"/privacy",children:"Privacy Policy"})," regarding Our user data collection. It will help You better understand Our practices."]}),f.jsx("h2",{children:"3. Age Restriction"}),f.jsx("p",{children:"You must be at least 18-years of age (19-years-old in Alabama and Nebraska, and 21-years-old in Indiana, Mississippi, New York, and Puerto Rico) or these Terms and Conditions must be agreed to by Your parent or guardian before You can use this Platform. By using this Platform, You warrant that You are at least 18-years of age (19-years-old in Alabama and Nebraska, and 21-years-old in Indiana, Mississippi, New York, and Puerto Rico) or Your parent or guardian has agreed to these Terms and Conditions on Your behalf, and You will legally adhere to this Agreement. Clubcloud, LLC. assumes no responsibility for liabilities related to age misrepresentation."}),f.jsx("h2",{children:"4. Intellectual Property"}),f.jsx("p",{children:"You agree that You will not reproduce, reverse engineer, or redistribute the Clubcloud, LLC's intellectual property in any way, including electronic, digital, or new trademark registrations without Our express, written permission."}),f.jsx("p",{children:"You agree that You have the ownership or licensed right to any trademarks, service marks, registered marks, logos, or combinations of any of those logos or marks that You use on the Platform."}),f.jsx("p",{children:"You grant Clubcloud, LLC. a royalty-free and non-exclusive license to display, use, copy, transmit, and broadcast the content You upload and publish. For issues regarding intellectual property claims, You should contact the company who claims ownership of the intellectual property to come to an agreement."}),f.jsx("h2",{children:"5. User Accounts"}),f.jsx("p",{children:"As a User of this Platform, You may be asked to register with Us and provide private information. You are responsible for ensuring the accuracy of this information, and You are responsible for maintaining the safety and security of Your identifying information. You are also responsible for all activities that occur under Your account or password."}),f.jsx("p",{children:"If You think there are any possible issues regarding the security of Your account on the Platform, inform Us immediately so We may address them accordingly."}),f.jsx("p",{children:"We reserve all rights to terminate accounts, edit or remove content and cancel orders at Our sole discretion."}),f.jsx("h2",{children:"6. Applicable Law"}),f.jsx("p",{children:"By using the Platform, This Agreement is governed by and construed in accordance with the internal laws of the State of Connecticut without giving effect to any choice or conflict of law provision or rule. Any legal suit, action or proceeding arising out of or related to this Agreement or the Application shall be instituted exclusively in the courts of the State of Connecticut. You waive any and all objections to the exercise of jurisdiction over You by such courts and to venue in such courts."}),f.jsx("h2",{children:"7. Disputes"}),f.jsx("p",{children:"Any dispute related in any way to Your use of the Platform or to products You purchase from Us shall be heard by Connecticut State Courts. You consent to exclusive jurisdiction and venue of such courts."}),f.jsx("h2",{children:"8. Indemnification and Hold Harmless"}),f.jsx("p",{children:"You shall defend, indemnify, and hold Clubcloud and the Club, as well Clubcloud's and the Club's board members, administrators, members, partners, owners, employees, agents, attorneys, volunteers, interns, and subcontractors harmless against any and all claims, suites, or demands of liability, loss, damage, and expense (including reasonable attorneys' fees) resulting from use of the Platform or its performance, to the extent that such loss, expense, damage, or liability was caused, in whole or are in part any and all NEGLIGENCE of Clubcloud; the Club; Clubcloud's or the Club's board members, administrators, members, partners, owners, employees, agents, attorneys, volunteers, interns, and subcontractors; or any company who has been integrated into the Platform by and through application programming interface (API). The duty and obligation to defend shall arise immediately upon tender of a claim or lawsuit to Clubcloud or the Club."}),f.jsx("h2",{children:"9. Disclaimers of Warranties"}),f.jsxs("p",{children:[f.jsx("strong",{children:"A."}),' The Platform is provided "as is, where is" and neither Clubcloud nor the Club makes any warranties, either express or implied, as to the Platform provided to You, or any other matter whatsoever, and disclaims all implied warranties, including all ',f.jsx("em",{children:"implied warranties of merchantability, fitness for any particular purpose, title, non-infringement and the accuracy, completeness or fitness of any data or services provided or processed pursuant to these Terms and Conditions."})," Without limiting the foregoing, Clubcloud does not warrant that the Platform will meet any or all of Your requirements or will operate in a particular computer environment or that the operation of the Platform will be uninterrupted or error-free. In no event shall Clubcloud be liable for any direct, special, indirect, incidental, consequential, punitive or exemplary damages, loss of use, loss of profits, or loss of goodwill, including but not limited to damages or loss due to lost data, lost profits, or lost savings, arising out of or in connection with the use or inability to use, or the performance or lack thereof, of the Platform, even if You have been advised of the possibility thereof. Clubcloud's and the Club's entire liability for any claim arising hereunder shall not exceed ten U.S. dollars ($10.00 U.S.)."]}),f.jsxs("p",{children:[f.jsx("strong",{children:"B."})," You hereby release, and agree that You will not sue Clubcloud or the Club, or Clubcloud's or the Club's board members, administrators, members, partners, owners, employees, agents, attorneys, volunteers, interns, and subcontractors for any and all damages sustained by You because of Your use of the Platform, even if said damages are due to the ",f.jsx("strong",{children:"NEGLIGENCE"})," of Clubcloud; the Club; Clubcloud's or the Club's board members, administrators, members, partners, owners, employees, agents, attorneys, volunteers, interns, and subcontractors; or any company whose product has been integrated into the Product or Services by and through application programming interface (API)."]}),f.jsx("hr",{className:"my-12"}),f.jsxs("p",{className:"text-sm text-muted-foreground",children:["See also: ",f.jsx("a",{href:"/privacy",children:"Privacy Policy"})," · ",f.jsx("a",{href:"/sms-terms",children:"SMS/RCS Text Messaging Terms"})," · ",f.jsx("a",{href:"/eula",children:"End User License Agreement"})]})]})}),f.jsx(Hr,{})]}
908)),MNe=()=>(k.useEffect(()=>{document.title="Privacy Policy | clubcloudâ¢"},[]),f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(Wr,{}),f.jsx("main",{className:"container mx-auto max-w-4xl px-6 pt-32 pb-20",children:f.jsxs("article",{className:"prose prose-slate max-w-none prose-headings:font-display prose-headings:text-foreground prose-h1:text-4xl prose-h2:text-2xl prose-h2:mt-10 prose-h3:text-xl prose-a:text-accent hover:prose-a:underline prose-strong:text-foreground",children:[f.jsx("h1",{children:"clubcloud⢠Safety / Privacy Policy"}),f.jsx("p",{className:"text-muted-foreground",children:f.jsx("em",{children:"Last Updated Effective Date: November 13, 2025"})}),f.jsx("p",{children:"This Safety / Privacy Policy describes how Clubcloud collects, stores, uses, and shares Your (the person or entity using the Clubcloud platform and agreeing to this Privacy Policy) Personal Information when You visit our site or platform, book an event, sign up for an event, make a purchase, pay for an event, pay membership fees, pay subscription fees, or pay transaction fees."}),f.jsx("p",{children:"Despite all reasonable security precautions and processes, such as password protection, encryption technology, and use of firewall technology, no data transmission over the Internet can be guaranteed to be 100% secure."}),f.jsx("p",{children:"As a result, while we strive to protect your Personally Identifiable Information, we cannot guarantee or warrant the security of any information you transmit to or from our website, and you do so at your own risk. Once we receive your transmission, we will take commercially reasonable precautions to protect its security on our systems."}),f.jsx("p",{children:"If you open a Personal Account with Clubcloud, your password will be your personal, secret entry code to our website. When you access your account information, it is kept on a secure server and a password is needed to access any account areas."}),f.jsx("p",{children:"You can change your password as many times as you like. We recommend that you keep your password in a safe place and that you always sign off your account and close your browser window once you have finished your visit."}),f.jsx("p",{children:"These precautions will help prevent someone else from accessing your account, especially if you share a computer with other people or use a computer in a public place such as an Internet cafe or library."}),f.jsx("p",{children:"This Safety / Privacy Policy only applies to the way the Clubcloud, LLC. platform collects and utilizes Your Personal Information - if it collects Your Personal Information at all. It does not apply to any club that utilizes the platform (website and application) as it is the responsibility of each club to implement its own Safety / Privacy procedures and Policy(ies). Neither Clubcloud, LLC nor any of its holdings assumes responsibly or liability for how each club uses Personal Information."}),f.jsxs("p",{children:["Please read this Policy carefully as it contains important information about how we use Your personal information on our platform, to provide the products, memberships, and event registrations that You request, improve Your purchasing and registration experience, and communicate with You. By interacting with us in these ways and/or providing Your Personal Information, You agree to this Privacy Policy. If You do not agree, You must not interact with us or see the section on ",f.jsx("a",{href:"#your-rights",children:"Your Rights"})," below to understand Your alternate choices."]}),f.jsx("h2",{children:"1. Information We Collect and How We Use It"}),f.jsx("p",{children:'We collect information the identifies, describes, or can reasonably be associated with You ("Personal Information"). Personal Information does not include publicly available information or government records or any data that has been deidentified, aggregated, or otherwise anonymized.'}),f.jsx("p",{children:"Depending on how You interact with us, we may collect and use Your Personal Information differently."}),f.jsx("h3",{children:"A. Visiting our Site/Platform"}),f.jsx("p",{children:'If You visit the Clubcloud site or reservation, booking, club management platform, we may use cookies, tags, pixels, and similar tracking technologies ("Cookies") to support, customize, evaluate, improve, and secure our site and platform. We also use Cookies to understand which items, offerings, and/or products may be of interest to You. The
908se Cookies automatically collect information when You visit the site. For more information on how our site and platform use Cookies, please refer to our Cookie Policy, below.'}),f.jsx("h3",{children:"B. Joining A Mailing List"}),f.jsxs("p",{children:["If You join a Clubcloud mailing list, which is independent of an individual club's mailing list, through our site or platform, we collect Your email address from You to provide You with information about products or promotional opportunities that may interest You. ",f.jsx("strong",{children:"We do not sell Your email address or provide it to third parties for their direct marketing purposes."}),' You can change how often You receive our email or unsubscribe all together by clicking "Unsubscribe" link at the bottom of any Clubcloud, LLC., email. If You have a Clubcloud account, You can unsubscribe though the "Manage Preferences" tab in Your account settings.']}),f.jsx("h3",{children:"C. Making a Purchase or Reservation or Paying a Subscription or Transaction Fee"}),f.jsx("p",{children:"1. If You make a purchase or reservation or pay a subscription or transaction fee through the Clubcloud site or platform, which is not made through an individual club's use of the Clubcloud site or application, we collect the following information:"}),f.jsxs("ul",{children:[f.jsx("li",{children:"Personal identifiers such as: Your name, Your phone number, Your email address, and Your mailing address;"}),f.jsx("li",{children:"Commercial Information, which includes any and all order histories; and"}),f.jsx("li",{children:"Financial Information, including Your payment method and billing address. We collect credit card payments from users when making a purchase. No payments are collected without a user's explicit authorization. All credit card information is processed for us by a third-party merchant processing service, and we do not have access to any of our users' personal credit card information. Processing of all credit cards follows credit card industry standards. As always, consumers making purchases must have a valid credit card and have a good credit standing. Unless the user/consumer directs their individual club in writing to issue a refund through an alternative method, all refunds shall be made to the user's/consumer's credit card that was used to make the purchase or payment, whether or not that card has been cancelled or replaced. In most cases, the user's/consumer's issuing bank will not accept a refund to a cancelled card; however, in some instances, refunds to a cancelled card are accepted by an issuing bank. If that occurs, the user/consumer agrees to hold their individual club and Clubcloud, LLC., harmless for the amount of that refund or any concomitant damages."})]}),f.jsxs("p",{children:["⤠We use clubcloud Pay⢠for processing of payment, analytics, and other business services. You can learn more about the ",f.jsx("a",{href:"https://usio.com/privacy-policy-usio/",target:"_blank",rel:"noopener noreferrer",children:"clubcloud Pay privacy policy"}),"."]}),f.jsx("p",{children:"We use this information to complete Your purchase or reservation and, if You opt in to receiving Clubcloud emails, to provide You information about exclusive offers and products based upon Your past purchase history and the items that You considered purchasing or have saved in Your cart."}),f.jsx("p",{children:"2. If You make a purchase or reservation through an individual club's white-labeled use of the Clubcloud site or application, Clubcloud does not own Your data, and has only the limited administrative control over that data that Your individual club permits. In that case, it is Your club's responsibility to protect Your data. Please refer to Your individual club's Safety / Privacy policy."}),f.jsxs("p",{children:["3. We use the Odoo Enterprise Resource Planning platform for some of our ERP functions. You can learn more about the ",f.jsx("a",{href:"https://www.odoo.com/privacy",target:"_blank",rel:"noopener noreferrer",children:"Odoo Privacy Policy"}),"."]}),f.jsx("h3",{children:"D. Contacting Customer Services and/or Customer Support"}),f.jsx("p",{children:"If You contact Customer Services and/or Customer Support for questions, te
908chnical support, comments, or feedback, we may collect the following Personal Information:"}),f.jsxs("ul",{children:[f.jsx("li",{children:"Personal identifiers such as: Your name, Your phone number, Your contact information, Your email address, Your phone number, and Your mailing address;"}),f.jsx("li",{children:"Commercial Information, including any order, business, or maintenance history;"}),f.jsx("li",{children:"Audio or video recordings if You call us or send us video content;"}),f.jsx("li",{children:"Your comments or other details about Your request to Customer Services and/or Customer Support."})]}),f.jsx("p",{children:"We use this information to respond to Your request for Customer Support. We take your comments and feedback seriously, so we may also learn from this information to improve our quality assurance and for training purposes."}),f.jsx("h3",{children:"E. Interacting with us on Social Media"}),f.jsx("p",{children:"If you follow or friend us on any social media networking platforms, such as Twitter, Facebook, Instagram, and Pinterest, both Clubcloud and/or the social media platform may collect Personal Information about you, including:"}),f.jsxs("ul",{children:[f.jsx("li",{children:"Personal Identifiers, such as the username or handle you use for that social media platform;"}),f.jsx("li",{children:"Content that you share or post on Clubcloud pages or threads; and"}),f.jsx("li",{children:"Depending on your privacy settings, your contacts, followers, or friends on that social media platform."})]}),f.jsx("p",{children:"We use the information that we receive through social medial platforms to enhance our social media presence, improve our products, and deliver relevant information about promotional opportunities, marketing materials, or other incentives. We do not control and are not responsible for how social media platforms use the information they may collect about you when you use social media. Instead, you should look to the social medal platform's privacy policy and terms to understand their practices or control choices."}),f.jsx("h3",{children:"F. Your Club's use of your data"}),f.jsx("p",{children:"1. The following data may be disclosed by your club as part of its operations:"}),f.jsxs("ul",{children:[f.jsx("li",{children:"Information on members which includes name, address, email address, phone number or any other contact information to its membership."}),f.jsx("li",{children:"The time, date, location, and participants of reservations, classes, and events."})]}),f.jsx("h2",{children:"2. Cookie Policy"}),f.jsxs("p",{children:['Our site(s) and platform use cookies, tags, pixels, and similar tracking technologies ("Cookies"). A Cookie is a small piece of a text file that is places on your website browser when you visit a website. These include our own first-party Cookies and third-party Cookies of our service providers and marketing partners. Some Cookies are only stored temporarily and are destroyed each time you close the web browser ("Session Cookies"). Our site also uses "Persistent Cookies," which do not delete when you close your browser and may collect our platform data for a set period of time after you have left our site or platform. You can find out more about Cookies and how they work at ',f.jsx("a",{href:"http://www.cookiepedia.co.uk",target:"_blank",rel:"noopener noreferrer",children:"Cookiepedia"}),"."]}),f.jsx("h3",{children:"A. How We Use Cookies"}),f.jsxs("ul",{children:[f.jsxs("li",{children:[f.jsx("strong",{children:"Website and Platform Operation."})," Some Cookies help us run our site and platform securely and enable basic functions like page loading and navigation;"]}),f.jsxs("li",{children:[f.jsx("strong",{children:"Performance and Analytics."})," Some Cookies help us analyze how you interact with our site and platform, including any items that you viewed and may consider. The data enables us to improve our site's look, feel, and performance, and identify our best-selling trends;"]}),f.jsxs("li",{children:[f.jsx("strong",{children:"Advertisements."})," Cookies allow us to deliver advertisements that are meaningful to you. Our third-party advertising partners may use these Cookies to build a profile of your interests, deliver relevant advertising on other sites, and measure the effectiveness of advertisements; and"]}),f.jsxs("li",{children:[f.jsx("strong",{children:"Social Media."})," Our site and platform enable you to share content on a range of social media platforms. If you do so, Cookies may collect information about what items or content you shared on your social media account."]})]}),f.jsx("h3",{children:"B. How to Manage Cookies"}),f.jsx("p",{children:"If you wish to prevent Cookies from tracking your activity on our site and platform and across multiple websites, you can set your browser to block certain Cookies or notify you when a Cookie is set. If you block Cookies, certain features on our site and platform may not work. For more information on how you can customize your browser's Cookie setting, please visit the link to your web browser below:"}),f.jsxs("ul",{children:[f.jsxs("li",{children:[f.jsx("a",{href:"https://support.google.com",target:"_blank",rel:"noopener noreferrer",children:"Google Chrome"}),";"]}),f.jsxs("li",{children:[f.jsx("a",{href:"https://support.apple.com",target:"_blank",rel:"noopener noreferrer",children:"Safari"}),";"]}),f.jsxs("li",{children:[f.jsx("a",{href:"https://support.microsoft.com",target:"_blank",rel:"noopener noreferrer",children:"Internet Explorer"}),"; and"]}),f.jsxs("li",{children:[f.jsx("a",{href:"https://support.mozilla.org",target:"_blank",rel:"noopener noreferrer",children:"Mozilla FireFox"}),"."]})]}),f.jsxs("p",{children:["You may opt-out of interest-based advertising in general by visiting the ",f.jsx("a",{href:"https://optout.aboutads.info",target:"_blank",rel:"noopener noreferrer",children:"Digital Advertising Alliance's"}
908)," or ",f.jsx("a",{href:"https://optout.networkadvertising.org",target:"_blank",rel:"noopener noreferrer",children:"Network Advertising Initiative's"})," websites."]}),f.jsx("p",{children:f.jsx("strong",{children:"We are not responsible for the completeness, effectiveness, or accuracy of these or any other third-party opt-out options."})}),f.jsx("h3",{children:"C. Do Not Track"}),f.jsx("p",{children:'Some website browsers enable "Do Not Track" requests to block your activity from being tracked across web pages and devices. Our site does not recognize Do Not Track signals as there is no industry standard way to do so effectively.'}),f.jsx("h2",{children:"3. When and Why We May Disclose Your Information"}),f.jsx("p",{children:"Clubcloud may at times work with venders and service providers to make our website and platform function, improve our offerings, and run our day-to-day operations."}),f.jsx("h3",{children:"A. Disclosures to Provide Services You Request and Support Operations"}),f.jsxs("ul",{children:[f.jsxs("li",{children:[f.jsx("strong",{children:"Service Providers."})," We rely on vendors, professionals, and technical support providers to help us operate the site and platform and with our business by doing things like designing the website, processing your payments through Stripe, and supporting our customer services and technical support;"]}),f.jsxs("li",{children:[f.jsx("strong",{children:"Marketing Partners."})," We rely on other vendors to help us place ads, customize them to certain audiences or users, understand whether those ads are successful, and improve our marketing efforts."]}),f.jsxs("li",{children:[f.jsx("strong",{children:"With Your Permission."})," Under some circumstances, we may ask you for your permission to share your Personal Information with third parties outside the scope of this Privacy / Security Policy."]}),f.jsxs("li",{children:[f.jsx("strong",{children:"Public Communication."})," We may allow you to make public comments on our website in the form of reviews and other comments. Please remember that any information that is disclosed in these areas becomes public information and you should exercise caution when deciding to disclose your personal information."]})]}),f.jsx("h3",{children:"B. Disclosures Required or Permitted by Law"}),f.jsx("p",{children:"We will disclose Personally Identifiable Information, after subpoena or written request, to cooperate with a law enforcement investigation. We reserve the right to report to law enforcement agencies any activities that we in good faith believe to be unlawful."}),f.jsx("p",{children:"We do not voluntarily disclose user personal information to unaffiliated third parties. If we are served with a subpoena for personal information of a user, we will provide notice to the user whose personal information is sought by the subpoena to give them the opportunity to object to the subpoena. If the user does not object to the subpoena within a specified period of time, we will comply with the terms of the subpoena. Should the user object to the subpoena in a court of law, we will abide by whatever decision is reached by such court of law."}),f.jsx("p",{children:"Nothing in this Privacy / Security Policy restricts Clubcloud, LLC., from disclosing Personal Information to:"}),f.jsxs("ul",{children:[f.jsx("li",{children:"Prevent, investigate, or provide notice of fraud, unlawful or criminal activity, or unauthorized access to or use of Personal Information, our website, platform, or data systems;"}),f.jsx("li",{children:"Collect, use, or share aggregate de-identified data;"}),f.jsx("li",{children:"Comply with federal, state, or local laws;"}),f.jsx("li",{children:"Comply with a civil, criminal, or regulatory inquiry, investigation, subpoena, or summons by federal, state, or local authorities;"}),f.jsx("li",{children:"Cooperate with law enforcement agencies concerning conduct or activity we, our service providers, or third parties reasonably and in good faith believes may violate federal, state, or local law;"}),f.jsx("li",{children:"Exercise our rights or defend ourselves against legal actions; or"}),f.jsx("li",{children:"Transfer Personal Information as part of an actual or proposed organizational transaction, such as a merger, acquisition, or dissolution, or if insolvency occurs, bankruptcy or receivership."})]}),f.jsx("h3",{children:"C. Disclosures by Your Club"}),f.jsx("p",{children:"1. The following data may be disclosed by your club as part of its operations:"}),f.jsxs("ul",{children:[f.jsx("li",{children:"Information on members which includes name, address, email address, phone number or any other contact information."}),f.jsx("li",{children:"The time, date, location, and participants of reservations, classes, and events."})]}),f.jsx("h2",{id:"your-rights",children:"4. Your Rights"}),f.jsx("p",{children:"You have the option to control when and how your Personal Information is used for purposes not directly related to placement, processing, fulfillment, or delivery of the product or services that you purchase."}),f.jsx("h3",{children:"A. Unsubscribe from Emails"}),f.jsx("p",{children:'You can change how often you receive our emails or unsubscribe all together by clicking the "Unsubscribe" link at the bottom of any Clubcloud email, or if you have an account, through the "Manage Preferences" tab in your account settings.'}),f.jsx("h3",{children:"B. Reviewing, Changing, Updating or Opting Out of Your Account Information"}),f.jsx("p",{children:"You can review your account information and manage preferences any time by logging into your Clubcloud account. You can also update or change your password, address, and payment information at any time."}),f.jsx("p",{children:'If you would like to modify your account simply return to our website, click on the link called "Your Account". Once you have signed into your account a menu of options is provided for you to delete or edit your stored account information.'}),f.jsx("p",{children:"Unfortunately, to the extent that such information is also stored in other databases, we cannot al
908ways ensure that such corrections or deletions will reach the other databases. We will use all reasonable efforts to ensure that your information is removed from or corrected in our records."}),f.jsxs("p",{children:["You may opt-out of receiving communications from our partners, and from us, by sending an email to: ",f.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]}),f.jsx("h2",{children:"5. California Residents' Privacy Rights"}),f.jsx("p",{children:"For our clients and customers who are California residents, you may have additional rights over Personal Information. If you are not a California Resident, this section does not apply to you."}),f.jsx("h3",{children:"A. The Right to Request More Information"}),f.jsx("p",{children:"You may have the right to request more information about how we treated your Personal Information in the past twelve (12) months, including:"}),f.jsxs("ul",{children:[f.jsx("li",{children:"The categories of Personal Information we collected about you;"}),f.jsx("li",{children:"The categories of sources from which we collected this information;"}),f.jsx("li",{children:"Our business or commercial purpose for collecting that information; and"}),f.jsx("li",{children:"The specific pieces of Personal Information we collected about you."})]}),f.jsx("h3",{children:"B. The Right to Request Access"}),f.jsx("p",{children:"You also may have the right to request access to your Personal Information."}),f.jsx("h3",{children:"C. The Right to Request Deletion"}),f.jsx("p",{children:"Under certain conditions, you may have the right to request that we delete your Personal Information. Simply logging out of your account does not delete your account or Personal Information we may have collected."}),f.jsx("h3",{children:"D. How to Exercise these Rights"}),f.jsxs("p",{children:["To submit request to exercise these rights you may contact us at ",f.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]}),f.jsx("p",{children:'For all requests, please clearly state that your request is related to "Your California Privacy Rights" and provide your name, street address, city state, zip code and an email address and phone number where you may be contacted. If you make a request, we will acknowledge we have received it within ten (10) days, and we have forty-five (45) days to respond to you.'}),f.jsx("h3",{children:"E. Verification"}),f.jsx("p",{children:"Before we can respond to your request, we must verify your identity using Personal Information. If we cannot verify your request, we will contact you for more information. If we cannot verify our identity after a good faith attempt, we may deny the request, and if so, we will explain the basis for denial."}),f.jsx("h3",{children:"F. Designating an Authorized Agent"}),f.jsx("p",{children:'You may designate someone to submit requests and act on your behalf (an "Authorized Agent"). To do so, you must provide us with written permission to allow your Authorized Agent to act on your behalf.'}),f.jsx("h3",{children:"G. Do Not Track Requests"}),f.jsx("p",{children:'As described above, we use Cookies to collect information about your internet activity to help us provide you with relevant advertisements, incentives, or offers. Some web browsers or smartphones can be set to "Do Not Track" to block user activity from being tracked across web pages or devices. Our site and platform do not recognize "Do Not Track" signals.'}),f.jsx("h3",{children:"H. Third-Party Marketing and Selling"}),f.jsx("p",{children:'We may provide your information to third parties for their direct marketing purposes. We may also collect your unique online identifiers, Internet Protocol address, browsing history, search history, and information about how you interact with our website. We may disclose this information with a third-party marketing company, social medial platform, or analytics partners that support our online marketing efforts, deliver meaningful ads to you, connect with social media networking, and help us improve the use of our website and services. Under California Law, you have the right to opt-out from these disclosures of Personal Information considered to be a "sale" as defined in the CCPA.'}),f.jsx("h3",{children:"I. No Discrimination"}),f.jsx("p",{children:"We will not unlawfully discriminate against you for exercising your rights."}
908),f.jsx("h2",{children:"6. Third-Party Links and Sites"}),f.jsx("p",{children:"Our site and platform may contain links to other websites. These websites may have different privacy and security policies from Clubcloud. A link to a third-party's website does not mean we endorse it or that we are affiliated with it. We do not exercise control over third-party websites, so we are not responsible for how they treat our Personal Information. We urge you to follow safe Internet practices and not to supply Personal Information to these websites before verifying their security and privacy policies."}),f.jsx("h2",{children:"7. Children's Policy"}),f.jsxs("p",{children:["The Clubcloud site and platform are intended for users who are eighteen-(18)-years-old or older. We do not knowingly collect Personal Information from children under the age of thirteen (13). If we learn that we have inadvertently received Personal Information from a child under the age of thirteen (13), we will delete such information from our records. If you are a parent of a child and believe we have collected your child's information, please contact us at ",f.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]}),f.jsx("h2",{children:"8. Changes to this Policy"}),f.jsx("p",{children:'We may update this Policy from time to time. The date this version of the Policy was updated is posted as the "Effective Date" above. If we make any material changes to this Policy, we will take reasonable steps to notify you. We encourage you to check this Policy periodically to ensure you have access to the most up-to-date information.'}),f.jsx("h2",{children:"9. Contact Us"}),f.jsxs("p",{children:["You may contact us by email at ",f.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})," for any questions you have about this Policy."]}),f.jsx("hr",{className:"my-12"}),f.jsxs("p",{className:"text-sm text-muted-foreground",children:["See also: ",f.jsx("a",{href:"/terms",children:"Terms and Conditions"})," · ",f.jsx("a",{href:"/sms-terms",children:"SMS/RCS Text Messaging Terms"})," · ",f.jsx("a",{href:"/eula",children:"End User License Agreement"})]})]})}),f.jsx(Hr,{})]})),DNe=()=>(k.useEffect(()=>{document.title="SMS/RCS Text Messaging Terms | clubcloudâ¢"},[]),f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(Wr,{}),f.jsx("main",{className:"container mx-auto max-w-4xl px-6 pt-32 pb-20",children:f.jsxs("article",{className:"prose prose-slate max-w-none prose-headings:font-display prose-headings:text-foreground prose-h1:text-4xl prose-h2:text-2xl prose-h2:mt-10 prose-h3:text-xl prose-a:text-accent hover:prose-a:underline prose-strong:text-foreground",children:[f.jsx("h1",{children:"SMS/RCS Text Messaging Terms & Conditions"}),f.jsx("p",{className:"text-muted-foreground",children:f.jsx("em",{children:"Updated: November 13, 2025"})}),f.jsx("p",{children:f.jsx("em",{children:'Please read these SMS/RCS Text Messaging Terms & Conditions carefully. By agreeing to these SMS/RCS Text Messaging Terms and Conditions, you expressly consent to receive transactional, non-marketing, and marketing text messages from your membership club and/or clubcloud, hereafter referred to as the "Club," at the mobile phone number(s) you provide.'})}),f.jsx("p",{children:f.jsx("em",{children:"You may Opt-out of these communications at any time by replying STOP to any text message from the Club or by otherwise contacting the Club as indicated below. You can receive help at any time by replying HELP to any text message from the Club or by contacting the Club as indicated below."})}),f.jsx("p",{children:f.jsx("em",{children:"Consent to receive non-marketing or marketing text messages is not required to purchase any products or services from the Club. Messaging and data rates may apply. By accepting these SMS/RCS Text Messaging Terms and Conditions, you also accept and agree to be bound by these SMS/RCS Text Messaging Terms & Conditions and any other applicable terms and agreements related to your use of the Club's services."})}),f.jsx("h2",{children:"I. Program Description"}),f.jsx("p",{children:`As part of the normal course of business, the Club may send you transactional, non-marketing, and/or marketing text messages, hereafter referred to as the "Club Program" or "Club's Program".`}),f.jsx("h2",{children:"II. Message Frequency"}),f.jsx("p",{children:"Under the Club's Program, the number of the Club's text messages that you receive may vary depending upon y
908our Club activity and your communication with the Club."}),f.jsx("h2",{children:"III. Cost"}),f.jsx("p",{children:"The Club does not impose a separate fee for sending or receiving the Club's Program text messages. Standard message and data rates may apply to each text message sent or received in connection with the Club's Program, as provided in your mobile number service rate plan. Please contact your mobile telephone carrier for pricing, plans, and information."}),f.jsx("h2",{children:"IV. Supported Carriers; Interruption"}),f.jsx("p",{children:"The Club Program should be available through your equipment or mobile device when the equipment or device is within the operating range of your wireless service provider. The Club's Program may not be available on all equipment/mobile devices, or through all wireless carriers, and not all functionalities of the Club Program are available on all equipment/mobile devices, or through all wireless carriers. The Club may, from time to time, in its discretion and without notice to you, limit the carriers that support the Club Program. Certain other carriers may not support the Club Program."}),f.jsx("p",{children:"Delivery of information and content to your equipment/mobile device may fail due to a variety of circumstances or conditions. The Club Program is subject to transmission limitation or interruption. You understand and acknowledge that mobile network services are outside of the Club's control, and the Club is not responsible or liable for issues arising therefrom, or the failure thereof, including, without limitation, technical, hardware, software, electronic, network, telephone or other communications malfunctions, errors or failures of any kind, errors in transmission, traffic congestion, lost or unavailable network connections, telephone connections, wireless phone connections, website, Internet, or ISP availability, unauthorized human intervention, traffic congestion, incomplete or inaccurate capture of entry information (regardless of cause) or failed, incomplete, garbled, jumbled or delayed transmissions which may limit or restrict your ability to receive or send a message, including any injury or damage to your or any other person's equipment/wireless device relating to or resulting from participating in or using the Club Program. If the Club Program is not available within your intended location, you agree that your sole remedy is to cease using the Club Program."}),f.jsx("h2",{children:"V. How to Opt-In"}),f.jsx("p",{children:"To opt-in to receive your first text message from the Club under the Club Program, accept these SMS/RCS Text Terms and Conditions. You will receive text messages until you Opt-Out. If at any time you Opt-Out and would like to re-subscribe type START."}),f.jsx("h2",{children:"VI. How to Opt-Out"}),f.jsx("p",{children:"To STOP receiving text messages from the Club, text STOP to the ten-digit long phone number from which the text messages are being sent. You may also opt out by providing written notice to the Club at the address on our website or calling the Club at the number on our website."}),f.jsx("h2",{children:"VII. Your Mobile Telephone Number"}),f.jsx("p",{children:"You represent that you are the account holder for the mobile telephone number(s) that you provide or that you have the account holder's permission to enter the mobile telephone number(s) that you provide and that you will not initiate messages to the mobile phone of any other person or entity. You agree to maintain accurate, complete, and up-to date information with the Club regarding your use of the Club Program, including, without limitation, notifying the Club in writing immediately if you change, or cease being the regular user of, your mobile telephone number. You agree to indemnify the Club in full for all claims, expenses, damages, and costs, including reasonable attorneys' fees, related to or caused in whole or in part by your failure to notify the Club if you change your telephone number, or cease being the regular user of, including, but not limited to, all claims, expenses, damages, and costs related to or arising under the Telephone C
908onsumer Protection Act, 47 U.S.C. § 227 et seq."}),f.jsx("h2",{children:"VIII. Privacy/Terms of Service"}),f.jsxs("p",{children:["Twilio's Privacy Policy is available ",f.jsx("a",{href:"https://www.twilio.com/en-us/legal/privacy",target:"_blank",rel:"noopener noreferrer",children:"here"}),"."]}),f.jsx("h2",{children:"IX. Release: No Warranties; Limitation of Liability"}),f.jsx("p",{children:"By participating in the Club Program, you agree to release and hold harmless the Club and its representatives, agents, successors, assigns, employees, officers and directors, from any and all liability, for loss, harm, damage, injury, attorneys' fees, cost or expense whatsoever including without limitation, property damage, personal injury and death that may occur in connection with the Club, or your use thereof, and for any claims, matters, or disputes based on violation of law or infringement or violation of any rights of any person or entity, including, without limitation, violation of publicity rights, defamation, or invasion of privacy."}),f.jsx("p",{children:f.jsx("strong",{children:"THE CLUB PROGRAM IS PROVIDED AS IS, WHERE IS AND WITH ALL FAULTS AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED, WRITTEN, ORAL OR ARISING UNDER CUSTOM OR TRADE. THE CLUB DISCLAIMS ALL WARRANTIES, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR PARTICULAR PURPOSES AND NON-INFRINGEMENT."})}),f.jsx("p",{children:"In no event shall the Club be liable to you, or to any third party, for any losses or damages whatsoever arising out of or resulting from the Club Program, or your use thereof, regardless of the theory of recovery, including, without limitation, direct, indirect, consequential, incidental or special damages, lost profits, punitive damages, attorney's fees or any damages arising out of or resulting from a statutory or regulatory violation, negligence, gross negligence, strict liability, tortious conduct, willful misconduct or fraud, breach of contract, or breach of warranty. To the extent this damage waiver is contrary to applicable law, your or any third party's maximum recovery for any losses or damages whatsoever arising out of or resulting from the Club Program, or your use thereof, regardless of the theory of recovery, is $10.00."}),f.jsx("h2",{children:"X. Arbitration/Class Action Waiver"}),f.jsx("p",{children:f.jsx("strong",{children:`ALL DISPUTES, MATTERS, OR CLAIMS BETWEEN YOU AND THE CLUB ARISING OUT OF OR RELATING IN ANY WAY TO THESE SMS/RCS TEXT MESSAGING TERMS & CONDITIONS, ANY TEXT MESSAGES BETWEEN YOU AND THE CLUB OR ANYONE ACTING ON YOUR OR THE CLUB'S BEHALF, OR THE CLUB PROGRAM, REGARDLESS OF THE THEORY OF LIABILITY OR RECOVERY, MUST BE RESOLVED SOLELY BY ARBITRATION CONDUCTED EXPEDITIOUSLY IN ACCORDANCE WITH THE AMERICAN ARBITRATION ASSOCIATION CONSUMER ARBITRATION RULES ("AAA RULES") BY A SOLE ARBITRATOR SELECTED BY THE PARTIES TO THE DISPUTE FROM THE NATIONAL OR STATE OF CONNECTICUT PANEL OF ARBITRATORS. ALL DISPUTES, MATTERS, OR CLAIMS BETWEEN YOU AND THE CLUB INCLUDES, WITHOUT LIMITATION, ANY ACTUAL OR ALLEGED STATUTORY OR REGULATORY VIOLATION, EQUITABLE CLAIM, NEGLIGENCE, GROSS NEGLIGENCE, STRICT LIABILITY, TORTIOUS CONDUCT, WILLFUL MISCONDUCT OR FRAUD, BREACH OF CONTRACT, BREACH OF WARRANTY, AS WELL AS ALL DISPUTES, MATTERS, OR CLAIMS ARISING OUT OF OR RELATING IN ANY WAY TO THE ARBITRATION/CLASS ACTION WAIVER PROVISION OR THE RELEASE: NO WARRANTIES; LIMITATION OF LIABILITY PROVISION.`})}),f.jsxs("p",{children:["This agreement to arbitrate is intended to be broadly interpreted, and expressly includes disputes, matters, or claims brought under the Telephone Consumer Protection Act, 47 U.S.C. § 227 et seq., or any other statute, regulation, or legal or equitable theory. ",f.jsx("strong",{children:"THIS PROVISION MUST CONSTRUED IN ACCORDANCE WITH, AND THE ARBITRATION MUST BE GOVERNED BY, THE FEDERAL ARBITRATION ACT (9 U.S.C. § One et seq.). ANY JUDGMENT UPON THE DECISION RENDERED BY ANY COURT HAVING JURISDICTION MAY ENTER ARBITRATOR. UNLESS OTHERWISE REQUIRED BY LAW, THE ARBITRATOR IS PROHIBITED FROM AWARDING DAMAGES IN EXCESS OF THE LIMITATIONS SET FORTH IN THESE SMS/RCS TEXT MESSAGING TERMS & CONDITIONS."})]}),f.jsx("p",{children:f.jsx("strong",{children:"EITHER PARTY TO THIS AGREEMENT MAY COMMENCE ARBITRATION PROCEEDINGS BY DELIVERING TO THE OTHER PARTY A WRITTEN NOTICE IN ACCORDANCE WITH THE AAA RULES. ANY ARBITRATION HEARING SHALL BE HELD IN THE STATE OF CONNECTICUT, UNLESS THE PARTIES TO THE DISPUTE AGREE OTHERWISE. ANY JUDGMENT RENDERED BY ARBITRATION SHALL BE FINAL AND BINDING ON THE PARTIES, AND MAY BE ENTERED IN ANY COURT OF COMPETENT JURISDICTION. NOTWITHSTANDING ANY AAA RULES TO THE CONTRARY, THE AWARD OF THE ARBITRATOR MUST BE MADE NO LATER THAN THREE (3) MONTHS FOLLOWING THE DATE ON WHICH THE ARBITRATOR IS APPOINTED, UNLESS THE ISSUE IS THE SUBJECT OF LITIGATION BROUGHT BY A THIRD PARTY AND THE ARBITRATOR DEEMS IT APPROPRIATE TO DEFER ITS AWARD UNTIL THE LITIGATION IS RESOLVED."})}),f.jsx("p",{children:"The resolution of any claims, matters, or disputes must proceed solely on an individual basis without the right for any claims, matters, or disputes to proceed on a class action or collective basis or on bases involving claims, matters, or disputes brought in a purported representative capacity on behalf of others. The arbitrator's authority to resolve and make written awards is limited to claims, matters, and disputes between you and the Club alone. Claims, matters, or disputes may not be joined or c
908onsolidated unless agreed to in writing by all parties. No arbitration award or decision will have any preclusive effect as to issues, claims, matters, or disputes with anyone who is not a named party to the arbitration."}),f.jsx("h2",{children:"XI. Attorney Fees"}),f.jsx("p",{children:"In the event of any claim, matter, or dispute between you and the Club arising out of or relating in any way to these SMS/RCS Text Messaging Terms & Conditions, any text messages between you and the Club or anyone acting on your or the Club's behalf, or the Club Program, the Club, if it prevails, must be awarded all costs of bringing or defending the claim, matter, or dispute, including, without limitation, reasonable attorneys' fees and the ordinary costs and expenses incurred in resolving the claim, matter, or dispute, including, without limitation, all arbitration related fees and expenses."}),f.jsx("h2",{children:"XII. Applicable Law"}),f.jsx("p",{children:"The law of the State of Connecticut including its statutes of limitations and without reference to any conflict of laws principles, shall be applied to any claim, matter, or dispute between the parties or when governing, constraining, or enforcing these SMS/RCS Text Messaging Terms & Conditions, the Club Program, or any text messages between you and the Club or anyone acting on your or the Club behalf, or any of the rights, duties, or obligations of the parties arising from or relating in any way to the subject matter of these SMS/RCS Terms & Conditions."}),f.jsx("h2",{children:"XIII. Contact Us"}),f.jsx("p",{children:"If you have questions regarding these SMS/RCS Text Messaging Terms & Conditions, you may reach us through our contact information on our website."}),f.jsx("hr",{className:"my-12"}),f.jsxs("p",{className:"text-sm text-muted-foreground",children:["See also: ",f.jsx("a",{href:"/terms",children:"Terms and Conditions"})," · ",f.jsx("a",{href:"/privacy",children:"Privacy Policy"})," · ",f.jsx("a",{href:"/eula",children:"End User License Agreement"})]})]})}),f.jsx(Hr,{})]})),LNe=()=>(k.useEffect(()=>{document.title="End User License Agreement | clubcloudâ¢"},[]),f.jsxs("div",{className:"min-h-screen bg-background",children:[f.jsx(Wr,{}),f.jsx("main",{className:"container mx-auto max-w-4xl px-6 pt-32 pb-20",children:f.jsxs("article",{className:"prose prose-slate max-w-none prose-headings:font-display prose-headings:text-foreground prose-h1:text-4xl prose-h2:text-2xl prose-h2:mt-10 prose-h3:text-xl prose-a:text-accent hover:prose-a:underline prose-strong:text-foreground",children:[f.jsx("h1",{children:"clubcloud⢠Mobile Application (PWA) End User License Agreement"}),f.jsx("p",{className:"text-muted-foreground",children:f.jsx("em",{children:"Updated: November 13, 2025"})}),f.jsxs("p",{children:['This Mobile Application End User License Agreement ("',f.jsx("strong",{children:"Agreement"}),'") is a binding agreement between You ("',f.jsx("strong",{children:"End User"}),'" or "',f.jsx("strong",{children:"You"}),'" "',f.jsx("strong",{children:"Your"}),'") and Clubcloud, LLC., ("',f.jsx("strong",{children:"Company"}),'" or "',f.jsx("strong",{children:"Our"}),'"). This Agreement governs Your use of the Clubcloud Progressive Web Application on Mobile Platforms, Mobile Devices, and the browser on any device (including all related documentation, the "',f.jsx("strong",{children:"Application"}),'"). The Application is licensed, not sold, to you.']}),f.jsx("p",{children:'BY CLICKING THE "AGREE" BUTTON or by DOWNLOADING/INSTALLING/USING THE APPLICATION, YOU (A) ACKNOWLEDGE THAT YOU HAVE READ AND UNDERSTAND THIS AGREEMENT; (B) REPRESENT THAT YOU AT LEAST 18-YEARS OF AGE (19-YEARS-OLD IN ALABAMA AND NEBRASKA, AND 21-YEARS-OLD IN INDIANA, MISSISSIPPI, NEW YORK, AND PUERTO RICO) OR OLDER/OF LEGAL AGE TO ENTER INTO A BINDING AGREEMENT, OR HAVE THE CONSENT OF A PARENT OR GUARDIAN TO LEGALLY ADHERE TO THIS AGREEMENT; AND (C) ACCEPT THIS AGREEMENT AND AGREE THAT YOU ARE LEGALLY BOUND BY ITS TERMS. IF YOU DO NOT AGREE TO THESE TERMS, DO NOT DOWNLOAD/INSTALL/USE THE APPLICATION AND DELETE IT FROM YOUR MOBILE DEVICE.'}),f.jsx("h2",{children:"1. License Grant"}),f.jsx("p",{children:"Subject to the terms of this Agreement, Company grants You a limited, non-exclusive, and nontransferable license to:"}),f.jsxs("ul",{children:[f.jsxs("li",{children:['A. Download, install and use the Application for Your personal, non-commercial use on a Mobile Device owned or otherwise controlled by You ("',f.jsx("strong",{children:"Mobile Device"}),`") strictly in accordance with the Application's documentation.`]}),f.jsxs("li",{children:["B. Access, stream, download and use on such Mobile Device the Content and Services (as defined in ",f.jsx("strong",{children:"Section 5"}),") made available in or otherwise accessible through the Application, strictly in accordance with this Agreement and the Terms of Use applicable to such Content and Services as set forth in ",f.jsx("strong",{children:"Section 5"}),"."]})]}),f.jsx("h2",{children:"2. License Restrictions"}),f.jsx("p",{children:"Licensee shall not:"}
908),f.jsxs("ul",{children:[f.jsx("li",{children:"A. Copy the Application, except as expressly permitted by this license;"}),f.jsx("li",{children:"B. Modify, translate, adapt, or otherwise create derivative works or improvements, whether or not patentable, of the Application;"}),f.jsx("li",{children:"C. Reverse engineer, disassemble, decompile, decode, or otherwise attempt to derive or gain access to the source code of the Application or any part thereof;"}),f.jsx("li",{children:"D. Remove, delete, alter, or obscure any trademarks or any copyright, trademark, patent or other intellectual property or proprietary rights notices from the Application, including any copy thereof;"}),f.jsx("li",{children:"E. Rent, lease, lend, sell, sublicense, assign, distribute, publish, transfer, or otherwise make available the Application or any features or functionality of the Application, to any third party for any reason, including by making the Application available on a network where it is capable of being accessed by more than one device at any time;"}),f.jsx("li",{children:"F. Remove, disable, circumvent, or otherwise create or implement any workaround to any copy protection, rights management, or security features in or protecting the Application; or"}),f.jsx("li",{children:"G. Use the Application in, or in association with, the design, construction, maintenance or operation of any hazardous environments or systems, including any power generation systems; aircraft navigation or communication systems, air traffic control systems or any other transport management systems; safety-critical applications, including medical or life-support systems, vehicle operation applications or any police, fire or other safety response systems; and military or aerospace applications, weapons systems or environments."})]}),f.jsx("h2",{children:"3. Reservation of Rights"}),f.jsx("p",{children:"You acknowledge and agree that the Application is provided under license, and not sold, to you. You do not acquire any ownership interest in the Application under this Agreement, or any other rights thereto other than to use the Application in accordance with the license granted, and subject to all terms, conditions, and restrictions, under this Agreement. Company and its licensors and service providers reserve and shall retain their entire right, title, and interest in and to the Application, including all copyrights, trademarks, and other intellectual property rights therein or relating thereto, except as expressly granted to You in this Agreement."}),f.jsx("h2",{children:"4. Collection and Use of Your Information"}),f.jsxs("p",{children:["You acknowledge that when You download, install, or use the Application, Company may use automatic means (including, for example, cookies and web beacons) to collect information about Your Mobile Device and about Your use of the Application. You also may be required to provide certain information about yourself as a condition to downloading, installing, or using the Application or certain of its features or functionality, and the Application may provide You with opportunities to share information about yourself with others. All information we collect through or in connection with this Application is subject to our ",f.jsx("a",{href:"/privacy",children:"Privacy Policy"}),". By downloading, installing, using, and providing information to or through this Application, You consent to all actions taken by us with respect to Your information in compliance with the Privacy Policy."]}),f.jsx("h2",{children:"5. Content and Services"}),f.jsxs("p",{children:[`The Application may provide You with access to Company's website located at ClubCloud.com (the "`,f.jsx("strong",{children:"Website"}),'") and products and services accessible thereon, and certain features, functionality, and content accessible on or through the Application may be hosted on the Website (collectively, "',f.jsx("strong",{children:"Content and Services"}),`"). Your access to and use of such Content and Services are governed by the Company's Website's `,f.jsx("a",{href:"/terms",children:"Terms of Use"})," and ",f.jsx("a",{href:"/privacy",children:"Privacy Policy"}),", which are incorporated herein by this reference. Your access to and use of such Content and Services may require You to acknowledge Your acceptance of such Terms of Use and Privacy Policy and/or to register with the Website and Your failure to do so may restrict You from accessing or using certain of the Application's features and functionality. Any violation of such Terms of Use will also be deemed a violation of this Agreement."]}),f.jsx("h2",{children:"6. Geographic Restrictions"}),f.jsx("p",{children:"The Content and Services are based in the United States of America. You acknowledge that You may not be able to access all or some of the Content and Services from certain countries and that access thereto may not be legal by certain persons or in certain countries. If You access the Content and Services from outside the United States of America, You are responsible for compliance with local laws."}),f.jsx("h2",{children:"7. Updates"}),f.jsx("p",{children:'Company may from time to time in its sole discretion develop and provide Application updates, which may include upgrades, bug fixes, patches, and other error corrections and/or new features (collectively, including related documentation, "Updates"). Updates may also modify or delete in their entirety certain features and functionality. You agree that Company has no obligation to provide any Updates or to continue to provide or enable any particular features or functionality. Based on Your Mobile Device settings when Your Mobile Device is connected to the internet either:'}),f.jsxs("ul",{children:[f.jsx("li",{children:"A. The Application will automatically download and install all available Updates; or"}),f.jsx("li",{children:"B. You may receive notice of or be prompted to download and install available Updates."})]}),f.jsx("p",{children:f.jsx("em",{children:"You shall promptly download and install all Updates and acknowledge and agree that the Application or portions thereof may not properly operate should You fail to do so. You further agree that all Updates will be deemed part of the Application and be subject to all terms and conditions of this Agreement."})}),f.jsx("h2",{children:"8. Third Party Materials"}),f.jsx("p",{children:`The Application may display, include, or make available third-party content (including data, information, applications, intellectual property, and other products services and/or materials) or provide links to third-party websites or services, including through third-party advertising ("Third Party Materials"). You acknowledge and agree that Company is not responsible for Third Party Materials, including their accuracy, completeness, timeliness, validity, copyright compliance, legality, decency, quality, or any other aspect thereof. Company does not assume and will not have any liability or responsibility to You or any other person or entity for any Third-Party Materials. Third Party Materials and links thereto are provided solely as a convenience to You and You access and use them at entirely at Your own risk and subject to such third parties' terms and conditions.`}),f.jsx("h2",{children:"9. Term and Termination"}),f.jsxs("ul",{children:[f.jsxs("li",{children:["A. The term of Agreement commences when You download/install the Application and will continue in effect until terminated by You or Company as set forth in this ",f.jsx("strong",{children:"Section 9"}),"."]}),f.jsx("li",{children:"B. You may terminate this Agreement by deleting the Application and all copies thereof from Your Mobile Device."}),f.jsx("li",{children:"C. Company may terminate this Agreement at any time without notice if it ceases to support the Application, which Company may do in its sole discretion or in the for OTHER TERMINATION EVENTS. In addition, this Agreement will terminate immediately and automatically without any notice if You violate any of the terms and conditions of this Agreement."}),f.jsxs("li",{children:["D. Upon termination:",f.jsxs("ul",{children:[f.jsx("li",{children:"(i) All rights granted to You under this Agreement will also terminate; and"}),f.jsx("li",{children:"(ii) You must cease all use of the Application and delete all c
908opies of the Application from Your Mobile Device and account."})]})]}),f.jsx("li",{children:"E. Termination will not limit any of Company's rights or remedies at law or in equity."})]}),f.jsx("h2",{children:"10. Disclaimer of Warranties"}),f.jsxs("p",{children:[f.jsx("a",{href:"/terms",children:"Section 9 of the Clubcloud Terms and Conditions"})," (Disclaimer of Warranties) is incorporated by reference into this End User's License Agreement."]}),f.jsx("h2",{children:"11. Indemnification"}),f.jsxs("p",{children:[f.jsx("a",{href:"/terms",children:"Section 8 of the Clubcloud Terms and Conditions"})," (Indemnification and Hold Harmless) is incorporated by reference into this End User's License Agreement."]}),f.jsx("h2",{children:"12. Export Regulation"}),f.jsx("p",{children:"The Application may be subject to export control laws. You shall not, directly, or indirectly, export, re-export or release the Application to, or make the Application accessible from, any jurisdiction or country to which export, re-export or release is prohibited by law, rule, or regulation."}),f.jsx("h2",{children:"13. US Government Rights"}),f.jsx("p",{children:"The Application is commercial computer software, as such term is defined in 48 C.F.R. §2.101. Accordingly, if You are an agency of the US Government or any contractor therefor, You receive only those rights with respect to the Application as are granted to all other End Users under license, in accordance with (a) 48 C.F.R. §227.7201 through 48 C.F.R. §227.7204, with respect to the Department of Defense and their contractors, or (b) 48 C.F.R. §12.212, with respect to all other US Government licensees and their contractors."}),f.jsx("h2",{children:"14. Severability"}),f.jsx("p",{children:"If any provision of this Agreement is illegal or unenforceable under applicable law, the remainder of the provision will be amended to achieve as closely as possible the effect of the original term(s), and all other provisions of this Agreement will continue in full force and effect."}),f.jsx("h2",{children:"15. Governing Law"}),f.jsx("p",{children:"This Agreement is governed by and construed in accordance with the internal laws of the State of Connecticut without giving effect to any choice or conflict of law provision or rule. Any legal suit, action or proceeding arising out of or related to this Agreement or the Application shall be instituted exclusively in the courts of the State of Connecticut. You waive any and all objections to the exercise of jurisdiction over You by such courts and to venue in such courts."}),f.jsx("h2",{children:"16. Limitation of Time to File Claims"}),f.jsx("p",{children:"ANY CAUSE OF ACTION OR CLAIM YOU MAY HAVE ARISING OUT OF OR RELATING TO THIS AGREEMENT OR THE APPLICATION MUST BE COMMENCED WITHIN ONE (1) YEAR AFTER THE CAUSE OF ACTION ACCRUES, OTHERWISE, SUCH CAUSE OF ACTION OR CLAIM IS PERMANENTLY BARRED. Nothing in this Section changes the effect of Sections 8 and 9 of this End User's License Agreement."}),f.jsx("h2",{children:"17. Entire Agreement"}),f.jsxs("p",{children:["This Agreement, our ",f.jsx("a",{href:"/terms",children:"Terms of Use"}),", ",f.jsx("a",{href:"/privacy",children:"Privacy Policy"}),", and ",f.jsx("a",{href:"/sms-terms",children:"SMS/Text Messaging Terms & Conditions"}),", constitute the entire agreement between You and Company with respect to the Application and supersede all prior or contemporaneous understandings and agreements, whether written or oral, with respect to the Application."]}),f.jsx("h2",{children:"18. Waiver"}),f.jsx("p",{children:"No failure to exercise, and no delay in exercising, on the part of either party, any right or any power hereunder shall operate as a waiver thereof, nor shall any single or partial exercise of any right or power hereunder preclude further exercise of that or any other right hereunder. In the event of a conflict between this Agreement and any applicable purchase or other terms, the terms of this Agreement shall govern."}),f.jsx("hr",{className:"my-12"}),f.jsxs("p",{className:"text-sm text-muted-foreground",children:["See also: ",f.jsx("a",{href:"/terms",children:"Terms and Conditions"})," · ",f.jsx("a",{href:"/privacy",children:"Privacy Policy"})," · ",f.jsx("a",{href:"/sms-terms",children:"SMS/RCS Text Messaging Terms"})]})]})}),f.jsx(Hr,{})]})),BNe=()=>{const e=Io();k.useEffect(()=>{e.pathname.startsWith("/admin")||kr.from("page_views").insert({path:e.pathname,referrer:document.referrer||null,user_agent:navigator.userAgent})},[e.pathname])},FNe=new vq,UNe=()=>(BNe(),null),VNe=()=>f.jsx(xq,{client:FNe,children:f.jsxs(Y7,{children:[f.jsx(PH,{}),f.jsx(l9,{}),f.jsxs(gK,{children:[f.jsx(wK,{}),f.jsx(UNe,{}),f.jsxs(uK,{children:[f.jsx(dt,{path:"/",element:f.jsx(rre,{})}),f.jsx(dt,{path:"/demo",element:f.jsx($ie,{})}),f.jsx(dt,{path:"/features",element:f.jsx(Bie,{})}),f.jsx(dt,{path:"/features/scheduling",element:f.jsx(Wie,{})}),f.jsx(dt,{path:"/features/events",element:f.jsx(Yie,{})}),f.jsx(dt,{path:"/features/members",element:f.jsx(Jie,{})}),f.jsx(dt,{path:"/features/crm",element:f.jsx(eae,{})}),f.jsx(dt,{path:"/features/payments",element:f.jsx(iae,{})}),f.jsx(dt,{path:"/features/reporting",element:f.jsx(aNe,{})}),f.jsx(dt,{path:"/features/member-portal",element:f.jsx(HR,{})}),f.jsx(dt,{path:"/features/mobile",element:f.jsx(HR,{})}),f.jsx(dt,{path:"/features/communication",element:f.jsx(yNe,{})}),f.jsx(dt,{path:"/features/integrations",element:f.jsx(gNe,{})}),f.jsx(dt,{path:"/pricing",element:f.jsx(SNe,{})}),f.jsx(dt,{path:"/support",element:f.jsx(jNe,{})}),f.jsx(dt,{path:"/blog",element:f.jsx(ONe,{})}),f.jsx(dt,{path:"/blog/:slug",element:f.jsx(NNe,{})}),f.jsx(dt,{path:"/admin/login",element:f.jsx(RNe,{})}),f.jsx(dt,{path:"/admin",element:f.jsx(INe,{})}),f.jsx(dt,{path:"/terms",element:f.jsx($Ne,{})}),f.jsx(dt,{path:"/privacy",element:f.jsx(MNe,{})}),f.jsx(dt,{path:"/sms-terms",element:f.jsx(DNe,{})}),f.jsx(dt,{path:"/eula",element:f.jsx(LNe,{})}),f.jsx(dt,{path:"*",element:f.jsx(DV,{})})]})]})]})});pM(document.getElementById("root")).render(f.jsx(VNe,{}));
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.